2005-01-13 Andrew Cagney <cagney@gnu.org>
[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"
316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os RANLIB ac_ct_RANLIB SET_MAKE 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'
317ac_subst_files='host_makefile_frag target_makefile_frag'
c906108c
SS
318
319# Initialize some variables set by options.
bec39cab
AC
320ac_init_help=
321ac_init_version=false
c906108c
SS
322# The variables have the same names as the options, with
323# dashes changed to underlines.
bec39cab 324cache_file=/dev/null
c906108c 325exec_prefix=NONE
c906108c 326no_create=
c906108c
SS
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
c906108c
SS
335verbose=
336x_includes=NONE
337x_libraries=NONE
bec39cab
AC
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
c906108c
SS
357ac_prev=
358for ac_option
359do
c906108c
SS
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
bec39cab 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
bec39cab 371 case $ac_option in
c906108c
SS
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 376 bindir=$ac_optarg ;;
c906108c
SS
377
378 -build | --build | --buil | --bui | --bu)
bec39cab 379 ac_prev=build_alias ;;
c906108c 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 381 build_alias=$ac_optarg ;;
c906108c
SS
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
c906108c
SS
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
bec39cab 397 datadir=$ac_optarg ;;
c906108c
SS
398
399 -disable-* | --disable-*)
bec39cab 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 401 # Reject names that are not valid shell variable names.
bec39cab
AC
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
c906108c
SS
407
408 -enable-* | --enable-*)
bec39cab 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 410 # Reject names that are not valid shell variable names.
bec39cab
AC
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
417 *) ac_optarg=yes ;;
418 esac
bec39cab 419 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
bec39cab 428 exec_prefix=$ac_optarg ;;
c906108c
SS
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
bec39cab
AC
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
c906108c
SS
440
441 -host | --host | --hos | --ho)
bec39cab 442 ac_prev=host_alias ;;
c906108c 443 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 444 host_alias=$ac_optarg ;;
c906108c
SS
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 451 includedir=$ac_optarg ;;
c906108c
SS
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 456 infodir=$ac_optarg ;;
c906108c
SS
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 461 libdir=$ac_optarg ;;
c906108c
SS
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
bec39cab 468 libexecdir=$ac_optarg ;;
c906108c
SS
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 477 localstatedir=$ac_optarg ;;
c906108c
SS
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 482 mandir=$ac_optarg ;;
c906108c
SS
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 489 | --no-cr | --no-c | -n)
c906108c
SS
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 503 oldincludedir=$ac_optarg ;;
c906108c
SS
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 508 prefix=$ac_optarg ;;
c906108c
SS
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 515 program_prefix=$ac_optarg ;;
c906108c
SS
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 522 program_suffix=$ac_optarg ;;
c906108c
SS
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 539 program_transform_name=$ac_optarg ;;
c906108c
SS
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
bec39cab 549 sbindir=$ac_optarg ;;
c906108c
SS
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
bec39cab 560 sharedstatedir=$ac_optarg ;;
c906108c
SS
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
bec39cab 565 site=$ac_optarg ;;
3ace7edb 566
c906108c
SS
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 570 srcdir=$ac_optarg ;;
c906108c
SS
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 577 sysconfdir=$ac_optarg ;;
c906108c
SS
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 580 ac_prev=target_alias ;;
c906108c 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 582 target_alias=$ac_optarg ;;
c906108c
SS
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
bec39cab
AC
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
c906108c
SS
589
590 -with-* | --with-*)
bec39cab 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 592 # Reject names that are not valid shell variable names.
bec39cab
AC
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
c906108c 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
bec39cab
AC
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
599 *) ac_optarg=yes ;;
600 esac
bec39cab 601 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
602
603 -without-* | --without-*)
bec39cab 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 605 # Reject names that are not valid shell variable names.
bec39cab
AC
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
c906108c
SS
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 621 x_includes=$ac_optarg ;;
c906108c
SS
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 628 x_libraries=$ac_optarg ;;
c906108c 629
bec39cab
AC
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
c906108c
SS
633 ;;
634
bec39cab
AC
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
c906108c 645 *)
bec39cab
AC
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
bec39cab
AC
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
c906108c 660fi
c906108c 661
bec39cab
AC
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
c906108c 672
bec39cab
AC
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 676do
bec39cab
AC
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
c906108c
SS
682 esac
683done
684
bec39cab
AC
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
c906108c 702
bec39cab
AC
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
c906108c 707
c906108c
SS
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
bec39cab
AC
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
c906108c
SS
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
bec39cab
AC
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
c906108c 736 else
bec39cab
AC
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
c906108c
SS
739 fi
740fi
bec39cab
AC
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
c906108c 777
bec39cab
AC
778#
779# Report the --help message.
780#
781if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785\`configure' configures this package to adapt to many kinds of systems.
786
787Usage: $0 [OPTION]... [VAR=VALUE]...
788
789To assign environment variables (e.g., CC, CFLAGS...), specify them as
790VAR=VALUE. See below for descriptions of some of the useful variables.
791
792Defaults for the options are specified in brackets.
793
794Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804
805_ACEOF
806
807 cat <<_ACEOF
808Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
813
814By default, \`make install' will install all the files in
815\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817for instance \`--prefix=\$HOME'.
818
819For better control, use the options below.
820
821Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
834_ACEOF
835
836 cat <<\_ACEOF
837
838Program names:
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
843X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
846
847System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851_ACEOF
852fi
853
854if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --disable-nls do not use Native Language Support
864 --disable-gdbcli disable command-line interface (CLI)
865 --disable-gdbmi disable machine-interface (MI)
866 --enable-tui enable full-screen terminal user interface (TUI)
867 --enable-gdbtk enable gdbtk graphical user interface (GUI)
868 --enable-profiling enable profiling of GDB
869 --enable-build-warnings Enable build-time compiler warnings if gcc is used
870 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
871 --enable-sim Link gdb with simulator
872 --enable-multi-ice build the multi-ice-gdb-server
873
874Optional Packages:
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-included-gettext use the GNU gettext library included here
878 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
879 --with-libunwind Use libunwind frame unwinding support
880 --without-included-regex don't use included regex; this is the default
881 on systems with version 2 of the GNU C library
882 (use with caution on other system)
883 --with-sysroot=DIR Search for usr/lib et al within DIR.
884 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
885 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
886 --with-tclinclude=DIR Directory where tcl private headers are
887 --with-tkinclude=DIR Directory where tk private headers are
888 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
889 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
890 --with-x use the X Window System
891 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
892
893Some influential environment variables:
894 CC C compiler command
895 CFLAGS C compiler flags
896 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
897 nonstandard directory <lib dir>
898 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
899 headers in a nonstandard directory <include dir>
900 CPP C preprocessor
901
902Use these variables to override the choices made by `configure' or to help
903it to find libraries and programs with nonstandard names/locations.
904
905_ACEOF
906fi
907
908if test "$ac_init_help" = "recursive"; then
909 # If there are subdirs, report their specific --help.
910 ac_popdir=`pwd`
911 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
912 test -d $ac_dir || continue
913 ac_builddir=.
914
915if test "$ac_dir" != .; then
916 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
917 # A "../" for each directory in $ac_dir_suffix.
918 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
919else
920 ac_dir_suffix= ac_top_builddir=
921fi
922
923case $srcdir in
924 .) # No --srcdir option. We are building in place.
925 ac_srcdir=.
926 if test -z "$ac_top_builddir"; then
927 ac_top_srcdir=.
928 else
929 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
930 fi ;;
931 [\\/]* | ?:[\\/]* ) # Absolute path.
932 ac_srcdir=$srcdir$ac_dir_suffix;
933 ac_top_srcdir=$srcdir ;;
934 *) # Relative path.
935 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
936 ac_top_srcdir=$ac_top_builddir$srcdir ;;
937esac
938
939# Do not use `cd foo && pwd` to compute absolute paths, because
940# the directories may not exist.
941case `pwd` in
942.) ac_abs_builddir="$ac_dir";;
943*)
944 case "$ac_dir" in
945 .) ac_abs_builddir=`pwd`;;
946 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
947 *) ac_abs_builddir=`pwd`/"$ac_dir";;
948 esac;;
949esac
950case $ac_abs_builddir in
951.) ac_abs_top_builddir=${ac_top_builddir}.;;
952*)
953 case ${ac_top_builddir}. in
954 .) ac_abs_top_builddir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
956 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957 esac;;
958esac
959case $ac_abs_builddir in
960.) ac_abs_srcdir=$ac_srcdir;;
961*)
962 case $ac_srcdir in
963 .) ac_abs_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
965 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966 esac;;
967esac
968case $ac_abs_builddir in
969.) ac_abs_top_srcdir=$ac_top_srcdir;;
970*)
971 case $ac_top_srcdir in
972 .) ac_abs_top_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
974 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
975 esac;;
976esac
977
978 cd $ac_dir
979 # Check for guested configure; otherwise get Cygnus style configure.
980 if test -f $ac_srcdir/configure.gnu; then
981 echo
982 $SHELL $ac_srcdir/configure.gnu --help=recursive
983 elif test -f $ac_srcdir/configure; then
984 echo
985 $SHELL $ac_srcdir/configure --help=recursive
986 elif test -f $ac_srcdir/configure.ac ||
987 test -f $ac_srcdir/configure.in; then
988 echo
989 $ac_configure --help
3ace7edb 990 else
bec39cab
AC
991 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
992 fi
993 cd $ac_popdir
994 done
995fi
996
997test -n "$ac_init_help" && exit 0
998if $ac_init_version; then
999 cat <<\_ACEOF
1000
1001Copyright (C) 2003 Free Software Foundation, Inc.
1002This configure script is free software; the Free Software Foundation
1003gives unlimited permission to copy, distribute and modify it.
1004_ACEOF
1005 exit 0
1006fi
1007exec 5>config.log
1008cat >&5 <<_ACEOF
1009This file contains any messages produced by compilers while
1010running configure, to aid debugging if configure makes a mistake.
1011
1012It was created by $as_me, which was
1013generated by GNU Autoconf 2.59. Invocation command line was
1014
1015 $ $0 $@
1016
1017_ACEOF
1018{
1019cat <<_ASUNAME
1020## --------- ##
1021## Platform. ##
1022## --------- ##
1023
1024hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1025uname -m = `(uname -m) 2>/dev/null || echo unknown`
1026uname -r = `(uname -r) 2>/dev/null || echo unknown`
1027uname -s = `(uname -s) 2>/dev/null || echo unknown`
1028uname -v = `(uname -v) 2>/dev/null || echo unknown`
1029
1030/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1031/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1032
1033/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1034/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1035/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1036hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1037/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1038/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1039/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1040
1041_ASUNAME
1042
1043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1044for as_dir in $PATH
1045do
1046 IFS=$as_save_IFS
1047 test -z "$as_dir" && as_dir=.
1048 echo "PATH: $as_dir"
1049done
1050
1051} >&5
1052
1053cat >&5 <<_ACEOF
1054
1055
1056## ----------- ##
1057## Core tests. ##
1058## ----------- ##
1059
1060_ACEOF
1061
1062
1063# Keep a trace of the command line.
1064# Strip out --no-create and --no-recursion so they do not pile up.
1065# Strip out --silent because we don't want to record it for future runs.
1066# Also quote any args containing shell meta-characters.
1067# Make two passes to allow for proper duplicate-argument suppression.
1068ac_configure_args=
1069ac_configure_args0=
1070ac_configure_args1=
1071ac_sep=
1072ac_must_keep_next=false
1073for ac_pass in 1 2
1074do
1075 for ac_arg
1076 do
1077 case $ac_arg in
1078 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 continue ;;
1082 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1083 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1084 esac
1085 case $ac_pass in
1086 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1087 2)
1088 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1089 if test $ac_must_keep_next = true; then
1090 ac_must_keep_next=false # Got value, back to normal.
1091 else
1092 case $ac_arg in
1093 *=* | --config-cache | -C | -disable-* | --disable-* \
1094 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1095 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1096 | -with-* | --with-* | -without-* | --without-* | --x)
1097 case "$ac_configure_args0 " in
1098 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 esac
1100 ;;
1101 -* ) ac_must_keep_next=true ;;
1102 esac
1103 fi
1104 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1105 # Get rid of the leading space.
1106 ac_sep=" "
1107 ;;
1108 esac
1109 done
1110done
1111$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1112$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1113
1114# When interrupted or exit'd, cleanup temporary files, and complete
1115# config.log. We remove comments because anyway the quotes in there
1116# would cause problems or look ugly.
1117# WARNING: Be sure not to use single quotes in there, as some shells,
1118# such as our DU 5.0 friend, will then `close' the trap.
1119trap 'exit_status=$?
1120 # Save into config.log some information that might help in debugging.
1121 {
1122 echo
1123
1124 cat <<\_ASBOX
1125## ---------------- ##
1126## Cache variables. ##
1127## ---------------- ##
1128_ASBOX
1129 echo
1130 # The following way of writing the cache mishandles newlines in values,
1131{
1132 (set) 2>&1 |
1133 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 *ac_space=\ *)
1135 sed -n \
1136 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1138 ;;
1139 *)
1140 sed -n \
1141 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 ;;
1143 esac;
1144}
1145 echo
1146
1147 cat <<\_ASBOX
1148## ----------------- ##
1149## Output variables. ##
1150## ----------------- ##
1151_ASBOX
1152 echo
1153 for ac_var in $ac_subst_vars
1154 do
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1157 done | sort
1158 echo
1159
1160 if test -n "$ac_subst_files"; then
1161 cat <<\_ASBOX
1162## ------------- ##
1163## Output files. ##
1164## ------------- ##
1165_ASBOX
1166 echo
1167 for ac_var in $ac_subst_files
1168 do
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1171 done | sort
1172 echo
1173 fi
1174
1175 if test -s confdefs.h; then
1176 cat <<\_ASBOX
1177## ----------- ##
1178## confdefs.h. ##
1179## ----------- ##
1180_ASBOX
1181 echo
1182 sed "/^$/d" confdefs.h | sort
1183 echo
3ace7edb 1184 fi
bec39cab
AC
1185 test "$ac_signal" != 0 &&
1186 echo "$as_me: caught signal $ac_signal"
1187 echo "$as_me: exit $exit_status"
1188 } >&5
1189 rm -f core *.core &&
1190 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1191 exit $exit_status
1192 ' 0
1193for ac_signal in 1 2 13 15; do
1194 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1195done
1196ac_signal=0
1197
1198# confdefs.h avoids OS command line length limits that DEFS can exceed.
1199rm -rf conftest* confdefs.h
1200# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201echo >confdefs.h
1202
1203# Predefined preprocessor variables.
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_NAME "$PACKAGE_NAME"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_VERSION "$PACKAGE_VERSION"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_STRING "$PACKAGE_STRING"
1222_ACEOF
1223
1224
1225cat >>confdefs.h <<_ACEOF
1226#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1227_ACEOF
1228
1229
1230# Let the site file select an alternate cache file if it wants to.
1231# Prefer explicitly selected file to automatically selected ones.
1232if test -z "$CONFIG_SITE"; then
1233 if test "x$prefix" != xNONE; then
1234 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1235 else
1236 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
c906108c
SS
1237 fi
1238fi
1239for ac_site_file in $CONFIG_SITE; do
1240 if test -r "$ac_site_file"; then
bec39cab
AC
1241 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1242echo "$as_me: loading site script $ac_site_file" >&6;}
1243 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1244 . "$ac_site_file"
1245 fi
1246done
1247
1248if test -r "$cache_file"; then
bec39cab
AC
1249 # Some versions of bash will fail to source /dev/null (special
1250 # files actually), so we avoid doing that.
1251 if test -f "$cache_file"; then
1252 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1253echo "$as_me: loading cache $cache_file" >&6;}
1254 case $cache_file in
1255 [\\/]* | ?:[\\/]* ) . $cache_file;;
1256 *) . ./$cache_file;;
1257 esac
1258 fi
c906108c 1259else
bec39cab
AC
1260 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1261echo "$as_me: creating cache $cache_file" >&6;}
1262 >$cache_file
1263fi
1264
1265# Check that the precious variables saved in the cache have kept the same
1266# value.
1267ac_cache_corrupted=false
1268for ac_var in `(set) 2>&1 |
1269 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1270 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1271 eval ac_new_set=\$ac_env_${ac_var}_set
1272 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1273 eval ac_new_val="\$ac_env_${ac_var}_value"
1274 case $ac_old_set,$ac_new_set in
1275 set,)
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1277echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1279 ,set)
1280 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1281echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1282 ac_cache_corrupted=: ;;
1283 ,);;
1284 *)
1285 if test "x$ac_old_val" != "x$ac_new_val"; then
1286 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1287echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1288 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1289echo "$as_me: former value: $ac_old_val" >&2;}
1290 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1291echo "$as_me: current value: $ac_new_val" >&2;}
1292 ac_cache_corrupted=:
1293 fi;;
1294 esac
1295 # Pass precious variables to config.status.
1296 if test "$ac_new_set" = set; then
1297 case $ac_new_val in
1298 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1299 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1300 *) ac_arg=$ac_var=$ac_new_val ;;
1301 esac
1302 case " $ac_configure_args " in
1303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1304 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1305 esac
1306 fi
1307done
1308if $ac_cache_corrupted; then
1309 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1310echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1311 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1312echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1313 { (exit 1); exit 1; }; }
c906108c
SS
1314fi
1315
1316ac_ext=c
c906108c 1317ac_cpp='$CPP $CPPFLAGS'
bec39cab
AC
1318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1320ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1321
1322
1323
bec39cab
AC
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340 ac_config_headers="$ac_config_headers config.h:config.in"
1341
1342echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1343echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
413ccac7
AC
1344 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1345if test "${enable_maintainer_mode+set}" = set; then
1346 enableval="$enable_maintainer_mode"
1347 USE_MAINTAINER_MODE=$enableval
1348else
1349 USE_MAINTAINER_MODE=no
bec39cab
AC
1350fi;
1351 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1352echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1353
413ccac7
AC
1354
1355if test $USE_MAINTAINER_MODE = yes; then
1356 MAINTAINER_MODE_TRUE=
1357 MAINTAINER_MODE_FALSE='#'
1358else
1359 MAINTAINER_MODE_TRUE='#'
1360 MAINTAINER_MODE_FALSE=
1361fi
1362 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1363
c906108c 1364
bec39cab
AC
1365
1366ac_ext=c
1367ac_cpp='$CPP $CPPFLAGS'
1368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1370ac_compiler_gnu=$ac_cv_c_compiler_gnu
1371if test -n "$ac_tool_prefix"; then
1372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1373set dummy ${ac_tool_prefix}gcc; ac_word=$2
1374echo "$as_me:$LINENO: checking for $ac_word" >&5
1375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1376if test "${ac_cv_prog_CC+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1378else
1379 if test -n "$CC"; then
1380 ac_cv_prog_CC="$CC" # Let the user override the test.
1381else
1382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383for as_dir in $PATH
1384do
1385 IFS=$as_save_IFS
1386 test -z "$as_dir" && as_dir=.
1387 for ac_exec_ext in '' $ac_executable_extensions; do
1388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391 break 2
1392 fi
1393done
1394done
1395
1396fi
1397fi
1398CC=$ac_cv_prog_CC
1399if test -n "$CC"; then
1400 echo "$as_me:$LINENO: result: $CC" >&5
1401echo "${ECHO_T}$CC" >&6
1402else
1403 echo "$as_me:$LINENO: result: no" >&5
1404echo "${ECHO_T}no" >&6
1405fi
1406
1407fi
1408if test -z "$ac_cv_prog_CC"; then
1409 ac_ct_CC=$CC
1410 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1411set dummy gcc; ac_word=$2
bec39cab
AC
1412echo "$as_me:$LINENO: checking for $ac_word" >&5
1413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1414if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416else
1417 if test -n "$ac_ct_CC"; then
1418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1419else
1420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421for as_dir in $PATH
1422do
1423 IFS=$as_save_IFS
1424 test -z "$as_dir" && as_dir=.
1425 for ac_exec_ext in '' $ac_executable_extensions; do
1426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1427 ac_cv_prog_ac_ct_CC="gcc"
1428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1429 break 2
1430 fi
1431done
1432done
1433
1434fi
1435fi
1436ac_ct_CC=$ac_cv_prog_ac_ct_CC
1437if test -n "$ac_ct_CC"; then
1438 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1439echo "${ECHO_T}$ac_ct_CC" >&6
1440else
1441 echo "$as_me:$LINENO: result: no" >&5
1442echo "${ECHO_T}no" >&6
1443fi
1444
1445 CC=$ac_ct_CC
1446else
1447 CC="$ac_cv_prog_CC"
1448fi
1449
1450if test -z "$CC"; then
1451 if test -n "$ac_tool_prefix"; then
1452 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1453set dummy ${ac_tool_prefix}cc; ac_word=$2
1454echo "$as_me:$LINENO: checking for $ac_word" >&5
1455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1456if test "${ac_cv_prog_CC+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1458else
1459 if test -n "$CC"; then
1460 ac_cv_prog_CC="$CC" # Let the user override the test.
1461else
bec39cab
AC
1462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463for as_dir in $PATH
1464do
1465 IFS=$as_save_IFS
1466 test -z "$as_dir" && as_dir=.
1467 for ac_exec_ext in '' $ac_executable_extensions; do
1468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1469 ac_cv_prog_CC="${ac_tool_prefix}cc"
1470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1471 break 2
1472 fi
1473done
1474done
1475
c906108c
SS
1476fi
1477fi
bec39cab 1478CC=$ac_cv_prog_CC
c906108c 1479if test -n "$CC"; then
bec39cab
AC
1480 echo "$as_me:$LINENO: result: $CC" >&5
1481echo "${ECHO_T}$CC" >&6
1482else
1483 echo "$as_me:$LINENO: result: no" >&5
1484echo "${ECHO_T}no" >&6
1485fi
1486
1487fi
1488if test -z "$ac_cv_prog_CC"; then
1489 ac_ct_CC=$CC
1490 # Extract the first word of "cc", so it can be a program name with args.
1491set dummy cc; ac_word=$2
1492echo "$as_me:$LINENO: checking for $ac_word" >&5
1493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1496else
1497 if test -n "$ac_ct_CC"; then
1498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1499else
1500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501for as_dir in $PATH
1502do
1503 IFS=$as_save_IFS
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507 ac_cv_prog_ac_ct_CC="cc"
1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509 break 2
1510 fi
1511done
1512done
1513
1514fi
1515fi
1516ac_ct_CC=$ac_cv_prog_ac_ct_CC
1517if test -n "$ac_ct_CC"; then
1518 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1519echo "${ECHO_T}$ac_ct_CC" >&6
c906108c 1520else
bec39cab
AC
1521 echo "$as_me:$LINENO: result: no" >&5
1522echo "${ECHO_T}no" >&6
c906108c
SS
1523fi
1524
bec39cab
AC
1525 CC=$ac_ct_CC
1526else
1527 CC="$ac_cv_prog_CC"
1528fi
1529
1530fi
c906108c
SS
1531if test -z "$CC"; then
1532 # Extract the first word of "cc", so it can be a program name with args.
1533set dummy cc; ac_word=$2
bec39cab
AC
1534echo "$as_me:$LINENO: checking for $ac_word" >&5
1535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536if test "${ac_cv_prog_CC+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1538else
1539 if test -n "$CC"; then
1540 ac_cv_prog_CC="$CC" # Let the user override the test.
1541else
c906108c 1542 ac_prog_rejected=no
bec39cab
AC
1543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544for as_dir in $PATH
1545do
1546 IFS=$as_save_IFS
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1551 ac_prog_rejected=yes
1552 continue
1553 fi
1554 ac_cv_prog_CC="cc"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 break 2
1557 fi
1558done
1559done
1560
c906108c
SS
1561if test $ac_prog_rejected = yes; then
1562 # We found a bogon in the path, so make sure we never use it.
1563 set dummy $ac_cv_prog_CC
1564 shift
bec39cab 1565 if test $# != 0; then
c906108c
SS
1566 # We chose a different compiler from the bogus one.
1567 # However, it has the same basename, so the bogon will be chosen
1568 # first if we set CC to just the basename; use the full file name.
1569 shift
bec39cab 1570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1571 fi
1572fi
1573fi
1574fi
bec39cab 1575CC=$ac_cv_prog_CC
c906108c 1576if test -n "$CC"; then
bec39cab
AC
1577 echo "$as_me:$LINENO: result: $CC" >&5
1578echo "${ECHO_T}$CC" >&6
c906108c 1579else
bec39cab
AC
1580 echo "$as_me:$LINENO: result: no" >&5
1581echo "${ECHO_T}no" >&6
c906108c
SS
1582fi
1583
bec39cab
AC
1584fi
1585if test -z "$CC"; then
1586 if test -n "$ac_tool_prefix"; then
1587 for ac_prog in cl
1588 do
1589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1590set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1591echo "$as_me:$LINENO: checking for $ac_word" >&5
1592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1595else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598else
bec39cab
AC
1599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600for as_dir in $PATH
1601do
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1609 fi
1610done
1611done
1612
c906108c
SS
1613fi
1614fi
bec39cab 1615CC=$ac_cv_prog_CC
c906108c 1616if test -n "$CC"; then
bec39cab
AC
1617 echo "$as_me:$LINENO: result: $CC" >&5
1618echo "${ECHO_T}$CC" >&6
c906108c 1619else
bec39cab
AC
1620 echo "$as_me:$LINENO: result: no" >&5
1621echo "${ECHO_T}no" >&6
c906108c 1622fi
bec39cab
AC
1623
1624 test -n "$CC" && break
1625 done
1626fi
1627if test -z "$CC"; then
1628 ac_ct_CC=$CC
1629 for ac_prog in cl
1630do
1631 # Extract the first word of "$ac_prog", so it can be a program name with args.
1632set dummy $ac_prog; ac_word=$2
1633echo "$as_me:$LINENO: checking for $ac_word" >&5
1634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 if test -n "$ac_ct_CC"; then
1639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1640else
1641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_ac_ct_CC="$ac_prog"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
c906108c 1651 fi
bec39cab
AC
1652done
1653done
1654
1655fi
1656fi
1657ac_ct_CC=$ac_cv_prog_ac_ct_CC
1658if test -n "$ac_ct_CC"; then
1659 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1660echo "${ECHO_T}$ac_ct_CC" >&6
1661else
1662 echo "$as_me:$LINENO: result: no" >&5
1663echo "${ECHO_T}no" >&6
c906108c
SS
1664fi
1665
bec39cab
AC
1666 test -n "$ac_ct_CC" && break
1667done
c906108c 1668
bec39cab
AC
1669 CC=$ac_ct_CC
1670fi
1671
1672fi
1673
1674
1675test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1676See \`config.log' for more details." >&5
1677echo "$as_me: error: no acceptable C compiler found in \$PATH
1678See \`config.log' for more details." >&2;}
1679 { (exit 1); exit 1; }; }
1680
1681# Provide some information about the compiler.
1682echo "$as_me:$LINENO:" \
1683 "checking for C compiler version" >&5
1684ac_compiler=`set X $ac_compile; echo $2`
1685{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1686 (eval $ac_compiler --version </dev/null >&5) 2>&5
1687 ac_status=$?
1688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1689 (exit $ac_status); }
1690{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1691 (eval $ac_compiler -v </dev/null >&5) 2>&5
1692 ac_status=$?
1693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694 (exit $ac_status); }
1695{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1696 (eval $ac_compiler -V </dev/null >&5) 2>&5
1697 ac_status=$?
1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699 (exit $ac_status); }
1700
1701cat >conftest.$ac_ext <<_ACEOF
1702/* confdefs.h. */
1703_ACEOF
1704cat confdefs.h >>conftest.$ac_ext
1705cat >>conftest.$ac_ext <<_ACEOF
1706/* end confdefs.h. */
1707
1708int
1709main ()
1710{
1711
1712 ;
1713 return 0;
1714}
1715_ACEOF
1716ac_clean_files_save=$ac_clean_files
1717ac_clean_files="$ac_clean_files a.out a.exe b.out"
1718# Try to create an executable without -o first, disregard a.out.
1719# It will help us diagnose broken compilers, and finding out an intuition
1720# of exeext.
1721echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1722echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1723ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1724if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1725 (eval $ac_link_default) 2>&5
1726 ac_status=$?
1727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728 (exit $ac_status); }; then
1729 # Find the output, starting from the most likely. This scheme is
1730# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1731# resort.
1732
1733# Be careful to initialize this variable, since it used to be cached.
1734# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1735ac_cv_exeext=
1736# b.out is created by i960 compilers.
1737for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1738do
1739 test -f "$ac_file" || continue
1740 case $ac_file in
1741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1742 ;;
1743 conftest.$ac_ext )
1744 # This is the source file.
1745 ;;
1746 [ab].out )
1747 # We found the default executable, but exeext='' is most
1748 # certainly right.
1749 break;;
1750 *.* )
1751 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1752 # FIXME: I believe we export ac_cv_exeext for Libtool,
1753 # but it would be cool to find out if it's true. Does anybody
1754 # maintain Libtool? --akim.
1755 export ac_cv_exeext
1756 break;;
1757 * )
1758 break;;
1759 esac
1760done
1761else
1762 echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1766See \`config.log' for more details." >&5
1767echo "$as_me: error: C compiler cannot create executables
1768See \`config.log' for more details." >&2;}
1769 { (exit 77); exit 77; }; }
1770fi
1771
1772ac_exeext=$ac_cv_exeext
1773echo "$as_me:$LINENO: result: $ac_file" >&5
1774echo "${ECHO_T}$ac_file" >&6
1775
1776# Check the compiler produces executables we can run. If not, either
1777# the compiler is broken, or we cross compile.
1778echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1779echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781# If not cross compiling, check that we can run a simple program.
1782if test "$cross_compiling" != yes; then
1783 if { ac_try='./$ac_file'
1784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1785 (eval $ac_try) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; }; then
1789 cross_compiling=no
c906108c 1790 else
bec39cab
AC
1791 if test "$cross_compiling" = maybe; then
1792 cross_compiling=yes
1793 else
1794 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1795If you meant to cross compile, use \`--host'.
1796See \`config.log' for more details." >&5
1797echo "$as_me: error: cannot run C compiled programs.
1798If you meant to cross compile, use \`--host'.
1799See \`config.log' for more details." >&2;}
1800 { (exit 1); exit 1; }; }
1801 fi
c906108c 1802 fi
bec39cab
AC
1803fi
1804echo "$as_me:$LINENO: result: yes" >&5
1805echo "${ECHO_T}yes" >&6
1806
1807rm -f a.out a.exe conftest$ac_cv_exeext b.out
1808ac_clean_files=$ac_clean_files_save
1809# Check the compiler produces executables we can run. If not, either
1810# the compiler is broken, or we cross compile.
1811echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1812echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1813echo "$as_me:$LINENO: result: $cross_compiling" >&5
1814echo "${ECHO_T}$cross_compiling" >&6
1815
1816echo "$as_me:$LINENO: checking for suffix of executables" >&5
1817echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1819 (eval $ac_link) 2>&5
1820 ac_status=$?
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }; then
1823 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1824# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1825# work properly (i.e., refer to `conftest.exe'), while it won't with
1826# `rm'.
1827for ac_file in conftest.exe conftest conftest.*; do
1828 test -f "$ac_file" || continue
1829 case $ac_file in
1830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1831 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1832 export ac_cv_exeext
1833 break;;
1834 * ) break;;
1835 esac
1836done
c906108c 1837else
bec39cab
AC
1838 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1839See \`config.log' for more details." >&5
1840echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1841See \`config.log' for more details." >&2;}
1842 { (exit 1); exit 1; }; }
c906108c 1843fi
c906108c 1844
bec39cab
AC
1845rm -f conftest$ac_cv_exeext
1846echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1847echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1848
bec39cab
AC
1849rm -f conftest.$ac_ext
1850EXEEXT=$ac_cv_exeext
1851ac_exeext=$EXEEXT
1852echo "$as_me:$LINENO: checking for suffix of object files" >&5
1853echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1854if test "${ac_cv_objext+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856else
1857 cat >conftest.$ac_ext <<_ACEOF
1858/* confdefs.h. */
1859_ACEOF
1860cat confdefs.h >>conftest.$ac_ext
1861cat >>conftest.$ac_ext <<_ACEOF
1862/* end confdefs.h. */
c906108c 1863
bec39cab
AC
1864int
1865main ()
1866{
c906108c 1867
bec39cab
AC
1868 ;
1869 return 0;
1870}
1871_ACEOF
1872rm -f conftest.o conftest.obj
1873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1874 (eval $ac_compile) 2>&5
1875 ac_status=$?
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; then
1878 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1879 case $ac_file in
1880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1881 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1882 break;;
1883 esac
1884done
c906108c 1885else
bec39cab
AC
1886 echo "$as_me: failed program was:" >&5
1887sed 's/^/| /' conftest.$ac_ext >&5
1888
1889{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1890See \`config.log' for more details." >&5
1891echo "$as_me: error: cannot compute suffix of object files: cannot compile
1892See \`config.log' for more details." >&2;}
1893 { (exit 1); exit 1; }; }
c906108c
SS
1894fi
1895
bec39cab
AC
1896rm -f conftest.$ac_cv_objext conftest.$ac_ext
1897fi
1898echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1899echo "${ECHO_T}$ac_cv_objext" >&6
1900OBJEXT=$ac_cv_objext
1901ac_objext=$OBJEXT
1902echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1903echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1904if test "${ac_cv_c_compiler_gnu+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1906else
bec39cab
AC
1907 cat >conftest.$ac_ext <<_ACEOF
1908/* confdefs.h. */
1909_ACEOF
1910cat confdefs.h >>conftest.$ac_ext
1911cat >>conftest.$ac_ext <<_ACEOF
1912/* end confdefs.h. */
1913
1914int
1915main ()
1916{
1917#ifndef __GNUC__
1918 choke me
1919#endif
1920
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925rm -f conftest.$ac_objext
1926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>conftest.er1
1928 ac_status=$?
1929 grep -v '^ *+' conftest.er1 >conftest.err
1930 rm -f conftest.er1
1931 cat conftest.err >&5
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); } &&
1934 { ac_try='test -z "$ac_c_werror_flag"
1935 || test ! -s conftest.err'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937 (eval $ac_try) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; } &&
1941 { ac_try='test -s conftest.$ac_objext'
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 (eval $ac_try) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; }; then
1947 ac_compiler_gnu=yes
1948else
1949 echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952ac_compiler_gnu=no
1953fi
1954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1955ac_cv_c_compiler_gnu=$ac_compiler_gnu
1956
1957fi
1958echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1959echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1960GCC=`test $ac_compiler_gnu = yes && echo yes`
1961ac_test_CFLAGS=${CFLAGS+set}
1962ac_save_CFLAGS=$CFLAGS
1963CFLAGS="-g"
1964echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1965echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1966if test "${ac_cv_prog_cc_g+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
1969 cat >conftest.$ac_ext <<_ACEOF
1970/* confdefs.h. */
1971_ACEOF
1972cat confdefs.h >>conftest.$ac_ext
1973cat >>conftest.$ac_ext <<_ACEOF
1974/* end confdefs.h. */
1975
1976int
1977main ()
1978{
1979
1980 ;
1981 return 0;
1982}
1983_ACEOF
1984rm -f conftest.$ac_objext
1985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1986 (eval $ac_compile) 2>conftest.er1
1987 ac_status=$?
1988 grep -v '^ *+' conftest.er1 >conftest.err
1989 rm -f conftest.er1
1990 cat conftest.err >&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -z "$ac_c_werror_flag"
1994 || test ! -s conftest.err'
1995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996 (eval $ac_try) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; } &&
2000 { ac_try='test -s conftest.$ac_objext'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
c906108c
SS
2006 ac_cv_prog_cc_g=yes
2007else
bec39cab
AC
2008 echo "$as_me: failed program was:" >&5
2009sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2010
bec39cab 2011ac_cv_prog_cc_g=no
c906108c 2012fi
bec39cab
AC
2013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2014fi
2015echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2016echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2017if test "$ac_test_CFLAGS" = set; then
bec39cab 2018 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2019elif test $ac_cv_prog_cc_g = yes; then
2020 if test "$GCC" = yes; then
2021 CFLAGS="-g -O2"
2022 else
2023 CFLAGS="-g"
2024 fi
2025else
2026 if test "$GCC" = yes; then
2027 CFLAGS="-O2"
2028 else
2029 CFLAGS=
2030 fi
2031fi
bec39cab
AC
2032echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2033echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2034if test "${ac_cv_prog_cc_stdc+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037 ac_cv_prog_cc_stdc=no
2038ac_save_CC=$CC
2039cat >conftest.$ac_ext <<_ACEOF
2040/* confdefs.h. */
2041_ACEOF
2042cat confdefs.h >>conftest.$ac_ext
2043cat >>conftest.$ac_ext <<_ACEOF
2044/* end confdefs.h. */
c906108c
SS
2045#include <stdarg.h>
2046#include <stdio.h>
2047#include <sys/types.h>
2048#include <sys/stat.h>
2049/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2050struct buf { int x; };
2051FILE * (*rcsopen) (struct buf *, struct stat *, int);
2052static char *e (p, i)
2053 char **p;
2054 int i;
2055{
2056 return p[i];
2057}
2058static char *f (char * (*g) (char **, int), char **p, ...)
2059{
2060 char *s;
2061 va_list v;
2062 va_start (v,p);
2063 s = g (p, va_arg (v,int));
2064 va_end (v);
2065 return s;
2066}
bec39cab
AC
2067
2068/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2069 function prototypes and stuff, but not '\xHH' hex character constants.
2070 These don't provoke an error unfortunately, instead are silently treated
2071 as 'x'. The following induces an error, until -std1 is added to get
2072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2073 array size at least. It's necessary to write '\x00'==0 to get something
2074 that's true only with -std1. */
2075int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2076
c906108c
SS
2077int test (int i, double x);
2078struct s1 {int (*f) (int a);};
2079struct s2 {int (*f) (double a);};
2080int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2081int argc;
2082char **argv;
bec39cab
AC
2083int
2084main ()
2085{
c906108c 2086return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091# Don't try gcc -ansi; that turns off useful extensions and
2092# breaks some systems' header files.
2093# AIX -qlanglvl=ansi
2094# Ultrix and OSF/1 -std1
2095# HP-UX 10.20 and later -Ae
2096# HP-UX older versions -Aa -D_HPUX_SOURCE
2097# SVR4 -Xc -D__EXTENSIONS__
2098for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2099do
2100 CC="$ac_save_CC $ac_arg"
2101 rm -f conftest.$ac_objext
2102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103 (eval $ac_compile) 2>conftest.er1
2104 ac_status=$?
2105 grep -v '^ *+' conftest.er1 >conftest.err
2106 rm -f conftest.er1
2107 cat conftest.err >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); } &&
2110 { ac_try='test -z "$ac_c_werror_flag"
2111 || test ! -s conftest.err'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 (eval $ac_try) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; } &&
2117 { ac_try='test -s conftest.$ac_objext'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2123 ac_cv_prog_cc_stdc=$ac_arg
2124break
c906108c 2125else
bec39cab
AC
2126 echo "$as_me: failed program was:" >&5
2127sed 's/^/| /' conftest.$ac_ext >&5
2128
c906108c 2129fi
bec39cab 2130rm -f conftest.err conftest.$ac_objext
c906108c 2131done
bec39cab
AC
2132rm -f conftest.$ac_ext conftest.$ac_objext
2133CC=$ac_save_CC
c906108c
SS
2134
2135fi
2136
bec39cab
AC
2137case "x$ac_cv_prog_cc_stdc" in
2138 x|xno)
2139 echo "$as_me:$LINENO: result: none needed" >&5
2140echo "${ECHO_T}none needed" >&6 ;;
2141 *)
2142 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2143echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2144 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2145esac
2146
bec39cab
AC
2147# Some people use a C++ compiler to compile C. Since we use `exit',
2148# in C++ we need to declare it. In case someone uses the same compiler
2149# for both compiling C and C++ we need to have the C++ compiler decide
2150# the declaration of exit, since it's the most demanding environment.
2151cat >conftest.$ac_ext <<_ACEOF
2152#ifndef __cplusplus
2153 choke me
2154#endif
2155_ACEOF
2156rm -f conftest.$ac_objext
2157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>conftest.er1
2159 ac_status=$?
2160 grep -v '^ *+' conftest.er1 >conftest.err
2161 rm -f conftest.er1
2162 cat conftest.err >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try='test -z "$ac_c_werror_flag"
2166 || test ! -s conftest.err'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 (eval $ac_try) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; } &&
2172 { ac_try='test -s conftest.$ac_objext'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2178 for ac_declaration in \
2179 '' \
2180 'extern "C" void std::exit (int) throw (); using std::exit;' \
2181 'extern "C" void std::exit (int); using std::exit;' \
2182 'extern "C" void exit (int) throw ();' \
2183 'extern "C" void exit (int);' \
2184 'void exit (int);'
2185do
2186 cat >conftest.$ac_ext <<_ACEOF
2187/* confdefs.h. */
2188_ACEOF
2189cat confdefs.h >>conftest.$ac_ext
2190cat >>conftest.$ac_ext <<_ACEOF
2191/* end confdefs.h. */
2192$ac_declaration
2193#include <stdlib.h>
2194int
2195main ()
2196{
2197exit (42);
2198 ;
2199 return 0;
2200}
2201_ACEOF
2202rm -f conftest.$ac_objext
2203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204 (eval $ac_compile) 2>conftest.er1
2205 ac_status=$?
2206 grep -v '^ *+' conftest.er1 >conftest.err
2207 rm -f conftest.er1
2208 cat conftest.err >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); } &&
2211 { ac_try='test -z "$ac_c_werror_flag"
2212 || test ! -s conftest.err'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; } &&
2218 { ac_try='test -s conftest.$ac_objext'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2224 :
2225else
2226 echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2228
bec39cab 2229continue
c906108c 2230fi
bec39cab
AC
2231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232 cat >conftest.$ac_ext <<_ACEOF
2233/* confdefs.h. */
2234_ACEOF
2235cat confdefs.h >>conftest.$ac_ext
2236cat >>conftest.$ac_ext <<_ACEOF
2237/* end confdefs.h. */
2238$ac_declaration
2239int
2240main ()
2241{
2242exit (42);
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247rm -f conftest.$ac_objext
2248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>conftest.er1
2250 ac_status=$?
2251 grep -v '^ *+' conftest.er1 >conftest.err
2252 rm -f conftest.er1
2253 cat conftest.err >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } &&
2256 { ac_try='test -z "$ac_c_werror_flag"
2257 || test ! -s conftest.err'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2269 break
2270else
2271 echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2273
bec39cab
AC
2274fi
2275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2276done
2277rm -f conftest*
2278if test -n "$ac_declaration"; then
2279 echo '#ifdef __cplusplus' >>confdefs.h
2280 echo $ac_declaration >>confdefs.h
2281 echo '#endif' >>confdefs.h
c906108c
SS
2282fi
2283
bec39cab
AC
2284else
2285 echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2287
bec39cab
AC
2288fi
2289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290ac_ext=c
2291ac_cpp='$CPP $CPPFLAGS'
2292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2295
bec39cab
AC
2296cat >>confdefs.h <<\_ACEOF
2297#define _GNU_SOURCE 1
2298_ACEOF
c906108c
SS
2299
2300
8bb2c122 2301
bec39cab
AC
2302ac_ext=c
2303ac_cpp='$CPP $CPPFLAGS'
2304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2308echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2309# On Suns, sometimes $CPP names a directory.
2310if test -n "$CPP" && test -d "$CPP"; then
2311 CPP=
8bb2c122 2312fi
bec39cab
AC
2313if test -z "$CPP"; then
2314 if test "${ac_cv_prog_CPP+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316else
2317 # Double quotes because CPP needs to be expanded
2318 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2319 do
2320 ac_preproc_ok=false
2321for ac_c_preproc_warn_flag in '' yes
2322do
2323 # Use a header file that comes with gcc, so configuring glibc
2324 # with a fresh cross-compiler works.
2325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2326 # <limits.h> exists even on freestanding compilers.
2327 # On the NeXT, cc -E runs the code through the compiler's parser,
2328 # not just through cpp. "Syntax error" is here to catch this case.
2329 cat >conftest.$ac_ext <<_ACEOF
2330/* confdefs.h. */
2331_ACEOF
2332cat confdefs.h >>conftest.$ac_ext
2333cat >>conftest.$ac_ext <<_ACEOF
2334/* end confdefs.h. */
2335#ifdef __STDC__
2336# include <limits.h>
2337#else
2338# include <assert.h>
2339#endif
2340 Syntax error
2341_ACEOF
2342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2344 ac_status=$?
2345 grep -v '^ *+' conftest.er1 >conftest.err
2346 rm -f conftest.er1
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } >/dev/null; then
2350 if test -s conftest.err; then
2351 ac_cpp_err=$ac_c_preproc_warn_flag
2352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2353 else
2354 ac_cpp_err=
2355 fi
8bb2c122 2356else
bec39cab 2357 ac_cpp_err=yes
8bb2c122 2358fi
bec39cab
AC
2359if test -z "$ac_cpp_err"; then
2360 :
8bb2c122 2361else
bec39cab
AC
2362 echo "$as_me: failed program was:" >&5
2363sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 # Broken: fails on valid input.
2366continue
2367fi
2368rm -f conftest.err conftest.$ac_ext
2369
2370 # OK, works on sane cases. Now check whether non-existent headers
2371 # can be detected and how.
2372 cat >conftest.$ac_ext <<_ACEOF
2373/* confdefs.h. */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h. */
2378#include <ac_nonexistent.h>
2379_ACEOF
2380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } >/dev/null; then
2388 if test -s conftest.err; then
2389 ac_cpp_err=$ac_c_preproc_warn_flag
2390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2391 else
2392 ac_cpp_err=
2393 fi
8bb2c122 2394else
bec39cab 2395 ac_cpp_err=yes
8bb2c122 2396fi
bec39cab
AC
2397if test -z "$ac_cpp_err"; then
2398 # Broken: success on invalid input.
2399continue
8bb2c122 2400else
bec39cab
AC
2401 echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2403
bec39cab
AC
2404 # Passes both tests.
2405ac_preproc_ok=:
2406break
8bb2c122 2407fi
bec39cab 2408rm -f conftest.err conftest.$ac_ext
8bb2c122 2409
bec39cab
AC
2410done
2411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2412rm -f conftest.err conftest.$ac_ext
2413if $ac_preproc_ok; then
2414 break
2415fi
8bb2c122 2416
bec39cab
AC
2417 done
2418 ac_cv_prog_CPP=$CPP
ddc9cd0f 2419
c906108c 2420fi
bec39cab
AC
2421 CPP=$ac_cv_prog_CPP
2422else
2423 ac_cv_prog_CPP=$CPP
c906108c 2424fi
bec39cab
AC
2425echo "$as_me:$LINENO: result: $CPP" >&5
2426echo "${ECHO_T}$CPP" >&6
2427ac_preproc_ok=false
2428for ac_c_preproc_warn_flag in '' yes
2429do
2430 # Use a header file that comes with gcc, so configuring glibc
2431 # with a fresh cross-compiler works.
2432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2433 # <limits.h> exists even on freestanding compilers.
2434 # On the NeXT, cc -E runs the code through the compiler's parser,
2435 # not just through cpp. "Syntax error" is here to catch this case.
2436 cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h. */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h. */
2442#ifdef __STDC__
2443# include <limits.h>
2444#else
2445# include <assert.h>
2446#endif
2447 Syntax error
2448_ACEOF
2449if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } >/dev/null; then
2457 if test -s conftest.err; then
2458 ac_cpp_err=$ac_c_preproc_warn_flag
2459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2460 else
2461 ac_cpp_err=
2462 fi
c906108c 2463else
bec39cab 2464 ac_cpp_err=yes
c906108c 2465fi
bec39cab
AC
2466if test -z "$ac_cpp_err"; then
2467 :
c906108c 2468else
bec39cab
AC
2469 echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 # Broken: fails on valid input.
2473continue
2474fi
2475rm -f conftest.err conftest.$ac_ext
2476
2477 # OK, works on sane cases. Now check whether non-existent headers
2478 # can be detected and how.
2479 cat >conftest.$ac_ext <<_ACEOF
2480/* confdefs.h. */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h. */
2485#include <ac_nonexistent.h>
2486_ACEOF
2487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } >/dev/null; then
2495 if test -s conftest.err; then
2496 ac_cpp_err=$ac_c_preproc_warn_flag
2497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2498 else
2499 ac_cpp_err=
2500 fi
c906108c 2501else
bec39cab 2502 ac_cpp_err=yes
c906108c 2503fi
bec39cab
AC
2504if test -z "$ac_cpp_err"; then
2505 # Broken: success on invalid input.
2506continue
c906108c 2507else
bec39cab
AC
2508 echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2510
bec39cab
AC
2511 # Passes both tests.
2512ac_preproc_ok=:
2513break
c906108c 2514fi
bec39cab 2515rm -f conftest.err conftest.$ac_ext
c906108c 2516
bec39cab
AC
2517done
2518# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2519rm -f conftest.err conftest.$ac_ext
2520if $ac_preproc_ok; then
c906108c
SS
2521 :
2522else
bec39cab
AC
2523 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2524See \`config.log' for more details." >&5
2525echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2526See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }
c906108c 2528fi
c906108c 2529
bec39cab
AC
2530ac_ext=c
2531ac_cpp='$CPP $CPPFLAGS'
2532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535
2536
2537echo "$as_me:$LINENO: checking for egrep" >&5
2538echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2539if test "${ac_cv_prog_egrep+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541else
2542 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2543 then ac_cv_prog_egrep='grep -E'
2544 else ac_cv_prog_egrep='egrep'
2545 fi
c906108c 2546fi
bec39cab
AC
2547echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2548echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2549 EGREP=$ac_cv_prog_egrep
c906108c 2550
bec39cab
AC
2551
2552
2553echo "$as_me:$LINENO: checking for AIX" >&5
2554echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2555cat >conftest.$ac_ext <<_ACEOF
2556/* confdefs.h. */
2557_ACEOF
2558cat confdefs.h >>conftest.$ac_ext
2559cat >>conftest.$ac_ext <<_ACEOF
2560/* end confdefs.h. */
2561#ifdef _AIX
2562 yes
2563#endif
2564
2565_ACEOF
c906108c 2566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab
AC
2567 $EGREP "yes" >/dev/null 2>&1; then
2568 echo "$as_me:$LINENO: result: yes" >&5
2569echo "${ECHO_T}yes" >&6
2570cat >>confdefs.h <<\_ACEOF
2571#define _ALL_SOURCE 1
2572_ACEOF
2573
c906108c 2574else
bec39cab
AC
2575 echo "$as_me:$LINENO: result: no" >&5
2576echo "${ECHO_T}no" >&6
c906108c
SS
2577fi
2578rm -f conftest*
2579
c906108c 2580
bec39cab
AC
2581echo "$as_me:$LINENO: checking for library containing strerror" >&5
2582echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2583if test "${ac_cv_search_strerror+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2585else
bec39cab
AC
2586 ac_func_search_save_LIBS=$LIBS
2587ac_cv_search_strerror=no
2588cat >conftest.$ac_ext <<_ACEOF
2589/* confdefs.h. */
2590_ACEOF
2591cat confdefs.h >>conftest.$ac_ext
2592cat >>conftest.$ac_ext <<_ACEOF
2593/* end confdefs.h. */
c906108c 2594
bec39cab
AC
2595/* Override any gcc2 internal prototype to avoid an error. */
2596#ifdef __cplusplus
2597extern "C"
2598#endif
2599/* We use char because int might match the return type of a gcc2
2600 builtin and then its argument prototype would still apply. */
2601char strerror ();
2602int
2603main ()
2604{
2605strerror ();
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext conftest$ac_exeext
2611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2612 (eval $ac_link) 2>conftest.er1
2613 ac_status=$?
2614 grep -v '^ *+' conftest.er1 >conftest.err
2615 rm -f conftest.er1
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest$ac_exeext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_cv_search_strerror="none required"
2633else
2634 echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
2637fi
2638rm -f conftest.err conftest.$ac_objext \
2639 conftest$ac_exeext conftest.$ac_ext
2640if test "$ac_cv_search_strerror" = no; then
2641 for ac_lib in cposix; do
2642 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2643 cat >conftest.$ac_ext <<_ACEOF
2644/* confdefs.h. */
2645_ACEOF
2646cat confdefs.h >>conftest.$ac_ext
2647cat >>conftest.$ac_ext <<_ACEOF
2648/* end confdefs.h. */
2649
2650/* Override any gcc2 internal prototype to avoid an error. */
2651#ifdef __cplusplus
2652extern "C"
2653#endif
2654/* We use char because int might match the return type of a gcc2
2655 builtin and then its argument prototype would still apply. */
2656char strerror ();
2657int
2658main ()
2659{
2660strerror ();
2661 ;
2662 return 0;
2663}
2664_ACEOF
2665rm -f conftest.$ac_objext conftest$ac_exeext
2666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2667 (eval $ac_link) 2>conftest.er1
2668 ac_status=$?
2669 grep -v '^ *+' conftest.er1 >conftest.err
2670 rm -f conftest.er1
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } &&
2674 { ac_try='test -z "$ac_c_werror_flag"
2675 || test ! -s conftest.err'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 (eval $ac_try) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest$ac_exeext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 (eval $ac_try) 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2687 ac_cv_search_strerror="-l$ac_lib"
2688break
c906108c 2689else
bec39cab
AC
2690 echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2692
2693fi
bec39cab
AC
2694rm -f conftest.err conftest.$ac_objext \
2695 conftest$ac_exeext conftest.$ac_ext
2696 done
c906108c 2697fi
bec39cab 2698LIBS=$ac_func_search_save_LIBS
c906108c 2699fi
bec39cab
AC
2700echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2701echo "${ECHO_T}$ac_cv_search_strerror" >&6
2702if test "$ac_cv_search_strerror" != no; then
2703 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2704
c906108c
SS
2705fi
2706
c906108c 2707
c906108c 2708
bec39cab
AC
2709
2710echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2711echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2712if test "${am_cv_prog_cc_stdc+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2714else
bec39cab
AC
2715 am_cv_prog_cc_stdc=no
2716ac_save_CC="$CC"
2717# Don't try gcc -ansi; that turns off useful extensions and
2718# breaks some systems' header files.
2719# AIX -qlanglvl=ansi
2720# Ultrix and OSF/1 -std1
2721# HP-UX 10.20 and later -Ae
2722# HP-UX older versions -Aa -D_HPUX_SOURCE
2723# SVR4 -Xc -D__EXTENSIONS__
2724for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725do
2726 CC="$ac_save_CC $ac_arg"
2727 cat >conftest.$ac_ext <<_ACEOF
2728/* confdefs.h. */
2729_ACEOF
2730cat confdefs.h >>conftest.$ac_ext
2731cat >>conftest.$ac_ext <<_ACEOF
2732/* end confdefs.h. */
2733#include <stdarg.h>
2734#include <stdio.h>
2735#include <sys/types.h>
2736#include <sys/stat.h>
2737/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2738struct buf { int x; };
2739FILE * (*rcsopen) (struct buf *, struct stat *, int);
2740static char *e (p, i)
2741 char **p;
2742 int i;
2743{
2744 return p[i];
2745}
2746static char *f (char * (*g) (char **, int), char **p, ...)
2747{
2748 char *s;
2749 va_list v;
2750 va_start (v,p);
2751 s = g (p, va_arg (v,int));
2752 va_end (v);
2753 return s;
2754}
2755int test (int i, double x);
2756struct s1 {int (*f) (int a);};
2757struct s2 {int (*f) (double a);};
2758int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2759int argc;
2760char **argv;
c906108c 2761
bec39cab
AC
2762int
2763main ()
2764{
c906108c 2765
bec39cab 2766return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2767
bec39cab
AC
2768 ;
2769 return 0;
2770}
2771_ACEOF
2772rm -f conftest.$ac_objext
2773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2775 ac_status=$?
2776 grep -v '^ *+' conftest.er1 >conftest.err
2777 rm -f conftest.er1
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2794 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2795else
bec39cab
AC
2796 echo "$as_me: failed program was:" >&5
2797sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2798
2799fi
bec39cab
AC
2800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801done
2802CC="$ac_save_CC"
c906108c
SS
2803
2804fi
2805
bec39cab
AC
2806if test -z "$am_cv_prog_cc_stdc"; then
2807 echo "$as_me:$LINENO: result: none needed" >&5
2808echo "${ECHO_T}none needed" >&6
c906108c 2809else
bec39cab
AC
2810 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2811echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2812fi
bec39cab
AC
2813case "x$am_cv_prog_cc_stdc" in
2814 x|xno) ;;
2815 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2816esac
c906108c 2817
c906108c 2818
bec39cab
AC
2819ac_aux_dir=
2820for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2821 if test -f $ac_dir/install-sh; then
2822 ac_aux_dir=$ac_dir
2823 ac_install_sh="$ac_aux_dir/install-sh -c"
2824 break
2825 elif test -f $ac_dir/install.sh; then
2826 ac_aux_dir=$ac_dir
2827 ac_install_sh="$ac_aux_dir/install.sh -c"
2828 break
2829 elif test -f $ac_dir/shtool; then
2830 ac_aux_dir=$ac_dir
2831 ac_install_sh="$ac_aux_dir/shtool install -c"
2832 break
2833 fi
2834done
2835if test -z "$ac_aux_dir"; then
2836 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2837echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2838 { (exit 1); exit 1; }; }
c906108c 2839fi
bec39cab
AC
2840ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2841ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2842ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2843
bec39cab
AC
2844# Make sure we can run config.sub.
2845$ac_config_sub sun4 >/dev/null 2>&1 ||
2846 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2847echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2848 { (exit 1); exit 1; }; }
2849
2850echo "$as_me:$LINENO: checking build system type" >&5
2851echo $ECHO_N "checking build system type... $ECHO_C" >&6
2852if test "${ac_cv_build+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854else
2855 ac_cv_build_alias=$build_alias
2856test -z "$ac_cv_build_alias" &&
2857 ac_cv_build_alias=`$ac_config_guess`
2858test -z "$ac_cv_build_alias" &&
2859 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2860echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2861 { (exit 1); exit 1; }; }
2862ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2863 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2864echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2865 { (exit 1); exit 1; }; }
2866
2867fi
2868echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2869echo "${ECHO_T}$ac_cv_build" >&6
2870build=$ac_cv_build
2871build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2872build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2873build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2874
2875
2876echo "$as_me:$LINENO: checking host system type" >&5
2877echo $ECHO_N "checking host system type... $ECHO_C" >&6
2878if test "${ac_cv_host+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 ac_cv_host_alias=$host_alias
2882test -z "$ac_cv_host_alias" &&
2883 ac_cv_host_alias=$ac_cv_build_alias
2884ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2885 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2886echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2887 { (exit 1); exit 1; }; }
2888
2889fi
2890echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2891echo "${ECHO_T}$ac_cv_host" >&6
2892host=$ac_cv_host
2893host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2894host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2895host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2896
2897
2898echo "$as_me:$LINENO: checking target system type" >&5
2899echo $ECHO_N "checking target system type... $ECHO_C" >&6
2900if test "${ac_cv_target+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903 ac_cv_target_alias=$target_alias
2904test "x$ac_cv_target_alias" = "x" &&
2905 ac_cv_target_alias=$ac_cv_host_alias
2906ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2907 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2908echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2909 { (exit 1); exit 1; }; }
2910
2911fi
2912echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2913echo "${ECHO_T}$ac_cv_target" >&6
2914target=$ac_cv_target
2915target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2916target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2917target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2918
c906108c 2919
bec39cab
AC
2920# The aliases save the names the user supplied, while $host etc.
2921# will get canonicalized.
2922test -n "$target_alias" &&
2923 test "$program_prefix$program_suffix$program_transform_name" = \
2924 NONENONEs,x,x, &&
2925 program_prefix=${target_alias}-
c906108c 2926
bec39cab
AC
2927# FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
2928# doesn't support cross-compilation, but the one from Autoconf 2.5x
2929# does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
2930# deal with the lossage. Note that CY_GNU_GETTEXT currently calls
2931# AC_PROG_RANLIB. This can be removed when we switch to Autoconf
2932# 2.5x.
2933if test -n "$ac_tool_prefix"; then
2934 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2935set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2936echo "$as_me:$LINENO: checking for $ac_word" >&5
2937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938if test "${ac_cv_prog_RANLIB+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2940else
bec39cab
AC
2941 if test -n "$RANLIB"; then
2942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 2943else
bec39cab
AC
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2954 fi
2955done
2956done
2957
c906108c 2958fi
c906108c 2959fi
bec39cab
AC
2960RANLIB=$ac_cv_prog_RANLIB
2961if test -n "$RANLIB"; then
2962 echo "$as_me:$LINENO: result: $RANLIB" >&5
2963echo "${ECHO_T}$RANLIB" >&6
2964else
2965 echo "$as_me:$LINENO: result: no" >&5
2966echo "${ECHO_T}no" >&6
c906108c
SS
2967fi
2968
bec39cab
AC
2969fi
2970if test -z "$ac_cv_prog_RANLIB"; then
2971 ac_ct_RANLIB=$RANLIB
2972 # Extract the first word of "ranlib", so it can be a program name with args.
2973set dummy 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_ac_ct_RANLIB+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2978else
bec39cab
AC
2979 if test -n "$ac_ct_RANLIB"; then
2980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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
2996 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2997fi
2998fi
2999ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3000if test -n "$ac_ct_RANLIB"; then
3001 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3002echo "${ECHO_T}$ac_ct_RANLIB" >&6
c906108c 3003else
bec39cab
AC
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
c906108c 3006fi
c906108c 3007
bec39cab
AC
3008 RANLIB=$ac_ct_RANLIB
3009else
3010 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
3011fi
3012
c906108c 3013
c906108c 3014
bec39cab
AC
3015CONFIG_OBS=
3016CONFIG_DEPS=
3017CONFIG_SRCS=
3018ENABLE_CFLAGS=
c906108c 3019
bec39cab
AC
3020CONFIG_ALL=
3021CONFIG_CLEAN=
3022CONFIG_INSTALL=
3023CONFIG_UNINSTALL=
3024
3025
3026echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3027echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3028set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3029if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031else
3032 cat >conftest.make <<\_ACEOF
3033all:
3034 @echo 'ac_maketemp="$(MAKE)"'
3035_ACEOF
3036# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3037eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3038if test -n "$ac_maketemp"; then
3039 eval ac_cv_prog_make_${ac_make}_set=yes
c906108c 3040else
bec39cab 3041 eval ac_cv_prog_make_${ac_make}_set=no
c906108c 3042fi
bec39cab
AC
3043rm -f conftest.make
3044fi
3045if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3046 echo "$as_me:$LINENO: result: yes" >&5
3047echo "${ECHO_T}yes" >&6
3048 SET_MAKE=
3049else
3050 echo "$as_me:$LINENO: result: no" >&5
3051echo "${ECHO_T}no" >&6
3052 SET_MAKE="MAKE=${MAKE-make}"
c906108c
SS
3053fi
3054
bec39cab
AC
3055if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3057set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3058echo "$as_me:$LINENO: checking for $ac_word" >&5
3059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060if test "${ac_cv_prog_RANLIB+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063 if test -n "$RANLIB"; then
3064 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3076 fi
3077done
3078done
c906108c 3079
bec39cab
AC
3080fi
3081fi
3082RANLIB=$ac_cv_prog_RANLIB
3083if test -n "$RANLIB"; then
3084 echo "$as_me:$LINENO: result: $RANLIB" >&5
3085echo "${ECHO_T}$RANLIB" >&6
c906108c 3086else
bec39cab
AC
3087 echo "$as_me:$LINENO: result: no" >&5
3088echo "${ECHO_T}no" >&6
c906108c
SS
3089fi
3090
bec39cab
AC
3091fi
3092if test -z "$ac_cv_prog_RANLIB"; then
3093 ac_ct_RANLIB=$RANLIB
3094 # Extract the first word of "ranlib", so it can be a program name with args.
3095set dummy ranlib; ac_word=$2
3096echo "$as_me:$LINENO: checking for $ac_word" >&5
3097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100else
3101 if test -n "$ac_ct_RANLIB"; then
3102 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3103else
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_ac_ct_RANLIB="ranlib"
3112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115done
c906108c 3116done
bec39cab
AC
3117
3118 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3119fi
3120fi
3121ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3122if test -n "$ac_ct_RANLIB"; then
3123 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3124echo "${ECHO_T}$ac_ct_RANLIB" >&6
3125else
3126 echo "$as_me:$LINENO: result: no" >&5
3127echo "${ECHO_T}no" >&6
c906108c
SS
3128fi
3129
bec39cab 3130 RANLIB=$ac_ct_RANLIB
c906108c 3131else
bec39cab
AC
3132 RANLIB="$ac_cv_prog_RANLIB"
3133fi
3134
3135echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3136echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3137if test "${ac_cv_header_stdc+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3139else
bec39cab
AC
3140 cat >conftest.$ac_ext <<_ACEOF
3141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h. */
3146#include <stdlib.h>
3147#include <stdarg.h>
3148#include <string.h>
3149#include <float.h>
3150
3151int
c906108c
SS
3152main ()
3153{
bec39cab
AC
3154
3155 ;
3156 return 0;
c906108c 3157}
bec39cab
AC
3158_ACEOF
3159rm -f conftest.$ac_objext
3160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161 (eval $ac_compile) 2>conftest.er1
3162 ac_status=$?
3163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -z "$ac_c_werror_flag"
3169 || test ! -s conftest.err'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 (eval $ac_try) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 ac_cv_header_stdc=yes
c906108c 3182else
bec39cab
AC
3183 echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3185
bec39cab 3186ac_cv_header_stdc=no
c906108c 3187fi
bec39cab 3188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3189
bec39cab
AC
3190if test $ac_cv_header_stdc = yes; then
3191 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3192 cat >conftest.$ac_ext <<_ACEOF
3193/* confdefs.h. */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h. */
3198#include <string.h>
c906108c 3199
bec39cab
AC
3200_ACEOF
3201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3202 $EGREP "memchr" >/dev/null 2>&1; then
3203 :
c906108c 3204else
bec39cab 3205 ac_cv_header_stdc=no
c906108c 3206fi
bec39cab 3207rm -f conftest*
c906108c 3208
bec39cab 3209fi
c906108c 3210
bec39cab
AC
3211if test $ac_cv_header_stdc = yes; then
3212 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3213 cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h. */
3219#include <stdlib.h>
c906108c 3220
bec39cab
AC
3221_ACEOF
3222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3223 $EGREP "free" >/dev/null 2>&1; then
3224 :
c906108c 3225else
bec39cab 3226 ac_cv_header_stdc=no
c906108c
SS
3227fi
3228rm -f conftest*
c906108c 3229
c906108c 3230fi
c906108c 3231
bec39cab
AC
3232if test $ac_cv_header_stdc = yes; then
3233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c906108c 3234 if test "$cross_compiling" = yes; then
bec39cab 3235 :
c906108c 3236else
bec39cab
AC
3237 cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h. */
3243#include <ctype.h>
3244#if ((' ' & 0x0FF) == 0x020)
3245# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3246# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3247#else
3248# define ISLOWER(c) \
3249 (('a' <= (c) && (c) <= 'i') \
3250 || ('j' <= (c) && (c) <= 'r') \
3251 || ('s' <= (c) && (c) <= 'z'))
3252# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3253#endif
c906108c 3254
bec39cab
AC
3255#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3256int
3257main ()
3258{
3259 int i;
3260 for (i = 0; i < 256; i++)
3261 if (XOR (islower (i), ISLOWER (i))
3262 || toupper (i) != TOUPPER (i))
3263 exit(2);
3264 exit (0);
3265}
3266_ACEOF
3267rm -f conftest$ac_exeext
3268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 :
3279else
3280 echo "$as_me: program exited with status $ac_status" >&5
3281echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3283
bec39cab
AC
3284( exit $ac_status )
3285ac_cv_header_stdc=no
3286fi
3287rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3288fi
3289fi
3290fi
3291echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3292echo "${ECHO_T}$ac_cv_header_stdc" >&6
3293if test $ac_cv_header_stdc = yes; then
c906108c 3294
bec39cab
AC
3295cat >>confdefs.h <<\_ACEOF
3296#define STDC_HEADERS 1
3297_ACEOF
c906108c 3298
bec39cab 3299fi
c906108c 3300
bec39cab
AC
3301echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3302echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3303if test "${ac_cv_c_const+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305else
3306 cat >conftest.$ac_ext <<_ACEOF
3307/* confdefs.h. */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h. */
c906108c 3312
bec39cab
AC
3313int
3314main ()
3315{
3316/* FIXME: Include the comments suggested by Paul. */
3317#ifndef __cplusplus
3318 /* Ultrix mips cc rejects this. */
3319 typedef int charset[2];
3320 const charset x;
3321 /* SunOS 4.1.1 cc rejects this. */
3322 char const *const *ccp;
3323 char **p;
3324 /* NEC SVR4.0.2 mips cc rejects this. */
3325 struct point {int x, y;};
3326 static struct point const zero = {0,0};
3327 /* AIX XL C 1.02.0.0 rejects this.
3328 It does not let you subtract one const X* pointer from another in
3329 an arm of an if-expression whose if-part is not a constant
3330 expression */
3331 const char *g = "string";
3332 ccp = &g + (g ? g-g : 0);
3333 /* HPUX 7.0 cc rejects these. */
3334 ++ccp;
3335 p = (char**) ccp;
3336 ccp = (char const *const *) p;
3337 { /* SCO 3.2v4 cc rejects this. */
3338 char *t;
3339 char const *s = 0 ? (char *) 0 : (char const *) 0;
3340
3341 *t++ = 0;
3342 }
3343 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3344 int x[] = {25, 17};
3345 const int *foo = &x[0];
3346 ++foo;
3347 }
3348 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3349 typedef const int *iptr;
3350 iptr p = 0;
3351 ++p;
3352 }
3353 { /* AIX XL C 1.02.0.0 rejects this saying
3354 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3355 struct s { int j; const int *ap[3]; };
3356 struct s *b; b->j = 5;
3357 }
3358 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3359 const int foo = 10;
3360 }
3361#endif
c906108c 3362
bec39cab
AC
3363 ;
3364 return 0;
3365}
3366_ACEOF
3367rm -f conftest.$ac_objext
3368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369 (eval $ac_compile) 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -z "$ac_c_werror_flag"
3377 || test ! -s conftest.err'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 ac_cv_c_const=yes
c906108c 3390else
bec39cab
AC
3391 echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3393
bec39cab
AC
3394ac_cv_c_const=no
3395fi
3396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3397fi
bec39cab
AC
3398echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3399echo "${ECHO_T}$ac_cv_c_const" >&6
3400if test $ac_cv_c_const = no; then
c906108c 3401
bec39cab
AC
3402cat >>confdefs.h <<\_ACEOF
3403#define const
3404_ACEOF
c906108c
SS
3405
3406fi
3407
bec39cab
AC
3408echo "$as_me:$LINENO: checking for inline" >&5
3409echo $ECHO_N "checking for inline... $ECHO_C" >&6
3410if test "${ac_cv_c_inline+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3412else
bec39cab
AC
3413 ac_cv_c_inline=no
3414for ac_kw in inline __inline__ __inline; do
3415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h. */
3421#ifndef __cplusplus
3422typedef int foo_t;
3423static $ac_kw foo_t static_foo () {return 0; }
3424$ac_kw foo_t foo () {return 0; }
c906108c
SS
3425#endif
3426
bec39cab
AC
3427_ACEOF
3428rm -f conftest.$ac_objext
3429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430 (eval $ac_compile) 2>conftest.er1
3431 ac_status=$?
3432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -z "$ac_c_werror_flag"
3438 || test ! -s conftest.err'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; } &&
3444 { ac_try='test -s conftest.$ac_objext'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3450 ac_cv_c_inline=$ac_kw; break
c906108c 3451else
bec39cab
AC
3452 echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3454
c906108c 3455fi
bec39cab 3456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
3457done
3458
bec39cab
AC
3459fi
3460echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3461echo "${ECHO_T}$ac_cv_c_inline" >&6
c906108c 3462
c906108c 3463
bec39cab
AC
3464case $ac_cv_c_inline in
3465 inline | yes) ;;
3466 *)
3467 case $ac_cv_c_inline in
3468 no) ac_val=;;
3469 *) ac_val=$ac_cv_c_inline;;
3470 esac
3471 cat >>confdefs.h <<_ACEOF
3472#ifndef __cplusplus
3473#define inline $ac_val
c906108c 3474#endif
bec39cab
AC
3475_ACEOF
3476 ;;
3477esac
c906108c 3478
bec39cab 3479# On IRIX 5.3, sys/types and inttypes.h are conflicting.
c906108c 3480
c906108c 3481
c906108c 3482
c906108c 3483
c906108c 3484
c906108c 3485
c906108c 3486
c906108c 3487
c906108c 3488
bec39cab
AC
3489for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3490 inttypes.h stdint.h unistd.h
3491do
3492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3493echo "$as_me:$LINENO: checking for $ac_header" >&5
3494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3495if eval "test \"\${$as_ac_Header+set}\" = set"; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497else
3498 cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h. */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h. */
3504$ac_includes_default
3505
3506#include <$ac_header>
3507_ACEOF
3508rm -f conftest.$ac_objext
3509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 (eval $ac_try) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 eval "$as_ac_Header=yes"
3531else
3532 echo "$as_me: failed program was:" >&5
3533sed 's/^/| /' conftest.$ac_ext >&5
3534
3535eval "$as_ac_Header=no"
3536fi
3537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3538fi
3539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3541if test `eval echo '${'$as_ac_Header'}'` = yes; then
3542 cat >>confdefs.h <<_ACEOF
3543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3544_ACEOF
c906108c 3545
c906108c
SS
3546fi
3547
bec39cab 3548done
c906108c 3549
c906108c 3550
bec39cab
AC
3551echo "$as_me:$LINENO: checking for off_t" >&5
3552echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3553if test "${ac_cv_type_off_t+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3555else
bec39cab
AC
3556 cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h. */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h. */
3562$ac_includes_default
3563int
3564main ()
3565{
3566if ((off_t *) 0)
3567 return 0;
3568if (sizeof (off_t))
3569 return 0;
3570 ;
3571 return 0;
3572}
3573_ACEOF
3574rm -f conftest.$ac_objext
3575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3576 (eval $ac_compile) 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } &&
3583 { ac_try='test -z "$ac_c_werror_flag"
3584 || test ! -s conftest.err'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; } &&
3590 { ac_try='test -s conftest.$ac_objext'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 (eval $ac_try) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3596 ac_cv_type_off_t=yes
3597else
3598 echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
3600
3601ac_cv_type_off_t=no
c906108c 3602fi
bec39cab 3603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3604fi
bec39cab
AC
3605echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3606echo "${ECHO_T}$ac_cv_type_off_t" >&6
3607if test $ac_cv_type_off_t = yes; then
3608 :
c906108c 3609else
bec39cab
AC
3610
3611cat >>confdefs.h <<_ACEOF
3612#define off_t long
3613_ACEOF
3614
3615fi
3616
3617echo "$as_me:$LINENO: checking for size_t" >&5
3618echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3619if test "${ac_cv_type_size_t+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622 cat >conftest.$ac_ext <<_ACEOF
3623/* confdefs.h. */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h. */
3628$ac_includes_default
3629int
3630main ()
3631{
3632if ((size_t *) 0)
3633 return 0;
3634if (sizeof (size_t))
3635 return 0;
3636 ;
3637 return 0;
3638}
3639_ACEOF
3640rm -f conftest.$ac_objext
3641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642 (eval $ac_compile) 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -z "$ac_c_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try='test -s conftest.$ac_objext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 ac_cv_type_size_t=yes
c906108c 3663else
bec39cab
AC
3664 echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667ac_cv_type_size_t=no
c906108c 3668fi
bec39cab 3669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3670fi
bec39cab
AC
3671echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3672echo "${ECHO_T}$ac_cv_type_size_t" >&6
3673if test $ac_cv_type_size_t = yes; then
3674 :
3675else
c906108c 3676
bec39cab
AC
3677cat >>confdefs.h <<_ACEOF
3678#define size_t unsigned
3679_ACEOF
c906108c 3680
c906108c 3681fi
bec39cab
AC
3682
3683# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3684# for constant arguments. Useless!
3685echo "$as_me:$LINENO: checking for working alloca.h" >&5
3686echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3687if test "${ac_cv_working_alloca_h+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689else
3690 cat >conftest.$ac_ext <<_ACEOF
3691/* confdefs.h. */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
3695/* end confdefs.h. */
3696#include <alloca.h>
3697int
3698main ()
3699{
3700char *p = (char *) alloca (2 * sizeof (int));
3701 ;
3702 return 0;
3703}
3704_ACEOF
3705rm -f conftest.$ac_objext conftest$ac_exeext
3706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707 (eval $ac_link) 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -z "$ac_c_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest$ac_exeext'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 ac_cv_working_alloca_h=yes
3728else
3729 echo "$as_me: failed program was:" >&5
3730sed 's/^/| /' conftest.$ac_ext >&5
3731
3732ac_cv_working_alloca_h=no
3733fi
3734rm -f conftest.err conftest.$ac_objext \
3735 conftest$ac_exeext conftest.$ac_ext
3736fi
3737echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3738echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3739if test $ac_cv_working_alloca_h = yes; then
3740
3741cat >>confdefs.h <<\_ACEOF
3742#define HAVE_ALLOCA_H 1
3743_ACEOF
c906108c
SS
3744
3745fi
bec39cab
AC
3746
3747echo "$as_me:$LINENO: checking for alloca" >&5
3748echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3749if test "${ac_cv_func_alloca_works+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3751else
bec39cab
AC
3752 cat >conftest.$ac_ext <<_ACEOF
3753/* confdefs.h. */
3754_ACEOF
3755cat confdefs.h >>conftest.$ac_ext
3756cat >>conftest.$ac_ext <<_ACEOF
3757/* end confdefs.h. */
3758#ifdef __GNUC__
3759# define alloca __builtin_alloca
3760#else
3761# ifdef _MSC_VER
3762# include <malloc.h>
3763# define alloca _alloca
3764# else
3765# if HAVE_ALLOCA_H
3766# include <alloca.h>
3767# else
3768# ifdef _AIX
3769 #pragma alloca
3770# else
3771# ifndef alloca /* predefined by HP cc +Olibcalls */
3772char *alloca ();
3773# endif
3774# endif
3775# endif
3776# endif
3777#endif
c906108c 3778
bec39cab
AC
3779int
3780main ()
3781{
3782char *p = (char *) alloca (1);
3783 ;
3784 return 0;
3785}
3786_ACEOF
3787rm -f conftest.$ac_objext conftest$ac_exeext
3788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789 (eval $ac_link) 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } &&
3796 { ac_try='test -z "$ac_c_werror_flag"
3797 || test ! -s conftest.err'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 (eval $ac_try) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; } &&
3803 { ac_try='test -s conftest$ac_exeext'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 (eval $ac_try) 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; }; then
3809 ac_cv_func_alloca_works=yes
c906108c 3810else
bec39cab
AC
3811 echo "$as_me: failed program was:" >&5
3812sed 's/^/| /' conftest.$ac_ext >&5
3813
3814ac_cv_func_alloca_works=no
c906108c 3815fi
bec39cab
AC
3816rm -f conftest.err conftest.$ac_objext \
3817 conftest$ac_exeext conftest.$ac_ext
c906108c 3818fi
bec39cab
AC
3819echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3820echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3821
3822if test $ac_cv_func_alloca_works = yes; then
3823
3824cat >>confdefs.h <<\_ACEOF
3825#define HAVE_ALLOCA 1
3826_ACEOF
c906108c 3827
c906108c 3828else
bec39cab
AC
3829 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3830# that cause trouble. Some versions do not even contain alloca or
3831# contain a buggy version. If you still want to use their alloca,
3832# use ar to extract alloca.o from them instead of compiling alloca.c.
c906108c 3833
bec39cab 3834ALLOCA=alloca.$ac_objext
c906108c 3835
bec39cab
AC
3836cat >>confdefs.h <<\_ACEOF
3837#define C_ALLOCA 1
3838_ACEOF
c906108c 3839
bec39cab
AC
3840
3841echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3842echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3843if test "${ac_cv_os_cray+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3845else
bec39cab
AC
3846 cat >conftest.$ac_ext <<_ACEOF
3847/* confdefs.h. */
3848_ACEOF
3849cat confdefs.h >>conftest.$ac_ext
3850cat >>conftest.$ac_ext <<_ACEOF
3851/* end confdefs.h. */
3852#if defined(CRAY) && ! defined(CRAY2)
3853webecray
3854#else
3855wenotbecray
3856#endif
3857
3858_ACEOF
3859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3860 $EGREP "webecray" >/dev/null 2>&1; then
3861 ac_cv_os_cray=yes
c906108c 3862else
bec39cab 3863 ac_cv_os_cray=no
c906108c 3864fi
bec39cab
AC
3865rm -f conftest*
3866
3867fi
3868echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3869echo "${ECHO_T}$ac_cv_os_cray" >&6
3870if test $ac_cv_os_cray = yes; then
3871 for ac_func in _getb67 GETB67 getb67; do
3872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3873echo "$as_me:$LINENO: checking for $ac_func" >&5
3874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3875if eval "test \"\${$as_ac_var+set}\" = set"; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878 cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h. */
3884/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3886#define $ac_func innocuous_$ac_func
3887
c906108c 3888/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
3889 which can conflict with char $ac_func (); below.
3890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3891 <limits.h> exists even on freestanding compilers. */
3892
3893#ifdef __STDC__
3894# include <limits.h>
3895#else
3896# include <assert.h>
3897#endif
c906108c 3898
bec39cab 3899#undef $ac_func
c906108c 3900
bec39cab
AC
3901/* Override any gcc2 internal prototype to avoid an error. */
3902#ifdef __cplusplus
3903extern "C"
3904{
3905#endif
3906/* We use char because int might match the return type of a gcc2
3907 builtin and then its argument prototype would still apply. */
3908char $ac_func ();
c906108c
SS
3909/* The GNU C library defines this for functions which it implements
3910 to always fail with ENOSYS. Some functions are actually named
3911 something starting with __ and the normal name is an alias. */
3912#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3913choke me
3914#else
bec39cab
AC
3915char (*f) () = $ac_func;
3916#endif
3917#ifdef __cplusplus
3918}
c906108c
SS
3919#endif
3920
bec39cab
AC
3921int
3922main ()
3923{
3924return f != $ac_func;
3925 ;
3926 return 0;
3927}
3928_ACEOF
3929rm -f conftest.$ac_objext conftest$ac_exeext
3930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931 (eval $ac_link) 2>conftest.er1
3932 ac_status=$?
3933 grep -v '^ *+' conftest.er1 >conftest.err
3934 rm -f conftest.er1
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -z "$ac_c_werror_flag"
3939 || test ! -s conftest.err'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 (eval $ac_try) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; } &&
3945 { ac_try='test -s conftest$ac_exeext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 (eval $ac_try) 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 eval "$as_ac_var=yes"
3952else
3953 echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
3956eval "$as_ac_var=no"
3957fi
3958rm -f conftest.err conftest.$ac_objext \
3959 conftest$ac_exeext conftest.$ac_ext
3960fi
3961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3962echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3963if test `eval echo '${'$as_ac_var'}'` = yes; then
3964
3965cat >>confdefs.h <<_ACEOF
3966#define CRAY_STACKSEG_END $ac_func
3967_ACEOF
c906108c 3968
bec39cab 3969 break
c906108c 3970fi
c906108c 3971
c906108c 3972 done
c906108c 3973fi
bec39cab
AC
3974
3975echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3976echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3977if test "${ac_cv_c_stack_direction+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3979else
bec39cab
AC
3980 if test "$cross_compiling" = yes; then
3981 ac_cv_c_stack_direction=0
3982else
3983 cat >conftest.$ac_ext <<_ACEOF
3984/* confdefs.h. */
3985_ACEOF
3986cat confdefs.h >>conftest.$ac_ext
3987cat >>conftest.$ac_ext <<_ACEOF
3988/* end confdefs.h. */
3989int
3990find_stack_direction ()
3991{
3992 static char *addr = 0;
3993 auto char dummy;
3994 if (addr == 0)
3995 {
3996 addr = &dummy;
3997 return find_stack_direction ();
3998 }
3999 else
4000 return (&dummy > addr) ? 1 : -1;
4001}
c906108c 4002
bec39cab
AC
4003int
4004main ()
4005{
4006 exit (find_stack_direction () < 0);
4007}
4008_ACEOF
4009rm -f conftest$ac_exeext
4010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4011 (eval $ac_link) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 ac_cv_c_stack_direction=1
c906108c 4021else
bec39cab
AC
4022 echo "$as_me: program exited with status $ac_status" >&5
4023echo "$as_me: failed program was:" >&5
4024sed 's/^/| /' conftest.$ac_ext >&5
4025
4026( exit $ac_status )
4027ac_cv_c_stack_direction=-1
4028fi
4029rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 4030fi
c906108c 4031fi
bec39cab
AC
4032echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4033echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4034
4035cat >>confdefs.h <<_ACEOF
4036#define STACK_DIRECTION $ac_cv_c_stack_direction
4037_ACEOF
c906108c 4038
c906108c 4039
c906108c
SS
4040fi
4041
4042
c906108c 4043
bec39cab
AC
4044for ac_header in stdlib.h unistd.h
4045do
4046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4047if eval "test \"\${$as_ac_Header+set}\" = set"; then
4048 echo "$as_me:$LINENO: checking for $ac_header" >&5
4049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4050if eval "test \"\${$as_ac_Header+set}\" = set"; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052fi
4053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4054echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4055else
4056 # Is the header compilable?
4057echo "$as_me:$LINENO: checking $ac_header usability" >&5
4058echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4059cat >conftest.$ac_ext <<_ACEOF
4060/* confdefs.h. */
4061_ACEOF
4062cat confdefs.h >>conftest.$ac_ext
4063cat >>conftest.$ac_ext <<_ACEOF
4064/* end confdefs.h. */
4065$ac_includes_default
4066#include <$ac_header>
4067_ACEOF
4068rm -f conftest.$ac_objext
4069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070 (eval $ac_compile) 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_c_werror_flag"
4078 || test ! -s conftest.err'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 (eval $ac_try) 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; } &&
4084 { ac_try='test -s conftest.$ac_objext'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 (eval $ac_try) 2>&5
4087 ac_status=$?
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; }; then
4090 ac_header_compiler=yes
4091else
4092 echo "$as_me: failed program was:" >&5
4093sed 's/^/| /' conftest.$ac_ext >&5
4094
4095ac_header_compiler=no
4096fi
4097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4099echo "${ECHO_T}$ac_header_compiler" >&6
4100
4101# Is the header present?
4102echo "$as_me:$LINENO: checking $ac_header presence" >&5
4103echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4104cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h. */
4110#include <$ac_header>
4111_ACEOF
4112if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4114 ac_status=$?
4115 grep -v '^ *+' conftest.er1 >conftest.err
4116 rm -f conftest.er1
4117 cat conftest.err >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } >/dev/null; then
4120 if test -s conftest.err; then
4121 ac_cpp_err=$ac_c_preproc_warn_flag
4122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4123 else
4124 ac_cpp_err=
4125 fi
c906108c 4126else
bec39cab 4127 ac_cpp_err=yes
c906108c 4128fi
bec39cab
AC
4129if test -z "$ac_cpp_err"; then
4130 ac_header_preproc=yes
c906108c 4131else
bec39cab
AC
4132 echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 ac_header_preproc=no
c906108c 4136fi
bec39cab
AC
4137rm -f conftest.err conftest.$ac_ext
4138echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4139echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 4140
bec39cab
AC
4141# So? What about this header?
4142case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4143 yes:no: )
4144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4147echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4148 ac_header_preproc=yes
4149 ;;
4150 no:yes:* )
4151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4156echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4158echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4162echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4163 (
4164 cat <<\_ASBOX
4165## ------------------------------------------ ##
4166## Report this to the AC_PACKAGE_NAME lists. ##
4167## ------------------------------------------ ##
4168_ASBOX
4169 ) |
4170 sed "s/^/$as_me: WARNING: /" >&2
4171 ;;
4172esac
4173echo "$as_me:$LINENO: checking for $ac_header" >&5
4174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4175if eval "test \"\${$as_ac_Header+set}\" = set"; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177else
4178 eval "$as_ac_Header=\$ac_header_preproc"
4179fi
4180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4182
4183fi
4184if test `eval echo '${'$as_ac_Header'}'` = yes; then
4185 cat >>confdefs.h <<_ACEOF
4186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4187_ACEOF
4188
4189fi
4190
4191done
4192
4193
4194for ac_func in getpagesize
4195do
4196as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4197echo "$as_me:$LINENO: checking for $ac_func" >&5
4198echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4199if eval "test \"\${$as_ac_var+set}\" = set"; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202 cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h. */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4207/* end confdefs.h. */
4208/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4210#define $ac_func innocuous_$ac_func
4211
4212/* System header to define __stub macros and hopefully few prototypes,
4213 which can conflict with char $ac_func (); below.
4214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215 <limits.h> exists even on freestanding compilers. */
4216
4217#ifdef __STDC__
4218# include <limits.h>
4219#else
4220# include <assert.h>
4221#endif
4222
4223#undef $ac_func
4224
4225/* Override any gcc2 internal prototype to avoid an error. */
4226#ifdef __cplusplus
4227extern "C"
4228{
4229#endif
4230/* We use char because int might match the return type of a gcc2
4231 builtin and then its argument prototype would still apply. */
4232char $ac_func ();
4233/* The GNU C library defines this for functions which it implements
4234 to always fail with ENOSYS. Some functions are actually named
4235 something starting with __ and the normal name is an alias. */
4236#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4237choke me
4238#else
4239char (*f) () = $ac_func;
4240#endif
4241#ifdef __cplusplus
4242}
4243#endif
4244
4245int
4246main ()
4247{
4248return f != $ac_func;
4249 ;
4250 return 0;
4251}
4252_ACEOF
4253rm -f conftest.$ac_objext conftest$ac_exeext
4254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255 (eval $ac_link) 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag"
4263 || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 (eval $ac_try) 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 eval "$as_ac_var=yes"
4276else
4277 echo "$as_me: failed program was:" >&5
4278sed 's/^/| /' conftest.$ac_ext >&5
4279
4280eval "$as_ac_var=no"
4281fi
4282rm -f conftest.err conftest.$ac_objext \
4283 conftest$ac_exeext conftest.$ac_ext
4284fi
4285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4286echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4287if test `eval echo '${'$as_ac_var'}'` = yes; then
4288 cat >>confdefs.h <<_ACEOF
4289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4290_ACEOF
4291
4292fi
4293done
4294
4295echo "$as_me:$LINENO: checking for working mmap" >&5
4296echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4297if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299else
4300 if test "$cross_compiling" = yes; then
4301 ac_cv_func_mmap_fixed_mapped=no
4302else
4303 cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h. */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h. */
4309$ac_includes_default
4310/* malloc might have been renamed as rpl_malloc. */
4311#undef malloc
4312
4313/* Thanks to Mike Haertel and Jim Avera for this test.
4314 Here is a matrix of mmap possibilities:
4315 mmap private not fixed
4316 mmap private fixed at somewhere currently unmapped
4317 mmap private fixed at somewhere already mapped
4318 mmap shared not fixed
4319 mmap shared fixed at somewhere currently unmapped
4320 mmap shared fixed at somewhere already mapped
4321 For private mappings, we should verify that changes cannot be read()
4322 back from the file, nor mmap's back from the file at a different
4323 address. (There have been systems where private was not correctly
4324 implemented like the infamous i386 svr4.0, and systems where the
4325 VM page cache was not coherent with the file system buffer cache
4326 like early versions of FreeBSD and possibly contemporary NetBSD.)
4327 For shared mappings, we should conversely verify that changes get
4328 propagated back to all the places they're supposed to be.
4329
4330 Grep wants private fixed already mapped.
4331 The main things grep needs to know about mmap are:
4332 * does it exist and is it safe to write into the mmap'd area
4333 * how to use it (BSD variants) */
4334
4335#include <fcntl.h>
4336#include <sys/mman.h>
4337
4338#if !STDC_HEADERS && !HAVE_STDLIB_H
4339char *malloc ();
4340#endif
4341
4342/* This mess was copied from the GNU getpagesize.h. */
4343#if !HAVE_GETPAGESIZE
4344/* Assume that all systems that can run configure have sys/param.h. */
4345# if !HAVE_SYS_PARAM_H
4346# define HAVE_SYS_PARAM_H 1
4347# endif
4348
4349# ifdef _SC_PAGESIZE
4350# define getpagesize() sysconf(_SC_PAGESIZE)
4351# else /* no _SC_PAGESIZE */
4352# if HAVE_SYS_PARAM_H
4353# include <sys/param.h>
4354# ifdef EXEC_PAGESIZE
4355# define getpagesize() EXEC_PAGESIZE
4356# else /* no EXEC_PAGESIZE */
4357# ifdef NBPG
4358# define getpagesize() NBPG * CLSIZE
4359# ifndef CLSIZE
4360# define CLSIZE 1
4361# endif /* no CLSIZE */
4362# else /* no NBPG */
4363# ifdef NBPC
4364# define getpagesize() NBPC
4365# else /* no NBPC */
4366# ifdef PAGESIZE
4367# define getpagesize() PAGESIZE
4368# endif /* PAGESIZE */
4369# endif /* no NBPC */
4370# endif /* no NBPG */
4371# endif /* no EXEC_PAGESIZE */
4372# else /* no HAVE_SYS_PARAM_H */
4373# define getpagesize() 8192 /* punt totally */
4374# endif /* no HAVE_SYS_PARAM_H */
4375# endif /* no _SC_PAGESIZE */
4376
4377#endif /* no HAVE_GETPAGESIZE */
4378
4379int
4380main ()
4381{
4382 char *data, *data2, *data3;
4383 int i, pagesize;
4384 int fd;
4385
4386 pagesize = getpagesize ();
4387
4388 /* First, make a file with some known garbage in it. */
4389 data = (char *) malloc (pagesize);
4390 if (!data)
4391 exit (1);
4392 for (i = 0; i < pagesize; ++i)
4393 *(data + i) = rand ();
4394 umask (0);
4395 fd = creat ("conftest.mmap", 0600);
4396 if (fd < 0)
4397 exit (1);
4398 if (write (fd, data, pagesize) != pagesize)
4399 exit (1);
4400 close (fd);
4401
4402 /* Next, try to mmap the file at a fixed address which already has
4403 something else allocated at it. If we can, also make sure that
4404 we see the same garbage. */
4405 fd = open ("conftest.mmap", O_RDWR);
4406 if (fd < 0)
4407 exit (1);
4408 data2 = (char *) malloc (2 * pagesize);
4409 if (!data2)
4410 exit (1);
4411 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4412 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4413 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4414 exit (1);
4415 for (i = 0; i < pagesize; ++i)
4416 if (*(data + i) != *(data2 + i))
4417 exit (1);
4418
4419 /* Finally, make sure that changes to the mapped area do not
4420 percolate back to the file as seen by read(). (This is a bug on
4421 some variants of i386 svr4.0.) */
4422 for (i = 0; i < pagesize; ++i)
4423 *(data2 + i) = *(data2 + i) + 1;
4424 data3 = (char *) malloc (pagesize);
4425 if (!data3)
4426 exit (1);
4427 if (read (fd, data3, pagesize) != pagesize)
4428 exit (1);
4429 for (i = 0; i < pagesize; ++i)
4430 if (*(data + i) != *(data3 + i))
4431 exit (1);
4432 close (fd);
4433 exit (0);
4434}
4435_ACEOF
4436rm -f conftest$ac_exeext
4437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4438 (eval $ac_link) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 ac_cv_func_mmap_fixed_mapped=yes
4448else
4449 echo "$as_me: program exited with status $ac_status" >&5
4450echo "$as_me: failed program was:" >&5
4451sed 's/^/| /' conftest.$ac_ext >&5
4452
4453( exit $ac_status )
4454ac_cv_func_mmap_fixed_mapped=no
4455fi
4456rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4457fi
4458fi
4459echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4460echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4461if test $ac_cv_func_mmap_fixed_mapped = yes; then
4462
4463cat >>confdefs.h <<\_ACEOF
4464#define HAVE_MMAP 1
4465_ACEOF
4466
4467fi
4468rm -f conftest.mmap
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4481unistd.h values.h sys/param.h
4482do
4483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4484if eval "test \"\${$as_ac_Header+set}\" = set"; then
4485 echo "$as_me:$LINENO: checking for $ac_header" >&5
4486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4487if eval "test \"\${$as_ac_Header+set}\" = set"; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4489fi
4490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4492else
4493 # Is the header compilable?
4494echo "$as_me:$LINENO: checking $ac_header usability" >&5
4495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4496cat >conftest.$ac_ext <<_ACEOF
4497/* confdefs.h. */
4498_ACEOF
4499cat confdefs.h >>conftest.$ac_ext
4500cat >>conftest.$ac_ext <<_ACEOF
4501/* end confdefs.h. */
4502$ac_includes_default
4503#include <$ac_header>
4504_ACEOF
4505rm -f conftest.$ac_objext
4506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4507 (eval $ac_compile) 2>conftest.er1
4508 ac_status=$?
4509 grep -v '^ *+' conftest.er1 >conftest.err
4510 rm -f conftest.er1
4511 cat conftest.err >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try='test -z "$ac_c_werror_flag"
4515 || test ! -s conftest.err'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 (eval $ac_try) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; } &&
4521 { ac_try='test -s conftest.$ac_objext'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 (eval $ac_try) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; }; then
4527 ac_header_compiler=yes
4528else
4529 echo "$as_me: failed program was:" >&5
4530sed 's/^/| /' conftest.$ac_ext >&5
4531
4532ac_header_compiler=no
4533fi
4534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4535echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4536echo "${ECHO_T}$ac_header_compiler" >&6
4537
4538# Is the header present?
4539echo "$as_me:$LINENO: checking $ac_header presence" >&5
4540echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4541cat >conftest.$ac_ext <<_ACEOF
4542/* confdefs.h. */
4543_ACEOF
4544cat confdefs.h >>conftest.$ac_ext
4545cat >>conftest.$ac_ext <<_ACEOF
4546/* end confdefs.h. */
4547#include <$ac_header>
4548_ACEOF
4549if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } >/dev/null; then
4557 if test -s conftest.err; then
4558 ac_cpp_err=$ac_c_preproc_warn_flag
4559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4560 else
4561 ac_cpp_err=
4562 fi
4563else
4564 ac_cpp_err=yes
4565fi
4566if test -z "$ac_cpp_err"; then
4567 ac_header_preproc=yes
4568else
4569 echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 ac_header_preproc=no
4573fi
4574rm -f conftest.err conftest.$ac_ext
4575echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4576echo "${ECHO_T}$ac_header_preproc" >&6
4577
4578# So? What about this header?
4579case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4580 yes:no: )
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4582echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4584echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4585 ac_header_preproc=yes
4586 ;;
4587 no:yes:* )
4588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4589echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4591echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4593echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4595echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4597echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4599echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4600 (
4601 cat <<\_ASBOX
4602## ------------------------------------------ ##
4603## Report this to the AC_PACKAGE_NAME lists. ##
4604## ------------------------------------------ ##
4605_ASBOX
4606 ) |
4607 sed "s/^/$as_me: WARNING: /" >&2
4608 ;;
4609esac
4610echo "$as_me:$LINENO: checking for $ac_header" >&5
4611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4612if eval "test \"\${$as_ac_Header+set}\" = set"; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615 eval "$as_ac_Header=\$ac_header_preproc"
4616fi
4617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4619
4620fi
4621if test `eval echo '${'$as_ac_Header'}'` = yes; then
4622 cat >>confdefs.h <<_ACEOF
4623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4624_ACEOF
4625
4626fi
4627
4628done
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4641__argz_count __argz_stringify __argz_next
4642do
4643as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4644echo "$as_me:$LINENO: checking for $ac_func" >&5
4645echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4646if eval "test \"\${$as_ac_var+set}\" = set"; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649 cat >conftest.$ac_ext <<_ACEOF
4650/* confdefs.h. */
4651_ACEOF
4652cat confdefs.h >>conftest.$ac_ext
4653cat >>conftest.$ac_ext <<_ACEOF
4654/* end confdefs.h. */
4655/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4657#define $ac_func innocuous_$ac_func
4658
4659/* System header to define __stub macros and hopefully few prototypes,
4660 which can conflict with char $ac_func (); below.
4661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4662 <limits.h> exists even on freestanding compilers. */
4663
4664#ifdef __STDC__
4665# include <limits.h>
4666#else
4667# include <assert.h>
4668#endif
4669
4670#undef $ac_func
4671
4672/* Override any gcc2 internal prototype to avoid an error. */
4673#ifdef __cplusplus
4674extern "C"
4675{
4676#endif
4677/* We use char because int might match the return type of a gcc2
4678 builtin and then its argument prototype would still apply. */
4679char $ac_func ();
4680/* The GNU C library defines this for functions which it implements
4681 to always fail with ENOSYS. Some functions are actually named
4682 something starting with __ and the normal name is an alias. */
4683#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4684choke me
4685#else
4686char (*f) () = $ac_func;
4687#endif
4688#ifdef __cplusplus
4689}
4690#endif
4691
4692int
4693main ()
4694{
4695return f != $ac_func;
4696 ;
4697 return 0;
4698}
4699_ACEOF
4700rm -f conftest.$ac_objext conftest$ac_exeext
4701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try='test -z "$ac_c_werror_flag"
4710 || test ! -s conftest.err'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; } &&
4716 { ac_try='test -s conftest$ac_exeext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 eval "$as_ac_var=yes"
4723else
4724 echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727eval "$as_ac_var=no"
4728fi
4729rm -f conftest.err conftest.$ac_objext \
4730 conftest$ac_exeext conftest.$ac_ext
4731fi
4732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4733echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4734if test `eval echo '${'$as_ac_var'}'` = yes; then
4735 cat >>confdefs.h <<_ACEOF
4736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4737_ACEOF
4738
4739fi
4740done
4741
4742
4743 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4744
4745for ac_func in stpcpy
4746do
4747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4748echo "$as_me:$LINENO: checking for $ac_func" >&5
4749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4750if eval "test \"\${$as_ac_var+set}\" = set"; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753 cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h. */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h. */
4759/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4761#define $ac_func innocuous_$ac_func
4762
4763/* System header to define __stub macros and hopefully few prototypes,
4764 which can conflict with char $ac_func (); below.
4765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4766 <limits.h> exists even on freestanding compilers. */
4767
4768#ifdef __STDC__
4769# include <limits.h>
4770#else
4771# include <assert.h>
4772#endif
4773
4774#undef $ac_func
4775
4776/* Override any gcc2 internal prototype to avoid an error. */
4777#ifdef __cplusplus
4778extern "C"
4779{
4780#endif
4781/* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4783char $ac_func ();
4784/* The GNU C library defines this for functions which it implements
4785 to always fail with ENOSYS. Some functions are actually named
4786 something starting with __ and the normal name is an alias. */
4787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4788choke me
4789#else
4790char (*f) () = $ac_func;
4791#endif
4792#ifdef __cplusplus
4793}
4794#endif
4795
4796int
4797main ()
4798{
4799return f != $ac_func;
4800 ;
4801 return 0;
4802}
4803_ACEOF
4804rm -f conftest.$ac_objext conftest$ac_exeext
4805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4806 (eval $ac_link) 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try='test -z "$ac_c_werror_flag"
4814 || test ! -s conftest.err'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 (eval $ac_try) 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; } &&
4820 { ac_try='test -s conftest$ac_exeext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 eval "$as_ac_var=yes"
4827else
4828 echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831eval "$as_ac_var=no"
4832fi
4833rm -f conftest.err conftest.$ac_objext \
4834 conftest$ac_exeext conftest.$ac_ext
4835fi
4836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4837echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4838if test `eval echo '${'$as_ac_var'}'` = yes; then
4839 cat >>confdefs.h <<_ACEOF
4840#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4841_ACEOF
4842
4843fi
4844done
4845
4846 fi
4847 if test "${ac_cv_func_stpcpy}" = "yes"; then
4848
4849cat >>confdefs.h <<\_ACEOF
4850#define HAVE_STPCPY 1
4851_ACEOF
4852
4853 fi
4854
4855 if test $ac_cv_header_locale_h = yes; then
4856 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4857echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4858if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860else
4861 cat >conftest.$ac_ext <<_ACEOF
4862/* confdefs.h. */
4863_ACEOF
4864cat confdefs.h >>conftest.$ac_ext
4865cat >>conftest.$ac_ext <<_ACEOF
4866/* end confdefs.h. */
4867#include <locale.h>
4868int
4869main ()
4870{
4871return LC_MESSAGES
4872 ;
4873 return 0;
4874}
4875_ACEOF
4876rm -f conftest.$ac_objext conftest$ac_exeext
4877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4878 (eval $ac_link) 2>conftest.er1
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } &&
4885 { ac_try='test -z "$ac_c_werror_flag"
4886 || test ! -s conftest.err'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 (eval $ac_try) 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; } &&
4892 { ac_try='test -s conftest$ac_exeext'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; }; then
4898 am_cv_val_LC_MESSAGES=yes
4899else
4900 echo "$as_me: failed program was:" >&5
4901sed 's/^/| /' conftest.$ac_ext >&5
4902
4903am_cv_val_LC_MESSAGES=no
4904fi
4905rm -f conftest.err conftest.$ac_objext \
4906 conftest$ac_exeext conftest.$ac_ext
4907fi
4908echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4909echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4910 if test $am_cv_val_LC_MESSAGES = yes; then
4911
4912cat >>confdefs.h <<\_ACEOF
4913#define HAVE_LC_MESSAGES 1
4914_ACEOF
4915
4916 fi
4917 fi
4918 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4919echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4920 # Check whether --enable-nls or --disable-nls was given.
4921if test "${enable_nls+set}" = set; then
4922 enableval="$enable_nls"
4923 USE_NLS=$enableval
4924else
4925 USE_NLS=yes
4926fi;
4927 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4928echo "${ECHO_T}$USE_NLS" >&6
4929
4930
4931 USE_INCLUDED_LIBINTL=no
4932
4933 if test "$USE_NLS" = "yes"; then
4934
4935cat >>confdefs.h <<\_ACEOF
4936#define ENABLE_NLS 1
4937_ACEOF
4938
4939 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4940echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4941
4942# Check whether --with-included-gettext or --without-included-gettext was given.
4943if test "${with_included_gettext+set}" = set; then
4944 withval="$with_included_gettext"
4945 nls_cv_force_use_gnu_gettext=$withval
4946else
4947 nls_cv_force_use_gnu_gettext=no
4948fi;
4949 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4950echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4951
4952 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4953 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4954 nls_cv_header_intl=
4955 nls_cv_header_libgt=
4956 CATOBJEXT=NONE
4957
4958 if test "${ac_cv_header_libintl_h+set}" = set; then
4959 echo "$as_me:$LINENO: checking for libintl.h" >&5
4960echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4961if test "${ac_cv_header_libintl_h+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963fi
4964echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4965echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4966else
4967 # Is the header compilable?
4968echo "$as_me:$LINENO: checking libintl.h usability" >&5
4969echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4970cat >conftest.$ac_ext <<_ACEOF
4971/* confdefs.h. */
4972_ACEOF
4973cat confdefs.h >>conftest.$ac_ext
4974cat >>conftest.$ac_ext <<_ACEOF
4975/* end confdefs.h. */
4976$ac_includes_default
4977#include <libintl.h>
4978_ACEOF
4979rm -f conftest.$ac_objext
4980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981 (eval $ac_compile) 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -z "$ac_c_werror_flag"
4989 || test ! -s conftest.err'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; } &&
4995 { ac_try='test -s conftest.$ac_objext'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 (eval $ac_try) 2>&5
4998 ac_status=$?
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5001 ac_header_compiler=yes
5002else
5003 echo "$as_me: failed program was:" >&5
5004sed 's/^/| /' conftest.$ac_ext >&5
5005
5006ac_header_compiler=no
5007fi
5008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5010echo "${ECHO_T}$ac_header_compiler" >&6
5011
5012# Is the header present?
5013echo "$as_me:$LINENO: checking libintl.h presence" >&5
5014echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5015cat >conftest.$ac_ext <<_ACEOF
5016/* confdefs.h. */
5017_ACEOF
5018cat confdefs.h >>conftest.$ac_ext
5019cat >>conftest.$ac_ext <<_ACEOF
5020/* end confdefs.h. */
5021#include <libintl.h>
5022_ACEOF
5023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } >/dev/null; then
5031 if test -s conftest.err; then
5032 ac_cpp_err=$ac_c_preproc_warn_flag
5033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5034 else
5035 ac_cpp_err=
5036 fi
5037else
5038 ac_cpp_err=yes
5039fi
5040if test -z "$ac_cpp_err"; then
5041 ac_header_preproc=yes
5042else
5043 echo "$as_me: failed program was:" >&5
5044sed 's/^/| /' conftest.$ac_ext >&5
5045
5046 ac_header_preproc=no
5047fi
5048rm -f conftest.err conftest.$ac_ext
5049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5050echo "${ECHO_T}$ac_header_preproc" >&6
5051
5052# So? What about this header?
5053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5054 yes:no: )
5055 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5056echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5057 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5058echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5059 ac_header_preproc=yes
5060 ;;
5061 no:yes:* )
5062 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5063echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5064 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5065echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5066 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5067echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5068 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5069echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5070 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5071echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5072 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5073echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5074 (
5075 cat <<\_ASBOX
5076## ------------------------------------------ ##
5077## Report this to the AC_PACKAGE_NAME lists. ##
5078## ------------------------------------------ ##
5079_ASBOX
5080 ) |
5081 sed "s/^/$as_me: WARNING: /" >&2
5082 ;;
5083esac
5084echo "$as_me:$LINENO: checking for libintl.h" >&5
5085echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5086if test "${ac_cv_header_libintl_h+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089 ac_cv_header_libintl_h=$ac_header_preproc
5090fi
5091echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5092echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5093
5094fi
5095if test $ac_cv_header_libintl_h = yes; then
5096 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5097echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5098if test "${gt_cv_func_gettext_libc+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100else
5101 cat >conftest.$ac_ext <<_ACEOF
5102/* confdefs.h. */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
5106/* end confdefs.h. */
5107#include <libintl.h>
5108int
5109main ()
5110{
5111return (int) gettext ("")
5112 ;
5113 return 0;
5114}
5115_ACEOF
5116rm -f conftest.$ac_objext conftest$ac_exeext
5117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118 (eval $ac_link) 2>conftest.er1
5119 ac_status=$?
5120 grep -v '^ *+' conftest.er1 >conftest.err
5121 rm -f conftest.er1
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } &&
5125 { ac_try='test -z "$ac_c_werror_flag"
5126 || test ! -s conftest.err'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 (eval $ac_try) 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; } &&
5132 { ac_try='test -s conftest$ac_exeext'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 (eval $ac_try) 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; }; then
5138 gt_cv_func_gettext_libc=yes
5139else
5140 echo "$as_me: failed program was:" >&5
5141sed 's/^/| /' conftest.$ac_ext >&5
5142
5143gt_cv_func_gettext_libc=no
5144fi
5145rm -f conftest.err conftest.$ac_objext \
5146 conftest$ac_exeext conftest.$ac_ext
5147fi
5148echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5149echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5150
5151 if test "$gt_cv_func_gettext_libc" != "yes"; then
5152 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5153echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5154if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156else
5157 ac_check_lib_save_LIBS=$LIBS
5158LIBS="-lintl $LIBS"
5159cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h. */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h. */
5165
5166/* Override any gcc2 internal prototype to avoid an error. */
5167#ifdef __cplusplus
5168extern "C"
5169#endif
5170/* We use char because int might match the return type of a gcc2
5171 builtin and then its argument prototype would still apply. */
5172char bindtextdomain ();
5173int
5174main ()
5175{
5176bindtextdomain ();
5177 ;
5178 return 0;
5179}
5180_ACEOF
5181rm -f conftest.$ac_objext conftest$ac_exeext
5182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5183 (eval $ac_link) 2>conftest.er1
5184 ac_status=$?
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try='test -z "$ac_c_werror_flag"
5191 || test ! -s conftest.err'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; } &&
5197 { ac_try='test -s conftest$ac_exeext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 (eval $ac_try) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_cv_lib_intl_bindtextdomain=yes
5204else
5205 echo "$as_me: failed program was:" >&5
5206sed 's/^/| /' conftest.$ac_ext >&5
5207
5208ac_cv_lib_intl_bindtextdomain=no
5209fi
5210rm -f conftest.err conftest.$ac_objext \
5211 conftest$ac_exeext conftest.$ac_ext
5212LIBS=$ac_check_lib_save_LIBS
5213fi
5214echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5215echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5216if test $ac_cv_lib_intl_bindtextdomain = yes; then
5217 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5218echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5219if test "${gt_cv_func_gettext_libintl+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222 cat >conftest.$ac_ext <<_ACEOF
5223/* confdefs.h. */
5224_ACEOF
5225cat confdefs.h >>conftest.$ac_ext
5226cat >>conftest.$ac_ext <<_ACEOF
5227/* end confdefs.h. */
5228
5229int
5230main ()
5231{
5232return (int) gettext ("")
5233 ;
5234 return 0;
5235}
5236_ACEOF
5237rm -f conftest.$ac_objext conftest$ac_exeext
5238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239 (eval $ac_link) 2>conftest.er1
5240 ac_status=$?
5241 grep -v '^ *+' conftest.er1 >conftest.err
5242 rm -f conftest.er1
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } &&
5246 { ac_try='test -z "$ac_c_werror_flag"
5247 || test ! -s conftest.err'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 (eval $ac_try) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; } &&
5253 { ac_try='test -s conftest$ac_exeext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 (eval $ac_try) 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 gt_cv_func_gettext_libintl=yes
5260else
5261 echo "$as_me: failed program was:" >&5
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
5264gt_cv_func_gettext_libintl=no
5265fi
5266rm -f conftest.err conftest.$ac_objext \
5267 conftest$ac_exeext conftest.$ac_ext
5268fi
5269echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5270echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5271fi
5272
5273 fi
5274
5275 if test "$gt_cv_func_gettext_libc" = "yes" \
5276 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5277
5278cat >>confdefs.h <<\_ACEOF
5279#define HAVE_GETTEXT 1
5280_ACEOF
5281
5282 # Extract the first word of "msgfmt", so it can be a program name with args.
5283set dummy msgfmt; ac_word=$2
5284echo "$as_me:$LINENO: checking for $ac_word" >&5
5285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286if test "${ac_cv_path_MSGFMT+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288else
5289 case "$MSGFMT" in
5290 /*)
5291 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5292 ;;
5293 *)
5294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5295 for ac_dir in $PATH; do
5296 test -z "$ac_dir" && ac_dir=.
5297 if test -f $ac_dir/$ac_word; then
5298 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5299 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5300 break
5301 fi
5302 fi
5303 done
5304 IFS="$ac_save_ifs"
5305 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5306 ;;
5307esac
5308fi
5309MSGFMT="$ac_cv_path_MSGFMT"
5310if test -n "$MSGFMT"; then
5311 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5312echo "${ECHO_T}$MSGFMT" >&6
5313else
5314 echo "$as_me:$LINENO: result: no" >&5
5315echo "${ECHO_T}no" >&6
5316fi
5317 if test "$MSGFMT" != "no"; then
5318
5319for ac_func in dcgettext
5320do
5321as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5322echo "$as_me:$LINENO: checking for $ac_func" >&5
5323echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5324if eval "test \"\${$as_ac_var+set}\" = set"; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326else
5327 cat >conftest.$ac_ext <<_ACEOF
5328/* confdefs.h. */
5329_ACEOF
5330cat confdefs.h >>conftest.$ac_ext
5331cat >>conftest.$ac_ext <<_ACEOF
5332/* end confdefs.h. */
5333/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5335#define $ac_func innocuous_$ac_func
5336
5337/* System header to define __stub macros and hopefully few prototypes,
5338 which can conflict with char $ac_func (); below.
5339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5340 <limits.h> exists even on freestanding compilers. */
5341
5342#ifdef __STDC__
5343# include <limits.h>
5344#else
5345# include <assert.h>
5346#endif
5347
5348#undef $ac_func
5349
5350/* Override any gcc2 internal prototype to avoid an error. */
5351#ifdef __cplusplus
5352extern "C"
5353{
5354#endif
5355/* We use char because int might match the return type of a gcc2
5356 builtin and then its argument prototype would still apply. */
5357char $ac_func ();
5358/* The GNU C library defines this for functions which it implements
5359 to always fail with ENOSYS. Some functions are actually named
5360 something starting with __ and the normal name is an alias. */
5361#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5362choke me
5363#else
5364char (*f) () = $ac_func;
5365#endif
5366#ifdef __cplusplus
5367}
5368#endif
5369
5370int
5371main ()
5372{
5373return f != $ac_func;
5374 ;
5375 return 0;
5376}
5377_ACEOF
5378rm -f conftest.$ac_objext conftest$ac_exeext
5379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5380 (eval $ac_link) 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -z "$ac_c_werror_flag"
5388 || test ! -s conftest.err'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 (eval $ac_try) 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try='test -s conftest$ac_exeext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 (eval $ac_try) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 eval "$as_ac_var=yes"
5401else
5402 echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405eval "$as_ac_var=no"
5406fi
5407rm -f conftest.err conftest.$ac_objext \
5408 conftest$ac_exeext conftest.$ac_ext
5409fi
5410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5411echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5412if test `eval echo '${'$as_ac_var'}'` = yes; then
5413 cat >>confdefs.h <<_ACEOF
5414#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5415_ACEOF
5416
5417fi
5418done
5419
5420 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5421set dummy gmsgfmt; ac_word=$2
5422echo "$as_me:$LINENO: checking for $ac_word" >&5
5423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5424if test "${ac_cv_path_GMSGFMT+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426else
5427 case $GMSGFMT in
5428 [\\/]* | ?:[\\/]*)
5429 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5430 ;;
5431 *)
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH
5434do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 break 2
5442 fi
5443done
5444done
5445
5446 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5447 ;;
5448esac
5449fi
5450GMSGFMT=$ac_cv_path_GMSGFMT
5451
5452if test -n "$GMSGFMT"; then
5453 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5454echo "${ECHO_T}$GMSGFMT" >&6
5455else
5456 echo "$as_me:$LINENO: result: no" >&5
5457echo "${ECHO_T}no" >&6
5458fi
5459
5460 # Extract the first word of "xgettext", so it can be a program name with args.
5461set dummy xgettext; ac_word=$2
5462echo "$as_me:$LINENO: checking for $ac_word" >&5
5463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464if test "${ac_cv_path_XGETTEXT+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466else
5467 case "$XGETTEXT" in
5468 /*)
5469 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5470 ;;
5471 *)
5472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5473 for ac_dir in $PATH; do
5474 test -z "$ac_dir" && ac_dir=.
5475 if test -f $ac_dir/$ac_word; then
5476 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5477 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5478 break
5479 fi
5480 fi
5481 done
5482 IFS="$ac_save_ifs"
5483 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5484 ;;
5485esac
5486fi
5487XGETTEXT="$ac_cv_path_XGETTEXT"
5488if test -n "$XGETTEXT"; then
5489 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5490echo "${ECHO_T}$XGETTEXT" >&6
5491else
5492 echo "$as_me:$LINENO: result: no" >&5
5493echo "${ECHO_T}no" >&6
5494fi
5495
5496 cat >conftest.$ac_ext <<_ACEOF
5497/* confdefs.h. */
5498_ACEOF
5499cat confdefs.h >>conftest.$ac_ext
5500cat >>conftest.$ac_ext <<_ACEOF
5501/* end confdefs.h. */
5502
5503int
5504main ()
5505{
5506extern int _nl_msg_cat_cntr;
5507 return _nl_msg_cat_cntr
5508 ;
5509 return 0;
5510}
5511_ACEOF
5512rm -f conftest.$ac_objext conftest$ac_exeext
5513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514 (eval $ac_link) 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -z "$ac_c_werror_flag"
5522 || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 (eval $ac_try) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 CATOBJEXT=.gmo
5535 DATADIRNAME=share
5536else
5537 echo "$as_me: failed program was:" >&5
5538sed 's/^/| /' conftest.$ac_ext >&5
5539
5540CATOBJEXT=.mo
5541 DATADIRNAME=lib
5542fi
5543rm -f conftest.err conftest.$ac_objext \
5544 conftest$ac_exeext conftest.$ac_ext
5545 INSTOBJEXT=.mo
5546 fi
5547 fi
5548
5549fi
5550
5551
5552
5553
5554 if test "$CATOBJEXT" = "NONE"; then
5555 nls_cv_use_gnu_gettext=yes
5556 fi
5557 fi
5558
5559 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5560 INTLOBJS="\$(GETTOBJS)"
5561 # Extract the first word of "msgfmt", so it can be a program name with args.
5562set dummy msgfmt; ac_word=$2
5563echo "$as_me:$LINENO: checking for $ac_word" >&5
5564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5565if test "${ac_cv_path_MSGFMT+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567else
5568 case "$MSGFMT" in
5569 /*)
5570 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5571 ;;
5572 *)
5573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5574 for ac_dir in $PATH; do
5575 test -z "$ac_dir" && ac_dir=.
5576 if test -f $ac_dir/$ac_word; then
5577 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5578 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5579 break
5580 fi
5581 fi
5582 done
5583 IFS="$ac_save_ifs"
5584 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5585 ;;
5586esac
5587fi
5588MSGFMT="$ac_cv_path_MSGFMT"
5589if test -n "$MSGFMT"; then
5590 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5591echo "${ECHO_T}$MSGFMT" >&6
5592else
5593 echo "$as_me:$LINENO: result: no" >&5
5594echo "${ECHO_T}no" >&6
5595fi
5596
5597 # Extract the first word of "gmsgfmt", so it can be a program name with args.
c906108c 5598set dummy gmsgfmt; ac_word=$2
bec39cab
AC
5599echo "$as_me:$LINENO: checking for $ac_word" >&5
5600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5601if test "${ac_cv_path_GMSGFMT+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
5604 case $GMSGFMT in
5605 [\\/]* | ?:[\\/]*)
5606 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5607 ;;
5608 *)
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610for as_dir in $PATH
5611do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620done
5621done
5622
5623 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5624 ;;
5625esac
5626fi
5627GMSGFMT=$ac_cv_path_GMSGFMT
5628
5629if test -n "$GMSGFMT"; then
5630 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5631echo "${ECHO_T}$GMSGFMT" >&6
5632else
5633 echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635fi
5636
5637 # Extract the first word of "xgettext", so it can be a program name with args.
5638set dummy xgettext; ac_word=$2
5639echo "$as_me:$LINENO: checking for $ac_word" >&5
5640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5641if test "${ac_cv_path_XGETTEXT+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643else
5644 case "$XGETTEXT" in
5645 /*)
5646 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5647 ;;
5648 *)
5649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5650 for ac_dir in $PATH; do
5651 test -z "$ac_dir" && ac_dir=.
5652 if test -f $ac_dir/$ac_word; then
5653 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5654 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5655 break
5656 fi
5657 fi
5658 done
5659 IFS="$ac_save_ifs"
5660 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5661 ;;
5662esac
5663fi
5664XGETTEXT="$ac_cv_path_XGETTEXT"
5665if test -n "$XGETTEXT"; then
5666 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5667echo "${ECHO_T}$XGETTEXT" >&6
5668else
5669 echo "$as_me:$LINENO: result: no" >&5
5670echo "${ECHO_T}no" >&6
5671fi
5672
5673
5674 USE_INCLUDED_LIBINTL=yes
5675 CATOBJEXT=.gmo
5676 INSTOBJEXT=.mo
5677 DATADIRNAME=share
5678 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5679 INTLLIBS=$INTLDEPS
5680 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5681 nls_cv_header_intl=libintl.h
5682 nls_cv_header_libgt=libgettext.h
5683 fi
5684
5685 if test "$XGETTEXT" != ":"; then
5686 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5687 : ;
5688 else
5689 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5690echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5691 XGETTEXT=":"
5692 fi
5693 fi
5694
5695 # We need to process the po/ directory.
5696 POSUB=po
5697 else
5698 DATADIRNAME=share
5699 nls_cv_header_intl=libintl.h
5700 nls_cv_header_libgt=libgettext.h
5701 fi
5702
5703 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5704 # because some of the sources are only built for this goal.
5705 if test "$PACKAGE" = gettext; then
5706 USE_NLS=yes
5707 USE_INCLUDED_LIBINTL=yes
5708 fi
5709
5710 for lang in $ALL_LINGUAS; do
5711 GMOFILES="$GMOFILES $lang.gmo"
5712 POFILES="$POFILES $lang.po"
5713 done
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728 if test "x$CATOBJEXT" != "x"; then
5729 if test "x$ALL_LINGUAS" = "x"; then
5730 LINGUAS=
5731 else
5732 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5733echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5734 NEW_LINGUAS=
5735 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5736 case "$ALL_LINGUAS" in
5737 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5738 esac
5739 done
5740 LINGUAS=$NEW_LINGUAS
5741 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5742echo "${ECHO_T}$LINGUAS" >&6
5743 fi
5744
5745 if test -n "$LINGUAS"; then
5746 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5747 fi
5748 fi
5749
5750 if test $ac_cv_header_locale_h = yes; then
5751 INCLUDE_LOCALE_H="#include <locale.h>"
5752 else
5753 INCLUDE_LOCALE_H="\
5754/* The system does not provide the header <locale.h>. Take care yourself. */"
5755 fi
5756
5757
5758 if test -f $srcdir/po2tbl.sed.in; then
5759 if test "$CATOBJEXT" = ".cat"; then
5760 if test "${ac_cv_header_linux_version_h+set}" = set; then
5761 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5762echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5763if test "${ac_cv_header_linux_version_h+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765fi
5766echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5767echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5768else
5769 # Is the header compilable?
5770echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5771echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5772cat >conftest.$ac_ext <<_ACEOF
5773/* confdefs.h. */
5774_ACEOF
5775cat confdefs.h >>conftest.$ac_ext
5776cat >>conftest.$ac_ext <<_ACEOF
5777/* end confdefs.h. */
5778$ac_includes_default
5779#include <linux/version.h>
5780_ACEOF
5781rm -f conftest.$ac_objext
5782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783 (eval $ac_compile) 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -z "$ac_c_werror_flag"
5791 || test ! -s conftest.err'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; } &&
5797 { ac_try='test -s conftest.$ac_objext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 ac_header_compiler=yes
5804else
5805 echo "$as_me: failed program was:" >&5
5806sed 's/^/| /' conftest.$ac_ext >&5
5807
5808ac_header_compiler=no
5809fi
5810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5811echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5812echo "${ECHO_T}$ac_header_compiler" >&6
5813
5814# Is the header present?
5815echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5816echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5817cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h. */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h. */
5823#include <linux/version.h>
5824_ACEOF
5825if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } >/dev/null; then
5833 if test -s conftest.err; then
5834 ac_cpp_err=$ac_c_preproc_warn_flag
5835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5836 else
5837 ac_cpp_err=
5838 fi
5839else
5840 ac_cpp_err=yes
5841fi
5842if test -z "$ac_cpp_err"; then
5843 ac_header_preproc=yes
5844else
5845 echo "$as_me: failed program was:" >&5
5846sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 ac_header_preproc=no
5849fi
5850rm -f conftest.err conftest.$ac_ext
5851echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5852echo "${ECHO_T}$ac_header_preproc" >&6
5853
5854# So? What about this header?
5855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5856 yes:no: )
5857 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5858echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5859 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5860echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5861 ac_header_preproc=yes
5862 ;;
5863 no:yes:* )
5864 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5865echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5867echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5869echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5871echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5872 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5873echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5875echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5876 (
5877 cat <<\_ASBOX
5878## ------------------------------------------ ##
5879## Report this to the AC_PACKAGE_NAME lists. ##
5880## ------------------------------------------ ##
5881_ASBOX
5882 ) |
5883 sed "s/^/$as_me: WARNING: /" >&2
5884 ;;
5885esac
5886echo "$as_me:$LINENO: checking for linux/version.h" >&5
5887echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5888if test "${ac_cv_header_linux_version_h+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890else
5891 ac_cv_header_linux_version_h=$ac_header_preproc
5892fi
5893echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5894echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5895
5896fi
5897if test $ac_cv_header_linux_version_h = yes; then
5898 msgformat=linux
5899else
5900 msgformat=xopen
5901fi
5902
5903
5904
5905 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5906 fi
5907 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5908 $srcdir/po2tbl.sed.in > po2tbl.sed
5909 fi
5910
5911 if test "$PACKAGE" = "gettext"; then
5912 GT_NO="#NO#"
5913 GT_YES=
5914 else
5915 GT_NO=
5916 GT_YES="#YES#"
5917 fi
5918
5919
5920
5921 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5922
5923
5924 l=
5925
5926
5927 if test -f $srcdir/po/POTFILES.in; then
5928 test -d po || mkdir po
5929 if test "x$srcdir" != "x."; then
5930 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5931 posrcprefix="$srcdir/"
5932 else
5933 posrcprefix="../$srcdir/"
5934 fi
5935 else
5936 posrcprefix="../"
5937 fi
5938 rm -f po/POTFILES
5939 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5940 < $srcdir/po/POTFILES.in > po/POTFILES
5941 fi
5942
5943
5944localedir='${datadir}/locale'
5945
5946
5947if test "x$POSUB" != x; then
5948
5949 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5950echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5951 # Look for .po and .gmo files in the source directory.
5952 CATALOGS=
5953 XLINGUAS=
5954 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5955 # If there aren't any .gmo files the shell will give us the
5956 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5957 # weeded out.
5958 case "$cat" in *\**)
5959 continue;;
5960 esac
5961 # The quadruple backslash is collapsed to a double backslash
5962 # by the backticks, then collapsed again by the double quotes,
5963 # leaving us with one backslash in the sed expression (right
5964 # before the dot that mustn't act as a wildcard).
5965 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5966 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5967 # The user is allowed to set LINGUAS to a list of languages to
5968 # install catalogs for. If it's empty that means "all of them."
5969 if test "x$LINGUAS" = x; then
5970 CATALOGS="$CATALOGS $cat"
5971 XLINGUAS="$XLINGUAS $lang"
5972 else
5973 case "$LINGUAS" in *$lang*)
5974 CATALOGS="$CATALOGS $cat"
5975 XLINGUAS="$XLINGUAS $lang"
5976 ;;
5977 esac
5978 fi
5979 done
5980 LINGUAS="$XLINGUAS"
5981 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5982echo "${ECHO_T}$LINGUAS" >&6
5983
5984 CONFIG_ALL="$CONFIG_ALL all-po"
5985 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5986 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5987 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5988fi
5989
5990PACKAGE=gdb
5991
5992cat >>confdefs.h <<_ACEOF
5993#define PACKAGE "$PACKAGE"
5994_ACEOF
5995
5996
5997
5998debugdir=${libdir}/debug
5999
6000
6001# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6002if test "${with_separate_debug_dir+set}" = set; then
6003 withval="$with_separate_debug_dir"
6004 debugdir="${withval}"
6005fi;
6006
6007
6008 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6009 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6010 ac_define_dir=`eval echo $debugdir`
6011 ac_define_dir=`eval echo $ac_define_dir`
6012
6013cat >>confdefs.h <<_ACEOF
6014#define DEBUGDIR "$ac_define_dir"
6015_ACEOF
6016
6017
6018#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6019
6020
6021
6022subdirs="$subdirs doc testsuite"
6023
6024
6025. $srcdir/configure.host
6026
6027. $srcdir/configure.tgt
6028
6029# Fetch the default architecture and default target vector from BFD.
6030targ=$target; . $srcdir/../bfd/config.bfd
6031
6032# We only want the first architecture, so strip off the others if
6033# there is more than one.
6034targ_archs=`echo $targ_archs | sed 's/ .*//'`
6035
6036if test "x$targ_archs" != x; then
6037
6038cat >>confdefs.h <<_ACEOF
6039#define DEFAULT_BFD_ARCH $targ_archs
6040_ACEOF
6041
6042fi
6043if test "x$targ_defvec" != x; then
6044
6045cat >>confdefs.h <<_ACEOF
6046#define DEFAULT_BFD_VEC $targ_defvec
6047_ACEOF
6048
6049fi
6050
6051test "$program_prefix" != NONE &&
6052 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6053# Use a double $ so make ignores it.
6054test "$program_suffix" != NONE &&
6055 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6056# Double any \ or $. echo might interpret backslashes.
6057# By default was `s,x,x', remove it if useless.
6058cat <<\_ACEOF >conftest.sed
6059s/[\\$]/&&/g;s/;s,x,x,$//
6060_ACEOF
6061program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6062rm conftest.sed
6063
6064
6065# The CLI cannot be disabled yet, but may be in the future.
6066
6067# Enable CLI.
6068# Check whether --enable-gdbcli or --disable-gdbcli was given.
6069if test "${enable_gdbcli+set}" = set; then
6070 enableval="$enable_gdbcli"
6071 case $enableval in
6072 yes)
6073 ;;
6074 no)
6075 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6076echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6077 { (exit 1); exit 1; }; } ;;
6078 *)
6079 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6080echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6081 { (exit 1); exit 1; }; } ;;
6082 esac
6083else
6084 enable_gdbcli=yes
6085fi;
6086if test x"$enable_gdbcli" = xyes; then
6087 if test -d $srcdir/cli; then
6088 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6089 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6090 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6091 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6092 fi
6093fi
6094
6095# Enable MI.
6096# Check whether --enable-gdbmi or --disable-gdbmi was given.
6097if test "${enable_gdbmi+set}" = set; then
6098 enableval="$enable_gdbmi"
6099 case $enableval in
6100 yes | no)
6101 ;;
6102 *)
6103 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6104echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6105 { (exit 1); exit 1; }; } ;;
6106 esac
6107else
6108 enable_gdbmi=yes
6109fi;
6110if test x"$enable_gdbmi" = xyes; then
6111 if test -d $srcdir/mi; then
6112 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6113 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6114 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6115 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6116 fi
6117fi
6118
6119# Enable TUI.
6120# Check whether --enable-tui or --disable-tui was given.
6121if test "${enable_tui+set}" = set; then
6122 enableval="$enable_tui"
6123 case $enableval in
6124 yes | no)
6125 ;;
6126 *)
6127 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6128echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6129 { (exit 1); exit 1; }; } ;;
6130 esac
6131else
6132 enable_tui=yes
6133fi;
6134
6135# Enable gdbtk.
6136# Check whether --enable-gdbtk or --disable-gdbtk was given.
6137if test "${enable_gdbtk+set}" = set; then
6138 enableval="$enable_gdbtk"
6139 case $enableval in
6140 yes | no)
6141 ;;
6142 *)
6143 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6144echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6145 { (exit 1); exit 1; }; } ;;
6146 esac
6147else
6148 if test -d $srcdir/gdbtk; then
6149 enable_gdbtk=yes
6150 else
6151 enable_gdbtk=no
6152 fi
6153fi;
6154# We unconditionally disable gdbtk tests on selected platforms.
6155case $host_os in
6156 go32* | windows*)
6157 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6158echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6159 enable_gdbtk=no ;;
6160esac
6161
6162# Libunwind support.
6163
6164# Check whether --with-libunwind or --without-libunwind was given.
6165if test "${with_libunwind+set}" = set; then
6166 withval="$with_libunwind"
6167 case "${withval}" in
6168 yes) enable_libunwind=yes ;;
6169 no) enable_libunwind=no ;;
6170 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6171echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6172 { (exit 1); exit 1; }; } ;;
6173esac
6174else
6175
6176
6177for ac_header in libunwind.h
6178do
6179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6180if eval "test \"\${$as_ac_Header+set}\" = set"; then
6181 echo "$as_me:$LINENO: checking for $ac_header" >&5
6182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6183if eval "test \"\${$as_ac_Header+set}\" = set"; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185fi
6186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6188else
6189 # Is the header compilable?
6190echo "$as_me:$LINENO: checking $ac_header usability" >&5
6191echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6192cat >conftest.$ac_ext <<_ACEOF
6193/* confdefs.h. */
6194_ACEOF
6195cat confdefs.h >>conftest.$ac_ext
6196cat >>conftest.$ac_ext <<_ACEOF
6197/* end confdefs.h. */
6198$ac_includes_default
6199#include <$ac_header>
6200_ACEOF
6201rm -f conftest.$ac_objext
6202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -z "$ac_c_werror_flag"
6211 || test ! -s conftest.err'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 ac_header_compiler=yes
6224else
6225 echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228ac_header_compiler=no
6229fi
6230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6231echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6232echo "${ECHO_T}$ac_header_compiler" >&6
6233
6234# Is the header present?
6235echo "$as_me:$LINENO: checking $ac_header presence" >&5
6236echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6237cat >conftest.$ac_ext <<_ACEOF
6238/* confdefs.h. */
6239_ACEOF
6240cat confdefs.h >>conftest.$ac_ext
6241cat >>conftest.$ac_ext <<_ACEOF
6242/* end confdefs.h. */
6243#include <$ac_header>
6244_ACEOF
6245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } >/dev/null; then
6253 if test -s conftest.err; then
6254 ac_cpp_err=$ac_c_preproc_warn_flag
6255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6256 else
6257 ac_cpp_err=
6258 fi
6259else
6260 ac_cpp_err=yes
6261fi
6262if test -z "$ac_cpp_err"; then
6263 ac_header_preproc=yes
6264else
6265 echo "$as_me: failed program was:" >&5
6266sed 's/^/| /' conftest.$ac_ext >&5
6267
6268 ac_header_preproc=no
6269fi
6270rm -f conftest.err conftest.$ac_ext
6271echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6272echo "${ECHO_T}$ac_header_preproc" >&6
6273
6274# So? What about this header?
6275case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6276 yes:no: )
6277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6278echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6280echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6281 ac_header_preproc=yes
6282 ;;
6283 no:yes:* )
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6285echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6287echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6289echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6291echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6293echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6295echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6296 (
6297 cat <<\_ASBOX
6298## ------------------------------------------ ##
6299## Report this to the AC_PACKAGE_NAME lists. ##
6300## ------------------------------------------ ##
6301_ASBOX
6302 ) |
6303 sed "s/^/$as_me: WARNING: /" >&2
6304 ;;
6305esac
6306echo "$as_me:$LINENO: checking for $ac_header" >&5
6307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6308if eval "test \"\${$as_ac_Header+set}\" = set"; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310else
6311 eval "$as_ac_Header=\$ac_header_preproc"
6312fi
6313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6315
6316fi
6317if test `eval echo '${'$as_ac_Header'}'` = yes; then
6318 cat >>confdefs.h <<_ACEOF
6319#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6320_ACEOF
6321
6322fi
6323
6324done
6325
6326
6327for ac_header in libunwind-ia64.h
6328do
6329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330if eval "test \"\${$as_ac_Header+set}\" = set"; then
6331 echo "$as_me:$LINENO: checking for $ac_header" >&5
6332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6333if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335fi
6336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6338else
6339 # Is the header compilable?
6340echo "$as_me:$LINENO: checking $ac_header usability" >&5
6341echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6342cat >conftest.$ac_ext <<_ACEOF
6343/* confdefs.h. */
6344_ACEOF
6345cat confdefs.h >>conftest.$ac_ext
6346cat >>conftest.$ac_ext <<_ACEOF
6347/* end confdefs.h. */
6348$ac_includes_default
6349#include <$ac_header>
6350_ACEOF
6351rm -f conftest.$ac_objext
6352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353 (eval $ac_compile) 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try='test -z "$ac_c_werror_flag"
6361 || test ! -s conftest.err'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 (eval $ac_try) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_header_compiler=yes
6374else
6375 echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378ac_header_compiler=no
6379fi
6380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6382echo "${ECHO_T}$ac_header_compiler" >&6
6383
6384# Is the header present?
6385echo "$as_me:$LINENO: checking $ac_header presence" >&5
6386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6387cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h. */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h. */
6393#include <$ac_header>
6394_ACEOF
6395if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6397 ac_status=$?
6398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } >/dev/null; then
6403 if test -s conftest.err; then
6404 ac_cpp_err=$ac_c_preproc_warn_flag
6405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6406 else
6407 ac_cpp_err=
6408 fi
6409else
6410 ac_cpp_err=yes
6411fi
6412if test -z "$ac_cpp_err"; then
6413 ac_header_preproc=yes
6414else
6415 echo "$as_me: failed program was:" >&5
6416sed 's/^/| /' conftest.$ac_ext >&5
6417
6418 ac_header_preproc=no
6419fi
6420rm -f conftest.err conftest.$ac_ext
6421echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6422echo "${ECHO_T}$ac_header_preproc" >&6
6423
6424# So? What about this header?
6425case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6426 yes:no: )
6427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6428echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6430echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6431 ac_header_preproc=yes
6432 ;;
6433 no:yes:* )
6434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6435echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6437echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6439echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6441echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6443echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6445echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6446 (
6447 cat <<\_ASBOX
6448## ------------------------------------------ ##
6449## Report this to the AC_PACKAGE_NAME lists. ##
6450## ------------------------------------------ ##
6451_ASBOX
6452 ) |
6453 sed "s/^/$as_me: WARNING: /" >&2
6454 ;;
6455esac
6456echo "$as_me:$LINENO: checking for $ac_header" >&5
6457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6458if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461 eval "$as_ac_Header=\$ac_header_preproc"
6462fi
6463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6465
6466fi
6467if test `eval echo '${'$as_ac_Header'}'` = yes; then
6468 cat >>confdefs.h <<_ACEOF
6469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6470_ACEOF
6471
6472fi
6473
6474done
6475
6476 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6477 enable_libunwind=yes;
6478 fi
6479
6480fi;
6481
6482if test x"$enable_libunwind" = xyes; then
6483
6484for ac_header in libunwind.h
6485do
6486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6487if eval "test \"\${$as_ac_Header+set}\" = set"; then
6488 echo "$as_me:$LINENO: checking for $ac_header" >&5
6489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6490if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492fi
6493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6495else
6496 # Is the header compilable?
6497echo "$as_me:$LINENO: checking $ac_header usability" >&5
6498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6499cat >conftest.$ac_ext <<_ACEOF
6500/* confdefs.h. */
6501_ACEOF
6502cat confdefs.h >>conftest.$ac_ext
6503cat >>conftest.$ac_ext <<_ACEOF
6504/* end confdefs.h. */
6505$ac_includes_default
6506#include <$ac_header>
6507_ACEOF
6508rm -f conftest.$ac_objext
6509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510 (eval $ac_compile) 2>conftest.er1
6511 ac_status=$?
6512 grep -v '^ *+' conftest.er1 >conftest.err
6513 rm -f conftest.er1
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -z "$ac_c_werror_flag"
6518 || test ! -s conftest.err'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 (eval $ac_try) 2>&5
6521 ac_status=$?
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try='test -s conftest.$ac_objext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 (eval $ac_try) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6530 ac_header_compiler=yes
6531else
6532 echo "$as_me: failed program was:" >&5
6533sed 's/^/| /' conftest.$ac_ext >&5
6534
6535ac_header_compiler=no
6536fi
6537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6539echo "${ECHO_T}$ac_header_compiler" >&6
6540
6541# Is the header present?
6542echo "$as_me:$LINENO: checking $ac_header presence" >&5
6543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6544cat >conftest.$ac_ext <<_ACEOF
6545/* confdefs.h. */
6546_ACEOF
6547cat confdefs.h >>conftest.$ac_ext
6548cat >>conftest.$ac_ext <<_ACEOF
6549/* end confdefs.h. */
6550#include <$ac_header>
6551_ACEOF
6552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } >/dev/null; then
6560 if test -s conftest.err; then
6561 ac_cpp_err=$ac_c_preproc_warn_flag
6562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6563 else
6564 ac_cpp_err=
6565 fi
6566else
6567 ac_cpp_err=yes
6568fi
6569if test -z "$ac_cpp_err"; then
6570 ac_header_preproc=yes
6571else
6572 echo "$as_me: failed program was:" >&5
6573sed 's/^/| /' conftest.$ac_ext >&5
6574
6575 ac_header_preproc=no
6576fi
6577rm -f conftest.err conftest.$ac_ext
6578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6579echo "${ECHO_T}$ac_header_preproc" >&6
6580
6581# So? What about this header?
6582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6583 yes:no: )
6584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6588 ac_header_preproc=yes
6589 ;;
6590 no:yes:* )
6591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6594echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6598echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6603 (
6604 cat <<\_ASBOX
6605## ------------------------------------------ ##
6606## Report this to the AC_PACKAGE_NAME lists. ##
6607## ------------------------------------------ ##
6608_ASBOX
6609 ) |
6610 sed "s/^/$as_me: WARNING: /" >&2
6611 ;;
6612esac
6613echo "$as_me:$LINENO: checking for $ac_header" >&5
6614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6615if eval "test \"\${$as_ac_Header+set}\" = set"; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617else
6618 eval "$as_ac_Header=\$ac_header_preproc"
6619fi
6620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6622
6623fi
6624if test `eval echo '${'$as_ac_Header'}'` = yes; then
6625 cat >>confdefs.h <<_ACEOF
6626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6627_ACEOF
6628
6629fi
6630
6631done
6632
6633
6634for ac_header in libunwind-ia64.h
6635do
6636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6637if eval "test \"\${$as_ac_Header+set}\" = set"; then
6638 echo "$as_me:$LINENO: checking for $ac_header" >&5
6639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6640if eval "test \"\${$as_ac_Header+set}\" = set"; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642fi
6643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6645else
6646 # Is the header compilable?
6647echo "$as_me:$LINENO: checking $ac_header usability" >&5
6648echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6649cat >conftest.$ac_ext <<_ACEOF
6650/* confdefs.h. */
6651_ACEOF
6652cat confdefs.h >>conftest.$ac_ext
6653cat >>conftest.$ac_ext <<_ACEOF
6654/* end confdefs.h. */
6655$ac_includes_default
6656#include <$ac_header>
6657_ACEOF
6658rm -f conftest.$ac_objext
6659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660 (eval $ac_compile) 2>conftest.er1
6661 ac_status=$?
6662 grep -v '^ *+' conftest.er1 >conftest.err
6663 rm -f conftest.er1
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try='test -z "$ac_c_werror_flag"
6668 || test ! -s conftest.err'
6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 (eval $ac_try) 2>&5
6671 ac_status=$?
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; } &&
6674 { ac_try='test -s conftest.$ac_objext'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676 (eval $ac_try) 2>&5
6677 ac_status=$?
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; }; then
6680 ac_header_compiler=yes
6681else
6682 echo "$as_me: failed program was:" >&5
6683sed 's/^/| /' conftest.$ac_ext >&5
6684
6685ac_header_compiler=no
6686fi
6687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6688echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6689echo "${ECHO_T}$ac_header_compiler" >&6
6690
6691# Is the header present?
6692echo "$as_me:$LINENO: checking $ac_header presence" >&5
6693echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6694cat >conftest.$ac_ext <<_ACEOF
6695/* confdefs.h. */
6696_ACEOF
6697cat confdefs.h >>conftest.$ac_ext
6698cat >>conftest.$ac_ext <<_ACEOF
6699/* end confdefs.h. */
6700#include <$ac_header>
6701_ACEOF
6702if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6704 ac_status=$?
6705 grep -v '^ *+' conftest.er1 >conftest.err
6706 rm -f conftest.er1
6707 cat conftest.err >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } >/dev/null; then
6710 if test -s conftest.err; then
6711 ac_cpp_err=$ac_c_preproc_warn_flag
6712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6713 else
6714 ac_cpp_err=
6715 fi
6716else
6717 ac_cpp_err=yes
6718fi
6719if test -z "$ac_cpp_err"; then
6720 ac_header_preproc=yes
6721else
6722 echo "$as_me: failed program was:" >&5
6723sed 's/^/| /' conftest.$ac_ext >&5
6724
6725 ac_header_preproc=no
6726fi
6727rm -f conftest.err conftest.$ac_ext
6728echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6729echo "${ECHO_T}$ac_header_preproc" >&6
6730
6731# So? What about this header?
6732case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6733 yes:no: )
6734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6735echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6737echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6738 ac_header_preproc=yes
6739 ;;
6740 no:yes:* )
6741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6742echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6744echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6746echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6748echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6750echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6752echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6753 (
6754 cat <<\_ASBOX
6755## ------------------------------------------ ##
6756## Report this to the AC_PACKAGE_NAME lists. ##
6757## ------------------------------------------ ##
6758_ASBOX
6759 ) |
6760 sed "s/^/$as_me: WARNING: /" >&2
6761 ;;
6762esac
6763echo "$as_me:$LINENO: checking for $ac_header" >&5
6764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6765if eval "test \"\${$as_ac_Header+set}\" = set"; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767else
6768 eval "$as_ac_Header=\$ac_header_preproc"
6769fi
6770echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6771echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6772
6773fi
6774if test `eval echo '${'$as_ac_Header'}'` = yes; then
6775 cat >>confdefs.h <<_ACEOF
6776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6777_ACEOF
6778
6779fi
6780
6781done
6782
6783 cat >>confdefs.h <<\_ACEOF
6784#define HAVE_LIBUNWIND 1
6785_ACEOF
6786
6787 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6788 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6789 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6790fi
6791
6792# Profiling support.
6793# Check whether --enable-profiling or --disable-profiling was given.
6794if test "${enable_profiling+set}" = set; then
6795 enableval="$enable_profiling"
6796 case $enableval in
6797 yes | no)
6798 ;;
6799 *)
6800 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6801echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6802 { (exit 1); exit 1; }; } ;;
6803 esac
6804else
6805 enable_profiling=no
6806fi;
6807
6808
6809
6810for ac_func in monstartup _mcleanup
6811do
6812as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6813echo "$as_me:$LINENO: checking for $ac_func" >&5
6814echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6815if eval "test \"\${$as_ac_var+set}\" = set"; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6817else
6818 cat >conftest.$ac_ext <<_ACEOF
6819/* confdefs.h. */
6820_ACEOF
6821cat confdefs.h >>conftest.$ac_ext
6822cat >>conftest.$ac_ext <<_ACEOF
6823/* end confdefs.h. */
6824/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6826#define $ac_func innocuous_$ac_func
6827
6828/* System header to define __stub macros and hopefully few prototypes,
6829 which can conflict with char $ac_func (); below.
6830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6831 <limits.h> exists even on freestanding compilers. */
6832
6833#ifdef __STDC__
6834# include <limits.h>
6835#else
6836# include <assert.h>
6837#endif
6838
6839#undef $ac_func
6840
6841/* Override any gcc2 internal prototype to avoid an error. */
6842#ifdef __cplusplus
6843extern "C"
6844{
6845#endif
6846/* We use char because int might match the return type of a gcc2
6847 builtin and then its argument prototype would still apply. */
6848char $ac_func ();
6849/* The GNU C library defines this for functions which it implements
6850 to always fail with ENOSYS. Some functions are actually named
6851 something starting with __ and the normal name is an alias. */
6852#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6853choke me
6854#else
6855char (*f) () = $ac_func;
6856#endif
6857#ifdef __cplusplus
6858}
6859#endif
6860
6861int
6862main ()
6863{
6864return f != $ac_func;
6865 ;
6866 return 0;
6867}
6868_ACEOF
6869rm -f conftest.$ac_objext conftest$ac_exeext
6870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6871 (eval $ac_link) 2>conftest.er1
6872 ac_status=$?
6873 grep -v '^ *+' conftest.er1 >conftest.err
6874 rm -f conftest.er1
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -z "$ac_c_werror_flag"
6879 || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest$ac_exeext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 eval "$as_ac_var=yes"
6892else
6893 echo "$as_me: failed program was:" >&5
6894sed 's/^/| /' conftest.$ac_ext >&5
6895
6896eval "$as_ac_var=no"
6897fi
6898rm -f conftest.err conftest.$ac_objext \
6899 conftest$ac_exeext conftest.$ac_ext
6900fi
6901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6902echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6903if test `eval echo '${'$as_ac_var'}'` = yes; then
6904 cat >>confdefs.h <<_ACEOF
6905#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6906_ACEOF
6907
6908fi
6909done
6910
6911echo "$as_me:$LINENO: checking for _etext" >&5
6912echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6913if test "${ac_cv_var__etext+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6915else
6916 cat >conftest.$ac_ext <<_ACEOF
6917/* confdefs.h. */
6918_ACEOF
6919cat confdefs.h >>conftest.$ac_ext
6920cat >>conftest.$ac_ext <<_ACEOF
6921/* end confdefs.h. */
6922#include <stdlib.h>
6923extern char _etext;
6924
6925int
6926main ()
6927{
6928free (&_etext);
6929 ;
6930 return 0;
6931}
6932_ACEOF
6933rm -f conftest.$ac_objext conftest$ac_exeext
6934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6935 (eval $ac_link) 2>conftest.er1
6936 ac_status=$?
6937 grep -v '^ *+' conftest.er1 >conftest.err
6938 rm -f conftest.er1
6939 cat conftest.err >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try='test -z "$ac_c_werror_flag"
6943 || test ! -s conftest.err'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 (eval $ac_try) 2>&5
6946 ac_status=$?
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; } &&
6949 { ac_try='test -s conftest$ac_exeext'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 (eval $ac_try) 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; }; then
6955 ac_cv_var__etext=yes
6956else
6957 echo "$as_me: failed program was:" >&5
6958sed 's/^/| /' conftest.$ac_ext >&5
6959
6960ac_cv_var__etext=no
6961fi
6962rm -f conftest.err conftest.$ac_objext \
6963 conftest$ac_exeext conftest.$ac_ext
6964fi
6965echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6966echo "${ECHO_T}$ac_cv_var__etext" >&6
6967if test $ac_cv_var__etext = yes; then
6968
6969cat >>confdefs.h <<\_ACEOF
6970#define HAVE__ETEXT 1
6971_ACEOF
6972
6973fi
6974if test "$enable_profiling" = yes ; then
6975 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6976 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6977echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6978 { (exit 1); exit 1; }; }
6979 fi
6980 PROFILE_CFLAGS=-pg
6981 OLD_CFLAGS="$CFLAGS"
6982 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6983
6984 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6985echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6986if test "${ac_cv_cc_supports_pg+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6988else
bec39cab
AC
6989 cat >conftest.$ac_ext <<_ACEOF
6990/* confdefs.h. */
6991_ACEOF
6992cat confdefs.h >>conftest.$ac_ext
6993cat >>conftest.$ac_ext <<_ACEOF
6994/* end confdefs.h. */
6995
6996int
6997main ()
6998{
6999int x;
7000 ;
7001 return 0;
7002}
7003_ACEOF
7004rm -f conftest.$ac_objext
7005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006 (eval $ac_compile) 2>conftest.er1
7007 ac_status=$?
7008 grep -v '^ *+' conftest.er1 >conftest.err
7009 rm -f conftest.er1
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -z "$ac_c_werror_flag"
7014 || test ! -s conftest.err'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; } &&
7020 { ac_try='test -s conftest.$ac_objext'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 ac_cv_cc_supports_pg=yes
7027else
7028 echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031ac_cv_cc_supports_pg=no
7032fi
7033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7034fi
7035echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
7036echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
7037
7038 if test $ac_cv_cc_supports_pg = no; then
7039 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
7040echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
7041 { (exit 1); exit 1; }; }
7042 fi
7043
7044 CFLAGS="$OLD_CFLAGS"
7045fi
7046
7047# --------------------- #
7048# Checks for programs. #
7049# --------------------- #
7050
7051for ac_prog in gawk mawk nawk awk
7052do
7053 # Extract the first word of "$ac_prog", so it can be a program name with args.
7054set dummy $ac_prog; ac_word=$2
7055echo "$as_me:$LINENO: checking for $ac_word" >&5
7056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7057if test "${ac_cv_prog_AWK+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059else
7060 if test -n "$AWK"; then
7061 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7062else
7063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH
7065do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070 ac_cv_prog_AWK="$ac_prog"
7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7073 fi
7074done
7075done
7076
7077fi
7078fi
7079AWK=$ac_cv_prog_AWK
7080if test -n "$AWK"; then
7081 echo "$as_me:$LINENO: result: $AWK" >&5
7082echo "${ECHO_T}$AWK" >&6
7083else
7084 echo "$as_me:$LINENO: result: no" >&5
7085echo "${ECHO_T}no" >&6
7086fi
7087
7088 test -n "$AWK" && break
7089done
7090
7091# Find a good install program. We prefer a C program (faster),
7092# so one script is as good as another. But avoid the broken or
7093# incompatible versions:
7094# SysV /etc/install, /usr/sbin/install
7095# SunOS /usr/etc/install
7096# IRIX /sbin/install
7097# AIX /bin/install
7098# AmigaOS /C/install, which installs bootblocks on floppy discs
7099# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7100# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7101# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7102# OS/2's system install, which has a completely different semantic
7103# ./install, which can be erroneously created by make from ./install.sh.
7104echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7105echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7106if test -z "$INSTALL"; then
7107if test "${ac_cv_path_install+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 # Account for people who put trailing slashes in PATH elements.
7116case $as_dir/ in
7117 ./ | .// | /cC/* | \
7118 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7119 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7120 /usr/ucb/* ) ;;
c906108c 7121 *)
bec39cab
AC
7122 # OSF1 and SCO ODT 3.0 have their own names for install.
7123 # Don't use installbsd from OSF since it installs stuff as root
7124 # by default.
7125 for ac_prog in ginstall scoinst install; do
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7128 if test $ac_prog = install &&
7129 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7130 # AIX install. It has an incompatible calling convention.
7131 :
7132 elif test $ac_prog = install &&
7133 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7134 # program-specific install script used by HP pwplus--don't use.
7135 :
7136 else
7137 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7138 break 3
7139 fi
7140 fi
7141 done
7142 done
7143 ;;
c906108c 7144esac
bec39cab
AC
7145done
7146
7147
7148fi
7149 if test "${ac_cv_path_install+set}" = set; then
7150 INSTALL=$ac_cv_path_install
7151 else
7152 # As a last resort, use the slow shell script. We don't cache a
7153 # path for INSTALL within a source directory, because that will
7154 # break other packages using the cache if that directory is
7155 # removed, or if the path is relative.
7156 INSTALL=$ac_install_sh
7157 fi
7158fi
7159echo "$as_me:$LINENO: result: $INSTALL" >&5
7160echo "${ECHO_T}$INSTALL" >&6
7161
7162# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7163# It thinks the first close brace ends the variable substitution.
7164test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7165
7166test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7167
7168test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7169
7170echo "$as_me:$LINENO: checking whether ln -s works" >&5
7171echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7172LN_S=$as_ln_s
7173if test "$LN_S" = "ln -s"; then
7174 echo "$as_me:$LINENO: result: yes" >&5
7175echo "${ECHO_T}yes" >&6
7176else
7177 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7178echo "${ECHO_T}no, using $LN_S" >&6
7179fi
7180
7181if test -n "$ac_tool_prefix"; then
7182 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7183set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7184echo "$as_me:$LINENO: checking for $ac_word" >&5
7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186if test "${ac_cv_prog_RANLIB+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189 if test -n "$RANLIB"; then
7190 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7191else
7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
7195 IFS=$as_save_IFS
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 break 2
7202 fi
7203done
7204done
7205
7206fi
7207fi
7208RANLIB=$ac_cv_prog_RANLIB
7209if test -n "$RANLIB"; then
7210 echo "$as_me:$LINENO: result: $RANLIB" >&5
7211echo "${ECHO_T}$RANLIB" >&6
7212else
7213 echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6
7215fi
7216
7217fi
7218if test -z "$ac_cv_prog_RANLIB"; then
7219 ac_ct_RANLIB=$RANLIB
7220 # Extract the first word of "ranlib", so it can be a program name with args.
7221set dummy ranlib; ac_word=$2
7222echo "$as_me:$LINENO: checking for $ac_word" >&5
7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7224if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 if test -n "$ac_ct_RANLIB"; then
7228 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7229else
7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_ac_ct_RANLIB="ranlib"
7238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7240 fi
7241done
7242done
7243
7244 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7245fi
7246fi
7247ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7248if test -n "$ac_ct_RANLIB"; then
7249 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7250echo "${ECHO_T}$ac_ct_RANLIB" >&6
7251else
7252 echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
7254fi
7255
7256 RANLIB=$ac_ct_RANLIB
7257else
7258 RANLIB="$ac_cv_prog_RANLIB"
7259fi
7260
7261for ac_prog in 'bison -y' byacc
7262do
7263 # Extract the first word of "$ac_prog", so it can be a program name with args.
7264set dummy $ac_prog; ac_word=$2
7265echo "$as_me:$LINENO: checking for $ac_word" >&5
7266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267if test "${ac_cv_prog_YACC+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269else
7270 if test -n "$YACC"; then
7271 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7272else
7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_YACC="$ac_prog"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284done
7285done
7286
7287fi
7288fi
7289YACC=$ac_cv_prog_YACC
7290if test -n "$YACC"; then
7291 echo "$as_me:$LINENO: result: $YACC" >&5
7292echo "${ECHO_T}$YACC" >&6
7293else
7294 echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6
7296fi
7297
7298 test -n "$YACC" && break
7299done
7300test -n "$YACC" || YACC="yacc"
7301
7302
7303if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7305set dummy ${ac_tool_prefix}ar; ac_word=$2
7306echo "$as_me:$LINENO: checking for $ac_word" >&5
7307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308if test "${ac_cv_prog_AR+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310else
7311 if test -n "$AR"; then
7312 ac_cv_prog_AR="$AR" # Let the user override the test.
7313else
7314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_AR="${ac_tool_prefix}ar"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7324 fi
7325done
7326done
7327
7328fi
7329fi
7330AR=$ac_cv_prog_AR
7331if test -n "$AR"; then
7332 echo "$as_me:$LINENO: result: $AR" >&5
7333echo "${ECHO_T}$AR" >&6
7334else
7335 echo "$as_me:$LINENO: result: no" >&5
7336echo "${ECHO_T}no" >&6
7337fi
7338
7339fi
7340if test -z "$ac_cv_prog_AR"; then
7341 ac_ct_AR=$AR
7342 # Extract the first word of "ar", so it can be a program name with args.
7343set dummy ar; ac_word=$2
7344echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349 if test -n "$ac_ct_AR"; then
7350 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7351else
7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_ac_ct_AR="ar"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363done
7364done
7365
7366fi
7367fi
7368ac_ct_AR=$ac_cv_prog_ac_ct_AR
7369if test -n "$ac_ct_AR"; then
7370 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7371echo "${ECHO_T}$ac_ct_AR" >&6
7372else
7373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375fi
7376
7377 AR=$ac_ct_AR
7378else
7379 AR="$ac_cv_prog_AR"
7380fi
7381
7382if test -n "$ac_tool_prefix"; then
7383 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7384set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7385echo "$as_me:$LINENO: checking for $ac_word" >&5
7386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7387if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389else
7390 if test -n "$DLLTOOL"; then
7391 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7392else
7393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7403 fi
7404done
7405done
7406
7407fi
7408fi
7409DLLTOOL=$ac_cv_prog_DLLTOOL
7410if test -n "$DLLTOOL"; then
7411 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7412echo "${ECHO_T}$DLLTOOL" >&6
7413else
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
7416fi
7417
7418fi
7419if test -z "$ac_cv_prog_DLLTOOL"; then
7420 ac_ct_DLLTOOL=$DLLTOOL
7421 # Extract the first word of "dlltool", so it can be a program name with args.
7422set dummy dlltool; ac_word=$2
7423echo "$as_me:$LINENO: checking for $ac_word" >&5
7424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7425if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427else
7428 if test -n "$ac_ct_DLLTOOL"; then
7429 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7430else
7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7441 fi
7442done
7443done
7444
7445fi
7446fi
7447ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7448if test -n "$ac_ct_DLLTOOL"; then
7449 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7450echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7451else
7452 echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6
7454fi
7455
7456 DLLTOOL=$ac_ct_DLLTOOL
7457else
7458 DLLTOOL="$ac_cv_prog_DLLTOOL"
7459fi
7460
7461if test -n "$ac_tool_prefix"; then
7462 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7463set dummy ${ac_tool_prefix}windres; ac_word=$2
7464echo "$as_me:$LINENO: checking for $ac_word" >&5
7465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7466if test "${ac_cv_prog_WINDRES+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468else
7469 if test -n "$WINDRES"; then
7470 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7471else
7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7482 fi
7483done
7484done
7485
7486fi
7487fi
7488WINDRES=$ac_cv_prog_WINDRES
7489if test -n "$WINDRES"; then
7490 echo "$as_me:$LINENO: result: $WINDRES" >&5
7491echo "${ECHO_T}$WINDRES" >&6
7492else
7493 echo "$as_me:$LINENO: result: no" >&5
7494echo "${ECHO_T}no" >&6
7495fi
7496
7497fi
7498if test -z "$ac_cv_prog_WINDRES"; then
7499 ac_ct_WINDRES=$WINDRES
7500 # Extract the first word of "windres", so it can be a program name with args.
7501set dummy windres; ac_word=$2
7502echo "$as_me:$LINENO: checking for $ac_word" >&5
7503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7504if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506else
7507 if test -n "$ac_ct_WINDRES"; then
7508 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7509else
7510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511for as_dir in $PATH
7512do
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_ac_ct_WINDRES="windres"
7518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7520 fi
7521done
7522done
7523
7524fi
7525fi
7526ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7527if test -n "$ac_ct_WINDRES"; then
7528 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7529echo "${ECHO_T}$ac_ct_WINDRES" >&6
7530else
7531 echo "$as_me:$LINENO: result: no" >&5
7532echo "${ECHO_T}no" >&6
c906108c 7533fi
bec39cab
AC
7534
7535 WINDRES=$ac_ct_WINDRES
c906108c 7536else
bec39cab 7537 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
7538fi
7539
bec39cab
AC
7540
7541# Needed for GNU/Hurd.
7542if test -n "$ac_tool_prefix"; then
7543 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7544set dummy ${ac_tool_prefix}mig; ac_word=$2
7545echo "$as_me:$LINENO: checking for $ac_word" >&5
7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7547if test "${ac_cv_prog_MIG+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7549else
bec39cab
AC
7550 if test -n "$MIG"; then
7551 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7552else
7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7563 fi
7564done
7565done
7566
c906108c 7567fi
bec39cab
AC
7568fi
7569MIG=$ac_cv_prog_MIG
7570if test -n "$MIG"; then
7571 echo "$as_me:$LINENO: result: $MIG" >&5
7572echo "${ECHO_T}$MIG" >&6
c906108c 7573else
bec39cab
AC
7574 echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6
c906108c
SS
7576fi
7577
bec39cab
AC
7578fi
7579if test -z "$ac_cv_prog_MIG"; then
7580 ac_ct_MIG=$MIG
7581 # Extract the first word of "mig", so it can be a program name with args.
7582set dummy mig; ac_word=$2
7583echo "$as_me:$LINENO: checking for $ac_word" >&5
7584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7585if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588 if test -n "$ac_ct_MIG"; then
7589 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7590else
7591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592for as_dir in $PATH
7593do
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598 ac_cv_prog_ac_ct_MIG="mig"
7599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7601 fi
7602done
7603done
c906108c 7604
bec39cab
AC
7605fi
7606fi
7607ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7608if test -n "$ac_ct_MIG"; then
7609 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7610echo "${ECHO_T}$ac_ct_MIG" >&6
7611else
7612 echo "$as_me:$LINENO: result: no" >&5
7613echo "${ECHO_T}no" >&6
7614fi
c906108c 7615
bec39cab
AC
7616 MIG=$ac_ct_MIG
7617else
7618 MIG="$ac_cv_prog_MIG"
7619fi
c906108c 7620
c906108c 7621
bec39cab
AC
7622# ---------------------- #
7623# Checks for libraries. #
7624# ---------------------- #
c906108c 7625
bec39cab 7626# We might need to link with -lm; most simulators need it.
c906108c 7627
bec39cab
AC
7628echo "$as_me:$LINENO: checking for main in -lm" >&5
7629echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7630if test "${ac_cv_lib_m_main+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632else
7633 ac_check_lib_save_LIBS=$LIBS
7634LIBS="-lm $LIBS"
7635cat >conftest.$ac_ext <<_ACEOF
7636/* confdefs.h. */
7637_ACEOF
7638cat confdefs.h >>conftest.$ac_ext
7639cat >>conftest.$ac_ext <<_ACEOF
7640/* end confdefs.h. */
c906108c 7641
c906108c 7642
bec39cab
AC
7643int
7644main ()
7645{
7646main ();
7647 ;
7648 return 0;
7649}
7650_ACEOF
7651rm -f conftest.$ac_objext conftest$ac_exeext
7652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7653 (eval $ac_link) 2>conftest.er1
7654 ac_status=$?
7655 grep -v '^ *+' conftest.er1 >conftest.err
7656 rm -f conftest.er1
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } &&
7660 { ac_try='test -z "$ac_c_werror_flag"
7661 || test ! -s conftest.err'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; } &&
7667 { ac_try='test -s conftest$ac_exeext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 ac_cv_lib_m_main=yes
7674else
7675 echo "$as_me: failed program was:" >&5
7676sed 's/^/| /' conftest.$ac_ext >&5
7677
7678ac_cv_lib_m_main=no
7679fi
7680rm -f conftest.err conftest.$ac_objext \
7681 conftest$ac_exeext conftest.$ac_ext
7682LIBS=$ac_check_lib_save_LIBS
7683fi
7684echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7685echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7686if test $ac_cv_lib_m_main = yes; then
7687 cat >>confdefs.h <<_ACEOF
7688#define HAVE_LIBM 1
7689_ACEOF
7690
7691 LIBS="-lm $LIBS"
c906108c 7692
c906108c 7693fi
bec39cab
AC
7694
7695
7696# We need to link with -lw to get `wctype' on Solaris before Solaris
7697# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7698# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7699# is known to have this problem). Therefore we avoid libw if we can.
7700echo "$as_me:$LINENO: checking for wctype" >&5
7701echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7702if test "${ac_cv_func_wctype+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705 cat >conftest.$ac_ext <<_ACEOF
7706/* confdefs.h. */
7707_ACEOF
7708cat confdefs.h >>conftest.$ac_ext
7709cat >>conftest.$ac_ext <<_ACEOF
7710/* end confdefs.h. */
7711/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7713#define wctype innocuous_wctype
7714
7715/* System header to define __stub macros and hopefully few prototypes,
7716 which can conflict with char wctype (); below.
7717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7718 <limits.h> exists even on freestanding compilers. */
7719
7720#ifdef __STDC__
7721# include <limits.h>
7722#else
7723# include <assert.h>
7724#endif
7725
7726#undef wctype
7727
7728/* Override any gcc2 internal prototype to avoid an error. */
7729#ifdef __cplusplus
7730extern "C"
7731{
7732#endif
7733/* We use char because int might match the return type of a gcc2
7734 builtin and then its argument prototype would still apply. */
7735char wctype ();
7736/* The GNU C library defines this for functions which it implements
7737 to always fail with ENOSYS. Some functions are actually named
7738 something starting with __ and the normal name is an alias. */
7739#if defined (__stub_wctype) || defined (__stub___wctype)
7740choke me
7741#else
7742char (*f) () = wctype;
7743#endif
7744#ifdef __cplusplus
7745}
7746#endif
7747
7748int
7749main ()
7750{
7751return f != wctype;
7752 ;
7753 return 0;
7754}
7755_ACEOF
7756rm -f conftest.$ac_objext conftest$ac_exeext
7757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7758 (eval $ac_link) 2>conftest.er1
7759 ac_status=$?
7760 grep -v '^ *+' conftest.er1 >conftest.err
7761 rm -f conftest.er1
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -z "$ac_c_werror_flag"
7766 || test ! -s conftest.err'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 (eval $ac_try) 2>&5
7769 ac_status=$?
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; } &&
7772 { ac_try='test -s conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 (eval $ac_try) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778 ac_cv_func_wctype=yes
7779else
7780 echo "$as_me: failed program was:" >&5
7781sed 's/^/| /' conftest.$ac_ext >&5
7782
7783ac_cv_func_wctype=no
7784fi
7785rm -f conftest.err conftest.$ac_objext \
7786 conftest$ac_exeext conftest.$ac_ext
7787fi
7788echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7789echo "${ECHO_T}$ac_cv_func_wctype" >&6
7790if test $ac_cv_func_wctype = yes; then
7791 :
c906108c 7792else
c906108c 7793
bec39cab
AC
7794echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7795echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7796if test "${ac_cv_lib_w_wctype+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799 ac_check_lib_save_LIBS=$LIBS
7800LIBS="-lw $LIBS"
7801cat >conftest.$ac_ext <<_ACEOF
7802/* confdefs.h. */
7803_ACEOF
7804cat confdefs.h >>conftest.$ac_ext
7805cat >>conftest.$ac_ext <<_ACEOF
7806/* end confdefs.h. */
c906108c 7807
bec39cab
AC
7808/* Override any gcc2 internal prototype to avoid an error. */
7809#ifdef __cplusplus
7810extern "C"
7811#endif
7812/* We use char because int might match the return type of a gcc2
7813 builtin and then its argument prototype would still apply. */
7814char wctype ();
7815int
7816main ()
7817{
7818wctype ();
7819 ;
7820 return 0;
7821}
7822_ACEOF
7823rm -f conftest.$ac_objext conftest$ac_exeext
7824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825 (eval $ac_link) 2>conftest.er1
7826 ac_status=$?
7827 grep -v '^ *+' conftest.er1 >conftest.err
7828 rm -f conftest.er1
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -z "$ac_c_werror_flag"
7833 || test ! -s conftest.err'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 (eval $ac_try) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try='test -s conftest$ac_exeext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_lib_w_wctype=yes
7846else
7847 echo "$as_me: failed program was:" >&5
7848sed 's/^/| /' conftest.$ac_ext >&5
7849
7850ac_cv_lib_w_wctype=no
7851fi
7852rm -f conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854LIBS=$ac_check_lib_save_LIBS
7855fi
7856echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7857echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7858if test $ac_cv_lib_w_wctype = yes; then
7859 cat >>confdefs.h <<_ACEOF
7860#define HAVE_LIBW 1
7861_ACEOF
c906108c 7862
bec39cab 7863 LIBS="-lw $LIBS"
c906108c 7864
bec39cab 7865fi
c906108c 7866
bec39cab 7867fi
c906108c 7868
ddc9cd0f 7869
bec39cab
AC
7870# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7871echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7872echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7873if test "${ac_cv_search_gethostbyname+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876 ac_func_search_save_LIBS=$LIBS
7877ac_cv_search_gethostbyname=no
7878cat >conftest.$ac_ext <<_ACEOF
7879/* confdefs.h. */
7880_ACEOF
7881cat confdefs.h >>conftest.$ac_ext
7882cat >>conftest.$ac_ext <<_ACEOF
7883/* end confdefs.h. */
ddc9cd0f 7884
bec39cab
AC
7885/* Override any gcc2 internal prototype to avoid an error. */
7886#ifdef __cplusplus
7887extern "C"
7888#endif
7889/* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */
7891char gethostbyname ();
7892int
7893main ()
7894{
7895gethostbyname ();
7896 ;
7897 return 0;
7898}
7899_ACEOF
7900rm -f conftest.$ac_objext conftest$ac_exeext
7901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7902 (eval $ac_link) 2>conftest.er1
7903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try='test -z "$ac_c_werror_flag"
7910 || test ! -s conftest.err'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest$ac_exeext'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 (eval $ac_try) 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 ac_cv_search_gethostbyname="none required"
7923else
7924 echo "$as_me: failed program was:" >&5
7925sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7926
bec39cab
AC
7927fi
7928rm -f conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7930if test "$ac_cv_search_gethostbyname" = no; then
7931 for ac_lib in nsl; do
7932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7933 cat >conftest.$ac_ext <<_ACEOF
7934/* confdefs.h. */
7935_ACEOF
7936cat confdefs.h >>conftest.$ac_ext
7937cat >>conftest.$ac_ext <<_ACEOF
7938/* end confdefs.h. */
ddc9cd0f 7939
bec39cab
AC
7940/* Override any gcc2 internal prototype to avoid an error. */
7941#ifdef __cplusplus
7942extern "C"
7943#endif
7944/* We use char because int might match the return type of a gcc2
7945 builtin and then its argument prototype would still apply. */
7946char gethostbyname ();
7947int
7948main ()
7949{
7950gethostbyname ();
7951 ;
7952 return 0;
7953}
7954_ACEOF
7955rm -f conftest.$ac_objext conftest$ac_exeext
7956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7957 (eval $ac_link) 2>conftest.er1
7958 ac_status=$?
7959 grep -v '^ *+' conftest.er1 >conftest.err
7960 rm -f conftest.er1
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -z "$ac_c_werror_flag"
7965 || test ! -s conftest.err'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 (eval $ac_try) 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; } &&
7971 { ac_try='test -s conftest$ac_exeext'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 ac_cv_search_gethostbyname="-l$ac_lib"
7978break
7979else
7980 echo "$as_me: failed program was:" >&5
7981sed 's/^/| /' conftest.$ac_ext >&5
7982
7983fi
7984rm -f conftest.err conftest.$ac_objext \
7985 conftest$ac_exeext conftest.$ac_ext
ddc9cd0f 7986 done
bec39cab
AC
7987fi
7988LIBS=$ac_func_search_save_LIBS
7989fi
7990echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7991echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7992if test "$ac_cv_search_gethostbyname" != no; then
7993 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
ddc9cd0f 7994
ddc9cd0f
AC
7995fi
7996
0fbb3da7 7997
bec39cab
AC
7998# Some systems (e.g. Solaris) have `socketpair' in libsocket.
7999echo "$as_me:$LINENO: checking for library containing socketpair" >&5
8000echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
8001if test "${ac_cv_search_socketpair+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003else
8004 ac_func_search_save_LIBS=$LIBS
8005ac_cv_search_socketpair=no
8006cat >conftest.$ac_ext <<_ACEOF
8007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
0fbb3da7 8012
bec39cab
AC
8013/* Override any gcc2 internal prototype to avoid an error. */
8014#ifdef __cplusplus
8015extern "C"
8016#endif
8017/* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */
8019char socketpair ();
8020int
8021main ()
8022{
8023socketpair ();
8024 ;
8025 return 0;
8026}
8027_ACEOF
8028rm -f conftest.$ac_objext conftest$ac_exeext
8029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030 (eval $ac_link) 2>conftest.er1
8031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } &&
8037 { ac_try='test -z "$ac_c_werror_flag"
8038 || test ! -s conftest.err'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 (eval $ac_try) 2>&5
8041 ac_status=$?
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; } &&
8044 { ac_try='test -s conftest$ac_exeext'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 (eval $ac_try) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; }; then
8050 ac_cv_search_socketpair="none required"
8051else
8052 echo "$as_me: failed program was:" >&5
8053sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 8054
5b5d99cf 8055fi
bec39cab
AC
8056rm -f conftest.err conftest.$ac_objext \
8057 conftest$ac_exeext conftest.$ac_ext
8058if test "$ac_cv_search_socketpair" = no; then
8059 for ac_lib in socket; do
8060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8061 cat >conftest.$ac_ext <<_ACEOF
8062/* confdefs.h. */
8063_ACEOF
8064cat confdefs.h >>conftest.$ac_ext
8065cat >>conftest.$ac_ext <<_ACEOF
8066/* end confdefs.h. */
5b5d99cf 8067
bec39cab
AC
8068/* Override any gcc2 internal prototype to avoid an error. */
8069#ifdef __cplusplus
8070extern "C"
8071#endif
8072/* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8074char socketpair ();
8075int
8076main ()
8077{
8078socketpair ();
8079 ;
8080 return 0;
8081}
8082_ACEOF
8083rm -f conftest.$ac_objext conftest$ac_exeext
8084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8085 (eval $ac_link) 2>conftest.er1
8086 ac_status=$?
8087 grep -v '^ *+' conftest.er1 >conftest.err
8088 rm -f conftest.er1
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } &&
8092 { ac_try='test -z "$ac_c_werror_flag"
8093 || test ! -s conftest.err'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; } &&
8099 { ac_try='test -s conftest$ac_exeext'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 (eval $ac_try) 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105 ac_cv_search_socketpair="-l$ac_lib"
8106break
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
8114 done
8115fi
8116LIBS=$ac_func_search_save_LIBS
8117fi
8118echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8119echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8120if test "$ac_cv_search_socketpair" != no; then
8121 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
96baa820 8122
bec39cab 8123fi
96baa820 8124
c906108c 8125
bec39cab
AC
8126# For the TUI, we need enhanced curses functionality.
8127#
8128# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8129# curses library because the latter might not provide all the
8130# functionality we need. However, this leads to problems on systems
8131# where the linker searches /usr/local/lib, but the compiler doesn't
8132# search /usr/local/include, if ncurses is installed in /usr/local. A
8133# default installation of ncurses on alpha*-dec-osf* will lead to such
8134# a situation.
8135echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8136echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8137if test "${ac_cv_search_waddstr+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8139else
8140 ac_func_search_save_LIBS=$LIBS
8141ac_cv_search_waddstr=no
8142cat >conftest.$ac_ext <<_ACEOF
8143/* confdefs.h. */
8144_ACEOF
8145cat confdefs.h >>conftest.$ac_ext
8146cat >>conftest.$ac_ext <<_ACEOF
8147/* end confdefs.h. */
c906108c 8148
bec39cab
AC
8149/* Override any gcc2 internal prototype to avoid an error. */
8150#ifdef __cplusplus
8151extern "C"
8152#endif
8153/* We use char because int might match the return type of a gcc2
8154 builtin and then its argument prototype would still apply. */
8155char waddstr ();
8156int
8157main ()
8158{
8159waddstr ();
8160 ;
8161 return 0;
8162}
8163_ACEOF
8164rm -f conftest.$ac_objext conftest$ac_exeext
8165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166 (eval $ac_link) 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } &&
8173 { ac_try='test -z "$ac_c_werror_flag"
8174 || test ! -s conftest.err'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 (eval $ac_try) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest$ac_exeext'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 (eval $ac_try) 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_cv_search_waddstr="none required"
8187else
8188 echo "$as_me: failed program was:" >&5
8189sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8190
bec39cab
AC
8191fi
8192rm -f conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8194if test "$ac_cv_search_waddstr" = no; then
8195 for ac_lib in ncurses cursesX curses; do
8196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8197 cat >conftest.$ac_ext <<_ACEOF
8198/* confdefs.h. */
8199_ACEOF
8200cat confdefs.h >>conftest.$ac_ext
8201cat >>conftest.$ac_ext <<_ACEOF
8202/* end confdefs.h. */
1ba607ad 8203
bec39cab
AC
8204/* Override any gcc2 internal prototype to avoid an error. */
8205#ifdef __cplusplus
8206extern "C"
8207#endif
8208/* We use char because int might match the return type of a gcc2
8209 builtin and then its argument prototype would still apply. */
8210char waddstr ();
8211int
8212main ()
8213{
8214waddstr ();
8215 ;
8216 return 0;
8217}
8218_ACEOF
8219rm -f conftest.$ac_objext conftest$ac_exeext
8220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8221 (eval $ac_link) 2>conftest.er1
8222 ac_status=$?
8223 grep -v '^ *+' conftest.er1 >conftest.err
8224 rm -f conftest.er1
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try='test -z "$ac_c_werror_flag"
8229 || test ! -s conftest.err'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 (eval $ac_try) 2>&5
8232 ac_status=$?
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; } &&
8235 { ac_try='test -s conftest$ac_exeext'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 (eval $ac_try) 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 ac_cv_search_waddstr="-l$ac_lib"
8242break
8243else
8244 echo "$as_me: failed program was:" >&5
8245sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
8246
8247fi
bec39cab
AC
8248rm -f conftest.err conftest.$ac_objext \
8249 conftest$ac_exeext conftest.$ac_ext
8250 done
1ba607ad 8251fi
bec39cab
AC
8252LIBS=$ac_func_search_save_LIBS
8253fi
8254echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8255echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8256if test "$ac_cv_search_waddstr" != no; then
8257 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 8258
8bb2c122 8259fi
8bb2c122 8260
8bb2c122 8261
bec39cab
AC
8262# Since GDB uses Readline, we need termcap functionality. In many
8263# cases this will be provided by the curses library, but some systems
8264# have a seperate termcap library, or no curses library at all.
8bb2c122 8265
bec39cab
AC
8266case $host_os in
8267 cygwin*)
8268 if test -d $srcdir/libtermcap; then
8269 LIBS="../libtermcap/libtermcap.a $LIBS"
8270 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8271 fi ;;
8272 go32* | *djgpp*)
8273 ac_cv_search_tgetent="none required"
8274 ;;
8275esac
627af7ea 8276
bec39cab
AC
8277# These are the libraries checked by Readline.
8278echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8279echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8280if test "${ac_cv_search_tgetent+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282else
8283 ac_func_search_save_LIBS=$LIBS
8284ac_cv_search_tgetent=no
8285cat >conftest.$ac_ext <<_ACEOF
8286/* confdefs.h. */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h. */
8291
8292/* Override any gcc2 internal prototype to avoid an error. */
8293#ifdef __cplusplus
8294extern "C"
8295#endif
8296/* We use char because int might match the return type of a gcc2
8297 builtin and then its argument prototype would still apply. */
8298char tgetent ();
8299int
8300main ()
8301{
8302tgetent ();
8303 ;
8304 return 0;
8305}
8306_ACEOF
8307rm -f conftest.$ac_objext conftest$ac_exeext
8308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309 (eval $ac_link) 2>conftest.er1
8310 ac_status=$?
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -z "$ac_c_werror_flag"
8317 || test ! -s conftest.err'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 (eval $ac_try) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try='test -s conftest$ac_exeext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 ac_cv_search_tgetent="none required"
627af7ea 8330else
bec39cab
AC
8331 echo "$as_me: failed program was:" >&5
8332sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8333
627af7ea 8334fi
bec39cab
AC
8335rm -f conftest.err conftest.$ac_objext \
8336 conftest$ac_exeext conftest.$ac_ext
8337if test "$ac_cv_search_tgetent" = no; then
8338 for ac_lib in termcap tinfo curses ncurses; do
8339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8340 cat >conftest.$ac_ext <<_ACEOF
8341/* confdefs.h. */
8342_ACEOF
8343cat confdefs.h >>conftest.$ac_ext
8344cat >>conftest.$ac_ext <<_ACEOF
8345/* end confdefs.h. */
627af7ea 8346
bec39cab
AC
8347/* Override any gcc2 internal prototype to avoid an error. */
8348#ifdef __cplusplus
8349extern "C"
8350#endif
8351/* We use char because int might match the return type of a gcc2
8352 builtin and then its argument prototype would still apply. */
8353char tgetent ();
8354int
8355main ()
8356{
8357tgetent ();
8358 ;
8359 return 0;
8360}
8361_ACEOF
8362rm -f conftest.$ac_objext conftest$ac_exeext
8363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8364 (eval $ac_link) 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -z "$ac_c_werror_flag"
8372 || test ! -s conftest.err'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; } &&
8378 { ac_try='test -s conftest$ac_exeext'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 ac_cv_search_tgetent="-l$ac_lib"
8385break
627af7ea 8386else
bec39cab
AC
8387 echo "$as_me: failed program was:" >&5
8388sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8389
627af7ea 8390fi
bec39cab
AC
8391rm -f conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext conftest.$ac_ext
8393 done
8394fi
8395LIBS=$ac_func_search_save_LIBS
8396fi
8397echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8398echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8399if test "$ac_cv_search_tgetent" != no; then
8400 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 8401
06825bd1
MK
8402fi
8403
06825bd1 8404
bec39cab
AC
8405if test "$ac_cv_search_tgetent" = no; then
8406 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8407echo "$as_me: error: no termcap library found" >&2;}
8408 { (exit 1); exit 1; }; }
8ee53726
MK
8409fi
8410
bec39cab
AC
8411# ------------------------- #
8412# Checks for header files. #
8413# ------------------------- #
8ee53726 8414
0e5d83e3 8415
bec39cab
AC
8416
8417
8418
8419
8420ac_header_dirent=no
8421for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8422 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8423echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8424echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8425if eval "test \"\${$as_ac_Header+set}\" = set"; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427else
8428 cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h. */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h. */
8434#include <sys/types.h>
0e5d83e3 8435#include <$ac_hdr>
bec39cab
AC
8436
8437int
8438main ()
8439{
8440if ((DIR *) 0)
8441return 0;
8442 ;
8443 return 0;
8444}
8445_ACEOF
8446rm -f conftest.$ac_objext
8447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8448 (eval $ac_compile) 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest.$ac_objext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 eval "$as_ac_Header=yes"
8469else
8470 echo "$as_me: failed program was:" >&5
8471sed 's/^/| /' conftest.$ac_ext >&5
8472
8473eval "$as_ac_Header=no"
8474fi
8475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8476fi
8477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8479if test `eval echo '${'$as_ac_Header'}'` = yes; then
8480 cat >>confdefs.h <<_ACEOF
8481#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8482_ACEOF
8483
8484ac_header_dirent=$ac_hdr; break
0e5d83e3 8485fi
0e5d83e3 8486
bec39cab
AC
8487done
8488# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8489if test $ac_header_dirent = dirent.h; then
8490 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8491echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8492if test "${ac_cv_search_opendir+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494else
8495 ac_func_search_save_LIBS=$LIBS
8496ac_cv_search_opendir=no
8497cat >conftest.$ac_ext <<_ACEOF
8498/* confdefs.h. */
8499_ACEOF
8500cat confdefs.h >>conftest.$ac_ext
8501cat >>conftest.$ac_ext <<_ACEOF
8502/* end confdefs.h. */
0e5d83e3 8503
bec39cab
AC
8504/* Override any gcc2 internal prototype to avoid an error. */
8505#ifdef __cplusplus
8506extern "C"
8507#endif
8508/* We use char because int might match the return type of a gcc2
8509 builtin and then its argument prototype would still apply. */
8510char opendir ();
8511int
8512main ()
8513{
8514opendir ();
8515 ;
8516 return 0;
8517}
8518_ACEOF
8519rm -f conftest.$ac_objext conftest$ac_exeext
8520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521 (eval $ac_link) 2>conftest.er1
8522 ac_status=$?
8523 grep -v '^ *+' conftest.er1 >conftest.err
8524 rm -f conftest.er1
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag"
8529 || test ! -s conftest.err'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 (eval $ac_try) 2>&5
8532 ac_status=$?
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; } &&
8535 { ac_try='test -s conftest$ac_exeext'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; }; then
8541 ac_cv_search_opendir="none required"
8542else
8543 echo "$as_me: failed program was:" >&5
8544sed 's/^/| /' conftest.$ac_ext >&5
8545
8546fi
8547rm -f conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549if test "$ac_cv_search_opendir" = no; then
8550 for ac_lib in dir; do
8551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8552 cat >conftest.$ac_ext <<_ACEOF
8553/* confdefs.h. */
8554_ACEOF
8555cat confdefs.h >>conftest.$ac_ext
8556cat >>conftest.$ac_ext <<_ACEOF
8557/* end confdefs.h. */
0e5d83e3 8558
bec39cab
AC
8559/* Override any gcc2 internal prototype to avoid an error. */
8560#ifdef __cplusplus
8561extern "C"
8562#endif
8563/* We use char because int might match the return type of a gcc2
8564 builtin and then its argument prototype would still apply. */
8565char opendir ();
8566int
8567main ()
8568{
8569opendir ();
8570 ;
8571 return 0;
8572}
8573_ACEOF
8574rm -f conftest.$ac_objext conftest$ac_exeext
8575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8576 (eval $ac_link) 2>conftest.er1
8577 ac_status=$?
8578 grep -v '^ *+' conftest.er1 >conftest.err
8579 rm -f conftest.er1
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } &&
8583 { ac_try='test -z "$ac_c_werror_flag"
8584 || test ! -s conftest.err'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 (eval $ac_try) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; } &&
8590 { ac_try='test -s conftest$ac_exeext'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 (eval $ac_try) 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8596 ac_cv_search_opendir="-l$ac_lib"
8597break
0e5d83e3 8598else
bec39cab
AC
8599 echo "$as_me: failed program was:" >&5
8600sed 's/^/| /' conftest.$ac_ext >&5
0e5d83e3 8601
0e5d83e3 8602fi
bec39cab
AC
8603rm -f conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8605 done
0e5d83e3 8606fi
bec39cab 8607LIBS=$ac_func_search_save_LIBS
0e5d83e3 8608fi
bec39cab
AC
8609echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8610echo "${ECHO_T}$ac_cv_search_opendir" >&6
8611if test "$ac_cv_search_opendir" != no; then
8612 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 8613
0e5d83e3
JJ
8614fi
8615
d28f9cdf 8616else
bec39cab
AC
8617 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8618echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8619if test "${ac_cv_search_opendir+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621else
8622 ac_func_search_save_LIBS=$LIBS
8623ac_cv_search_opendir=no
8624cat >conftest.$ac_ext <<_ACEOF
8625/* confdefs.h. */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h. */
d28f9cdf 8630
d28f9cdf 8631/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8632#ifdef __cplusplus
8633extern "C"
8634#endif
d28f9cdf 8635/* We use char because int might match the return type of a gcc2
bec39cab
AC
8636 builtin and then its argument prototype would still apply. */
8637char opendir ();
8638int
8639main ()
8640{
8641opendir ();
8642 ;
8643 return 0;
8644}
8645_ACEOF
8646rm -f conftest.$ac_objext conftest$ac_exeext
8647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648 (eval $ac_link) 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag"
8656 || test ! -s conftest.err'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 (eval $ac_try) 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; } &&
8662 { ac_try='test -s conftest$ac_exeext'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 ac_cv_search_opendir="none required"
8669else
8670 echo "$as_me: failed program was:" >&5
8671sed 's/^/| /' conftest.$ac_ext >&5
8672
8673fi
8674rm -f conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676if test "$ac_cv_search_opendir" = no; then
8677 for ac_lib in x; do
8678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8679 cat >conftest.$ac_ext <<_ACEOF
8680/* confdefs.h. */
8681_ACEOF
8682cat confdefs.h >>conftest.$ac_ext
8683cat >>conftest.$ac_ext <<_ACEOF
8684/* end confdefs.h. */
d28f9cdf 8685
bec39cab
AC
8686/* Override any gcc2 internal prototype to avoid an error. */
8687#ifdef __cplusplus
8688extern "C"
d28f9cdf 8689#endif
bec39cab
AC
8690/* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8692char opendir ();
8693int
8694main ()
8695{
8696opendir ();
8697 ;
8698 return 0;
8699}
8700_ACEOF
8701rm -f conftest.$ac_objext conftest$ac_exeext
8702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>conftest.er1
8704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag"
8711 || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest$ac_exeext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_search_opendir="-l$ac_lib"
8724break
d28f9cdf 8725else
bec39cab
AC
8726 echo "$as_me: failed program was:" >&5
8727sed 's/^/| /' conftest.$ac_ext >&5
8728
d28f9cdf 8729fi
bec39cab
AC
8730rm -f conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 done
8733fi
8734LIBS=$ac_func_search_save_LIBS
d28f9cdf 8735fi
bec39cab
AC
8736echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8737echo "${ECHO_T}$ac_cv_search_opendir" >&6
8738if test "$ac_cv_search_opendir" != no; then
8739 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 8740
d28f9cdf
DJ
8741fi
8742
bec39cab 8743fi
b0b1c2c0 8744
bec39cab
AC
8745echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8746echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8747if test "${ac_cv_header_stat_broken+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 8749else
bec39cab
AC
8750 cat >conftest.$ac_ext <<_ACEOF
8751/* confdefs.h. */
8752_ACEOF
8753cat confdefs.h >>conftest.$ac_ext
8754cat >>conftest.$ac_ext <<_ACEOF
8755/* end confdefs.h. */
8756#include <sys/types.h>
8757#include <sys/stat.h>
b0b1c2c0 8758
bec39cab
AC
8759#if defined(S_ISBLK) && defined(S_IFDIR)
8760# if S_ISBLK (S_IFDIR)
8761You lose.
8762# endif
8763#endif
b0b1c2c0 8764
bec39cab
AC
8765#if defined(S_ISBLK) && defined(S_IFCHR)
8766# if S_ISBLK (S_IFCHR)
8767You lose.
8768# endif
8769#endif
d28f9cdf 8770
bec39cab
AC
8771#if defined(S_ISLNK) && defined(S_IFREG)
8772# if S_ISLNK (S_IFREG)
8773You lose.
8774# endif
8775#endif
d28f9cdf 8776
bec39cab
AC
8777#if defined(S_ISSOCK) && defined(S_IFREG)
8778# if S_ISSOCK (S_IFREG)
8779You lose.
8780# endif
8781#endif
8782
8783_ACEOF
8784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8785 $EGREP "You lose" >/dev/null 2>&1; then
8786 ac_cv_header_stat_broken=yes
d28f9cdf 8787else
bec39cab 8788 ac_cv_header_stat_broken=no
d28f9cdf
DJ
8789fi
8790rm -f conftest*
d28f9cdf 8791
d28f9cdf 8792fi
bec39cab
AC
8793echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8794echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8795if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 8796
bec39cab
AC
8797cat >>confdefs.h <<\_ACEOF
8798#define STAT_MACROS_BROKEN 1
8799_ACEOF
8bb2c122 8800
7a292a7a 8801fi
bec39cab
AC
8802
8803echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8804echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8805if test "${ac_cv_header_stdc+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 8807else
bec39cab
AC
8808 cat >conftest.$ac_ext <<_ACEOF
8809/* confdefs.h. */
8810_ACEOF
8811cat confdefs.h >>conftest.$ac_ext
8812cat >>conftest.$ac_ext <<_ACEOF
8813/* end confdefs.h. */
8814#include <stdlib.h>
8815#include <stdarg.h>
8816#include <string.h>
8817#include <float.h>
7a292a7a 8818
bec39cab
AC
8819int
8820main ()
8821{
7a292a7a 8822
bec39cab
AC
8823 ;
8824 return 0;
8825}
8826_ACEOF
8827rm -f conftest.$ac_objext
8828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8829 (eval $ac_compile) 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -z "$ac_c_werror_flag"
8837 || test ! -s conftest.err'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; } &&
8843 { ac_try='test -s conftest.$ac_objext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 (eval $ac_try) 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_cv_header_stdc=yes
c906108c 8850else
bec39cab
AC
8851 echo "$as_me: failed program was:" >&5
8852sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8853
bec39cab 8854ac_cv_header_stdc=no
c906108c 8855fi
bec39cab 8856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 8857
bec39cab
AC
8858if test $ac_cv_header_stdc = yes; then
8859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8860 cat >conftest.$ac_ext <<_ACEOF
8861/* confdefs.h. */
8862_ACEOF
8863cat confdefs.h >>conftest.$ac_ext
8864cat >>conftest.$ac_ext <<_ACEOF
8865/* end confdefs.h. */
8866#include <string.h>
c906108c 8867
bec39cab
AC
8868_ACEOF
8869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8870 $EGREP "memchr" >/dev/null 2>&1; then
8871 :
8bb2c122 8872else
bec39cab 8873 ac_cv_header_stdc=no
8bb2c122 8874fi
bec39cab
AC
8875rm -f conftest*
8876
c906108c
SS
8877fi
8878
bec39cab
AC
8879if test $ac_cv_header_stdc = yes; then
8880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8881 cat >conftest.$ac_ext <<_ACEOF
8882/* confdefs.h. */
8883_ACEOF
8884cat confdefs.h >>conftest.$ac_ext
8885cat >>conftest.$ac_ext <<_ACEOF
8886/* end confdefs.h. */
8887#include <stdlib.h>
8888
8889_ACEOF
8890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8891 $EGREP "free" >/dev/null 2>&1; then
8892 :
c906108c 8893else
bec39cab 8894 ac_cv_header_stdc=no
c906108c 8895fi
bec39cab
AC
8896rm -f conftest*
8897
c906108c
SS
8898fi
8899
bec39cab
AC
8900if test $ac_cv_header_stdc = yes; then
8901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8902 if test "$cross_compiling" = yes; then
8903 :
c906108c 8904else
bec39cab
AC
8905 cat >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#include <ctype.h>
8912#if ((' ' & 0x0FF) == 0x020)
8913# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8914# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8915#else
8916# define ISLOWER(c) \
8917 (('a' <= (c) && (c) <= 'i') \
8918 || ('j' <= (c) && (c) <= 'r') \
8919 || ('s' <= (c) && (c) <= 'z'))
8920# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8921#endif
8922
8923#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8924int
8925main ()
8926{
8927 int i;
8928 for (i = 0; i < 256; i++)
8929 if (XOR (islower (i), ISLOWER (i))
8930 || toupper (i) != TOUPPER (i))
8931 exit(2);
8932 exit (0);
8933}
8934_ACEOF
8935rm -f conftest$ac_exeext
8936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937 (eval $ac_link) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8946 :
8947else
8948 echo "$as_me: program exited with status $ac_status" >&5
8949echo "$as_me: failed program was:" >&5
8950sed 's/^/| /' conftest.$ac_ext >&5
8951
8952( exit $ac_status )
8953ac_cv_header_stdc=no
c906108c 8954fi
bec39cab 8955rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 8956fi
c906108c 8957fi
bec39cab
AC
8958fi
8959echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8960echo "${ECHO_T}$ac_cv_header_stdc" >&6
8961if test $ac_cv_header_stdc = yes; then
c906108c 8962
bec39cab
AC
8963cat >>confdefs.h <<\_ACEOF
8964#define STDC_HEADERS 1
8965_ACEOF
c906108c 8966
bec39cab 8967fi
8bb2c122 8968
bec39cab 8969
7cb9022a 8970for ac_header in nlist.h
bec39cab
AC
8971do
8972as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8973if eval "test \"\${$as_ac_Header+set}\" = set"; then
8974 echo "$as_me:$LINENO: checking for $ac_header" >&5
8975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8976if eval "test \"\${$as_ac_Header+set}\" = set"; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978fi
8979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8981else
8982 # Is the header compilable?
8983echo "$as_me:$LINENO: checking $ac_header usability" >&5
8984echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8985cat >conftest.$ac_ext <<_ACEOF
8986/* confdefs.h. */
8987_ACEOF
8988cat confdefs.h >>conftest.$ac_ext
8989cat >>conftest.$ac_ext <<_ACEOF
8990/* end confdefs.h. */
8991$ac_includes_default
8992#include <$ac_header>
8993_ACEOF
8994rm -f conftest.$ac_objext
8995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8996 (eval $ac_compile) 2>conftest.er1
8997 ac_status=$?
8998 grep -v '^ *+' conftest.er1 >conftest.err
8999 rm -f conftest.er1
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } &&
9003 { ac_try='test -z "$ac_c_werror_flag"
9004 || test ! -s conftest.err'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 (eval $ac_try) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; } &&
9010 { ac_try='test -s conftest.$ac_objext'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 (eval $ac_try) 2>&5
9013 ac_status=$?
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; }; then
9016 ac_header_compiler=yes
9017else
9018 echo "$as_me: failed program was:" >&5
9019sed 's/^/| /' conftest.$ac_ext >&5
9020
9021ac_header_compiler=no
9022fi
9023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9024echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9025echo "${ECHO_T}$ac_header_compiler" >&6
9026
9027# Is the header present?
9028echo "$as_me:$LINENO: checking $ac_header presence" >&5
9029echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9030cat >conftest.$ac_ext <<_ACEOF
9031/* confdefs.h. */
9032_ACEOF
9033cat confdefs.h >>conftest.$ac_ext
9034cat >>conftest.$ac_ext <<_ACEOF
9035/* end confdefs.h. */
9036#include <$ac_header>
9037_ACEOF
9038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9040 ac_status=$?
9041 grep -v '^ *+' conftest.er1 >conftest.err
9042 rm -f conftest.er1
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } >/dev/null; then
9046 if test -s conftest.err; then
9047 ac_cpp_err=$ac_c_preproc_warn_flag
9048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9049 else
9050 ac_cpp_err=
9051 fi
c906108c 9052else
bec39cab 9053 ac_cpp_err=yes
c906108c 9054fi
bec39cab
AC
9055if test -z "$ac_cpp_err"; then
9056 ac_header_preproc=yes
c906108c 9057else
bec39cab
AC
9058 echo "$as_me: failed program was:" >&5
9059sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 9060
bec39cab
AC
9061 ac_header_preproc=no
9062fi
9063rm -f conftest.err conftest.$ac_ext
9064echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9065echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 9066
bec39cab
AC
9067# So? What about this header?
9068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9069 yes:no: )
9070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9071echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9073echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9074 ac_header_preproc=yes
9075 ;;
9076 no:yes:* )
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9080echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9082echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9084echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9086echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9088echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9089 (
9090 cat <<\_ASBOX
9091## ------------------------------------------ ##
9092## Report this to the AC_PACKAGE_NAME lists. ##
9093## ------------------------------------------ ##
9094_ASBOX
9095 ) |
9096 sed "s/^/$as_me: WARNING: /" >&2
9097 ;;
9098esac
9099echo "$as_me:$LINENO: checking for $ac_header" >&5
9100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9101if eval "test \"\${$as_ac_Header+set}\" = set"; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 9103else
bec39cab 9104 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 9105fi
bec39cab
AC
9106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9108
95ca63c4 9109fi
bec39cab
AC
9110if test `eval echo '${'$as_ac_Header'}'` = yes; then
9111 cat >>confdefs.h <<_ACEOF
9112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9113_ACEOF
9114
95ca63c4
CF
9115fi
9116
bec39cab 9117done
95ca63c4
CF
9118
9119
7cb9022a 9120for ac_header in link.h
bec39cab
AC
9121do
9122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 9123echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
9124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9125if eval "test \"\${$as_ac_Header+set}\" = set"; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9127else
7cb9022a 9128 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9129/* confdefs.h. */
9130_ACEOF
9131cat confdefs.h >>conftest.$ac_ext
9132cat >>conftest.$ac_ext <<_ACEOF
9133/* end confdefs.h. */
7cb9022a
MK
9134#if HAVE_SYS_TYPES_H
9135# include <sys/types.h>
9136#endif
9137#if HAVE_NLIST_H
9138# include <nlist.h>
9139#endif
9140
9141
bec39cab
AC
9142#include <$ac_header>
9143_ACEOF
9144rm -f conftest.$ac_objext
9145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9146 (eval $ac_compile) 2>conftest.er1
9147 ac_status=$?
9148 grep -v '^ *+' conftest.er1 >conftest.err
9149 rm -f conftest.er1
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -z "$ac_c_werror_flag"
9154 || test ! -s conftest.err'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 (eval $ac_try) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; } &&
9160 { ac_try='test -s conftest.$ac_objext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 (eval $ac_try) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
7cb9022a 9166 eval "$as_ac_Header=yes"
bec39cab
AC
9167else
9168 echo "$as_me: failed program was:" >&5
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
7cb9022a 9171eval "$as_ac_Header=no"
bec39cab
AC
9172fi
9173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
9174fi
9175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9177if test `eval echo '${'$as_ac_Header'}'` = yes; then
9178 cat >>confdefs.h <<_ACEOF
9179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9180_ACEOF
95ca63c4 9181
bec39cab 9182fi
95ca63c4 9183
bec39cab 9184done
95ca63c4 9185
c906108c 9186
7cb9022a 9187for ac_header in machine/reg.h
bec39cab
AC
9188do
9189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9190if eval "test \"\${$as_ac_Header+set}\" = set"; then
9191 echo "$as_me:$LINENO: checking for $ac_header" >&5
9192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9193if eval "test \"\${$as_ac_Header+set}\" = set"; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195fi
9196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9198else
9199 # Is the header compilable?
9200echo "$as_me:$LINENO: checking $ac_header usability" >&5
9201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9202cat >conftest.$ac_ext <<_ACEOF
9203/* confdefs.h. */
9204_ACEOF
9205cat confdefs.h >>conftest.$ac_ext
9206cat >>conftest.$ac_ext <<_ACEOF
9207/* end confdefs.h. */
9208$ac_includes_default
9209#include <$ac_header>
9210_ACEOF
9211rm -f conftest.$ac_objext
9212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_header_compiler=yes
9234else
9235 echo "$as_me: failed program was:" >&5
9236sed 's/^/| /' conftest.$ac_ext >&5
9237
9238ac_header_compiler=no
9239fi
9240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9241echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9242echo "${ECHO_T}$ac_header_compiler" >&6
9243
9244# Is the header present?
9245echo "$as_me:$LINENO: checking $ac_header presence" >&5
9246echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9247cat >conftest.$ac_ext <<_ACEOF
9248/* confdefs.h. */
9249_ACEOF
9250cat confdefs.h >>conftest.$ac_ext
9251cat >>conftest.$ac_ext <<_ACEOF
9252/* end confdefs.h. */
9253#include <$ac_header>
9254_ACEOF
9255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } >/dev/null; then
9263 if test -s conftest.err; then
9264 ac_cpp_err=$ac_c_preproc_warn_flag
9265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9266 else
9267 ac_cpp_err=
9268 fi
75c6e08a 9269else
bec39cab 9270 ac_cpp_err=yes
75c6e08a 9271fi
bec39cab
AC
9272if test -z "$ac_cpp_err"; then
9273 ac_header_preproc=yes
9274else
9275 echo "$as_me: failed program was:" >&5
9276sed 's/^/| /' conftest.$ac_ext >&5
9277
9278 ac_header_preproc=no
75c6e08a 9279fi
bec39cab
AC
9280rm -f conftest.err conftest.$ac_ext
9281echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9282echo "${ECHO_T}$ac_header_preproc" >&6
9283
9284# So? What about this header?
9285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9286 yes:no: )
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9291 ac_header_preproc=yes
9292 ;;
9293 no:yes:* )
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9301echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9306 (
9307 cat <<\_ASBOX
9308## ------------------------------------------ ##
9309## Report this to the AC_PACKAGE_NAME lists. ##
9310## ------------------------------------------ ##
9311_ASBOX
9312 ) |
9313 sed "s/^/$as_me: WARNING: /" >&2
9314 ;;
9315esac
9316echo "$as_me:$LINENO: checking for $ac_header" >&5
9317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9318if eval "test \"\${$as_ac_Header+set}\" = set"; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 9320else
bec39cab
AC
9321 eval "$as_ac_Header=\$ac_header_preproc"
9322fi
9323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9325
75c6e08a 9326fi
bec39cab
AC
9327if test `eval echo '${'$as_ac_Header'}'` = yes; then
9328 cat >>confdefs.h <<_ACEOF
9329#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9330_ACEOF
75c6e08a 9331
bec39cab 9332fi
75c6e08a 9333
bec39cab 9334done
75c6e08a
MK
9335
9336
9a156167 9337
bec39cab
AC
9338for ac_header in poll.h sys/poll.h
9339do
9340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9341if eval "test \"\${$as_ac_Header+set}\" = set"; then
9342 echo "$as_me:$LINENO: checking for $ac_header" >&5
9343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9344if eval "test \"\${$as_ac_Header+set}\" = set"; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9346fi
9347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9349else
9350 # Is the header compilable?
9351echo "$as_me:$LINENO: checking $ac_header usability" >&5
9352echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9353cat >conftest.$ac_ext <<_ACEOF
9354/* confdefs.h. */
9355_ACEOF
9356cat confdefs.h >>conftest.$ac_ext
9357cat >>conftest.$ac_ext <<_ACEOF
9358/* end confdefs.h. */
9359$ac_includes_default
9360#include <$ac_header>
9361_ACEOF
9362rm -f conftest.$ac_objext
9363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364 (eval $ac_compile) 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try='test -z "$ac_c_werror_flag"
9372 || test ! -s conftest.err'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; } &&
9378 { ac_try='test -s conftest.$ac_objext'
9379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 (eval $ac_try) 2>&5
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; }; then
9384 ac_header_compiler=yes
9385else
9386 echo "$as_me: failed program was:" >&5
9387sed 's/^/| /' conftest.$ac_ext >&5
9388
9389ac_header_compiler=no
9390fi
9391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9393echo "${ECHO_T}$ac_header_compiler" >&6
9394
9395# Is the header present?
9396echo "$as_me:$LINENO: checking $ac_header presence" >&5
9397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9398cat >conftest.$ac_ext <<_ACEOF
9399/* confdefs.h. */
9400_ACEOF
9401cat confdefs.h >>conftest.$ac_ext
9402cat >>conftest.$ac_ext <<_ACEOF
9403/* end confdefs.h. */
9404#include <$ac_header>
9405_ACEOF
9406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9408 ac_status=$?
9409 grep -v '^ *+' conftest.er1 >conftest.err
9410 rm -f conftest.er1
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } >/dev/null; then
9414 if test -s conftest.err; then
9415 ac_cpp_err=$ac_c_preproc_warn_flag
9416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9417 else
9418 ac_cpp_err=
9419 fi
9a156167 9420else
bec39cab 9421 ac_cpp_err=yes
9a156167 9422fi
bec39cab
AC
9423if test -z "$ac_cpp_err"; then
9424 ac_header_preproc=yes
9425else
9426 echo "$as_me: failed program was:" >&5
9427sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9428
bec39cab 9429 ac_header_preproc=no
9a156167 9430fi
bec39cab
AC
9431rm -f conftest.err conftest.$ac_ext
9432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9433echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9434
bec39cab
AC
9435# So? What about this header?
9436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9437 yes:no: )
9438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9442 ac_header_preproc=yes
9443 ;;
9444 no:yes:* )
9445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9452echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9457 (
9458 cat <<\_ASBOX
9459## ------------------------------------------ ##
9460## Report this to the AC_PACKAGE_NAME lists. ##
9461## ------------------------------------------ ##
9462_ASBOX
9463 ) |
9464 sed "s/^/$as_me: WARNING: /" >&2
9465 ;;
9466esac
9467echo "$as_me:$LINENO: checking for $ac_header" >&5
9468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9469if eval "test \"\${$as_ac_Header+set}\" = set"; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9471else
bec39cab 9472 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9473fi
bec39cab
AC
9474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 9476
bec39cab
AC
9477fi
9478if test `eval echo '${'$as_ac_Header'}'` = yes; then
9479 cat >>confdefs.h <<_ACEOF
9480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9481_ACEOF
9a156167 9482
bec39cab 9483fi
9a156167 9484
bec39cab 9485done
9a156167 9486
9a156167 9487
9a156167 9488
bec39cab
AC
9489
9490for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9491do
9492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9493if eval "test \"\${$as_ac_Header+set}\" = set"; then
9494 echo "$as_me:$LINENO: checking for $ac_header" >&5
9495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9496if eval "test \"\${$as_ac_Header+set}\" = set"; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498fi
9499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9501else
9502 # Is the header compilable?
9503echo "$as_me:$LINENO: checking $ac_header usability" >&5
9504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9505cat >conftest.$ac_ext <<_ACEOF
9506/* confdefs.h. */
9507_ACEOF
9508cat confdefs.h >>conftest.$ac_ext
9509cat >>conftest.$ac_ext <<_ACEOF
9510/* end confdefs.h. */
9511$ac_includes_default
9512#include <$ac_header>
9513_ACEOF
9514rm -f conftest.$ac_objext
9515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9516 (eval $ac_compile) 2>conftest.er1
9517 ac_status=$?
9518 grep -v '^ *+' conftest.er1 >conftest.err
9519 rm -f conftest.er1
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } &&
9523 { ac_try='test -z "$ac_c_werror_flag"
9524 || test ! -s conftest.err'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 (eval $ac_try) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; } &&
9530 { ac_try='test -s conftest.$ac_objext'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 (eval $ac_try) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 ac_header_compiler=yes
9537else
9538 echo "$as_me: failed program was:" >&5
9539sed 's/^/| /' conftest.$ac_ext >&5
9540
9541ac_header_compiler=no
9542fi
9543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9544echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9545echo "${ECHO_T}$ac_header_compiler" >&6
9546
9547# Is the header present?
9548echo "$as_me:$LINENO: checking $ac_header presence" >&5
9549echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9550cat >conftest.$ac_ext <<_ACEOF
9551/* confdefs.h. */
9552_ACEOF
9553cat confdefs.h >>conftest.$ac_ext
9554cat >>conftest.$ac_ext <<_ACEOF
9555/* end confdefs.h. */
9556#include <$ac_header>
9557_ACEOF
9558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } >/dev/null; then
9566 if test -s conftest.err; then
9567 ac_cpp_err=$ac_c_preproc_warn_flag
9568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9569 else
9570 ac_cpp_err=
9571 fi
9a156167 9572else
bec39cab 9573 ac_cpp_err=yes
9a156167 9574fi
bec39cab
AC
9575if test -z "$ac_cpp_err"; then
9576 ac_header_preproc=yes
9577else
9578 echo "$as_me: failed program was:" >&5
9579sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9580
bec39cab 9581 ac_header_preproc=no
9a156167 9582fi
bec39cab
AC
9583rm -f conftest.err conftest.$ac_ext
9584echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9585echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9586
bec39cab
AC
9587# So? What about this header?
9588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9589 yes:no: )
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9591echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9593echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9594 ac_header_preproc=yes
9595 ;;
9596 no:yes:* )
9597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9598echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9600echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9602echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9604echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9606echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9608echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9609 (
9610 cat <<\_ASBOX
9611## ------------------------------------------ ##
9612## Report this to the AC_PACKAGE_NAME lists. ##
9613## ------------------------------------------ ##
9614_ASBOX
9615 ) |
9616 sed "s/^/$as_me: WARNING: /" >&2
9617 ;;
9618esac
9619echo "$as_me:$LINENO: checking for $ac_header" >&5
9620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9621if eval "test \"\${$as_ac_Header+set}\" = set"; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9623else
bec39cab 9624 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9625fi
bec39cab
AC
9626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
9628
9629fi
bec39cab
AC
9630if test `eval echo '${'$as_ac_Header'}'` = yes; then
9631 cat >>confdefs.h <<_ACEOF
9632#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9633_ACEOF
9a156167 9634
bec39cab
AC
9635fi
9636
9637done
9a156167 9638
c890192f 9639
bec39cab
AC
9640for ac_header in stddef.h
9641do
9642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9643if eval "test \"\${$as_ac_Header+set}\" = set"; then
9644 echo "$as_me:$LINENO: checking for $ac_header" >&5
9645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9646if eval "test \"\${$as_ac_Header+set}\" = set"; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648fi
9649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9651else
9652 # Is the header compilable?
9653echo "$as_me:$LINENO: checking $ac_header usability" >&5
9654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9655cat >conftest.$ac_ext <<_ACEOF
9656/* confdefs.h. */
9657_ACEOF
9658cat confdefs.h >>conftest.$ac_ext
9659cat >>conftest.$ac_ext <<_ACEOF
9660/* end confdefs.h. */
9661$ac_includes_default
9662#include <$ac_header>
9663_ACEOF
9664rm -f conftest.$ac_objext
9665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9666 (eval $ac_compile) 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -z "$ac_c_werror_flag"
9674 || test ! -s conftest.err'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 (eval $ac_try) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; } &&
9680 { ac_try='test -s conftest.$ac_objext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 (eval $ac_try) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_header_compiler=yes
9687else
9688 echo "$as_me: failed program was:" >&5
9689sed 's/^/| /' conftest.$ac_ext >&5
9690
9691ac_header_compiler=no
9692fi
9693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9694echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9695echo "${ECHO_T}$ac_header_compiler" >&6
9696
9697# Is the header present?
9698echo "$as_me:$LINENO: checking $ac_header presence" >&5
9699echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9700cat >conftest.$ac_ext <<_ACEOF
9701/* confdefs.h. */
9702_ACEOF
9703cat confdefs.h >>conftest.$ac_ext
9704cat >>conftest.$ac_ext <<_ACEOF
9705/* end confdefs.h. */
9706#include <$ac_header>
9707_ACEOF
9708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } >/dev/null; then
9716 if test -s conftest.err; then
9717 ac_cpp_err=$ac_c_preproc_warn_flag
9718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9719 else
9720 ac_cpp_err=
9721 fi
c890192f 9722else
bec39cab
AC
9723 ac_cpp_err=yes
9724fi
9725if test -z "$ac_cpp_err"; then
9726 ac_header_preproc=yes
c890192f 9727else
bec39cab
AC
9728 echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 ac_header_preproc=no
c890192f 9732fi
bec39cab
AC
9733rm -f conftest.err conftest.$ac_ext
9734echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9735echo "${ECHO_T}$ac_header_preproc" >&6
9736
9737# So? What about this header?
9738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9739 yes:no: )
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9741echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9743echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9744 ac_header_preproc=yes
9745 ;;
9746 no:yes:* )
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9748echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9750echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9752echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9754echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9756echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9758echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9759 (
9760 cat <<\_ASBOX
9761## ------------------------------------------ ##
9762## Report this to the AC_PACKAGE_NAME lists. ##
9763## ------------------------------------------ ##
9764_ASBOX
9765 ) |
9766 sed "s/^/$as_me: WARNING: /" >&2
9767 ;;
9768esac
9769echo "$as_me:$LINENO: checking for $ac_header" >&5
9770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9771if eval "test \"\${$as_ac_Header+set}\" = set"; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 9773else
bec39cab 9774 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 9775fi
bec39cab
AC
9776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9778
c890192f 9779fi
bec39cab
AC
9780if test `eval echo '${'$as_ac_Header'}'` = yes; then
9781 cat >>confdefs.h <<_ACEOF
9782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9783_ACEOF
c890192f 9784
c890192f
MK
9785fi
9786
bec39cab 9787done
9a156167 9788
bec39cab
AC
9789
9790for ac_header in stdlib.h
9791do
9792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9793if eval "test \"\${$as_ac_Header+set}\" = set"; then
9794 echo "$as_me:$LINENO: checking for $ac_header" >&5
9795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9796if eval "test \"\${$as_ac_Header+set}\" = set"; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9798fi
9799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9801else
9802 # Is the header compilable?
9803echo "$as_me:$LINENO: checking $ac_header usability" >&5
9804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9805cat >conftest.$ac_ext <<_ACEOF
9806/* confdefs.h. */
9807_ACEOF
9808cat confdefs.h >>conftest.$ac_ext
9809cat >>conftest.$ac_ext <<_ACEOF
9810/* end confdefs.h. */
9811$ac_includes_default
9812#include <$ac_header>
9813_ACEOF
9814rm -f conftest.$ac_objext
9815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816 (eval $ac_compile) 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag"
9824 || test ! -s conftest.err'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 (eval $ac_try) 2>&5
9827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest.$ac_objext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 (eval $ac_try) 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_header_compiler=yes
9837else
9838 echo "$as_me: failed program was:" >&5
9839sed 's/^/| /' conftest.$ac_ext >&5
9840
9841ac_header_compiler=no
9842fi
9843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9845echo "${ECHO_T}$ac_header_compiler" >&6
9846
9847# Is the header present?
9848echo "$as_me:$LINENO: checking $ac_header presence" >&5
9849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9850cat >conftest.$ac_ext <<_ACEOF
9851/* confdefs.h. */
9852_ACEOF
9853cat confdefs.h >>conftest.$ac_ext
9854cat >>conftest.$ac_ext <<_ACEOF
9855/* end confdefs.h. */
9856#include <$ac_header>
9857_ACEOF
9858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } >/dev/null; then
9866 if test -s conftest.err; then
9867 ac_cpp_err=$ac_c_preproc_warn_flag
9868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9869 else
9870 ac_cpp_err=
9871 fi
9a156167 9872else
bec39cab
AC
9873 ac_cpp_err=yes
9874fi
9875if test -z "$ac_cpp_err"; then
9876 ac_header_preproc=yes
9a156167 9877else
bec39cab
AC
9878 echo "$as_me: failed program was:" >&5
9879sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 ac_header_preproc=no
9a156167 9882fi
bec39cab
AC
9883rm -f conftest.err conftest.$ac_ext
9884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9885echo "${ECHO_T}$ac_header_preproc" >&6
9886
9887# So? What about this header?
9888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9889 yes:no: )
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9894 ac_header_preproc=yes
9895 ;;
9896 no:yes:* )
9897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9909 (
9910 cat <<\_ASBOX
9911## ------------------------------------------ ##
9912## Report this to the AC_PACKAGE_NAME lists. ##
9913## ------------------------------------------ ##
9914_ASBOX
9915 ) |
9916 sed "s/^/$as_me: WARNING: /" >&2
9917 ;;
9918esac
9919echo "$as_me:$LINENO: checking for $ac_header" >&5
9920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9921if eval "test \"\${$as_ac_Header+set}\" = set"; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9923else
bec39cab 9924 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9925fi
bec39cab
AC
9926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9928
9a156167 9929fi
bec39cab
AC
9930if test `eval echo '${'$as_ac_Header'}'` = yes; then
9931 cat >>confdefs.h <<_ACEOF
9932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9933_ACEOF
9a156167 9934
9a156167
MK
9935fi
9936
bec39cab
AC
9937done
9938
06825bd1 9939
bec39cab
AC
9940for ac_header in stdint.h
9941do
9942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9943if eval "test \"\${$as_ac_Header+set}\" = set"; then
9944 echo "$as_me:$LINENO: checking for $ac_header" >&5
9945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9946if eval "test \"\${$as_ac_Header+set}\" = set"; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948fi
9949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9951else
9952 # Is the header compilable?
9953echo "$as_me:$LINENO: checking $ac_header usability" >&5
9954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9955cat >conftest.$ac_ext <<_ACEOF
9956/* confdefs.h. */
9957_ACEOF
9958cat confdefs.h >>conftest.$ac_ext
9959cat >>conftest.$ac_ext <<_ACEOF
9960/* end confdefs.h. */
9961$ac_includes_default
9962#include <$ac_header>
9963_ACEOF
9964rm -f conftest.$ac_objext
9965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try='test -s conftest.$ac_objext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_header_compiler=yes
9987else
9988 echo "$as_me: failed program was:" >&5
9989sed 's/^/| /' conftest.$ac_ext >&5
9990
9991ac_header_compiler=no
9992fi
9993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9995echo "${ECHO_T}$ac_header_compiler" >&6
9996
9997# Is the header present?
9998echo "$as_me:$LINENO: checking $ac_header presence" >&5
9999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10000cat >conftest.$ac_ext <<_ACEOF
10001/* confdefs.h. */
10002_ACEOF
10003cat confdefs.h >>conftest.$ac_ext
10004cat >>conftest.$ac_ext <<_ACEOF
10005/* end confdefs.h. */
10006#include <$ac_header>
10007_ACEOF
10008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10010 ac_status=$?
10011 grep -v '^ *+' conftest.er1 >conftest.err
10012 rm -f conftest.er1
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } >/dev/null; then
10016 if test -s conftest.err; then
10017 ac_cpp_err=$ac_c_preproc_warn_flag
10018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10019 else
10020 ac_cpp_err=
10021 fi
06825bd1 10022else
bec39cab
AC
10023 ac_cpp_err=yes
10024fi
10025if test -z "$ac_cpp_err"; then
10026 ac_header_preproc=yes
06825bd1 10027else
bec39cab
AC
10028 echo "$as_me: failed program was:" >&5
10029sed 's/^/| /' conftest.$ac_ext >&5
10030
10031 ac_header_preproc=no
06825bd1 10032fi
bec39cab
AC
10033rm -f conftest.err conftest.$ac_ext
10034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10035echo "${ECHO_T}$ac_header_preproc" >&6
10036
10037# So? What about this header?
10038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10039 yes:no: )
10040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10044 ac_header_preproc=yes
10045 ;;
10046 no:yes:* )
10047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10050echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10054echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10059 (
10060 cat <<\_ASBOX
10061## ------------------------------------------ ##
10062## Report this to the AC_PACKAGE_NAME lists. ##
10063## ------------------------------------------ ##
10064_ASBOX
10065 ) |
10066 sed "s/^/$as_me: WARNING: /" >&2
10067 ;;
10068esac
10069echo "$as_me:$LINENO: checking for $ac_header" >&5
10070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10071if eval "test \"\${$as_ac_Header+set}\" = set"; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 10073else
bec39cab 10074 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10075fi
bec39cab
AC
10076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10078
06825bd1 10079fi
bec39cab
AC
10080if test `eval echo '${'$as_ac_Header'}'` = yes; then
10081 cat >>confdefs.h <<_ACEOF
10082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10083_ACEOF
06825bd1 10084
06825bd1 10085fi
4f0be353 10086
bec39cab 10087done
4f0be353 10088
06825bd1 10089
06825bd1 10090
bec39cab
AC
10091
10092for ac_header in string.h memory.h strings.h
10093do
10094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10095if eval "test \"\${$as_ac_Header+set}\" = set"; then
10096 echo "$as_me:$LINENO: checking for $ac_header" >&5
10097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10098if eval "test \"\${$as_ac_Header+set}\" = set"; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10100fi
10101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10102echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10103else
10104 # Is the header compilable?
10105echo "$as_me:$LINENO: checking $ac_header usability" >&5
10106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10107cat >conftest.$ac_ext <<_ACEOF
10108/* confdefs.h. */
10109_ACEOF
10110cat confdefs.h >>conftest.$ac_ext
10111cat >>conftest.$ac_ext <<_ACEOF
10112/* end confdefs.h. */
10113$ac_includes_default
10114#include <$ac_header>
10115_ACEOF
10116rm -f conftest.$ac_objext
10117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10118 (eval $ac_compile) 2>conftest.er1
10119 ac_status=$?
10120 grep -v '^ *+' conftest.er1 >conftest.err
10121 rm -f conftest.er1
10122 cat conftest.err >&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } &&
10125 { ac_try='test -z "$ac_c_werror_flag"
10126 || test ! -s conftest.err'
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; } &&
10132 { ac_try='test -s conftest.$ac_objext'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; }; then
10138 ac_header_compiler=yes
10139else
10140 echo "$as_me: failed program was:" >&5
10141sed 's/^/| /' conftest.$ac_ext >&5
10142
10143ac_header_compiler=no
10144fi
10145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10146echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10147echo "${ECHO_T}$ac_header_compiler" >&6
10148
10149# Is the header present?
10150echo "$as_me:$LINENO: checking $ac_header presence" >&5
10151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10152cat >conftest.$ac_ext <<_ACEOF
10153/* confdefs.h. */
10154_ACEOF
10155cat confdefs.h >>conftest.$ac_ext
10156cat >>conftest.$ac_ext <<_ACEOF
10157/* end confdefs.h. */
10158#include <$ac_header>
10159_ACEOF
10160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10162 ac_status=$?
10163 grep -v '^ *+' conftest.er1 >conftest.err
10164 rm -f conftest.er1
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } >/dev/null; then
10168 if test -s conftest.err; then
10169 ac_cpp_err=$ac_c_preproc_warn_flag
10170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10171 else
10172 ac_cpp_err=
10173 fi
06825bd1 10174else
bec39cab
AC
10175 ac_cpp_err=yes
10176fi
10177if test -z "$ac_cpp_err"; then
10178 ac_header_preproc=yes
06825bd1 10179else
bec39cab
AC
10180 echo "$as_me: failed program was:" >&5
10181sed 's/^/| /' conftest.$ac_ext >&5
10182
10183 ac_header_preproc=no
06825bd1 10184fi
bec39cab
AC
10185rm -f conftest.err conftest.$ac_ext
10186echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10187echo "${ECHO_T}$ac_header_preproc" >&6
10188
10189# So? What about this header?
10190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10191 yes:no: )
10192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10193echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10195echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10196 ac_header_preproc=yes
10197 ;;
10198 no:yes:* )
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10200echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10202echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10204echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10206echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10210echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10211 (
10212 cat <<\_ASBOX
10213## ------------------------------------------ ##
10214## Report this to the AC_PACKAGE_NAME lists. ##
10215## ------------------------------------------ ##
10216_ASBOX
10217 ) |
10218 sed "s/^/$as_me: WARNING: /" >&2
10219 ;;
10220esac
10221echo "$as_me:$LINENO: checking for $ac_header" >&5
10222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10223if eval "test \"\${$as_ac_Header+set}\" = set"; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10227fi
bec39cab
AC
10228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 10230
06825bd1 10231fi
bec39cab
AC
10232if test `eval echo '${'$as_ac_Header'}'` = yes; then
10233 cat >>confdefs.h <<_ACEOF
10234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10235_ACEOF
06825bd1 10236
06825bd1
MK
10237fi
10238
bec39cab 10239done
5ee754fc 10240
bec39cab
AC
10241
10242for ac_header in sys/fault.h
5ee754fc 10243do
bec39cab
AC
10244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10245if eval "test \"\${$as_ac_Header+set}\" = set"; then
10246 echo "$as_me:$LINENO: checking for $ac_header" >&5
10247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10248if eval "test \"\${$as_ac_Header+set}\" = set"; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10250fi
10251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10253else
10254 # Is the header compilable?
10255echo "$as_me:$LINENO: checking $ac_header usability" >&5
10256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10257cat >conftest.$ac_ext <<_ACEOF
10258/* confdefs.h. */
10259_ACEOF
10260cat confdefs.h >>conftest.$ac_ext
10261cat >>conftest.$ac_ext <<_ACEOF
10262/* end confdefs.h. */
10263$ac_includes_default
10264#include <$ac_header>
10265_ACEOF
10266rm -f conftest.$ac_objext
10267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10268 (eval $ac_compile) 2>conftest.er1
10269 ac_status=$?
10270 grep -v '^ *+' conftest.er1 >conftest.err
10271 rm -f conftest.er1
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } &&
10275 { ac_try='test -z "$ac_c_werror_flag"
10276 || test ! -s conftest.err'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; } &&
10282 { ac_try='test -s conftest.$ac_objext'
10283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284 (eval $ac_try) 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
10288 ac_header_compiler=yes
10289else
10290 echo "$as_me: failed program was:" >&5
10291sed 's/^/| /' conftest.$ac_ext >&5
10292
10293ac_header_compiler=no
10294fi
10295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10296echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10297echo "${ECHO_T}$ac_header_compiler" >&6
10298
10299# Is the header present?
10300echo "$as_me:$LINENO: checking $ac_header presence" >&5
10301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10302cat >conftest.$ac_ext <<_ACEOF
10303/* confdefs.h. */
10304_ACEOF
10305cat confdefs.h >>conftest.$ac_ext
10306cat >>conftest.$ac_ext <<_ACEOF
10307/* end confdefs.h. */
10308#include <$ac_header>
10309_ACEOF
10310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10312 ac_status=$?
10313 grep -v '^ *+' conftest.er1 >conftest.err
10314 rm -f conftest.er1
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } >/dev/null; then
10318 if test -s conftest.err; then
10319 ac_cpp_err=$ac_c_preproc_warn_flag
10320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10321 else
10322 ac_cpp_err=
10323 fi
5ee754fc 10324else
bec39cab 10325 ac_cpp_err=yes
5ee754fc 10326fi
bec39cab
AC
10327if test -z "$ac_cpp_err"; then
10328 ac_header_preproc=yes
10329else
10330 echo "$as_me: failed program was:" >&5
10331sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10332
bec39cab 10333 ac_header_preproc=no
5ee754fc 10334fi
bec39cab
AC
10335rm -f conftest.err conftest.$ac_ext
10336echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10337echo "${ECHO_T}$ac_header_preproc" >&6
10338
10339# So? What about this header?
10340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10341 yes:no: )
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10346 ac_header_preproc=yes
10347 ;;
10348 no:yes:* )
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10361 (
10362 cat <<\_ASBOX
10363## ------------------------------------------ ##
10364## Report this to the AC_PACKAGE_NAME lists. ##
10365## ------------------------------------------ ##
10366_ASBOX
10367 ) |
10368 sed "s/^/$as_me: WARNING: /" >&2
10369 ;;
10370esac
10371echo "$as_me:$LINENO: checking for $ac_header" >&5
10372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10373if eval "test \"\${$as_ac_Header+set}\" = set"; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10375else
bec39cab 10376 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10377fi
bec39cab
AC
10378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 10380
5ee754fc 10381fi
bec39cab
AC
10382if test `eval echo '${'$as_ac_Header'}'` = yes; then
10383 cat >>confdefs.h <<_ACEOF
10384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10385_ACEOF
c906108c 10386
5ee754fc 10387fi
bec39cab
AC
10388
10389done
10390
10391
10392for ac_header in sys/file.h
10393do
10394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10395if eval "test \"\${$as_ac_Header+set}\" = set"; then
10396 echo "$as_me:$LINENO: checking for $ac_header" >&5
10397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10398if eval "test \"\${$as_ac_Header+set}\" = set"; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10400fi
10401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10403else
10404 # Is the header compilable?
10405echo "$as_me:$LINENO: checking $ac_header usability" >&5
10406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10407cat >conftest.$ac_ext <<_ACEOF
10408/* confdefs.h. */
10409_ACEOF
10410cat confdefs.h >>conftest.$ac_ext
10411cat >>conftest.$ac_ext <<_ACEOF
10412/* end confdefs.h. */
10413$ac_includes_default
10414#include <$ac_header>
10415_ACEOF
10416rm -f conftest.$ac_objext
10417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418 (eval $ac_compile) 2>conftest.er1
10419 ac_status=$?
10420 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag"
10426 || test ! -s conftest.err'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10429 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; } &&
10432 { ac_try='test -s conftest.$ac_objext'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10438 ac_header_compiler=yes
10439else
10440 echo "$as_me: failed program was:" >&5
10441sed 's/^/| /' conftest.$ac_ext >&5
10442
10443ac_header_compiler=no
10444fi
10445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10446echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10447echo "${ECHO_T}$ac_header_compiler" >&6
10448
10449# Is the header present?
10450echo "$as_me:$LINENO: checking $ac_header presence" >&5
10451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10452cat >conftest.$ac_ext <<_ACEOF
10453/* confdefs.h. */
10454_ACEOF
10455cat confdefs.h >>conftest.$ac_ext
10456cat >>conftest.$ac_ext <<_ACEOF
10457/* end confdefs.h. */
10458#include <$ac_header>
10459_ACEOF
10460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10462 ac_status=$?
10463 grep -v '^ *+' conftest.er1 >conftest.err
10464 rm -f conftest.er1
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } >/dev/null; then
10468 if test -s conftest.err; then
10469 ac_cpp_err=$ac_c_preproc_warn_flag
10470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10471 else
10472 ac_cpp_err=
10473 fi
5ee754fc 10474else
bec39cab 10475 ac_cpp_err=yes
5ee754fc 10476fi
bec39cab
AC
10477if test -z "$ac_cpp_err"; then
10478 ac_header_preproc=yes
10479else
10480 echo "$as_me: failed program was:" >&5
10481sed 's/^/| /' conftest.$ac_ext >&5
c906108c 10482
bec39cab 10483 ac_header_preproc=no
5ee754fc 10484fi
bec39cab
AC
10485rm -f conftest.err conftest.$ac_ext
10486echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10487echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 10488
bec39cab
AC
10489# So? What about this header?
10490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10491 yes:no: )
10492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10496 ac_header_preproc=yes
10497 ;;
10498 no:yes:* )
10499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10502echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10506echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10511 (
10512 cat <<\_ASBOX
10513## ------------------------------------------ ##
10514## Report this to the AC_PACKAGE_NAME lists. ##
10515## ------------------------------------------ ##
10516_ASBOX
10517 ) |
10518 sed "s/^/$as_me: WARNING: /" >&2
10519 ;;
10520esac
10521echo "$as_me:$LINENO: checking for $ac_header" >&5
10522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10523if eval "test \"\${$as_ac_Header+set}\" = set"; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10525else
bec39cab
AC
10526 eval "$as_ac_Header=\$ac_header_preproc"
10527fi
10528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10530
bec39cab
AC
10531fi
10532if test `eval echo '${'$as_ac_Header'}'` = yes; then
10533 cat >>confdefs.h <<_ACEOF
10534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10535_ACEOF
5ee754fc 10536
bec39cab 10537fi
5ee754fc 10538
bec39cab 10539done
5ee754fc 10540
5ee754fc 10541
bec39cab
AC
10542for ac_header in sys/filio.h
10543do
10544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545if eval "test \"\${$as_ac_Header+set}\" = set"; then
10546 echo "$as_me:$LINENO: checking for $ac_header" >&5
10547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10548if eval "test \"\${$as_ac_Header+set}\" = set"; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10550fi
10551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10553else
10554 # Is the header compilable?
10555echo "$as_me:$LINENO: checking $ac_header usability" >&5
10556echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10557cat >conftest.$ac_ext <<_ACEOF
10558/* confdefs.h. */
10559_ACEOF
10560cat confdefs.h >>conftest.$ac_ext
10561cat >>conftest.$ac_ext <<_ACEOF
10562/* end confdefs.h. */
10563$ac_includes_default
10564#include <$ac_header>
10565_ACEOF
10566rm -f conftest.$ac_objext
10567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568 (eval $ac_compile) 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_c_werror_flag"
10576 || test ! -s conftest.err'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest.$ac_objext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_header_compiler=yes
10589else
10590 echo "$as_me: failed program was:" >&5
10591sed 's/^/| /' conftest.$ac_ext >&5
10592
10593ac_header_compiler=no
10594fi
10595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10596echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10597echo "${ECHO_T}$ac_header_compiler" >&6
10598
10599# Is the header present?
10600echo "$as_me:$LINENO: checking $ac_header presence" >&5
10601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10602cat >conftest.$ac_ext <<_ACEOF
10603/* confdefs.h. */
10604_ACEOF
10605cat confdefs.h >>conftest.$ac_ext
10606cat >>conftest.$ac_ext <<_ACEOF
10607/* end confdefs.h. */
10608#include <$ac_header>
10609_ACEOF
10610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } >/dev/null; then
10618 if test -s conftest.err; then
10619 ac_cpp_err=$ac_c_preproc_warn_flag
10620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10621 else
10622 ac_cpp_err=
10623 fi
5ee754fc 10624else
bec39cab 10625 ac_cpp_err=yes
5ee754fc 10626fi
bec39cab
AC
10627if test -z "$ac_cpp_err"; then
10628 ac_header_preproc=yes
10629else
10630 echo "$as_me: failed program was:" >&5
10631sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10632
bec39cab 10633 ac_header_preproc=no
5ee754fc 10634fi
bec39cab
AC
10635rm -f conftest.err conftest.$ac_ext
10636echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10637echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10638
bec39cab
AC
10639# So? What about this header?
10640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10641 yes:no: )
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10643echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10645echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10646 ac_header_preproc=yes
10647 ;;
10648 no:yes:* )
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10650echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10652echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10654echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10656echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10658echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10660echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10661 (
10662 cat <<\_ASBOX
10663## ------------------------------------------ ##
10664## Report this to the AC_PACKAGE_NAME lists. ##
10665## ------------------------------------------ ##
10666_ASBOX
10667 ) |
10668 sed "s/^/$as_me: WARNING: /" >&2
10669 ;;
10670esac
10671echo "$as_me:$LINENO: checking for $ac_header" >&5
10672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10673if eval "test \"\${$as_ac_Header+set}\" = set"; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10675else
bec39cab 10676 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10677fi
bec39cab
AC
10678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10680
5ee754fc 10681fi
bec39cab
AC
10682if test `eval echo '${'$as_ac_Header'}'` = yes; then
10683 cat >>confdefs.h <<_ACEOF
10684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10685_ACEOF
5ee754fc
MK
10686
10687fi
10688
bec39cab
AC
10689done
10690
10691
10692for ac_header in sys/ioctl.h
10693do
10694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10695if eval "test \"\${$as_ac_Header+set}\" = set"; then
10696 echo "$as_me:$LINENO: checking for $ac_header" >&5
10697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10698if eval "test \"\${$as_ac_Header+set}\" = set"; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700fi
10701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10703else
10704 # Is the header compilable?
10705echo "$as_me:$LINENO: checking $ac_header usability" >&5
10706echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10707cat >conftest.$ac_ext <<_ACEOF
10708/* confdefs.h. */
10709_ACEOF
10710cat confdefs.h >>conftest.$ac_ext
10711cat >>conftest.$ac_ext <<_ACEOF
10712/* end confdefs.h. */
10713$ac_includes_default
10714#include <$ac_header>
10715_ACEOF
10716rm -f conftest.$ac_objext
10717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10718 (eval $ac_compile) 2>conftest.er1
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } &&
10725 { ac_try='test -z "$ac_c_werror_flag"
10726 || test ! -s conftest.err'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; } &&
10732 { ac_try='test -s conftest.$ac_objext'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_header_compiler=yes
10739else
10740 echo "$as_me: failed program was:" >&5
10741sed 's/^/| /' conftest.$ac_ext >&5
10742
10743ac_header_compiler=no
10744fi
10745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10747echo "${ECHO_T}$ac_header_compiler" >&6
10748
10749# Is the header present?
10750echo "$as_me:$LINENO: checking $ac_header presence" >&5
10751echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10752cat >conftest.$ac_ext <<_ACEOF
10753/* confdefs.h. */
10754_ACEOF
10755cat confdefs.h >>conftest.$ac_ext
10756cat >>conftest.$ac_ext <<_ACEOF
10757/* end confdefs.h. */
10758#include <$ac_header>
10759_ACEOF
10760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10762 ac_status=$?
10763 grep -v '^ *+' conftest.er1 >conftest.err
10764 rm -f conftest.er1
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } >/dev/null; then
10768 if test -s conftest.err; then
10769 ac_cpp_err=$ac_c_preproc_warn_flag
10770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10771 else
10772 ac_cpp_err=
10773 fi
5ee754fc 10774else
bec39cab 10775 ac_cpp_err=yes
5ee754fc 10776fi
bec39cab
AC
10777if test -z "$ac_cpp_err"; then
10778 ac_header_preproc=yes
10779else
10780 echo "$as_me: failed program was:" >&5
10781sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10782
bec39cab 10783 ac_header_preproc=no
5ee754fc 10784fi
bec39cab
AC
10785rm -f conftest.err conftest.$ac_ext
10786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10787echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10788
bec39cab
AC
10789# So? What about this header?
10790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10791 yes:no: )
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10795echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10796 ac_header_preproc=yes
10797 ;;
10798 no:yes:* )
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10802echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10804echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10806echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10810echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10811 (
10812 cat <<\_ASBOX
10813## ------------------------------------------ ##
10814## Report this to the AC_PACKAGE_NAME lists. ##
10815## ------------------------------------------ ##
10816_ASBOX
10817 ) |
10818 sed "s/^/$as_me: WARNING: /" >&2
10819 ;;
10820esac
10821echo "$as_me:$LINENO: checking for $ac_header" >&5
10822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10823if eval "test \"\${$as_ac_Header+set}\" = set"; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10825else
bec39cab 10826 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10827fi
bec39cab
AC
10828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
10830
10831fi
bec39cab
AC
10832if test `eval echo '${'$as_ac_Header'}'` = yes; then
10833 cat >>confdefs.h <<_ACEOF
10834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10835_ACEOF
10836
5ee754fc
MK
10837fi
10838
bec39cab 10839done
5ee754fc 10840
5ee754fc 10841
bec39cab 10842for ac_header in sys/param.h
5ee754fc 10843do
bec39cab
AC
10844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10845if eval "test \"\${$as_ac_Header+set}\" = set"; then
10846 echo "$as_me:$LINENO: checking for $ac_header" >&5
10847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10848if eval "test \"\${$as_ac_Header+set}\" = set"; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850fi
10851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10853else
10854 # Is the header compilable?
10855echo "$as_me:$LINENO: checking $ac_header usability" >&5
10856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10857cat >conftest.$ac_ext <<_ACEOF
10858/* confdefs.h. */
10859_ACEOF
10860cat confdefs.h >>conftest.$ac_ext
10861cat >>conftest.$ac_ext <<_ACEOF
10862/* end confdefs.h. */
10863$ac_includes_default
10864#include <$ac_header>
10865_ACEOF
10866rm -f conftest.$ac_objext
10867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868 (eval $ac_compile) 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -z "$ac_c_werror_flag"
10876 || test ! -s conftest.err'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10879 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; } &&
10882 { ac_try='test -s conftest.$ac_objext'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 ac_header_compiler=yes
10889else
10890 echo "$as_me: failed program was:" >&5
10891sed 's/^/| /' conftest.$ac_ext >&5
10892
10893ac_header_compiler=no
10894fi
10895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10897echo "${ECHO_T}$ac_header_compiler" >&6
10898
10899# Is the header present?
10900echo "$as_me:$LINENO: checking $ac_header presence" >&5
10901echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10902cat >conftest.$ac_ext <<_ACEOF
10903/* confdefs.h. */
10904_ACEOF
10905cat confdefs.h >>conftest.$ac_ext
10906cat >>conftest.$ac_ext <<_ACEOF
10907/* end confdefs.h. */
10908#include <$ac_header>
10909_ACEOF
10910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } >/dev/null; then
10918 if test -s conftest.err; then
10919 ac_cpp_err=$ac_c_preproc_warn_flag
10920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10921 else
10922 ac_cpp_err=
10923 fi
5ee754fc 10924else
bec39cab 10925 ac_cpp_err=yes
5ee754fc 10926fi
bec39cab
AC
10927if test -z "$ac_cpp_err"; then
10928 ac_header_preproc=yes
10929else
10930 echo "$as_me: failed program was:" >&5
10931sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10932
bec39cab 10933 ac_header_preproc=no
5ee754fc 10934fi
bec39cab
AC
10935rm -f conftest.err conftest.$ac_ext
10936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10937echo "${ECHO_T}$ac_header_preproc" >&6
10938
10939# So? What about this header?
10940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10941 yes:no: )
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10945echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10946 ac_header_preproc=yes
10947 ;;
10948 no:yes:* )
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10950echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10952echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10954echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10956echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10958echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10960echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10961 (
10962 cat <<\_ASBOX
10963## ------------------------------------------ ##
10964## Report this to the AC_PACKAGE_NAME lists. ##
10965## ------------------------------------------ ##
10966_ASBOX
10967 ) |
10968 sed "s/^/$as_me: WARNING: /" >&2
10969 ;;
10970esac
10971echo "$as_me:$LINENO: checking for $ac_header" >&5
10972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10973if eval "test \"\${$as_ac_Header+set}\" = set"; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10975else
bec39cab 10976 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10977fi
bec39cab
AC
10978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10980
5ee754fc 10981fi
bec39cab
AC
10982if test `eval echo '${'$as_ac_Header'}'` = yes; then
10983 cat >>confdefs.h <<_ACEOF
10984#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10985_ACEOF
10986
5ee754fc 10987fi
bec39cab 10988
5ee754fc
MK
10989done
10990
bec39cab
AC
10991
10992for ac_header in sys/proc.h
5ee754fc 10993do
bec39cab 10994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 10995echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
10996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10997if eval "test \"\${$as_ac_Header+set}\" = set"; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10999else
7cb9022a 11000 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11001/* confdefs.h. */
11002_ACEOF
11003cat confdefs.h >>conftest.$ac_ext
11004cat >>conftest.$ac_ext <<_ACEOF
11005/* end confdefs.h. */
7cb9022a
MK
11006#if HAVE_SYS_PARAM_H
11007# include <sys/param.h>
11008#endif
11009
11010
bec39cab
AC
11011#include <$ac_header>
11012_ACEOF
11013rm -f conftest.$ac_objext
11014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11015 (eval $ac_compile) 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -z "$ac_c_werror_flag"
11023 || test ! -s conftest.err'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest.$ac_objext'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
7cb9022a 11035 eval "$as_ac_Header=yes"
bec39cab
AC
11036else
11037 echo "$as_me: failed program was:" >&5
11038sed 's/^/| /' conftest.$ac_ext >&5
11039
7cb9022a 11040eval "$as_ac_Header=no"
bec39cab
AC
11041fi
11042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11043fi
bec39cab
AC
11044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11046if test `eval echo '${'$as_ac_Header'}'` = yes; then
11047 cat >>confdefs.h <<_ACEOF
11048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11049_ACEOF
11050
5ee754fc 11051fi
bec39cab 11052
5ee754fc
MK
11053done
11054
bec39cab
AC
11055
11056for ac_header in sys/procfs.h
5ee754fc 11057do
bec39cab
AC
11058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11059if eval "test \"\${$as_ac_Header+set}\" = set"; then
11060 echo "$as_me:$LINENO: checking for $ac_header" >&5
11061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11062if eval "test \"\${$as_ac_Header+set}\" = set"; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064fi
11065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11067else
11068 # Is the header compilable?
11069echo "$as_me:$LINENO: checking $ac_header usability" >&5
11070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11071cat >conftest.$ac_ext <<_ACEOF
11072/* confdefs.h. */
11073_ACEOF
11074cat confdefs.h >>conftest.$ac_ext
11075cat >>conftest.$ac_ext <<_ACEOF
11076/* end confdefs.h. */
11077$ac_includes_default
11078#include <$ac_header>
11079_ACEOF
11080rm -f conftest.$ac_objext
11081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11082 (eval $ac_compile) 2>conftest.er1
11083 ac_status=$?
11084 grep -v '^ *+' conftest.er1 >conftest.err
11085 rm -f conftest.er1
11086 cat conftest.err >&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } &&
11089 { ac_try='test -z "$ac_c_werror_flag"
11090 || test ! -s conftest.err'
11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; } &&
11096 { ac_try='test -s conftest.$ac_objext'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 ac_header_compiler=yes
11103else
11104 echo "$as_me: failed program was:" >&5
11105sed 's/^/| /' conftest.$ac_ext >&5
11106
11107ac_header_compiler=no
11108fi
11109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11110echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11111echo "${ECHO_T}$ac_header_compiler" >&6
11112
11113# Is the header present?
11114echo "$as_me:$LINENO: checking $ac_header presence" >&5
11115echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11116cat >conftest.$ac_ext <<_ACEOF
11117/* confdefs.h. */
11118_ACEOF
11119cat confdefs.h >>conftest.$ac_ext
11120cat >>conftest.$ac_ext <<_ACEOF
11121/* end confdefs.h. */
11122#include <$ac_header>
11123_ACEOF
11124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } >/dev/null; then
11132 if test -s conftest.err; then
11133 ac_cpp_err=$ac_c_preproc_warn_flag
11134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11135 else
11136 ac_cpp_err=
11137 fi
11138else
11139 ac_cpp_err=yes
5ee754fc 11140fi
bec39cab
AC
11141if test -z "$ac_cpp_err"; then
11142 ac_header_preproc=yes
5ee754fc 11143else
bec39cab
AC
11144 echo "$as_me: failed program was:" >&5
11145sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 ac_header_preproc=no
5ee754fc 11148fi
bec39cab
AC
11149rm -f conftest.err conftest.$ac_ext
11150echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11151echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11152
bec39cab
AC
11153# So? What about this header?
11154case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11155 yes:no: )
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11157echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11159echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11160 ac_header_preproc=yes
11161 ;;
11162 no:yes:* )
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11164echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11166echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11168echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11170echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11172echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11174echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11175 (
11176 cat <<\_ASBOX
11177## ------------------------------------------ ##
11178## Report this to the AC_PACKAGE_NAME lists. ##
11179## ------------------------------------------ ##
11180_ASBOX
11181 ) |
11182 sed "s/^/$as_me: WARNING: /" >&2
11183 ;;
11184esac
11185echo "$as_me:$LINENO: checking for $ac_header" >&5
11186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11187if eval "test \"\${$as_ac_Header+set}\" = set"; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189else
11190 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11191fi
bec39cab
AC
11192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11194
5ee754fc 11195fi
bec39cab
AC
11196if test `eval echo '${'$as_ac_Header'}'` = yes; then
11197 cat >>confdefs.h <<_ACEOF
11198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11199_ACEOF
11200
5ee754fc 11201fi
bec39cab 11202
5ee754fc
MK
11203done
11204
bec39cab
AC
11205
11206
11207for ac_header in sys/ptrace.h ptrace.h
5ee754fc 11208do
bec39cab
AC
11209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11210if eval "test \"\${$as_ac_Header+set}\" = set"; then
11211 echo "$as_me:$LINENO: checking for $ac_header" >&5
11212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11213if eval "test \"\${$as_ac_Header+set}\" = set"; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11215fi
11216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11218else
11219 # Is the header compilable?
11220echo "$as_me:$LINENO: checking $ac_header usability" >&5
11221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11222cat >conftest.$ac_ext <<_ACEOF
11223/* confdefs.h. */
11224_ACEOF
11225cat confdefs.h >>conftest.$ac_ext
11226cat >>conftest.$ac_ext <<_ACEOF
11227/* end confdefs.h. */
11228$ac_includes_default
11229#include <$ac_header>
11230_ACEOF
11231rm -f conftest.$ac_objext
11232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11233 (eval $ac_compile) 2>conftest.er1
11234 ac_status=$?
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -z "$ac_c_werror_flag"
11241 || test ! -s conftest.err'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; } &&
11247 { ac_try='test -s conftest.$ac_objext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_header_compiler=yes
11254else
11255 echo "$as_me: failed program was:" >&5
11256sed 's/^/| /' conftest.$ac_ext >&5
11257
11258ac_header_compiler=no
11259fi
11260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11261echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11262echo "${ECHO_T}$ac_header_compiler" >&6
11263
11264# Is the header present?
11265echo "$as_me:$LINENO: checking $ac_header presence" >&5
11266echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11267cat >conftest.$ac_ext <<_ACEOF
11268/* confdefs.h. */
11269_ACEOF
11270cat confdefs.h >>conftest.$ac_ext
11271cat >>conftest.$ac_ext <<_ACEOF
11272/* end confdefs.h. */
11273#include <$ac_header>
11274_ACEOF
11275if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } >/dev/null; then
11283 if test -s conftest.err; then
11284 ac_cpp_err=$ac_c_preproc_warn_flag
11285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11286 else
11287 ac_cpp_err=
11288 fi
11289else
11290 ac_cpp_err=yes
5ee754fc 11291fi
bec39cab
AC
11292if test -z "$ac_cpp_err"; then
11293 ac_header_preproc=yes
5ee754fc 11294else
bec39cab
AC
11295 echo "$as_me: failed program was:" >&5
11296sed 's/^/| /' conftest.$ac_ext >&5
11297
11298 ac_header_preproc=no
5ee754fc 11299fi
bec39cab
AC
11300rm -f conftest.err conftest.$ac_ext
11301echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11302echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11303
bec39cab
AC
11304# So? What about this header?
11305case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11306 yes:no: )
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11308echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11310echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11311 ac_header_preproc=yes
11312 ;;
11313 no:yes:* )
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11315echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11317echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11319echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11321echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11323echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11325echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11326 (
11327 cat <<\_ASBOX
11328## ------------------------------------------ ##
11329## Report this to the AC_PACKAGE_NAME lists. ##
11330## ------------------------------------------ ##
11331_ASBOX
11332 ) |
11333 sed "s/^/$as_me: WARNING: /" >&2
11334 ;;
11335esac
11336echo "$as_me:$LINENO: checking for $ac_header" >&5
11337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11338if eval "test \"\${$as_ac_Header+set}\" = set"; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11340else
11341 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11342fi
bec39cab
AC
11343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11344echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11345
5ee754fc 11346fi
bec39cab
AC
11347if test `eval echo '${'$as_ac_Header'}'` = yes; then
11348 cat >>confdefs.h <<_ACEOF
11349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11350_ACEOF
11351
5ee754fc 11352fi
bec39cab 11353
5ee754fc
MK
11354done
11355
bec39cab
AC
11356
11357
11358for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 11359do
bec39cab
AC
11360as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11361if eval "test \"\${$as_ac_Header+set}\" = set"; then
11362 echo "$as_me:$LINENO: checking for $ac_header" >&5
11363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11364if eval "test \"\${$as_ac_Header+set}\" = set"; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366fi
11367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11369else
11370 # Is the header compilable?
11371echo "$as_me:$LINENO: checking $ac_header usability" >&5
11372echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11373cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h. */
11379$ac_includes_default
11380#include <$ac_header>
11381_ACEOF
11382rm -f conftest.$ac_objext
11383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11384 (eval $ac_compile) 2>conftest.er1
11385 ac_status=$?
11386 grep -v '^ *+' conftest.er1 >conftest.err
11387 rm -f conftest.er1
11388 cat conftest.err >&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } &&
11391 { ac_try='test -z "$ac_c_werror_flag"
11392 || test ! -s conftest.err'
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; } &&
11398 { ac_try='test -s conftest.$ac_objext'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 ac_header_compiler=yes
11405else
11406 echo "$as_me: failed program was:" >&5
11407sed 's/^/| /' conftest.$ac_ext >&5
11408
11409ac_header_compiler=no
11410fi
11411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11412echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11413echo "${ECHO_T}$ac_header_compiler" >&6
11414
11415# Is the header present?
11416echo "$as_me:$LINENO: checking $ac_header presence" >&5
11417echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11418cat >conftest.$ac_ext <<_ACEOF
11419/* confdefs.h. */
11420_ACEOF
11421cat confdefs.h >>conftest.$ac_ext
11422cat >>conftest.$ac_ext <<_ACEOF
11423/* end confdefs.h. */
11424#include <$ac_header>
11425_ACEOF
11426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } >/dev/null; then
11434 if test -s conftest.err; then
11435 ac_cpp_err=$ac_c_preproc_warn_flag
11436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11437 else
11438 ac_cpp_err=
11439 fi
11440else
11441 ac_cpp_err=yes
5ee754fc 11442fi
bec39cab
AC
11443if test -z "$ac_cpp_err"; then
11444 ac_header_preproc=yes
5ee754fc 11445else
bec39cab
AC
11446 echo "$as_me: failed program was:" >&5
11447sed 's/^/| /' conftest.$ac_ext >&5
11448
11449 ac_header_preproc=no
5ee754fc 11450fi
bec39cab
AC
11451rm -f conftest.err conftest.$ac_ext
11452echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11453echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11454
bec39cab
AC
11455# So? What about this header?
11456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11457 yes:no: )
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11459echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11461echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11462 ac_header_preproc=yes
11463 ;;
11464 no:yes:* )
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11466echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11468echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11470echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11472echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11476echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11477 (
11478 cat <<\_ASBOX
11479## ------------------------------------------ ##
11480## Report this to the AC_PACKAGE_NAME lists. ##
11481## ------------------------------------------ ##
11482_ASBOX
11483 ) |
11484 sed "s/^/$as_me: WARNING: /" >&2
11485 ;;
11486esac
11487echo "$as_me:$LINENO: checking for $ac_header" >&5
11488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11489if eval "test \"\${$as_ac_Header+set}\" = set"; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11491else
11492 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11493fi
bec39cab
AC
11494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11496
5ee754fc 11497fi
bec39cab
AC
11498if test `eval echo '${'$as_ac_Header'}'` = yes; then
11499 cat >>confdefs.h <<_ACEOF
11500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11501_ACEOF
11502
5ee754fc 11503fi
bec39cab 11504
5ee754fc
MK
11505done
11506
bec39cab
AC
11507
11508for ac_header in sys/select.h
5ee754fc 11509do
bec39cab
AC
11510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11511if eval "test \"\${$as_ac_Header+set}\" = set"; then
11512 echo "$as_me:$LINENO: checking for $ac_header" >&5
11513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11514if eval "test \"\${$as_ac_Header+set}\" = set"; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11516fi
11517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11518echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11519else
11520 # Is the header compilable?
11521echo "$as_me:$LINENO: checking $ac_header usability" >&5
11522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11523cat >conftest.$ac_ext <<_ACEOF
11524/* confdefs.h. */
11525_ACEOF
11526cat confdefs.h >>conftest.$ac_ext
11527cat >>conftest.$ac_ext <<_ACEOF
11528/* end confdefs.h. */
11529$ac_includes_default
11530#include <$ac_header>
11531_ACEOF
11532rm -f conftest.$ac_objext
11533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534 (eval $ac_compile) 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag"
11542 || test ! -s conftest.err'
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11545 ac_status=$?
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; } &&
11548 { ac_try='test -s conftest.$ac_objext'
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
11554 ac_header_compiler=yes
11555else
11556 echo "$as_me: failed program was:" >&5
11557sed 's/^/| /' conftest.$ac_ext >&5
11558
11559ac_header_compiler=no
11560fi
11561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11562echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11563echo "${ECHO_T}$ac_header_compiler" >&6
11564
11565# Is the header present?
11566echo "$as_me:$LINENO: checking $ac_header presence" >&5
11567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11568cat >conftest.$ac_ext <<_ACEOF
11569/* confdefs.h. */
11570_ACEOF
11571cat confdefs.h >>conftest.$ac_ext
11572cat >>conftest.$ac_ext <<_ACEOF
11573/* end confdefs.h. */
11574#include <$ac_header>
11575_ACEOF
11576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } >/dev/null; then
11584 if test -s conftest.err; then
11585 ac_cpp_err=$ac_c_preproc_warn_flag
11586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11587 else
11588 ac_cpp_err=
11589 fi
11590else
11591 ac_cpp_err=yes
5ee754fc 11592fi
bec39cab
AC
11593if test -z "$ac_cpp_err"; then
11594 ac_header_preproc=yes
5ee754fc 11595else
bec39cab
AC
11596 echo "$as_me: failed program was:" >&5
11597sed 's/^/| /' conftest.$ac_ext >&5
11598
11599 ac_header_preproc=no
5ee754fc 11600fi
bec39cab
AC
11601rm -f conftest.err conftest.$ac_ext
11602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11603echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11604
bec39cab
AC
11605# So? What about this header?
11606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11607 yes:no: )
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11611echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11612 ac_header_preproc=yes
11613 ;;
11614 no:yes:* )
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11616echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11618echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11620echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11622echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11626echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11627 (
11628 cat <<\_ASBOX
11629## ------------------------------------------ ##
11630## Report this to the AC_PACKAGE_NAME lists. ##
11631## ------------------------------------------ ##
11632_ASBOX
11633 ) |
11634 sed "s/^/$as_me: WARNING: /" >&2
11635 ;;
11636esac
11637echo "$as_me:$LINENO: checking for $ac_header" >&5
11638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11639if eval "test \"\${$as_ac_Header+set}\" = set"; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11641else
11642 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11643fi
bec39cab
AC
11644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11646
5ee754fc 11647fi
bec39cab
AC
11648if test `eval echo '${'$as_ac_Header'}'` = yes; then
11649 cat >>confdefs.h <<_ACEOF
11650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11651_ACEOF
11652
5ee754fc 11653fi
bec39cab 11654
5ee754fc
MK
11655done
11656
bec39cab
AC
11657
11658for ac_header in sys/syscall.h
5ee754fc 11659do
bec39cab
AC
11660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11661if eval "test \"\${$as_ac_Header+set}\" = set"; then
11662 echo "$as_me:$LINENO: checking for $ac_header" >&5
11663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11664if eval "test \"\${$as_ac_Header+set}\" = set"; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666fi
11667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11669else
11670 # Is the header compilable?
11671echo "$as_me:$LINENO: checking $ac_header usability" >&5
11672echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11673cat >conftest.$ac_ext <<_ACEOF
11674/* confdefs.h. */
11675_ACEOF
11676cat confdefs.h >>conftest.$ac_ext
11677cat >>conftest.$ac_ext <<_ACEOF
11678/* end confdefs.h. */
11679$ac_includes_default
11680#include <$ac_header>
11681_ACEOF
11682rm -f conftest.$ac_objext
11683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11684 (eval $ac_compile) 2>conftest.er1
11685 ac_status=$?
11686 grep -v '^ *+' conftest.er1 >conftest.err
11687 rm -f conftest.er1
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -z "$ac_c_werror_flag"
11692 || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest.$ac_objext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_header_compiler=yes
11705else
11706 echo "$as_me: failed program was:" >&5
11707sed 's/^/| /' conftest.$ac_ext >&5
11708
11709ac_header_compiler=no
11710fi
11711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11712echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11713echo "${ECHO_T}$ac_header_compiler" >&6
11714
11715# Is the header present?
11716echo "$as_me:$LINENO: checking $ac_header presence" >&5
11717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11718cat >conftest.$ac_ext <<_ACEOF
11719/* confdefs.h. */
11720_ACEOF
11721cat confdefs.h >>conftest.$ac_ext
11722cat >>conftest.$ac_ext <<_ACEOF
11723/* end confdefs.h. */
11724#include <$ac_header>
11725_ACEOF
11726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11728 ac_status=$?
11729 grep -v '^ *+' conftest.er1 >conftest.err
11730 rm -f conftest.er1
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } >/dev/null; then
11734 if test -s conftest.err; then
11735 ac_cpp_err=$ac_c_preproc_warn_flag
11736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11737 else
11738 ac_cpp_err=
11739 fi
11740else
11741 ac_cpp_err=yes
5ee754fc 11742fi
bec39cab
AC
11743if test -z "$ac_cpp_err"; then
11744 ac_header_preproc=yes
5ee754fc 11745else
bec39cab
AC
11746 echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
11749 ac_header_preproc=no
5ee754fc 11750fi
bec39cab
AC
11751rm -f conftest.err conftest.$ac_ext
11752echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11753echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11754
bec39cab
AC
11755# So? What about this header?
11756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11757 yes:no: )
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11762 ac_header_preproc=yes
11763 ;;
11764 no:yes:* )
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11768echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11772echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11777 (
11778 cat <<\_ASBOX
11779## ------------------------------------------ ##
11780## Report this to the AC_PACKAGE_NAME lists. ##
11781## ------------------------------------------ ##
11782_ASBOX
11783 ) |
11784 sed "s/^/$as_me: WARNING: /" >&2
11785 ;;
11786esac
11787echo "$as_me:$LINENO: checking for $ac_header" >&5
11788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11789if eval "test \"\${$as_ac_Header+set}\" = set"; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11793fi
bec39cab
AC
11794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11796
5ee754fc 11797fi
bec39cab
AC
11798if test `eval echo '${'$as_ac_Header'}'` = yes; then
11799 cat >>confdefs.h <<_ACEOF
11800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11801_ACEOF
11802
5ee754fc 11803fi
bec39cab 11804
5ee754fc
MK
11805done
11806
bec39cab
AC
11807
11808for ac_header in sys/types.h
5ee754fc 11809do
bec39cab
AC
11810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11811if eval "test \"\${$as_ac_Header+set}\" = set"; then
11812 echo "$as_me:$LINENO: checking for $ac_header" >&5
11813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11814if eval "test \"\${$as_ac_Header+set}\" = set"; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11816fi
11817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11819else
11820 # Is the header compilable?
11821echo "$as_me:$LINENO: checking $ac_header usability" >&5
11822echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11823cat >conftest.$ac_ext <<_ACEOF
11824/* confdefs.h. */
11825_ACEOF
11826cat confdefs.h >>conftest.$ac_ext
11827cat >>conftest.$ac_ext <<_ACEOF
11828/* end confdefs.h. */
11829$ac_includes_default
11830#include <$ac_header>
11831_ACEOF
11832rm -f conftest.$ac_objext
11833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11834 (eval $ac_compile) 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } &&
11841 { ac_try='test -z "$ac_c_werror_flag"
11842 || test ! -s conftest.err'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_header_compiler=yes
11855else
11856 echo "$as_me: failed program was:" >&5
11857sed 's/^/| /' conftest.$ac_ext >&5
11858
11859ac_header_compiler=no
11860fi
11861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11862echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11863echo "${ECHO_T}$ac_header_compiler" >&6
11864
11865# Is the header present?
11866echo "$as_me:$LINENO: checking $ac_header presence" >&5
11867echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11868cat >conftest.$ac_ext <<_ACEOF
11869/* confdefs.h. */
11870_ACEOF
11871cat confdefs.h >>conftest.$ac_ext
11872cat >>conftest.$ac_ext <<_ACEOF
11873/* end confdefs.h. */
11874#include <$ac_header>
11875_ACEOF
11876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11878 ac_status=$?
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } >/dev/null; then
11884 if test -s conftest.err; then
11885 ac_cpp_err=$ac_c_preproc_warn_flag
11886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11887 else
11888 ac_cpp_err=
11889 fi
11890else
11891 ac_cpp_err=yes
5ee754fc 11892fi
bec39cab
AC
11893if test -z "$ac_cpp_err"; then
11894 ac_header_preproc=yes
5ee754fc 11895else
bec39cab
AC
11896 echo "$as_me: failed program was:" >&5
11897sed 's/^/| /' conftest.$ac_ext >&5
11898
11899 ac_header_preproc=no
5ee754fc 11900fi
bec39cab
AC
11901rm -f conftest.err conftest.$ac_ext
11902echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11903echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11904
bec39cab
AC
11905# So? What about this header?
11906case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11907 yes:no: )
11908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11909echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11911echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11912 ac_header_preproc=yes
11913 ;;
11914 no:yes:* )
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11916echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11918echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11920echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11922echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11924echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11926echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11927 (
11928 cat <<\_ASBOX
11929## ------------------------------------------ ##
11930## Report this to the AC_PACKAGE_NAME lists. ##
11931## ------------------------------------------ ##
11932_ASBOX
11933 ) |
11934 sed "s/^/$as_me: WARNING: /" >&2
11935 ;;
11936esac
11937echo "$as_me:$LINENO: checking for $ac_header" >&5
11938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11939if eval "test \"\${$as_ac_Header+set}\" = set"; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11943fi
bec39cab
AC
11944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11946
5ee754fc 11947fi
bec39cab
AC
11948if test `eval echo '${'$as_ac_Header'}'` = yes; then
11949 cat >>confdefs.h <<_ACEOF
11950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11951_ACEOF
11952
5ee754fc 11953fi
bec39cab 11954
5ee754fc
MK
11955done
11956
bec39cab
AC
11957
11958for ac_header in sys/user.h
5ee754fc 11959do
bec39cab 11960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 11961echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
11962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11963if eval "test \"\${$as_ac_Header+set}\" = set"; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11965else
7cb9022a 11966 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11967/* confdefs.h. */
11968_ACEOF
11969cat confdefs.h >>conftest.$ac_ext
11970cat >>conftest.$ac_ext <<_ACEOF
11971/* end confdefs.h. */
7cb9022a
MK
11972#if HAVE_SYS_PARAM_H
11973# include <sys/param.h>
11974#endif
11975
11976
bec39cab
AC
11977#include <$ac_header>
11978_ACEOF
11979rm -f conftest.$ac_objext
11980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11981 (eval $ac_compile) 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } &&
11988 { ac_try='test -z "$ac_c_werror_flag"
11989 || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
7cb9022a 12001 eval "$as_ac_Header=yes"
bec39cab
AC
12002else
12003 echo "$as_me: failed program was:" >&5
12004sed 's/^/| /' conftest.$ac_ext >&5
12005
7cb9022a 12006eval "$as_ac_Header=no"
bec39cab
AC
12007fi
12008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 12009fi
bec39cab
AC
12010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12012if test `eval echo '${'$as_ac_Header'}'` = yes; then
12013 cat >>confdefs.h <<_ACEOF
12014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12015_ACEOF
12016
5ee754fc 12017fi
bec39cab 12018
5ee754fc
MK
12019done
12020
bec39cab
AC
12021
12022
12023for ac_header in sys/wait.h wait.h
5ee754fc 12024do
bec39cab
AC
12025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12026if eval "test \"\${$as_ac_Header+set}\" = set"; then
12027 echo "$as_me:$LINENO: checking for $ac_header" >&5
12028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12029if eval "test \"\${$as_ac_Header+set}\" = set"; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031fi
12032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12034else
12035 # Is the header compilable?
12036echo "$as_me:$LINENO: checking $ac_header usability" >&5
12037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12038cat >conftest.$ac_ext <<_ACEOF
12039/* confdefs.h. */
12040_ACEOF
12041cat confdefs.h >>conftest.$ac_ext
12042cat >>conftest.$ac_ext <<_ACEOF
12043/* end confdefs.h. */
12044$ac_includes_default
12045#include <$ac_header>
12046_ACEOF
12047rm -f conftest.$ac_objext
12048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12049 (eval $ac_compile) 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_c_werror_flag"
12057 || test ! -s conftest.err'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; } &&
12063 { ac_try='test -s conftest.$ac_objext'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12069 ac_header_compiler=yes
12070else
12071 echo "$as_me: failed program was:" >&5
12072sed 's/^/| /' conftest.$ac_ext >&5
12073
12074ac_header_compiler=no
12075fi
12076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12077echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12078echo "${ECHO_T}$ac_header_compiler" >&6
12079
12080# Is the header present?
12081echo "$as_me:$LINENO: checking $ac_header presence" >&5
12082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12083cat >conftest.$ac_ext <<_ACEOF
12084/* confdefs.h. */
12085_ACEOF
12086cat confdefs.h >>conftest.$ac_ext
12087cat >>conftest.$ac_ext <<_ACEOF
12088/* end confdefs.h. */
12089#include <$ac_header>
12090_ACEOF
12091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12093 ac_status=$?
12094 grep -v '^ *+' conftest.er1 >conftest.err
12095 rm -f conftest.er1
12096 cat conftest.err >&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } >/dev/null; then
12099 if test -s conftest.err; then
12100 ac_cpp_err=$ac_c_preproc_warn_flag
12101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12102 else
12103 ac_cpp_err=
12104 fi
12105else
12106 ac_cpp_err=yes
5ee754fc 12107fi
bec39cab
AC
12108if test -z "$ac_cpp_err"; then
12109 ac_header_preproc=yes
5ee754fc 12110else
bec39cab
AC
12111 echo "$as_me: failed program was:" >&5
12112sed 's/^/| /' conftest.$ac_ext >&5
12113
12114 ac_header_preproc=no
5ee754fc 12115fi
bec39cab
AC
12116rm -f conftest.err conftest.$ac_ext
12117echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12118echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 12119
bec39cab
AC
12120# So? What about this header?
12121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12122 yes:no: )
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12127 ac_header_preproc=yes
12128 ;;
12129 no:yes:* )
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12133echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12137echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12142 (
12143 cat <<\_ASBOX
12144## ------------------------------------------ ##
12145## Report this to the AC_PACKAGE_NAME lists. ##
12146## ------------------------------------------ ##
12147_ASBOX
12148 ) |
12149 sed "s/^/$as_me: WARNING: /" >&2
12150 ;;
12151esac
12152echo "$as_me:$LINENO: checking for $ac_header" >&5
12153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12154if eval "test \"\${$as_ac_Header+set}\" = set"; then
12155 echo $ECHO_N "(cached) $ECHO_C" >&6
12156else
12157 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12158fi
bec39cab
AC
12159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12161
9608ab8b 12162fi
bec39cab
AC
12163if test `eval echo '${'$as_ac_Header'}'` = yes; then
12164 cat >>confdefs.h <<_ACEOF
12165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12166_ACEOF
12167
9608ab8b 12168fi
bec39cab 12169
9608ab8b 12170done
5ee754fc 12171
bec39cab
AC
12172
12173
12174
12175for ac_header in termios.h termio.h sgtty.h
5ee754fc 12176do
bec39cab
AC
12177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12178if eval "test \"\${$as_ac_Header+set}\" = set"; then
12179 echo "$as_me:$LINENO: checking for $ac_header" >&5
12180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12181if eval "test \"\${$as_ac_Header+set}\" = set"; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183fi
12184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12186else
12187 # Is the header compilable?
12188echo "$as_me:$LINENO: checking $ac_header usability" >&5
12189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12190cat >conftest.$ac_ext <<_ACEOF
12191/* confdefs.h. */
12192_ACEOF
12193cat confdefs.h >>conftest.$ac_ext
12194cat >>conftest.$ac_ext <<_ACEOF
12195/* end confdefs.h. */
12196$ac_includes_default
12197#include <$ac_header>
12198_ACEOF
12199rm -f conftest.$ac_objext
12200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201 (eval $ac_compile) 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag"
12209 || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_header_compiler=yes
12222else
12223 echo "$as_me: failed program was:" >&5
12224sed 's/^/| /' conftest.$ac_ext >&5
12225
12226ac_header_compiler=no
12227fi
12228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12230echo "${ECHO_T}$ac_header_compiler" >&6
12231
12232# Is the header present?
12233echo "$as_me:$LINENO: checking $ac_header presence" >&5
12234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12235cat >conftest.$ac_ext <<_ACEOF
12236/* confdefs.h. */
12237_ACEOF
12238cat confdefs.h >>conftest.$ac_ext
12239cat >>conftest.$ac_ext <<_ACEOF
12240/* end confdefs.h. */
12241#include <$ac_header>
12242_ACEOF
12243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } >/dev/null; then
12251 if test -s conftest.err; then
12252 ac_cpp_err=$ac_c_preproc_warn_flag
12253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12254 else
12255 ac_cpp_err=
12256 fi
12257else
12258 ac_cpp_err=yes
9608ab8b 12259fi
bec39cab
AC
12260if test -z "$ac_cpp_err"; then
12261 ac_header_preproc=yes
9608ab8b 12262else
bec39cab
AC
12263 echo "$as_me: failed program was:" >&5
12264sed 's/^/| /' conftest.$ac_ext >&5
12265
12266 ac_header_preproc=no
9608ab8b 12267fi
bec39cab
AC
12268rm -f conftest.err conftest.$ac_ext
12269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12270echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 12271
bec39cab
AC
12272# So? What about this header?
12273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12274 yes:no: )
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12279 ac_header_preproc=yes
12280 ;;
12281 no:yes:* )
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12294 (
12295 cat <<\_ASBOX
12296## ------------------------------------------ ##
12297## Report this to the AC_PACKAGE_NAME lists. ##
12298## ------------------------------------------ ##
12299_ASBOX
12300 ) |
12301 sed "s/^/$as_me: WARNING: /" >&2
12302 ;;
12303esac
12304echo "$as_me:$LINENO: checking for $ac_header" >&5
12305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12306if eval "test \"\${$as_ac_Header+set}\" = set"; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12310fi
bec39cab
AC
12311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12313
9608ab8b 12314fi
bec39cab
AC
12315if test `eval echo '${'$as_ac_Header'}'` = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12318_ACEOF
12319
9608ab8b 12320fi
bec39cab 12321
5ee754fc 12322done
9608ab8b 12323
bec39cab
AC
12324
12325for ac_header in unistd.h
78434e59 12326do
bec39cab
AC
12327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12328if eval "test \"\${$as_ac_Header+set}\" = set"; then
12329 echo "$as_me:$LINENO: checking for $ac_header" >&5
12330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12331if eval "test \"\${$as_ac_Header+set}\" = set"; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12333fi
12334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12336else
12337 # Is the header compilable?
12338echo "$as_me:$LINENO: checking $ac_header usability" >&5
12339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12340cat >conftest.$ac_ext <<_ACEOF
12341/* confdefs.h. */
12342_ACEOF
12343cat confdefs.h >>conftest.$ac_ext
12344cat >>conftest.$ac_ext <<_ACEOF
12345/* end confdefs.h. */
12346$ac_includes_default
12347#include <$ac_header>
12348_ACEOF
12349rm -f conftest.$ac_objext
12350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12351 (eval $ac_compile) 2>conftest.er1
12352 ac_status=$?
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag"
12359 || test ! -s conftest.err'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest.$ac_objext'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 ac_header_compiler=yes
12372else
12373 echo "$as_me: failed program was:" >&5
12374sed 's/^/| /' conftest.$ac_ext >&5
12375
12376ac_header_compiler=no
12377fi
12378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12380echo "${ECHO_T}$ac_header_compiler" >&6
12381
12382# Is the header present?
12383echo "$as_me:$LINENO: checking $ac_header presence" >&5
12384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12385cat >conftest.$ac_ext <<_ACEOF
12386/* confdefs.h. */
12387_ACEOF
12388cat confdefs.h >>conftest.$ac_ext
12389cat >>conftest.$ac_ext <<_ACEOF
12390/* end confdefs.h. */
12391#include <$ac_header>
12392_ACEOF
12393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } >/dev/null; then
12401 if test -s conftest.err; then
12402 ac_cpp_err=$ac_c_preproc_warn_flag
12403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12404 else
12405 ac_cpp_err=
12406 fi
12407else
12408 ac_cpp_err=yes
78434e59 12409fi
bec39cab
AC
12410if test -z "$ac_cpp_err"; then
12411 ac_header_preproc=yes
78434e59 12412else
bec39cab
AC
12413 echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 ac_header_preproc=no
78434e59 12417fi
bec39cab
AC
12418rm -f conftest.err conftest.$ac_ext
12419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12420echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 12421
bec39cab
AC
12422# So? What about this header?
12423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12424 yes:no: )
12425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12429 ac_header_preproc=yes
12430 ;;
12431 no:yes:* )
12432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12444 (
12445 cat <<\_ASBOX
12446## ------------------------------------------ ##
12447## Report this to the AC_PACKAGE_NAME lists. ##
12448## ------------------------------------------ ##
12449_ASBOX
12450 ) |
12451 sed "s/^/$as_me: WARNING: /" >&2
12452 ;;
12453esac
12454echo "$as_me:$LINENO: checking for $ac_header" >&5
12455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12456if eval "test \"\${$as_ac_Header+set}\" = set"; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12458else
12459 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 12460fi
bec39cab
AC
12461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12463
086ec9eb 12464fi
bec39cab
AC
12465if test `eval echo '${'$as_ac_Header'}'` = yes; then
12466 cat >>confdefs.h <<_ACEOF
12467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12468_ACEOF
12469
086ec9eb 12470fi
bec39cab 12471
086ec9eb
MK
12472done
12473
9608ab8b 12474
b1d19a62 12475# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
12476# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12477# think that we don't have <curses.h> if we're using GCC.
12478case $host_os in
b1d19a62 12479 solaris2.[789])
5ee754fc 12480 if test "$GCC" = yes; then
bec39cab
AC
12481
12482cat >>confdefs.h <<\_ACEOF
5ee754fc 12483#define _MSE_INT_H 1
bec39cab 12484_ACEOF
5ee754fc
MK
12485
12486 fi ;;
12487esac
bec39cab
AC
12488
12489
12490
12491
12492for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 12493do
bec39cab
AC
12494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12495if eval "test \"\${$as_ac_Header+set}\" = set"; then
12496 echo "$as_me:$LINENO: checking for $ac_header" >&5
12497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12498if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500fi
12501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12503else
12504 # Is the header compilable?
12505echo "$as_me:$LINENO: checking $ac_header usability" >&5
12506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12507cat >conftest.$ac_ext <<_ACEOF
12508/* confdefs.h. */
12509_ACEOF
12510cat confdefs.h >>conftest.$ac_ext
12511cat >>conftest.$ac_ext <<_ACEOF
12512/* end confdefs.h. */
12513$ac_includes_default
12514#include <$ac_header>
12515_ACEOF
12516rm -f conftest.$ac_objext
12517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12518 (eval $ac_compile) 2>conftest.er1
12519 ac_status=$?
12520 grep -v '^ *+' conftest.er1 >conftest.err
12521 rm -f conftest.er1
12522 cat conftest.err >&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); } &&
12525 { ac_try='test -z "$ac_c_werror_flag"
12526 || test ! -s conftest.err'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; } &&
12532 { ac_try='test -s conftest.$ac_objext'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; }; then
12538 ac_header_compiler=yes
12539else
12540 echo "$as_me: failed program was:" >&5
12541sed 's/^/| /' conftest.$ac_ext >&5
12542
12543ac_header_compiler=no
12544fi
12545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12547echo "${ECHO_T}$ac_header_compiler" >&6
12548
12549# Is the header present?
12550echo "$as_me:$LINENO: checking $ac_header presence" >&5
12551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12552cat >conftest.$ac_ext <<_ACEOF
12553/* confdefs.h. */
12554_ACEOF
12555cat confdefs.h >>conftest.$ac_ext
12556cat >>conftest.$ac_ext <<_ACEOF
12557/* end confdefs.h. */
12558#include <$ac_header>
12559_ACEOF
12560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } >/dev/null; then
12568 if test -s conftest.err; then
12569 ac_cpp_err=$ac_c_preproc_warn_flag
12570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12571 else
12572 ac_cpp_err=
12573 fi
12574else
12575 ac_cpp_err=yes
c906108c 12576fi
bec39cab
AC
12577if test -z "$ac_cpp_err"; then
12578 ac_header_preproc=yes
12579else
12580 echo "$as_me: failed program was:" >&5
12581sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 ac_header_preproc=no
c906108c 12584fi
bec39cab
AC
12585rm -f conftest.err conftest.$ac_ext
12586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587echo "${ECHO_T}$ac_header_preproc" >&6
12588
12589# So? What about this header?
12590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12591 yes:no: )
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12596 ac_header_preproc=yes
12597 ;;
12598 no:yes:* )
12599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12606echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12611 (
12612 cat <<\_ASBOX
12613## ------------------------------------------ ##
12614## Report this to the AC_PACKAGE_NAME lists. ##
12615## ------------------------------------------ ##
12616_ASBOX
12617 ) |
12618 sed "s/^/$as_me: WARNING: /" >&2
12619 ;;
12620esac
12621echo "$as_me:$LINENO: checking for $ac_header" >&5
12622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12623if eval "test \"\${$as_ac_Header+set}\" = set"; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12625else
bec39cab 12626 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12627fi
bec39cab
AC
12628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12630
12631fi
12632if test `eval echo '${'$as_ac_Header'}'` = yes; then
12633 cat >>confdefs.h <<_ACEOF
12634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12635_ACEOF
12636
12637fi
12638
5ee754fc 12639done
c906108c 12640
bec39cab
AC
12641
12642
12643for ac_header in ncurses/term.h term.h
3b78cdbb 12644do
bec39cab
AC
12645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12646if eval "test \"\${$as_ac_Header+set}\" = set"; then
12647 echo "$as_me:$LINENO: checking for $ac_header" >&5
12648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12649if eval "test \"\${$as_ac_Header+set}\" = set"; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12651fi
12652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12654else
12655 # Is the header compilable?
12656echo "$as_me:$LINENO: checking $ac_header usability" >&5
12657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12658cat >conftest.$ac_ext <<_ACEOF
12659/* confdefs.h. */
12660_ACEOF
12661cat confdefs.h >>conftest.$ac_ext
12662cat >>conftest.$ac_ext <<_ACEOF
12663/* end confdefs.h. */
12664$ac_includes_default
12665#include <$ac_header>
12666_ACEOF
12667rm -f conftest.$ac_objext
12668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12669 (eval $ac_compile) 2>conftest.er1
12670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -z "$ac_c_werror_flag"
12677 || test ! -s conftest.err'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; } &&
12683 { ac_try='test -s conftest.$ac_objext'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; }; then
12689 ac_header_compiler=yes
12690else
12691 echo "$as_me: failed program was:" >&5
12692sed 's/^/| /' conftest.$ac_ext >&5
12693
12694ac_header_compiler=no
12695fi
12696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12698echo "${ECHO_T}$ac_header_compiler" >&6
12699
12700# Is the header present?
12701echo "$as_me:$LINENO: checking $ac_header presence" >&5
12702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12703cat >conftest.$ac_ext <<_ACEOF
12704/* confdefs.h. */
12705_ACEOF
12706cat confdefs.h >>conftest.$ac_ext
12707cat >>conftest.$ac_ext <<_ACEOF
12708/* end confdefs.h. */
12709#include <$ac_header>
12710_ACEOF
12711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } >/dev/null; then
12719 if test -s conftest.err; then
12720 ac_cpp_err=$ac_c_preproc_warn_flag
12721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12722 else
12723 ac_cpp_err=
12724 fi
12725else
12726 ac_cpp_err=yes
3b78cdbb 12727fi
bec39cab
AC
12728if test -z "$ac_cpp_err"; then
12729 ac_header_preproc=yes
12730else
12731 echo "$as_me: failed program was:" >&5
12732sed 's/^/| /' conftest.$ac_ext >&5
12733
12734 ac_header_preproc=no
3b78cdbb 12735fi
bec39cab
AC
12736rm -f conftest.err conftest.$ac_ext
12737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12738echo "${ECHO_T}$ac_header_preproc" >&6
12739
12740# So? What about this header?
12741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12742 yes:no: )
12743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12747 ac_header_preproc=yes
12748 ;;
12749 no:yes:* )
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12757echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12762 (
12763 cat <<\_ASBOX
12764## ------------------------------------------ ##
12765## Report this to the AC_PACKAGE_NAME lists. ##
12766## ------------------------------------------ ##
12767_ASBOX
12768 ) |
12769 sed "s/^/$as_me: WARNING: /" >&2
12770 ;;
12771esac
12772echo "$as_me:$LINENO: checking for $ac_header" >&5
12773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12774if eval "test \"\${$as_ac_Header+set}\" = set"; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 12776else
bec39cab
AC
12777 eval "$as_ac_Header=\$ac_header_preproc"
12778fi
12779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12781
3b78cdbb 12782fi
bec39cab
AC
12783if test `eval echo '${'$as_ac_Header'}'` = yes; then
12784 cat >>confdefs.h <<_ACEOF
12785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12786_ACEOF
12787
12788fi
12789
3b78cdbb
DA
12790done
12791
c906108c 12792
5ee754fc
MK
12793# FIXME: kettenis/20030102: In most cases we include these
12794# unconditionally, so what's the point in checking these?
bec39cab
AC
12795
12796
12797for ac_header in ctype.h time.h
c906108c 12798do
bec39cab
AC
12799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12800if eval "test \"\${$as_ac_Header+set}\" = set"; then
12801 echo "$as_me:$LINENO: checking for $ac_header" >&5
12802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12803if eval "test \"\${$as_ac_Header+set}\" = set"; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12805fi
12806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12807echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12808else
12809 # Is the header compilable?
12810echo "$as_me:$LINENO: checking $ac_header usability" >&5
12811echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12812cat >conftest.$ac_ext <<_ACEOF
12813/* confdefs.h. */
12814_ACEOF
12815cat confdefs.h >>conftest.$ac_ext
12816cat >>conftest.$ac_ext <<_ACEOF
12817/* end confdefs.h. */
12818$ac_includes_default
12819#include <$ac_header>
12820_ACEOF
12821rm -f conftest.$ac_objext
12822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823 (eval $ac_compile) 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } &&
12830 { ac_try='test -z "$ac_c_werror_flag"
12831 || test ! -s conftest.err'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; } &&
12837 { ac_try='test -s conftest.$ac_objext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 ac_header_compiler=yes
12844else
12845 echo "$as_me: failed program was:" >&5
12846sed 's/^/| /' conftest.$ac_ext >&5
12847
12848ac_header_compiler=no
12849fi
12850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12851echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12852echo "${ECHO_T}$ac_header_compiler" >&6
12853
12854# Is the header present?
12855echo "$as_me:$LINENO: checking $ac_header presence" >&5
12856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12857cat >conftest.$ac_ext <<_ACEOF
12858/* confdefs.h. */
12859_ACEOF
12860cat confdefs.h >>conftest.$ac_ext
12861cat >>conftest.$ac_ext <<_ACEOF
12862/* end confdefs.h. */
12863#include <$ac_header>
12864_ACEOF
12865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } >/dev/null; then
12873 if test -s conftest.err; then
12874 ac_cpp_err=$ac_c_preproc_warn_flag
12875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12876 else
12877 ac_cpp_err=
12878 fi
12879else
12880 ac_cpp_err=yes
c906108c 12881fi
bec39cab
AC
12882if test -z "$ac_cpp_err"; then
12883 ac_header_preproc=yes
12884else
12885 echo "$as_me: failed program was:" >&5
12886sed 's/^/| /' conftest.$ac_ext >&5
12887
12888 ac_header_preproc=no
c906108c 12889fi
bec39cab
AC
12890rm -f conftest.err conftest.$ac_ext
12891echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12892echo "${ECHO_T}$ac_header_preproc" >&6
12893
12894# So? What about this header?
12895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12896 yes:no: )
12897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12898echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12900echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12901 ac_header_preproc=yes
12902 ;;
12903 no:yes:* )
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12905echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12907echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12909echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12911echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12915echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12916 (
12917 cat <<\_ASBOX
12918## ------------------------------------------ ##
12919## Report this to the AC_PACKAGE_NAME lists. ##
12920## ------------------------------------------ ##
12921_ASBOX
12922 ) |
12923 sed "s/^/$as_me: WARNING: /" >&2
12924 ;;
12925esac
12926echo "$as_me:$LINENO: checking for $ac_header" >&5
12927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12928if eval "test \"\${$as_ac_Header+set}\" = set"; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12930else
bec39cab
AC
12931 eval "$as_ac_Header=\$ac_header_preproc"
12932fi
12933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12935
12936fi
12937if test `eval echo '${'$as_ac_Header'}'` = yes; then
12938 cat >>confdefs.h <<_ACEOF
12939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12940_ACEOF
12941
c906108c 12942fi
bec39cab 12943
c906108c
SS
12944done
12945
5ee754fc 12946
bec39cab
AC
12947echo "$as_me:$LINENO: checking for member st_blocks in struct stat" >&5
12948echo $ECHO_N "checking for member st_blocks in struct stat... $ECHO_C" >&6
12949if test "${gdb_cv_have_struct_stat_with_st_blocks_member+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 12951else
bec39cab
AC
12952 cat >conftest.$ac_ext <<_ACEOF
12953/* confdefs.h. */
12954_ACEOF
12955cat confdefs.h >>conftest.$ac_ext
12956cat >>conftest.$ac_ext <<_ACEOF
12957/* end confdefs.h. */
40a7debc
EZ
12958#include <sys/types.h>
12959#include <sys/stat.h>
bec39cab
AC
12960int
12961main ()
12962{
40a7debc 12963struct stat st; (void) st.st_blocks;
bec39cab
AC
12964 ;
12965 return 0;
12966}
12967_ACEOF
12968rm -f conftest.$ac_objext
12969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970 (eval $ac_compile) 2>conftest.er1
12971 ac_status=$?
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -z "$ac_c_werror_flag"
12978 || test ! -s conftest.err'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest.$ac_objext'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
40a7debc
EZ
12990 gdb_cv_have_struct_stat_with_st_blocks_member=yes
12991else
bec39cab
AC
12992 echo "$as_me: failed program was:" >&5
12993sed 's/^/| /' conftest.$ac_ext >&5
12994
12995gdb_cv_have_struct_stat_with_st_blocks_member=no
40a7debc 12996fi
bec39cab 12997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc
EZ
12998fi
12999
bec39cab
AC
13000echo "$as_me:$LINENO: result: $gdb_cv_have_struct_stat_with_st_blocks_member" >&5
13001echo "${ECHO_T}$gdb_cv_have_struct_stat_with_st_blocks_member" >&6
40a7debc 13002if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
bec39cab 13003 cat >>confdefs.h <<\_ACEOF
40a7debc 13004#define HAVE_STRUCT_STAT_ST_BLOCKS 1
bec39cab 13005_ACEOF
40a7debc
EZ
13006
13007fi
086ec9eb 13008
b9362cc7
AC
13009# ------------------------- #
13010# Checks for declarations. #
13011# ------------------------- #
13012
13013for ac_func in getopt
13014do
13015 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
bec39cab
AC
13016echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13017echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
13018if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13020else
13021 cat >conftest.$ac_ext <<_ACEOF
13022/* confdefs.h. */
13023_ACEOF
13024cat confdefs.h >>conftest.$ac_ext
13025cat >>conftest.$ac_ext <<_ACEOF
13026/* end confdefs.h. */
b9362cc7
AC
13027#undef $ac_tr_decl
13028#define $ac_tr_decl 1
b9362cc7 13029
bec39cab
AC
13030
13031int
13032main ()
13033{
b9362cc7
AC
13034#ifndef $ac_func
13035char *(*pfn) = (char *(*)) $ac_func ;
13036#endif
bec39cab
AC
13037 ;
13038 return 0;
13039}
13040_ACEOF
13041rm -f conftest.$ac_objext
13042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13043 (eval $ac_compile) 2>conftest.er1
13044 ac_status=$?
13045 grep -v '^ *+' conftest.er1 >conftest.err
13046 rm -f conftest.er1
13047 cat conftest.err >&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try='test -z "$ac_c_werror_flag"
13051 || test ! -s conftest.err'
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; } &&
13057 { ac_try='test -s conftest.$ac_objext'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
b9362cc7
AC
13063 eval "gcc_cv_have_decl_$ac_func=yes"
13064else
bec39cab
AC
13065 echo "$as_me: failed program was:" >&5
13066sed 's/^/| /' conftest.$ac_ext >&5
13067
13068eval "gcc_cv_have_decl_$ac_func=no"
b9362cc7 13069fi
bec39cab 13070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7
AC
13071fi
13072
13073if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
bec39cab
AC
13074 echo "$as_me:$LINENO: result: yes" >&5
13075echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
b9362cc7 13076#define $ac_tr_decl 1
bec39cab
AC
13077_ACEOF
13078
b9362cc7 13079else
bec39cab
AC
13080 echo "$as_me:$LINENO: result: no" >&5
13081echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
b9362cc7 13082#define $ac_tr_decl 0
bec39cab
AC
13083_ACEOF
13084
b9362cc7
AC
13085fi
13086
13087done
13088if test x = y ; then
bec39cab
AC
13089
13090cat >>confdefs.h <<\_ACEOF
b9362cc7 13091#define HAVE_DECL_GETOPT 1
bec39cab 13092_ACEOF
b9362cc7
AC
13093fi
13094
13095
5ee754fc
MK
13096# ------------------ #
13097# Checks for types. #
13098# ------------------ #
13099
bec39cab
AC
13100echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13101echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13102if test "${ac_cv_type_signal+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13104else
13105 cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
c906108c 13111#include <sys/types.h>
5ee754fc
MK
13112#include <signal.h>
13113#ifdef signal
bec39cab 13114# undef signal
c906108c 13115#endif
5ee754fc
MK
13116#ifdef __cplusplus
13117extern "C" void (*signal (int, void (*)(int)))(int);
13118#else
13119void (*signal ()) ();
c906108c
SS
13120#endif
13121
bec39cab
AC
13122int
13123main ()
13124{
5ee754fc 13125int i;
bec39cab
AC
13126 ;
13127 return 0;
13128}
13129_ACEOF
13130rm -f conftest.$ac_objext
13131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13132 (eval $ac_compile) 2>conftest.er1
13133 ac_status=$?
13134 grep -v '^ *+' conftest.er1 >conftest.err
13135 rm -f conftest.er1
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try='test -z "$ac_c_werror_flag"
13140 || test ! -s conftest.err'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest.$ac_objext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
5ee754fc 13152 ac_cv_type_signal=void
c906108c 13153else
bec39cab
AC
13154 echo "$as_me: failed program was:" >&5
13155sed 's/^/| /' conftest.$ac_ext >&5
13156
13157ac_cv_type_signal=int
c906108c 13158fi
bec39cab 13159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13160fi
bec39cab
AC
13161echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13162echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 13163
bec39cab 13164cat >>confdefs.h <<_ACEOF
5ee754fc 13165#define RETSIGTYPE $ac_cv_type_signal
bec39cab 13166_ACEOF
c906108c 13167
c906108c
SS
13168
13169
5ee754fc
MK
13170# ------------------------------------- #
13171# Checks for compiler characteristics. #
13172# ------------------------------------- #
13173
bec39cab
AC
13174echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13175echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13176if test "${ac_cv_c_const+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13178else
13179 cat >conftest.$ac_ext <<_ACEOF
13180/* confdefs.h. */
13181_ACEOF
13182cat confdefs.h >>conftest.$ac_ext
13183cat >>conftest.$ac_ext <<_ACEOF
13184/* end confdefs.h. */
13185
13186int
13187main ()
13188{
13189/* FIXME: Include the comments suggested by Paul. */
13190#ifndef __cplusplus
13191 /* Ultrix mips cc rejects this. */
13192 typedef int charset[2];
13193 const charset x;
13194 /* SunOS 4.1.1 cc rejects this. */
13195 char const *const *ccp;
13196 char **p;
13197 /* NEC SVR4.0.2 mips cc rejects this. */
13198 struct point {int x, y;};
13199 static struct point const zero = {0,0};
13200 /* AIX XL C 1.02.0.0 rejects this.
13201 It does not let you subtract one const X* pointer from another in
13202 an arm of an if-expression whose if-part is not a constant
13203 expression */
13204 const char *g = "string";
13205 ccp = &g + (g ? g-g : 0);
13206 /* HPUX 7.0 cc rejects these. */
13207 ++ccp;
13208 p = (char**) ccp;
13209 ccp = (char const *const *) p;
13210 { /* SCO 3.2v4 cc rejects this. */
13211 char *t;
13212 char const *s = 0 ? (char *) 0 : (char const *) 0;
13213
13214 *t++ = 0;
13215 }
13216 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13217 int x[] = {25, 17};
13218 const int *foo = &x[0];
13219 ++foo;
13220 }
13221 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13222 typedef const int *iptr;
13223 iptr p = 0;
13224 ++p;
13225 }
13226 { /* AIX XL C 1.02.0.0 rejects this saying
13227 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13228 struct s { int j; const int *ap[3]; };
13229 struct s *b; b->j = 5;
13230 }
13231 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13232 const int foo = 10;
13233 }
13234#endif
13235
13236 ;
13237 return 0;
13238}
13239_ACEOF
13240rm -f conftest.$ac_objext
13241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13242 (eval $ac_compile) 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag"
13250 || test ! -s conftest.err'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try='test -s conftest.$ac_objext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
c906108c
SS
13262 ac_cv_c_const=yes
13263else
bec39cab
AC
13264 echo "$as_me: failed program was:" >&5
13265sed 's/^/| /' conftest.$ac_ext >&5
13266
13267ac_cv_c_const=no
c906108c 13268fi
bec39cab 13269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13270fi
bec39cab
AC
13271echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13272echo "${ECHO_T}$ac_cv_c_const" >&6
c906108c 13273if test $ac_cv_c_const = no; then
bec39cab
AC
13274
13275cat >>confdefs.h <<\_ACEOF
13276#define const
13277_ACEOF
c906108c
SS
13278
13279fi
13280
bec39cab
AC
13281echo "$as_me:$LINENO: checking for inline" >&5
13282echo $ECHO_N "checking for inline... $ECHO_C" >&6
13283if test "${ac_cv_c_inline+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09
JB
13285else
13286 ac_cv_c_inline=no
13287for ac_kw in inline __inline__ __inline; do
bec39cab
AC
13288 cat >conftest.$ac_ext <<_ACEOF
13289/* confdefs.h. */
13290_ACEOF
13291cat confdefs.h >>conftest.$ac_ext
13292cat >>conftest.$ac_ext <<_ACEOF
13293/* end confdefs.h. */
13294#ifndef __cplusplus
13295typedef int foo_t;
13296static $ac_kw foo_t static_foo () {return 0; }
13297$ac_kw foo_t foo () {return 0; }
13298#endif
13299
13300_ACEOF
13301rm -f conftest.$ac_objext
13302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13303 (eval $ac_compile) 2>conftest.er1
13304 ac_status=$?
13305 grep -v '^ *+' conftest.er1 >conftest.err
13306 rm -f conftest.er1
13307 cat conftest.err >&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } &&
13310 { ac_try='test -z "$ac_c_werror_flag"
13311 || test ! -s conftest.err'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; } &&
13317 { ac_try='test -s conftest.$ac_objext'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
bce58c09
JB
13323 ac_cv_c_inline=$ac_kw; break
13324else
bec39cab
AC
13325 echo "$as_me: failed program was:" >&5
13326sed 's/^/| /' conftest.$ac_ext >&5
13327
bce58c09 13328fi
bec39cab 13329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09
JB
13330done
13331
13332fi
bec39cab
AC
13333echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13334echo "${ECHO_T}$ac_cv_c_inline" >&6
13335
bce58c09 13336
bec39cab 13337case $ac_cv_c_inline in
bce58c09 13338 inline | yes) ;;
bec39cab
AC
13339 *)
13340 case $ac_cv_c_inline in
13341 no) ac_val=;;
13342 *) ac_val=$ac_cv_c_inline;;
13343 esac
13344 cat >>confdefs.h <<_ACEOF
13345#ifndef __cplusplus
13346#define inline $ac_val
13347#endif
13348_ACEOF
13349 ;;
bce58c09
JB
13350esac
13351
c906108c 13352
5ee754fc
MK
13353# ------------------------------ #
13354# Checks for library functions. #
13355# ------------------------------ #
13356
46711df8
MK
13357# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13358# for constant arguments. Useless!
bec39cab
AC
13359echo "$as_me:$LINENO: checking for working alloca.h" >&5
13360echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13361if test "${ac_cv_working_alloca_h+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13363else
13364 cat >conftest.$ac_ext <<_ACEOF
13365/* confdefs.h. */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
13369/* end confdefs.h. */
46711df8 13370#include <alloca.h>
bec39cab
AC
13371int
13372main ()
13373{
13374char *p = (char *) alloca (2 * sizeof (int));
13375 ;
13376 return 0;
13377}
13378_ACEOF
13379rm -f conftest.$ac_objext conftest$ac_exeext
13380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13381 (eval $ac_link) 2>conftest.er1
13382 ac_status=$?
13383 grep -v '^ *+' conftest.er1 >conftest.err
13384 rm -f conftest.er1
13385 cat conftest.err >&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -z "$ac_c_werror_flag"
13389 || test ! -s conftest.err'
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; } &&
13395 { ac_try='test -s conftest$ac_exeext'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13401 ac_cv_working_alloca_h=yes
13402else
13403 echo "$as_me: failed program was:" >&5
13404sed 's/^/| /' conftest.$ac_ext >&5
13405
13406ac_cv_working_alloca_h=no
13407fi
13408rm -f conftest.err conftest.$ac_objext \
13409 conftest$ac_exeext conftest.$ac_ext
13410fi
13411echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13412echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13413if test $ac_cv_working_alloca_h = yes; then
13414
13415cat >>confdefs.h <<\_ACEOF
46711df8 13416#define HAVE_ALLOCA_H 1
bec39cab 13417_ACEOF
46711df8
MK
13418
13419fi
13420
bec39cab
AC
13421echo "$as_me:$LINENO: checking for alloca" >&5
13422echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13423if test "${ac_cv_func_alloca_works+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13425else
bec39cab
AC
13426 cat >conftest.$ac_ext <<_ACEOF
13427/* confdefs.h. */
13428_ACEOF
13429cat confdefs.h >>conftest.$ac_ext
13430cat >>conftest.$ac_ext <<_ACEOF
13431/* end confdefs.h. */
46711df8
MK
13432#ifdef __GNUC__
13433# define alloca __builtin_alloca
13434#else
13435# ifdef _MSC_VER
13436# include <malloc.h>
13437# define alloca _alloca
13438# else
13439# if HAVE_ALLOCA_H
13440# include <alloca.h>
13441# else
13442# ifdef _AIX
13443 #pragma alloca
13444# else
13445# ifndef alloca /* predefined by HP cc +Olibcalls */
13446char *alloca ();
13447# endif
13448# endif
13449# endif
13450# endif
13451#endif
13452
bec39cab
AC
13453int
13454main ()
13455{
13456char *p = (char *) alloca (1);
13457 ;
13458 return 0;
13459}
13460_ACEOF
13461rm -f conftest.$ac_objext conftest$ac_exeext
13462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463 (eval $ac_link) 2>conftest.er1
13464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
13470 { ac_try='test -z "$ac_c_werror_flag"
13471 || test ! -s conftest.err'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; } &&
13477 { ac_try='test -s conftest$ac_exeext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
46711df8
MK
13483 ac_cv_func_alloca_works=yes
13484else
bec39cab
AC
13485 echo "$as_me: failed program was:" >&5
13486sed 's/^/| /' conftest.$ac_ext >&5
13487
13488ac_cv_func_alloca_works=no
46711df8 13489fi
bec39cab
AC
13490rm -f conftest.err conftest.$ac_objext \
13491 conftest$ac_exeext conftest.$ac_ext
46711df8 13492fi
bec39cab
AC
13493echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13494echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
46711df8 13495
46711df8 13496if test $ac_cv_func_alloca_works = yes; then
46711df8 13497
bec39cab
AC
13498cat >>confdefs.h <<\_ACEOF
13499#define HAVE_ALLOCA 1
13500_ACEOF
46711df8 13501
bec39cab 13502else
46711df8 13503 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
bec39cab
AC
13504# that cause trouble. Some versions do not even contain alloca or
13505# contain a buggy version. If you still want to use their alloca,
13506# use ar to extract alloca.o from them instead of compiling alloca.c.
13507
13508ALLOCA=alloca.$ac_objext
13509
13510cat >>confdefs.h <<\_ACEOF
46711df8 13511#define C_ALLOCA 1
bec39cab 13512_ACEOF
46711df8
MK
13513
13514
bec39cab
AC
13515echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13516echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13517if test "${ac_cv_os_cray+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13519else
bec39cab
AC
13520 cat >conftest.$ac_ext <<_ACEOF
13521/* confdefs.h. */
13522_ACEOF
13523cat confdefs.h >>conftest.$ac_ext
13524cat >>conftest.$ac_ext <<_ACEOF
13525/* end confdefs.h. */
46711df8
MK
13526#if defined(CRAY) && ! defined(CRAY2)
13527webecray
13528#else
13529wenotbecray
13530#endif
13531
bec39cab 13532_ACEOF
46711df8 13533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 13534 $EGREP "webecray" >/dev/null 2>&1; then
46711df8
MK
13535 ac_cv_os_cray=yes
13536else
46711df8
MK
13537 ac_cv_os_cray=no
13538fi
13539rm -f conftest*
13540
13541fi
bec39cab
AC
13542echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13543echo "${ECHO_T}$ac_cv_os_cray" >&6
46711df8 13544if test $ac_cv_os_cray = yes; then
bec39cab
AC
13545 for ac_func in _getb67 GETB67 getb67; do
13546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13547echo "$as_me:$LINENO: checking for $ac_func" >&5
13548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13549if eval "test \"\${$as_ac_var+set}\" = set"; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551else
13552 cat >conftest.$ac_ext <<_ACEOF
13553/* confdefs.h. */
13554_ACEOF
13555cat confdefs.h >>conftest.$ac_ext
13556cat >>conftest.$ac_ext <<_ACEOF
13557/* end confdefs.h. */
13558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13560#define $ac_func innocuous_$ac_func
13561
46711df8 13562/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
13563 which can conflict with char $ac_func (); below.
13564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13565 <limits.h> exists even on freestanding compilers. */
13566
13567#ifdef __STDC__
13568# include <limits.h>
13569#else
13570# include <assert.h>
13571#endif
46711df8 13572
bec39cab 13573#undef $ac_func
46711df8 13574
bec39cab
AC
13575/* Override any gcc2 internal prototype to avoid an error. */
13576#ifdef __cplusplus
13577extern "C"
13578{
13579#endif
13580/* We use char because int might match the return type of a gcc2
13581 builtin and then its argument prototype would still apply. */
13582char $ac_func ();
46711df8
MK
13583/* The GNU C library defines this for functions which it implements
13584 to always fail with ENOSYS. Some functions are actually named
13585 something starting with __ and the normal name is an alias. */
13586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13587choke me
13588#else
bec39cab
AC
13589char (*f) () = $ac_func;
13590#endif
13591#ifdef __cplusplus
13592}
46711df8
MK
13593#endif
13594
bec39cab
AC
13595int
13596main ()
13597{
13598return f != $ac_func;
13599 ;
13600 return 0;
13601}
13602_ACEOF
13603rm -f conftest.$ac_objext conftest$ac_exeext
13604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13605 (eval $ac_link) 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest$ac_exeext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 eval "$as_ac_var=yes"
13626else
13627 echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5
13629
13630eval "$as_ac_var=no"
13631fi
13632rm -f conftest.err conftest.$ac_objext \
13633 conftest$ac_exeext conftest.$ac_ext
13634fi
13635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13636echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13637if test `eval echo '${'$as_ac_var'}'` = yes; then
13638
13639cat >>confdefs.h <<_ACEOF
46711df8 13640#define CRAY_STACKSEG_END $ac_func
bec39cab 13641_ACEOF
46711df8 13642
bec39cab 13643 break
46711df8
MK
13644fi
13645
bec39cab 13646 done
46711df8
MK
13647fi
13648
bec39cab
AC
13649echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13650echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13651if test "${ac_cv_c_stack_direction+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8
MK
13653else
13654 if test "$cross_compiling" = yes; then
13655 ac_cv_c_stack_direction=0
13656else
bec39cab
AC
13657 cat >conftest.$ac_ext <<_ACEOF
13658/* confdefs.h. */
13659_ACEOF
13660cat confdefs.h >>conftest.$ac_ext
13661cat >>conftest.$ac_ext <<_ACEOF
13662/* end confdefs.h. */
13663int
46711df8
MK
13664find_stack_direction ()
13665{
13666 static char *addr = 0;
13667 auto char dummy;
13668 if (addr == 0)
13669 {
13670 addr = &dummy;
13671 return find_stack_direction ();
13672 }
13673 else
13674 return (&dummy > addr) ? 1 : -1;
13675}
bec39cab
AC
13676
13677int
46711df8
MK
13678main ()
13679{
bec39cab 13680 exit (find_stack_direction () < 0);
46711df8 13681}
bec39cab
AC
13682_ACEOF
13683rm -f conftest$ac_exeext
13684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13685 (eval $ac_link) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
46711df8
MK
13694 ac_cv_c_stack_direction=1
13695else
bec39cab
AC
13696 echo "$as_me: program exited with status $ac_status" >&5
13697echo "$as_me: failed program was:" >&5
13698sed 's/^/| /' conftest.$ac_ext >&5
13699
13700( exit $ac_status )
13701ac_cv_c_stack_direction=-1
46711df8 13702fi
bec39cab 13703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46711df8 13704fi
46711df8 13705fi
bec39cab
AC
13706echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13707echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
46711df8 13708
bec39cab 13709cat >>confdefs.h <<_ACEOF
46711df8 13710#define STACK_DIRECTION $ac_cv_c_stack_direction
bec39cab
AC
13711_ACEOF
13712
46711df8
MK
13713
13714fi
13715
bec39cab
AC
13716
13717
13718for ac_header in stdlib.h unistd.h
97bf5e38 13719do
bec39cab
AC
13720as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13721if eval "test \"\${$as_ac_Header+set}\" = set"; then
13722 echo "$as_me:$LINENO: checking for $ac_header" >&5
13723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13724if eval "test \"\${$as_ac_Header+set}\" = set"; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13726fi
13727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13729else
13730 # Is the header compilable?
13731echo "$as_me:$LINENO: checking $ac_header usability" >&5
13732echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13733cat >conftest.$ac_ext <<_ACEOF
13734/* confdefs.h. */
13735_ACEOF
13736cat confdefs.h >>conftest.$ac_ext
13737cat >>conftest.$ac_ext <<_ACEOF
13738/* end confdefs.h. */
13739$ac_includes_default
13740#include <$ac_header>
13741_ACEOF
13742rm -f conftest.$ac_objext
13743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13744 (eval $ac_compile) 2>conftest.er1
13745 ac_status=$?
13746 grep -v '^ *+' conftest.er1 >conftest.err
13747 rm -f conftest.er1
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_c_werror_flag"
13752 || test ! -s conftest.err'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; } &&
13758 { ac_try='test -s conftest.$ac_objext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 ac_header_compiler=yes
13765else
13766 echo "$as_me: failed program was:" >&5
13767sed 's/^/| /' conftest.$ac_ext >&5
13768
13769ac_header_compiler=no
13770fi
13771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13772echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13773echo "${ECHO_T}$ac_header_compiler" >&6
13774
13775# Is the header present?
13776echo "$as_me:$LINENO: checking $ac_header presence" >&5
13777echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13778cat >conftest.$ac_ext <<_ACEOF
13779/* confdefs.h. */
13780_ACEOF
13781cat confdefs.h >>conftest.$ac_ext
13782cat >>conftest.$ac_ext <<_ACEOF
13783/* end confdefs.h. */
13784#include <$ac_header>
13785_ACEOF
13786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13788 ac_status=$?
13789 grep -v '^ *+' conftest.er1 >conftest.err
13790 rm -f conftest.er1
13791 cat conftest.err >&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } >/dev/null; then
13794 if test -s conftest.err; then
13795 ac_cpp_err=$ac_c_preproc_warn_flag
13796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13797 else
13798 ac_cpp_err=
13799 fi
13800else
13801 ac_cpp_err=yes
74c1b268 13802fi
bec39cab
AC
13803if test -z "$ac_cpp_err"; then
13804 ac_header_preproc=yes
13805else
13806 echo "$as_me: failed program was:" >&5
13807sed 's/^/| /' conftest.$ac_ext >&5
13808
13809 ac_header_preproc=no
74c1b268 13810fi
bec39cab
AC
13811rm -f conftest.err conftest.$ac_ext
13812echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13813echo "${ECHO_T}$ac_header_preproc" >&6
13814
13815# So? What about this header?
13816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13817 yes:no: )
13818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13819echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13821echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13822 ac_header_preproc=yes
13823 ;;
13824 no:yes:* )
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13826echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13828echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13830echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13832echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13836echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13837 (
13838 cat <<\_ASBOX
13839## ------------------------------------------ ##
13840## Report this to the AC_PACKAGE_NAME lists. ##
13841## ------------------------------------------ ##
13842_ASBOX
13843 ) |
13844 sed "s/^/$as_me: WARNING: /" >&2
13845 ;;
13846esac
13847echo "$as_me:$LINENO: checking for $ac_header" >&5
13848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13849if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 13851else
bec39cab
AC
13852 eval "$as_ac_Header=\$ac_header_preproc"
13853fi
13854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13856
74c1b268 13857fi
bec39cab
AC
13858if test `eval echo '${'$as_ac_Header'}'` = yes; then
13859 cat >>confdefs.h <<_ACEOF
13860#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13861_ACEOF
13862
13863fi
13864
97bf5e38 13865done
74c1b268 13866
bec39cab 13867
97bf5e38
MK
13868for ac_func in getpagesize
13869do
bec39cab
AC
13870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13871echo "$as_me:$LINENO: checking for $ac_func" >&5
13872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13873if eval "test \"\${$as_ac_var+set}\" = set"; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875else
13876 cat >conftest.$ac_ext <<_ACEOF
13877/* confdefs.h. */
13878_ACEOF
13879cat confdefs.h >>conftest.$ac_ext
13880cat >>conftest.$ac_ext <<_ACEOF
13881/* end confdefs.h. */
13882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13884#define $ac_func innocuous_$ac_func
13885
74c1b268 13886/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
13887 which can conflict with char $ac_func (); below.
13888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13889 <limits.h> exists even on freestanding compilers. */
13890
13891#ifdef __STDC__
13892# include <limits.h>
13893#else
13894# include <assert.h>
13895#endif
74c1b268 13896
bec39cab 13897#undef $ac_func
74c1b268 13898
bec39cab
AC
13899/* Override any gcc2 internal prototype to avoid an error. */
13900#ifdef __cplusplus
13901extern "C"
13902{
13903#endif
13904/* We use char because int might match the return type of a gcc2
13905 builtin and then its argument prototype would still apply. */
13906char $ac_func ();
74c1b268
AC
13907/* The GNU C library defines this for functions which it implements
13908 to always fail with ENOSYS. Some functions are actually named
13909 something starting with __ and the normal name is an alias. */
97bf5e38 13910#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
74c1b268
AC
13911choke me
13912#else
bec39cab
AC
13913char (*f) () = $ac_func;
13914#endif
13915#ifdef __cplusplus
13916}
74c1b268
AC
13917#endif
13918
bec39cab
AC
13919int
13920main ()
13921{
13922return f != $ac_func;
13923 ;
13924 return 0;
13925}
13926_ACEOF
13927rm -f conftest.$ac_objext conftest$ac_exeext
13928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929 (eval $ac_link) 2>conftest.er1
13930 ac_status=$?
13931 grep -v '^ *+' conftest.er1 >conftest.err
13932 rm -f conftest.er1
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -z "$ac_c_werror_flag"
13937 || test ! -s conftest.err'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; } &&
13943 { ac_try='test -s conftest$ac_exeext'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13949 eval "$as_ac_var=yes"
13950else
13951 echo "$as_me: failed program was:" >&5
13952sed 's/^/| /' conftest.$ac_ext >&5
13953
13954eval "$as_ac_var=no"
13955fi
13956rm -f conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13958fi
13959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13960echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13961if test `eval echo '${'$as_ac_var'}'` = yes; then
13962 cat >>confdefs.h <<_ACEOF
13963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13964_ACEOF
74c1b268 13965
74c1b268 13966fi
97bf5e38 13967done
74c1b268 13968
bec39cab
AC
13969echo "$as_me:$LINENO: checking for working mmap" >&5
13970echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13971if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
13973else
13974 if test "$cross_compiling" = yes; then
13975 ac_cv_func_mmap_fixed_mapped=no
74c1b268 13976else
bec39cab
AC
13977 cat >conftest.$ac_ext <<_ACEOF
13978/* confdefs.h. */
13979_ACEOF
13980cat confdefs.h >>conftest.$ac_ext
13981cat >>conftest.$ac_ext <<_ACEOF
13982/* end confdefs.h. */
13983$ac_includes_default
13984/* malloc might have been renamed as rpl_malloc. */
13985#undef malloc
97bf5e38
MK
13986
13987/* Thanks to Mike Haertel and Jim Avera for this test.
13988 Here is a matrix of mmap possibilities:
13989 mmap private not fixed
13990 mmap private fixed at somewhere currently unmapped
13991 mmap private fixed at somewhere already mapped
13992 mmap shared not fixed
13993 mmap shared fixed at somewhere currently unmapped
13994 mmap shared fixed at somewhere already mapped
13995 For private mappings, we should verify that changes cannot be read()
13996 back from the file, nor mmap's back from the file at a different
13997 address. (There have been systems where private was not correctly
13998 implemented like the infamous i386 svr4.0, and systems where the
bec39cab 13999 VM page cache was not coherent with the file system buffer cache
97bf5e38
MK
14000 like early versions of FreeBSD and possibly contemporary NetBSD.)
14001 For shared mappings, we should conversely verify that changes get
bec39cab 14002 propagated back to all the places they're supposed to be.
97bf5e38
MK
14003
14004 Grep wants private fixed already mapped.
14005 The main things grep needs to know about mmap are:
14006 * does it exist and is it safe to write into the mmap'd area
14007 * how to use it (BSD variants) */
bec39cab 14008
97bf5e38
MK
14009#include <fcntl.h>
14010#include <sys/mman.h>
14011
bec39cab
AC
14012#if !STDC_HEADERS && !HAVE_STDLIB_H
14013char *malloc ();
14014#endif
97bf5e38 14015
bec39cab
AC
14016/* This mess was copied from the GNU getpagesize.h. */
14017#if !HAVE_GETPAGESIZE
97bf5e38 14018/* Assume that all systems that can run configure have sys/param.h. */
bec39cab 14019# if !HAVE_SYS_PARAM_H
97bf5e38
MK
14020# define HAVE_SYS_PARAM_H 1
14021# endif
14022
14023# ifdef _SC_PAGESIZE
14024# define getpagesize() sysconf(_SC_PAGESIZE)
14025# else /* no _SC_PAGESIZE */
bec39cab 14026# if HAVE_SYS_PARAM_H
97bf5e38
MK
14027# include <sys/param.h>
14028# ifdef EXEC_PAGESIZE
14029# define getpagesize() EXEC_PAGESIZE
14030# else /* no EXEC_PAGESIZE */
14031# ifdef NBPG
14032# define getpagesize() NBPG * CLSIZE
14033# ifndef CLSIZE
14034# define CLSIZE 1
14035# endif /* no CLSIZE */
14036# else /* no NBPG */
14037# ifdef NBPC
14038# define getpagesize() NBPC
14039# else /* no NBPC */
14040# ifdef PAGESIZE
14041# define getpagesize() PAGESIZE
14042# endif /* PAGESIZE */
14043# endif /* no NBPC */
14044# endif /* no NBPG */
14045# endif /* no EXEC_PAGESIZE */
14046# else /* no HAVE_SYS_PARAM_H */
14047# define getpagesize() 8192 /* punt totally */
14048# endif /* no HAVE_SYS_PARAM_H */
14049# endif /* no _SC_PAGESIZE */
14050
14051#endif /* no HAVE_GETPAGESIZE */
14052
bec39cab
AC
14053int
14054main ()
14055{
14056 char *data, *data2, *data3;
14057 int i, pagesize;
14058 int fd;
14059
14060 pagesize = getpagesize ();
14061
14062 /* First, make a file with some known garbage in it. */
14063 data = (char *) malloc (pagesize);
14064 if (!data)
14065 exit (1);
14066 for (i = 0; i < pagesize; ++i)
14067 *(data + i) = rand ();
14068 umask (0);
14069 fd = creat ("conftest.mmap", 0600);
14070 if (fd < 0)
14071 exit (1);
14072 if (write (fd, data, pagesize) != pagesize)
14073 exit (1);
14074 close (fd);
14075
14076 /* Next, try to mmap the file at a fixed address which already has
14077 something else allocated at it. If we can, also make sure that
14078 we see the same garbage. */
14079 fd = open ("conftest.mmap", O_RDWR);
14080 if (fd < 0)
14081 exit (1);
14082 data2 = (char *) malloc (2 * pagesize);
14083 if (!data2)
14084 exit (1);
14085 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14086 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14087 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14088 exit (1);
14089 for (i = 0; i < pagesize; ++i)
14090 if (*(data + i) != *(data2 + i))
14091 exit (1);
14092
14093 /* Finally, make sure that changes to the mapped area do not
14094 percolate back to the file as seen by read(). (This is a bug on
14095 some variants of i386 svr4.0.) */
14096 for (i = 0; i < pagesize; ++i)
14097 *(data2 + i) = *(data2 + i) + 1;
14098 data3 = (char *) malloc (pagesize);
14099 if (!data3)
14100 exit (1);
14101 if (read (fd, data3, pagesize) != pagesize)
14102 exit (1);
14103 for (i = 0; i < pagesize; ++i)
14104 if (*(data + i) != *(data3 + i))
14105 exit (1);
14106 close (fd);
14107 exit (0);
14108}
14109_ACEOF
14110rm -f conftest$ac_exeext
14111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14112 (eval $ac_link) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
97bf5e38 14121 ac_cv_func_mmap_fixed_mapped=yes
74c1b268 14122else
bec39cab
AC
14123 echo "$as_me: program exited with status $ac_status" >&5
14124echo "$as_me: failed program was:" >&5
14125sed 's/^/| /' conftest.$ac_ext >&5
14126
14127( exit $ac_status )
14128ac_cv_func_mmap_fixed_mapped=no
74c1b268 14129fi
bec39cab 14130rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
74c1b268 14131fi
74c1b268 14132fi
bec39cab
AC
14133echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14134echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
97bf5e38 14135if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
14136
14137cat >>confdefs.h <<\_ACEOF
97bf5e38 14138#define HAVE_MMAP 1
bec39cab 14139_ACEOF
74c1b268
AC
14140
14141fi
bec39cab 14142rm -f conftest.mmap
74c1b268 14143
bec39cab
AC
14144echo "$as_me:$LINENO: checking for pid_t" >&5
14145echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14146if test "${ac_cv_type_pid_t+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
0200359f 14148else
bec39cab
AC
14149 cat >conftest.$ac_ext <<_ACEOF
14150/* confdefs.h. */
14151_ACEOF
14152cat confdefs.h >>conftest.$ac_ext
14153cat >>conftest.$ac_ext <<_ACEOF
14154/* end confdefs.h. */
14155$ac_includes_default
14156int
14157main ()
14158{
14159if ((pid_t *) 0)
14160 return 0;
14161if (sizeof (pid_t))
14162 return 0;
14163 ;
14164 return 0;
14165}
14166_ACEOF
14167rm -f conftest.$ac_objext
14168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14169 (eval $ac_compile) 2>conftest.er1
14170 ac_status=$?
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -z "$ac_c_werror_flag"
14177 || test ! -s conftest.err'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; } &&
14183 { ac_try='test -s conftest.$ac_objext'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; }; then
97bf5e38 14189 ac_cv_type_pid_t=yes
0200359f 14190else
bec39cab
AC
14191 echo "$as_me: failed program was:" >&5
14192sed 's/^/| /' conftest.$ac_ext >&5
0200359f 14193
bec39cab 14194ac_cv_type_pid_t=no
0200359f 14195fi
bec39cab 14196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72473524 14197fi
bec39cab
AC
14198echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14199echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14200if test $ac_cv_type_pid_t = yes; then
14201 :
14202else
14203
14204cat >>confdefs.h <<_ACEOF
14205#define pid_t int
14206_ACEOF
14207
72473524 14208fi
72473524 14209
bec39cab
AC
14210
14211
14212for ac_header in unistd.h vfork.h
14213do
14214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14215if eval "test \"\${$as_ac_Header+set}\" = set"; then
14216 echo "$as_me:$LINENO: checking for $ac_header" >&5
14217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14218if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14220fi
14221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14223else
14224 # Is the header compilable?
14225echo "$as_me:$LINENO: checking $ac_header usability" >&5
14226echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14227cat >conftest.$ac_ext <<_ACEOF
14228/* confdefs.h. */
14229_ACEOF
14230cat confdefs.h >>conftest.$ac_ext
14231cat >>conftest.$ac_ext <<_ACEOF
14232/* end confdefs.h. */
14233$ac_includes_default
14234#include <$ac_header>
14235_ACEOF
14236rm -f conftest.$ac_objext
14237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14238 (eval $ac_compile) 2>conftest.er1
14239 ac_status=$?
14240 grep -v '^ *+' conftest.er1 >conftest.err
14241 rm -f conftest.er1
14242 cat conftest.err >&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } &&
14245 { ac_try='test -z "$ac_c_werror_flag"
14246 || test ! -s conftest.err'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; } &&
14252 { ac_try='test -s conftest.$ac_objext'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 ac_header_compiler=yes
14259else
14260 echo "$as_me: failed program was:" >&5
14261sed 's/^/| /' conftest.$ac_ext >&5
14262
14263ac_header_compiler=no
14264fi
14265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14266echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14267echo "${ECHO_T}$ac_header_compiler" >&6
14268
14269# Is the header present?
14270echo "$as_me:$LINENO: checking $ac_header presence" >&5
14271echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14272cat >conftest.$ac_ext <<_ACEOF
14273/* confdefs.h. */
14274_ACEOF
14275cat confdefs.h >>conftest.$ac_ext
14276cat >>conftest.$ac_ext <<_ACEOF
14277/* end confdefs.h. */
14278#include <$ac_header>
14279_ACEOF
14280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } >/dev/null; then
14288 if test -s conftest.err; then
14289 ac_cpp_err=$ac_c_preproc_warn_flag
14290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14291 else
14292 ac_cpp_err=
14293 fi
14294else
14295 ac_cpp_err=yes
14296fi
14297if test -z "$ac_cpp_err"; then
14298 ac_header_preproc=yes
97bf5e38 14299else
bec39cab
AC
14300 echo "$as_me: failed program was:" >&5
14301sed 's/^/| /' conftest.$ac_ext >&5
14302
14303 ac_header_preproc=no
72473524 14304fi
bec39cab
AC
14305rm -f conftest.err conftest.$ac_ext
14306echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14307echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 14308
bec39cab
AC
14309# So? What about this header?
14310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14311 yes:no: )
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14313echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14315echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14316 ac_header_preproc=yes
14317 ;;
14318 no:yes:* )
14319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14320echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14322echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14324echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14326echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14328echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14330echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14331 (
14332 cat <<\_ASBOX
14333## ------------------------------------------ ##
14334## Report this to the AC_PACKAGE_NAME lists. ##
14335## ------------------------------------------ ##
14336_ASBOX
14337 ) |
14338 sed "s/^/$as_me: WARNING: /" >&2
14339 ;;
14340esac
14341echo "$as_me:$LINENO: checking for $ac_header" >&5
14342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14343if eval "test \"\${$as_ac_Header+set}\" = set"; then
14344 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14345else
bec39cab
AC
14346 eval "$as_ac_Header=\$ac_header_preproc"
14347fi
14348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14350
14351fi
14352if test `eval echo '${'$as_ac_Header'}'` = yes; then
14353 cat >>confdefs.h <<_ACEOF
14354#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14355_ACEOF
14356
14357fi
14358
14359done
14360
14361
14362
14363for ac_func in fork vfork
14364do
14365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14366echo "$as_me:$LINENO: checking for $ac_func" >&5
14367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14368if eval "test \"\${$as_ac_var+set}\" = set"; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14370else
14371 cat >conftest.$ac_ext <<_ACEOF
14372/* confdefs.h. */
14373_ACEOF
14374cat confdefs.h >>conftest.$ac_ext
14375cat >>conftest.$ac_ext <<_ACEOF
14376/* end confdefs.h. */
14377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14379#define $ac_func innocuous_$ac_func
14380
97bf5e38 14381/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14382 which can conflict with char $ac_func (); below.
14383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14384 <limits.h> exists even on freestanding compilers. */
2b2d558c 14385
bec39cab
AC
14386#ifdef __STDC__
14387# include <limits.h>
14388#else
14389# include <assert.h>
14390#endif
97bf5e38 14391
bec39cab
AC
14392#undef $ac_func
14393
14394/* Override any gcc2 internal prototype to avoid an error. */
14395#ifdef __cplusplus
14396extern "C"
14397{
14398#endif
14399/* We use char because int might match the return type of a gcc2
14400 builtin and then its argument prototype would still apply. */
14401char $ac_func ();
97bf5e38
MK
14402/* The GNU C library defines this for functions which it implements
14403 to always fail with ENOSYS. Some functions are actually named
14404 something starting with __ and the normal name is an alias. */
bec39cab 14405#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38
MK
14406choke me
14407#else
bec39cab
AC
14408char (*f) () = $ac_func;
14409#endif
14410#ifdef __cplusplus
14411}
97bf5e38
MK
14412#endif
14413
bec39cab
AC
14414int
14415main ()
14416{
14417return f != $ac_func;
14418 ;
14419 return 0;
14420}
14421_ACEOF
14422rm -f conftest.$ac_objext conftest$ac_exeext
14423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14424 (eval $ac_link) 2>conftest.er1
14425 ac_status=$?
14426 grep -v '^ *+' conftest.er1 >conftest.err
14427 rm -f conftest.er1
14428 cat conftest.err >&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } &&
14431 { ac_try='test -z "$ac_c_werror_flag"
14432 || test ! -s conftest.err'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; } &&
14438 { ac_try='test -s conftest$ac_exeext'
14439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14444 eval "$as_ac_var=yes"
14445else
14446 echo "$as_me: failed program was:" >&5
14447sed 's/^/| /' conftest.$ac_ext >&5
14448
14449eval "$as_ac_var=no"
14450fi
14451rm -f conftest.err conftest.$ac_objext \
14452 conftest$ac_exeext conftest.$ac_ext
14453fi
14454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14455echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14456if test `eval echo '${'$as_ac_var'}'` = yes; then
14457 cat >>confdefs.h <<_ACEOF
14458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14459_ACEOF
14460
2b2d558c 14461fi
bec39cab 14462done
2b2d558c 14463
bec39cab
AC
14464if test "x$ac_cv_func_fork" = xyes; then
14465 echo "$as_me:$LINENO: checking for working fork" >&5
14466echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14467if test "${ac_cv_func_fork_works+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14469else
bec39cab
AC
14470 if test "$cross_compiling" = yes; then
14471 ac_cv_func_fork_works=cross
14472else
14473 cat >conftest.$ac_ext <<_ACEOF
14474/* By Ruediger Kuhlmann. */
14475 #include <sys/types.h>
14476 #if HAVE_UNISTD_H
14477 # include <unistd.h>
14478 #endif
14479 /* Some systems only have a dummy stub for fork() */
14480 int main ()
14481 {
14482 if (fork() < 0)
14483 exit (1);
14484 exit (0);
14485 }
14486_ACEOF
14487rm -f conftest$ac_exeext
14488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14489 (eval $ac_link) 2>&5
14490 ac_status=$?
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_cv_func_fork_works=yes
14499else
14500 echo "$as_me: program exited with status $ac_status" >&5
14501echo "$as_me: failed program was:" >&5
14502sed 's/^/| /' conftest.$ac_ext >&5
14503
14504( exit $ac_status )
14505ac_cv_func_fork_works=no
14506fi
14507rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14508fi
14509fi
14510echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14511echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14512
14513else
14514 ac_cv_func_fork_works=$ac_cv_func_fork
14515fi
14516if test "x$ac_cv_func_fork_works" = xcross; then
14517 case $host in
14518 *-*-amigaos* | *-*-msdosdjgpp*)
14519 # Override, as these systems have only a dummy fork() stub
14520 ac_cv_func_fork_works=no
14521 ;;
14522 *)
14523 ac_cv_func_fork_works=yes
14524 ;;
14525 esac
14526 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14527echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
2b2d558c 14528fi
97bf5e38 14529ac_cv_func_vfork_works=$ac_cv_func_vfork
bec39cab
AC
14530if test "x$ac_cv_func_vfork" = xyes; then
14531 echo "$as_me:$LINENO: checking for working vfork" >&5
14532echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14533if test "${ac_cv_func_vfork_works+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
7dfa765c 14535else
bec39cab
AC
14536 if test "$cross_compiling" = yes; then
14537 ac_cv_func_vfork_works=cross
14538else
14539 cat >conftest.$ac_ext <<_ACEOF
14540/* confdefs.h. */
14541_ACEOF
14542cat confdefs.h >>conftest.$ac_ext
14543cat >>conftest.$ac_ext <<_ACEOF
14544/* end confdefs.h. */
97bf5e38
MK
14545/* Thanks to Paul Eggert for this test. */
14546#include <stdio.h>
bec39cab 14547#include <stdlib.h>
97bf5e38
MK
14548#include <sys/types.h>
14549#include <sys/stat.h>
bec39cab
AC
14550#include <sys/wait.h>
14551#if HAVE_UNISTD_H
14552# include <unistd.h>
97bf5e38 14553#endif
bec39cab
AC
14554#if HAVE_VFORK_H
14555# include <vfork.h>
97bf5e38
MK
14556#endif
14557/* On some sparc systems, changes by the child to local and incoming
bec39cab
AC
14558 argument registers are propagated back to the parent. The compiler
14559 is told about this with #include <vfork.h>, but some compilers
14560 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14561 static variable whose address is put into a register that is
14562 clobbered by the vfork. */
14563static void
97bf5e38
MK
14564#ifdef __cplusplus
14565sparc_address_test (int arg)
bec39cab 14566# else
97bf5e38
MK
14567sparc_address_test (arg) int arg;
14568#endif
14569{
14570 static pid_t child;
14571 if (!child) {
14572 child = vfork ();
14573 if (child < 0) {
14574 perror ("vfork");
14575 _exit(2);
14576 }
14577 if (!child) {
14578 arg = getpid();
14579 write(-1, "", 0);
14580 _exit (arg);
14581 }
14582 }
14583}
bec39cab
AC
14584
14585int
14586main ()
14587{
97bf5e38
MK
14588 pid_t parent = getpid ();
14589 pid_t child;
7dfa765c 14590
bec39cab 14591 sparc_address_test (0);
7dfa765c 14592
97bf5e38 14593 child = vfork ();
7dfa765c 14594
97bf5e38 14595 if (child == 0) {
bec39cab
AC
14596 /* Here is another test for sparc vfork register problems. This
14597 test uses lots of local variables, at least as many local
14598 variables as main has allocated so far including compiler
14599 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14600 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14601 reuse the register of parent for one of the local variables,
14602 since it will think that parent can't possibly be used any more
14603 in this routine. Assigning to the local variable will thus
14604 munge parent in the parent process. */
97bf5e38
MK
14605 pid_t
14606 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14607 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14608 /* Convince the compiler that p..p7 are live; otherwise, it might
14609 use the same hardware register for all 8 local variables. */
14610 if (p != p1 || p != p2 || p != p3 || p != p4
14611 || p != p5 || p != p6 || p != p7)
14612 _exit(1);
7dfa765c 14613
bec39cab
AC
14614 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14615 from child file descriptors. If the child closes a descriptor
14616 before it execs or exits, this munges the parent's descriptor
14617 as well. Test for this by closing stdout in the child. */
97bf5e38
MK
14618 _exit(close(fileno(stdout)) != 0);
14619 } else {
14620 int status;
14621 struct stat st;
64bb1671 14622
97bf5e38
MK
14623 while (wait(&status) != child)
14624 ;
14625 exit(
14626 /* Was there some problem with vforking? */
14627 child < 0
64bb1671 14628
97bf5e38
MK
14629 /* Did the child fail? (This shouldn't happen.) */
14630 || status
64bb1671 14631
97bf5e38
MK
14632 /* Did the vfork/compiler bug occur? */
14633 || parent != getpid()
14634
14635 /* Did the file descriptor bug occur? */
14636 || fstat(fileno(stdout), &st) != 0
14637 );
14638 }
14639}
bec39cab
AC
14640_ACEOF
14641rm -f conftest$ac_exeext
14642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14643 (eval $ac_link) 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
97bf5e38 14652 ac_cv_func_vfork_works=yes
5c44784c 14653else
bec39cab
AC
14654 echo "$as_me: program exited with status $ac_status" >&5
14655echo "$as_me: failed program was:" >&5
14656sed 's/^/| /' conftest.$ac_ext >&5
14657
14658( exit $ac_status )
14659ac_cv_func_vfork_works=no
5c44784c 14660fi
bec39cab 14661rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5c44784c 14662fi
bec39cab
AC
14663fi
14664echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
14665echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5c44784c 14666
bec39cab
AC
14667fi;
14668if test "x$ac_cv_func_fork_works" = xcross; then
14669 ac_cv_func_vfork_works=$ac_cv_func_vfork
14670 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14671echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
0afdd437
MK
14672fi
14673
bec39cab
AC
14674if test "x$ac_cv_func_vfork_works" = xyes; then
14675
14676cat >>confdefs.h <<\_ACEOF
14677#define HAVE_WORKING_VFORK 1
14678_ACEOF
14679
14680else
14681
14682cat >>confdefs.h <<\_ACEOF
97bf5e38 14683#define vfork fork
bec39cab
AC
14684_ACEOF
14685
14686fi
14687if test "x$ac_cv_func_fork_works" = xyes; then
14688
14689cat >>confdefs.h <<\_ACEOF
14690#define HAVE_WORKING_FORK 1
14691_ACEOF
0afdd437
MK
14692
14693fi
14694
bec39cab
AC
14695
14696
97bf5e38
MK
14697for ac_func in canonicalize_file_name realpath
14698do
bec39cab
AC
14699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14700echo "$as_me:$LINENO: checking for $ac_func" >&5
14701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14702if eval "test \"\${$as_ac_var+set}\" = set"; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704else
14705 cat >conftest.$ac_ext <<_ACEOF
14706/* confdefs.h. */
14707_ACEOF
14708cat confdefs.h >>conftest.$ac_ext
14709cat >>conftest.$ac_ext <<_ACEOF
14710/* end confdefs.h. */
14711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14713#define $ac_func innocuous_$ac_func
14714
97bf5e38 14715/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14716 which can conflict with char $ac_func (); below.
14717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14718 <limits.h> exists even on freestanding compilers. */
14719
14720#ifdef __STDC__
14721# include <limits.h>
14722#else
14723# include <assert.h>
14724#endif
97bf5e38 14725
bec39cab 14726#undef $ac_func
97bf5e38 14727
bec39cab
AC
14728/* Override any gcc2 internal prototype to avoid an error. */
14729#ifdef __cplusplus
14730extern "C"
14731{
14732#endif
14733/* We use char because int might match the return type of a gcc2
14734 builtin and then its argument prototype would still apply. */
14735char $ac_func ();
97bf5e38
MK
14736/* The GNU C library defines this for functions which it implements
14737 to always fail with ENOSYS. Some functions are actually named
14738 something starting with __ and the normal name is an alias. */
14739#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14740choke me
14741#else
bec39cab
AC
14742char (*f) () = $ac_func;
14743#endif
14744#ifdef __cplusplus
14745}
97bf5e38
MK
14746#endif
14747
bec39cab
AC
14748int
14749main ()
14750{
14751return f != $ac_func;
14752 ;
14753 return 0;
14754}
14755_ACEOF
14756rm -f conftest.$ac_objext conftest$ac_exeext
14757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14758 (eval $ac_link) 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -z "$ac_c_werror_flag"
14766 || test ! -s conftest.err'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest$ac_exeext'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 eval "$as_ac_var=yes"
14779else
14780 echo "$as_me: failed program was:" >&5
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
14783eval "$as_ac_var=no"
14784fi
14785rm -f conftest.err conftest.$ac_objext \
14786 conftest$ac_exeext conftest.$ac_ext
14787fi
14788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14789echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14790if test `eval echo '${'$as_ac_var'}'` = yes; then
14791 cat >>confdefs.h <<_ACEOF
14792#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14793_ACEOF
7e89e357 14794
7e89e357 14795fi
97bf5e38 14796done
7e89e357 14797
bec39cab 14798
97bf5e38 14799for ac_func in poll
7be570e7 14800do
bec39cab
AC
14801as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14802echo "$as_me:$LINENO: checking for $ac_func" >&5
14803echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14804if eval "test \"\${$as_ac_var+set}\" = set"; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14806else
14807 cat >conftest.$ac_ext <<_ACEOF
14808/* confdefs.h. */
14809_ACEOF
14810cat confdefs.h >>conftest.$ac_ext
14811cat >>conftest.$ac_ext <<_ACEOF
14812/* end confdefs.h. */
14813/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14815#define $ac_func innocuous_$ac_func
14816
7be570e7 14817/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14818 which can conflict with char $ac_func (); below.
14819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14820 <limits.h> exists even on freestanding compilers. */
14821
14822#ifdef __STDC__
14823# include <limits.h>
14824#else
14825# include <assert.h>
14826#endif
7be570e7 14827
bec39cab 14828#undef $ac_func
7be570e7 14829
bec39cab
AC
14830/* Override any gcc2 internal prototype to avoid an error. */
14831#ifdef __cplusplus
14832extern "C"
14833{
14834#endif
14835/* We use char because int might match the return type of a gcc2
14836 builtin and then its argument prototype would still apply. */
14837char $ac_func ();
7be570e7
JM
14838/* The GNU C library defines this for functions which it implements
14839 to always fail with ENOSYS. Some functions are actually named
14840 something starting with __ and the normal name is an alias. */
14841#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14842choke me
14843#else
bec39cab
AC
14844char (*f) () = $ac_func;
14845#endif
14846#ifdef __cplusplus
14847}
7be570e7
JM
14848#endif
14849
bec39cab
AC
14850int
14851main ()
14852{
14853return f != $ac_func;
14854 ;
14855 return 0;
14856}
14857_ACEOF
14858rm -f conftest.$ac_objext conftest$ac_exeext
14859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14860 (eval $ac_link) 2>conftest.er1
14861 ac_status=$?
14862 grep -v '^ *+' conftest.er1 >conftest.err
14863 rm -f conftest.er1
14864 cat conftest.err >&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
14867 { ac_try='test -z "$ac_c_werror_flag"
14868 || test ! -s conftest.err'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; } &&
14874 { ac_try='test -s conftest$ac_exeext'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 eval "$as_ac_var=yes"
14881else
14882 echo "$as_me: failed program was:" >&5
14883sed 's/^/| /' conftest.$ac_ext >&5
14884
14885eval "$as_ac_var=no"
14886fi
14887rm -f conftest.err conftest.$ac_objext \
14888 conftest$ac_exeext conftest.$ac_ext
14889fi
14890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14891echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14892if test `eval echo '${'$as_ac_var'}'` = yes; then
14893 cat >>confdefs.h <<_ACEOF
14894#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14895_ACEOF
14abd0fb 14896
14abd0fb
MK
14897fi
14898done
14899
bec39cab 14900
14abd0fb
MK
14901for ac_func in pread64
14902do
bec39cab
AC
14903as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14904echo "$as_me:$LINENO: checking for $ac_func" >&5
14905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14906if eval "test \"\${$as_ac_var+set}\" = set"; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14908else
14909 cat >conftest.$ac_ext <<_ACEOF
14910/* confdefs.h. */
14911_ACEOF
14912cat confdefs.h >>conftest.$ac_ext
14913cat >>conftest.$ac_ext <<_ACEOF
14914/* end confdefs.h. */
14915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14917#define $ac_func innocuous_$ac_func
14918
14abd0fb 14919/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14920 which can conflict with char $ac_func (); below.
14921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14922 <limits.h> exists even on freestanding compilers. */
14923
14924#ifdef __STDC__
14925# include <limits.h>
14926#else
14927# include <assert.h>
14928#endif
14abd0fb 14929
bec39cab 14930#undef $ac_func
14abd0fb 14931
bec39cab
AC
14932/* Override any gcc2 internal prototype to avoid an error. */
14933#ifdef __cplusplus
14934extern "C"
14935{
14936#endif
14937/* We use char because int might match the return type of a gcc2
14938 builtin and then its argument prototype would still apply. */
14939char $ac_func ();
14abd0fb
MK
14940/* The GNU C library defines this for functions which it implements
14941 to always fail with ENOSYS. Some functions are actually named
14942 something starting with __ and the normal name is an alias. */
14943#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14944choke me
14945#else
bec39cab
AC
14946char (*f) () = $ac_func;
14947#endif
14948#ifdef __cplusplus
14949}
14abd0fb
MK
14950#endif
14951
bec39cab
AC
14952int
14953main ()
14954{
14955return f != $ac_func;
14956 ;
14957 return 0;
14958}
14959_ACEOF
14960rm -f conftest.$ac_objext conftest$ac_exeext
14961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14962 (eval $ac_link) 2>conftest.er1
14963 ac_status=$?
14964 grep -v '^ *+' conftest.er1 >conftest.err
14965 rm -f conftest.er1
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
14969 { ac_try='test -z "$ac_c_werror_flag"
14970 || test ! -s conftest.err'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; } &&
14976 { ac_try='test -s conftest$ac_exeext'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982 eval "$as_ac_var=yes"
14983else
14984 echo "$as_me: failed program was:" >&5
14985sed 's/^/| /' conftest.$ac_ext >&5
14986
14987eval "$as_ac_var=no"
14988fi
14989rm -f conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14991fi
14992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14993echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14994if test `eval echo '${'$as_ac_var'}'` = yes; then
14995 cat >>confdefs.h <<_ACEOF
14996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14997_ACEOF
7be570e7 14998
7be570e7
JM
14999fi
15000done
15001
bec39cab 15002
97bf5e38
MK
15003for ac_func in sbrk
15004do
bec39cab
AC
15005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15006echo "$as_me:$LINENO: checking for $ac_func" >&5
15007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15008if eval "test \"\${$as_ac_var+set}\" = set"; then
15009 echo $ECHO_N "(cached) $ECHO_C" >&6
15010else
15011 cat >conftest.$ac_ext <<_ACEOF
15012/* confdefs.h. */
15013_ACEOF
15014cat confdefs.h >>conftest.$ac_ext
15015cat >>conftest.$ac_ext <<_ACEOF
15016/* end confdefs.h. */
15017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15019#define $ac_func innocuous_$ac_func
15020
97bf5e38 15021/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15022 which can conflict with char $ac_func (); below.
15023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15024 <limits.h> exists even on freestanding compilers. */
15025
15026#ifdef __STDC__
15027# include <limits.h>
15028#else
15029# include <assert.h>
15030#endif
c906108c 15031
bec39cab 15032#undef $ac_func
97bf5e38 15033
bec39cab
AC
15034/* Override any gcc2 internal prototype to avoid an error. */
15035#ifdef __cplusplus
15036extern "C"
15037{
15038#endif
15039/* We use char because int might match the return type of a gcc2
15040 builtin and then its argument prototype would still apply. */
15041char $ac_func ();
97bf5e38
MK
15042/* The GNU C library defines this for functions which it implements
15043 to always fail with ENOSYS. Some functions are actually named
15044 something starting with __ and the normal name is an alias. */
15045#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15046choke me
c906108c 15047#else
bec39cab
AC
15048char (*f) () = $ac_func;
15049#endif
15050#ifdef __cplusplus
15051}
c906108c 15052#endif
97bf5e38 15053
bec39cab
AC
15054int
15055main ()
15056{
15057return f != $ac_func;
15058 ;
15059 return 0;
15060}
15061_ACEOF
15062rm -f conftest.$ac_objext conftest$ac_exeext
15063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15064 (eval $ac_link) 2>conftest.er1
15065 ac_status=$?
15066 grep -v '^ *+' conftest.er1 >conftest.err
15067 rm -f conftest.er1
15068 cat conftest.err >&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } &&
15071 { ac_try='test -z "$ac_c_werror_flag"
15072 || test ! -s conftest.err'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; } &&
15078 { ac_try='test -s conftest$ac_exeext'
15079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080 (eval $ac_try) 2>&5
15081 ac_status=$?
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; }; then
15084 eval "$as_ac_var=yes"
15085else
15086 echo "$as_me: failed program was:" >&5
15087sed 's/^/| /' conftest.$ac_ext >&5
15088
15089eval "$as_ac_var=no"
15090fi
15091rm -f conftest.err conftest.$ac_objext \
15092 conftest$ac_exeext conftest.$ac_ext
15093fi
15094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15095echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15096if test `eval echo '${'$as_ac_var'}'` = yes; then
15097 cat >>confdefs.h <<_ACEOF
15098#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15099_ACEOF
c906108c 15100
c906108c 15101fi
97bf5e38 15102done
c906108c 15103
bec39cab
AC
15104
15105
97bf5e38
MK
15106for ac_func in setpgid setpgrp
15107do
bec39cab
AC
15108as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15109echo "$as_me:$LINENO: checking for $ac_func" >&5
15110echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15111if eval "test \"\${$as_ac_var+set}\" = set"; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113else
15114 cat >conftest.$ac_ext <<_ACEOF
15115/* confdefs.h. */
15116_ACEOF
15117cat confdefs.h >>conftest.$ac_ext
15118cat >>conftest.$ac_ext <<_ACEOF
15119/* end confdefs.h. */
15120/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15122#define $ac_func innocuous_$ac_func
15123
97bf5e38 15124/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15125 which can conflict with char $ac_func (); below.
15126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15127 <limits.h> exists even on freestanding compilers. */
c906108c 15128
bec39cab
AC
15129#ifdef __STDC__
15130# include <limits.h>
15131#else
15132# include <assert.h>
15133#endif
97bf5e38 15134
bec39cab
AC
15135#undef $ac_func
15136
15137/* Override any gcc2 internal prototype to avoid an error. */
15138#ifdef __cplusplus
15139extern "C"
15140{
15141#endif
15142/* We use char because int might match the return type of a gcc2
15143 builtin and then its argument prototype would still apply. */
15144char $ac_func ();
97bf5e38
MK
15145/* The GNU C library defines this for functions which it implements
15146 to always fail with ENOSYS. Some functions are actually named
15147 something starting with __ and the normal name is an alias. */
15148#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15149choke me
c906108c 15150#else
bec39cab
AC
15151char (*f) () = $ac_func;
15152#endif
15153#ifdef __cplusplus
15154}
c906108c 15155#endif
97bf5e38 15156
bec39cab
AC
15157int
15158main ()
15159{
15160return f != $ac_func;
15161 ;
15162 return 0;
15163}
15164_ACEOF
15165rm -f conftest.$ac_objext conftest$ac_exeext
15166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15167 (eval $ac_link) 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try='test -z "$ac_c_werror_flag"
15175 || test ! -s conftest.err'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try='test -s conftest$ac_exeext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 eval "$as_ac_var=yes"
15188else
15189 echo "$as_me: failed program was:" >&5
15190sed 's/^/| /' conftest.$ac_ext >&5
15191
15192eval "$as_ac_var=no"
15193fi
15194rm -f conftest.err conftest.$ac_objext \
15195 conftest$ac_exeext conftest.$ac_ext
15196fi
15197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15198echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15199if test `eval echo '${'$as_ac_var'}'` = yes; then
15200 cat >>confdefs.h <<_ACEOF
15201#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15202_ACEOF
c906108c 15203
c906108c 15204fi
97bf5e38 15205done
c906108c 15206
bec39cab
AC
15207
15208
15209
e1ea1d75 15210for ac_func in sigaction sigprocmask sigsetmask
97bf5e38 15211do
bec39cab
AC
15212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15213echo "$as_me:$LINENO: checking for $ac_func" >&5
15214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15215if eval "test \"\${$as_ac_var+set}\" = set"; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15217else
15218 cat >conftest.$ac_ext <<_ACEOF
15219/* confdefs.h. */
15220_ACEOF
15221cat confdefs.h >>conftest.$ac_ext
15222cat >>conftest.$ac_ext <<_ACEOF
15223/* end confdefs.h. */
15224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15226#define $ac_func innocuous_$ac_func
15227
97bf5e38 15228/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15229 which can conflict with char $ac_func (); below.
15230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15231 <limits.h> exists even on freestanding compilers. */
15232
15233#ifdef __STDC__
15234# include <limits.h>
15235#else
15236# include <assert.h>
15237#endif
c906108c 15238
bec39cab 15239#undef $ac_func
97bf5e38 15240
bec39cab
AC
15241/* Override any gcc2 internal prototype to avoid an error. */
15242#ifdef __cplusplus
15243extern "C"
15244{
15245#endif
15246/* We use char because int might match the return type of a gcc2
15247 builtin and then its argument prototype would still apply. */
15248char $ac_func ();
97bf5e38
MK
15249/* The GNU C library defines this for functions which it implements
15250 to always fail with ENOSYS. Some functions are actually named
15251 something starting with __ and the normal name is an alias. */
15252#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15253choke me
c906108c 15254#else
bec39cab
AC
15255char (*f) () = $ac_func;
15256#endif
15257#ifdef __cplusplus
15258}
c906108c 15259#endif
97bf5e38 15260
bec39cab
AC
15261int
15262main ()
15263{
15264return f != $ac_func;
15265 ;
15266 return 0;
15267}
15268_ACEOF
15269rm -f conftest.$ac_objext conftest$ac_exeext
15270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15271 (eval $ac_link) 2>conftest.er1
15272 ac_status=$?
15273 grep -v '^ *+' conftest.er1 >conftest.err
15274 rm -f conftest.er1
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try='test -z "$ac_c_werror_flag"
15279 || test ! -s conftest.err'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15282 ac_status=$?
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; } &&
15285 { ac_try='test -s conftest$ac_exeext'
15286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287 (eval $ac_try) 2>&5
15288 ac_status=$?
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); }; }; then
15291 eval "$as_ac_var=yes"
15292else
15293 echo "$as_me: failed program was:" >&5
15294sed 's/^/| /' conftest.$ac_ext >&5
15295
15296eval "$as_ac_var=no"
15297fi
15298rm -f conftest.err conftest.$ac_objext \
15299 conftest$ac_exeext conftest.$ac_ext
15300fi
15301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15302echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15303if test `eval echo '${'$as_ac_var'}'` = yes; then
15304 cat >>confdefs.h <<_ACEOF
15305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15306_ACEOF
c906108c 15307
c906108c 15308fi
97bf5e38 15309done
c906108c 15310
bec39cab 15311
97bf5e38
MK
15312for ac_func in socketpair
15313do
bec39cab
AC
15314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15315echo "$as_me:$LINENO: checking for $ac_func" >&5
15316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15317if eval "test \"\${$as_ac_var+set}\" = set"; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15319else
15320 cat >conftest.$ac_ext <<_ACEOF
15321/* confdefs.h. */
15322_ACEOF
15323cat confdefs.h >>conftest.$ac_ext
15324cat >>conftest.$ac_ext <<_ACEOF
15325/* end confdefs.h. */
15326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15328#define $ac_func innocuous_$ac_func
15329
97bf5e38 15330/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15331 which can conflict with char $ac_func (); below.
15332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15333 <limits.h> exists even on freestanding compilers. */
15334
15335#ifdef __STDC__
15336# include <limits.h>
15337#else
15338# include <assert.h>
15339#endif
c906108c 15340
bec39cab 15341#undef $ac_func
97bf5e38 15342
bec39cab
AC
15343/* Override any gcc2 internal prototype to avoid an error. */
15344#ifdef __cplusplus
15345extern "C"
15346{
15347#endif
15348/* We use char because int might match the return type of a gcc2
15349 builtin and then its argument prototype would still apply. */
15350char $ac_func ();
97bf5e38
MK
15351/* The GNU C library defines this for functions which it implements
15352 to always fail with ENOSYS. Some functions are actually named
15353 something starting with __ and the normal name is an alias. */
15354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15355choke me
c906108c 15356#else
bec39cab
AC
15357char (*f) () = $ac_func;
15358#endif
15359#ifdef __cplusplus
15360}
c906108c 15361#endif
97bf5e38 15362
bec39cab
AC
15363int
15364main ()
15365{
15366return f != $ac_func;
15367 ;
15368 return 0;
15369}
15370_ACEOF
15371rm -f conftest.$ac_objext conftest$ac_exeext
15372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15373 (eval $ac_link) 2>conftest.er1
15374 ac_status=$?
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
15380 { ac_try='test -z "$ac_c_werror_flag"
15381 || test ! -s conftest.err'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; } &&
15387 { ac_try='test -s conftest$ac_exeext'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; }; then
15393 eval "$as_ac_var=yes"
15394else
15395 echo "$as_me: failed program was:" >&5
15396sed 's/^/| /' conftest.$ac_ext >&5
15397
15398eval "$as_ac_var=no"
15399fi
15400rm -f conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
15402fi
15403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15404echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15405if test `eval echo '${'$as_ac_var'}'` = yes; then
15406 cat >>confdefs.h <<_ACEOF
15407#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15408_ACEOF
c906108c 15409
c906108c 15410fi
97bf5e38 15411done
c906108c 15412
bec39cab 15413
b757528f
JJ
15414for ac_func in syscall
15415do
bec39cab
AC
15416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15417echo "$as_me:$LINENO: checking for $ac_func" >&5
15418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15419if eval "test \"\${$as_ac_var+set}\" = set"; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15421else
15422 cat >conftest.$ac_ext <<_ACEOF
15423/* confdefs.h. */
15424_ACEOF
15425cat confdefs.h >>conftest.$ac_ext
15426cat >>conftest.$ac_ext <<_ACEOF
15427/* end confdefs.h. */
15428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15430#define $ac_func innocuous_$ac_func
15431
b757528f 15432/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15433 which can conflict with char $ac_func (); below.
15434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15435 <limits.h> exists even on freestanding compilers. */
15436
15437#ifdef __STDC__
15438# include <limits.h>
15439#else
15440# include <assert.h>
15441#endif
b757528f 15442
bec39cab 15443#undef $ac_func
b757528f 15444
bec39cab
AC
15445/* Override any gcc2 internal prototype to avoid an error. */
15446#ifdef __cplusplus
15447extern "C"
15448{
15449#endif
15450/* We use char because int might match the return type of a gcc2
15451 builtin and then its argument prototype would still apply. */
15452char $ac_func ();
b757528f
JJ
15453/* The GNU C library defines this for functions which it implements
15454 to always fail with ENOSYS. Some functions are actually named
15455 something starting with __ and the normal name is an alias. */
15456#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15457choke me
15458#else
bec39cab
AC
15459char (*f) () = $ac_func;
15460#endif
15461#ifdef __cplusplus
15462}
b757528f
JJ
15463#endif
15464
bec39cab
AC
15465int
15466main ()
15467{
15468return f != $ac_func;
15469 ;
15470 return 0;
15471}
15472_ACEOF
15473rm -f conftest.$ac_objext conftest$ac_exeext
15474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15475 (eval $ac_link) 2>conftest.er1
15476 ac_status=$?
15477 grep -v '^ *+' conftest.er1 >conftest.err
15478 rm -f conftest.er1
15479 cat conftest.err >&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
15482 { ac_try='test -z "$ac_c_werror_flag"
15483 || test ! -s conftest.err'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; } &&
15489 { ac_try='test -s conftest$ac_exeext'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 eval "$as_ac_var=yes"
15496else
15497 echo "$as_me: failed program was:" >&5
15498sed 's/^/| /' conftest.$ac_ext >&5
15499
15500eval "$as_ac_var=no"
15501fi
15502rm -f conftest.err conftest.$ac_objext \
15503 conftest$ac_exeext conftest.$ac_ext
15504fi
15505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15506echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15507if test `eval echo '${'$as_ac_var'}'` = yes; then
15508 cat >>confdefs.h <<_ACEOF
15509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15510_ACEOF
b757528f 15511
b757528f
JJ
15512fi
15513done
15514
bec39cab 15515
bcb3dc3d
MK
15516for ac_func in ttrace
15517do
bec39cab
AC
15518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15519echo "$as_me:$LINENO: checking for $ac_func" >&5
15520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15521if eval "test \"\${$as_ac_var+set}\" = set"; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15523else
15524 cat >conftest.$ac_ext <<_ACEOF
15525/* confdefs.h. */
15526_ACEOF
15527cat confdefs.h >>conftest.$ac_ext
15528cat >>conftest.$ac_ext <<_ACEOF
15529/* end confdefs.h. */
15530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15532#define $ac_func innocuous_$ac_func
15533
bcb3dc3d 15534/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15535 which can conflict with char $ac_func (); below.
15536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15537 <limits.h> exists even on freestanding compilers. */
15538
15539#ifdef __STDC__
15540# include <limits.h>
15541#else
15542# include <assert.h>
15543#endif
bcb3dc3d 15544
bec39cab 15545#undef $ac_func
bcb3dc3d 15546
bec39cab
AC
15547/* Override any gcc2 internal prototype to avoid an error. */
15548#ifdef __cplusplus
15549extern "C"
15550{
15551#endif
15552/* We use char because int might match the return type of a gcc2
15553 builtin and then its argument prototype would still apply. */
15554char $ac_func ();
bcb3dc3d
MK
15555/* The GNU C library defines this for functions which it implements
15556 to always fail with ENOSYS. Some functions are actually named
15557 something starting with __ and the normal name is an alias. */
15558#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15559choke me
15560#else
bec39cab
AC
15561char (*f) () = $ac_func;
15562#endif
15563#ifdef __cplusplus
15564}
bcb3dc3d
MK
15565#endif
15566
bec39cab
AC
15567int
15568main ()
15569{
15570return f != $ac_func;
15571 ;
15572 return 0;
15573}
15574_ACEOF
15575rm -f conftest.$ac_objext conftest$ac_exeext
15576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15577 (eval $ac_link) 2>conftest.er1
15578 ac_status=$?
15579 grep -v '^ *+' conftest.er1 >conftest.err
15580 rm -f conftest.er1
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_c_werror_flag"
15585 || test ! -s conftest.err'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest$ac_exeext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 eval "$as_ac_var=yes"
15598else
15599 echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5
15601
15602eval "$as_ac_var=no"
15603fi
15604rm -f conftest.err conftest.$ac_objext \
15605 conftest$ac_exeext conftest.$ac_ext
15606fi
15607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15608echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15609if test `eval echo '${'$as_ac_var'}'` = yes; then
15610 cat >>confdefs.h <<_ACEOF
15611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15612_ACEOF
bcb3dc3d 15613
bcb3dc3d
MK
15614fi
15615done
15616
bec39cab 15617
8b9cf735
MK
15618for ac_func in wborder
15619do
bec39cab
AC
15620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15621echo "$as_me:$LINENO: checking for $ac_func" >&5
15622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15623if eval "test \"\${$as_ac_var+set}\" = set"; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15625else
15626 cat >conftest.$ac_ext <<_ACEOF
15627/* confdefs.h. */
15628_ACEOF
15629cat confdefs.h >>conftest.$ac_ext
15630cat >>conftest.$ac_ext <<_ACEOF
15631/* end confdefs.h. */
15632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15634#define $ac_func innocuous_$ac_func
15635
8b9cf735 15636/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15637 which can conflict with char $ac_func (); below.
15638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15639 <limits.h> exists even on freestanding compilers. */
15640
15641#ifdef __STDC__
15642# include <limits.h>
15643#else
15644# include <assert.h>
15645#endif
8b9cf735 15646
bec39cab 15647#undef $ac_func
8b9cf735 15648
bec39cab
AC
15649/* Override any gcc2 internal prototype to avoid an error. */
15650#ifdef __cplusplus
15651extern "C"
15652{
15653#endif
15654/* We use char because int might match the return type of a gcc2
15655 builtin and then its argument prototype would still apply. */
15656char $ac_func ();
8b9cf735
MK
15657/* The GNU C library defines this for functions which it implements
15658 to always fail with ENOSYS. Some functions are actually named
15659 something starting with __ and the normal name is an alias. */
15660#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15661choke me
15662#else
bec39cab
AC
15663char (*f) () = $ac_func;
15664#endif
15665#ifdef __cplusplus
15666}
8b9cf735
MK
15667#endif
15668
bec39cab
AC
15669int
15670main ()
15671{
15672return f != $ac_func;
15673 ;
15674 return 0;
15675}
15676_ACEOF
15677rm -f conftest.$ac_objext conftest$ac_exeext
15678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15679 (eval $ac_link) 2>conftest.er1
15680 ac_status=$?
15681 grep -v '^ *+' conftest.er1 >conftest.err
15682 rm -f conftest.er1
15683 cat conftest.err >&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
15686 { ac_try='test -z "$ac_c_werror_flag"
15687 || test ! -s conftest.err'
15688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15690 ac_status=$?
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; } &&
15693 { ac_try='test -s conftest$ac_exeext'
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15696 ac_status=$?
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; }; then
15699 eval "$as_ac_var=yes"
15700else
15701 echo "$as_me: failed program was:" >&5
15702sed 's/^/| /' conftest.$ac_ext >&5
15703
15704eval "$as_ac_var=no"
15705fi
15706rm -f conftest.err conftest.$ac_objext \
15707 conftest$ac_exeext conftest.$ac_ext
15708fi
15709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15710echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15711if test `eval echo '${'$as_ac_var'}'` = yes; then
15712 cat >>confdefs.h <<_ACEOF
15713#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15714_ACEOF
8b9cf735 15715
8b9cf735
MK
15716fi
15717done
15718
97bf5e38 15719
086ec9eb
MK
15720# Check the return and argument types of ptrace. No canned test for
15721# this, so roll our own.
15722gdb_ptrace_headers='
15723#if HAVE_SYS_TYPES_H
15724# include <sys/types.h>
15725#endif
15726#if HAVE_SYS_PTRACE_H
15727# include <sys/ptrace.h>
15728#endif
15729#if HAVE_UNISTD_H
15730# include <unistd.h>
15731#endif
15732'
15733# There is no point in checking if we don't have a prototype.
15734for ac_func in ptrace
15735do
15736 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
bec39cab
AC
15737echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
15738echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
15739if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15741else
15742 cat >conftest.$ac_ext <<_ACEOF
15743/* confdefs.h. */
15744_ACEOF
15745cat confdefs.h >>conftest.$ac_ext
15746cat >>conftest.$ac_ext <<_ACEOF
15747/* end confdefs.h. */
086ec9eb
MK
15748#undef $ac_tr_decl
15749#define $ac_tr_decl 1
15750 $gdb_ptrace_headers
15751
bec39cab
AC
15752int
15753main ()
15754{
086ec9eb
MK
15755#ifndef $ac_func
15756char *(*pfn) = (char *(*)) $ac_func ;
15757#endif
bec39cab
AC
15758 ;
15759 return 0;
15760}
15761_ACEOF
15762rm -f conftest.$ac_objext
15763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15764 (eval $ac_compile) 2>conftest.er1
15765 ac_status=$?
15766 grep -v '^ *+' conftest.er1 >conftest.err
15767 rm -f conftest.er1
15768 cat conftest.err >&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try='test -z "$ac_c_werror_flag"
15772 || test ! -s conftest.err'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest.$ac_objext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
086ec9eb
MK
15784 eval "gcc_cv_have_decl_$ac_func=yes"
15785else
bec39cab
AC
15786 echo "$as_me: failed program was:" >&5
15787sed 's/^/| /' conftest.$ac_ext >&5
15788
15789eval "gcc_cv_have_decl_$ac_func=no"
086ec9eb 15790fi
bec39cab 15791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
086ec9eb
MK
15792fi
15793
15794if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
bec39cab
AC
15795 echo "$as_me:$LINENO: result: yes" >&5
15796echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
086ec9eb 15797#define $ac_tr_decl 1
bec39cab
AC
15798_ACEOF
15799
086ec9eb 15800else
bec39cab
AC
15801 echo "$as_me:$LINENO: result: no" >&5
15802echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
086ec9eb 15803#define $ac_tr_decl 0
bec39cab
AC
15804_ACEOF
15805
086ec9eb
MK
15806 : ${gdb_cv_func_ptrace_ret='int'}
15807 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15808
15809fi
15810
15811done
15812if test x = y ; then
bec39cab
AC
15813
15814cat >>confdefs.h <<\_ACEOF
086ec9eb 15815#define HAVE_DECL_PTRACE 1
bec39cab 15816_ACEOF
086ec9eb
MK
15817fi
15818
15819# Check return type.
bec39cab
AC
15820echo "$as_me:$LINENO: checking return type of ptrace" >&5
15821echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
15822if test "${gdb_cv_func_ptrace_ret+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15824else
15825 cat >conftest.$ac_ext <<_ACEOF
15826/* confdefs.h. */
15827_ACEOF
15828cat confdefs.h >>conftest.$ac_ext
15829cat >>conftest.$ac_ext <<_ACEOF
15830/* end confdefs.h. */
086ec9eb 15831$gdb_ptrace_headers
bec39cab
AC
15832int
15833main ()
15834{
5885ab49 15835extern int ptrace ();
bec39cab
AC
15836 ;
15837 return 0;
15838}
15839_ACEOF
15840rm -f conftest.$ac_objext
15841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15842 (eval $ac_compile) 2>conftest.er1
15843 ac_status=$?
15844 grep -v '^ *+' conftest.er1 >conftest.err
15845 rm -f conftest.er1
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -z "$ac_c_werror_flag"
15850 || test ! -s conftest.err'
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; } &&
15856 { ac_try='test -s conftest.$ac_objext'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; }; then
5885ab49 15862 gdb_cv_func_ptrace_ret='int'
086ec9eb 15863else
bec39cab
AC
15864 echo "$as_me: failed program was:" >&5
15865sed 's/^/| /' conftest.$ac_ext >&5
15866
15867gdb_cv_func_ptrace_ret='long'
086ec9eb 15868fi
bec39cab 15869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
086ec9eb 15870fi
bec39cab
AC
15871echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
15872echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
086ec9eb 15873
bec39cab 15874cat >>confdefs.h <<_ACEOF
086ec9eb 15875#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 15876_ACEOF
086ec9eb
MK
15877
15878# Check argument types.
bec39cab
AC
15879echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
15880echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
15881if test "${gdb_cv_func_ptrace_args+set}" = set; then
15882 echo $ECHO_N "(cached) $ECHO_C" >&6
086ec9eb 15883else
bec39cab 15884
086ec9eb
MK
15885for gdb_arg1 in 'int' 'long'; do
15886 for gdb_arg2 in 'pid_t' 'int' 'long'; do
15887 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
15888 for gdb_arg4 in 'int' 'long'; do
bec39cab
AC
15889 cat >conftest.$ac_ext <<_ACEOF
15890/* confdefs.h. */
15891_ACEOF
15892cat confdefs.h >>conftest.$ac_ext
15893cat >>conftest.$ac_ext <<_ACEOF
15894/* end confdefs.h. */
086ec9eb 15895$gdb_ptrace_headers
bec39cab
AC
15896int
15897main ()
15898{
086ec9eb
MK
15899
15900extern $gdb_cv_func_ptrace_ret
15901 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15902
bec39cab
AC
15903 ;
15904 return 0;
15905}
15906_ACEOF
15907rm -f conftest.$ac_objext
15908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909 (eval $ac_compile) 2>conftest.er1
15910 ac_status=$?
15911 grep -v '^ *+' conftest.er1 >conftest.err
15912 rm -f conftest.er1
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
15916 { ac_try='test -z "$ac_c_werror_flag"
15917 || test ! -s conftest.err'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest.$ac_objext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; }; then
086ec9eb
MK
15929 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15930 break 4;
15931else
bec39cab
AC
15932 echo "$as_me: failed program was:" >&5
15933sed 's/^/| /' conftest.$ac_ext >&5
15934
086ec9eb 15935fi
bec39cab 15936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
086ec9eb 15937 for gdb_arg5 in 'int *' 'int' 'long'; do
bec39cab
AC
15938 cat >conftest.$ac_ext <<_ACEOF
15939/* confdefs.h. */
15940_ACEOF
15941cat confdefs.h >>conftest.$ac_ext
15942cat >>conftest.$ac_ext <<_ACEOF
15943/* end confdefs.h. */
086ec9eb 15944$gdb_ptrace_headers
bec39cab
AC
15945int
15946main ()
15947{
086ec9eb
MK
15948
15949extern $gdb_cv_func_ptrace_ret
15950 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15951
bec39cab
AC
15952 ;
15953 return 0;
15954}
15955_ACEOF
15956rm -f conftest.$ac_objext
15957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15958 (eval $ac_compile) 2>conftest.er1
15959 ac_status=$?
15960 grep -v '^ *+' conftest.er1 >conftest.err
15961 rm -f conftest.er1
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try='test -z "$ac_c_werror_flag"
15966 || test ! -s conftest.err'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15978
086ec9eb
MK
15979gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15980 break 5;
15981else
bec39cab
AC
15982 echo "$as_me: failed program was:" >&5
15983sed 's/^/| /' conftest.$ac_ext >&5
15984
086ec9eb 15985fi
bec39cab 15986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
086ec9eb
MK
15987 done
15988 done
15989 done
15990 done
15991done
15992# Provide a safe default value.
15993: ${gdb_cv_func_ptrace_args='int,int,long,long'}
15994
15995fi
bec39cab
AC
15996echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
15997echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
086ec9eb
MK
15998ac_save_IFS=$IFS; IFS=','
15999set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16000IFS=$ac_save_IFS
16001shift
bec39cab
AC
16002
16003cat >>confdefs.h <<_ACEOF
64218d3e 16004#define PTRACE_TYPE_ARG3 $3
bec39cab 16005_ACEOF
086ec9eb
MK
16006
16007if test -n "$5"; then
bec39cab
AC
16008
16009cat >>confdefs.h <<_ACEOF
64218d3e 16010#define PTRACE_TYPE_ARG5 $5
bec39cab 16011_ACEOF
086ec9eb
MK
16012
16013fi
16014
97bf5e38 16015if test "$cross_compiling" = no; then
bec39cab
AC
16016 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16017echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16018if test "${ac_cv_func_setpgrp_void+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
16020else
16021 if test "$cross_compiling" = yes; then
bec39cab
AC
16022 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16023echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16024 { (exit 1); exit 1; }; }
16025else
16026 cat >conftest.$ac_ext <<_ACEOF
16027/* confdefs.h. */
16028_ACEOF
16029cat confdefs.h >>conftest.$ac_ext
16030cat >>conftest.$ac_ext <<_ACEOF
16031/* end confdefs.h. */
16032#if HAVE_UNISTD_H
16033# include <unistd.h>
c906108c 16034#endif
97bf5e38 16035
bec39cab
AC
16036int
16037main ()
97bf5e38 16038{
bec39cab
AC
16039/* If this system has a BSD-style setpgrp which takes arguments,
16040 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16041 exit successfully. */
16042 exit (setpgrp (1,1) == -1 ? 0 : 1);
16043 ;
16044 return 0;
97bf5e38 16045}
bec39cab
AC
16046_ACEOF
16047rm -f conftest$ac_exeext
16048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16049 (eval $ac_link) 2>&5
16050 ac_status=$?
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
97bf5e38 16058 ac_cv_func_setpgrp_void=no
c906108c 16059else
bec39cab
AC
16060 echo "$as_me: program exited with status $ac_status" >&5
16061echo "$as_me: failed program was:" >&5
16062sed 's/^/| /' conftest.$ac_ext >&5
16063
16064( exit $ac_status )
16065ac_cv_func_setpgrp_void=yes
c906108c 16066fi
bec39cab 16067rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 16068fi
97bf5e38 16069fi
bec39cab
AC
16070echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16071echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
97bf5e38 16072if test $ac_cv_func_setpgrp_void = yes; then
bec39cab
AC
16073
16074cat >>confdefs.h <<\_ACEOF
97bf5e38 16075#define SETPGRP_VOID 1
bec39cab 16076_ACEOF
c906108c
SS
16077
16078fi
16079
97bf5e38 16080else
bec39cab
AC
16081 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16082echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16083if test "${ac_cv_func_setpgrp_void+set}" = set; then
16084 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 16085else
bec39cab
AC
16086 cat >conftest.$ac_ext <<_ACEOF
16087/* confdefs.h. */
16088_ACEOF
16089cat confdefs.h >>conftest.$ac_ext
16090cat >>conftest.$ac_ext <<_ACEOF
16091/* end confdefs.h. */
b83266a0 16092
b83266a0 16093#include <unistd.h>
97bf5e38 16094
bec39cab
AC
16095int
16096main ()
16097{
97bf5e38
MK
16098
16099 if (setpgrp(1,1) == -1)
16100 exit (0);
16101 else
16102 exit (1);
16103
bec39cab
AC
16104 ;
16105 return 0;
16106}
16107_ACEOF
16108rm -f conftest.$ac_objext
16109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16110 (eval $ac_compile) 2>conftest.er1
16111 ac_status=$?
16112 grep -v '^ *+' conftest.er1 >conftest.err
16113 rm -f conftest.er1
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } &&
16117 { ac_try='test -z "$ac_c_werror_flag"
16118 || test ! -s conftest.err'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16121 ac_status=$?
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; } &&
16124 { ac_try='test -s conftest.$ac_objext'
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
97bf5e38 16130 ac_cv_func_setpgrp_void=no
b83266a0 16131else
bec39cab
AC
16132 echo "$as_me: failed program was:" >&5
16133sed 's/^/| /' conftest.$ac_ext >&5
16134
16135ac_cv_func_setpgrp_void=yes
b83266a0 16136fi
bec39cab 16137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b83266a0 16138fi
bec39cab
AC
16139echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16140echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
97bf5e38 16141if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 16142 cat >>confdefs.h <<\_ACEOF
97bf5e38 16143#define SETPGRP_VOID 1
bec39cab 16144_ACEOF
b83266a0 16145
97bf5e38 16146fi
b83266a0
SS
16147fi
16148
97bf5e38
MK
16149# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16150# since sigsetjmp might only be defined as a macro.
bec39cab
AC
16151echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16152echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16153if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16155else
16156 cat >conftest.$ac_ext <<_ACEOF
16157/* confdefs.h. */
16158_ACEOF
16159cat confdefs.h >>conftest.$ac_ext
16160cat >>conftest.$ac_ext <<_ACEOF
16161/* end confdefs.h. */
a4db0f07 16162
97bf5e38
MK
16163#include <setjmp.h>
16164
bec39cab
AC
16165int
16166main ()
16167{
97bf5e38 16168sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
16169 ;
16170 return 0;
16171}
16172_ACEOF
16173rm -f conftest.$ac_objext
16174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16175 (eval $ac_compile) 2>conftest.er1
16176 ac_status=$?
16177 grep -v '^ *+' conftest.er1 >conftest.err
16178 rm -f conftest.er1
16179 cat conftest.err >&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } &&
16182 { ac_try='test -z "$ac_c_werror_flag"
16183 || test ! -s conftest.err'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; } &&
16189 { ac_try='test -s conftest.$ac_objext'
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
97bf5e38 16195 gdb_cv_func_sigsetjmp=yes
a4db0f07 16196else
bec39cab
AC
16197 echo "$as_me: failed program was:" >&5
16198sed 's/^/| /' conftest.$ac_ext >&5
16199
16200gdb_cv_func_sigsetjmp=no
a4db0f07 16201fi
bec39cab 16202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a4db0f07 16203fi
bec39cab
AC
16204echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16205echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
97bf5e38 16206if test $gdb_cv_func_sigsetjmp = yes; then
bec39cab
AC
16207
16208cat >>confdefs.h <<\_ACEOF
97bf5e38 16209#define HAVE_SIGSETJMP 1
bec39cab 16210_ACEOF
a4db0f07
RH
16211
16212fi
c906108c 16213
06825bd1
MK
16214# Assume we'll default to using the included libiberty regex.
16215gdb_use_included_regex=yes
16216
16217# However, if the system regex is GNU regex, then default to *not*
16218# using the included regex.
bec39cab
AC
16219echo "$as_me:$LINENO: checking for GNU regex" >&5
16220echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16221if test "${gdb_cv_have_gnu_regex+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16223else
16224 cat >conftest.$ac_ext <<_ACEOF
16225/* confdefs.h. */
16226_ACEOF
16227cat confdefs.h >>conftest.$ac_ext
16228cat >>conftest.$ac_ext <<_ACEOF
16229/* end confdefs.h. */
06825bd1 16230#include <gnu-versions.h>
bec39cab
AC
16231int
16232main ()
16233{
06825bd1
MK
16234#define REGEX_INTERFACE_VERSION 1
16235#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16236# error "Version mismatch"
16237#endif
bec39cab
AC
16238 ;
16239 return 0;
16240}
16241_ACEOF
16242rm -f conftest.$ac_objext
16243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16244 (eval $ac_compile) 2>conftest.er1
16245 ac_status=$?
16246 grep -v '^ *+' conftest.er1 >conftest.err
16247 rm -f conftest.er1
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -z "$ac_c_werror_flag"
16252 || test ! -s conftest.err'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; } &&
16258 { ac_try='test -s conftest.$ac_objext'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
06825bd1
MK
16264 gdb_cv_have_gnu_regex=yes
16265else
bec39cab
AC
16266 echo "$as_me: failed program was:" >&5
16267sed 's/^/| /' conftest.$ac_ext >&5
16268
16269gdb_cv_have_gnu_regex=no
06825bd1 16270fi
bec39cab 16271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 16272fi
bec39cab
AC
16273echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16274echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
06825bd1
MK
16275if test $gdb_cv_have_gnu_regex = yes; then
16276 gdb_use_included_regex=no
16277fi
16278
bec39cab 16279
06825bd1
MK
16280# Check whether --with-included-regex or --without-included-regex was given.
16281if test "${with_included_regex+set}" = set; then
16282 withval="$with_included_regex"
16283 gdb_with_regex=$withval
16284else
16285 gdb_with_regex=$gdb_use_included_regex
bec39cab 16286fi;
06825bd1 16287if test "$gdb_with_regex" = yes; then
bec39cab
AC
16288
16289cat >>confdefs.h <<\_ACEOF
06825bd1 16290#define USE_INCLUDED_REGEX 1
bec39cab 16291_ACEOF
06825bd1
MK
16292
16293fi
16294
70f9f479 16295# See if <sys/proc.h> defines `struct thread' with a td_pcb member.
bec39cab
AC
16296echo "$as_me:$LINENO: checking for td_pcb in struct thread" >&5
16297echo $ECHO_N "checking for td_pcb in struct thread... $ECHO_C" >&6
16298if test "${gdb_cv_struct_thread_td_pcb+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16300else
16301 cat >conftest.$ac_ext <<_ACEOF
16302/* confdefs.h. */
16303_ACEOF
16304cat confdefs.h >>conftest.$ac_ext
16305cat >>conftest.$ac_ext <<_ACEOF
16306/* end confdefs.h. */
d15be926 16307#include <sys/param.h>
70f9f479 16308#include <sys/proc.h>
bec39cab
AC
16309int
16310main ()
16311{
70f9f479 16312struct thread td; td.td_pcb;
bec39cab
AC
16313 ;
16314 return 0;
16315}
16316_ACEOF
16317rm -f conftest.$ac_objext
16318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16319 (eval $ac_compile) 2>conftest.er1
16320 ac_status=$?
16321 grep -v '^ *+' conftest.er1 >conftest.err
16322 rm -f conftest.er1
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } &&
16326 { ac_try='test -z "$ac_c_werror_flag"
16327 || test ! -s conftest.err'
16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16330 ac_status=$?
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; } &&
16333 { ac_try='test -s conftest.$ac_objext'
16334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335 (eval $ac_try) 2>&5
16336 ac_status=$?
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; }; then
70f9f479
MK
16339 gdb_cv_struct_thread_td_pcb=yes
16340else
bec39cab
AC
16341 echo "$as_me: failed program was:" >&5
16342sed 's/^/| /' conftest.$ac_ext >&5
16343
16344gdb_cv_struct_thread_td_pcb=no
70f9f479 16345fi
bec39cab 16346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 16347fi
bec39cab
AC
16348echo "$as_me:$LINENO: result: $gdb_cv_struct_thread_td_pcb" >&5
16349echo "${ECHO_T}$gdb_cv_struct_thread_td_pcb" >&6
70f9f479 16350if test $gdb_cv_struct_thread_td_pcb = yes; then
bec39cab
AC
16351
16352cat >>confdefs.h <<\_ACEOF
70f9f479 16353#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 16354_ACEOF
70f9f479
MK
16355
16356fi
16357
5c7f2947 16358# See if <sys/lwp.h> defines `struct lwp`.
bec39cab
AC
16359echo "$as_me:$LINENO: checking for struct lwp" >&5
16360echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16361if test "${gdb_cv_struct_lwp+set}" = set; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16363else
16364 cat >conftest.$ac_ext <<_ACEOF
16365/* confdefs.h. */
16366_ACEOF
16367cat confdefs.h >>conftest.$ac_ext
16368cat >>conftest.$ac_ext <<_ACEOF
16369/* end confdefs.h. */
5c7f2947
MK
16370#include <sys/param.h>
16371#include <sys/lwp.h>
bec39cab
AC
16372int
16373main ()
16374{
5c7f2947 16375struct lwp l;
bec39cab
AC
16376 ;
16377 return 0;
16378}
16379_ACEOF
16380rm -f conftest.$ac_objext
16381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16382 (eval $ac_compile) 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag"
16390 || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest.$ac_objext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
5c7f2947
MK
16402 gdb_cv_struct_lwp=yes
16403else
bec39cab
AC
16404 echo "$as_me: failed program was:" >&5
16405sed 's/^/| /' conftest.$ac_ext >&5
16406
16407gdb_cv_struct_lwp=no
5c7f2947 16408fi
bec39cab 16409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5c7f2947 16410fi
bec39cab
AC
16411echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16412echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
5c7f2947 16413if test $gdb_cv_struct_lwp = yes; then
bec39cab
AC
16414
16415cat >>confdefs.h <<\_ACEOF
5c7f2947 16416#define HAVE_STRUCT_LWP 1
bec39cab 16417_ACEOF
5c7f2947
MK
16418
16419fi
16420
78434e59 16421# See if <machine/reg.h> degines `struct reg'.
bec39cab
AC
16422echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16423echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16424if test "${gdb_cv_struct_reg+set}" = set; then
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. */
78434e59
MK
16433#include <sys/types.h>
16434#include <machine/reg.h>
bec39cab
AC
16435int
16436main ()
16437{
78434e59 16438struct reg r;
bec39cab
AC
16439 ;
16440 return 0;
16441}
16442_ACEOF
16443rm -f conftest.$ac_objext
16444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16445 (eval $ac_compile) 2>conftest.er1
16446 ac_status=$?
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try='test -z "$ac_c_werror_flag"
16453 || test ! -s conftest.err'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest.$ac_objext'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
78434e59
MK
16465 gdb_cv_struct_reg=yes
16466else
bec39cab
AC
16467 echo "$as_me: failed program was:" >&5
16468sed 's/^/| /' conftest.$ac_ext >&5
16469
16470gdb_cv_struct_reg=no
78434e59 16471fi
bec39cab 16472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
78434e59 16473fi
bec39cab
AC
16474echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16475echo "${ECHO_T}$gdb_cv_struct_reg" >&6
78434e59 16476if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
16477
16478cat >>confdefs.h <<\_ACEOF
78434e59 16479#define HAVE_STRUCT_REG 1
bec39cab 16480_ACEOF
78434e59
MK
16481
16482fi
16483
97bf5e38
MK
16484# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16485# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
bec39cab
AC
16486echo "$as_me:$LINENO: checking for r_fs in struct reg" >&5
16487echo $ECHO_N "checking for r_fs in struct reg... $ECHO_C" >&6
16488if test "${gdb_cv_struct_reg_r_fs+set}" = set; then
16489 echo $ECHO_N "(cached) $ECHO_C" >&6
16490else
16491 cat >conftest.$ac_ext <<_ACEOF
16492/* confdefs.h. */
16493_ACEOF
16494cat confdefs.h >>conftest.$ac_ext
16495cat >>conftest.$ac_ext <<_ACEOF
16496/* end confdefs.h. */
97bf5e38 16497#include <machine/reg.h>
bec39cab
AC
16498int
16499main ()
16500{
97bf5e38 16501struct reg r; r.r_fs;
bec39cab
AC
16502 ;
16503 return 0;
16504}
16505_ACEOF
16506rm -f conftest.$ac_objext
16507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16508 (eval $ac_compile) 2>conftest.er1
16509 ac_status=$?
16510 grep -v '^ *+' conftest.er1 >conftest.err
16511 rm -f conftest.er1
16512 cat conftest.err >&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } &&
16515 { ac_try='test -z "$ac_c_werror_flag"
16516 || test ! -s conftest.err'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest.$ac_objext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
97bf5e38 16528 gdb_cv_struct_reg_r_fs=yes
c906108c 16529else
bec39cab
AC
16530 echo "$as_me: failed program was:" >&5
16531sed 's/^/| /' conftest.$ac_ext >&5
16532
16533gdb_cv_struct_reg_r_fs=no
c906108c 16534fi
bec39cab 16535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 16536fi
bec39cab
AC
16537echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_fs" >&5
16538echo "${ECHO_T}$gdb_cv_struct_reg_r_fs" >&6
97bf5e38 16539if test $gdb_cv_struct_reg_r_fs = yes; then
bec39cab 16540 cat >>confdefs.h <<\_ACEOF
97bf5e38 16541#define HAVE_STRUCT_REG_R_FS 1
bec39cab 16542_ACEOF
97bf5e38
MK
16543
16544fi
bec39cab
AC
16545echo "$as_me:$LINENO: checking for r_gs in struct reg" >&5
16546echo $ECHO_N "checking for r_gs in struct reg... $ECHO_C" >&6
16547if test "${gdb_cv_struct_reg_r_gs+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16549else
bec39cab
AC
16550 cat >conftest.$ac_ext <<_ACEOF
16551/* confdefs.h. */
16552_ACEOF
16553cat confdefs.h >>conftest.$ac_ext
16554cat >>conftest.$ac_ext <<_ACEOF
16555/* end confdefs.h. */
97bf5e38 16556#include <machine/reg.h>
bec39cab
AC
16557int
16558main ()
16559{
97bf5e38 16560struct reg r; r.r_gs;
bec39cab
AC
16561 ;
16562 return 0;
16563}
16564_ACEOF
16565rm -f conftest.$ac_objext
16566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16567 (eval $ac_compile) 2>conftest.er1
16568 ac_status=$?
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try='test -z "$ac_c_werror_flag"
16575 || test ! -s conftest.err'
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); }; } &&
16581 { ac_try='test -s conftest.$ac_objext'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; }; then
97bf5e38 16587 gdb_cv_struct_reg_r_gs=yes
c906108c 16588else
bec39cab
AC
16589 echo "$as_me: failed program was:" >&5
16590sed 's/^/| /' conftest.$ac_ext >&5
16591
16592gdb_cv_struct_reg_r_gs=no
c906108c 16593fi
bec39cab 16594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16595fi
bec39cab
AC
16596echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_gs" >&5
16597echo "${ECHO_T}$gdb_cv_struct_reg_r_gs" >&6
97bf5e38 16598if test $gdb_cv_struct_reg_r_gs = yes; then
bec39cab 16599 cat >>confdefs.h <<\_ACEOF
97bf5e38 16600#define HAVE_STRUCT_REG_R_GS 1
bec39cab 16601_ACEOF
c3f6f71d 16602
c906108c
SS
16603fi
16604
97bf5e38 16605# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
bec39cab
AC
16606echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
16607echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
16608if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16610else
16611 cat >conftest.$ac_ext <<_ACEOF
16612/* confdefs.h. */
16613_ACEOF
16614cat confdefs.h >>conftest.$ac_ext
16615cat >>conftest.$ac_ext <<_ACEOF
16616/* end confdefs.h. */
97bf5e38 16617#include <sys/ptrace.h>
bec39cab
AC
16618int
16619main ()
16620{
97bf5e38 16621PTRACE_GETREGS;
bec39cab
AC
16622 ;
16623 return 0;
16624}
16625_ACEOF
16626rm -f conftest.$ac_objext
16627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628 (eval $ac_compile) 2>conftest.er1
16629 ac_status=$?
16630 grep -v '^ *+' conftest.er1 >conftest.err
16631 rm -f conftest.er1
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
16635 { ac_try='test -z "$ac_c_werror_flag"
16636 || test ! -s conftest.err'
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
97bf5e38 16648 gdb_cv_have_ptrace_getregs=yes
c906108c 16649else
bec39cab
AC
16650 echo "$as_me: failed program was:" >&5
16651sed 's/^/| /' conftest.$ac_ext >&5
16652
16653gdb_cv_have_ptrace_getregs=no
c906108c 16654fi
bec39cab 16655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
16656fi
16657
bec39cab
AC
16658echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
16659echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
97bf5e38 16660if test $gdb_cv_have_ptrace_getregs = yes; then
bec39cab 16661 cat >>confdefs.h <<\_ACEOF
97bf5e38 16662#define HAVE_PTRACE_GETREGS 1
bec39cab 16663_ACEOF
c906108c 16664
97bf5e38 16665fi
c906108c 16666
97bf5e38 16667# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
bec39cab
AC
16668echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
16669echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
16670if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16672else
16673 cat >conftest.$ac_ext <<_ACEOF
16674/* confdefs.h. */
16675_ACEOF
16676cat confdefs.h >>conftest.$ac_ext
16677cat >>conftest.$ac_ext <<_ACEOF
16678/* end confdefs.h. */
97bf5e38 16679#include <sys/ptrace.h>
bec39cab
AC
16680int
16681main ()
16682{
97bf5e38 16683PTRACE_GETFPXREGS;
bec39cab
AC
16684 ;
16685 return 0;
16686}
16687_ACEOF
16688rm -f conftest.$ac_objext
16689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16690 (eval $ac_compile) 2>conftest.er1
16691 ac_status=$?
16692 grep -v '^ *+' conftest.er1 >conftest.err
16693 rm -f conftest.er1
16694 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try='test -z "$ac_c_werror_flag"
16698 || test ! -s conftest.err'
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16701 ac_status=$?
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; } &&
16704 { ac_try='test -s conftest.$ac_objext'
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16707 ac_status=$?
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
97bf5e38 16710 gdb_cv_have_ptrace_getfpxregs=yes
c906108c 16711else
bec39cab
AC
16712 echo "$as_me: failed program was:" >&5
16713sed 's/^/| /' conftest.$ac_ext >&5
16714
16715gdb_cv_have_ptrace_getfpxregs=no
c906108c 16716fi
bec39cab 16717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
16718fi
16719
bec39cab
AC
16720echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16721echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
97bf5e38 16722if test $gdb_cv_have_ptrace_getfpxregs = yes; then
bec39cab 16723 cat >>confdefs.h <<\_ACEOF
97bf5e38 16724#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 16725_ACEOF
c906108c 16726
97bf5e38 16727fi
c906108c 16728
97bf5e38 16729# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
bec39cab
AC
16730echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
16731echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
16732if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16734else
16735 cat >conftest.$ac_ext <<_ACEOF
16736/* confdefs.h. */
16737_ACEOF
16738cat confdefs.h >>conftest.$ac_ext
16739cat >>conftest.$ac_ext <<_ACEOF
16740/* end confdefs.h. */
97bf5e38
MK
16741#include <sys/types.h>
16742#include <sys/ptrace.h>
bec39cab
AC
16743int
16744main ()
16745{
97bf5e38 16746PT_GETDBREGS;
bec39cab
AC
16747 ;
16748 return 0;
16749}
16750_ACEOF
16751rm -f conftest.$ac_objext
16752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16753 (eval $ac_compile) 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
16760 { ac_try='test -z "$ac_c_werror_flag"
16761 || test ! -s conftest.err'
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; } &&
16767 { ac_try='test -s conftest.$ac_objext'
16768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16770 ac_status=$?
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; }; then
97bf5e38 16773 gdb_cv_have_pt_getdbregs=yes
c906108c 16774else
bec39cab
AC
16775 echo "$as_me: failed program was:" >&5
16776sed 's/^/| /' conftest.$ac_ext >&5
16777
16778gdb_cv_have_pt_getdbregs=no
c906108c 16779fi
bec39cab 16780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
16781fi
16782
bec39cab
AC
16783echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
16784echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
97bf5e38 16785if test $gdb_cv_have_pt_getdbregs = yes; then
bec39cab 16786 cat >>confdefs.h <<\_ACEOF
97bf5e38 16787#define HAVE_PT_GETDBREGS 1
bec39cab 16788_ACEOF
c906108c 16789
97bf5e38 16790fi
c906108c 16791
97bf5e38 16792# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
bec39cab
AC
16793echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
16794echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
16795if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16797else
16798 cat >conftest.$ac_ext <<_ACEOF
16799/* confdefs.h. */
16800_ACEOF
16801cat confdefs.h >>conftest.$ac_ext
16802cat >>conftest.$ac_ext <<_ACEOF
16803/* end confdefs.h. */
97bf5e38
MK
16804#include <sys/types.h>
16805#include <sys/ptrace.h>
bec39cab
AC
16806int
16807main ()
16808{
97bf5e38 16809PT_GETXMMREGS;
bec39cab
AC
16810 ;
16811 return 0;
16812}
16813_ACEOF
16814rm -f conftest.$ac_objext
16815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16816 (eval $ac_compile) 2>conftest.er1
16817 ac_status=$?
16818 grep -v '^ *+' conftest.er1 >conftest.err
16819 rm -f conftest.er1
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag"
16824 || test ! -s conftest.err'
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest.$ac_objext'
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
97bf5e38 16836 gdb_cv_have_pt_getxmmregs=yes
c906108c 16837else
bec39cab
AC
16838 echo "$as_me: failed program was:" >&5
16839sed 's/^/| /' conftest.$ac_ext >&5
16840
16841gdb_cv_have_pt_getxmmregs=no
c906108c 16842fi
bec39cab 16843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
16844fi
16845
bec39cab
AC
16846echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
16847echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
97bf5e38 16848if test $gdb_cv_have_pt_getxmmregs = yes; then
bec39cab 16849 cat >>confdefs.h <<\_ACEOF
97bf5e38 16850#define HAVE_PT_GETXMMREGS 1
bec39cab 16851_ACEOF
c906108c 16852
97bf5e38 16853fi
c906108c 16854
27ca5dad 16855# See if stdint.h provides the uintptr_t type.
d3e0a5bf 16856# Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
bec39cab
AC
16857echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
16858echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
16859if test "${gdb_cv_have_uintptr_t+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16861else
16862 cat >conftest.$ac_ext <<_ACEOF
16863/* confdefs.h. */
16864_ACEOF
16865cat confdefs.h >>conftest.$ac_ext
16866cat >>conftest.$ac_ext <<_ACEOF
16867/* end confdefs.h. */
27ca5dad 16868#include <stdint.h>
bec39cab
AC
16869int
16870main ()
16871{
27ca5dad 16872uintptr_t foo = 0;
bec39cab
AC
16873 ;
16874 return 0;
16875}
16876_ACEOF
16877rm -f conftest.$ac_objext
16878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16879 (eval $ac_compile) 2>conftest.er1
16880 ac_status=$?
16881 grep -v '^ *+' conftest.er1 >conftest.err
16882 rm -f conftest.er1
16883 cat conftest.err >&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } &&
16886 { ac_try='test -z "$ac_c_werror_flag"
16887 || test ! -s conftest.err'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; } &&
16893 { ac_try='test -s conftest.$ac_objext'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
27ca5dad
MC
16899 gdb_cv_have_uintptr_t=yes
16900else
bec39cab
AC
16901 echo "$as_me: failed program was:" >&5
16902sed 's/^/| /' conftest.$ac_ext >&5
16903
16904gdb_cv_have_uintptr_t=no
27ca5dad 16905fi
bec39cab 16906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 16907fi
bec39cab
AC
16908echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
16909echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
27ca5dad 16910if test $gdb_cv_have_uintptr_t = yes; then
bec39cab
AC
16911
16912cat >>confdefs.h <<\_ACEOF
27ca5dad 16913#define HAVE_UINTPTR_T 1
bec39cab 16914_ACEOF
27ca5dad
MC
16915
16916fi
97bf5e38 16917
bec39cab
AC
16918echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
16919echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
16920if test "${bfd_cv_decl_needed_malloc+set}" = set; then
16921 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 16922else
bec39cab
AC
16923 cat >conftest.$ac_ext <<_ACEOF
16924/* confdefs.h. */
16925_ACEOF
16926cat confdefs.h >>conftest.$ac_ext
16927cat >>conftest.$ac_ext <<_ACEOF
16928/* end confdefs.h. */
e17bf198 16929
97bf5e38
MK
16930#include <stdio.h>
16931#ifdef HAVE_STRING_H
16932#include <string.h>
16933#else
16934#ifdef HAVE_STRINGS_H
16935#include <strings.h>
16936#endif
16937#endif
16938#ifdef HAVE_STDLIB_H
16939#include <stdlib.h>
16940#endif
16941#ifdef HAVE_UNISTD_H
16942#include <unistd.h>
16943#endif
bec39cab
AC
16944int
16945main ()
16946{
97bf5e38 16947char *(*pfn) = (char *(*)) malloc
bec39cab
AC
16948 ;
16949 return 0;
16950}
16951_ACEOF
16952rm -f conftest.$ac_objext
16953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16954 (eval $ac_compile) 2>conftest.er1
16955 ac_status=$?
16956 grep -v '^ *+' conftest.er1 >conftest.err
16957 rm -f conftest.er1
16958 cat conftest.err >&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } &&
16961 { ac_try='test -z "$ac_c_werror_flag"
16962 || test ! -s conftest.err'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; } &&
16968 { ac_try='test -s conftest.$ac_objext'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16971 ac_status=$?
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
97bf5e38 16974 bfd_cv_decl_needed_malloc=no
3862412b 16975else
bec39cab
AC
16976 echo "$as_me: failed program was:" >&5
16977sed 's/^/| /' conftest.$ac_ext >&5
16978
16979bfd_cv_decl_needed_malloc=yes
3862412b 16980fi
bec39cab 16981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
16982fi
16983
bec39cab
AC
16984echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
16985echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
97bf5e38 16986if test $bfd_cv_decl_needed_malloc = yes; then
bec39cab
AC
16987
16988cat >>confdefs.h <<\_ACEOF
97bf5e38 16989#define NEED_DECLARATION_MALLOC 1
bec39cab 16990_ACEOF
3862412b 16991
97bf5e38 16992fi
3862412b 16993
bec39cab
AC
16994echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
16995echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
16996if test "${bfd_cv_decl_needed_realloc+set}" = set; then
16997 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 16998else
bec39cab
AC
16999 cat >conftest.$ac_ext <<_ACEOF
17000/* confdefs.h. */
17001_ACEOF
17002cat confdefs.h >>conftest.$ac_ext
17003cat >>conftest.$ac_ext <<_ACEOF
17004/* end confdefs.h. */
e17bf198 17005
97bf5e38
MK
17006#include <stdio.h>
17007#ifdef HAVE_STRING_H
17008#include <string.h>
17009#else
17010#ifdef HAVE_STRINGS_H
17011#include <strings.h>
17012#endif
17013#endif
17014#ifdef HAVE_STDLIB_H
17015#include <stdlib.h>
17016#endif
17017#ifdef HAVE_UNISTD_H
17018#include <unistd.h>
17019#endif
bec39cab
AC
17020int
17021main ()
17022{
97bf5e38 17023char *(*pfn) = (char *(*)) realloc
bec39cab
AC
17024 ;
17025 return 0;
17026}
17027_ACEOF
17028rm -f conftest.$ac_objext
17029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17030 (eval $ac_compile) 2>conftest.er1
17031 ac_status=$?
17032 grep -v '^ *+' conftest.er1 >conftest.err
17033 rm -f conftest.er1
17034 cat conftest.err >&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
17037 { ac_try='test -z "$ac_c_werror_flag"
17038 || test ! -s conftest.err'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; } &&
17044 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
97bf5e38 17050 bfd_cv_decl_needed_realloc=no
3862412b 17051else
bec39cab
AC
17052 echo "$as_me: failed program was:" >&5
17053sed 's/^/| /' conftest.$ac_ext >&5
17054
17055bfd_cv_decl_needed_realloc=yes
3862412b 17056fi
bec39cab 17057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17058fi
17059
bec39cab
AC
17060echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
17061echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
97bf5e38 17062if test $bfd_cv_decl_needed_realloc = yes; then
bec39cab
AC
17063
17064cat >>confdefs.h <<\_ACEOF
97bf5e38 17065#define NEED_DECLARATION_REALLOC 1
bec39cab 17066_ACEOF
3862412b 17067
97bf5e38 17068fi
3862412b 17069
bec39cab
AC
17070echo "$as_me:$LINENO: checking whether free must be declared" >&5
17071echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
17072if test "${bfd_cv_decl_needed_free+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17074else
bec39cab
AC
17075 cat >conftest.$ac_ext <<_ACEOF
17076/* confdefs.h. */
17077_ACEOF
17078cat confdefs.h >>conftest.$ac_ext
17079cat >>conftest.$ac_ext <<_ACEOF
17080/* end confdefs.h. */
e17bf198 17081
97bf5e38
MK
17082#include <stdio.h>
17083#ifdef HAVE_STRING_H
17084#include <string.h>
17085#else
17086#ifdef HAVE_STRINGS_H
17087#include <strings.h>
17088#endif
17089#endif
17090#ifdef HAVE_STDLIB_H
17091#include <stdlib.h>
17092#endif
17093#ifdef HAVE_UNISTD_H
17094#include <unistd.h>
17095#endif
bec39cab
AC
17096int
17097main ()
17098{
97bf5e38 17099char *(*pfn) = (char *(*)) free
bec39cab
AC
17100 ;
17101 return 0;
17102}
17103_ACEOF
17104rm -f conftest.$ac_objext
17105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17106 (eval $ac_compile) 2>conftest.er1
17107 ac_status=$?
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest.$ac_objext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
97bf5e38 17126 bfd_cv_decl_needed_free=no
451928c5 17127else
bec39cab
AC
17128 echo "$as_me: failed program was:" >&5
17129sed 's/^/| /' conftest.$ac_ext >&5
17130
17131bfd_cv_decl_needed_free=yes
451928c5 17132fi
bec39cab 17133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17134fi
17135
bec39cab
AC
17136echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
17137echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
97bf5e38 17138if test $bfd_cv_decl_needed_free = yes; then
bec39cab
AC
17139
17140cat >>confdefs.h <<\_ACEOF
97bf5e38 17141#define NEED_DECLARATION_FREE 1
bec39cab 17142_ACEOF
451928c5 17143
97bf5e38 17144fi
451928c5 17145
bec39cab
AC
17146echo "$as_me:$LINENO: checking whether strerror must be declared" >&5
17147echo $ECHO_N "checking whether strerror must be declared... $ECHO_C" >&6
17148if test "${bfd_cv_decl_needed_strerror+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17150else
bec39cab
AC
17151 cat >conftest.$ac_ext <<_ACEOF
17152/* confdefs.h. */
17153_ACEOF
17154cat confdefs.h >>conftest.$ac_ext
17155cat >>conftest.$ac_ext <<_ACEOF
17156/* end confdefs.h. */
e17bf198 17157
97bf5e38
MK
17158#include <stdio.h>
17159#ifdef HAVE_STRING_H
17160#include <string.h>
17161#else
17162#ifdef HAVE_STRINGS_H
17163#include <strings.h>
17164#endif
17165#endif
17166#ifdef HAVE_STDLIB_H
17167#include <stdlib.h>
17168#endif
17169#ifdef HAVE_UNISTD_H
17170#include <unistd.h>
17171#endif
bec39cab
AC
17172int
17173main ()
17174{
97bf5e38 17175char *(*pfn) = (char *(*)) strerror
bec39cab
AC
17176 ;
17177 return 0;
17178}
17179_ACEOF
17180rm -f conftest.$ac_objext
17181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17182 (eval $ac_compile) 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag"
17190 || test ! -s conftest.err'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } &&
17196 { ac_try='test -s conftest.$ac_objext'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
97bf5e38 17202 bfd_cv_decl_needed_strerror=no
451928c5 17203else
bec39cab
AC
17204 echo "$as_me: failed program was:" >&5
17205sed 's/^/| /' conftest.$ac_ext >&5
17206
17207bfd_cv_decl_needed_strerror=yes
451928c5 17208fi
bec39cab 17209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17210fi
17211
bec39cab
AC
17212echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strerror" >&5
17213echo "${ECHO_T}$bfd_cv_decl_needed_strerror" >&6
97bf5e38 17214if test $bfd_cv_decl_needed_strerror = yes; then
bec39cab
AC
17215
17216cat >>confdefs.h <<\_ACEOF
97bf5e38 17217#define NEED_DECLARATION_STRERROR 1
bec39cab 17218_ACEOF
451928c5 17219
97bf5e38 17220fi
451928c5 17221
bec39cab
AC
17222echo "$as_me:$LINENO: checking whether strdup must be declared" >&5
17223echo $ECHO_N "checking whether strdup must be declared... $ECHO_C" >&6
17224if test "${bfd_cv_decl_needed_strdup+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17226else
bec39cab
AC
17227 cat >conftest.$ac_ext <<_ACEOF
17228/* confdefs.h. */
17229_ACEOF
17230cat confdefs.h >>conftest.$ac_ext
17231cat >>conftest.$ac_ext <<_ACEOF
17232/* end confdefs.h. */
e17bf198 17233
97bf5e38
MK
17234#include <stdio.h>
17235#ifdef HAVE_STRING_H
17236#include <string.h>
17237#else
17238#ifdef HAVE_STRINGS_H
17239#include <strings.h>
17240#endif
17241#endif
17242#ifdef HAVE_STDLIB_H
17243#include <stdlib.h>
17244#endif
17245#ifdef HAVE_UNISTD_H
17246#include <unistd.h>
17247#endif
bec39cab
AC
17248int
17249main ()
17250{
97bf5e38 17251char *(*pfn) = (char *(*)) strdup
bec39cab
AC
17252 ;
17253 return 0;
17254}
17255_ACEOF
17256rm -f conftest.$ac_objext
17257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17258 (eval $ac_compile) 2>conftest.er1
17259 ac_status=$?
17260 grep -v '^ *+' conftest.er1 >conftest.err
17261 rm -f conftest.er1
17262 cat conftest.err >&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } &&
17265 { ac_try='test -z "$ac_c_werror_flag"
17266 || test ! -s conftest.err'
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } &&
17272 { ac_try='test -s conftest.$ac_objext'
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274 (eval $ac_try) 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
97bf5e38 17278 bfd_cv_decl_needed_strdup=no
3862412b 17279else
bec39cab
AC
17280 echo "$as_me: failed program was:" >&5
17281sed 's/^/| /' conftest.$ac_ext >&5
17282
17283bfd_cv_decl_needed_strdup=yes
3862412b 17284fi
bec39cab 17285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17286fi
17287
bec39cab
AC
17288echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strdup" >&5
17289echo "${ECHO_T}$bfd_cv_decl_needed_strdup" >&6
97bf5e38 17290if test $bfd_cv_decl_needed_strdup = yes; then
bec39cab
AC
17291
17292cat >>confdefs.h <<\_ACEOF
97bf5e38 17293#define NEED_DECLARATION_STRDUP 1
bec39cab 17294_ACEOF
3862412b 17295
97bf5e38 17296fi
3862412b 17297
bec39cab
AC
17298echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
17299echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
17300if test "${bfd_cv_decl_needed_strstr+set}" = set; then
17301 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17302else
bec39cab
AC
17303 cat >conftest.$ac_ext <<_ACEOF
17304/* confdefs.h. */
17305_ACEOF
17306cat confdefs.h >>conftest.$ac_ext
17307cat >>conftest.$ac_ext <<_ACEOF
17308/* end confdefs.h. */
e17bf198 17309
97bf5e38
MK
17310#include <stdio.h>
17311#ifdef HAVE_STRING_H
17312#include <string.h>
17313#else
17314#ifdef HAVE_STRINGS_H
17315#include <strings.h>
17316#endif
17317#endif
17318#ifdef HAVE_STDLIB_H
17319#include <stdlib.h>
17320#endif
17321#ifdef HAVE_UNISTD_H
17322#include <unistd.h>
17323#endif
bec39cab
AC
17324int
17325main ()
17326{
97bf5e38 17327char *(*pfn) = (char *(*)) strstr
bec39cab
AC
17328 ;
17329 return 0;
17330}
17331_ACEOF
17332rm -f conftest.$ac_objext
17333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17334 (eval $ac_compile) 2>conftest.er1
17335 ac_status=$?
17336 grep -v '^ *+' conftest.er1 >conftest.err
17337 rm -f conftest.er1
17338 cat conftest.err >&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
17341 { ac_try='test -z "$ac_c_werror_flag"
17342 || test ! -s conftest.err'
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; } &&
17348 { ac_try='test -s conftest.$ac_objext'
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
97bf5e38 17354 bfd_cv_decl_needed_strstr=no
3862412b 17355else
bec39cab
AC
17356 echo "$as_me: failed program was:" >&5
17357sed 's/^/| /' conftest.$ac_ext >&5
17358
17359bfd_cv_decl_needed_strstr=yes
3862412b 17360fi
bec39cab 17361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17362fi
17363
bec39cab
AC
17364echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
17365echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
97bf5e38 17366if test $bfd_cv_decl_needed_strstr = yes; then
bec39cab
AC
17367
17368cat >>confdefs.h <<\_ACEOF
97bf5e38 17369#define NEED_DECLARATION_STRSTR 1
bec39cab 17370_ACEOF
3862412b 17371
97bf5e38 17372fi
3862412b 17373
bec39cab
AC
17374echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
17375echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
17376if test "${bfd_cv_decl_needed_canonicalize_file_name+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17378else
bec39cab
AC
17379 cat >conftest.$ac_ext <<_ACEOF
17380/* confdefs.h. */
17381_ACEOF
17382cat confdefs.h >>conftest.$ac_ext
17383cat >>conftest.$ac_ext <<_ACEOF
17384/* end confdefs.h. */
596c9d4b 17385
97bf5e38
MK
17386#include <stdio.h>
17387#ifdef HAVE_STRING_H
17388#include <string.h>
17389#else
17390#ifdef HAVE_STRINGS_H
17391#include <strings.h>
17392#endif
17393#endif
17394#ifdef HAVE_STDLIB_H
17395#include <stdlib.h>
17396#endif
17397#ifdef HAVE_UNISTD_H
17398#include <unistd.h>
17399#endif
bec39cab
AC
17400int
17401main ()
17402{
97bf5e38 17403char *(*pfn) = (char *(*)) canonicalize_file_name
bec39cab
AC
17404 ;
17405 return 0;
17406}
17407_ACEOF
17408rm -f conftest.$ac_objext
17409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17410 (eval $ac_compile) 2>conftest.er1
17411 ac_status=$?
17412 grep -v '^ *+' conftest.er1 >conftest.err
17413 rm -f conftest.er1
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_c_werror_flag"
17418 || test ! -s conftest.err'
17419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420 (eval $ac_try) 2>&5
17421 ac_status=$?
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; } &&
17424 { ac_try='test -s conftest.$ac_objext'
17425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426 (eval $ac_try) 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; }; then
97bf5e38 17430 bfd_cv_decl_needed_canonicalize_file_name=no
596c9d4b 17431else
bec39cab
AC
17432 echo "$as_me: failed program was:" >&5
17433sed 's/^/| /' conftest.$ac_ext >&5
17434
17435bfd_cv_decl_needed_canonicalize_file_name=yes
596c9d4b 17436fi
bec39cab 17437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17438fi
17439
bec39cab
AC
17440echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_canonicalize_file_name" >&5
17441echo "${ECHO_T}$bfd_cv_decl_needed_canonicalize_file_name" >&6
97bf5e38 17442if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
bec39cab
AC
17443
17444cat >>confdefs.h <<\_ACEOF
97bf5e38 17445#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
bec39cab 17446_ACEOF
596c9d4b 17447
97bf5e38 17448fi
596c9d4b 17449
97bf5e38 17450
bec39cab
AC
17451# The following save_state_t checkery is only necessary for HPUX
17452# versions earlier than 10.20. When those fade from memory, this
97bf5e38
MK
17453# could be expunged. --jsm 1999-03-22
17454
bec39cab
AC
17455echo "$as_me:$LINENO: checking for HPUX save_state structure" >&5
17456echo $ECHO_N "checking for HPUX save_state structure... $ECHO_C" >&6
17457cat >conftest.$ac_ext <<_ACEOF
17458/* confdefs.h. */
17459_ACEOF
17460cat confdefs.h >>conftest.$ac_ext
17461cat >>conftest.$ac_ext <<_ACEOF
17462/* end confdefs.h. */
97bf5e38 17463#include <machine/save_state.h>
bec39cab
AC
17464
17465_ACEOF
97bf5e38 17466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 17467 $EGREP "save_state_t" >/dev/null 2>&1; then
97bf5e38
MK
17468 gdb_cv_hpux_savestate=yes
17469else
97bf5e38
MK
17470 gdb_cv_hpux_savestate=no
17471fi
17472rm -f conftest*
17473
bec39cab
AC
17474cat >conftest.$ac_ext <<_ACEOF
17475/* confdefs.h. */
17476_ACEOF
17477cat confdefs.h >>conftest.$ac_ext
17478cat >>conftest.$ac_ext <<_ACEOF
17479/* end confdefs.h. */
97bf5e38 17480#include <machine/save_state.h>
bec39cab
AC
17481
17482_ACEOF
97bf5e38 17483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 17484 $EGREP "ss_wide" >/dev/null 2>&1; then
97bf5e38
MK
17485 gdb_cv_hpux_sswide=yes
17486else
97bf5e38
MK
17487 gdb_cv_hpux_sswide=no
17488fi
17489rm -f conftest*
17490
17491if test $gdb_cv_hpux_savestate = yes
17492then
bec39cab 17493 cat >>confdefs.h <<\_ACEOF
97bf5e38 17494#define HAVE_STRUCT_SAVE_STATE_T 1
bec39cab 17495_ACEOF
97bf5e38
MK
17496
17497fi
17498if test $gdb_cv_hpux_sswide = yes
17499then
bec39cab 17500 cat >>confdefs.h <<\_ACEOF
97bf5e38 17501#define HAVE_STRUCT_MEMBER_SS_WIDE 1
bec39cab 17502_ACEOF
97bf5e38
MK
17503
17504fi
bec39cab
AC
17505echo "$as_me:$LINENO: result: $gdb_cv_hpux_sswide" >&5
17506echo "${ECHO_T}$gdb_cv_hpux_sswide" >&6
97bf5e38
MK
17507
17508
17509# If we are configured native on GNU/Linux, work around problems with
17510# sys/procfs.h
17511# Also detect which type of /proc is in use, such as for Unixware or Solaris.
17512
17513if test "${target}" = "${host}"; then
17514 case "${host}" in
17515 i[3456]86-*-linux*)
bec39cab 17516 cat >>confdefs.h <<\_ACEOF
97bf5e38 17517#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 17518_ACEOF
97bf5e38 17519
bec39cab 17520 cat >>confdefs.h <<\_ACEOF
97bf5e38 17521#define sys_quotactl 1
bec39cab 17522_ACEOF
97bf5e38
MK
17523
17524 ;;
17525 ia64-*-aix*)
bec39cab 17526 cat >>confdefs.h <<\_ACEOF
97bf5e38 17527#define NEW_PROC_API 1
bec39cab 17528_ACEOF
97bf5e38
MK
17529
17530 ;;
17531 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
bec39cab 17532 cat >>confdefs.h <<\_ACEOF
97bf5e38 17533#define NEW_PROC_API 1
bec39cab 17534_ACEOF
97bf5e38
MK
17535
17536 ;;
0bbc026e 17537 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
bec39cab 17538 cat >>confdefs.h <<\_ACEOF
97bf5e38 17539#define NEW_PROC_API 1
bec39cab 17540_ACEOF
c960c18f
AC
17541
17542 ;;
17543 mips-sgi-irix5*)
17544 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
bec39cab 17545 cat >>confdefs.h <<\_ACEOF
c960c18f 17546#define _KMEMUSER 1
bec39cab 17547_ACEOF
97bf5e38
MK
17548
17549 ;;
17550 esac
17551fi
17552
17553if test "$ac_cv_header_sys_procfs_h" = yes; then
bec39cab
AC
17554 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17555echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17556 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17558else
17559 cat >conftest.$ac_ext <<_ACEOF
17560/* confdefs.h. */
17561_ACEOF
17562cat confdefs.h >>conftest.$ac_ext
17563cat >>conftest.$ac_ext <<_ACEOF
17564/* end confdefs.h. */
596c9d4b
KB
17565
17566#define _SYSCALL32
17567#include <sys/procfs.h>
bec39cab
AC
17568int
17569main ()
17570{
97bf5e38 17571pstatus_t avar
bec39cab
AC
17572 ;
17573 return 0;
17574}
17575_ACEOF
17576rm -f conftest.$ac_objext
17577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17578 (eval $ac_compile) 2>conftest.er1
17579 ac_status=$?
17580 grep -v '^ *+' conftest.er1 >conftest.err
17581 rm -f conftest.er1
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } &&
17585 { ac_try='test -z "$ac_c_werror_flag"
17586 || test ! -s conftest.err'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; } &&
17592 { ac_try='test -s conftest.$ac_objext'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
97bf5e38 17598 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 17599else
bec39cab
AC
17600 echo "$as_me: failed program was:" >&5
17601sed 's/^/| /' conftest.$ac_ext >&5
17602
17603bfd_cv_have_sys_procfs_type_pstatus_t=no
17604
596c9d4b 17605fi
bec39cab 17606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17607fi
17608
97bf5e38 17609 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
17610
17611cat >>confdefs.h <<\_ACEOF
97bf5e38 17612#define HAVE_PSTATUS_T 1
bec39cab 17613_ACEOF
596c9d4b
KB
17614
17615 fi
bec39cab
AC
17616 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17617echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 17618
bec39cab
AC
17619 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17620echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17621 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17623else
bec39cab
AC
17624 cat >conftest.$ac_ext <<_ACEOF
17625/* confdefs.h. */
17626_ACEOF
17627cat confdefs.h >>conftest.$ac_ext
17628cat >>conftest.$ac_ext <<_ACEOF
17629/* end confdefs.h. */
596c9d4b
KB
17630
17631#define _SYSCALL32
17632#include <sys/procfs.h>
bec39cab
AC
17633int
17634main ()
17635{
97bf5e38 17636prrun_t avar
bec39cab
AC
17637 ;
17638 return 0;
17639}
17640_ACEOF
17641rm -f conftest.$ac_objext
17642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17643 (eval $ac_compile) 2>conftest.er1
17644 ac_status=$?
17645 grep -v '^ *+' conftest.er1 >conftest.err
17646 rm -f conftest.er1
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
17650 { ac_try='test -z "$ac_c_werror_flag"
17651 || test ! -s conftest.err'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; } &&
17657 { ac_try='test -s conftest.$ac_objext'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
97bf5e38 17663 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 17664else
bec39cab
AC
17665 echo "$as_me: failed program was:" >&5
17666sed 's/^/| /' conftest.$ac_ext >&5
17667
17668bfd_cv_have_sys_procfs_type_prrun_t=no
17669
596c9d4b 17670fi
bec39cab 17671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17672fi
17673
97bf5e38 17674 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
17675
17676cat >>confdefs.h <<\_ACEOF
97bf5e38 17677#define HAVE_PRRUN_T 1
bec39cab 17678_ACEOF
596c9d4b
KB
17679
17680 fi
bec39cab
AC
17681 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17682echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 17683
bec39cab
AC
17684 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17685echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17686 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17688else
bec39cab
AC
17689 cat >conftest.$ac_ext <<_ACEOF
17690/* confdefs.h. */
17691_ACEOF
17692cat confdefs.h >>conftest.$ac_ext
17693cat >>conftest.$ac_ext <<_ACEOF
17694/* end confdefs.h. */
596c9d4b
KB
17695
17696#define _SYSCALL32
17697#include <sys/procfs.h>
bec39cab
AC
17698int
17699main ()
17700{
97bf5e38 17701gregset_t avar
bec39cab
AC
17702 ;
17703 return 0;
17704}
17705_ACEOF
17706rm -f conftest.$ac_objext
17707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17708 (eval $ac_compile) 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag"
17716 || test ! -s conftest.err'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest.$ac_objext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
97bf5e38 17728 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 17729else
bec39cab
AC
17730 echo "$as_me: failed program was:" >&5
17731sed 's/^/| /' conftest.$ac_ext >&5
17732
17733bfd_cv_have_sys_procfs_type_gregset_t=no
17734
596c9d4b 17735fi
bec39cab 17736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17737fi
17738
97bf5e38 17739 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
17740
17741cat >>confdefs.h <<\_ACEOF
97bf5e38 17742#define HAVE_GREGSET_T 1
bec39cab 17743_ACEOF
596c9d4b
KB
17744
17745 fi
bec39cab
AC
17746 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17747echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 17748
bec39cab
AC
17749 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17750echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17751 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 17753else
bec39cab
AC
17754 cat >conftest.$ac_ext <<_ACEOF
17755/* confdefs.h. */
17756_ACEOF
17757cat confdefs.h >>conftest.$ac_ext
17758cat >>conftest.$ac_ext <<_ACEOF
17759/* end confdefs.h. */
97bf5e38
MK
17760
17761#define _SYSCALL32
d84dd0c5 17762#include <sys/procfs.h>
bec39cab
AC
17763int
17764main ()
17765{
97bf5e38 17766fpregset_t avar
bec39cab
AC
17767 ;
17768 return 0;
17769}
17770_ACEOF
17771rm -f conftest.$ac_objext
17772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17773 (eval $ac_compile) 2>conftest.er1
17774 ac_status=$?
17775 grep -v '^ *+' conftest.er1 >conftest.err
17776 rm -f conftest.er1
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
17780 { ac_try='test -z "$ac_c_werror_flag"
17781 || test ! -s conftest.err'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; } &&
17787 { ac_try='test -s conftest.$ac_objext'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
97bf5e38 17793 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 17794else
bec39cab
AC
17795 echo "$as_me: failed program was:" >&5
17796sed 's/^/| /' conftest.$ac_ext >&5
17797
17798bfd_cv_have_sys_procfs_type_fpregset_t=no
17799
d84dd0c5 17800fi
bec39cab 17801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
17802fi
17803
97bf5e38 17804 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
17805
17806cat >>confdefs.h <<\_ACEOF
97bf5e38 17807#define HAVE_FPREGSET_T 1
bec39cab 17808_ACEOF
d84dd0c5 17809
97bf5e38 17810 fi
bec39cab
AC
17811 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17812echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 17813
bec39cab
AC
17814 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17815echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17816 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 17818else
bec39cab
AC
17819 cat >conftest.$ac_ext <<_ACEOF
17820/* confdefs.h. */
17821_ACEOF
17822cat confdefs.h >>conftest.$ac_ext
17823cat >>conftest.$ac_ext <<_ACEOF
17824/* end confdefs.h. */
c906108c 17825
97bf5e38
MK
17826#define _SYSCALL32
17827#include <sys/procfs.h>
bec39cab
AC
17828int
17829main ()
17830{
97bf5e38 17831prgregset_t avar
bec39cab
AC
17832 ;
17833 return 0;
17834}
17835_ACEOF
17836rm -f conftest.$ac_objext
17837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17838 (eval $ac_compile) 2>conftest.er1
17839 ac_status=$?
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag"
17846 || test ! -s conftest.err'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; } &&
17852 { ac_try='test -s conftest.$ac_objext'
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
97bf5e38 17858 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 17859else
bec39cab
AC
17860 echo "$as_me: failed program was:" >&5
17861sed 's/^/| /' conftest.$ac_ext >&5
17862
17863bfd_cv_have_sys_procfs_type_prgregset_t=no
17864
c906108c 17865fi
bec39cab 17866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
17867fi
17868
97bf5e38 17869 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
17870
17871cat >>confdefs.h <<\_ACEOF
97bf5e38 17872#define HAVE_PRGREGSET_T 1
bec39cab 17873_ACEOF
c906108c 17874
97bf5e38 17875 fi
bec39cab
AC
17876 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17877echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 17878
bec39cab
AC
17879 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17880echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17881 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 17883else
bec39cab
AC
17884 cat >conftest.$ac_ext <<_ACEOF
17885/* confdefs.h. */
17886_ACEOF
17887cat confdefs.h >>conftest.$ac_ext
17888cat >>conftest.$ac_ext <<_ACEOF
17889/* end confdefs.h. */
97bf5e38
MK
17890
17891#define _SYSCALL32
17892#include <sys/procfs.h>
bec39cab
AC
17893int
17894main ()
17895{
97bf5e38 17896prfpregset_t avar
bec39cab
AC
17897 ;
17898 return 0;
17899}
17900_ACEOF
17901rm -f conftest.$ac_objext
17902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17903 (eval $ac_compile) 2>conftest.er1
17904 ac_status=$?
17905 grep -v '^ *+' conftest.er1 >conftest.err
17906 rm -f conftest.er1
17907 cat conftest.err >&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } &&
17910 { ac_try='test -z "$ac_c_werror_flag"
17911 || test ! -s conftest.err'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try='test -s conftest.$ac_objext'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17920 ac_status=$?
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; }; then
97bf5e38 17923 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 17924else
bec39cab
AC
17925 echo "$as_me: failed program was:" >&5
17926sed 's/^/| /' conftest.$ac_ext >&5
17927
17928bfd_cv_have_sys_procfs_type_prfpregset_t=no
17929
d45fe813 17930fi
bec39cab 17931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
17932fi
17933
97bf5e38 17934 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
17935
17936cat >>confdefs.h <<\_ACEOF
97bf5e38 17937#define HAVE_PRFPREGSET_T 1
bec39cab 17938_ACEOF
d45fe813 17939
97bf5e38 17940 fi
bec39cab
AC
17941 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17942echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 17943
bec39cab
AC
17944 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17945echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17946 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 17948else
bec39cab
AC
17949 cat >conftest.$ac_ext <<_ACEOF
17950/* confdefs.h. */
17951_ACEOF
17952cat confdefs.h >>conftest.$ac_ext
17953cat >>conftest.$ac_ext <<_ACEOF
17954/* end confdefs.h. */
97bf5e38
MK
17955
17956#define _SYSCALL32
17957#include <sys/procfs.h>
bec39cab
AC
17958int
17959main ()
17960{
97bf5e38 17961prgregset32_t avar
bec39cab
AC
17962 ;
17963 return 0;
17964}
17965_ACEOF
17966rm -f conftest.$ac_objext
17967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17968 (eval $ac_compile) 2>conftest.er1
17969 ac_status=$?
17970 grep -v '^ *+' conftest.er1 >conftest.err
17971 rm -f conftest.er1
17972 cat conftest.err >&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } &&
17975 { ac_try='test -z "$ac_c_werror_flag"
17976 || test ! -s conftest.err'
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17979 ac_status=$?
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; } &&
17982 { ac_try='test -s conftest.$ac_objext'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17985 ac_status=$?
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; }; then
97bf5e38 17988 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 17989else
bec39cab
AC
17990 echo "$as_me: failed program was:" >&5
17991sed 's/^/| /' conftest.$ac_ext >&5
17992
17993bfd_cv_have_sys_procfs_type_prgregset32_t=no
17994
d45fe813 17995fi
bec39cab 17996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
17997fi
17998
97bf5e38 17999 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
18000
18001cat >>confdefs.h <<\_ACEOF
97bf5e38 18002#define HAVE_PRGREGSET32_T 1
bec39cab 18003_ACEOF
d45fe813 18004
97bf5e38 18005 fi
bec39cab
AC
18006 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18007echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 18008
bec39cab
AC
18009 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18010echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18011 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18013else
bec39cab
AC
18014 cat >conftest.$ac_ext <<_ACEOF
18015/* confdefs.h. */
18016_ACEOF
18017cat confdefs.h >>conftest.$ac_ext
18018cat >>conftest.$ac_ext <<_ACEOF
18019/* end confdefs.h. */
97bf5e38
MK
18020
18021#define _SYSCALL32
18022#include <sys/procfs.h>
bec39cab
AC
18023int
18024main ()
18025{
97bf5e38 18026prfpregset32_t avar
bec39cab
AC
18027 ;
18028 return 0;
18029}
18030_ACEOF
18031rm -f conftest.$ac_objext
18032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18033 (eval $ac_compile) 2>conftest.er1
18034 ac_status=$?
18035 grep -v '^ *+' conftest.er1 >conftest.err
18036 rm -f conftest.er1
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
18040 { ac_try='test -z "$ac_c_werror_flag"
18041 || test ! -s conftest.err'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; } &&
18047 { ac_try='test -s conftest.$ac_objext'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
97bf5e38 18053 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 18054else
bec39cab
AC
18055 echo "$as_me: failed program was:" >&5
18056sed 's/^/| /' conftest.$ac_ext >&5
18057
18058bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18059
d45fe813 18060fi
bec39cab 18061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18062fi
18063
97bf5e38 18064 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
18065
18066cat >>confdefs.h <<\_ACEOF
97bf5e38 18067#define HAVE_PRFPREGSET32_T 1
bec39cab 18068_ACEOF
d45fe813 18069
97bf5e38 18070 fi
bec39cab
AC
18071 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18072echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 18073
bec39cab
AC
18074 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18075echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18076 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18078else
bec39cab
AC
18079 cat >conftest.$ac_ext <<_ACEOF
18080/* confdefs.h. */
18081_ACEOF
18082cat confdefs.h >>conftest.$ac_ext
18083cat >>conftest.$ac_ext <<_ACEOF
18084/* end confdefs.h. */
97bf5e38 18085
d45fe813 18086#define _SYSCALL32
97bf5e38 18087#include <sys/procfs.h>
bec39cab
AC
18088int
18089main ()
18090{
97bf5e38 18091lwpid_t avar
bec39cab
AC
18092 ;
18093 return 0;
18094}
18095_ACEOF
18096rm -f conftest.$ac_objext
18097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18098 (eval $ac_compile) 2>conftest.er1
18099 ac_status=$?
18100 grep -v '^ *+' conftest.er1 >conftest.err
18101 rm -f conftest.er1
18102 cat conftest.err >&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
18105 { ac_try='test -z "$ac_c_werror_flag"
18106 || test ! -s conftest.err'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try='test -s conftest.$ac_objext'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
97bf5e38 18118 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 18119else
bec39cab
AC
18120 echo "$as_me: failed program was:" >&5
18121sed 's/^/| /' conftest.$ac_ext >&5
18122
18123bfd_cv_have_sys_procfs_type_lwpid_t=no
18124
d45fe813 18125fi
bec39cab 18126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18127fi
18128
97bf5e38 18129 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
18130
18131cat >>confdefs.h <<\_ACEOF
97bf5e38 18132#define HAVE_LWPID_T 1
bec39cab 18133_ACEOF
d45fe813 18134
97bf5e38 18135 fi
bec39cab
AC
18136 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18137echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 18138
bec39cab
AC
18139 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18140echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18141 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18142 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18143else
bec39cab
AC
18144 cat >conftest.$ac_ext <<_ACEOF
18145/* confdefs.h. */
18146_ACEOF
18147cat confdefs.h >>conftest.$ac_ext
18148cat >>conftest.$ac_ext <<_ACEOF
18149/* end confdefs.h. */
c906108c 18150
97bf5e38
MK
18151#define _SYSCALL32
18152#include <sys/procfs.h>
bec39cab
AC
18153int
18154main ()
18155{
97bf5e38 18156psaddr_t avar
bec39cab
AC
18157 ;
18158 return 0;
18159}
18160_ACEOF
18161rm -f conftest.$ac_objext
18162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18163 (eval $ac_compile) 2>conftest.er1
18164 ac_status=$?
18165 grep -v '^ *+' conftest.er1 >conftest.err
18166 rm -f conftest.er1
18167 cat conftest.err >&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
18170 { ac_try='test -z "$ac_c_werror_flag"
18171 || test ! -s conftest.err'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; } &&
18177 { ac_try='test -s conftest.$ac_objext'
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; }; then
97bf5e38 18183 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 18184else
bec39cab
AC
18185 echo "$as_me: failed program was:" >&5
18186sed 's/^/| /' conftest.$ac_ext >&5
18187
18188bfd_cv_have_sys_procfs_type_psaddr_t=no
18189
c906108c 18190fi
bec39cab 18191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18192fi
18193
97bf5e38 18194 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
18195
18196cat >>confdefs.h <<\_ACEOF
97bf5e38 18197#define HAVE_PSADDR_T 1
bec39cab 18198_ACEOF
c906108c 18199
97bf5e38 18200 fi
bec39cab
AC
18201 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18202echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 18203
bec39cab
AC
18204 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18205echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18206 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18208else
bec39cab
AC
18209 cat >conftest.$ac_ext <<_ACEOF
18210/* confdefs.h. */
18211_ACEOF
18212cat confdefs.h >>conftest.$ac_ext
18213cat >>conftest.$ac_ext <<_ACEOF
18214/* end confdefs.h. */
c906108c 18215
97bf5e38
MK
18216#define _SYSCALL32
18217#include <sys/procfs.h>
bec39cab
AC
18218int
18219main ()
18220{
97bf5e38 18221prsysent_t avar
bec39cab
AC
18222 ;
18223 return 0;
18224}
18225_ACEOF
18226rm -f conftest.$ac_objext
18227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18228 (eval $ac_compile) 2>conftest.er1
18229 ac_status=$?
18230 grep -v '^ *+' conftest.er1 >conftest.err
18231 rm -f conftest.er1
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -z "$ac_c_werror_flag"
18236 || test ! -s conftest.err'
18237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18239 ac_status=$?
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; } &&
18242 { ac_try='test -s conftest.$ac_objext'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
97bf5e38 18248 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 18249else
bec39cab
AC
18250 echo "$as_me: failed program was:" >&5
18251sed 's/^/| /' conftest.$ac_ext >&5
18252
18253bfd_cv_have_sys_procfs_type_prsysent_t=no
18254
c906108c 18255fi
bec39cab 18256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18257fi
18258
97bf5e38 18259 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
18260
18261cat >>confdefs.h <<\_ACEOF
97bf5e38 18262#define HAVE_PRSYSENT_T 1
bec39cab 18263_ACEOF
c906108c 18264
97bf5e38 18265 fi
bec39cab
AC
18266 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18267echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 18268
bec39cab
AC
18269 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18270echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18271 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18272 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18273else
bec39cab
AC
18274 cat >conftest.$ac_ext <<_ACEOF
18275/* confdefs.h. */
18276_ACEOF
18277cat confdefs.h >>conftest.$ac_ext
18278cat >>conftest.$ac_ext <<_ACEOF
18279/* end confdefs.h. */
c906108c 18280
97bf5e38
MK
18281#define _SYSCALL32
18282#include <sys/procfs.h>
bec39cab
AC
18283int
18284main ()
18285{
97bf5e38 18286pr_sigset_t avar
bec39cab
AC
18287 ;
18288 return 0;
18289}
18290_ACEOF
18291rm -f conftest.$ac_objext
18292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18293 (eval $ac_compile) 2>conftest.er1
18294 ac_status=$?
18295 grep -v '^ *+' conftest.er1 >conftest.err
18296 rm -f conftest.er1
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } &&
18300 { ac_try='test -z "$ac_c_werror_flag"
18301 || test ! -s conftest.err'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; } &&
18307 { ac_try='test -s conftest.$ac_objext'
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18310 ac_status=$?
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
97bf5e38 18313 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 18314else
bec39cab
AC
18315 echo "$as_me: failed program was:" >&5
18316sed 's/^/| /' conftest.$ac_ext >&5
18317
18318bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18319
c906108c 18320fi
bec39cab 18321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18322fi
18323
97bf5e38 18324 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
18325
18326cat >>confdefs.h <<\_ACEOF
97bf5e38 18327#define HAVE_PR_SIGSET_T 1
bec39cab 18328_ACEOF
c906108c 18329
97bf5e38 18330 fi
bec39cab
AC
18331 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18332echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 18333
bec39cab
AC
18334 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18335echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18336 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18338else
bec39cab
AC
18339 cat >conftest.$ac_ext <<_ACEOF
18340/* confdefs.h. */
18341_ACEOF
18342cat confdefs.h >>conftest.$ac_ext
18343cat >>conftest.$ac_ext <<_ACEOF
18344/* end confdefs.h. */
c906108c 18345
97bf5e38
MK
18346#define _SYSCALL32
18347#include <sys/procfs.h>
bec39cab
AC
18348int
18349main ()
18350{
97bf5e38 18351pr_sigaction64_t avar
bec39cab
AC
18352 ;
18353 return 0;
18354}
18355_ACEOF
18356rm -f conftest.$ac_objext
18357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18358 (eval $ac_compile) 2>conftest.er1
18359 ac_status=$?
18360 grep -v '^ *+' conftest.er1 >conftest.err
18361 rm -f conftest.er1
18362 cat conftest.err >&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } &&
18365 { ac_try='test -z "$ac_c_werror_flag"
18366 || test ! -s conftest.err'
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18369 ac_status=$?
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; } &&
18372 { ac_try='test -s conftest.$ac_objext'
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
18375 ac_status=$?
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; }; then
97bf5e38 18378 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 18379else
bec39cab
AC
18380 echo "$as_me: failed program was:" >&5
18381sed 's/^/| /' conftest.$ac_ext >&5
18382
18383bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18384
c906108c 18385fi
bec39cab 18386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18387fi
18388
97bf5e38 18389 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
18390
18391cat >>confdefs.h <<\_ACEOF
97bf5e38 18392#define HAVE_PR_SIGACTION64_T 1
bec39cab 18393_ACEOF
c906108c 18394
97bf5e38 18395 fi
bec39cab
AC
18396 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18397echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 18398
bec39cab
AC
18399 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18400echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18401 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18403else
bec39cab
AC
18404 cat >conftest.$ac_ext <<_ACEOF
18405/* confdefs.h. */
18406_ACEOF
18407cat confdefs.h >>conftest.$ac_ext
18408cat >>conftest.$ac_ext <<_ACEOF
18409/* end confdefs.h. */
97bf5e38
MK
18410
18411#define _SYSCALL32
18412#include <sys/procfs.h>
bec39cab
AC
18413int
18414main ()
18415{
97bf5e38 18416pr_siginfo64_t avar
bec39cab
AC
18417 ;
18418 return 0;
18419}
18420_ACEOF
18421rm -f conftest.$ac_objext
18422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18423 (eval $ac_compile) 2>conftest.er1
18424 ac_status=$?
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
18430 { ac_try='test -z "$ac_c_werror_flag"
18431 || test ! -s conftest.err'
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest.$ac_objext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
97bf5e38
MK
18443 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18444else
bec39cab
AC
18445 echo "$as_me: failed program was:" >&5
18446sed 's/^/| /' conftest.$ac_ext >&5
18447
18448bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18449
97bf5e38 18450fi
bec39cab 18451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18452fi
c906108c 18453
97bf5e38 18454 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
18455
18456cat >>confdefs.h <<\_ACEOF
97bf5e38 18457#define HAVE_PR_SIGINFO64_T 1
bec39cab 18458_ACEOF
c906108c 18459
97bf5e38 18460 fi
bec39cab
AC
18461 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18462echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18463
18464
97bf5e38
MK
18465
18466
18467
97bf5e38 18468 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18469 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18470echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18471 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
18473else
18474 if test "$cross_compiling" = yes; then
97bf5e38 18475 gdb_cv_prfpregset_t_broken=yes
c906108c 18476else
bec39cab
AC
18477 cat >conftest.$ac_ext <<_ACEOF
18478/* confdefs.h. */
18479_ACEOF
18480cat confdefs.h >>conftest.$ac_ext
18481cat >>conftest.$ac_ext <<_ACEOF
18482/* end confdefs.h. */
97bf5e38
MK
18483#include <sys/procfs.h>
18484 int main ()
18485 {
18486 if (sizeof (prfpregset_t) == sizeof (void *))
18487 return 1;
18488 return 0;
18489 }
bec39cab
AC
18490_ACEOF
18491rm -f conftest$ac_exeext
18492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18493 (eval $ac_link) 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18499 ac_status=$?
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; }; then
97bf5e38 18502 gdb_cv_prfpregset_t_broken=no
c906108c 18503else
bec39cab
AC
18504 echo "$as_me: program exited with status $ac_status" >&5
18505echo "$as_me: failed program was:" >&5
18506sed 's/^/| /' conftest.$ac_ext >&5
18507
18508( exit $ac_status )
18509gdb_cv_prfpregset_t_broken=yes
c906108c 18510fi
bec39cab 18511rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 18512fi
c906108c
SS
18513fi
18514
bec39cab
AC
18515 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18516echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 18517 if test $gdb_cv_prfpregset_t_broken = yes; then
bec39cab 18518 cat >>confdefs.h <<\_ACEOF
97bf5e38 18519#define PRFPREGSET_T_BROKEN 1
bec39cab 18520_ACEOF
c906108c 18521
97bf5e38
MK
18522 fi
18523 fi
c906108c 18524
bec39cab
AC
18525
18526 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18527echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18528 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18530else
bec39cab
AC
18531 cat >conftest.$ac_ext <<_ACEOF
18532/* confdefs.h. */
18533_ACEOF
18534cat confdefs.h >>conftest.$ac_ext
18535cat >>conftest.$ac_ext <<_ACEOF
18536/* end confdefs.h. */
97bf5e38
MK
18537#include <unistd.h>
18538#include <sys/types.h>
18539#include <sys/procfs.h>
18540
bec39cab
AC
18541int
18542main ()
18543{
97bf5e38
MK
18544
18545 int dummy;;
18546 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
18547
18548 ;
18549 return 0;
18550}
18551_ACEOF
18552rm -f conftest.$ac_objext
18553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18554 (eval $ac_compile) 2>conftest.er1
18555 ac_status=$?
18556 grep -v '^ *+' conftest.er1 >conftest.err
18557 rm -f conftest.er1
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } &&
18561 { ac_try='test -z "$ac_c_werror_flag"
18562 || test ! -s conftest.err'
18563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564 (eval $ac_try) 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; } &&
18568 { ac_try='test -s conftest.$ac_objext'
18569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570 (eval $ac_try) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); }; }; then
97bf5e38 18574 gdb_cv_have_procfs_piocset=yes
c906108c 18575else
bec39cab
AC
18576 echo "$as_me: failed program was:" >&5
18577sed 's/^/| /' conftest.$ac_ext >&5
18578
18579gdb_cv_have_procfs_piocset=no
c906108c 18580fi
bec39cab 18581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18582fi
97bf5e38 18583
bec39cab
AC
18584 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18585echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 18586 if test $gdb_cv_have_procfs_piocset = yes; then
bec39cab 18587 cat >>confdefs.h <<\_ACEOF
97bf5e38 18588#define HAVE_PROCFS_PIOCSET 1
bec39cab 18589_ACEOF
97bf5e38
MK
18590
18591 fi
c906108c 18592fi
c906108c 18593
97bf5e38 18594if test ${host} = ${target} ; then
bec39cab
AC
18595
18596 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18597echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18598 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18600else
18601 cat >conftest.$ac_ext <<_ACEOF
18602/* confdefs.h. */
18603_ACEOF
18604cat confdefs.h >>conftest.$ac_ext
18605cat >>conftest.$ac_ext <<_ACEOF
18606/* end confdefs.h. */
97bf5e38 18607#include <link.h>
bec39cab
AC
18608int
18609main ()
18610{
97bf5e38 18611struct link_map lm; (void) lm.l_addr;
bec39cab
AC
18612 ;
18613 return 0;
18614}
18615_ACEOF
18616rm -f conftest.$ac_objext
18617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18618 (eval $ac_compile) 2>conftest.er1
18619 ac_status=$?
18620 grep -v '^ *+' conftest.er1 >conftest.err
18621 rm -f conftest.er1
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -z "$ac_c_werror_flag"
18626 || test ! -s conftest.err'
18627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628 (eval $ac_try) 2>&5
18629 ac_status=$?
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; } &&
18632 { ac_try='test -s conftest.$ac_objext'
18633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634 (eval $ac_try) 2>&5
18635 ac_status=$?
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); }; }; then
97bf5e38 18638 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 18639else
bec39cab
AC
18640 echo "$as_me: failed program was:" >&5
18641sed 's/^/| /' conftest.$ac_ext >&5
18642
18643gdb_cv_have_struct_link_map_with_l_members=no
c906108c 18644fi
bec39cab 18645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18646fi
18647
bec39cab
AC
18648 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18649echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 18650 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
bec39cab 18651 cat >>confdefs.h <<\_ACEOF
97bf5e38 18652#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 18653_ACEOF
97bf5e38
MK
18654
18655 fi
18656
bec39cab
AC
18657
18658 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18659echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18660 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18662else
bec39cab
AC
18663 cat >conftest.$ac_ext <<_ACEOF
18664/* confdefs.h. */
18665_ACEOF
18666cat confdefs.h >>conftest.$ac_ext
18667cat >>conftest.$ac_ext <<_ACEOF
18668/* end confdefs.h. */
97bf5e38
MK
18669#include <sys/types.h>
18670#include <link.h>
bec39cab
AC
18671int
18672main ()
18673{
97bf5e38 18674struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
18675 ;
18676 return 0;
18677}
18678_ACEOF
18679rm -f conftest.$ac_objext
18680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18681 (eval $ac_compile) 2>conftest.er1
18682 ac_status=$?
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -z "$ac_c_werror_flag"
18689 || test ! -s conftest.err'
18690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691 (eval $ac_try) 2>&5
18692 ac_status=$?
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; } &&
18695 { ac_try='test -s conftest.$ac_objext'
18696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697 (eval $ac_try) 2>&5
18698 ac_status=$?
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; }; then
97bf5e38
MK
18701 gdb_cv_have_struct_link_map_with_lm_members=yes
18702else
bec39cab
AC
18703 echo "$as_me: failed program was:" >&5
18704sed 's/^/| /' conftest.$ac_ext >&5
18705
18706gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 18707fi
bec39cab 18708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18709fi
c906108c 18710
bec39cab
AC
18711 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18712echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 18713 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
bec39cab 18714 cat >>confdefs.h <<\_ACEOF
97bf5e38 18715#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 18716_ACEOF
97bf5e38
MK
18717
18718 fi
18719
bec39cab
AC
18720
18721 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18722echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18723 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18725else
bec39cab
AC
18726 cat >conftest.$ac_ext <<_ACEOF
18727/* confdefs.h. */
18728_ACEOF
18729cat confdefs.h >>conftest.$ac_ext
18730cat >>conftest.$ac_ext <<_ACEOF
18731/* end confdefs.h. */
97bf5e38
MK
18732#include <sys/types.h>
18733#ifdef HAVE_NLIST_H
18734#include <nlist.h>
18735#endif
18736#include <link.h>
bec39cab
AC
18737int
18738main ()
18739{
97bf5e38 18740struct so_map lm; (void) lm.som_addr;
bec39cab
AC
18741 ;
18742 return 0;
18743}
18744_ACEOF
18745rm -f conftest.$ac_objext
18746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18747 (eval $ac_compile) 2>conftest.er1
18748 ac_status=$?
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
18754 { ac_try='test -z "$ac_c_werror_flag"
18755 || test ! -s conftest.err'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest.$ac_objext'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
97bf5e38
MK
18767 gdb_cv_have_struct_so_map_with_som_members=yes
18768else
bec39cab
AC
18769 echo "$as_me: failed program was:" >&5
18770sed 's/^/| /' conftest.$ac_ext >&5
18771
18772gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 18773fi
bec39cab 18774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 18775fi
c906108c 18776
bec39cab
AC
18777 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18778echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 18779 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
bec39cab 18780 cat >>confdefs.h <<\_ACEOF
97bf5e38 18781#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 18782_ACEOF
c906108c 18783
97bf5e38 18784 fi
c906108c 18785
bec39cab
AC
18786
18787 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18788echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18789 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18791else
bec39cab
AC
18792 cat >conftest.$ac_ext <<_ACEOF
18793/* confdefs.h. */
18794_ACEOF
18795cat confdefs.h >>conftest.$ac_ext
18796cat >>conftest.$ac_ext <<_ACEOF
18797/* end confdefs.h. */
97bf5e38
MK
18798#define _SYSCALL32
18799#include <sys/link.h>
bec39cab
AC
18800int
18801main ()
18802{
97bf5e38 18803struct link_map32 l;
bec39cab
AC
18804 ;
18805 return 0;
18806}
18807_ACEOF
18808rm -f conftest.$ac_objext
18809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18810 (eval $ac_compile) 2>conftest.er1
18811 ac_status=$?
18812 grep -v '^ *+' conftest.er1 >conftest.err
18813 rm -f conftest.er1
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try='test -z "$ac_c_werror_flag"
18818 || test ! -s conftest.err'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest.$ac_objext'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
97bf5e38
MK
18830 gdb_cv_have_struct_link_map32=yes
18831else
bec39cab
AC
18832 echo "$as_me: failed program was:" >&5
18833sed 's/^/| /' conftest.$ac_ext >&5
18834
18835gdb_cv_have_struct_link_map32=no
97bf5e38 18836fi
bec39cab 18837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 18838fi
c906108c 18839
bec39cab
AC
18840 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18841echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 18842 if test $gdb_cv_have_struct_link_map32 = yes; then
bec39cab 18843 cat >>confdefs.h <<\_ACEOF
97bf5e38 18844#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 18845_ACEOF
c906108c 18846
bec39cab 18847 cat >>confdefs.h <<\_ACEOF
97bf5e38 18848#define _SYSCALL32 1
bec39cab 18849_ACEOF
c906108c 18850
97bf5e38
MK
18851 fi
18852fi
c906108c 18853
c906108c 18854
bec39cab
AC
18855echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18856echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18857if test "${gdb_cv_c_long_long+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18859else
bec39cab
AC
18860 cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h. */
c906108c 18866
bec39cab
AC
18867int
18868main ()
18869{
c906108c 18870
97bf5e38
MK
18871 extern long long foo;
18872 switch (foo & 2) { case 0: return 1; }
c906108c 18873
bec39cab
AC
18874 ;
18875 return 0;
18876}
18877_ACEOF
18878rm -f conftest.$ac_objext
18879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18880 (eval $ac_compile) 2>conftest.er1
18881 ac_status=$?
18882 grep -v '^ *+' conftest.er1 >conftest.err
18883 rm -f conftest.er1
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } &&
18887 { ac_try='test -z "$ac_c_werror_flag"
18888 || test ! -s conftest.err'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; } &&
18894 { ac_try='test -s conftest.$ac_objext'
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18897 ac_status=$?
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; }; then
97bf5e38
MK
18900 gdb_cv_c_long_long=yes
18901else
bec39cab
AC
18902 echo "$as_me: failed program was:" >&5
18903sed 's/^/| /' conftest.$ac_ext >&5
18904
18905gdb_cv_c_long_long=no
97bf5e38 18906fi
bec39cab 18907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 18908fi
c906108c 18909
bec39cab
AC
18910echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18911echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 18912if test $gdb_cv_c_long_long = yes; then
bec39cab 18913 cat >>confdefs.h <<\_ACEOF
97bf5e38 18914#define CC_HAS_LONG_LONG 1
bec39cab 18915_ACEOF
97bf5e38
MK
18916
18917fi
18918
18919
bec39cab
AC
18920echo "$as_me:$LINENO: checking for long long support in printf" >&5
18921echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18922if test "${gdb_cv_printf_has_long_long+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
18924else
18925 if test "$cross_compiling" = yes; then
18926 gdb_cv_printf_has_long_long=no
18927else
bec39cab
AC
18928 cat >conftest.$ac_ext <<_ACEOF
18929/* confdefs.h. */
18930_ACEOF
18931cat confdefs.h >>conftest.$ac_ext
18932cat >>conftest.$ac_ext <<_ACEOF
18933/* end confdefs.h. */
97bf5e38
MK
18934
18935int main () {
18936 char buf[32];
18937 long long l = 0;
18938 l = (l << 16) + 0x0123;
18939 l = (l << 16) + 0x4567;
18940 l = (l << 16) + 0x89ab;
18941 l = (l << 16) + 0xcdef;
18942 sprintf (buf, "0x%016llx", l);
18943 return (strcmp ("0x0123456789abcdef", buf));
c906108c 18944}
bec39cab
AC
18945_ACEOF
18946rm -f conftest$ac_exeext
18947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18948 (eval $ac_link) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
97bf5e38
MK
18957 gdb_cv_printf_has_long_long=yes
18958else
bec39cab
AC
18959 echo "$as_me: program exited with status $ac_status" >&5
18960echo "$as_me: failed program was:" >&5
18961sed 's/^/| /' conftest.$ac_ext >&5
18962
18963( exit $ac_status )
18964gdb_cv_printf_has_long_long=no
97bf5e38 18965fi
bec39cab 18966rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 18967fi
97bf5e38
MK
18968fi
18969
18970if test $gdb_cv_printf_has_long_long = yes; then
bec39cab 18971 cat >>confdefs.h <<\_ACEOF
97bf5e38 18972#define PRINTF_HAS_LONG_LONG 1
bec39cab 18973_ACEOF
97bf5e38
MK
18974
18975fi
bec39cab
AC
18976echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18977echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38
MK
18978
18979
bec39cab
AC
18980echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18981echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18982if test "${ac_cv_c_long_double+set}" = set; then
18983 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18984else
bec39cab
AC
18985 cat >conftest.$ac_ext <<_ACEOF
18986/* confdefs.h. */
18987_ACEOF
18988cat confdefs.h >>conftest.$ac_ext
18989cat >>conftest.$ac_ext <<_ACEOF
18990/* end confdefs.h. */
97bf5e38 18991
bec39cab
AC
18992int
18993main ()
18994{
97bf5e38 18995long double foo;
bec39cab
AC
18996 ;
18997 return 0;
18998}
18999_ACEOF
19000rm -f conftest.$ac_objext
19001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19002 (eval $ac_compile) 2>conftest.er1
19003 ac_status=$?
19004 grep -v '^ *+' conftest.er1 >conftest.err
19005 rm -f conftest.er1
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } &&
19009 { ac_try='test -z "$ac_c_werror_flag"
19010 || test ! -s conftest.err'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19013 ac_status=$?
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; } &&
19016 { ac_try='test -s conftest.$ac_objext'
19017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19018 (eval $ac_try) 2>&5
19019 ac_status=$?
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; }; then
97bf5e38
MK
19022 ac_cv_c_long_double=yes
19023else
bec39cab
AC
19024 echo "$as_me: failed program was:" >&5
19025sed 's/^/| /' conftest.$ac_ext >&5
19026
19027ac_cv_c_long_double=no
97bf5e38 19028fi
bec39cab 19029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19030fi
c906108c 19031
bec39cab
AC
19032echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
19033echo "${ECHO_T}$ac_cv_c_long_double" >&6
97bf5e38 19034if test $ac_cv_c_long_double = yes; then
bec39cab 19035 cat >>confdefs.h <<\_ACEOF
97bf5e38 19036#define HAVE_LONG_DOUBLE 1
bec39cab 19037_ACEOF
97bf5e38
MK
19038
19039fi
19040
19041
bec39cab
AC
19042echo "$as_me:$LINENO: checking for long double support in printf" >&5
19043echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19044if test "${gdb_cv_printf_has_long_double+set}" = set; then
19045 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19046else
19047 if test "$cross_compiling" = yes; then
19048 gdb_cv_printf_has_long_double=no
19049else
bec39cab
AC
19050 cat >conftest.$ac_ext <<_ACEOF
19051/* confdefs.h. */
19052_ACEOF
19053cat confdefs.h >>conftest.$ac_ext
19054cat >>conftest.$ac_ext <<_ACEOF
19055/* end confdefs.h. */
97bf5e38
MK
19056
19057int main () {
19058 char buf[16];
19059 long double f = 3.141592653;
19060 sprintf (buf, "%Lg", f);
19061 return (strncmp ("3.14159", buf, 7));
19062}
bec39cab
AC
19063_ACEOF
19064rm -f conftest$ac_exeext
19065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19066 (eval $ac_link) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
97bf5e38 19075 gdb_cv_printf_has_long_double=yes
c906108c 19076else
bec39cab
AC
19077 echo "$as_me: program exited with status $ac_status" >&5
19078echo "$as_me: failed program was:" >&5
19079sed 's/^/| /' conftest.$ac_ext >&5
19080
19081( exit $ac_status )
19082gdb_cv_printf_has_long_double=no
c906108c 19083fi
bec39cab 19084rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19085fi
c906108c
SS
19086fi
19087
97bf5e38 19088if test $gdb_cv_printf_has_long_double = yes; then
bec39cab 19089 cat >>confdefs.h <<\_ACEOF
97bf5e38 19090#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 19091_ACEOF
97bf5e38
MK
19092
19093fi
bec39cab
AC
19094echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19095echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38
MK
19096
19097
bec39cab
AC
19098echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19099echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19100if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19102else
19103 if test "$cross_compiling" = yes; then
19104 gdb_cv_scanf_has_long_double=no
19105else
bec39cab
AC
19106 cat >conftest.$ac_ext <<_ACEOF
19107/* confdefs.h. */
19108_ACEOF
19109cat confdefs.h >>conftest.$ac_ext
19110cat >>conftest.$ac_ext <<_ACEOF
19111/* end confdefs.h. */
97bf5e38
MK
19112
19113int main () {
19114 char *buf = "3.141592653";
19115 long double f = 0;
19116 sscanf (buf, "%Lg", &f);
19117 return !(f > 3.14159 && f < 3.14160);
19118}
bec39cab
AC
19119_ACEOF
19120rm -f conftest$ac_exeext
19121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19122 (eval $ac_link) 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19128 ac_status=$?
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; }; then
97bf5e38
MK
19131 gdb_cv_scanf_has_long_double=yes
19132else
bec39cab
AC
19133 echo "$as_me: program exited with status $ac_status" >&5
19134echo "$as_me: failed program was:" >&5
19135sed 's/^/| /' conftest.$ac_ext >&5
19136
19137( exit $ac_status )
19138gdb_cv_scanf_has_long_double=no
97bf5e38 19139fi
bec39cab 19140rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19141fi
c906108c
SS
19142fi
19143
97bf5e38 19144if test $gdb_cv_scanf_has_long_double = yes; then
bec39cab 19145 cat >>confdefs.h <<\_ACEOF
97bf5e38 19146#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 19147_ACEOF
97bf5e38
MK
19148
19149fi
bec39cab
AC
19150echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19151echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
c906108c 19152
438013df
AO
19153case ${host_os} in
19154aix*)
bec39cab
AC
19155 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19156echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19157if test "${gdb_cv_bigtoc+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 19159else
bec39cab 19160
438013df
AO
19161 SAVE_LDFLAGS=$LDFLAGS
19162
19163 case $GCC in
19164 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19165 *) gdb_cv_bigtoc=-bbigtoc ;;
19166 esac
19167
19168 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
19169 cat >conftest.$ac_ext <<_ACEOF
19170/* confdefs.h. */
19171_ACEOF
19172cat confdefs.h >>conftest.$ac_ext
19173cat >>conftest.$ac_ext <<_ACEOF
19174/* end confdefs.h. */
438013df 19175
bec39cab
AC
19176int
19177main ()
19178{
438013df 19179int i;
bec39cab
AC
19180 ;
19181 return 0;
19182}
19183_ACEOF
19184rm -f conftest.$ac_objext conftest$ac_exeext
19185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19186 (eval $ac_link) 2>conftest.er1
19187 ac_status=$?
19188 grep -v '^ *+' conftest.er1 >conftest.err
19189 rm -f conftest.er1
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag"
19194 || test ! -s conftest.err'
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest$ac_exeext'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19203 ac_status=$?
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
438013df
AO
19206 :
19207else
bec39cab
AC
19208 echo "$as_me: failed program was:" >&5
19209sed 's/^/| /' conftest.$ac_ext >&5
19210
19211gdb_cv_bigtoc=
438013df 19212fi
bec39cab
AC
19213rm -f conftest.err conftest.$ac_objext \
19214 conftest$ac_exeext conftest.$ac_ext
ec76baa5 19215 LDFLAGS="${SAVE_LDFLAGS}"
438013df 19216
bec39cab
AC
19217fi
19218echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19219echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
19220 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19221 ;;
19222esac
19223
c906108c
SS
19224
19225
19226if test ${build} = ${host} -a ${host} = ${target} ; then
19227 case ${host_os} in
19228 hpux*)
bec39cab
AC
19229 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19230echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
19231 if test -f /usr/include/dce/cma_config.h ; then
19232 if test "$GCC" = "yes" ; then
bec39cab
AC
19233 echo "$as_me:$LINENO: result: yes" >&5
19234echo "${ECHO_T}yes" >&6
19235 cat >>confdefs.h <<\_ACEOF
c906108c 19236#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 19237_ACEOF
c906108c 19238
3483b318 19239 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
19240 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19241 else
bec39cab
AC
19242 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19243echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
19244 fi
19245 else
bec39cab
AC
19246 echo "$as_me:$LINENO: result: no" >&5
19247echo "${ECHO_T}no" >&6
c906108c
SS
19248 fi
19249 ;;
19250 solaris*)
d92419e5
JB
19251 # See if thread_db library is around for Solaris thread debugging.
19252 # Note that we must explicitly test for version 1 of the library
19253 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19254 # the same API.
bec39cab
AC
19255 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19256echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 19257 if test -f /usr/lib/libthread_db.so.1 ; then
bec39cab
AC
19258 echo "$as_me:$LINENO: result: yes" >&5
19259echo "${ECHO_T}yes" >&6
19260 cat >>confdefs.h <<\_ACEOF
c906108c 19261#define HAVE_THREAD_DB_LIB 1
bec39cab 19262_ACEOF
c906108c 19263
3483b318 19264 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 19265 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab
AC
19266
19267echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19268echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19269if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19271else
bec39cab 19272 ac_check_lib_save_LIBS=$LIBS
c906108c 19273LIBS="-ldl $LIBS"
bec39cab
AC
19274cat >conftest.$ac_ext <<_ACEOF
19275/* confdefs.h. */
19276_ACEOF
19277cat confdefs.h >>conftest.$ac_ext
19278cat >>conftest.$ac_ext <<_ACEOF
19279/* end confdefs.h. */
19280
c906108c 19281/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19282#ifdef __cplusplus
19283extern "C"
19284#endif
c906108c 19285/* We use char because int might match the return type of a gcc2
bec39cab
AC
19286 builtin and then its argument prototype would still apply. */
19287char dlopen ();
19288int
19289main ()
19290{
19291dlopen ();
19292 ;
19293 return 0;
19294}
19295_ACEOF
19296rm -f conftest.$ac_objext conftest$ac_exeext
19297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19298 (eval $ac_link) 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
19305 { ac_try='test -z "$ac_c_werror_flag"
19306 || test ! -s conftest.err'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; } &&
19312 { ac_try='test -s conftest$ac_exeext'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; }; then
19318 ac_cv_lib_dl_dlopen=yes
19319else
19320 echo "$as_me: failed program was:" >&5
19321sed 's/^/| /' conftest.$ac_ext >&5
19322
19323ac_cv_lib_dl_dlopen=no
19324fi
19325rm -f conftest.err conftest.$ac_objext \
19326 conftest$ac_exeext conftest.$ac_ext
19327LIBS=$ac_check_lib_save_LIBS
19328fi
19329echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19330echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19331if test $ac_cv_lib_dl_dlopen = yes; then
19332 cat >>confdefs.h <<_ACEOF
19333#define HAVE_LIBDL 1
19334_ACEOF
c906108c
SS
19335
19336 LIBS="-ldl $LIBS"
19337
c906108c
SS
19338fi
19339
19340 if test "$GCC" = "yes" ; then
19341 # The GNU linker requires the -export-dynamic option to make
19342 # all symbols visible in the dynamic symbol table.
19343 hold_ldflags=$LDFLAGS
bec39cab
AC
19344 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19345echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 19346 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
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. */
c906108c 19353
bec39cab
AC
19354int
19355main ()
19356{
c906108c 19357int i;
bec39cab
AC
19358 ;
19359 return 0;
19360}
19361_ACEOF
19362rm -f conftest.$ac_objext conftest$ac_exeext
19363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19364 (eval $ac_link) 2>conftest.er1
19365 ac_status=$?
19366 grep -v '^ *+' conftest.er1 >conftest.err
19367 rm -f conftest.er1
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try='test -z "$ac_c_werror_flag"
19372 || test ! -s conftest.err'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest$ac_exeext'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
c906108c
SS
19384 found=yes
19385else
bec39cab
AC
19386 echo "$as_me: failed program was:" >&5
19387sed 's/^/| /' conftest.$ac_ext >&5
19388
19389found=no
c906108c 19390fi
bec39cab
AC
19391rm -f conftest.err conftest.$ac_objext \
19392 conftest$ac_exeext conftest.$ac_ext
c906108c 19393 LDFLAGS=$hold_ldflags
bec39cab
AC
19394 echo "$as_me:$LINENO: result: $found" >&5
19395echo "${ECHO_T}$found" >&6
c906108c
SS
19396 if test $found = yes; then
19397 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19398 fi
19399 fi
19400 # Sun randomly tweaked the prototypes in <proc_service.h>
19401 # at one point.
bec39cab
AC
19402 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19403echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19404 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19406else
bec39cab
AC
19407
19408 cat >conftest.$ac_ext <<_ACEOF
19409/* confdefs.h. */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
19413/* end confdefs.h. */
c906108c
SS
19414
19415 #include <proc_service.h>
19416 ps_err_e ps_pdwrite
19417 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 19418
bec39cab
AC
19419int
19420main ()
19421{
19422
19423 ;
19424 return 0;
19425}
19426_ACEOF
19427rm -f conftest.$ac_objext
19428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19429 (eval $ac_compile) 2>conftest.er1
19430 ac_status=$?
19431 grep -v '^ *+' conftest.er1 >conftest.err
19432 rm -f conftest.er1
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } &&
19436 { ac_try='test -z "$ac_c_werror_flag"
19437 || test ! -s conftest.err'
19438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439 (eval $ac_try) 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; } &&
19443 { ac_try='test -s conftest.$ac_objext'
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; }; then
c906108c
SS
19449 gdb_cv_proc_service_is_old=no
19450else
bec39cab
AC
19451 echo "$as_me: failed program was:" >&5
19452sed 's/^/| /' conftest.$ac_ext >&5
19453
19454gdb_cv_proc_service_is_old=yes
c906108c 19455fi
bec39cab
AC
19456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19457
c906108c
SS
19458fi
19459
bec39cab
AC
19460 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19461echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 19462 if test $gdb_cv_proc_service_is_old = yes; then
bec39cab 19463 cat >>confdefs.h <<\_ACEOF
c906108c 19464#define PROC_SERVICE_IS_OLD 1
bec39cab 19465_ACEOF
c906108c
SS
19466
19467 fi
19468 else
bec39cab
AC
19469 echo "$as_me:$LINENO: result: no" >&5
19470echo "${ECHO_T}no" >&6
c906108c
SS
19471 fi
19472 ;;
d92419e5 19473 aix*)
bec39cab
AC
19474 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19475echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19476 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19478else
19479 cat >conftest.$ac_ext <<_ACEOF
19480/* confdefs.h. */
19481_ACEOF
19482cat confdefs.h >>conftest.$ac_ext
19483cat >>conftest.$ac_ext <<_ACEOF
19484/* end confdefs.h. */
d92419e5 19485#include <sys/pthdebug.h>
bec39cab
AC
19486int
19487main ()
19488{
d92419e5
JB
19489#ifndef PTHDB_VERSION_3
19490 #error
19491 #endif
bec39cab
AC
19492 ;
19493 return 0;
19494}
19495_ACEOF
19496rm -f conftest.$ac_objext
19497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19498 (eval $ac_compile) 2>conftest.er1
19499 ac_status=$?
19500 grep -v '^ *+' conftest.er1 >conftest.err
19501 rm -f conftest.er1
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_c_werror_flag"
19506 || test ! -s conftest.err'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest.$ac_objext'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
d92419e5
JB
19518 gdb_cv_have_aix_thread_debug=yes
19519else
bec39cab
AC
19520 echo "$as_me: failed program was:" >&5
19521sed 's/^/| /' conftest.$ac_ext >&5
19522
19523gdb_cv_have_aix_thread_debug=no
d92419e5 19524fi
bec39cab 19525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
19526fi
19527
bec39cab
AC
19528 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19529echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
19530 if test $gdb_cv_have_aix_thread_debug = yes; then
19531 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 19532 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
19533 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19534 fi
19535 ;;
c906108c 19536 esac
bec39cab 19537
c906108c
SS
19538fi
19539
3f47be5c 19540if test "x$ac_cv_header_thread_db_h" = "xyes"; then
bec39cab
AC
19541 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19542echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19543if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19545else
19546 cat >conftest.$ac_ext <<_ACEOF
19547/* confdefs.h. */
19548_ACEOF
19549cat confdefs.h >>conftest.$ac_ext
19550cat >>conftest.$ac_ext <<_ACEOF
19551/* end confdefs.h. */
3f47be5c 19552#include <thread_db.h>
bec39cab
AC
19553int
19554main ()
19555{
3f47be5c 19556int i = TD_NOTALLOC;
bec39cab
AC
19557 ;
19558 return 0;
19559}
19560_ACEOF
19561rm -f conftest.$ac_objext
19562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563 (eval $ac_compile) 2>conftest.er1
19564 ac_status=$?
19565 grep -v '^ *+' conftest.er1 >conftest.err
19566 rm -f conftest.er1
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } &&
19570 { ac_try='test -z "$ac_c_werror_flag"
19571 || test ! -s conftest.err'
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19574 ac_status=$?
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; } &&
19577 { ac_try='test -s conftest.$ac_objext'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; }; then
3f47be5c
EZ
19583 gdb_cv_thread_db_h_has_td_notalloc=yes
19584else
bec39cab
AC
19585 echo "$as_me: failed program was:" >&5
19586sed 's/^/| /' conftest.$ac_ext >&5
19587
19588gdb_cv_thread_db_h_has_td_notalloc=no
19589
3f47be5c 19590fi
bec39cab 19591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 19592
bec39cab
AC
19593fi
19594echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19595echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
3f47be5c
EZ
19596fi
19597if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
19598
19599cat >>confdefs.h <<\_ACEOF
3f47be5c 19600#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 19601_ACEOF
3f47be5c
EZ
19602
19603fi
19604
b757528f 19605if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
bec39cab
AC
19606 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19607echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19608if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19610else
19611 cat >conftest.$ac_ext <<_ACEOF
19612/* confdefs.h. */
19613_ACEOF
19614cat confdefs.h >>conftest.$ac_ext
19615cat >>conftest.$ac_ext <<_ACEOF
19616/* end confdefs.h. */
b757528f 19617#include <sys/syscall.h>
bec39cab
AC
19618int
19619main ()
19620{
b757528f 19621int i = __NR_tkill;
bec39cab
AC
19622 ;
19623 return 0;
19624}
19625_ACEOF
19626rm -f conftest.$ac_objext
19627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19628 (eval $ac_compile) 2>conftest.er1
19629 ac_status=$?
19630 grep -v '^ *+' conftest.er1 >conftest.err
19631 rm -f conftest.er1
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } &&
19635 { ac_try='test -z "$ac_c_werror_flag"
19636 || test ! -s conftest.err'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; } &&
19642 { ac_try='test -s conftest.$ac_objext'
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
b757528f
JJ
19648 gdb_cv_sys_syscall_h_has_tkill=yes
19649else
bec39cab
AC
19650 echo "$as_me: failed program was:" >&5
19651sed 's/^/| /' conftest.$ac_ext >&5
19652
19653gdb_cv_sys_syscall_h_has_tkill=no
19654
b757528f 19655fi
bec39cab 19656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 19657
bec39cab
AC
19658fi
19659echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19660echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
19661fi
19662if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
19663
19664cat >>confdefs.h <<\_ACEOF
b757528f 19665#define HAVE_TKILL_SYSCALL 1
bec39cab 19666_ACEOF
b757528f
JJ
19667
19668fi
19669
fb40c209 19670
bec39cab 19671
030292b7
DJ
19672# Check whether --with-sysroot or --without-sysroot was given.
19673if test "${with_sysroot+set}" = set; then
19674 withval="$with_sysroot"
bec39cab 19675
030292b7 19676 case ${with_sysroot} in
715d1656 19677 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
19678 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19679 esac
19680
19681 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19682
19683 if test "x$exec_prefix" = xNONE; then
19684 if test "x$prefix" = xNONE; then
19685 test_prefix=/usr/local
19686 else
19687 test_prefix=$prefix
19688 fi
19689 else
19690 test_prefix=$exec_prefix
19691 fi
19692 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
19693 "${test_prefix}"|"${test_prefix}/"*|\
19694 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
19695 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19696 TARGET_SYSTEM_ROOT_DEFINE="$t"
19697 ;;
19698 esac
19699
19700else
bec39cab 19701
030292b7
DJ
19702 TARGET_SYSTEM_ROOT=
19703 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19704
bec39cab 19705fi;
030292b7
DJ
19706
19707
19708
3b851bce
AC
19709# NOTE: Don't add -Wall or -Wunused, they both include
19710# -Wunused-parameter which reports bogus warnings.
19711# NOTE: If you add to this list, remember to update
19712# gdb/doc/gdbint.texinfo.
1decb323 19713build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
0f0cffd2 19714-Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
4566dfcf 19715-Wunused-label -Wunused-function"
d8038014 19716# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 19717# -Wunused-function -Wunused-variable -Wunused-value
93d56215 19718# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
19719# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19720# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19721# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
19722# Check whether --enable-build-warnings or --disable-build-warnings was given.
19723if test "${enable_build_warnings+set}" = set; then
19724 enableval="$enable_build_warnings"
1decb323 19725 case "${enableval}" in
c906108c
SS
19726 yes) ;;
19727 no) build_warnings="-w";;
19728 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19729 build_warnings="${build_warnings} ${t}";;
19730 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19731 build_warnings="${t} ${build_warnings}";;
19732 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19733esac
d4f3574e 19734if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 19735 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 19736fi
bec39cab 19737fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce
AC
19738if test "${enable_gdb_build_warnings+set}" = set; then
19739 enableval="$enable_gdb_build_warnings"
19740 case "${enableval}" in
19741 yes) ;;
19742 no) build_warnings="-w";;
19743 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19744 build_warnings="${build_warnings} ${t}";;
19745 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19746 build_warnings="${t} ${build_warnings}";;
19747 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19748esac
19749if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19750 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19751fi
bec39cab 19752fi; WARN_CFLAGS=""
104c1213 19753WERROR_CFLAGS=""
c906108c
SS
19754if test "x${build_warnings}" != x -a "x$GCC" = xyes
19755then
bec39cab
AC
19756 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19757echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
19758 # Separate out the -Werror flag as some files just cannot be
19759 # compiled with it enabled.
19760 for w in ${build_warnings}; do
19761 case $w in
19762 -Werr*) WERROR_CFLAGS=-Werror ;;
19763 *) # Check that GCC accepts it
4536bbc6
AC
19764 saved_CFLAGS="$CFLAGS"
19765 CFLAGS="$CFLAGS $w"
bec39cab
AC
19766 cat >conftest.$ac_ext <<_ACEOF
19767/* confdefs.h. */
19768_ACEOF
19769cat confdefs.h >>conftest.$ac_ext
19770cat >>conftest.$ac_ext <<_ACEOF
19771/* end confdefs.h. */
4536bbc6 19772
bec39cab
AC
19773int
19774main ()
19775{
4536bbc6 19776
bec39cab
AC
19777 ;
19778 return 0;
19779}
19780_ACEOF
19781rm -f conftest.$ac_objext
19782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19783 (eval $ac_compile) 2>conftest.er1
19784 ac_status=$?
19785 grep -v '^ *+' conftest.er1 >conftest.err
19786 rm -f conftest.er1
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
19790 { ac_try='test -z "$ac_c_werror_flag"
19791 || test ! -s conftest.err'
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793 (eval $ac_try) 2>&5
19794 ac_status=$?
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; } &&
19797 { ac_try='test -s conftest.$ac_objext'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
4536bbc6
AC
19803 WARN_CFLAGS="${WARN_CFLAGS} $w"
19804else
bec39cab
AC
19805 echo "$as_me: failed program was:" >&5
19806sed 's/^/| /' conftest.$ac_ext >&5
19807
4536bbc6 19808fi
bec39cab 19809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 19810 CFLAGS="$saved_CFLAGS"
746a987d
AC
19811 esac
19812 done
bec39cab
AC
19813 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
19814echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
19815fi
19816
19817
104c1213 19818
7a292a7a 19819# In the Cygwin environment, we need some additional flags.
bec39cab
AC
19820echo "$as_me:$LINENO: checking for cygwin" >&5
19821echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19822if test "${gdb_cv_os_cygwin+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19824else
19825 cat >conftest.$ac_ext <<_ACEOF
19826/* confdefs.h. */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
19830/* end confdefs.h. */
7a292a7a
SS
19831
19832#if defined (__CYGWIN__) || defined (__CYGWIN32__)
19833lose
19834#endif
bec39cab 19835_ACEOF
7a292a7a 19836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 19837 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
19838 gdb_cv_os_cygwin=yes
19839else
7a292a7a
SS
19840 gdb_cv_os_cygwin=no
19841fi
19842rm -f conftest*
19843
19844fi
bec39cab
AC
19845echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19846echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 19847
aff38e61
AC
19848
19849SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
19850case ${host} in
95cbc983
AC
19851 *go32* ) SER_HARDWIRE=ser-go32.o ;;
19852 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
aff38e61
AC
19853esac
19854
19855
cd0fc7c3
SS
19856# libreadline needs libuser32.a in a cygwin environment
19857WIN32LIBS=
19858if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
19859 WIN32LIBS="-luser32"
19860 case "${target}" in
19861 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19862 ;;
19863 esac
cd0fc7c3 19864fi
c906108c 19865
7a292a7a 19866
3fc11d3e
JM
19867LIBGUI="../libgui/src/libgui.a"
19868GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19869
19870
7a292a7a 19871
3fc11d3e
JM
19872WIN32LDAPP=
19873
19874
19875
d91670b9
CV
19876case "${host}" in
19877*-*-cygwin*)
19878 configdir="win"
19879 ;;
19880*)
19881 configdir="unix"
19882 ;;
19883esac
3fc11d3e
JM
19884
19885GDBTKLIBS=
19886if test "${enable_gdbtk}" = "yes"; then
19887
d1c3b63a
KS
19888 # Gdbtk must have an absolute path to srcdir in order to run
19889 # properly when not installed.
19890 here=`pwd`
19891 cd ${srcdir}
19892 GDBTK_SRC_DIR=`pwd`
19893 cd $here
19894
bec39cab 19895
3fc11d3e
JM
19896#
19897# Ok, lets find the tcl configuration
bec39cab 19898# First, look for one uninstalled.
3fc11d3e
JM
19899# the alternative search directory is invoked by --with-tclconfig
19900#
19901
19902if test x"${no_tcl}" = x ; then
19903 # we reset no_tcl in case something fails here
19904 no_tcl=true
bec39cab
AC
19905
19906# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e
JM
19907if test "${with_tclconfig+set}" = set; then
19908 withval="$with_tclconfig"
19909 with_tclconfig=${withval}
bec39cab
AC
19910fi;
19911 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19912echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19913 if test "${ac_cv_c_tclconfig+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 19915else
bec39cab 19916
3fc11d3e
JM
19917
19918 # First check to see if --with-tclconfig was specified.
19919 if test x"${with_tclconfig}" != x ; then
19920 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19921 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19922 else
bec39cab
AC
19923 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19924echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19925 { (exit 1); exit 1; }; }
3fc11d3e
JM
19926 fi
19927 fi
19928
19929 # then check for a private Tcl installation
19930 if test x"${ac_cv_c_tclconfig}" = x ; then
19931 for i in \
19932 ../tcl \
19933 `ls -dr ../tcl[7-9]* 2>/dev/null` \
19934 ../../tcl \
19935 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
19936 ../../../tcl \
19937 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
19938 if test -f "$i/${configdir}/tclConfig.sh" ; then
19939 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19940 break
19941 fi
19942 done
19943 fi
19944 # check in a few common install locations
19945 if test x"${ac_cv_c_tclconfig}" = x ; then
19946 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
19947 if test -f "$i/tclConfig.sh" ; then
19948 ac_cv_c_tclconfig=`(cd $i; pwd)`
19949 break
19950 fi
19951 done
19952 fi
19953 # check in a few other private locations
19954 if test x"${ac_cv_c_tclconfig}" = x ; then
19955 for i in \
19956 ${srcdir}/../tcl \
19957 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
19958 if test -f "$i/${configdir}/tclConfig.sh" ; then
19959 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19960 break
19961 fi
19962 done
19963 fi
bec39cab 19964
3fc11d3e
JM
19965fi
19966
19967 if test x"${ac_cv_c_tclconfig}" = x ; then
19968 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
19969 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19970echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
19971 else
19972 no_tcl=
19973 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
bec39cab
AC
19974 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
19975echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
19976 fi
19977fi
19978
19979 if test -z "${no_tcl}"; then
bec39cab 19980
3fc11d3e
JM
19981 . $TCLCONFIG
19982
3fc11d3e
JM
19983
19984
19985
19986
3fc11d3e
JM
19987
19988
19989
bec39cab
AC
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
3fc11d3e
JM
20009#
20010# Ok, lets find the tk configuration
bec39cab 20011# First, look for one uninstalled.
3fc11d3e
JM
20012# the alternative search directory is invoked by --with-tkconfig
20013#
20014
20015if test x"${no_tk}" = x ; then
20016 # we reset no_tk in case something fails here
20017 no_tk=true
bec39cab
AC
20018
20019# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e
JM
20020if test "${with_tkconfig+set}" = set; then
20021 withval="$with_tkconfig"
20022 with_tkconfig=${withval}
bec39cab
AC
20023fi;
20024 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20025echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20026 if test "${ac_cv_c_tkconfig+set}" = set; then
20027 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20028else
bec39cab 20029
3fc11d3e
JM
20030
20031 # First check to see if --with-tkconfig was specified.
20032 if test x"${with_tkconfig}" != x ; then
20033 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20034 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20035 else
bec39cab
AC
20036 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20037echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20038 { (exit 1); exit 1; }; }
3fc11d3e
JM
20039 fi
20040 fi
20041
20042 # then check for a private Tk library
20043 if test x"${ac_cv_c_tkconfig}" = x ; then
20044 for i in \
20045 ../tk \
20046 `ls -dr ../tk[4-9]* 2>/dev/null` \
20047 ../../tk \
20048 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20049 ../../../tk \
20050 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20051 if test -f "$i/${configdir}/tkConfig.sh" ; then
20052 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20053 break
20054 fi
20055 done
20056 fi
20057 # check in a few common install locations
20058 if test x"${ac_cv_c_tkconfig}" = x ; then
20059 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20060 if test -f "$i/tkConfig.sh" ; then
20061 ac_cv_c_tkconfig=`(cd $i; pwd)`
20062 break
20063 fi
20064 done
20065 fi
20066 # check in a few other private locations
20067 if test x"${ac_cv_c_tkconfig}" = x ; then
20068 for i in \
20069 ${srcdir}/../tk \
20070 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20071 if test -f "$i/${configdir}/tkConfig.sh" ; then
20072 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20073 break
20074 fi
20075 done
20076 fi
bec39cab 20077
3fc11d3e
JM
20078fi
20079
20080 if test x"${ac_cv_c_tkconfig}" = x ; then
20081 TKCONFIG="# no Tk configs found"
bec39cab
AC
20082 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20083echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
20084 else
20085 no_tk=
20086 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
bec39cab
AC
20087 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20088echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
20089 fi
20090fi
20091
20092
20093
dd2504ab
JM
20094 # now look for Tcl library stuff
20095
d91670b9 20096 tcldir="../tcl/${configdir}/"
dd2504ab
JM
20097
20098 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20099
3fc11d3e
JM
20100 # If $no_tk is nonempty, then we can't do Tk, and there is no
20101 # point to doing Tcl.
20102 if test -z "${no_tk}"; then
bec39cab 20103
3fc11d3e
JM
20104 if test -f "$TKCONFIG" ; then
20105 . $TKCONFIG
20106 fi
20107
3fc11d3e 20108
3fc11d3e
JM
20109
20110
3fc11d3e 20111
bec39cab
AC
20112
20113
20114
20115
20116
20117
20118
20119
20120
3fc11d3e
JM
20121#
20122# Ok, lets find the tcl source trees so we can use the headers
20123# Warning: transition of version 9 to 10 will break this algorithm
20124# because 10 sorts before 9. We also look for just tcl. We have to
20125# be careful that we don't match stuff like tclX by accident.
20126# the alternative search directory is involked by --with-tclinclude
20127#
20128
20129no_tcl=true
bec39cab
AC
20130echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20131echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20132
3fc11d3e
JM
20133# Check whether --with-tclinclude or --without-tclinclude was given.
20134if test "${with_tclinclude+set}" = set; then
20135 withval="$with_tclinclude"
20136 with_tclinclude=${withval}
bec39cab
AC
20137fi;
20138if test "${ac_cv_c_tclh+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20140else
bec39cab 20141
3fc11d3e
JM
20142# first check to see if --with-tclinclude was specified
20143if test x"${with_tclinclude}" != x ; then
20144 if test -f ${with_tclinclude}/tclInt.h ; then
20145 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20146 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20147 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20148 else
bec39cab
AC
20149 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20150echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20151 { (exit 1); exit 1; }; }
3fc11d3e
JM
20152 fi
20153fi
20154
20155# next check if it came with Tcl configuration file
20156if test x"${ac_cv_c_tclconfig}" = x ; then
20157 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20158 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20159 fi
20160fi
20161
20162# next check in private source directory
20163#
20164# since ls returns lowest version numbers first, reverse its output
20165if test x"${ac_cv_c_tclh}" = x ; then
20166 for i in \
20167 ${srcdir}/../tcl \
20168 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20169 ${srcdir}/../../tcl \
20170 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20171 ${srcdir}/../../../tcl \
20172 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20173 if test -f $i/generic/tclInt.h ; then
20174 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20175 break
20176 fi
20177 done
20178fi
20179# finally check in a few common install locations
20180#
20181# since ls returns lowest version numbers first, reverse its output
20182if test x"${ac_cv_c_tclh}" = x ; then
20183 for i in \
20184 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20185 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20186 /usr/local/src/tcl \
20187 /usr/local/lib/tcl \
20188 ${prefix}/include ; do
20189 if test -f $i/generic/tclInt.h ; then
20190 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20191 break
20192 fi
20193 done
20194fi
20195# see if one is installed
20196if test x"${ac_cv_c_tclh}" = x ; then
bec39cab
AC
20197 if test "${ac_cv_header_tclInt_h+set}" = set; then
20198 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20199echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20200if test "${ac_cv_header_tclInt_h+set}" = set; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20202fi
20203echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20204echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20205else
20206 # Is the header compilable?
20207echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20208echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20209cat >conftest.$ac_ext <<_ACEOF
20210/* confdefs.h. */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h. */
20215$ac_includes_default
20216#include <tclInt.h>
20217_ACEOF
20218rm -f conftest.$ac_objext
20219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20220 (eval $ac_compile) 2>conftest.er1
20221 ac_status=$?
20222 grep -v '^ *+' conftest.er1 >conftest.err
20223 rm -f conftest.er1
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } &&
20227 { ac_try='test -z "$ac_c_werror_flag"
20228 || test ! -s conftest.err'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; } &&
20234 { ac_try='test -s conftest.$ac_objext'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
20240 ac_header_compiler=yes
20241else
20242 echo "$as_me: failed program was:" >&5
20243sed 's/^/| /' conftest.$ac_ext >&5
20244
20245ac_header_compiler=no
20246fi
20247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20248echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20249echo "${ECHO_T}$ac_header_compiler" >&6
20250
20251# Is the header present?
20252echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20253echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20254cat >conftest.$ac_ext <<_ACEOF
20255/* confdefs.h. */
20256_ACEOF
20257cat confdefs.h >>conftest.$ac_ext
20258cat >>conftest.$ac_ext <<_ACEOF
20259/* end confdefs.h. */
3fc11d3e 20260#include <tclInt.h>
bec39cab
AC
20261_ACEOF
20262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20264 ac_status=$?
20265 grep -v '^ *+' conftest.er1 >conftest.err
20266 rm -f conftest.er1
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } >/dev/null; then
20270 if test -s conftest.err; then
20271 ac_cpp_err=$ac_c_preproc_warn_flag
20272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20273 else
20274 ac_cpp_err=
20275 fi
20276else
20277 ac_cpp_err=yes
3fc11d3e 20278fi
bec39cab
AC
20279if test -z "$ac_cpp_err"; then
20280 ac_header_preproc=yes
20281else
20282 echo "$as_me: failed program was:" >&5
20283sed 's/^/| /' conftest.$ac_ext >&5
20284
20285 ac_header_preproc=no
3fc11d3e 20286fi
bec39cab
AC
20287rm -f conftest.err conftest.$ac_ext
20288echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20289echo "${ECHO_T}$ac_header_preproc" >&6
20290
20291# So? What about this header?
20292case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20293 yes:no: )
20294 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20295echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20296 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20297echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20298 ac_header_preproc=yes
20299 ;;
20300 no:yes:* )
20301 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20302echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20304echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20305 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20306echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20308echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20310echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20312echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20313 (
20314 cat <<\_ASBOX
20315## ------------------------------------------ ##
20316## Report this to the AC_PACKAGE_NAME lists. ##
20317## ------------------------------------------ ##
20318_ASBOX
20319 ) |
20320 sed "s/^/$as_me: WARNING: /" >&2
20321 ;;
20322esac
20323echo "$as_me:$LINENO: checking for tclInt.h" >&5
20324echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20325if test "${ac_cv_header_tclInt_h+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20327else
20328 ac_cv_header_tclInt_h=$ac_header_preproc
20329fi
20330echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20331echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20332
20333fi
20334if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
20335 ac_cv_c_tclh=installed
20336else
bec39cab 20337 ac_cv_c_tclh=""
3fc11d3e
JM
20338fi
20339
bec39cab 20340
3fc11d3e
JM
20341fi
20342
20343fi
20344
20345if test x"${ac_cv_c_tclh}" = x ; then
20346 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
20347 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20348echo "$as_me: error: Can't find Tcl private headers" >&2;}
20349 { (exit 1); exit 1; }; }
3fc11d3e
JM
20350fi
20351if test x"${ac_cv_c_tclh}" != x ; then
20352 no_tcl=""
20353 if test x"${ac_cv_c_tclh}" = x"installed" ; then
bec39cab
AC
20354 echo "$as_me:$LINENO: result: is installed" >&5
20355echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20356 TCLHDIR=""
20357 else
bec39cab
AC
20358 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20359echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
20360 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20361 TCLHDIR="-I${ac_cv_c_tclh}"
20362 fi
20363fi
20364
20365
20366
bec39cab 20367
3fc11d3e
JM
20368#
20369# Ok, lets find the tk source trees so we can use the headers
20370# If the directory (presumably symlink) named "tk" exists, use that one
20371# in preference to any others. Same logic is used when choosing library
20372# and again with Tcl. The search order is the best place to look first, then in
20373# decreasing significance. The loop breaks if the trigger file is found.
20374# Note the gross little conversion here of srcdir by cd'ing to the found
20375# directory. This converts the path from a relative to an absolute, so
20376# recursive cache variables for the path will work right. We check all
20377# the possible paths in one loop rather than many seperate loops to speed
20378# things up.
20379# the alternative search directory is involked by --with-tkinclude
20380#
20381no_tk=true
bec39cab
AC
20382echo "$as_me:$LINENO: checking for Tk private headers" >&5
20383echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20384
3fc11d3e
JM
20385# Check whether --with-tkinclude or --without-tkinclude was given.
20386if test "${with_tkinclude+set}" = set; then
20387 withval="$with_tkinclude"
20388 with_tkinclude=${withval}
bec39cab
AC
20389fi;
20390if test "${ac_cv_c_tkh+set}" = set; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20392else
bec39cab 20393
3fc11d3e
JM
20394# first check to see if --with-tkinclude was specified
20395if test x"${with_tkinclude}" != x ; then
20396 if test -f ${with_tkinclude}/tk.h ; then
20397 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20398 elif test -f ${with_tkinclude}/generic/tk.h ; then
20399 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20400 else
bec39cab
AC
20401 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20402echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20403 { (exit 1); exit 1; }; }
3fc11d3e
JM
20404 fi
20405fi
20406
20407# next check if it came with Tk configuration file
20408if test x"${ac_cv_c_tkconfig}" = x ; then
20409 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20410 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20411 fi
20412fi
20413
20414# next check in private source directory
20415#
20416# since ls returns lowest version numbers first, reverse its output
20417if test x"${ac_cv_c_tkh}" = x ; then
20418 for i in \
20419 ${srcdir}/../tk \
20420 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20421 ${srcdir}/../../tk \
20422 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20423 ${srcdir}/../../../tk \
20424 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20425 if test -f $i/generic/tk.h ; then
20426 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20427 break
20428 fi
20429 done
20430fi
20431# finally check in a few common install locations
20432#
20433# since ls returns lowest version numbers first, reverse its output
20434if test x"${ac_cv_c_tkh}" = x ; then
20435 for i in \
20436 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20437 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20438 /usr/local/src/tk \
20439 /usr/local/lib/tk \
20440 ${prefix}/include ; do
20441 if test -f $i/generic/tk.h ; then
20442 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20443 break
20444 fi
20445 done
20446fi
20447# see if one is installed
20448if test x"${ac_cv_c_tkh}" = x ; then
bec39cab
AC
20449 if test "${ac_cv_header_tk_h+set}" = set; then
20450 echo "$as_me:$LINENO: checking for tk.h" >&5
20451echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20452if test "${ac_cv_header_tk_h+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20454fi
20455echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20456echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20457else
20458 # Is the header compilable?
20459echo "$as_me:$LINENO: checking tk.h usability" >&5
20460echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20461cat >conftest.$ac_ext <<_ACEOF
20462/* confdefs.h. */
20463_ACEOF
20464cat confdefs.h >>conftest.$ac_ext
20465cat >>conftest.$ac_ext <<_ACEOF
20466/* end confdefs.h. */
20467$ac_includes_default
3fc11d3e 20468#include <tk.h>
bec39cab
AC
20469_ACEOF
20470rm -f conftest.$ac_objext
20471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20472 (eval $ac_compile) 2>conftest.er1
20473 ac_status=$?
20474 grep -v '^ *+' conftest.er1 >conftest.err
20475 rm -f conftest.er1
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -z "$ac_c_werror_flag"
20480 || test ! -s conftest.err'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; } &&
20486 { ac_try='test -s conftest.$ac_objext'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 ac_header_compiler=yes
20493else
20494 echo "$as_me: failed program was:" >&5
20495sed 's/^/| /' conftest.$ac_ext >&5
20496
20497ac_header_compiler=no
20498fi
20499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20500echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20501echo "${ECHO_T}$ac_header_compiler" >&6
20502
20503# Is the header present?
20504echo "$as_me:$LINENO: checking tk.h presence" >&5
20505echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20506cat >conftest.$ac_ext <<_ACEOF
20507/* confdefs.h. */
20508_ACEOF
20509cat confdefs.h >>conftest.$ac_ext
20510cat >>conftest.$ac_ext <<_ACEOF
20511/* end confdefs.h. */
20512#include <tk.h>
20513_ACEOF
20514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20516 ac_status=$?
20517 grep -v '^ *+' conftest.er1 >conftest.err
20518 rm -f conftest.er1
20519 cat conftest.err >&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } >/dev/null; then
20522 if test -s conftest.err; then
20523 ac_cpp_err=$ac_c_preproc_warn_flag
20524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20525 else
20526 ac_cpp_err=
20527 fi
20528else
20529 ac_cpp_err=yes
3fc11d3e 20530fi
bec39cab
AC
20531if test -z "$ac_cpp_err"; then
20532 ac_header_preproc=yes
20533else
20534 echo "$as_me: failed program was:" >&5
20535sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 ac_header_preproc=no
20538fi
20539rm -f conftest.err conftest.$ac_ext
20540echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20541echo "${ECHO_T}$ac_header_preproc" >&6
20542
20543# So? What about this header?
20544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20545 yes:no: )
20546 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20547echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20549echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20550 ac_header_preproc=yes
20551 ;;
20552 no:yes:* )
20553 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20554echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20556echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20557 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20558echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20559 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20560echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20561 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20562echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20563 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20564echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20565 (
20566 cat <<\_ASBOX
20567## ------------------------------------------ ##
20568## Report this to the AC_PACKAGE_NAME lists. ##
20569## ------------------------------------------ ##
20570_ASBOX
20571 ) |
20572 sed "s/^/$as_me: WARNING: /" >&2
20573 ;;
20574esac
20575echo "$as_me:$LINENO: checking for tk.h" >&5
20576echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20577if test "${ac_cv_header_tk_h+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20579else
20580 ac_cv_header_tk_h=$ac_header_preproc
20581fi
20582echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20583echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20584
3fc11d3e 20585fi
bec39cab 20586if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
20587 ac_cv_c_tkh=installed
20588else
bec39cab 20589 ac_cv_c_tkh=""
3fc11d3e
JM
20590fi
20591
bec39cab 20592
3fc11d3e
JM
20593fi
20594
20595fi
20596
20597if test x"${ac_cv_c_tkh}" != x ; then
20598 no_tk=""
20599 if test x"${ac_cv_c_tkh}" = x"installed" ; then
bec39cab
AC
20600 echo "$as_me:$LINENO: result: is installed" >&5
20601echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20602 TKHDIR=""
20603 else
bec39cab
AC
20604 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20605echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
20606 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20607 TKHDIR="-I${ac_cv_c_tkh}"
20608 fi
20609else
20610 TKHDIR="# no Tk directory found"
bec39cab
AC
20611 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20612echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
20613 no_tk=true
20614fi
20615
20616
20617
bec39cab
AC
20618
20619echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20620echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
20621if test x"${ac_cv_c_itclh}" = x ; then
20622 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20623 if test -f $i/generic/itcl.h ; then
20624 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20625 break
20626 fi
20627 done
20628fi
20629if test x"${ac_cv_c_itclh}" = x ; then
20630 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
20631 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20632echo "$as_me: error: Can't find Itcl private headers" >&2;}
20633 { (exit 1); exit 1; }; }
3fc11d3e
JM
20634fi
20635if test x"${ac_cv_c_itclh}" != x ; then
20636 ITCLHDIR="-I${ac_cv_c_itclh}"
20637fi
20638# should always be here
20639# ITCLLIB="../itcl/itcl/unix/libitcl.a"
20640
20641#AC_SUBST(ITCLLIB)
20642
bec39cab
AC
20643
20644echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20645echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
20646if test x"${ac_cv_c_itkh}" = x ; then
20647 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20648 if test -f $i/generic/itk.h ; then
20649 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20650 break
20651 fi
20652 done
20653fi
20654if test x"${ac_cv_c_itkh}" = x ; then
20655 ITKHDIR="# no Itk private headers found"
bec39cab
AC
20656 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20657echo "$as_me: error: Can't find Itk private headers" >&2;}
20658 { (exit 1); exit 1; }; }
3fc11d3e
JM
20659fi
20660if test x"${ac_cv_c_itkh}" != x ; then
20661 ITKHDIR="-I${ac_cv_c_itkh}"
20662fi
20663# should always be here
20664# ITKLIB="../itcl/itk/unix/libitk.a"
20665
20666#AC_SUBST(ITKLIB)
20667
3fc11d3e 20668
dd2504ab
JM
20669
20670 # now look for Tk library stuff
20671
d91670b9 20672 tkdir="../tk/${configdir}/"
dd2504ab
JM
20673
20674 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20675
3fc11d3e
JM
20676 # now look for Itcl library stuff
20677
bec39cab 20678
3fc11d3e
JM
20679#
20680# Ok, lets find the itcl configuration
bec39cab 20681# First, look for one uninstalled.
3fc11d3e
JM
20682# the alternative search directory is invoked by --with-itclconfig
20683#
20684
20685if test x"${no_itcl}" = x ; then
20686 # we reset no_itcl in case something fails here
20687 no_itcl=true
bec39cab
AC
20688
20689# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e
JM
20690if test "${with_itclconfig+set}" = set; then
20691 withval="$with_itclconfig"
20692 with_itclconfig=${withval}
bec39cab
AC
20693fi;
20694 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20695echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20696 if test "${ac_cv_c_itclconfig+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20698else
bec39cab 20699
3fc11d3e
JM
20700
20701 # First check to see if --with-itclconfig was specified.
20702 if test x"${with_itclconfig}" != x ; then
20703 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20704 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20705 else
bec39cab
AC
20706 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20707echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20708 { (exit 1); exit 1; }; }
3fc11d3e
JM
20709 fi
20710 fi
20711
20712 # then check for a private Itcl library
20713 if test x"${ac_cv_c_itclconfig}" = x ; then
20714 for i in \
20715 ../itcl/itcl \
20716 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20717 ../../itcl \
20718 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20719 ../../../itcl \
20720 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20721 if test -f "$i/itclConfig.sh" ; then
20722 ac_cv_c_itclconfig=`(cd $i; pwd)`
20723 break
20724 fi
20725 done
20726 fi
20727 # check in a few common install locations
20728 if test x"${ac_cv_c_itclconfig}" = x ; then
20729 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20730 if test -f "$i/itclConfig.sh" ; then
20731 ac_cv_c_itclconfig=`(cd $i; pwd)`
20732 break
20733 fi
20734 done
20735 fi
20736 # check in a few other private locations
20737 if test x"${ac_cv_c_itclconfig}" = x ; then
20738 for i in \
20739 ${srcdir}/../itcl/itcl \
20740 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
20741 if test -f "$i/itclConfig.sh" ; then
20742 ac_cv_c_itclconfig=`(cd $i; pwd)`
20743 break
20744 fi
20745 done
20746 fi
bec39cab 20747
3fc11d3e
JM
20748fi
20749
20750 if test x"${ac_cv_c_itclconfig}" = x ; then
20751 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
20752 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
20753echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
20754 else
20755 no_itcl=
20756 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
bec39cab
AC
20757 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
20758echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
20759 fi
20760fi
20761
20762 if test -z "${no_itcl}"; then
bec39cab 20763
3fc11d3e
JM
20764 if test -f "$ITCLCONFIG" ; then
20765 . $ITCLCONFIG
20766 fi
20767
3fc11d3e 20768
3fc11d3e
JM
20769
20770
bec39cab
AC
20771
20772
20773
20774
20775
20776
20777
3fc11d3e
JM
20778
20779 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 20780 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
20781 fi
20782
bec39cab 20783
3fc11d3e 20784 # now look for Itk library stuff
bec39cab 20785
3fc11d3e
JM
20786#
20787# Ok, lets find the itk configuration
bec39cab 20788# First, look for one uninstalled.
3fc11d3e
JM
20789# the alternative search directory is invoked by --with-itkconfig
20790#
20791
20792if test x"${no_itk}" = x ; then
20793 # we reset no_itk in case something fails here
20794 no_itk=true
bec39cab
AC
20795
20796# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e
JM
20797if test "${with_itkconfig+set}" = set; then
20798 withval="$with_itkconfig"
20799 with_itkconfig=${withval}
bec39cab
AC
20800fi;
20801 echo "$as_me:$LINENO: checking for Itk configuration" >&5
20802echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
20803 if test "${ac_cv_c_itkconfig+set}" = set; then
20804 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20805else
bec39cab 20806
3fc11d3e
JM
20807
20808 # First check to see if --with-itkconfig was specified.
20809 if test x"${with_itkconfig}" != x ; then
20810 if test -f "${with_itkconfig}/itkConfig.sh" ; then
20811 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
20812 else
bec39cab
AC
20813 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
20814echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
20815 { (exit 1); exit 1; }; }
3fc11d3e
JM
20816 fi
20817 fi
20818
20819 # then check for a private Itk library
20820 if test x"${ac_cv_c_itkconfig}" = x ; then
20821 for i in \
20822 ../itcl/itk \
20823 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
20824 ../../itk \
20825 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
20826 ../../../itk \
20827 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
20828 if test -f "$i/itkConfig.sh" ; then
20829 ac_cv_c_itkconfig=`(cd $i; pwd)`
20830 break
20831 fi
20832 done
20833 fi
20834 # check in a few common install locations
20835 if test x"${ac_cv_c_itkconfig}" = x ; then
20836 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20837 if test -f "$i/itkConfig.sh" ; then
20838 ac_cv_c_itkconfig=`(cd $i; pwd)`
20839 break
20840 fi
20841 done
20842 fi
20843 # check in a few other private locations
20844 if test x"${ac_cv_c_itkconfig}" = x ; then
20845 for i in \
20846 ${srcdir}/../itcl/itk \
20847 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
20848 if test -f "$i/itkConfig.sh" ; then
20849 ac_cv_c_itkconfig=`(cd $i; pwd)`
20850 break
20851 fi
20852 done
20853 fi
bec39cab 20854
3fc11d3e
JM
20855fi
20856
20857 if test x"${ac_cv_c_itkconfig}" = x ; then
20858 ITKCONFIG="# no Itk configs found"
bec39cab
AC
20859 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
20860echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
20861 else
20862 no_itk=
20863 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
bec39cab
AC
20864 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
20865echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
20866 fi
20867fi
20868
20869
bec39cab
AC
20870 if test -z "${no_itcl}"; then
20871
20872 if test -f "$ITKCONFIG" ; then
20873 . $ITKCONFIG
20874 fi
20875
20876
20877
20878
20879
20880
3fc11d3e 20881
3fc11d3e 20882
3fc11d3e
JM
20883
20884
3fc11d3e
JM
20885
20886
3fc11d3e 20887 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 20888 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
20889 fi
20890
4226a5a5 20891 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
20892 # Tcl/Tk 8.1 require -fwritable strings. I don't
20893 # know whether 8.2 will or not, but I bet it will.
20894 # I don't have to worry about 7.x since we don't support it.
20895 GDBTK_CFLAGS=""
20896 if test "$GCC" = "yes"; then
20897 if test "$TCL_VERSION" != "8.0" ; then
20898 GDBTK_CFLAGS="-fwritable-strings"
20899 fi
20900 fi
20901
20902 # Include some libraries that Tcl and Tk want.
b2a1bd4f 20903 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
20904 # Yes, the ordering seems wrong here. But it isn't.
20905 # TK_LIBS is the list of libraries that need to be linked
20906 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20907 # were in LIBS then any link tests after this point would
20908 # try to include things like `$(LIBGUI)', which wouldn't work.
20909 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
20910
20911 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20912 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20913 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
20914 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20915 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20916 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20917 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
20918
20919 if test x$gdb_cv_os_cygwin = xyes; then
20920 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20921 WIN32LDAPP="-Wl,--subsystem,console"
20922 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20923 fi
20924 fi
20925 fi
ffc6a242 20926
bec39cab
AC
20927
20928
20929subdirs="$subdirs gdbtk"
3ace7edb 20930
3fc11d3e
JM
20931fi
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
dd2504ab 20945
bec39cab
AC
20946echo "$as_me:$LINENO: checking for X" >&5
20947echo $ECHO_N "checking for X... $ECHO_C" >&6
20948
c906108c
SS
20949
20950# Check whether --with-x or --without-x was given.
20951if test "${with_x+set}" = set; then
20952 withval="$with_x"
c906108c 20953
bec39cab 20954fi;
c906108c
SS
20955# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20956if test "x$with_x" = xno; then
20957 # The user explicitly disabled X.
20958 have_x=disabled
20959else
20960 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20961 # Both variables are already set.
20962 have_x=yes
20963 else
bec39cab
AC
20964 if test "${ac_cv_have_x+set}" = set; then
20965 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
20966else
20967 # One or both of the vars are not set, and there is no cached value.
bec39cab
AC
20968ac_x_includes=no ac_x_libraries=no
20969rm -fr conftest.dir
20970if mkdir conftest.dir; then
20971 cd conftest.dir
c906108c 20972 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 20973 cat >Imakefile <<'_ACEOF'
c906108c
SS
20974acfindx:
20975 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 20976_ACEOF
c906108c
SS
20977 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20979 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20980 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20981 for ac_extension in a so sl; do
20982 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
20983 test -f $ac_im_libdir/libX11.$ac_extension; then
20984 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
20985 fi
20986 done
20987 # Screen out bogus values from the imake configuration. They are
20988 # bogus both because they are the default anyway, and because
20989 # using them would break gcc on systems where it needs fixed includes.
bec39cab 20990 case $ac_im_incroot in
c906108c 20991 /usr/include) ;;
bec39cab 20992 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 20993 esac
bec39cab 20994 case $ac_im_usrlibdir in
c906108c 20995 /usr/lib | /lib) ;;
bec39cab 20996 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
20997 esac
20998 fi
20999 cd ..
bec39cab 21000 rm -fr conftest.dir
c906108c
SS
21001fi
21002
bec39cab
AC
21003# Standard set of common directories for X headers.
21004# Check X11 before X11Rn because it is often a symlink to the current release.
21005ac_x_header_dirs='
21006/usr/X11/include
21007/usr/X11R6/include
21008/usr/X11R5/include
21009/usr/X11R4/include
21010
21011/usr/include/X11
21012/usr/include/X11R6
21013/usr/include/X11R5
21014/usr/include/X11R4
21015
21016/usr/local/X11/include
21017/usr/local/X11R6/include
21018/usr/local/X11R5/include
21019/usr/local/X11R4/include
21020
21021/usr/local/include/X11
21022/usr/local/include/X11R6
21023/usr/local/include/X11R5
21024/usr/local/include/X11R4
21025
21026/usr/X386/include
21027/usr/x386/include
21028/usr/XFree86/include/X11
21029
21030/usr/include
21031/usr/local/include
21032/usr/unsupported/include
21033/usr/athena/include
21034/usr/local/x11r5/include
21035/usr/lpp/Xamples/include
21036
21037/usr/openwin/include
21038/usr/openwin/share/include'
21039
21040if test "$ac_x_includes" = no; then
21041 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 21042 # First, try using that file with no special directory specified.
bec39cab
AC
21043 cat >conftest.$ac_ext <<_ACEOF
21044/* confdefs.h. */
21045_ACEOF
21046cat confdefs.h >>conftest.$ac_ext
21047cat >>conftest.$ac_ext <<_ACEOF
21048/* end confdefs.h. */
21049#include <X11/Intrinsic.h>
21050_ACEOF
21051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21053 ac_status=$?
21054 grep -v '^ *+' conftest.er1 >conftest.err
21055 rm -f conftest.er1
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } >/dev/null; then
21059 if test -s conftest.err; then
21060 ac_cpp_err=$ac_c_preproc_warn_flag
21061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21062 else
21063 ac_cpp_err=
21064 fi
21065else
21066 ac_cpp_err=yes
21067fi
21068if test -z "$ac_cpp_err"; then
c906108c
SS
21069 # We can compile using X headers with no special include directory.
21070ac_x_includes=
21071else
bec39cab
AC
21072 echo "$as_me: failed program was:" >&5
21073sed 's/^/| /' conftest.$ac_ext >&5
21074
21075 for ac_dir in $ac_x_header_dirs; do
21076 if test -r "$ac_dir/X11/Intrinsic.h"; then
21077 ac_x_includes=$ac_dir
21078 break
21079 fi
21080done
c906108c 21081fi
bec39cab
AC
21082rm -f conftest.err conftest.$ac_ext
21083fi # $ac_x_includes = no
c906108c 21084
bec39cab 21085if test "$ac_x_libraries" = no; then
c906108c 21086 # Check for the libraries.
c906108c
SS
21087 # See if we find them without any special options.
21088 # Don't add to $LIBS permanently.
bec39cab
AC
21089 ac_save_LIBS=$LIBS
21090 LIBS="-lXt $LIBS"
21091 cat >conftest.$ac_ext <<_ACEOF
21092/* confdefs.h. */
21093_ACEOF
21094cat confdefs.h >>conftest.$ac_ext
21095cat >>conftest.$ac_ext <<_ACEOF
21096/* end confdefs.h. */
21097#include <X11/Intrinsic.h>
21098int
21099main ()
21100{
21101XtMalloc (0)
21102 ;
21103 return 0;
21104}
21105_ACEOF
21106rm -f conftest.$ac_objext conftest$ac_exeext
21107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21108 (eval $ac_link) 2>conftest.er1
21109 ac_status=$?
21110 grep -v '^ *+' conftest.er1 >conftest.err
21111 rm -f conftest.er1
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } &&
21115 { ac_try='test -z "$ac_c_werror_flag"
21116 || test ! -s conftest.err'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21119 ac_status=$?
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; } &&
21122 { ac_try='test -s conftest$ac_exeext'
21123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21125 ac_status=$?
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 LIBS=$ac_save_LIBS
c906108c
SS
21129# We can link X programs with no special library path.
21130ac_x_libraries=
21131else
bec39cab
AC
21132 echo "$as_me: failed program was:" >&5
21133sed 's/^/| /' conftest.$ac_ext >&5
21134
21135LIBS=$ac_save_LIBS
21136for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 21137do
bec39cab 21138 # Don't even attempt the hair of trying to link an X program!
c906108c 21139 for ac_extension in a so sl; do
bec39cab 21140 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
21141 ac_x_libraries=$ac_dir
21142 break 2
21143 fi
21144 done
21145done
21146fi
bec39cab
AC
21147rm -f conftest.err conftest.$ac_objext \
21148 conftest$ac_exeext conftest.$ac_ext
21149fi # $ac_x_libraries = no
c906108c 21150
bec39cab 21151if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
21152 # Didn't find X anywhere. Cache the known absence of X.
21153 ac_cv_have_x="have_x=no"
21154else
21155 # Record where we found X for the cache.
21156 ac_cv_have_x="have_x=yes \
bec39cab 21157 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
21158fi
21159fi
bec39cab 21160
c906108c
SS
21161 fi
21162 eval "$ac_cv_have_x"
21163fi # $with_x != no
21164
21165if test "$have_x" != yes; then
bec39cab
AC
21166 echo "$as_me:$LINENO: result: $have_x" >&5
21167echo "${ECHO_T}$have_x" >&6
c906108c
SS
21168 no_x=yes
21169else
21170 # If each of the values was on the command line, it overrides each guess.
21171 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21172 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21173 # Update the cache value to reflect the command line values.
21174 ac_cv_have_x="have_x=yes \
21175 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
bec39cab
AC
21176 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21177echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
21178fi
21179
21180
9cc52bde
MK
21181# Check whether we should enable the TUI, but only do so if we really
21182# can.
21183if test x"$enable_tui" = xyes; then
21184 if test -d $srcdir/tui; then
21185 if test "$ac_cv_search_waddstr" != no; then
21186 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21187 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21188 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21189 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21190 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21191 CONFIG_ALL="${CONFIG_ALL} all-tui"
21192 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21193 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21194 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21195 else
bec39cab
AC
21196 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21197echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
21198 fi
21199 fi
21200fi
21201
bec39cab
AC
21202# Unlike the sim directory, whether a simulator is linked is controlled by
21203# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
21204# This code just checks for a few cases where we'd like to ignore those
21205# definitions, even when they're present in the '.mt' file. These cases
21206# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 21207# not part of the source tree.
7a292a7a
SS
21208#
21209# Check whether --enable-sim or --disable-sim was given.
21210if test "${enable_sim+set}" = set; then
21211 enableval="$enable_sim"
21212 echo "enable_sim = $enable_sim";
21213 echo "enableval = ${enableval}";
21214 case "${enableval}" in
21215 yes) ignore_sim=false ;;
21216 no) ignore_sim=true ;;
21217 *) ignore_sim=false ;;
21218 esac
21219else
21220 ignore_sim=false
bec39cab 21221fi;
7a292a7a
SS
21222
21223if test ! -d "${srcdir}/../sim"; then
21224 ignore_sim=true
21225fi
21226
21227if test "${ignore_sim}" = "true"; then
21228 IGNORE_SIM="SIM="
21229 IGNORE_SIM_OBS="SIM_OBS="
21230else
21231 IGNORE_SIM=""
21232 IGNORE_SIM_OBS=""
bec39cab 21233 cat >>confdefs.h <<\_ACEOF
7a292a7a 21234#define WITH_SIM 1
bec39cab 21235_ACEOF
7a292a7a
SS
21236
21237fi
21238
21239
21240
c906108c
SS
21241
21242
21243
21244
21245
21246
dfcd3bfb 21247
e56ac5c3
AC
21248
21249
b3a90332
AC
21250
21251
c35f4ffc 21252# List of host floatformats.
bec39cab
AC
21253
21254cat >>confdefs.h <<_ACEOF
c35f4ffc 21255#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 21256_ACEOF
c35f4ffc 21257
bec39cab
AC
21258
21259cat >>confdefs.h <<_ACEOF
c35f4ffc 21260#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
21261_ACEOF
21262
c35f4ffc 21263
bec39cab 21264cat >>confdefs.h <<_ACEOF
c35f4ffc 21265#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 21266_ACEOF
c35f4ffc
AC
21267
21268
c906108c
SS
21269# target_subdir is used by the testsuite to find the target libraries.
21270target_subdir=
21271if test "${host}" != "${target}"; then
21272 target_subdir="${target_alias}/"
21273fi
21274
21275
21276frags=
0dad8a66
MK
21277if test "${target}" = "${host}"; then
21278 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21279 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
21280 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21281echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21282 { (exit 1); exit 1; }; }
0dad8a66
MK
21283 fi
21284 frags="$frags $host_makefile_frag"
21285else
21286 host_makefile_frag=/dev/null
c906108c 21287fi
c906108c
SS
21288
21289target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21290if test ! -f ${target_makefile_frag}; then
bec39cab
AC
21291 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21292echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21293 { (exit 1); exit 1; }; }
c906108c
SS
21294fi
21295frags="$frags $target_makefile_frag"
21296
21297
21298
21299
21300
21301hostfile=`sed -n '
21302s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21303' ${host_makefile_frag}`
21304
21305targetfile=`sed -n '
2c0fc042 21306s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
21307' ${target_makefile_frag}`
21308
c906108c 21309if test "${target}" = "${host}"; then
a85f51e7
DJ
21310# We pick this up from the host configuration file (.mh) because we
21311# do not have a native configuration Makefile fragment.
c906108c
SS
21312nativefile=`sed -n '
21313s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21314' ${host_makefile_frag}`
c906108c
SS
21315fi
21316
21317
b00a8037 21318if test x"${gdb_osabi}" != x ; then
bec39cab
AC
21319
21320cat >>confdefs.h <<_ACEOF
b00a8037 21321#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 21322_ACEOF
b00a8037
DJ
21323
21324fi
21325
8dcde887
MK
21326# Enable multi-ice-gdb-server.
21327# Check whether --enable-multi-ice or --disable-multi-ice was given.
21328if test "${enable_multi_ice+set}" = set; then
21329 enableval="$enable_multi_ice"
21330 case $enableval in
21331 yes | no)
21332 ;;
bec39cab
AC
21333 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21334echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21335 { (exit 1); exit 1; }; } ;;
8dcde887 21336 esac
bec39cab 21337fi;
8dcde887 21338if test "x$enable_multi_ice" = xyes; then
bec39cab
AC
21339
21340
21341subdirs="$subdirs multi-ice"
3ace7edb 21342
a85f51e7
DJ
21343fi
21344
8dcde887
MK
21345# We only build gdbserver automatically if host and target are the same.
21346if test "x$target" = "x$host"; then
bec39cab
AC
21347 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21348echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 21349 if test "x$build_gdbserver" = xyes; then
bec39cab
AC
21350 echo "$as_me:$LINENO: result: yes" >&5
21351echo "${ECHO_T}yes" >&6
21352
21353
21354subdirs="$subdirs gdbserver"
3ace7edb 21355
8dcde887 21356 else
bec39cab
AC
21357 echo "$as_me:$LINENO: result: no" >&5
21358echo "${ECHO_T}no" >&6
8dcde887
MK
21359 fi
21360fi
21361
2c0fc042
AC
21362# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21363# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21364# to an empty version.
c906108c
SS
21365
21366files=
21367links=
5a2402b8 21368
c906108c 21369rm -f xm.h
5a2402b8 21370xm_h=""
c906108c 21371if test "${hostfile}" != ""; then
5a2402b8 21372 xm_h=xm.h
0f475e27
AC
21373 case "${hostfile}" in
21374 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21375 * ) GDB_XM_FILE="${hostfile}"
21376 esac
5a2402b8
AC
21377 files="${files} ${GDB_XM_FILE}"
21378 links="${links} xm.h"
bec39cab 21379 cat >>confdefs.h <<_ACEOF
b78960be 21380#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 21381_ACEOF
5a2402b8 21382
c906108c 21383fi
5a2402b8
AC
21384
21385
c906108c 21386rm -f tm.h
5a2402b8 21387tm_h=""
c906108c 21388if test "${targetfile}" != ""; then
5a2402b8 21389 tm_h=tm.h
0f475e27 21390 case "${targetfile}" in
b8c4aece 21391 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
21392 * ) GDB_TM_FILE="${targetfile}"
21393 esac
5a2402b8
AC
21394 files="${files} ${GDB_TM_FILE}"
21395 links="${links} tm.h"
bec39cab 21396 cat >>confdefs.h <<_ACEOF
b78960be 21397#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 21398_ACEOF
5a2402b8 21399
c906108c 21400fi
5a2402b8
AC
21401
21402
c906108c 21403rm -f nm.h
5a2402b8 21404nm_h=""
c906108c 21405if test "${nativefile}" != ""; then
5a2402b8 21406 nm_h=nm.h
0f475e27
AC
21407 case "${nativefile}" in
21408 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21409 * ) GDB_NM_FILE="${nativefile}"
21410 esac
5a2402b8
AC
21411 files="${files} ${GDB_NM_FILE}"
21412 links="${links} nm.h"
bec39cab 21413 cat >>confdefs.h <<_ACEOF
b78960be 21414#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 21415_ACEOF
5a2402b8 21416
c906108c 21417fi
5a2402b8
AC
21418
21419
bec39cab
AC
21420ac_sources="$files"
21421ac_dests="$links"
21422while test -n "$ac_sources"; do
21423 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21424 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21425 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21426done
21427 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
21428
21429
c906108c
SS
21430
21431
c906108c 21432
c906108c 21433
bec39cab
AC
21434cat >>confdefs.h <<\_ACEOF
21435#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21436_ACEOF
c906108c 21437
234b45d4 21438
234b45d4
KB
21439
21440
21441
bec39cab 21442# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4
KB
21443if test "${with_libiconv_prefix+set}" = set; then
21444 withval="$with_libiconv_prefix"
bec39cab 21445
234b45d4
KB
21446 for dir in `echo "$withval" | tr : ' '`; do
21447 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21448 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21449 done
234b45d4 21450
bec39cab 21451fi;
234b45d4 21452
bec39cab
AC
21453 echo "$as_me:$LINENO: checking for iconv" >&5
21454echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21455if test "${am_cv_func_iconv+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 21457else
bec39cab 21458
234b45d4
KB
21459 am_cv_func_iconv="no, consider installing GNU libiconv"
21460 am_cv_lib_iconv=no
bec39cab
AC
21461 cat >conftest.$ac_ext <<_ACEOF
21462/* confdefs.h. */
21463_ACEOF
21464cat confdefs.h >>conftest.$ac_ext
21465cat >>conftest.$ac_ext <<_ACEOF
21466/* end confdefs.h. */
234b45d4
KB
21467#include <stdlib.h>
21468#include <iconv.h>
bec39cab
AC
21469int
21470main ()
21471{
234b45d4
KB
21472iconv_t cd = iconv_open("","");
21473 iconv(cd,NULL,NULL,NULL,NULL);
21474 iconv_close(cd);
bec39cab
AC
21475 ;
21476 return 0;
21477}
21478_ACEOF
21479rm -f conftest.$ac_objext conftest$ac_exeext
21480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21481 (eval $ac_link) 2>conftest.er1
21482 ac_status=$?
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
21488 { ac_try='test -z "$ac_c_werror_flag"
21489 || test ! -s conftest.err'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21492 ac_status=$?
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; } &&
21495 { ac_try='test -s conftest$ac_exeext'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21498 ac_status=$?
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }; then
234b45d4
KB
21501 am_cv_func_iconv=yes
21502else
bec39cab
AC
21503 echo "$as_me: failed program was:" >&5
21504sed 's/^/| /' conftest.$ac_ext >&5
21505
234b45d4 21506fi
bec39cab
AC
21507rm -f conftest.err conftest.$ac_objext \
21508 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21509 if test "$am_cv_func_iconv" != yes; then
21510 am_save_LIBS="$LIBS"
21511 LIBS="$LIBS -liconv"
bec39cab
AC
21512 cat >conftest.$ac_ext <<_ACEOF
21513/* confdefs.h. */
21514_ACEOF
21515cat confdefs.h >>conftest.$ac_ext
21516cat >>conftest.$ac_ext <<_ACEOF
21517/* end confdefs.h. */
234b45d4
KB
21518#include <stdlib.h>
21519#include <iconv.h>
bec39cab
AC
21520int
21521main ()
21522{
234b45d4
KB
21523iconv_t cd = iconv_open("","");
21524 iconv(cd,NULL,NULL,NULL,NULL);
21525 iconv_close(cd);
bec39cab
AC
21526 ;
21527 return 0;
21528}
21529_ACEOF
21530rm -f conftest.$ac_objext conftest$ac_exeext
21531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21532 (eval $ac_link) 2>conftest.er1
21533 ac_status=$?
21534 grep -v '^ *+' conftest.er1 >conftest.err
21535 rm -f conftest.er1
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } &&
21539 { ac_try='test -z "$ac_c_werror_flag"
21540 || test ! -s conftest.err'
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; } &&
21546 { ac_try='test -s conftest$ac_exeext'
21547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21548 (eval $ac_try) 2>&5
21549 ac_status=$?
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); }; }; then
234b45d4
KB
21552 am_cv_lib_iconv=yes
21553 am_cv_func_iconv=yes
21554else
bec39cab
AC
21555 echo "$as_me: failed program was:" >&5
21556sed 's/^/| /' conftest.$ac_ext >&5
21557
234b45d4 21558fi
bec39cab
AC
21559rm -f conftest.err conftest.$ac_objext \
21560 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21561 LIBS="$am_save_LIBS"
21562 fi
bec39cab
AC
21563
21564fi
21565echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21566echo "${ECHO_T}$am_cv_func_iconv" >&6
21567 if test "$am_cv_func_iconv" = yes; then
21568
21569cat >>confdefs.h <<\_ACEOF
21570#define HAVE_ICONV 1
21571_ACEOF
21572
21573 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21574echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21575 if test "${am_cv_proto_iconv+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21577else
21578
21579 cat >conftest.$ac_ext <<_ACEOF
21580/* confdefs.h. */
21581_ACEOF
21582cat confdefs.h >>conftest.$ac_ext
21583cat >>conftest.$ac_ext <<_ACEOF
21584/* end confdefs.h. */
21585
21586#include <stdlib.h>
21587#include <iconv.h>
21588extern
21589#ifdef __cplusplus
21590"C"
21591#endif
21592#if defined(__STDC__) || defined(__cplusplus)
21593size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21594#else
21595size_t iconv();
21596#endif
21597
21598int
21599main ()
21600{
21601
21602 ;
21603 return 0;
21604}
21605_ACEOF
21606rm -f conftest.$ac_objext
21607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21608 (eval $ac_compile) 2>conftest.er1
21609 ac_status=$?
21610 grep -v '^ *+' conftest.er1 >conftest.err
21611 rm -f conftest.er1
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } &&
21615 { ac_try='test -z "$ac_c_werror_flag"
21616 || test ! -s conftest.err'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21619 ac_status=$?
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; } &&
21622 { ac_try='test -s conftest.$ac_objext'
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 am_cv_proto_iconv_arg1=""
21629else
21630 echo "$as_me: failed program was:" >&5
21631sed 's/^/| /' conftest.$ac_ext >&5
21632
21633am_cv_proto_iconv_arg1="const"
21634fi
21635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21636 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);"
21637fi
21638
21639 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21640 echo "$as_me:$LINENO: result: ${ac_t:-
21641 }$am_cv_proto_iconv" >&5
21642echo "${ECHO_T}${ac_t:-
21643 }$am_cv_proto_iconv" >&6
21644
21645cat >>confdefs.h <<_ACEOF
21646#define ICONV_CONST $am_cv_proto_iconv_arg1
21647_ACEOF
21648
21649 fi
21650 LIBICONV=
21651 if test "$am_cv_lib_iconv" = yes; then
21652 LIBICONV="-liconv"
21653 fi
21654
21655
21656
21657 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21658 ac_config_commands="$ac_config_commands default"
21659cat >confcache <<\_ACEOF
21660# This file is a shell script that caches the results of configure
21661# tests run on this system so they can be shared between configure
21662# scripts and configure runs, see configure's option --config-cache.
21663# It is not useful on other systems. If it contains results you don't
21664# want to keep, you may remove or edit it.
21665#
21666# config.status only pays attention to the cache file if you give it
21667# the --recheck option to rerun configure.
21668#
21669# `ac_cv_env_foo' variables (set or unset) will be overridden when
21670# loading this file, other *unset* `ac_cv_foo' will be assigned the
21671# following values.
21672
21673_ACEOF
21674
21675# The following way of writing the cache mishandles newlines in values,
21676# but we know of no workaround that is simple, portable, and efficient.
21677# So, don't put newlines in cache variables' values.
21678# Ultrix sh set writes to stderr and can't be redirected directly,
21679# and sets the high bit in the cache file unless we assign to the vars.
21680{
21681 (set) 2>&1 |
21682 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21683 *ac_space=\ *)
21684 # `set' does not quote correctly, so add quotes (double-quote
21685 # substitution turns \\\\ into \\, and sed turns \\ into \).
21686 sed -n \
21687 "s/'/'\\\\''/g;
21688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21689 ;;
21690 *)
21691 # `set' quotes correctly as required by POSIX, so do not add quotes.
21692 sed -n \
21693 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21694 ;;
21695 esac;
21696} |
21697 sed '
21698 t clear
21699 : clear
21700 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21701 t end
21702 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21703 : end' >>confcache
21704if diff $cache_file confcache >/dev/null 2>&1; then :; else
21705 if test -w $cache_file; then
21706 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21707 cat confcache >$cache_file
21708 else
21709 echo "not updating unwritable cache $cache_file"
21710 fi
21711fi
21712rm -f confcache
21713
21714test "x$prefix" = xNONE && prefix=$ac_default_prefix
21715# Let make expand exec_prefix.
21716test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21717
21718# VPATH may cause trouble with some makes, so we remove $(srcdir),
21719# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21720# trailing colons and then remove the whole line if VPATH becomes empty
21721# (actually we leave an empty line to preserve line numbers).
21722if test "x$srcdir" = x.; then
21723 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21724s/:*\$(srcdir):*/:/;
21725s/:*\${srcdir}:*/:/;
21726s/:*@srcdir@:*/:/;
21727s/^\([^=]*=[ ]*\):*/\1/;
21728s/:*$//;
21729s/^[^=]*=[ ]*$//;
21730}'
21731fi
21732
21733DEFS=-DHAVE_CONFIG_H
21734
21735ac_libobjs=
21736ac_ltlibobjs=
21737for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21738 # 1. Remove the extension, and $U if already installed.
21739 ac_i=`echo "$ac_i" |
21740 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21741 # 2. Add them.
21742 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21743 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21744done
21745LIBOBJS=$ac_libobjs
21746
21747LTLIBOBJS=$ac_ltlibobjs
21748
21749
21750
21751: ${CONFIG_STATUS=./config.status}
21752ac_clean_files_save=$ac_clean_files
21753ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21754{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21755echo "$as_me: creating $CONFIG_STATUS" >&6;}
21756cat >$CONFIG_STATUS <<_ACEOF
21757#! $SHELL
21758# Generated by $as_me.
21759# Run this file to recreate the current configuration.
21760# Compiler output produced by configure, useful for debugging
21761# configure, is in config.log if it exists.
21762
21763debug=false
21764ac_cs_recheck=false
21765ac_cs_silent=false
21766SHELL=\${CONFIG_SHELL-$SHELL}
21767_ACEOF
21768
21769cat >>$CONFIG_STATUS <<\_ACEOF
21770## --------------------- ##
21771## M4sh Initialization. ##
21772## --------------------- ##
21773
21774# Be Bourne compatible
21775if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21776 emulate sh
21777 NULLCMD=:
21778 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21779 # is contrary to our usage. Disable this feature.
21780 alias -g '${1+"$@"}'='"$@"'
21781elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21782 set -o posix
21783fi
21784DUALCASE=1; export DUALCASE # for MKS sh
21785
21786# Support unset when possible.
21787if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21788 as_unset=unset
21789else
21790 as_unset=false
21791fi
21792
21793
21794# Work around bugs in pre-3.0 UWIN ksh.
21795$as_unset ENV MAIL MAILPATH
21796PS1='$ '
21797PS2='> '
21798PS4='+ '
21799
21800# NLS nuisances.
21801for as_var in \
21802 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21803 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21804 LC_TELEPHONE LC_TIME
21805do
21806 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21807 eval $as_var=C; export $as_var
21808 else
21809 $as_unset $as_var
21810 fi
21811done
21812
21813# Required to use basename.
21814if expr a : '\(a\)' >/dev/null 2>&1; then
21815 as_expr=expr
21816else
21817 as_expr=false
21818fi
21819
21820if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21821 as_basename=basename
21822else
21823 as_basename=false
21824fi
21825
21826
21827# Name of the executable.
21828as_me=`$as_basename "$0" ||
21829$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21830 X"$0" : 'X\(//\)$' \| \
21831 X"$0" : 'X\(/\)$' \| \
21832 . : '\(.\)' 2>/dev/null ||
21833echo X/"$0" |
21834 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21835 /^X\/\(\/\/\)$/{ s//\1/; q; }
21836 /^X\/\(\/\).*/{ s//\1/; q; }
21837 s/.*/./; q'`
21838
21839
21840# PATH needs CR, and LINENO needs CR and PATH.
21841# Avoid depending upon Character Ranges.
21842as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21843as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21844as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21845as_cr_digits='0123456789'
21846as_cr_alnum=$as_cr_Letters$as_cr_digits
21847
21848# The user is always right.
21849if test "${PATH_SEPARATOR+set}" != set; then
21850 echo "#! /bin/sh" >conf$$.sh
21851 echo "exit 0" >>conf$$.sh
21852 chmod +x conf$$.sh
21853 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21854 PATH_SEPARATOR=';'
21855 else
21856 PATH_SEPARATOR=:
21857 fi
21858 rm -f conf$$.sh
21859fi
21860
21861
21862 as_lineno_1=$LINENO
21863 as_lineno_2=$LINENO
21864 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21865 test "x$as_lineno_1" != "x$as_lineno_2" &&
21866 test "x$as_lineno_3" = "x$as_lineno_2" || {
21867 # Find who we are. Look in the path if we contain no path at all
21868 # relative or not.
21869 case $0 in
21870 *[\\/]* ) as_myself=$0 ;;
21871 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21872for as_dir in $PATH
21873do
21874 IFS=$as_save_IFS
21875 test -z "$as_dir" && as_dir=.
21876 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21877done
21878
21879 ;;
21880 esac
21881 # We did not find ourselves, most probably we were run as `sh COMMAND'
21882 # in which case we are not to be found in the path.
21883 if test "x$as_myself" = x; then
21884 as_myself=$0
21885 fi
21886 if test ! -f "$as_myself"; then
21887 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21888echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21889 { (exit 1); exit 1; }; }
21890 fi
21891 case $CONFIG_SHELL in
21892 '')
21893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21894for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21895do
21896 IFS=$as_save_IFS
21897 test -z "$as_dir" && as_dir=.
21898 for as_base in sh bash ksh sh5; do
21899 case $as_dir in
21900 /*)
21901 if ("$as_dir/$as_base" -c '
21902 as_lineno_1=$LINENO
21903 as_lineno_2=$LINENO
21904 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21905 test "x$as_lineno_1" != "x$as_lineno_2" &&
21906 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21907 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21908 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21909 CONFIG_SHELL=$as_dir/$as_base
21910 export CONFIG_SHELL
21911 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21912 fi;;
21913 esac
21914 done
21915done
21916;;
21917 esac
21918
21919 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21920 # uniformly replaced by the line number. The first 'sed' inserts a
21921 # line-number line before each line; the second 'sed' does the real
21922 # work. The second script uses 'N' to pair each line-number line
21923 # with the numbered line, and appends trailing '-' during
21924 # substitution so that $LINENO is not a special case at line end.
21925 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21926 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21927 sed '=' <$as_myself |
21928 sed '
21929 N
21930 s,$,-,
21931 : loop
21932 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21933 t loop
21934 s,-$,,
21935 s,^['$as_cr_digits']*\n,,
21936 ' >$as_me.lineno &&
21937 chmod +x $as_me.lineno ||
21938 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21939echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21940 { (exit 1); exit 1; }; }
21941
21942 # Don't try to exec as it changes $[0], causing all sort of problems
21943 # (the dirname of $[0] is not the place where we might find the
21944 # original and so on. Autoconf is especially sensible to this).
21945 . ./$as_me.lineno
21946 # Exit status is that of the last command.
21947 exit
21948}
21949
21950
21951case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21952 *c*,-n*) ECHO_N= ECHO_C='
21953' ECHO_T=' ' ;;
21954 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21955 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21956esac
21957
21958if expr a : '\(a\)' >/dev/null 2>&1; then
21959 as_expr=expr
21960else
21961 as_expr=false
21962fi
21963
21964rm -f conf$$ conf$$.exe conf$$.file
21965echo >conf$$.file
21966if ln -s conf$$.file conf$$ 2>/dev/null; then
21967 # We could just check for DJGPP; but this test a) works b) is more generic
21968 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21969 if test -f conf$$.exe; then
21970 # Don't use ln at all; we don't have any links
21971 as_ln_s='cp -p'
21972 else
21973 as_ln_s='ln -s'
21974 fi
21975elif ln conf$$.file conf$$ 2>/dev/null; then
21976 as_ln_s=ln
21977else
21978 as_ln_s='cp -p'
21979fi
21980rm -f conf$$ conf$$.exe conf$$.file
21981
21982if mkdir -p . 2>/dev/null; then
21983 as_mkdir_p=:
21984else
21985 test -d ./-p && rmdir ./-p
21986 as_mkdir_p=false
21987fi
21988
21989as_executable_p="test -f"
21990
21991# Sed expression to map a string onto a valid CPP name.
21992as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21993
21994# Sed expression to map a string onto a valid variable name.
21995as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21996
21997
21998# IFS
21999# We need space, tab and new line, in precisely that order.
22000as_nl='
22001'
22002IFS=" $as_nl"
22003
22004# CDPATH.
22005$as_unset CDPATH
22006
22007exec 6>&1
22008
22009# Open the log real soon, to keep \$[0] and so on meaningful, and to
22010# report actual input values of CONFIG_FILES etc. instead of their
22011# values after options handling. Logging --version etc. is OK.
22012exec 5>>config.log
22013{
22014 echo
22015 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22016## Running $as_me. ##
22017_ASBOX
22018} >&5
22019cat >&5 <<_CSEOF
22020
22021This file was extended by $as_me, which was
22022generated by GNU Autoconf 2.59. Invocation command line was
22023
22024 CONFIG_FILES = $CONFIG_FILES
22025 CONFIG_HEADERS = $CONFIG_HEADERS
22026 CONFIG_LINKS = $CONFIG_LINKS
22027 CONFIG_COMMANDS = $CONFIG_COMMANDS
22028 $ $0 $@
22029
22030_CSEOF
22031echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22032echo >&5
22033_ACEOF
22034
22035# Files that config.status was made for.
22036if test -n "$ac_config_files"; then
22037 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22038fi
22039
22040if test -n "$ac_config_headers"; then
22041 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22042fi
22043
22044if test -n "$ac_config_links"; then
22045 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
234b45d4
KB
22046fi
22047
bec39cab
AC
22048if test -n "$ac_config_commands"; then
22049 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22050fi
234b45d4 22051
bec39cab 22052cat >>$CONFIG_STATUS <<\_ACEOF
234b45d4 22053
bec39cab
AC
22054ac_cs_usage="\
22055\`$as_me' instantiates files from templates according to the
22056current configuration.
234b45d4 22057
bec39cab 22058Usage: $0 [OPTIONS] [FILE]...
234b45d4 22059
bec39cab
AC
22060 -h, --help print this help, then exit
22061 -V, --version print version number, then exit
22062 -q, --quiet do not print progress messages
22063 -d, --debug don't remove temporary files
22064 --recheck update $as_me by reconfiguring in the same conditions
22065 --file=FILE[:TEMPLATE]
22066 instantiate the configuration file FILE
22067 --header=FILE[:TEMPLATE]
22068 instantiate the configuration header FILE
234b45d4 22069
bec39cab
AC
22070Configuration files:
22071$config_files
234b45d4 22072
bec39cab
AC
22073Configuration headers:
22074$config_headers
234b45d4 22075
bec39cab
AC
22076Configuration links:
22077$config_links
234b45d4 22078
bec39cab
AC
22079Configuration commands:
22080$config_commands
22081
22082Report bugs to <bug-autoconf@gnu.org>."
22083_ACEOF
22084
22085cat >>$CONFIG_STATUS <<_ACEOF
22086ac_cs_version="\\
22087config.status
22088configured by $0, generated by GNU Autoconf 2.59,
22089 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22090
22091Copyright (C) 2003 Free Software Foundation, Inc.
22092This config.status script is free software; the Free Software Foundation
22093gives unlimited permission to copy, distribute and modify it."
22094srcdir=$srcdir
22095INSTALL="$INSTALL"
22096_ACEOF
22097
22098cat >>$CONFIG_STATUS <<\_ACEOF
22099# If no file are specified by the user, then we need to provide default
22100# value. By we need to know if files were specified by the user.
22101ac_need_defaults=:
22102while test $# != 0
22103do
22104 case $1 in
22105 --*=*)
22106 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22107 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22108 ac_shift=:
c906108c 22109 ;;
bec39cab
AC
22110 -*)
22111 ac_option=$1
22112 ac_optarg=$2
22113 ac_shift=shift
c906108c 22114 ;;
bec39cab
AC
22115 *) # This is not an option, so the user has probably given explicit
22116 # arguments.
22117 ac_option=$1
22118 ac_need_defaults=false;;
22119 esac
c906108c 22120
bec39cab
AC
22121 case $ac_option in
22122 # Handling of the options.
22123_ACEOF
22124cat >>$CONFIG_STATUS <<\_ACEOF
22125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22126 ac_cs_recheck=: ;;
22127 --version | --vers* | -V )
22128 echo "$ac_cs_version"; exit 0 ;;
22129 --he | --h)
22130 # Conflict between --help and --header
22131 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22132Try \`$0 --help' for more information." >&5
22133echo "$as_me: error: ambiguous option: $1
22134Try \`$0 --help' for more information." >&2;}
22135 { (exit 1); exit 1; }; };;
22136 --help | --hel | -h )
22137 echo "$ac_cs_usage"; exit 0 ;;
22138 --debug | --d* | -d )
22139 debug=: ;;
22140 --file | --fil | --fi | --f )
22141 $ac_shift
22142 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22143 ac_need_defaults=false;;
22144 --header | --heade | --head | --hea )
22145 $ac_shift
22146 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22147 ac_need_defaults=false;;
22148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22150 ac_cs_silent=: ;;
c906108c 22151
bec39cab
AC
22152 # This is an error.
22153 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22154Try \`$0 --help' for more information." >&5
22155echo "$as_me: error: unrecognized option: $1
22156Try \`$0 --help' for more information." >&2;}
22157 { (exit 1); exit 1; }; } ;;
c906108c 22158
bec39cab 22159 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 22160
bec39cab
AC
22161 esac
22162 shift
22163done
c906108c 22164
bec39cab 22165ac_configure_extra_args=
c906108c 22166
bec39cab
AC
22167if $ac_cs_silent; then
22168 exec 6>/dev/null
22169 ac_configure_extra_args="$ac_configure_extra_args --silent"
22170fi
c906108c 22171
bec39cab
AC
22172_ACEOF
22173cat >>$CONFIG_STATUS <<_ACEOF
22174if \$ac_cs_recheck; then
22175 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22176 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22177fi
22178
22179_ACEOF
22180
22181cat >>$CONFIG_STATUS <<_ACEOF
c906108c 22182#
bec39cab 22183# INIT-COMMANDS section.
c906108c 22184#
c906108c 22185
bec39cab
AC
22186
22187gdb_host_cpu=$gdb_host_cpu
22188gdb_target_cpu=$gdb_target_cpu
22189nativefile=$nativefile
22190
22191
22192_ACEOF
22193
22194
22195
22196cat >>$CONFIG_STATUS <<\_ACEOF
22197for ac_config_target in $ac_config_targets
c906108c 22198do
bec39cab
AC
22199 case "$ac_config_target" in
22200 # Handling of arguments.
22201 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22202 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22203 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22204 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22205 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22206 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22207echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22208 { (exit 1); exit 1; }; };;
c906108c
SS
22209 esac
22210done
22211
bec39cab
AC
22212# If the user did not use the arguments to specify the items to instantiate,
22213# then the envvar interface is used. Set only those that are not.
22214# We use the long form for the default assignment because of an extremely
22215# bizarre bug on SunOS 4.1.3.
22216if $ac_need_defaults; then
22217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22218 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22219 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22220 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22221fi
22222
22223# Have a temporary directory for convenience. Make it in the build tree
22224# simply because there is no reason to put it here, and in addition,
22225# creating and moving files from /tmp can sometimes cause problems.
22226# Create a temporary directory, and hook for its removal unless debugging.
22227$debug ||
22228{
22229 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22230 trap '{ (exit 1); exit 1; }' 1 2 13 15
22231}
c906108c 22232
bec39cab 22233# Create a (secure) tmp directory for tmp files.
c906108c 22234
bec39cab
AC
22235{
22236 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22237 test -n "$tmp" && test -d "$tmp"
22238} ||
22239{
22240 tmp=./confstat$$-$RANDOM
22241 (umask 077 && mkdir $tmp)
22242} ||
22243{
22244 echo "$me: cannot create a temporary directory in ." >&2
22245 { (exit 1); exit 1; }
22246}
22247
22248_ACEOF
22249
22250cat >>$CONFIG_STATUS <<_ACEOF
22251
22252#
22253# CONFIG_FILES section.
22254#
22255
22256# No need to generate the scripts if there are no CONFIG_FILES.
22257# This happens for instance when ./config.status config.h
22258if test -n "\$CONFIG_FILES"; then
22259 # Protect against being on the right side of a sed subst in config.status.
22260 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22261 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22262s,@SHELL@,$SHELL,;t t
22263s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22264s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22265s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22266s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22267s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22268s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22269s,@exec_prefix@,$exec_prefix,;t t
22270s,@prefix@,$prefix,;t t
22271s,@program_transform_name@,$program_transform_name,;t t
22272s,@bindir@,$bindir,;t t
22273s,@sbindir@,$sbindir,;t t
22274s,@libexecdir@,$libexecdir,;t t
22275s,@datadir@,$datadir,;t t
22276s,@sysconfdir@,$sysconfdir,;t t
22277s,@sharedstatedir@,$sharedstatedir,;t t
22278s,@localstatedir@,$localstatedir,;t t
22279s,@libdir@,$libdir,;t t
22280s,@includedir@,$includedir,;t t
22281s,@oldincludedir@,$oldincludedir,;t t
22282s,@infodir@,$infodir,;t t
22283s,@mandir@,$mandir,;t t
22284s,@build_alias@,$build_alias,;t t
22285s,@host_alias@,$host_alias,;t t
22286s,@target_alias@,$target_alias,;t t
22287s,@DEFS@,$DEFS,;t t
22288s,@ECHO_C@,$ECHO_C,;t t
22289s,@ECHO_N@,$ECHO_N,;t t
22290s,@ECHO_T@,$ECHO_T,;t t
22291s,@LIBS@,$LIBS,;t t
22292s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22293s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22294s,@MAINT@,$MAINT,;t t
22295s,@CC@,$CC,;t t
22296s,@CFLAGS@,$CFLAGS,;t t
22297s,@LDFLAGS@,$LDFLAGS,;t t
22298s,@CPPFLAGS@,$CPPFLAGS,;t t
22299s,@ac_ct_CC@,$ac_ct_CC,;t t
22300s,@EXEEXT@,$EXEEXT,;t t
22301s,@OBJEXT@,$OBJEXT,;t t
22302s,@CPP@,$CPP,;t t
22303s,@EGREP@,$EGREP,;t t
22304s,@build@,$build,;t t
22305s,@build_cpu@,$build_cpu,;t t
22306s,@build_vendor@,$build_vendor,;t t
22307s,@build_os@,$build_os,;t t
22308s,@host@,$host,;t t
22309s,@host_cpu@,$host_cpu,;t t
22310s,@host_vendor@,$host_vendor,;t t
22311s,@host_os@,$host_os,;t t
22312s,@target@,$target,;t t
22313s,@target_cpu@,$target_cpu,;t t
22314s,@target_vendor@,$target_vendor,;t t
22315s,@target_os@,$target_os,;t t
22316s,@RANLIB@,$RANLIB,;t t
22317s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22318s,@SET_MAKE@,$SET_MAKE,;t t
22319s,@ALLOCA@,$ALLOCA,;t t
22320s,@USE_NLS@,$USE_NLS,;t t
22321s,@MSGFMT@,$MSGFMT,;t t
22322s,@GMSGFMT@,$GMSGFMT,;t t
22323s,@XGETTEXT@,$XGETTEXT,;t t
22324s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22325s,@CATALOGS@,$CATALOGS,;t t
22326s,@CATOBJEXT@,$CATOBJEXT,;t t
22327s,@DATADIRNAME@,$DATADIRNAME,;t t
22328s,@GMOFILES@,$GMOFILES,;t t
22329s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22330s,@INTLDEPS@,$INTLDEPS,;t t
22331s,@INTLLIBS@,$INTLLIBS,;t t
22332s,@INTLOBJS@,$INTLOBJS,;t t
22333s,@POFILES@,$POFILES,;t t
22334s,@POSUB@,$POSUB,;t t
22335s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22336s,@GT_NO@,$GT_NO,;t t
22337s,@GT_YES@,$GT_YES,;t t
22338s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22339s,@l@,$l,;t t
22340s,@localedir@,$localedir,;t t
22341s,@PACKAGE@,$PACKAGE,;t t
22342s,@subdirs@,$subdirs,;t t
22343s,@AWK@,$AWK,;t t
22344s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22345s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22346s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22347s,@LN_S@,$LN_S,;t t
22348s,@YACC@,$YACC,;t t
22349s,@AR@,$AR,;t t
22350s,@ac_ct_AR@,$ac_ct_AR,;t t
22351s,@DLLTOOL@,$DLLTOOL,;t t
22352s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22353s,@WINDRES@,$WINDRES,;t t
22354s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22355s,@MIG@,$MIG,;t t
22356s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22357s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22358s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22359s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22360s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22361s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22362s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22363s,@WIN32LIBS@,$WIN32LIBS,;t t
22364s,@LIBGUI@,$LIBGUI,;t t
22365s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22366s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22367s,@TCL_VERSION@,$TCL_VERSION,;t t
22368s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22369s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22370s,@TCL_CC@,$TCL_CC,;t t
22371s,@TCL_DEFS@,$TCL_DEFS,;t t
22372s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22373s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22374s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22375s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22376s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22377s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22378s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22379s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22380s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22381s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22382s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22383s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22384s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22385s,@TK_VERSION@,$TK_VERSION,;t t
22386s,@TK_DEFS@,$TK_DEFS,;t t
22387s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22388s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22389s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22390s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22391s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22392s,@TCLHDIR@,$TCLHDIR,;t t
22393s,@TKHDIR@,$TKHDIR,;t t
22394s,@ITCLHDIR@,$ITCLHDIR,;t t
22395s,@ITKHDIR@,$ITKHDIR,;t t
22396s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22397s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22398s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22399s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22400s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22401s,@ITK_VERSION@,$ITK_VERSION,;t t
22402s,@ITK_DEFS@,$ITK_DEFS,;t t
22403s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22404s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22405s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22406s,@X_CFLAGS@,$X_CFLAGS,;t t
22407s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22408s,@X_LIBS@,$X_LIBS,;t t
22409s,@TCL_DEPS@,$TCL_DEPS,;t t
22410s,@TK_DEPS@,$TK_DEPS,;t t
22411s,@ITCLLIB@,$ITCLLIB,;t t
22412s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22413s,@ITKLIB@,$ITKLIB,;t t
22414s,@ITK_DEPS@,$ITK_DEPS,;t t
22415s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22416s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22417s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22418s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22419s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22420s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22421s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22422s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22423s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22424s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22425s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22426s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22427s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22428s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22429s,@target_subdir@,$target_subdir,;t t
22430s,@frags@,$frags,;t t
22431s,@xm_h@,$xm_h,;t t
22432s,@tm_h@,$tm_h,;t t
22433s,@nm_h@,$nm_h,;t t
22434s,@LIBICONV@,$LIBICONV,;t t
22435s,@LIBOBJS@,$LIBOBJS,;t t
22436s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 22437/@host_makefile_frag@/r $host_makefile_frag
bec39cab 22438s,@host_makefile_frag@,,;t t
c906108c 22439/@target_makefile_frag@/r $target_makefile_frag
bec39cab 22440s,@target_makefile_frag@,,;t t
c906108c 22441CEOF
bec39cab
AC
22442
22443_ACEOF
22444
22445 cat >>$CONFIG_STATUS <<\_ACEOF
22446 # Split the substitutions into bite-sized pieces for seds with
22447 # small command number limits, like on Digital OSF/1 and HP-UX.
22448 ac_max_sed_lines=48
22449 ac_sed_frag=1 # Number of current file.
22450 ac_beg=1 # First line for current file.
22451 ac_end=$ac_max_sed_lines # Line after last line for current file.
22452 ac_more_lines=:
22453 ac_sed_cmds=
22454 while $ac_more_lines; do
22455 if test $ac_beg -gt 1; then
22456 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22457 else
22458 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22459 fi
22460 if test ! -s $tmp/subs.frag; then
22461 ac_more_lines=false
c906108c 22462 else
bec39cab
AC
22463 # The purpose of the label and of the branching condition is to
22464 # speed up the sed processing (if there are no `@' at all, there
22465 # is no need to browse any of the substitutions).
22466 # These are the two extra sed commands mentioned above.
22467 (echo ':t
22468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22469 if test -z "$ac_sed_cmds"; then
22470 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22471 else
22472 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22473 fi
22474 ac_sed_frag=`expr $ac_sed_frag + 1`
22475 ac_beg=$ac_end
22476 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 22477 fi
bec39cab
AC
22478 done
22479 if test -z "$ac_sed_cmds"; then
22480 ac_sed_cmds=cat
c906108c 22481 fi
bec39cab 22482fi # test -n "$CONFIG_FILES"
c906108c 22483
bec39cab
AC
22484_ACEOF
22485cat >>$CONFIG_STATUS <<\_ACEOF
22486for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 22487 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22488 case $ac_file in
22489 - | *:- | *:-:* ) # input from stdin
22490 cat >$tmp/stdin
22491 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22493 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22494 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22495 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22496 esac
22497
bec39cab
AC
22498 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22499 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22500$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22501 X"$ac_file" : 'X\(//\)[^/]' \| \
22502 X"$ac_file" : 'X\(//\)$' \| \
22503 X"$ac_file" : 'X\(/\)' \| \
22504 . : '\(.\)' 2>/dev/null ||
22505echo X"$ac_file" |
22506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22508 /^X\(\/\/\)$/{ s//\1/; q; }
22509 /^X\(\/\).*/{ s//\1/; q; }
22510 s/.*/./; q'`
22511 { if $as_mkdir_p; then
22512 mkdir -p "$ac_dir"
c906108c 22513 else
bec39cab
AC
22514 as_dir="$ac_dir"
22515 as_dirs=
22516 while test ! -d "$as_dir"; do
22517 as_dirs="$as_dir $as_dirs"
22518 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22519$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22520 X"$as_dir" : 'X\(//\)[^/]' \| \
22521 X"$as_dir" : 'X\(//\)$' \| \
22522 X"$as_dir" : 'X\(/\)' \| \
22523 . : '\(.\)' 2>/dev/null ||
22524echo X"$as_dir" |
22525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22527 /^X\(\/\/\)$/{ s//\1/; q; }
22528 /^X\(\/\).*/{ s//\1/; q; }
22529 s/.*/./; q'`
22530 done
22531 test ! -n "$as_dirs" || mkdir $as_dirs
22532 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22533echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22534 { (exit 1); exit 1; }; }; }
c906108c 22535
bec39cab
AC
22536 ac_builddir=.
22537
22538if test "$ac_dir" != .; then
22539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22540 # A "../" for each directory in $ac_dir_suffix.
22541 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22542else
22543 ac_dir_suffix= ac_top_builddir=
22544fi
22545
22546case $srcdir in
22547 .) # No --srcdir option. We are building in place.
22548 ac_srcdir=.
22549 if test -z "$ac_top_builddir"; then
22550 ac_top_srcdir=.
22551 else
22552 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22553 fi ;;
22554 [\\/]* | ?:[\\/]* ) # Absolute path.
22555 ac_srcdir=$srcdir$ac_dir_suffix;
22556 ac_top_srcdir=$srcdir ;;
c906108c 22557 *) # Relative path.
bec39cab
AC
22558 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22559 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22560esac
22561
22562# Do not use `cd foo && pwd` to compute absolute paths, because
22563# the directories may not exist.
22564case `pwd` in
22565.) ac_abs_builddir="$ac_dir";;
22566*)
22567 case "$ac_dir" in
22568 .) ac_abs_builddir=`pwd`;;
22569 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22570 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22571 esac;;
22572esac
22573case $ac_abs_builddir in
22574.) ac_abs_top_builddir=${ac_top_builddir}.;;
22575*)
22576 case ${ac_top_builddir}. in
22577 .) ac_abs_top_builddir=$ac_abs_builddir;;
22578 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22579 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22580 esac;;
22581esac
22582case $ac_abs_builddir in
22583.) ac_abs_srcdir=$ac_srcdir;;
22584*)
22585 case $ac_srcdir in
22586 .) ac_abs_srcdir=$ac_abs_builddir;;
22587 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22588 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22589 esac;;
22590esac
22591case $ac_abs_builddir in
22592.) ac_abs_top_srcdir=$ac_top_srcdir;;
22593*)
22594 case $ac_top_srcdir in
22595 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22596 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22597 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22598 esac;;
22599esac
c906108c 22600
c906108c 22601
bec39cab
AC
22602 case $INSTALL in
22603 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22604 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
22605 esac
22606
bec39cab
AC
22607 if test x"$ac_file" != x-; then
22608 { echo "$as_me:$LINENO: creating $ac_file" >&5
22609echo "$as_me: creating $ac_file" >&6;}
22610 rm -f "$ac_file"
22611 fi
22612 # Let's still pretend it is `configure' which instantiates (i.e., don't
22613 # use $as_me), people would be surprised to read:
22614 # /* config.h. Generated by config.status. */
22615 if test x"$ac_file" = x-; then
22616 configure_input=
22617 else
22618 configure_input="$ac_file. "
22619 fi
22620 configure_input=$configure_input"Generated from `echo $ac_file_in |
22621 sed 's,.*/,,'` by configure."
22622
22623 # First look for the input files in the build tree, otherwise in the
22624 # src tree.
22625 ac_file_inputs=`IFS=:
22626 for f in $ac_file_in; do
22627 case $f in
22628 -) echo $tmp/stdin ;;
22629 [\\/$]*)
22630 # Absolute (can't be DOS-style, as IFS=:)
22631 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22632echo "$as_me: error: cannot find input file: $f" >&2;}
22633 { (exit 1); exit 1; }; }
22634 echo "$f";;
22635 *) # Relative
22636 if test -f "$f"; then
22637 # Build tree
22638 echo "$f"
22639 elif test -f "$srcdir/$f"; then
22640 # Source tree
22641 echo "$srcdir/$f"
22642 else
22643 # /dev/null tree
22644 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22645echo "$as_me: error: cannot find input file: $f" >&2;}
22646 { (exit 1); exit 1; }; }
22647 fi;;
22648 esac
22649 done` || { (exit 1); exit 1; }
22650_ACEOF
22651cat >>$CONFIG_STATUS <<_ACEOF
22652 sed "$ac_vpsub
22653$extrasub
22654_ACEOF
22655cat >>$CONFIG_STATUS <<\_ACEOF
22656:t
22657/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22658s,@configure_input@,$configure_input,;t t
22659s,@srcdir@,$ac_srcdir,;t t
22660s,@abs_srcdir@,$ac_abs_srcdir,;t t
22661s,@top_srcdir@,$ac_top_srcdir,;t t
22662s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22663s,@builddir@,$ac_builddir,;t t
22664s,@abs_builddir@,$ac_abs_builddir,;t t
22665s,@top_builddir@,$ac_top_builddir,;t t
22666s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22667s,@INSTALL@,$ac_INSTALL,;t t
22668" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22669 rm -f $tmp/stdin
22670 if test x"$ac_file" != x-; then
22671 mv $tmp/out $ac_file
22672 else
22673 cat $tmp/out
22674 rm -f $tmp/out
22675 fi
22676
22677done
22678_ACEOF
22679cat >>$CONFIG_STATUS <<\_ACEOF
22680
22681#
22682# CONFIG_HEADER section.
22683#
c906108c
SS
22684
22685# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22686# NAME is the cpp macro being defined and VALUE is the value it is being given.
22687#
22688# ac_d sets the value in "#define NAME VALUE" lines.
bec39cab
AC
22689ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22690ac_dB='[ ].*$,\1#\2'
22691ac_dC=' '
22692ac_dD=',;t'
22693# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22694ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22695ac_uB='$,\1#\2define\3'
c906108c 22696ac_uC=' '
bec39cab
AC
22697ac_uD=',;t'
22698
22699for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 22700 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22701 case $ac_file in
22702 - | *:- | *:-:* ) # input from stdin
22703 cat >$tmp/stdin
22704 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22705 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22706 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22707 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22708 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22709 esac
22710
bec39cab
AC
22711 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22712echo "$as_me: creating $ac_file" >&6;}
22713
22714 # First look for the input files in the build tree, otherwise in the
22715 # src tree.
22716 ac_file_inputs=`IFS=:
22717 for f in $ac_file_in; do
22718 case $f in
22719 -) echo $tmp/stdin ;;
22720 [\\/$]*)
22721 # Absolute (can't be DOS-style, as IFS=:)
22722 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22723echo "$as_me: error: cannot find input file: $f" >&2;}
22724 { (exit 1); exit 1; }; }
22725 # Do quote $f, to prevent DOS paths from being IFS'd.
22726 echo "$f";;
22727 *) # Relative
22728 if test -f "$f"; then
22729 # Build tree
22730 echo "$f"
22731 elif test -f "$srcdir/$f"; then
22732 # Source tree
22733 echo "$srcdir/$f"
22734 else
22735 # /dev/null tree
22736 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22737echo "$as_me: error: cannot find input file: $f" >&2;}
22738 { (exit 1); exit 1; }; }
22739 fi;;
22740 esac
22741 done` || { (exit 1); exit 1; }
22742 # Remove the trailing spaces.
22743 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22744
22745_ACEOF
22746
22747# Transform confdefs.h into two sed scripts, `conftest.defines' and
22748# `conftest.undefs', that substitutes the proper values into
22749# config.h.in to produce config.h. The first handles `#define'
22750# templates, and the second `#undef' templates.
22751# And first: Protect against being on the right side of a sed subst in
22752# config.status. Protect against being in an unquoted here document
22753# in config.status.
22754rm -f conftest.defines conftest.undefs
22755# Using a here document instead of a string reduces the quoting nightmare.
22756# Putting comments in sed scripts is not portable.
22757#
22758# `end' is used to avoid that the second main sed command (meant for
22759# 0-ary CPP macros) applies to n-ary macro definitions.
22760# See the Autoconf documentation for `clear'.
22761cat >confdef2sed.sed <<\_ACEOF
22762s/[\\&,]/\\&/g
22763s,[\\$`],\\&,g
22764t clear
22765: clear
22766s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22767t end
22768s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22769: end
22770_ACEOF
22771# If some macros were called several times there might be several times
22772# the same #defines, which is useless. Nevertheless, we may not want to
22773# sort them, since we want the *last* AC-DEFINE to be honored.
22774uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22775sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22776rm -f confdef2sed.sed
c906108c
SS
22777
22778# This sed command replaces #undef with comments. This is necessary, for
22779# example, in the case of _POSIX_SOURCE, which is predefined and required
22780# on some systems where configure will not decide to define it.
bec39cab
AC
22781cat >>conftest.undefs <<\_ACEOF
22782s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22783_ACEOF
22784
22785# Break up conftest.defines because some shells have a limit on the size
22786# of here documents, and old seds have small limits too (100 cmds).
22787echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22788echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22789echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22790echo ' :' >>$CONFIG_STATUS
22791rm -f conftest.tail
22792while grep . conftest.defines >/dev/null
22793do
22794 # Write a limited-size here document to $tmp/defines.sed.
22795 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22796 # Speed up: don't consider the non `#define' lines.
22797 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22798 # Work around the forget-to-reset-the-flag bug.
22799 echo 't clr' >>$CONFIG_STATUS
22800 echo ': clr' >>$CONFIG_STATUS
22801 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22802 echo 'CEOF
22803 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22804 rm -f $tmp/in
22805 mv $tmp/out $tmp/in
22806' >>$CONFIG_STATUS
22807 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22808 rm -f conftest.defines
22809 mv conftest.tail conftest.defines
22810done
22811rm -f conftest.defines
22812echo ' fi # grep' >>$CONFIG_STATUS
22813echo >>$CONFIG_STATUS
c906108c 22814
bec39cab
AC
22815# Break up conftest.undefs because some shells have a limit on the size
22816# of here documents, and old seds have small limits too (100 cmds).
22817echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 22818rm -f conftest.tail
bec39cab 22819while grep . conftest.undefs >/dev/null
c906108c 22820do
bec39cab
AC
22821 # Write a limited-size here document to $tmp/undefs.sed.
22822 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22823 # Speed up: don't consider the non `#undef'
22824 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22825 # Work around the forget-to-reset-the-flag bug.
22826 echo 't clr' >>$CONFIG_STATUS
22827 echo ': clr' >>$CONFIG_STATUS
22828 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 22829 echo 'CEOF
bec39cab
AC
22830 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22831 rm -f $tmp/in
22832 mv $tmp/out $tmp/in
22833' >>$CONFIG_STATUS
22834 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22835 rm -f conftest.undefs
22836 mv conftest.tail conftest.undefs
22837done
22838rm -f conftest.undefs
22839
22840cat >>$CONFIG_STATUS <<\_ACEOF
22841 # Let's still pretend it is `configure' which instantiates (i.e., don't
22842 # use $as_me), people would be surprised to read:
22843 # /* config.h. Generated by config.status. */
22844 if test x"$ac_file" = x-; then
22845 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 22846 else
bec39cab 22847 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 22848 fi
bec39cab
AC
22849 cat $tmp/in >>$tmp/config.h
22850 rm -f $tmp/in
22851 if test x"$ac_file" != x-; then
22852 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22853 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22854echo "$as_me: $ac_file is unchanged" >&6;}
22855 else
22856 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22857$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22858 X"$ac_file" : 'X\(//\)[^/]' \| \
22859 X"$ac_file" : 'X\(//\)$' \| \
22860 X"$ac_file" : 'X\(/\)' \| \
22861 . : '\(.\)' 2>/dev/null ||
22862echo X"$ac_file" |
22863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22865 /^X\(\/\/\)$/{ s//\1/; q; }
22866 /^X\(\/\).*/{ s//\1/; q; }
22867 s/.*/./; q'`
22868 { if $as_mkdir_p; then
22869 mkdir -p "$ac_dir"
22870 else
22871 as_dir="$ac_dir"
22872 as_dirs=
22873 while test ! -d "$as_dir"; do
22874 as_dirs="$as_dir $as_dirs"
22875 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22876$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22877 X"$as_dir" : 'X\(//\)[^/]' \| \
22878 X"$as_dir" : 'X\(//\)$' \| \
22879 X"$as_dir" : 'X\(/\)' \| \
22880 . : '\(.\)' 2>/dev/null ||
22881echo X"$as_dir" |
22882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22884 /^X\(\/\/\)$/{ s//\1/; q; }
22885 /^X\(\/\).*/{ s//\1/; q; }
22886 s/.*/./; q'`
22887 done
22888 test ! -n "$as_dirs" || mkdir $as_dirs
22889 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22890echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22891 { (exit 1); exit 1; }; }; }
c906108c 22892
bec39cab
AC
22893 rm -f $ac_file
22894 mv $tmp/config.h $ac_file
22895 fi
22896 else
22897 cat $tmp/config.h
22898 rm -f $tmp/config.h
22899 fi
22900done
22901_ACEOF
22902cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 22903
bec39cab
AC
22904#
22905# CONFIG_LINKS section.
22906#
c906108c 22907
bec39cab
AC
22908for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22909 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22910 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 22911
bec39cab
AC
22912 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22913echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
22914
22915 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
22916 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22917echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22918 { (exit 1); exit 1; }; }
c906108c
SS
22919 fi
22920 rm -f $ac_dest
22921
22922 # Make relative symlinks.
bec39cab
AC
22923 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22924$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22925 X"$ac_dest" : 'X\(//\)[^/]' \| \
22926 X"$ac_dest" : 'X\(//\)$' \| \
22927 X"$ac_dest" : 'X\(/\)' \| \
22928 . : '\(.\)' 2>/dev/null ||
22929echo X"$ac_dest" |
22930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22932 /^X\(\/\/\)$/{ s//\1/; q; }
22933 /^X\(\/\).*/{ s//\1/; q; }
22934 s/.*/./; q'`
22935 { if $as_mkdir_p; then
22936 mkdir -p "$ac_dest_dir"
c906108c 22937 else
bec39cab
AC
22938 as_dir="$ac_dest_dir"
22939 as_dirs=
22940 while test ! -d "$as_dir"; do
22941 as_dirs="$as_dir $as_dirs"
22942 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22943$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22944 X"$as_dir" : 'X\(//\)[^/]' \| \
22945 X"$as_dir" : 'X\(//\)$' \| \
22946 X"$as_dir" : 'X\(/\)' \| \
22947 . : '\(.\)' 2>/dev/null ||
22948echo X"$as_dir" |
22949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22951 /^X\(\/\/\)$/{ s//\1/; q; }
22952 /^X\(\/\).*/{ s//\1/; q; }
22953 s/.*/./; q'`
22954 done
22955 test ! -n "$as_dirs" || mkdir $as_dirs
22956 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22957echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22958 { (exit 1); exit 1; }; }; }
22959
22960 ac_builddir=.
22961
22962if test "$ac_dest_dir" != .; then
22963 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22964 # A "../" for each directory in $ac_dir_suffix.
22965 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22966else
22967 ac_dir_suffix= ac_top_builddir=
22968fi
22969
22970case $srcdir in
22971 .) # No --srcdir option. We are building in place.
22972 ac_srcdir=.
22973 if test -z "$ac_top_builddir"; then
22974 ac_top_srcdir=.
22975 else
22976 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22977 fi ;;
22978 [\\/]* | ?:[\\/]* ) # Absolute path.
22979 ac_srcdir=$srcdir$ac_dir_suffix;
22980 ac_top_srcdir=$srcdir ;;
22981 *) # Relative path.
22982 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22983 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22984esac
22985
22986# Do not use `cd foo && pwd` to compute absolute paths, because
22987# the directories may not exist.
22988case `pwd` in
22989.) ac_abs_builddir="$ac_dest_dir";;
22990*)
22991 case "$ac_dest_dir" in
22992 .) ac_abs_builddir=`pwd`;;
22993 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22994 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22995 esac;;
22996esac
22997case $ac_abs_builddir in
22998.) ac_abs_top_builddir=${ac_top_builddir}.;;
22999*)
23000 case ${ac_top_builddir}. in
23001 .) ac_abs_top_builddir=$ac_abs_builddir;;
23002 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23003 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23004 esac;;
23005esac
23006case $ac_abs_builddir in
23007.) ac_abs_srcdir=$ac_srcdir;;
23008*)
23009 case $ac_srcdir in
23010 .) ac_abs_srcdir=$ac_abs_builddir;;
23011 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23012 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23013 esac;;
23014esac
23015case $ac_abs_builddir in
23016.) ac_abs_top_srcdir=$ac_top_srcdir;;
23017*)
23018 case $ac_top_srcdir in
23019 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23020 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23021 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23022 esac;;
23023esac
c906108c 23024
bec39cab
AC
23025
23026 case $srcdir in
23027 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23028 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
23029 esac
23030
bec39cab
AC
23031 # Try a symlink, then a hard link, then a copy.
23032 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23033 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23034 cp -p $srcdir/$ac_source $ac_dest ||
23035 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23036echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23037 { (exit 1); exit 1; }; }
c906108c 23038done
bec39cab
AC
23039_ACEOF
23040cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23041
bec39cab
AC
23042#
23043# CONFIG_COMMANDS section.
23044#
23045for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23046 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23047 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23048 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23049$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23050 X"$ac_dest" : 'X\(//\)[^/]' \| \
23051 X"$ac_dest" : 'X\(//\)$' \| \
23052 X"$ac_dest" : 'X\(/\)' \| \
23053 . : '\(.\)' 2>/dev/null ||
23054echo X"$ac_dest" |
23055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23057 /^X\(\/\/\)$/{ s//\1/; q; }
23058 /^X\(\/\).*/{ s//\1/; q; }
23059 s/.*/./; q'`
23060 { if $as_mkdir_p; then
23061 mkdir -p "$ac_dir"
23062 else
23063 as_dir="$ac_dir"
23064 as_dirs=
23065 while test ! -d "$as_dir"; do
23066 as_dirs="$as_dir $as_dirs"
23067 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23068$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23069 X"$as_dir" : 'X\(//\)[^/]' \| \
23070 X"$as_dir" : 'X\(//\)$' \| \
23071 X"$as_dir" : 'X\(/\)' \| \
23072 . : '\(.\)' 2>/dev/null ||
23073echo X"$as_dir" |
23074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23076 /^X\(\/\/\)$/{ s//\1/; q; }
23077 /^X\(\/\).*/{ s//\1/; q; }
23078 s/.*/./; q'`
23079 done
23080 test ! -n "$as_dirs" || mkdir $as_dirs
23081 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23082echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23083 { (exit 1); exit 1; }; }; }
23084
23085 ac_builddir=.
23086
23087if test "$ac_dir" != .; then
23088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23089 # A "../" for each directory in $ac_dir_suffix.
23090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23091else
23092 ac_dir_suffix= ac_top_builddir=
23093fi
23094
23095case $srcdir in
23096 .) # No --srcdir option. We are building in place.
23097 ac_srcdir=.
23098 if test -z "$ac_top_builddir"; then
23099 ac_top_srcdir=.
23100 else
23101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23102 fi ;;
23103 [\\/]* | ?:[\\/]* ) # Absolute path.
23104 ac_srcdir=$srcdir$ac_dir_suffix;
23105 ac_top_srcdir=$srcdir ;;
23106 *) # Relative path.
23107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23109esac
23110
23111# Do not use `cd foo && pwd` to compute absolute paths, because
23112# the directories may not exist.
23113case `pwd` in
23114.) ac_abs_builddir="$ac_dir";;
23115*)
23116 case "$ac_dir" in
23117 .) ac_abs_builddir=`pwd`;;
23118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23120 esac;;
23121esac
23122case $ac_abs_builddir in
23123.) ac_abs_top_builddir=${ac_top_builddir}.;;
23124*)
23125 case ${ac_top_builddir}. in
23126 .) ac_abs_top_builddir=$ac_abs_builddir;;
23127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23129 esac;;
23130esac
23131case $ac_abs_builddir in
23132.) ac_abs_srcdir=$ac_srcdir;;
23133*)
23134 case $ac_srcdir in
23135 .) ac_abs_srcdir=$ac_abs_builddir;;
23136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23138 esac;;
23139esac
23140case $ac_abs_builddir in
23141.) ac_abs_top_srcdir=$ac_top_srcdir;;
23142*)
23143 case $ac_top_srcdir in
23144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23147 esac;;
23148esac
c906108c 23149
c906108c 23150
bec39cab
AC
23151 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23152echo "$as_me: executing $ac_dest commands" >&6;}
23153 case $ac_dest in
23154 default )
c906108c 23155
2c0fc042 23156sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
23157/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23158/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23159mv -f Makefile.tmp Makefile
23160
2acceee2 23161
c906108c
SS
23162case x$CONFIG_HEADERS in
23163xconfig.h:config.in)
23164echo > stamp-h ;;
23165esac
bec39cab
AC
23166 ;;
23167 esac
23168done
23169_ACEOF
c906108c 23170
bec39cab
AC
23171cat >>$CONFIG_STATUS <<\_ACEOF
23172
23173{ (exit 0); exit 0; }
23174_ACEOF
c906108c 23175chmod +x $CONFIG_STATUS
bec39cab
AC
23176ac_clean_files=$ac_clean_files_save
23177
23178
23179# configure is writing to config.log, and then calls config.status.
23180# config.status does its own redirection, appending to config.log.
23181# Unfortunately, on DOS this fails, as config.log is still kept open
23182# by configure, so config.status won't be able to write to it; its
23183# output is simply discarded. So we exec the FD to /dev/null,
23184# effectively closing config.log, so it can be properly (re)opened and
23185# appended to by config.status. When coming back to configure, we
23186# need to make the FD available again.
23187if test "$no_create" != yes; then
23188 ac_cs_success=:
23189 ac_config_status_args=
23190 test "$silent" = yes &&
23191 ac_config_status_args="$ac_config_status_args --quiet"
23192 exec 5>/dev/null
23193 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23194 exec 5>>config.log
23195 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23196 # would make configure fail if this is the last instruction.
23197 $ac_cs_success || { (exit 1); exit 1; }
23198fi
c906108c 23199
bec39cab
AC
23200#
23201# CONFIG_SUBDIRS section.
23202#
c906108c
SS
23203if test "$no_recursion" != yes; then
23204
23205 # Remove --cache-file and --srcdir arguments so they do not pile up.
23206 ac_sub_configure_args=
23207 ac_prev=
23208 for ac_arg in $ac_configure_args; do
23209 if test -n "$ac_prev"; then
23210 ac_prev=
23211 continue
23212 fi
bec39cab 23213 case $ac_arg in
c906108c
SS
23214 -cache-file | --cache-file | --cache-fil | --cache-fi \
23215 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23216 ac_prev=cache_file ;;
23217 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
23218 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23219 | --c=*)
23220 ;;
23221 --config-cache | -C)
c906108c
SS
23222 ;;
23223 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23224 ac_prev=srcdir ;;
23225 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23226 ;;
bec39cab
AC
23227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23228 ac_prev=prefix ;;
23229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23230 ;;
c906108c
SS
23231 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23232 esac
23233 done
23234
bec39cab
AC
23235 # Always prepend --prefix to ensure using the same prefix
23236 # in subdir configurations.
23237 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23238
23239 ac_popdir=`pwd`
23240 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
23241
23242 # Do not complain, so a configure script can configure whichever
23243 # parts of a large source tree are present.
bec39cab 23244 test -d $srcdir/$ac_dir || continue
c906108c 23245
bec39cab
AC
23246 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23247echo "$as_me: configuring in $ac_dir" >&6;}
23248 { if $as_mkdir_p; then
23249 mkdir -p "$ac_dir"
23250 else
23251 as_dir="$ac_dir"
23252 as_dirs=
23253 while test ! -d "$as_dir"; do
23254 as_dirs="$as_dir $as_dirs"
23255 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23256$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23257 X"$as_dir" : 'X\(//\)[^/]' \| \
23258 X"$as_dir" : 'X\(//\)$' \| \
23259 X"$as_dir" : 'X\(/\)' \| \
23260 . : '\(.\)' 2>/dev/null ||
23261echo X"$as_dir" |
23262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23264 /^X\(\/\/\)$/{ s//\1/; q; }
23265 /^X\(\/\).*/{ s//\1/; q; }
23266 s/.*/./; q'`
23267 done
23268 test ! -n "$as_dirs" || mkdir $as_dirs
23269 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23270echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23271 { (exit 1); exit 1; }; }; }
c906108c 23272
bec39cab
AC
23273 ac_builddir=.
23274
23275if test "$ac_dir" != .; then
23276 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23277 # A "../" for each directory in $ac_dir_suffix.
23278 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23279else
23280 ac_dir_suffix= ac_top_builddir=
23281fi
23282
23283case $srcdir in
23284 .) # No --srcdir option. We are building in place.
23285 ac_srcdir=.
23286 if test -z "$ac_top_builddir"; then
23287 ac_top_srcdir=.
23288 else
23289 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23290 fi ;;
23291 [\\/]* | ?:[\\/]* ) # Absolute path.
23292 ac_srcdir=$srcdir$ac_dir_suffix;
23293 ac_top_srcdir=$srcdir ;;
23294 *) # Relative path.
23295 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23296 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23297esac
c906108c 23298
bec39cab
AC
23299# Do not use `cd foo && pwd` to compute absolute paths, because
23300# the directories may not exist.
23301case `pwd` in
23302.) ac_abs_builddir="$ac_dir";;
23303*)
23304 case "$ac_dir" in
23305 .) ac_abs_builddir=`pwd`;;
23306 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23307 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23308 esac;;
23309esac
23310case $ac_abs_builddir in
23311.) ac_abs_top_builddir=${ac_top_builddir}.;;
23312*)
23313 case ${ac_top_builddir}. in
23314 .) ac_abs_top_builddir=$ac_abs_builddir;;
23315 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23316 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23317 esac;;
23318esac
23319case $ac_abs_builddir in
23320.) ac_abs_srcdir=$ac_srcdir;;
23321*)
23322 case $ac_srcdir in
23323 .) ac_abs_srcdir=$ac_abs_builddir;;
23324 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23325 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23326 esac;;
23327esac
23328case $ac_abs_builddir in
23329.) ac_abs_top_srcdir=$ac_top_srcdir;;
23330*)
23331 case $ac_top_srcdir in
23332 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23333 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23334 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23335 esac;;
23336esac
c906108c 23337
c906108c 23338
bec39cab 23339 cd $ac_dir
c906108c
SS
23340
23341 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
23342 if test -f $ac_srcdir/configure.gnu; then
23343 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23344 elif test -f $ac_srcdir/configure; then
23345 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23346 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
23347 ac_sub_configure=$ac_configure
23348 else
bec39cab
AC
23349 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23350echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
23351 ac_sub_configure=
23352 fi
23353
23354 # The recursion is here.
23355 if test -n "$ac_sub_configure"; then
c906108c 23356 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
23357 case $cache_file in
23358 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
c906108c 23359 *) # Relative path.
bec39cab 23360 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 23361 esac
c906108c 23362
bec39cab
AC
23363 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23364echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 23365 # The eval makes quoting arguments work.
bec39cab
AC
23366 eval $ac_sub_configure $ac_sub_configure_args \
23367 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23368 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23369echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23370 { (exit 1); exit 1; }; }
c906108c
SS
23371 fi
23372
23373 cd $ac_popdir
23374 done
23375fi
23376
23377
23378exit 0
This page took 1.721065 seconds and 4 git commands to generate.