* rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
[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]
85981d60
AC
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
bec39cab
AC
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
85981d60 1362
413ccac7 1363 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1364
c906108c 1365
bec39cab
AC
1366
1367ac_ext=c
1368ac_cpp='$CPP $CPPFLAGS'
1369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1371ac_compiler_gnu=$ac_cv_c_compiler_gnu
1372if test -n "$ac_tool_prefix"; then
1373 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1374set dummy ${ac_tool_prefix}gcc; ac_word=$2
1375echo "$as_me:$LINENO: checking for $ac_word" >&5
1376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1377if test "${ac_cv_prog_CC+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1379else
1380 if test -n "$CC"; then
1381 ac_cv_prog_CC="$CC" # Let the user override the test.
1382else
1383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1384for as_dir in $PATH
1385do
1386 IFS=$as_save_IFS
1387 test -z "$as_dir" && as_dir=.
1388 for ac_exec_ext in '' $ac_executable_extensions; do
1389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1392 break 2
1393 fi
1394done
1395done
1396
1397fi
1398fi
1399CC=$ac_cv_prog_CC
1400if test -n "$CC"; then
1401 echo "$as_me:$LINENO: result: $CC" >&5
1402echo "${ECHO_T}$CC" >&6
1403else
1404 echo "$as_me:$LINENO: result: no" >&5
1405echo "${ECHO_T}no" >&6
1406fi
1407
1408fi
1409if test -z "$ac_cv_prog_CC"; then
1410 ac_ct_CC=$CC
1411 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1412set dummy gcc; ac_word=$2
bec39cab
AC
1413echo "$as_me:$LINENO: checking for $ac_word" >&5
1414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1415if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1417else
1418 if test -n "$ac_ct_CC"; then
1419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1420else
1421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422for as_dir in $PATH
1423do
1424 IFS=$as_save_IFS
1425 test -z "$as_dir" && as_dir=.
1426 for ac_exec_ext in '' $ac_executable_extensions; do
1427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1428 ac_cv_prog_ac_ct_CC="gcc"
1429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430 break 2
1431 fi
1432done
1433done
1434
1435fi
1436fi
1437ac_ct_CC=$ac_cv_prog_ac_ct_CC
1438if test -n "$ac_ct_CC"; then
1439 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1440echo "${ECHO_T}$ac_ct_CC" >&6
1441else
1442 echo "$as_me:$LINENO: result: no" >&5
1443echo "${ECHO_T}no" >&6
1444fi
1445
1446 CC=$ac_ct_CC
1447else
1448 CC="$ac_cv_prog_CC"
1449fi
1450
1451if test -z "$CC"; then
1452 if test -n "$ac_tool_prefix"; then
1453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1454set dummy ${ac_tool_prefix}cc; ac_word=$2
1455echo "$as_me:$LINENO: checking for $ac_word" >&5
1456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457if test "${ac_cv_prog_CC+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1459else
1460 if test -n "$CC"; then
1461 ac_cv_prog_CC="$CC" # Let the user override the test.
1462else
bec39cab
AC
1463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464for as_dir in $PATH
1465do
1466 IFS=$as_save_IFS
1467 test -z "$as_dir" && as_dir=.
1468 for ac_exec_ext in '' $ac_executable_extensions; do
1469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470 ac_cv_prog_CC="${ac_tool_prefix}cc"
1471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472 break 2
1473 fi
1474done
1475done
1476
c906108c
SS
1477fi
1478fi
bec39cab 1479CC=$ac_cv_prog_CC
c906108c 1480if test -n "$CC"; then
bec39cab
AC
1481 echo "$as_me:$LINENO: result: $CC" >&5
1482echo "${ECHO_T}$CC" >&6
1483else
1484 echo "$as_me:$LINENO: result: no" >&5
1485echo "${ECHO_T}no" >&6
1486fi
1487
1488fi
1489if test -z "$ac_cv_prog_CC"; then
1490 ac_ct_CC=$CC
1491 # Extract the first word of "cc", so it can be a program name with args.
1492set dummy cc; ac_word=$2
1493echo "$as_me:$LINENO: checking for $ac_word" >&5
1494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1496 echo $ECHO_N "(cached) $ECHO_C" >&6
1497else
1498 if test -n "$ac_ct_CC"; then
1499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1500else
1501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH
1503do
1504 IFS=$as_save_IFS
1505 test -z "$as_dir" && as_dir=.
1506 for ac_exec_ext in '' $ac_executable_extensions; do
1507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508 ac_cv_prog_ac_ct_CC="cc"
1509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 break 2
1511 fi
1512done
1513done
1514
1515fi
1516fi
1517ac_ct_CC=$ac_cv_prog_ac_ct_CC
1518if test -n "$ac_ct_CC"; then
1519 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1520echo "${ECHO_T}$ac_ct_CC" >&6
c906108c 1521else
bec39cab
AC
1522 echo "$as_me:$LINENO: result: no" >&5
1523echo "${ECHO_T}no" >&6
c906108c
SS
1524fi
1525
bec39cab
AC
1526 CC=$ac_ct_CC
1527else
1528 CC="$ac_cv_prog_CC"
1529fi
1530
1531fi
c906108c
SS
1532if test -z "$CC"; then
1533 # Extract the first word of "cc", so it can be a program name with args.
1534set dummy cc; ac_word=$2
bec39cab
AC
1535echo "$as_me:$LINENO: checking for $ac_word" >&5
1536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537if test "${ac_cv_prog_CC+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1539else
1540 if test -n "$CC"; then
1541 ac_cv_prog_CC="$CC" # Let the user override the test.
1542else
c906108c 1543 ac_prog_rejected=no
bec39cab
AC
1544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545for as_dir in $PATH
1546do
1547 IFS=$as_save_IFS
1548 test -z "$as_dir" && as_dir=.
1549 for ac_exec_ext in '' $ac_executable_extensions; do
1550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1551 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1552 ac_prog_rejected=yes
1553 continue
1554 fi
1555 ac_cv_prog_CC="cc"
1556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557 break 2
1558 fi
1559done
1560done
1561
c906108c
SS
1562if test $ac_prog_rejected = yes; then
1563 # We found a bogon in the path, so make sure we never use it.
1564 set dummy $ac_cv_prog_CC
1565 shift
bec39cab 1566 if test $# != 0; then
c906108c
SS
1567 # We chose a different compiler from the bogus one.
1568 # However, it has the same basename, so the bogon will be chosen
1569 # first if we set CC to just the basename; use the full file name.
1570 shift
bec39cab 1571 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1572 fi
1573fi
1574fi
1575fi
bec39cab 1576CC=$ac_cv_prog_CC
c906108c 1577if test -n "$CC"; then
bec39cab
AC
1578 echo "$as_me:$LINENO: result: $CC" >&5
1579echo "${ECHO_T}$CC" >&6
c906108c 1580else
bec39cab
AC
1581 echo "$as_me:$LINENO: result: no" >&5
1582echo "${ECHO_T}no" >&6
c906108c
SS
1583fi
1584
bec39cab
AC
1585fi
1586if test -z "$CC"; then
1587 if test -n "$ac_tool_prefix"; then
1588 for ac_prog in cl
1589 do
1590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1591set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1592echo "$as_me:$LINENO: checking for $ac_word" >&5
1593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1594if test "${ac_cv_prog_CC+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1596else
1597 if test -n "$CC"; then
1598 ac_cv_prog_CC="$CC" # Let the user override the test.
1599else
bec39cab
AC
1600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601for as_dir in $PATH
1602do
1603 IFS=$as_save_IFS
1604 test -z "$as_dir" && as_dir=.
1605 for ac_exec_ext in '' $ac_executable_extensions; do
1606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1609 break 2
1610 fi
1611done
1612done
1613
c906108c
SS
1614fi
1615fi
bec39cab 1616CC=$ac_cv_prog_CC
c906108c 1617if test -n "$CC"; then
bec39cab
AC
1618 echo "$as_me:$LINENO: result: $CC" >&5
1619echo "${ECHO_T}$CC" >&6
c906108c 1620else
bec39cab
AC
1621 echo "$as_me:$LINENO: result: no" >&5
1622echo "${ECHO_T}no" >&6
c906108c 1623fi
bec39cab
AC
1624
1625 test -n "$CC" && break
1626 done
1627fi
1628if test -z "$CC"; then
1629 ac_ct_CC=$CC
1630 for ac_prog in cl
1631do
1632 # Extract the first word of "$ac_prog", so it can be a program name with args.
1633set dummy $ac_prog; ac_word=$2
1634echo "$as_me:$LINENO: checking for $ac_word" >&5
1635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
1639 if test -n "$ac_ct_CC"; then
1640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1641else
1642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643for as_dir in $PATH
1644do
1645 IFS=$as_save_IFS
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 ac_cv_prog_ac_ct_CC="$ac_prog"
1650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651 break 2
c906108c 1652 fi
bec39cab
AC
1653done
1654done
1655
1656fi
1657fi
1658ac_ct_CC=$ac_cv_prog_ac_ct_CC
1659if test -n "$ac_ct_CC"; then
1660 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1661echo "${ECHO_T}$ac_ct_CC" >&6
1662else
1663 echo "$as_me:$LINENO: result: no" >&5
1664echo "${ECHO_T}no" >&6
c906108c
SS
1665fi
1666
bec39cab
AC
1667 test -n "$ac_ct_CC" && break
1668done
c906108c 1669
bec39cab
AC
1670 CC=$ac_ct_CC
1671fi
1672
1673fi
1674
1675
1676test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1677See \`config.log' for more details." >&5
1678echo "$as_me: error: no acceptable C compiler found in \$PATH
1679See \`config.log' for more details." >&2;}
1680 { (exit 1); exit 1; }; }
1681
1682# Provide some information about the compiler.
1683echo "$as_me:$LINENO:" \
1684 "checking for C compiler version" >&5
1685ac_compiler=`set X $ac_compile; echo $2`
1686{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1687 (eval $ac_compiler --version </dev/null >&5) 2>&5
1688 ac_status=$?
1689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1690 (exit $ac_status); }
1691{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1692 (eval $ac_compiler -v </dev/null >&5) 2>&5
1693 ac_status=$?
1694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695 (exit $ac_status); }
1696{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1697 (eval $ac_compiler -V </dev/null >&5) 2>&5
1698 ac_status=$?
1699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700 (exit $ac_status); }
1701
1702cat >conftest.$ac_ext <<_ACEOF
1703/* confdefs.h. */
1704_ACEOF
1705cat confdefs.h >>conftest.$ac_ext
1706cat >>conftest.$ac_ext <<_ACEOF
1707/* end confdefs.h. */
1708
1709int
1710main ()
1711{
1712
1713 ;
1714 return 0;
1715}
1716_ACEOF
1717ac_clean_files_save=$ac_clean_files
1718ac_clean_files="$ac_clean_files a.out a.exe b.out"
1719# Try to create an executable without -o first, disregard a.out.
1720# It will help us diagnose broken compilers, and finding out an intuition
1721# of exeext.
1722echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1723echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1724ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1725if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1726 (eval $ac_link_default) 2>&5
1727 ac_status=$?
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }; then
1730 # Find the output, starting from the most likely. This scheme is
1731# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1732# resort.
1733
1734# Be careful to initialize this variable, since it used to be cached.
1735# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1736ac_cv_exeext=
1737# b.out is created by i960 compilers.
1738for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1739do
1740 test -f "$ac_file" || continue
1741 case $ac_file in
1742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1743 ;;
1744 conftest.$ac_ext )
1745 # This is the source file.
1746 ;;
1747 [ab].out )
1748 # We found the default executable, but exeext='' is most
1749 # certainly right.
1750 break;;
1751 *.* )
1752 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1753 # FIXME: I believe we export ac_cv_exeext for Libtool,
1754 # but it would be cool to find out if it's true. Does anybody
1755 # maintain Libtool? --akim.
1756 export ac_cv_exeext
1757 break;;
1758 * )
1759 break;;
1760 esac
1761done
1762else
1763 echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1767See \`config.log' for more details." >&5
1768echo "$as_me: error: C compiler cannot create executables
1769See \`config.log' for more details." >&2;}
1770 { (exit 77); exit 77; }; }
1771fi
1772
1773ac_exeext=$ac_cv_exeext
1774echo "$as_me:$LINENO: result: $ac_file" >&5
1775echo "${ECHO_T}$ac_file" >&6
1776
1777# Check the compiler produces executables we can run. If not, either
1778# the compiler is broken, or we cross compile.
1779echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1780echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1781# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1782# If not cross compiling, check that we can run a simple program.
1783if test "$cross_compiling" != yes; then
1784 if { ac_try='./$ac_file'
1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1786 (eval $ac_try) 2>&5
1787 ac_status=$?
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1790 cross_compiling=no
c906108c 1791 else
bec39cab
AC
1792 if test "$cross_compiling" = maybe; then
1793 cross_compiling=yes
1794 else
1795 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1796If you meant to cross compile, use \`--host'.
1797See \`config.log' for more details." >&5
1798echo "$as_me: error: cannot run C compiled programs.
1799If you meant to cross compile, use \`--host'.
1800See \`config.log' for more details." >&2;}
1801 { (exit 1); exit 1; }; }
1802 fi
c906108c 1803 fi
bec39cab
AC
1804fi
1805echo "$as_me:$LINENO: result: yes" >&5
1806echo "${ECHO_T}yes" >&6
1807
1808rm -f a.out a.exe conftest$ac_cv_exeext b.out
1809ac_clean_files=$ac_clean_files_save
1810# Check the compiler produces executables we can run. If not, either
1811# the compiler is broken, or we cross compile.
1812echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1813echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1814echo "$as_me:$LINENO: result: $cross_compiling" >&5
1815echo "${ECHO_T}$cross_compiling" >&6
1816
1817echo "$as_me:$LINENO: checking for suffix of executables" >&5
1818echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1820 (eval $ac_link) 2>&5
1821 ac_status=$?
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }; then
1824 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1825# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1826# work properly (i.e., refer to `conftest.exe'), while it won't with
1827# `rm'.
1828for ac_file in conftest.exe conftest conftest.*; do
1829 test -f "$ac_file" || continue
1830 case $ac_file in
1831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1832 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1833 export ac_cv_exeext
1834 break;;
1835 * ) break;;
1836 esac
1837done
c906108c 1838else
bec39cab
AC
1839 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1840See \`config.log' for more details." >&5
1841echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1842See \`config.log' for more details." >&2;}
1843 { (exit 1); exit 1; }; }
c906108c 1844fi
c906108c 1845
bec39cab
AC
1846rm -f conftest$ac_cv_exeext
1847echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1848echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1849
bec39cab
AC
1850rm -f conftest.$ac_ext
1851EXEEXT=$ac_cv_exeext
1852ac_exeext=$EXEEXT
1853echo "$as_me:$LINENO: checking for suffix of object files" >&5
1854echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1855if test "${ac_cv_objext+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1857else
1858 cat >conftest.$ac_ext <<_ACEOF
1859/* confdefs.h. */
1860_ACEOF
1861cat confdefs.h >>conftest.$ac_ext
1862cat >>conftest.$ac_ext <<_ACEOF
1863/* end confdefs.h. */
c906108c 1864
bec39cab
AC
1865int
1866main ()
1867{
c906108c 1868
bec39cab
AC
1869 ;
1870 return 0;
1871}
1872_ACEOF
1873rm -f conftest.o conftest.obj
1874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1875 (eval $ac_compile) 2>&5
1876 ac_status=$?
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); }; then
1879 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1880 case $ac_file in
1881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1882 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1883 break;;
1884 esac
1885done
c906108c 1886else
bec39cab
AC
1887 echo "$as_me: failed program was:" >&5
1888sed 's/^/| /' conftest.$ac_ext >&5
1889
1890{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1891See \`config.log' for more details." >&5
1892echo "$as_me: error: cannot compute suffix of object files: cannot compile
1893See \`config.log' for more details." >&2;}
1894 { (exit 1); exit 1; }; }
c906108c
SS
1895fi
1896
bec39cab
AC
1897rm -f conftest.$ac_cv_objext conftest.$ac_ext
1898fi
1899echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1900echo "${ECHO_T}$ac_cv_objext" >&6
1901OBJEXT=$ac_cv_objext
1902ac_objext=$OBJEXT
1903echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1904echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1905if test "${ac_cv_c_compiler_gnu+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1907else
bec39cab
AC
1908 cat >conftest.$ac_ext <<_ACEOF
1909/* confdefs.h. */
1910_ACEOF
1911cat confdefs.h >>conftest.$ac_ext
1912cat >>conftest.$ac_ext <<_ACEOF
1913/* end confdefs.h. */
1914
1915int
1916main ()
1917{
1918#ifndef __GNUC__
1919 choke me
1920#endif
1921
1922 ;
1923 return 0;
1924}
1925_ACEOF
1926rm -f conftest.$ac_objext
1927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1928 (eval $ac_compile) 2>conftest.er1
1929 ac_status=$?
1930 grep -v '^ *+' conftest.er1 >conftest.err
1931 rm -f conftest.er1
1932 cat conftest.err >&5
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); } &&
1935 { ac_try='test -z "$ac_c_werror_flag"
1936 || test ! -s conftest.err'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938 (eval $ac_try) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; } &&
1942 { ac_try='test -s conftest.$ac_objext'
1943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 (eval $ac_try) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; }; then
1948 ac_compiler_gnu=yes
1949else
1950 echo "$as_me: failed program was:" >&5
1951sed 's/^/| /' conftest.$ac_ext >&5
1952
1953ac_compiler_gnu=no
1954fi
1955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1956ac_cv_c_compiler_gnu=$ac_compiler_gnu
1957
1958fi
1959echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1960echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1961GCC=`test $ac_compiler_gnu = yes && echo yes`
1962ac_test_CFLAGS=${CFLAGS+set}
1963ac_save_CFLAGS=$CFLAGS
1964CFLAGS="-g"
1965echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1966echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1967if test "${ac_cv_prog_cc_g+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970 cat >conftest.$ac_ext <<_ACEOF
1971/* confdefs.h. */
1972_ACEOF
1973cat confdefs.h >>conftest.$ac_ext
1974cat >>conftest.$ac_ext <<_ACEOF
1975/* end confdefs.h. */
1976
1977int
1978main ()
1979{
1980
1981 ;
1982 return 0;
1983}
1984_ACEOF
1985rm -f conftest.$ac_objext
1986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1987 (eval $ac_compile) 2>conftest.er1
1988 ac_status=$?
1989 grep -v '^ *+' conftest.er1 >conftest.err
1990 rm -f conftest.er1
1991 cat conftest.err >&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); } &&
1994 { ac_try='test -z "$ac_c_werror_flag"
1995 || test ! -s conftest.err'
1996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1997 (eval $ac_try) 2>&5
1998 ac_status=$?
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; } &&
2001 { ac_try='test -s conftest.$ac_objext'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; }; then
c906108c
SS
2007 ac_cv_prog_cc_g=yes
2008else
bec39cab
AC
2009 echo "$as_me: failed program was:" >&5
2010sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2011
bec39cab 2012ac_cv_prog_cc_g=no
c906108c 2013fi
bec39cab
AC
2014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2015fi
2016echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2017echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2018if test "$ac_test_CFLAGS" = set; then
bec39cab 2019 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2020elif test $ac_cv_prog_cc_g = yes; then
2021 if test "$GCC" = yes; then
2022 CFLAGS="-g -O2"
2023 else
2024 CFLAGS="-g"
2025 fi
2026else
2027 if test "$GCC" = yes; then
2028 CFLAGS="-O2"
2029 else
2030 CFLAGS=
2031 fi
2032fi
bec39cab
AC
2033echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2034echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2035if test "${ac_cv_prog_cc_stdc+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037else
2038 ac_cv_prog_cc_stdc=no
2039ac_save_CC=$CC
2040cat >conftest.$ac_ext <<_ACEOF
2041/* confdefs.h. */
2042_ACEOF
2043cat confdefs.h >>conftest.$ac_ext
2044cat >>conftest.$ac_ext <<_ACEOF
2045/* end confdefs.h. */
c906108c
SS
2046#include <stdarg.h>
2047#include <stdio.h>
2048#include <sys/types.h>
2049#include <sys/stat.h>
2050/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2051struct buf { int x; };
2052FILE * (*rcsopen) (struct buf *, struct stat *, int);
2053static char *e (p, i)
2054 char **p;
2055 int i;
2056{
2057 return p[i];
2058}
2059static char *f (char * (*g) (char **, int), char **p, ...)
2060{
2061 char *s;
2062 va_list v;
2063 va_start (v,p);
2064 s = g (p, va_arg (v,int));
2065 va_end (v);
2066 return s;
2067}
bec39cab
AC
2068
2069/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2070 function prototypes and stuff, but not '\xHH' hex character constants.
2071 These don't provoke an error unfortunately, instead are silently treated
2072 as 'x'. The following induces an error, until -std1 is added to get
2073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2074 array size at least. It's necessary to write '\x00'==0 to get something
2075 that's true only with -std1. */
2076int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2077
c906108c
SS
2078int test (int i, double x);
2079struct s1 {int (*f) (int a);};
2080struct s2 {int (*f) (double a);};
2081int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2082int argc;
2083char **argv;
bec39cab
AC
2084int
2085main ()
2086{
c906108c 2087return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2088 ;
2089 return 0;
2090}
2091_ACEOF
2092# Don't try gcc -ansi; that turns off useful extensions and
2093# breaks some systems' header files.
2094# AIX -qlanglvl=ansi
2095# Ultrix and OSF/1 -std1
2096# HP-UX 10.20 and later -Ae
2097# HP-UX older versions -Aa -D_HPUX_SOURCE
2098# SVR4 -Xc -D__EXTENSIONS__
2099for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2100do
2101 CC="$ac_save_CC $ac_arg"
2102 rm -f conftest.$ac_objext
2103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>conftest.er1
2105 ac_status=$?
2106 grep -v '^ *+' conftest.er1 >conftest.err
2107 rm -f conftest.er1
2108 cat conftest.err >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); } &&
2111 { ac_try='test -z "$ac_c_werror_flag"
2112 || test ! -s conftest.err'
2113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 (eval $ac_try) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; } &&
2118 { ac_try='test -s conftest.$ac_objext'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 (eval $ac_try) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; }; then
2124 ac_cv_prog_cc_stdc=$ac_arg
2125break
c906108c 2126else
bec39cab
AC
2127 echo "$as_me: failed program was:" >&5
2128sed 's/^/| /' conftest.$ac_ext >&5
2129
c906108c 2130fi
bec39cab 2131rm -f conftest.err conftest.$ac_objext
c906108c 2132done
bec39cab
AC
2133rm -f conftest.$ac_ext conftest.$ac_objext
2134CC=$ac_save_CC
c906108c
SS
2135
2136fi
2137
bec39cab
AC
2138case "x$ac_cv_prog_cc_stdc" in
2139 x|xno)
2140 echo "$as_me:$LINENO: result: none needed" >&5
2141echo "${ECHO_T}none needed" >&6 ;;
2142 *)
2143 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2144echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2145 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2146esac
2147
bec39cab
AC
2148# Some people use a C++ compiler to compile C. Since we use `exit',
2149# in C++ we need to declare it. In case someone uses the same compiler
2150# for both compiling C and C++ we need to have the C++ compiler decide
2151# the declaration of exit, since it's the most demanding environment.
2152cat >conftest.$ac_ext <<_ACEOF
2153#ifndef __cplusplus
2154 choke me
2155#endif
2156_ACEOF
2157rm -f conftest.$ac_objext
2158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2159 (eval $ac_compile) 2>conftest.er1
2160 ac_status=$?
2161 grep -v '^ *+' conftest.er1 >conftest.err
2162 rm -f conftest.er1
2163 cat conftest.err >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); } &&
2166 { ac_try='test -z "$ac_c_werror_flag"
2167 || test ! -s conftest.err'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; } &&
2173 { ac_try='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 for ac_declaration in \
2180 '' \
2181 'extern "C" void std::exit (int) throw (); using std::exit;' \
2182 'extern "C" void std::exit (int); using std::exit;' \
2183 'extern "C" void exit (int) throw ();' \
2184 'extern "C" void exit (int);' \
2185 'void exit (int);'
2186do
2187 cat >conftest.$ac_ext <<_ACEOF
2188/* confdefs.h. */
2189_ACEOF
2190cat confdefs.h >>conftest.$ac_ext
2191cat >>conftest.$ac_ext <<_ACEOF
2192/* end confdefs.h. */
2193$ac_declaration
2194#include <stdlib.h>
2195int
2196main ()
2197{
2198exit (42);
2199 ;
2200 return 0;
2201}
2202_ACEOF
2203rm -f conftest.$ac_objext
2204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>conftest.er1
2206 ac_status=$?
2207 grep -v '^ *+' conftest.er1 >conftest.err
2208 rm -f conftest.er1
2209 cat conftest.err >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); } &&
2212 { ac_try='test -z "$ac_c_werror_flag"
2213 || test ! -s conftest.err'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; } &&
2219 { ac_try='test -s conftest.$ac_objext'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 (eval $ac_try) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2225 :
2226else
2227 echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2229
bec39cab 2230continue
c906108c 2231fi
bec39cab
AC
2232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233 cat >conftest.$ac_ext <<_ACEOF
2234/* confdefs.h. */
2235_ACEOF
2236cat confdefs.h >>conftest.$ac_ext
2237cat >>conftest.$ac_ext <<_ACEOF
2238/* end confdefs.h. */
2239$ac_declaration
2240int
2241main ()
2242{
2243exit (42);
2244 ;
2245 return 0;
2246}
2247_ACEOF
2248rm -f conftest.$ac_objext
2249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2251 ac_status=$?
2252 grep -v '^ *+' conftest.er1 >conftest.err
2253 rm -f conftest.er1
2254 cat conftest.err >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -z "$ac_c_werror_flag"
2258 || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 break
2271else
2272 echo "$as_me: failed program was:" >&5
2273sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2274
bec39cab
AC
2275fi
2276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2277done
2278rm -f conftest*
2279if test -n "$ac_declaration"; then
2280 echo '#ifdef __cplusplus' >>confdefs.h
2281 echo $ac_declaration >>confdefs.h
2282 echo '#endif' >>confdefs.h
c906108c
SS
2283fi
2284
bec39cab
AC
2285else
2286 echo "$as_me: failed program was:" >&5
2287sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2288
bec39cab
AC
2289fi
2290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291ac_ext=c
2292ac_cpp='$CPP $CPPFLAGS'
2293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2296
bec39cab
AC
2297cat >>confdefs.h <<\_ACEOF
2298#define _GNU_SOURCE 1
2299_ACEOF
c906108c
SS
2300
2301
8bb2c122 2302
bec39cab
AC
2303ac_ext=c
2304ac_cpp='$CPP $CPPFLAGS'
2305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2309echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2310# On Suns, sometimes $CPP names a directory.
2311if test -n "$CPP" && test -d "$CPP"; then
2312 CPP=
8bb2c122 2313fi
bec39cab
AC
2314if test -z "$CPP"; then
2315 if test "${ac_cv_prog_CPP+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317else
2318 # Double quotes because CPP needs to be expanded
2319 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2320 do
2321 ac_preproc_ok=false
2322for ac_c_preproc_warn_flag in '' yes
2323do
2324 # Use a header file that comes with gcc, so configuring glibc
2325 # with a fresh cross-compiler works.
2326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2327 # <limits.h> exists even on freestanding compilers.
2328 # On the NeXT, cc -E runs the code through the compiler's parser,
2329 # not just through cpp. "Syntax error" is here to catch this case.
2330 cat >conftest.$ac_ext <<_ACEOF
2331/* confdefs.h. */
2332_ACEOF
2333cat confdefs.h >>conftest.$ac_ext
2334cat >>conftest.$ac_ext <<_ACEOF
2335/* end confdefs.h. */
2336#ifdef __STDC__
2337# include <limits.h>
2338#else
2339# include <assert.h>
2340#endif
2341 Syntax error
2342_ACEOF
2343if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } >/dev/null; then
2351 if test -s conftest.err; then
2352 ac_cpp_err=$ac_c_preproc_warn_flag
2353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2354 else
2355 ac_cpp_err=
2356 fi
8bb2c122 2357else
bec39cab 2358 ac_cpp_err=yes
8bb2c122 2359fi
bec39cab
AC
2360if test -z "$ac_cpp_err"; then
2361 :
8bb2c122 2362else
bec39cab
AC
2363 echo "$as_me: failed program was:" >&5
2364sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 # Broken: fails on valid input.
2367continue
2368fi
2369rm -f conftest.err conftest.$ac_ext
2370
2371 # OK, works on sane cases. Now check whether non-existent headers
2372 # can be detected and how.
2373 cat >conftest.$ac_ext <<_ACEOF
2374/* confdefs.h. */
2375_ACEOF
2376cat confdefs.h >>conftest.$ac_ext
2377cat >>conftest.$ac_ext <<_ACEOF
2378/* end confdefs.h. */
2379#include <ac_nonexistent.h>
2380_ACEOF
2381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 ac_status=$?
2384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev/null; then
2389 if test -s conftest.err; then
2390 ac_cpp_err=$ac_c_preproc_warn_flag
2391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2392 else
2393 ac_cpp_err=
2394 fi
8bb2c122 2395else
bec39cab 2396 ac_cpp_err=yes
8bb2c122 2397fi
bec39cab
AC
2398if test -z "$ac_cpp_err"; then
2399 # Broken: success on invalid input.
2400continue
8bb2c122 2401else
bec39cab
AC
2402 echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2404
bec39cab
AC
2405 # Passes both tests.
2406ac_preproc_ok=:
2407break
8bb2c122 2408fi
bec39cab 2409rm -f conftest.err conftest.$ac_ext
8bb2c122 2410
bec39cab
AC
2411done
2412# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2413rm -f conftest.err conftest.$ac_ext
2414if $ac_preproc_ok; then
2415 break
2416fi
8bb2c122 2417
bec39cab
AC
2418 done
2419 ac_cv_prog_CPP=$CPP
ddc9cd0f 2420
c906108c 2421fi
bec39cab
AC
2422 CPP=$ac_cv_prog_CPP
2423else
2424 ac_cv_prog_CPP=$CPP
c906108c 2425fi
bec39cab
AC
2426echo "$as_me:$LINENO: result: $CPP" >&5
2427echo "${ECHO_T}$CPP" >&6
2428ac_preproc_ok=false
2429for ac_c_preproc_warn_flag in '' yes
2430do
2431 # Use a header file that comes with gcc, so configuring glibc
2432 # with a fresh cross-compiler works.
2433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2434 # <limits.h> exists even on freestanding compilers.
2435 # On the NeXT, cc -E runs the code through the compiler's parser,
2436 # not just through cpp. "Syntax error" is here to catch this case.
2437 cat >conftest.$ac_ext <<_ACEOF
2438/* confdefs.h. */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
2442/* end confdefs.h. */
2443#ifdef __STDC__
2444# include <limits.h>
2445#else
2446# include <assert.h>
2447#endif
2448 Syntax error
2449_ACEOF
2450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2452 ac_status=$?
2453 grep -v '^ *+' conftest.er1 >conftest.err
2454 rm -f conftest.er1
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } >/dev/null; then
2458 if test -s conftest.err; then
2459 ac_cpp_err=$ac_c_preproc_warn_flag
2460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2461 else
2462 ac_cpp_err=
2463 fi
c906108c 2464else
bec39cab 2465 ac_cpp_err=yes
c906108c 2466fi
bec39cab
AC
2467if test -z "$ac_cpp_err"; then
2468 :
c906108c 2469else
bec39cab
AC
2470 echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
2472
2473 # Broken: fails on valid input.
2474continue
2475fi
2476rm -f conftest.err conftest.$ac_ext
2477
2478 # OK, works on sane cases. Now check whether non-existent headers
2479 # can be detected and how.
2480 cat >conftest.$ac_ext <<_ACEOF
2481/* confdefs.h. */
2482_ACEOF
2483cat confdefs.h >>conftest.$ac_ext
2484cat >>conftest.$ac_ext <<_ACEOF
2485/* end confdefs.h. */
2486#include <ac_nonexistent.h>
2487_ACEOF
2488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } >/dev/null; then
2496 if test -s conftest.err; then
2497 ac_cpp_err=$ac_c_preproc_warn_flag
2498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2499 else
2500 ac_cpp_err=
2501 fi
c906108c 2502else
bec39cab 2503 ac_cpp_err=yes
c906108c 2504fi
bec39cab
AC
2505if test -z "$ac_cpp_err"; then
2506 # Broken: success on invalid input.
2507continue
c906108c 2508else
bec39cab
AC
2509 echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2511
bec39cab
AC
2512 # Passes both tests.
2513ac_preproc_ok=:
2514break
c906108c 2515fi
bec39cab 2516rm -f conftest.err conftest.$ac_ext
c906108c 2517
bec39cab
AC
2518done
2519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2520rm -f conftest.err conftest.$ac_ext
2521if $ac_preproc_ok; then
c906108c
SS
2522 :
2523else
bec39cab
AC
2524 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2525See \`config.log' for more details." >&5
2526echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2527See \`config.log' for more details." >&2;}
2528 { (exit 1); exit 1; }; }
c906108c 2529fi
c906108c 2530
bec39cab
AC
2531ac_ext=c
2532ac_cpp='$CPP $CPPFLAGS'
2533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536
2537
2538echo "$as_me:$LINENO: checking for egrep" >&5
2539echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2540if test "${ac_cv_prog_egrep+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
2543 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2544 then ac_cv_prog_egrep='grep -E'
2545 else ac_cv_prog_egrep='egrep'
2546 fi
c906108c 2547fi
bec39cab
AC
2548echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2549echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2550 EGREP=$ac_cv_prog_egrep
c906108c 2551
bec39cab
AC
2552
2553
2554echo "$as_me:$LINENO: checking for AIX" >&5
2555echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2556cat >conftest.$ac_ext <<_ACEOF
2557/* confdefs.h. */
2558_ACEOF
2559cat confdefs.h >>conftest.$ac_ext
2560cat >>conftest.$ac_ext <<_ACEOF
2561/* end confdefs.h. */
2562#ifdef _AIX
2563 yes
2564#endif
2565
2566_ACEOF
c906108c 2567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab
AC
2568 $EGREP "yes" >/dev/null 2>&1; then
2569 echo "$as_me:$LINENO: result: yes" >&5
2570echo "${ECHO_T}yes" >&6
2571cat >>confdefs.h <<\_ACEOF
2572#define _ALL_SOURCE 1
2573_ACEOF
2574
c906108c 2575else
bec39cab
AC
2576 echo "$as_me:$LINENO: result: no" >&5
2577echo "${ECHO_T}no" >&6
c906108c
SS
2578fi
2579rm -f conftest*
2580
c906108c 2581
bec39cab
AC
2582echo "$as_me:$LINENO: checking for library containing strerror" >&5
2583echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2584if test "${ac_cv_search_strerror+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2586else
bec39cab
AC
2587 ac_func_search_save_LIBS=$LIBS
2588ac_cv_search_strerror=no
2589cat >conftest.$ac_ext <<_ACEOF
2590/* confdefs.h. */
2591_ACEOF
2592cat confdefs.h >>conftest.$ac_ext
2593cat >>conftest.$ac_ext <<_ACEOF
2594/* end confdefs.h. */
c906108c 2595
bec39cab
AC
2596/* Override any gcc2 internal prototype to avoid an error. */
2597#ifdef __cplusplus
2598extern "C"
2599#endif
2600/* We use char because int might match the return type of a gcc2
2601 builtin and then its argument prototype would still apply. */
2602char strerror ();
2603int
2604main ()
2605{
2606strerror ();
2607 ;
2608 return 0;
2609}
2610_ACEOF
2611rm -f conftest.$ac_objext conftest$ac_exeext
2612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2613 (eval $ac_link) 2>conftest.er1
2614 ac_status=$?
2615 grep -v '^ *+' conftest.er1 >conftest.err
2616 rm -f conftest.er1
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest$ac_exeext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 ac_cv_search_strerror="none required"
2634else
2635 echo "$as_me: failed program was:" >&5
2636sed 's/^/| /' conftest.$ac_ext >&5
2637
2638fi
2639rm -f conftest.err conftest.$ac_objext \
2640 conftest$ac_exeext conftest.$ac_ext
2641if test "$ac_cv_search_strerror" = no; then
2642 for ac_lib in cposix; do
2643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2644 cat >conftest.$ac_ext <<_ACEOF
2645/* confdefs.h. */
2646_ACEOF
2647cat confdefs.h >>conftest.$ac_ext
2648cat >>conftest.$ac_ext <<_ACEOF
2649/* end confdefs.h. */
2650
2651/* Override any gcc2 internal prototype to avoid an error. */
2652#ifdef __cplusplus
2653extern "C"
2654#endif
2655/* We use char because int might match the return type of a gcc2
2656 builtin and then its argument prototype would still apply. */
2657char strerror ();
2658int
2659main ()
2660{
2661strerror ();
2662 ;
2663 return 0;
2664}
2665_ACEOF
2666rm -f conftest.$ac_objext conftest$ac_exeext
2667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2668 (eval $ac_link) 2>conftest.er1
2669 ac_status=$?
2670 grep -v '^ *+' conftest.er1 >conftest.err
2671 rm -f conftest.er1
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest$ac_exeext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 ac_cv_search_strerror="-l$ac_lib"
2689break
c906108c 2690else
bec39cab
AC
2691 echo "$as_me: failed program was:" >&5
2692sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2693
2694fi
bec39cab
AC
2695rm -f conftest.err conftest.$ac_objext \
2696 conftest$ac_exeext conftest.$ac_ext
2697 done
c906108c 2698fi
bec39cab 2699LIBS=$ac_func_search_save_LIBS
c906108c 2700fi
bec39cab
AC
2701echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2702echo "${ECHO_T}$ac_cv_search_strerror" >&6
2703if test "$ac_cv_search_strerror" != no; then
2704 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2705
c906108c
SS
2706fi
2707
c906108c 2708
c906108c 2709
bec39cab
AC
2710
2711echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2712echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2713if test "${am_cv_prog_cc_stdc+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2715else
bec39cab
AC
2716 am_cv_prog_cc_stdc=no
2717ac_save_CC="$CC"
2718# Don't try gcc -ansi; that turns off useful extensions and
2719# breaks some systems' header files.
2720# AIX -qlanglvl=ansi
2721# Ultrix and OSF/1 -std1
2722# HP-UX 10.20 and later -Ae
2723# HP-UX older versions -Aa -D_HPUX_SOURCE
2724# SVR4 -Xc -D__EXTENSIONS__
2725for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726do
2727 CC="$ac_save_CC $ac_arg"
2728 cat >conftest.$ac_ext <<_ACEOF
2729/* confdefs.h. */
2730_ACEOF
2731cat confdefs.h >>conftest.$ac_ext
2732cat >>conftest.$ac_ext <<_ACEOF
2733/* end confdefs.h. */
2734#include <stdarg.h>
2735#include <stdio.h>
2736#include <sys/types.h>
2737#include <sys/stat.h>
2738/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2739struct buf { int x; };
2740FILE * (*rcsopen) (struct buf *, struct stat *, int);
2741static char *e (p, i)
2742 char **p;
2743 int i;
2744{
2745 return p[i];
2746}
2747static char *f (char * (*g) (char **, int), char **p, ...)
2748{
2749 char *s;
2750 va_list v;
2751 va_start (v,p);
2752 s = g (p, va_arg (v,int));
2753 va_end (v);
2754 return s;
2755}
2756int test (int i, double x);
2757struct s1 {int (*f) (int a);};
2758struct s2 {int (*f) (double a);};
2759int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2760int argc;
2761char **argv;
c906108c 2762
bec39cab
AC
2763int
2764main ()
2765{
c906108c 2766
bec39cab 2767return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2768
bec39cab
AC
2769 ;
2770 return 0;
2771}
2772_ACEOF
2773rm -f conftest.$ac_objext
2774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>conftest.er1
2776 ac_status=$?
2777 grep -v '^ *+' conftest.er1 >conftest.err
2778 rm -f conftest.er1
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try='test -z "$ac_c_werror_flag"
2783 || test ! -s conftest.err'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2796else
bec39cab
AC
2797 echo "$as_me: failed program was:" >&5
2798sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2799
2800fi
bec39cab
AC
2801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2802done
2803CC="$ac_save_CC"
c906108c
SS
2804
2805fi
2806
bec39cab
AC
2807if test -z "$am_cv_prog_cc_stdc"; then
2808 echo "$as_me:$LINENO: result: none needed" >&5
2809echo "${ECHO_T}none needed" >&6
c906108c 2810else
bec39cab
AC
2811 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2812echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2813fi
bec39cab
AC
2814case "x$am_cv_prog_cc_stdc" in
2815 x|xno) ;;
2816 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2817esac
c906108c 2818
c906108c 2819
bec39cab
AC
2820ac_aux_dir=
2821for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2822 if test -f $ac_dir/install-sh; then
2823 ac_aux_dir=$ac_dir
2824 ac_install_sh="$ac_aux_dir/install-sh -c"
2825 break
2826 elif test -f $ac_dir/install.sh; then
2827 ac_aux_dir=$ac_dir
2828 ac_install_sh="$ac_aux_dir/install.sh -c"
2829 break
2830 elif test -f $ac_dir/shtool; then
2831 ac_aux_dir=$ac_dir
2832 ac_install_sh="$ac_aux_dir/shtool install -c"
2833 break
2834 fi
2835done
2836if test -z "$ac_aux_dir"; then
2837 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2838echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2839 { (exit 1); exit 1; }; }
c906108c 2840fi
bec39cab
AC
2841ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2842ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2843ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2844
bec39cab
AC
2845# Make sure we can run config.sub.
2846$ac_config_sub sun4 >/dev/null 2>&1 ||
2847 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2848echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2849 { (exit 1); exit 1; }; }
2850
2851echo "$as_me:$LINENO: checking build system type" >&5
2852echo $ECHO_N "checking build system type... $ECHO_C" >&6
2853if test "${ac_cv_build+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855else
2856 ac_cv_build_alias=$build_alias
2857test -z "$ac_cv_build_alias" &&
2858 ac_cv_build_alias=`$ac_config_guess`
2859test -z "$ac_cv_build_alias" &&
2860 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2861echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2862 { (exit 1); exit 1; }; }
2863ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2864 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2865echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2866 { (exit 1); exit 1; }; }
2867
2868fi
2869echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2870echo "${ECHO_T}$ac_cv_build" >&6
2871build=$ac_cv_build
2872build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2873build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2874build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2875
2876
2877echo "$as_me:$LINENO: checking host system type" >&5
2878echo $ECHO_N "checking host system type... $ECHO_C" >&6
2879if test "${ac_cv_host+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882 ac_cv_host_alias=$host_alias
2883test -z "$ac_cv_host_alias" &&
2884 ac_cv_host_alias=$ac_cv_build_alias
2885ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2886 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2887echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2888 { (exit 1); exit 1; }; }
2889
2890fi
2891echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2892echo "${ECHO_T}$ac_cv_host" >&6
2893host=$ac_cv_host
2894host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2895host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2896host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2897
2898
2899echo "$as_me:$LINENO: checking target system type" >&5
2900echo $ECHO_N "checking target system type... $ECHO_C" >&6
2901if test "${ac_cv_target+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903else
2904 ac_cv_target_alias=$target_alias
2905test "x$ac_cv_target_alias" = "x" &&
2906 ac_cv_target_alias=$ac_cv_host_alias
2907ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2908 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2909echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2910 { (exit 1); exit 1; }; }
2911
2912fi
2913echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2914echo "${ECHO_T}$ac_cv_target" >&6
2915target=$ac_cv_target
2916target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2917target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2918target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2919
c906108c 2920
bec39cab
AC
2921# The aliases save the names the user supplied, while $host etc.
2922# will get canonicalized.
2923test -n "$target_alias" &&
2924 test "$program_prefix$program_suffix$program_transform_name" = \
2925 NONENONEs,x,x, &&
2926 program_prefix=${target_alias}-
c906108c 2927
bec39cab
AC
2928# FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
2929# doesn't support cross-compilation, but the one from Autoconf 2.5x
2930# does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
2931# deal with the lossage. Note that CY_GNU_GETTEXT currently calls
2932# AC_PROG_RANLIB. This can be removed when we switch to Autoconf
2933# 2.5x.
2934if test -n "$ac_tool_prefix"; then
2935 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2936set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2937echo "$as_me:$LINENO: checking for $ac_word" >&5
2938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2939if test "${ac_cv_prog_RANLIB+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2941else
bec39cab
AC
2942 if test -n "$RANLIB"; then
2943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 2944else
bec39cab
AC
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956done
2957done
2958
c906108c 2959fi
c906108c 2960fi
bec39cab
AC
2961RANLIB=$ac_cv_prog_RANLIB
2962if test -n "$RANLIB"; then
2963 echo "$as_me:$LINENO: result: $RANLIB" >&5
2964echo "${ECHO_T}$RANLIB" >&6
2965else
2966 echo "$as_me:$LINENO: result: no" >&5
2967echo "${ECHO_T}no" >&6
c906108c
SS
2968fi
2969
bec39cab
AC
2970fi
2971if test -z "$ac_cv_prog_RANLIB"; then
2972 ac_ct_RANLIB=$RANLIB
2973 # Extract the first word of "ranlib", so it can be a program name with args.
2974set dummy ranlib; ac_word=$2
2975echo "$as_me:$LINENO: checking for $ac_word" >&5
2976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2979else
bec39cab
AC
2980 if test -n "$ac_ct_RANLIB"; then
2981 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2982else
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_ac_ct_RANLIB="ranlib"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994done
2995done
c906108c 2996
bec39cab
AC
2997 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2998fi
2999fi
3000ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3001if test -n "$ac_ct_RANLIB"; then
3002 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3003echo "${ECHO_T}$ac_ct_RANLIB" >&6
c906108c 3004else
bec39cab
AC
3005 echo "$as_me:$LINENO: result: no" >&5
3006echo "${ECHO_T}no" >&6
c906108c 3007fi
c906108c 3008
bec39cab
AC
3009 RANLIB=$ac_ct_RANLIB
3010else
3011 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
3012fi
3013
c906108c 3014
c906108c 3015
bec39cab
AC
3016CONFIG_OBS=
3017CONFIG_DEPS=
3018CONFIG_SRCS=
3019ENABLE_CFLAGS=
c906108c 3020
bec39cab
AC
3021CONFIG_ALL=
3022CONFIG_CLEAN=
3023CONFIG_INSTALL=
3024CONFIG_UNINSTALL=
3025
3026
3027echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3028echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3029set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3030if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032else
3033 cat >conftest.make <<\_ACEOF
3034all:
3035 @echo 'ac_maketemp="$(MAKE)"'
3036_ACEOF
3037# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3038eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3039if test -n "$ac_maketemp"; then
3040 eval ac_cv_prog_make_${ac_make}_set=yes
c906108c 3041else
bec39cab 3042 eval ac_cv_prog_make_${ac_make}_set=no
c906108c 3043fi
bec39cab
AC
3044rm -f conftest.make
3045fi
3046if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3047 echo "$as_me:$LINENO: result: yes" >&5
3048echo "${ECHO_T}yes" >&6
3049 SET_MAKE=
3050else
3051 echo "$as_me:$LINENO: result: no" >&5
3052echo "${ECHO_T}no" >&6
3053 SET_MAKE="MAKE=${MAKE-make}"
c906108c
SS
3054fi
3055
bec39cab
AC
3056if test -n "$ac_tool_prefix"; then
3057 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3058set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3059echo "$as_me:$LINENO: checking for $ac_word" >&5
3060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061if test "${ac_cv_prog_RANLIB+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064 if test -n "$RANLIB"; then
3065 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3066else
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078done
3079done
c906108c 3080
bec39cab
AC
3081fi
3082fi
3083RANLIB=$ac_cv_prog_RANLIB
3084if test -n "$RANLIB"; then
3085 echo "$as_me:$LINENO: result: $RANLIB" >&5
3086echo "${ECHO_T}$RANLIB" >&6
c906108c 3087else
bec39cab
AC
3088 echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
c906108c
SS
3090fi
3091
bec39cab
AC
3092fi
3093if test -z "$ac_cv_prog_RANLIB"; then
3094 ac_ct_RANLIB=$RANLIB
3095 # Extract the first word of "ranlib", so it can be a program name with args.
3096set dummy ranlib; ac_word=$2
3097echo "$as_me:$LINENO: checking for $ac_word" >&5
3098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101else
3102 if test -n "$ac_ct_RANLIB"; then
3103 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3104else
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_ac_ct_RANLIB="ranlib"
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3115 fi
3116done
c906108c 3117done
bec39cab
AC
3118
3119 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3120fi
3121fi
3122ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3123if test -n "$ac_ct_RANLIB"; then
3124 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3125echo "${ECHO_T}$ac_ct_RANLIB" >&6
3126else
3127 echo "$as_me:$LINENO: result: no" >&5
3128echo "${ECHO_T}no" >&6
c906108c
SS
3129fi
3130
bec39cab 3131 RANLIB=$ac_ct_RANLIB
c906108c 3132else
bec39cab
AC
3133 RANLIB="$ac_cv_prog_RANLIB"
3134fi
3135
3136echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3137echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3138if test "${ac_cv_header_stdc+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3140else
bec39cab
AC
3141 cat >conftest.$ac_ext <<_ACEOF
3142/* confdefs.h. */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h. */
3147#include <stdlib.h>
3148#include <stdarg.h>
3149#include <string.h>
3150#include <float.h>
3151
3152int
c906108c
SS
3153main ()
3154{
bec39cab
AC
3155
3156 ;
3157 return 0;
c906108c 3158}
bec39cab
AC
3159_ACEOF
3160rm -f conftest.$ac_objext
3161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3162 (eval $ac_compile) 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_c_werror_flag"
3170 || test ! -s conftest.err'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 (eval $ac_try) 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; } &&
3176 { ac_try='test -s conftest.$ac_objext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 ac_cv_header_stdc=yes
c906108c 3183else
bec39cab
AC
3184 echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3186
bec39cab 3187ac_cv_header_stdc=no
c906108c 3188fi
bec39cab 3189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3190
bec39cab
AC
3191if test $ac_cv_header_stdc = yes; then
3192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3193 cat >conftest.$ac_ext <<_ACEOF
3194/* confdefs.h. */
3195_ACEOF
3196cat confdefs.h >>conftest.$ac_ext
3197cat >>conftest.$ac_ext <<_ACEOF
3198/* end confdefs.h. */
3199#include <string.h>
c906108c 3200
bec39cab
AC
3201_ACEOF
3202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3203 $EGREP "memchr" >/dev/null 2>&1; then
3204 :
c906108c 3205else
bec39cab 3206 ac_cv_header_stdc=no
c906108c 3207fi
bec39cab 3208rm -f conftest*
c906108c 3209
bec39cab 3210fi
c906108c 3211
bec39cab
AC
3212if test $ac_cv_header_stdc = yes; then
3213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3214 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
3220#include <stdlib.h>
c906108c 3221
bec39cab
AC
3222_ACEOF
3223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3224 $EGREP "free" >/dev/null 2>&1; then
3225 :
c906108c 3226else
bec39cab 3227 ac_cv_header_stdc=no
c906108c
SS
3228fi
3229rm -f conftest*
c906108c 3230
c906108c 3231fi
c906108c 3232
bec39cab
AC
3233if test $ac_cv_header_stdc = yes; then
3234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c906108c 3235 if test "$cross_compiling" = yes; then
bec39cab 3236 :
c906108c 3237else
bec39cab
AC
3238 cat >conftest.$ac_ext <<_ACEOF
3239/* confdefs.h. */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h. */
3244#include <ctype.h>
3245#if ((' ' & 0x0FF) == 0x020)
3246# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3247# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3248#else
3249# define ISLOWER(c) \
3250 (('a' <= (c) && (c) <= 'i') \
3251 || ('j' <= (c) && (c) <= 'r') \
3252 || ('s' <= (c) && (c) <= 'z'))
3253# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3254#endif
c906108c 3255
bec39cab
AC
3256#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3257int
3258main ()
3259{
3260 int i;
3261 for (i = 0; i < 256; i++)
3262 if (XOR (islower (i), ISLOWER (i))
3263 || toupper (i) != TOUPPER (i))
3264 exit(2);
3265 exit (0);
3266}
3267_ACEOF
3268rm -f conftest$ac_exeext
3269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3270 (eval $ac_link) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 :
3280else
3281 echo "$as_me: program exited with status $ac_status" >&5
3282echo "$as_me: failed program was:" >&5
3283sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3284
bec39cab
AC
3285( exit $ac_status )
3286ac_cv_header_stdc=no
3287fi
3288rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3289fi
3290fi
3291fi
3292echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3293echo "${ECHO_T}$ac_cv_header_stdc" >&6
3294if test $ac_cv_header_stdc = yes; then
c906108c 3295
bec39cab
AC
3296cat >>confdefs.h <<\_ACEOF
3297#define STDC_HEADERS 1
3298_ACEOF
c906108c 3299
bec39cab 3300fi
c906108c 3301
bec39cab
AC
3302echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3303echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3304if test "${ac_cv_c_const+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306else
3307 cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h. */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h. */
c906108c 3313
bec39cab
AC
3314int
3315main ()
3316{
3317/* FIXME: Include the comments suggested by Paul. */
3318#ifndef __cplusplus
3319 /* Ultrix mips cc rejects this. */
3320 typedef int charset[2];
3321 const charset x;
3322 /* SunOS 4.1.1 cc rejects this. */
3323 char const *const *ccp;
3324 char **p;
3325 /* NEC SVR4.0.2 mips cc rejects this. */
3326 struct point {int x, y;};
3327 static struct point const zero = {0,0};
3328 /* AIX XL C 1.02.0.0 rejects this.
3329 It does not let you subtract one const X* pointer from another in
3330 an arm of an if-expression whose if-part is not a constant
3331 expression */
3332 const char *g = "string";
3333 ccp = &g + (g ? g-g : 0);
3334 /* HPUX 7.0 cc rejects these. */
3335 ++ccp;
3336 p = (char**) ccp;
3337 ccp = (char const *const *) p;
3338 { /* SCO 3.2v4 cc rejects this. */
3339 char *t;
3340 char const *s = 0 ? (char *) 0 : (char const *) 0;
3341
3342 *t++ = 0;
3343 }
3344 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3345 int x[] = {25, 17};
3346 const int *foo = &x[0];
3347 ++foo;
3348 }
3349 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3350 typedef const int *iptr;
3351 iptr p = 0;
3352 ++p;
3353 }
3354 { /* AIX XL C 1.02.0.0 rejects this saying
3355 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3356 struct s { int j; const int *ap[3]; };
3357 struct s *b; b->j = 5;
3358 }
3359 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3360 const int foo = 10;
3361 }
3362#endif
c906108c 3363
bec39cab
AC
3364 ;
3365 return 0;
3366}
3367_ACEOF
3368rm -f conftest.$ac_objext
3369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3370 (eval $ac_compile) 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -z "$ac_c_werror_flag"
3378 || test ! -s conftest.err'
3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 (eval $ac_try) 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 ac_cv_c_const=yes
c906108c 3391else
bec39cab
AC
3392 echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3394
bec39cab
AC
3395ac_cv_c_const=no
3396fi
3397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3398fi
bec39cab
AC
3399echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3400echo "${ECHO_T}$ac_cv_c_const" >&6
3401if test $ac_cv_c_const = no; then
c906108c 3402
bec39cab
AC
3403cat >>confdefs.h <<\_ACEOF
3404#define const
3405_ACEOF
c906108c
SS
3406
3407fi
3408
bec39cab
AC
3409echo "$as_me:$LINENO: checking for inline" >&5
3410echo $ECHO_N "checking for inline... $ECHO_C" >&6
3411if test "${ac_cv_c_inline+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3413else
bec39cab
AC
3414 ac_cv_c_inline=no
3415for ac_kw in inline __inline__ __inline; do
3416 cat >conftest.$ac_ext <<_ACEOF
3417/* confdefs.h. */
3418_ACEOF
3419cat confdefs.h >>conftest.$ac_ext
3420cat >>conftest.$ac_ext <<_ACEOF
3421/* end confdefs.h. */
3422#ifndef __cplusplus
3423typedef int foo_t;
3424static $ac_kw foo_t static_foo () {return 0; }
3425$ac_kw foo_t foo () {return 0; }
c906108c
SS
3426#endif
3427
bec39cab
AC
3428_ACEOF
3429rm -f conftest.$ac_objext
3430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try='test -z "$ac_c_werror_flag"
3439 || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_c_inline=$ac_kw; break
c906108c 3452else
bec39cab
AC
3453 echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3455
c906108c 3456fi
bec39cab 3457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
3458done
3459
bec39cab
AC
3460fi
3461echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3462echo "${ECHO_T}$ac_cv_c_inline" >&6
c906108c 3463
c906108c 3464
bec39cab
AC
3465case $ac_cv_c_inline in
3466 inline | yes) ;;
3467 *)
3468 case $ac_cv_c_inline in
3469 no) ac_val=;;
3470 *) ac_val=$ac_cv_c_inline;;
3471 esac
3472 cat >>confdefs.h <<_ACEOF
3473#ifndef __cplusplus
3474#define inline $ac_val
c906108c 3475#endif
bec39cab
AC
3476_ACEOF
3477 ;;
3478esac
c906108c 3479
bec39cab 3480# On IRIX 5.3, sys/types and inttypes.h are conflicting.
c906108c 3481
c906108c 3482
c906108c 3483
c906108c 3484
c906108c 3485
c906108c 3486
c906108c 3487
c906108c 3488
c906108c 3489
bec39cab
AC
3490for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3491 inttypes.h stdint.h unistd.h
3492do
3493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3494echo "$as_me:$LINENO: checking for $ac_header" >&5
3495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3496if eval "test \"\${$as_ac_Header+set}\" = set"; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3498else
3499 cat >conftest.$ac_ext <<_ACEOF
3500/* confdefs.h. */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
3504/* end confdefs.h. */
3505$ac_includes_default
3506
3507#include <$ac_header>
3508_ACEOF
3509rm -f conftest.$ac_objext
3510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>conftest.er1
3512 ac_status=$?
3513 grep -v '^ *+' conftest.er1 >conftest.err
3514 rm -f conftest.er1
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -z "$ac_c_werror_flag"
3519 || test ! -s conftest.err'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; } &&
3525 { ac_try='test -s conftest.$ac_objext'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; }; then
3531 eval "$as_ac_Header=yes"
3532else
3533 echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536eval "$as_ac_Header=no"
3537fi
3538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3539fi
3540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3542if test `eval echo '${'$as_ac_Header'}'` = yes; then
3543 cat >>confdefs.h <<_ACEOF
3544#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3545_ACEOF
c906108c 3546
c906108c
SS
3547fi
3548
bec39cab 3549done
c906108c 3550
c906108c 3551
bec39cab
AC
3552echo "$as_me:$LINENO: checking for off_t" >&5
3553echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3554if test "${ac_cv_type_off_t+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3556else
bec39cab
AC
3557 cat >conftest.$ac_ext <<_ACEOF
3558/* confdefs.h. */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h. */
3563$ac_includes_default
3564int
3565main ()
3566{
3567if ((off_t *) 0)
3568 return 0;
3569if (sizeof (off_t))
3570 return 0;
3571 ;
3572 return 0;
3573}
3574_ACEOF
3575rm -f conftest.$ac_objext
3576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 ac_cv_type_off_t=yes
3598else
3599 echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602ac_cv_type_off_t=no
c906108c 3603fi
bec39cab 3604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3605fi
bec39cab
AC
3606echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3607echo "${ECHO_T}$ac_cv_type_off_t" >&6
3608if test $ac_cv_type_off_t = yes; then
3609 :
c906108c 3610else
bec39cab
AC
3611
3612cat >>confdefs.h <<_ACEOF
3613#define off_t long
3614_ACEOF
3615
3616fi
3617
3618echo "$as_me:$LINENO: checking for size_t" >&5
3619echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3620if test "${ac_cv_type_size_t+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
3623 cat >conftest.$ac_ext <<_ACEOF
3624/* confdefs.h. */
3625_ACEOF
3626cat confdefs.h >>conftest.$ac_ext
3627cat >>conftest.$ac_ext <<_ACEOF
3628/* end confdefs.h. */
3629$ac_includes_default
3630int
3631main ()
3632{
3633if ((size_t *) 0)
3634 return 0;
3635if (sizeof (size_t))
3636 return 0;
3637 ;
3638 return 0;
3639}
3640_ACEOF
3641rm -f conftest.$ac_objext
3642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3643 (eval $ac_compile) 2>conftest.er1
3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } &&
3650 { ac_try='test -z "$ac_c_werror_flag"
3651 || test ! -s conftest.err'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; } &&
3657 { ac_try='test -s conftest.$ac_objext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ac_cv_type_size_t=yes
c906108c 3664else
bec39cab
AC
3665 echo "$as_me: failed program was:" >&5
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
3668ac_cv_type_size_t=no
c906108c 3669fi
bec39cab 3670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3671fi
bec39cab
AC
3672echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3673echo "${ECHO_T}$ac_cv_type_size_t" >&6
3674if test $ac_cv_type_size_t = yes; then
3675 :
3676else
c906108c 3677
bec39cab
AC
3678cat >>confdefs.h <<_ACEOF
3679#define size_t unsigned
3680_ACEOF
c906108c 3681
c906108c 3682fi
bec39cab
AC
3683
3684# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3685# for constant arguments. Useless!
3686echo "$as_me:$LINENO: checking for working alloca.h" >&5
3687echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3688if test "${ac_cv_working_alloca_h+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690else
3691 cat >conftest.$ac_ext <<_ACEOF
3692/* confdefs.h. */
3693_ACEOF
3694cat confdefs.h >>conftest.$ac_ext
3695cat >>conftest.$ac_ext <<_ACEOF
3696/* end confdefs.h. */
3697#include <alloca.h>
3698int
3699main ()
3700{
3701char *p = (char *) alloca (2 * sizeof (int));
3702 ;
3703 return 0;
3704}
3705_ACEOF
3706rm -f conftest.$ac_objext conftest$ac_exeext
3707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3708 (eval $ac_link) 2>conftest.er1
3709 ac_status=$?
3710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } &&
3715 { ac_try='test -z "$ac_c_werror_flag"
3716 || test ! -s conftest.err'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest$ac_exeext'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 ac_cv_working_alloca_h=yes
3729else
3730 echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733ac_cv_working_alloca_h=no
3734fi
3735rm -f conftest.err conftest.$ac_objext \
3736 conftest$ac_exeext conftest.$ac_ext
3737fi
3738echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3739echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3740if test $ac_cv_working_alloca_h = yes; then
3741
3742cat >>confdefs.h <<\_ACEOF
3743#define HAVE_ALLOCA_H 1
3744_ACEOF
c906108c
SS
3745
3746fi
bec39cab
AC
3747
3748echo "$as_me:$LINENO: checking for alloca" >&5
3749echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3750if test "${ac_cv_func_alloca_works+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3752else
bec39cab
AC
3753 cat >conftest.$ac_ext <<_ACEOF
3754/* confdefs.h. */
3755_ACEOF
3756cat confdefs.h >>conftest.$ac_ext
3757cat >>conftest.$ac_ext <<_ACEOF
3758/* end confdefs.h. */
3759#ifdef __GNUC__
3760# define alloca __builtin_alloca
3761#else
3762# ifdef _MSC_VER
3763# include <malloc.h>
3764# define alloca _alloca
3765# else
3766# if HAVE_ALLOCA_H
3767# include <alloca.h>
3768# else
3769# ifdef _AIX
3770 #pragma alloca
3771# else
3772# ifndef alloca /* predefined by HP cc +Olibcalls */
3773char *alloca ();
3774# endif
3775# endif
3776# endif
3777# endif
3778#endif
c906108c 3779
bec39cab
AC
3780int
3781main ()
3782{
3783char *p = (char *) alloca (1);
3784 ;
3785 return 0;
3786}
3787_ACEOF
3788rm -f conftest.$ac_objext conftest$ac_exeext
3789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3790 (eval $ac_link) 2>conftest.er1
3791 ac_status=$?
3792 grep -v '^ *+' conftest.er1 >conftest.err
3793 rm -f conftest.er1
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } &&
3797 { ac_try='test -z "$ac_c_werror_flag"
3798 || test ! -s conftest.err'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; } &&
3804 { ac_try='test -s conftest$ac_exeext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 ac_cv_func_alloca_works=yes
c906108c 3811else
bec39cab
AC
3812 echo "$as_me: failed program was:" >&5
3813sed 's/^/| /' conftest.$ac_ext >&5
3814
3815ac_cv_func_alloca_works=no
c906108c 3816fi
bec39cab
AC
3817rm -f conftest.err conftest.$ac_objext \
3818 conftest$ac_exeext conftest.$ac_ext
c906108c 3819fi
bec39cab
AC
3820echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3821echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3822
3823if test $ac_cv_func_alloca_works = yes; then
3824
3825cat >>confdefs.h <<\_ACEOF
3826#define HAVE_ALLOCA 1
3827_ACEOF
c906108c 3828
c906108c 3829else
bec39cab
AC
3830 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3831# that cause trouble. Some versions do not even contain alloca or
3832# contain a buggy version. If you still want to use their alloca,
3833# use ar to extract alloca.o from them instead of compiling alloca.c.
c906108c 3834
bec39cab 3835ALLOCA=alloca.$ac_objext
c906108c 3836
bec39cab
AC
3837cat >>confdefs.h <<\_ACEOF
3838#define C_ALLOCA 1
3839_ACEOF
c906108c 3840
bec39cab
AC
3841
3842echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3843echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3844if test "${ac_cv_os_cray+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3846else
bec39cab
AC
3847 cat >conftest.$ac_ext <<_ACEOF
3848/* confdefs.h. */
3849_ACEOF
3850cat confdefs.h >>conftest.$ac_ext
3851cat >>conftest.$ac_ext <<_ACEOF
3852/* end confdefs.h. */
3853#if defined(CRAY) && ! defined(CRAY2)
3854webecray
3855#else
3856wenotbecray
3857#endif
3858
3859_ACEOF
3860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3861 $EGREP "webecray" >/dev/null 2>&1; then
3862 ac_cv_os_cray=yes
c906108c 3863else
bec39cab 3864 ac_cv_os_cray=no
c906108c 3865fi
bec39cab
AC
3866rm -f conftest*
3867
3868fi
3869echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3870echo "${ECHO_T}$ac_cv_os_cray" >&6
3871if test $ac_cv_os_cray = yes; then
3872 for ac_func in _getb67 GETB67 getb67; do
3873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3874echo "$as_me:$LINENO: checking for $ac_func" >&5
3875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3876if eval "test \"\${$as_ac_var+set}\" = set"; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879 cat >conftest.$ac_ext <<_ACEOF
3880/* confdefs.h. */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
3884/* end confdefs.h. */
3885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3887#define $ac_func innocuous_$ac_func
3888
c906108c 3889/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
3890 which can conflict with char $ac_func (); below.
3891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892 <limits.h> exists even on freestanding compilers. */
3893
3894#ifdef __STDC__
3895# include <limits.h>
3896#else
3897# include <assert.h>
3898#endif
c906108c 3899
bec39cab 3900#undef $ac_func
c906108c 3901
bec39cab
AC
3902/* Override any gcc2 internal prototype to avoid an error. */
3903#ifdef __cplusplus
3904extern "C"
3905{
3906#endif
3907/* We use char because int might match the return type of a gcc2
3908 builtin and then its argument prototype would still apply. */
3909char $ac_func ();
c906108c
SS
3910/* The GNU C library defines this for functions which it implements
3911 to always fail with ENOSYS. Some functions are actually named
3912 something starting with __ and the normal name is an alias. */
3913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3914choke me
3915#else
bec39cab
AC
3916char (*f) () = $ac_func;
3917#endif
3918#ifdef __cplusplus
3919}
c906108c
SS
3920#endif
3921
bec39cab
AC
3922int
3923main ()
3924{
3925return f != $ac_func;
3926 ;
3927 return 0;
3928}
3929_ACEOF
3930rm -f conftest.$ac_objext conftest$ac_exeext
3931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932 (eval $ac_link) 2>conftest.er1
3933 ac_status=$?
3934 grep -v '^ *+' conftest.er1 >conftest.err
3935 rm -f conftest.er1
3936 cat conftest.err >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } &&
3939 { ac_try='test -z "$ac_c_werror_flag"
3940 || test ! -s conftest.err'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 (eval $ac_try) 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; } &&
3946 { ac_try='test -s conftest$ac_exeext'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 (eval $ac_try) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 eval "$as_ac_var=yes"
3953else
3954 echo "$as_me: failed program was:" >&5
3955sed 's/^/| /' conftest.$ac_ext >&5
3956
3957eval "$as_ac_var=no"
3958fi
3959rm -f conftest.err conftest.$ac_objext \
3960 conftest$ac_exeext conftest.$ac_ext
3961fi
3962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3963echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3964if test `eval echo '${'$as_ac_var'}'` = yes; then
3965
3966cat >>confdefs.h <<_ACEOF
3967#define CRAY_STACKSEG_END $ac_func
3968_ACEOF
c906108c 3969
bec39cab 3970 break
c906108c 3971fi
c906108c 3972
c906108c 3973 done
c906108c 3974fi
bec39cab
AC
3975
3976echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3977echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3978if test "${ac_cv_c_stack_direction+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3980else
bec39cab
AC
3981 if test "$cross_compiling" = yes; then
3982 ac_cv_c_stack_direction=0
3983else
3984 cat >conftest.$ac_ext <<_ACEOF
3985/* confdefs.h. */
3986_ACEOF
3987cat confdefs.h >>conftest.$ac_ext
3988cat >>conftest.$ac_ext <<_ACEOF
3989/* end confdefs.h. */
3990int
3991find_stack_direction ()
3992{
3993 static char *addr = 0;
3994 auto char dummy;
3995 if (addr == 0)
3996 {
3997 addr = &dummy;
3998 return find_stack_direction ();
3999 }
4000 else
4001 return (&dummy > addr) ? 1 : -1;
4002}
c906108c 4003
bec39cab
AC
4004int
4005main ()
4006{
4007 exit (find_stack_direction () < 0);
4008}
4009_ACEOF
4010rm -f conftest$ac_exeext
4011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012 (eval $ac_link) 2>&5
4013 ac_status=$?
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 (eval $ac_try) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 ac_cv_c_stack_direction=1
c906108c 4022else
bec39cab
AC
4023 echo "$as_me: program exited with status $ac_status" >&5
4024echo "$as_me: failed program was:" >&5
4025sed 's/^/| /' conftest.$ac_ext >&5
4026
4027( exit $ac_status )
4028ac_cv_c_stack_direction=-1
4029fi
4030rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 4031fi
c906108c 4032fi
bec39cab
AC
4033echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4034echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4035
4036cat >>confdefs.h <<_ACEOF
4037#define STACK_DIRECTION $ac_cv_c_stack_direction
4038_ACEOF
c906108c 4039
c906108c 4040
c906108c
SS
4041fi
4042
4043
c906108c 4044
bec39cab
AC
4045for ac_header in stdlib.h unistd.h
4046do
4047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4048if eval "test \"\${$as_ac_Header+set}\" = set"; then
4049 echo "$as_me:$LINENO: checking for $ac_header" >&5
4050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4051if eval "test \"\${$as_ac_Header+set}\" = set"; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4053fi
4054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4056else
4057 # Is the header compilable?
4058echo "$as_me:$LINENO: checking $ac_header usability" >&5
4059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4060cat >conftest.$ac_ext <<_ACEOF
4061/* confdefs.h. */
4062_ACEOF
4063cat confdefs.h >>conftest.$ac_ext
4064cat >>conftest.$ac_ext <<_ACEOF
4065/* end confdefs.h. */
4066$ac_includes_default
4067#include <$ac_header>
4068_ACEOF
4069rm -f conftest.$ac_objext
4070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071 (eval $ac_compile) 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 ac_header_compiler=yes
4092else
4093 echo "$as_me: failed program was:" >&5
4094sed 's/^/| /' conftest.$ac_ext >&5
4095
4096ac_header_compiler=no
4097fi
4098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4099echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4100echo "${ECHO_T}$ac_header_compiler" >&6
4101
4102# Is the header present?
4103echo "$as_me:$LINENO: checking $ac_header presence" >&5
4104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4105cat >conftest.$ac_ext <<_ACEOF
4106/* confdefs.h. */
4107_ACEOF
4108cat confdefs.h >>conftest.$ac_ext
4109cat >>conftest.$ac_ext <<_ACEOF
4110/* end confdefs.h. */
4111#include <$ac_header>
4112_ACEOF
4113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4115 ac_status=$?
4116 grep -v '^ *+' conftest.er1 >conftest.err
4117 rm -f conftest.er1
4118 cat conftest.err >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } >/dev/null; then
4121 if test -s conftest.err; then
4122 ac_cpp_err=$ac_c_preproc_warn_flag
4123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4124 else
4125 ac_cpp_err=
4126 fi
c906108c 4127else
bec39cab 4128 ac_cpp_err=yes
c906108c 4129fi
bec39cab
AC
4130if test -z "$ac_cpp_err"; then
4131 ac_header_preproc=yes
c906108c 4132else
bec39cab
AC
4133 echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136 ac_header_preproc=no
c906108c 4137fi
bec39cab
AC
4138rm -f conftest.err conftest.$ac_ext
4139echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4140echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 4141
bec39cab
AC
4142# So? What about this header?
4143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4144 yes:no: )
4145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4149 ac_header_preproc=yes
4150 ;;
4151 no:yes:* )
4152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4155echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4159echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4164 (
4165 cat <<\_ASBOX
4166## ------------------------------------------ ##
4167## Report this to the AC_PACKAGE_NAME lists. ##
4168## ------------------------------------------ ##
4169_ASBOX
4170 ) |
4171 sed "s/^/$as_me: WARNING: /" >&2
4172 ;;
4173esac
4174echo "$as_me:$LINENO: checking for $ac_header" >&5
4175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4176if eval "test \"\${$as_ac_Header+set}\" = set"; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179 eval "$as_ac_Header=\$ac_header_preproc"
4180fi
4181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4183
4184fi
4185if test `eval echo '${'$as_ac_Header'}'` = yes; then
4186 cat >>confdefs.h <<_ACEOF
4187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4188_ACEOF
4189
4190fi
4191
4192done
4193
4194
4195for ac_func in getpagesize
4196do
4197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4198echo "$as_me:$LINENO: checking for $ac_func" >&5
4199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4200if eval "test \"\${$as_ac_var+set}\" = set"; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202else
4203 cat >conftest.$ac_ext <<_ACEOF
4204/* confdefs.h. */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
4208/* end confdefs.h. */
4209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4211#define $ac_func innocuous_$ac_func
4212
4213/* System header to define __stub macros and hopefully few prototypes,
4214 which can conflict with char $ac_func (); below.
4215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4216 <limits.h> exists even on freestanding compilers. */
4217
4218#ifdef __STDC__
4219# include <limits.h>
4220#else
4221# include <assert.h>
4222#endif
4223
4224#undef $ac_func
4225
4226/* Override any gcc2 internal prototype to avoid an error. */
4227#ifdef __cplusplus
4228extern "C"
4229{
4230#endif
4231/* We use char because int might match the return type of a gcc2
4232 builtin and then its argument prototype would still apply. */
4233char $ac_func ();
4234/* The GNU C library defines this for functions which it implements
4235 to always fail with ENOSYS. Some functions are actually named
4236 something starting with __ and the normal name is an alias. */
4237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4238choke me
4239#else
4240char (*f) () = $ac_func;
4241#endif
4242#ifdef __cplusplus
4243}
4244#endif
4245
4246int
4247main ()
4248{
4249return f != $ac_func;
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254rm -f conftest.$ac_objext conftest$ac_exeext
4255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256 (eval $ac_link) 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag"
4264 || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest$ac_exeext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 eval "$as_ac_var=yes"
4277else
4278 echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281eval "$as_ac_var=no"
4282fi
4283rm -f conftest.err conftest.$ac_objext \
4284 conftest$ac_exeext conftest.$ac_ext
4285fi
4286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4287echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4288if test `eval echo '${'$as_ac_var'}'` = yes; then
4289 cat >>confdefs.h <<_ACEOF
4290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4291_ACEOF
4292
4293fi
4294done
4295
4296echo "$as_me:$LINENO: checking for working mmap" >&5
4297echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4298if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301 if test "$cross_compiling" = yes; then
4302 ac_cv_func_mmap_fixed_mapped=no
4303else
4304 cat >conftest.$ac_ext <<_ACEOF
4305/* confdefs.h. */
4306_ACEOF
4307cat confdefs.h >>conftest.$ac_ext
4308cat >>conftest.$ac_ext <<_ACEOF
4309/* end confdefs.h. */
4310$ac_includes_default
4311/* malloc might have been renamed as rpl_malloc. */
4312#undef malloc
4313
4314/* Thanks to Mike Haertel and Jim Avera for this test.
4315 Here is a matrix of mmap possibilities:
4316 mmap private not fixed
4317 mmap private fixed at somewhere currently unmapped
4318 mmap private fixed at somewhere already mapped
4319 mmap shared not fixed
4320 mmap shared fixed at somewhere currently unmapped
4321 mmap shared fixed at somewhere already mapped
4322 For private mappings, we should verify that changes cannot be read()
4323 back from the file, nor mmap's back from the file at a different
4324 address. (There have been systems where private was not correctly
4325 implemented like the infamous i386 svr4.0, and systems where the
4326 VM page cache was not coherent with the file system buffer cache
4327 like early versions of FreeBSD and possibly contemporary NetBSD.)
4328 For shared mappings, we should conversely verify that changes get
4329 propagated back to all the places they're supposed to be.
4330
4331 Grep wants private fixed already mapped.
4332 The main things grep needs to know about mmap are:
4333 * does it exist and is it safe to write into the mmap'd area
4334 * how to use it (BSD variants) */
4335
4336#include <fcntl.h>
4337#include <sys/mman.h>
4338
4339#if !STDC_HEADERS && !HAVE_STDLIB_H
4340char *malloc ();
4341#endif
4342
4343/* This mess was copied from the GNU getpagesize.h. */
4344#if !HAVE_GETPAGESIZE
4345/* Assume that all systems that can run configure have sys/param.h. */
4346# if !HAVE_SYS_PARAM_H
4347# define HAVE_SYS_PARAM_H 1
4348# endif
4349
4350# ifdef _SC_PAGESIZE
4351# define getpagesize() sysconf(_SC_PAGESIZE)
4352# else /* no _SC_PAGESIZE */
4353# if HAVE_SYS_PARAM_H
4354# include <sys/param.h>
4355# ifdef EXEC_PAGESIZE
4356# define getpagesize() EXEC_PAGESIZE
4357# else /* no EXEC_PAGESIZE */
4358# ifdef NBPG
4359# define getpagesize() NBPG * CLSIZE
4360# ifndef CLSIZE
4361# define CLSIZE 1
4362# endif /* no CLSIZE */
4363# else /* no NBPG */
4364# ifdef NBPC
4365# define getpagesize() NBPC
4366# else /* no NBPC */
4367# ifdef PAGESIZE
4368# define getpagesize() PAGESIZE
4369# endif /* PAGESIZE */
4370# endif /* no NBPC */
4371# endif /* no NBPG */
4372# endif /* no EXEC_PAGESIZE */
4373# else /* no HAVE_SYS_PARAM_H */
4374# define getpagesize() 8192 /* punt totally */
4375# endif /* no HAVE_SYS_PARAM_H */
4376# endif /* no _SC_PAGESIZE */
4377
4378#endif /* no HAVE_GETPAGESIZE */
4379
4380int
4381main ()
4382{
4383 char *data, *data2, *data3;
4384 int i, pagesize;
4385 int fd;
4386
4387 pagesize = getpagesize ();
4388
4389 /* First, make a file with some known garbage in it. */
4390 data = (char *) malloc (pagesize);
4391 if (!data)
4392 exit (1);
4393 for (i = 0; i < pagesize; ++i)
4394 *(data + i) = rand ();
4395 umask (0);
4396 fd = creat ("conftest.mmap", 0600);
4397 if (fd < 0)
4398 exit (1);
4399 if (write (fd, data, pagesize) != pagesize)
4400 exit (1);
4401 close (fd);
4402
4403 /* Next, try to mmap the file at a fixed address which already has
4404 something else allocated at it. If we can, also make sure that
4405 we see the same garbage. */
4406 fd = open ("conftest.mmap", O_RDWR);
4407 if (fd < 0)
4408 exit (1);
4409 data2 = (char *) malloc (2 * pagesize);
4410 if (!data2)
4411 exit (1);
4412 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4413 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4414 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4415 exit (1);
4416 for (i = 0; i < pagesize; ++i)
4417 if (*(data + i) != *(data2 + i))
4418 exit (1);
4419
4420 /* Finally, make sure that changes to the mapped area do not
4421 percolate back to the file as seen by read(). (This is a bug on
4422 some variants of i386 svr4.0.) */
4423 for (i = 0; i < pagesize; ++i)
4424 *(data2 + i) = *(data2 + i) + 1;
4425 data3 = (char *) malloc (pagesize);
4426 if (!data3)
4427 exit (1);
4428 if (read (fd, data3, pagesize) != pagesize)
4429 exit (1);
4430 for (i = 0; i < pagesize; ++i)
4431 if (*(data + i) != *(data3 + i))
4432 exit (1);
4433 close (fd);
4434 exit (0);
4435}
4436_ACEOF
4437rm -f conftest$ac_exeext
4438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4439 (eval $ac_link) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 ac_cv_func_mmap_fixed_mapped=yes
4449else
4450 echo "$as_me: program exited with status $ac_status" >&5
4451echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454( exit $ac_status )
4455ac_cv_func_mmap_fixed_mapped=no
4456fi
4457rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4458fi
4459fi
4460echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4461echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4462if test $ac_cv_func_mmap_fixed_mapped = yes; then
4463
4464cat >>confdefs.h <<\_ACEOF
4465#define HAVE_MMAP 1
4466_ACEOF
4467
4468fi
4469rm -f conftest.mmap
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4482unistd.h values.h sys/param.h
4483do
4484as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4485if eval "test \"\${$as_ac_Header+set}\" = set"; then
4486 echo "$as_me:$LINENO: checking for $ac_header" >&5
4487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4488if eval "test \"\${$as_ac_Header+set}\" = set"; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490fi
4491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4493else
4494 # Is the header compilable?
4495echo "$as_me:$LINENO: checking $ac_header usability" >&5
4496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4497cat >conftest.$ac_ext <<_ACEOF
4498/* confdefs.h. */
4499_ACEOF
4500cat confdefs.h >>conftest.$ac_ext
4501cat >>conftest.$ac_ext <<_ACEOF
4502/* end confdefs.h. */
4503$ac_includes_default
4504#include <$ac_header>
4505_ACEOF
4506rm -f conftest.$ac_objext
4507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>conftest.er1
4509 ac_status=$?
4510 grep -v '^ *+' conftest.er1 >conftest.err
4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -z "$ac_c_werror_flag"
4516 || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_header_compiler=yes
4529else
4530 echo "$as_me: failed program was:" >&5
4531sed 's/^/| /' conftest.$ac_ext >&5
4532
4533ac_header_compiler=no
4534fi
4535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4537echo "${ECHO_T}$ac_header_compiler" >&6
4538
4539# Is the header present?
4540echo "$as_me:$LINENO: checking $ac_header presence" >&5
4541echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4542cat >conftest.$ac_ext <<_ACEOF
4543/* confdefs.h. */
4544_ACEOF
4545cat confdefs.h >>conftest.$ac_ext
4546cat >>conftest.$ac_ext <<_ACEOF
4547/* end confdefs.h. */
4548#include <$ac_header>
4549_ACEOF
4550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4552 ac_status=$?
4553 grep -v '^ *+' conftest.er1 >conftest.err
4554 rm -f conftest.er1
4555 cat conftest.err >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } >/dev/null; then
4558 if test -s conftest.err; then
4559 ac_cpp_err=$ac_c_preproc_warn_flag
4560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4561 else
4562 ac_cpp_err=
4563 fi
4564else
4565 ac_cpp_err=yes
4566fi
4567if test -z "$ac_cpp_err"; then
4568 ac_header_preproc=yes
4569else
4570 echo "$as_me: failed program was:" >&5
4571sed 's/^/| /' conftest.$ac_ext >&5
4572
4573 ac_header_preproc=no
4574fi
4575rm -f conftest.err conftest.$ac_ext
4576echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4577echo "${ECHO_T}$ac_header_preproc" >&6
4578
4579# So? What about this header?
4580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4581 yes:no: )
4582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4585echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4586 ac_header_preproc=yes
4587 ;;
4588 no:yes:* )
4589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4590echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4592echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4594echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4596echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4600echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4601 (
4602 cat <<\_ASBOX
4603## ------------------------------------------ ##
4604## Report this to the AC_PACKAGE_NAME lists. ##
4605## ------------------------------------------ ##
4606_ASBOX
4607 ) |
4608 sed "s/^/$as_me: WARNING: /" >&2
4609 ;;
4610esac
4611echo "$as_me:$LINENO: checking for $ac_header" >&5
4612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4613if eval "test \"\${$as_ac_Header+set}\" = set"; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616 eval "$as_ac_Header=\$ac_header_preproc"
4617fi
4618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4620
4621fi
4622if test `eval echo '${'$as_ac_Header'}'` = yes; then
4623 cat >>confdefs.h <<_ACEOF
4624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4625_ACEOF
4626
4627fi
4628
4629done
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4642__argz_count __argz_stringify __argz_next
4643do
4644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4645echo "$as_me:$LINENO: checking for $ac_func" >&5
4646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4647if eval "test \"\${$as_ac_var+set}\" = set"; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649else
4650 cat >conftest.$ac_ext <<_ACEOF
4651/* confdefs.h. */
4652_ACEOF
4653cat confdefs.h >>conftest.$ac_ext
4654cat >>conftest.$ac_ext <<_ACEOF
4655/* end confdefs.h. */
4656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4658#define $ac_func innocuous_$ac_func
4659
4660/* System header to define __stub macros and hopefully few prototypes,
4661 which can conflict with char $ac_func (); below.
4662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4663 <limits.h> exists even on freestanding compilers. */
4664
4665#ifdef __STDC__
4666# include <limits.h>
4667#else
4668# include <assert.h>
4669#endif
4670
4671#undef $ac_func
4672
4673/* Override any gcc2 internal prototype to avoid an error. */
4674#ifdef __cplusplus
4675extern "C"
4676{
4677#endif
4678/* We use char because int might match the return type of a gcc2
4679 builtin and then its argument prototype would still apply. */
4680char $ac_func ();
4681/* The GNU C library defines this for functions which it implements
4682 to always fail with ENOSYS. Some functions are actually named
4683 something starting with __ and the normal name is an alias. */
4684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4685choke me
4686#else
4687char (*f) () = $ac_func;
4688#endif
4689#ifdef __cplusplus
4690}
4691#endif
4692
4693int
4694main ()
4695{
4696return f != $ac_func;
4697 ;
4698 return 0;
4699}
4700_ACEOF
4701rm -f conftest.$ac_objext conftest$ac_exeext
4702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703 (eval $ac_link) 2>conftest.er1
4704 ac_status=$?
4705 grep -v '^ *+' conftest.er1 >conftest.err
4706 rm -f conftest.er1
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 eval "$as_ac_var=yes"
4724else
4725 echo "$as_me: failed program was:" >&5
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
4728eval "$as_ac_var=no"
4729fi
4730rm -f conftest.err conftest.$ac_objext \
4731 conftest$ac_exeext conftest.$ac_ext
4732fi
4733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4735if test `eval echo '${'$as_ac_var'}'` = yes; then
4736 cat >>confdefs.h <<_ACEOF
4737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4738_ACEOF
4739
4740fi
4741done
4742
4743
4744 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4745
4746for ac_func in stpcpy
4747do
4748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4749echo "$as_me:$LINENO: checking for $ac_func" >&5
4750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4751if eval "test \"\${$as_ac_var+set}\" = set"; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754 cat >conftest.$ac_ext <<_ACEOF
4755/* confdefs.h. */
4756_ACEOF
4757cat confdefs.h >>conftest.$ac_ext
4758cat >>conftest.$ac_ext <<_ACEOF
4759/* end confdefs.h. */
4760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4762#define $ac_func innocuous_$ac_func
4763
4764/* System header to define __stub macros and hopefully few prototypes,
4765 which can conflict with char $ac_func (); below.
4766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4767 <limits.h> exists even on freestanding compilers. */
4768
4769#ifdef __STDC__
4770# include <limits.h>
4771#else
4772# include <assert.h>
4773#endif
4774
4775#undef $ac_func
4776
4777/* Override any gcc2 internal prototype to avoid an error. */
4778#ifdef __cplusplus
4779extern "C"
4780{
4781#endif
4782/* We use char because int might match the return type of a gcc2
4783 builtin and then its argument prototype would still apply. */
4784char $ac_func ();
4785/* The GNU C library defines this for functions which it implements
4786 to always fail with ENOSYS. Some functions are actually named
4787 something starting with __ and the normal name is an alias. */
4788#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4789choke me
4790#else
4791char (*f) () = $ac_func;
4792#endif
4793#ifdef __cplusplus
4794}
4795#endif
4796
4797int
4798main ()
4799{
4800return f != $ac_func;
4801 ;
4802 return 0;
4803}
4804_ACEOF
4805rm -f conftest.$ac_objext conftest$ac_exeext
4806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4807 (eval $ac_link) 2>conftest.er1
4808 ac_status=$?
4809 grep -v '^ *+' conftest.er1 >conftest.err
4810 rm -f conftest.er1
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try='test -z "$ac_c_werror_flag"
4815 || test ! -s conftest.err'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; } &&
4821 { ac_try='test -s conftest$ac_exeext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 eval "$as_ac_var=yes"
4828else
4829 echo "$as_me: failed program was:" >&5
4830sed 's/^/| /' conftest.$ac_ext >&5
4831
4832eval "$as_ac_var=no"
4833fi
4834rm -f conftest.err conftest.$ac_objext \
4835 conftest$ac_exeext conftest.$ac_ext
4836fi
4837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4838echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4839if test `eval echo '${'$as_ac_var'}'` = yes; then
4840 cat >>confdefs.h <<_ACEOF
4841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4842_ACEOF
4843
4844fi
4845done
4846
4847 fi
4848 if test "${ac_cv_func_stpcpy}" = "yes"; then
4849
4850cat >>confdefs.h <<\_ACEOF
4851#define HAVE_STPCPY 1
4852_ACEOF
4853
4854 fi
4855
4856 if test $ac_cv_header_locale_h = yes; then
4857 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4858echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4859if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861else
4862 cat >conftest.$ac_ext <<_ACEOF
4863/* confdefs.h. */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h. */
4868#include <locale.h>
4869int
4870main ()
4871{
4872return LC_MESSAGES
4873 ;
4874 return 0;
4875}
4876_ACEOF
4877rm -f conftest.$ac_objext conftest$ac_exeext
4878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4879 (eval $ac_link) 2>conftest.er1
4880 ac_status=$?
4881 grep -v '^ *+' conftest.er1 >conftest.err
4882 rm -f conftest.er1
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try='test -z "$ac_c_werror_flag"
4887 || test ! -s conftest.err'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; } &&
4893 { ac_try='test -s conftest$ac_exeext'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 (eval $ac_try) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4899 am_cv_val_LC_MESSAGES=yes
4900else
4901 echo "$as_me: failed program was:" >&5
4902sed 's/^/| /' conftest.$ac_ext >&5
4903
4904am_cv_val_LC_MESSAGES=no
4905fi
4906rm -f conftest.err conftest.$ac_objext \
4907 conftest$ac_exeext conftest.$ac_ext
4908fi
4909echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4910echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4911 if test $am_cv_val_LC_MESSAGES = yes; then
4912
4913cat >>confdefs.h <<\_ACEOF
4914#define HAVE_LC_MESSAGES 1
4915_ACEOF
4916
4917 fi
4918 fi
4919 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4920echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4921 # Check whether --enable-nls or --disable-nls was given.
4922if test "${enable_nls+set}" = set; then
4923 enableval="$enable_nls"
4924 USE_NLS=$enableval
4925else
4926 USE_NLS=yes
4927fi;
4928 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4929echo "${ECHO_T}$USE_NLS" >&6
4930
4931
4932 USE_INCLUDED_LIBINTL=no
4933
4934 if test "$USE_NLS" = "yes"; then
4935
4936cat >>confdefs.h <<\_ACEOF
4937#define ENABLE_NLS 1
4938_ACEOF
4939
4940 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4941echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4942
4943# Check whether --with-included-gettext or --without-included-gettext was given.
4944if test "${with_included_gettext+set}" = set; then
4945 withval="$with_included_gettext"
4946 nls_cv_force_use_gnu_gettext=$withval
4947else
4948 nls_cv_force_use_gnu_gettext=no
4949fi;
4950 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4951echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4952
4953 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4954 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4955 nls_cv_header_intl=
4956 nls_cv_header_libgt=
4957 CATOBJEXT=NONE
4958
4959 if test "${ac_cv_header_libintl_h+set}" = set; then
4960 echo "$as_me:$LINENO: checking for libintl.h" >&5
4961echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4962if test "${ac_cv_header_libintl_h+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964fi
4965echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4966echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4967else
4968 # Is the header compilable?
4969echo "$as_me:$LINENO: checking libintl.h usability" >&5
4970echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4971cat >conftest.$ac_ext <<_ACEOF
4972/* confdefs.h. */
4973_ACEOF
4974cat confdefs.h >>conftest.$ac_ext
4975cat >>conftest.$ac_ext <<_ACEOF
4976/* end confdefs.h. */
4977$ac_includes_default
4978#include <libintl.h>
4979_ACEOF
4980rm -f conftest.$ac_objext
4981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>conftest.er1
4983 ac_status=$?
4984 grep -v '^ *+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -z "$ac_c_werror_flag"
4990 || test ! -s conftest.err'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 (eval $ac_try) 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; } &&
4996 { ac_try='test -s conftest.$ac_objext'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 (eval $ac_try) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5002 ac_header_compiler=yes
5003else
5004 echo "$as_me: failed program was:" >&5
5005sed 's/^/| /' conftest.$ac_ext >&5
5006
5007ac_header_compiler=no
5008fi
5009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5010echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5011echo "${ECHO_T}$ac_header_compiler" >&6
5012
5013# Is the header present?
5014echo "$as_me:$LINENO: checking libintl.h presence" >&5
5015echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5016cat >conftest.$ac_ext <<_ACEOF
5017/* confdefs.h. */
5018_ACEOF
5019cat confdefs.h >>conftest.$ac_ext
5020cat >>conftest.$ac_ext <<_ACEOF
5021/* end confdefs.h. */
5022#include <libintl.h>
5023_ACEOF
5024if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } >/dev/null; then
5032 if test -s conftest.err; then
5033 ac_cpp_err=$ac_c_preproc_warn_flag
5034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5035 else
5036 ac_cpp_err=
5037 fi
5038else
5039 ac_cpp_err=yes
5040fi
5041if test -z "$ac_cpp_err"; then
5042 ac_header_preproc=yes
5043else
5044 echo "$as_me: failed program was:" >&5
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
5047 ac_header_preproc=no
5048fi
5049rm -f conftest.err conftest.$ac_ext
5050echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5051echo "${ECHO_T}$ac_header_preproc" >&6
5052
5053# So? What about this header?
5054case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5055 yes:no: )
5056 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5057echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5058 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5059echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5060 ac_header_preproc=yes
5061 ;;
5062 no:yes:* )
5063 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5064echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5065 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5066echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5068echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5070echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5072echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5074echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5075 (
5076 cat <<\_ASBOX
5077## ------------------------------------------ ##
5078## Report this to the AC_PACKAGE_NAME lists. ##
5079## ------------------------------------------ ##
5080_ASBOX
5081 ) |
5082 sed "s/^/$as_me: WARNING: /" >&2
5083 ;;
5084esac
5085echo "$as_me:$LINENO: checking for libintl.h" >&5
5086echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5087if test "${ac_cv_header_libintl_h+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090 ac_cv_header_libintl_h=$ac_header_preproc
5091fi
5092echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5093echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5094
5095fi
5096if test $ac_cv_header_libintl_h = yes; then
5097 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5098echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5099if test "${gt_cv_func_gettext_libc+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101else
5102 cat >conftest.$ac_ext <<_ACEOF
5103/* confdefs.h. */
5104_ACEOF
5105cat confdefs.h >>conftest.$ac_ext
5106cat >>conftest.$ac_ext <<_ACEOF
5107/* end confdefs.h. */
5108#include <libintl.h>
5109int
5110main ()
5111{
5112return (int) gettext ("")
5113 ;
5114 return 0;
5115}
5116_ACEOF
5117rm -f conftest.$ac_objext conftest$ac_exeext
5118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119 (eval $ac_link) 2>conftest.er1
5120 ac_status=$?
5121 grep -v '^ *+' conftest.er1 >conftest.err
5122 rm -f conftest.er1
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } &&
5126 { ac_try='test -z "$ac_c_werror_flag"
5127 || test ! -s conftest.err'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; } &&
5133 { ac_try='test -s conftest$ac_exeext'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 (eval $ac_try) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; }; then
5139 gt_cv_func_gettext_libc=yes
5140else
5141 echo "$as_me: failed program was:" >&5
5142sed 's/^/| /' conftest.$ac_ext >&5
5143
5144gt_cv_func_gettext_libc=no
5145fi
5146rm -f conftest.err conftest.$ac_objext \
5147 conftest$ac_exeext conftest.$ac_ext
5148fi
5149echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5150echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5151
5152 if test "$gt_cv_func_gettext_libc" != "yes"; then
5153 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5154echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5155if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157else
5158 ac_check_lib_save_LIBS=$LIBS
5159LIBS="-lintl $LIBS"
5160cat >conftest.$ac_ext <<_ACEOF
5161/* confdefs.h. */
5162_ACEOF
5163cat confdefs.h >>conftest.$ac_ext
5164cat >>conftest.$ac_ext <<_ACEOF
5165/* end confdefs.h. */
5166
5167/* Override any gcc2 internal prototype to avoid an error. */
5168#ifdef __cplusplus
5169extern "C"
5170#endif
5171/* We use char because int might match the return type of a gcc2
5172 builtin and then its argument prototype would still apply. */
5173char bindtextdomain ();
5174int
5175main ()
5176{
5177bindtextdomain ();
5178 ;
5179 return 0;
5180}
5181_ACEOF
5182rm -f conftest.$ac_objext conftest$ac_exeext
5183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184 (eval $ac_link) 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -z "$ac_c_werror_flag"
5192 || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 (eval $ac_try) 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest$ac_exeext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 (eval $ac_try) 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_cv_lib_intl_bindtextdomain=yes
5205else
5206 echo "$as_me: failed program was:" >&5
5207sed 's/^/| /' conftest.$ac_ext >&5
5208
5209ac_cv_lib_intl_bindtextdomain=no
5210fi
5211rm -f conftest.err conftest.$ac_objext \
5212 conftest$ac_exeext conftest.$ac_ext
5213LIBS=$ac_check_lib_save_LIBS
5214fi
5215echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5216echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5217if test $ac_cv_lib_intl_bindtextdomain = yes; then
5218 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5219echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5220if test "${gt_cv_func_gettext_libintl+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222else
5223 cat >conftest.$ac_ext <<_ACEOF
5224/* confdefs.h. */
5225_ACEOF
5226cat confdefs.h >>conftest.$ac_ext
5227cat >>conftest.$ac_ext <<_ACEOF
5228/* end confdefs.h. */
5229
5230int
5231main ()
5232{
5233return (int) gettext ("")
5234 ;
5235 return 0;
5236}
5237_ACEOF
5238rm -f conftest.$ac_objext conftest$ac_exeext
5239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5240 (eval $ac_link) 2>conftest.er1
5241 ac_status=$?
5242 grep -v '^ *+' conftest.er1 >conftest.err
5243 rm -f conftest.er1
5244 cat conftest.err >&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } &&
5247 { ac_try='test -z "$ac_c_werror_flag"
5248 || test ! -s conftest.err'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; } &&
5254 { ac_try='test -s conftest$ac_exeext'
5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 (eval $ac_try) 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5260 gt_cv_func_gettext_libintl=yes
5261else
5262 echo "$as_me: failed program was:" >&5
5263sed 's/^/| /' conftest.$ac_ext >&5
5264
5265gt_cv_func_gettext_libintl=no
5266fi
5267rm -f conftest.err conftest.$ac_objext \
5268 conftest$ac_exeext conftest.$ac_ext
5269fi
5270echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5271echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5272fi
5273
5274 fi
5275
5276 if test "$gt_cv_func_gettext_libc" = "yes" \
5277 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5278
5279cat >>confdefs.h <<\_ACEOF
5280#define HAVE_GETTEXT 1
5281_ACEOF
5282
5283 # Extract the first word of "msgfmt", so it can be a program name with args.
5284set dummy msgfmt; ac_word=$2
5285echo "$as_me:$LINENO: checking for $ac_word" >&5
5286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287if test "${ac_cv_path_MSGFMT+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289else
5290 case "$MSGFMT" in
5291 /*)
5292 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5293 ;;
5294 *)
5295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5296 for ac_dir in $PATH; do
5297 test -z "$ac_dir" && ac_dir=.
5298 if test -f $ac_dir/$ac_word; then
5299 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5300 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5301 break
5302 fi
5303 fi
5304 done
5305 IFS="$ac_save_ifs"
5306 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5307 ;;
5308esac
5309fi
5310MSGFMT="$ac_cv_path_MSGFMT"
5311if test -n "$MSGFMT"; then
5312 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5313echo "${ECHO_T}$MSGFMT" >&6
5314else
5315 echo "$as_me:$LINENO: result: no" >&5
5316echo "${ECHO_T}no" >&6
5317fi
5318 if test "$MSGFMT" != "no"; then
5319
5320for ac_func in dcgettext
5321do
5322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5323echo "$as_me:$LINENO: checking for $ac_func" >&5
5324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5325if eval "test \"\${$as_ac_var+set}\" = set"; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327else
5328 cat >conftest.$ac_ext <<_ACEOF
5329/* confdefs.h. */
5330_ACEOF
5331cat confdefs.h >>conftest.$ac_ext
5332cat >>conftest.$ac_ext <<_ACEOF
5333/* end confdefs.h. */
5334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5336#define $ac_func innocuous_$ac_func
5337
5338/* System header to define __stub macros and hopefully few prototypes,
5339 which can conflict with char $ac_func (); below.
5340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5341 <limits.h> exists even on freestanding compilers. */
5342
5343#ifdef __STDC__
5344# include <limits.h>
5345#else
5346# include <assert.h>
5347#endif
5348
5349#undef $ac_func
5350
5351/* Override any gcc2 internal prototype to avoid an error. */
5352#ifdef __cplusplus
5353extern "C"
5354{
5355#endif
5356/* We use char because int might match the return type of a gcc2
5357 builtin and then its argument prototype would still apply. */
5358char $ac_func ();
5359/* The GNU C library defines this for functions which it implements
5360 to always fail with ENOSYS. Some functions are actually named
5361 something starting with __ and the normal name is an alias. */
5362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5363choke me
5364#else
5365char (*f) () = $ac_func;
5366#endif
5367#ifdef __cplusplus
5368}
5369#endif
5370
5371int
5372main ()
5373{
5374return f != $ac_func;
5375 ;
5376 return 0;
5377}
5378_ACEOF
5379rm -f conftest.$ac_objext conftest$ac_exeext
5380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5381 (eval $ac_link) 2>conftest.er1
5382 ac_status=$?
5383 grep -v '^ *+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } &&
5388 { ac_try='test -z "$ac_c_werror_flag"
5389 || test ! -s conftest.err'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 (eval $ac_try) 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; } &&
5395 { ac_try='test -s conftest$ac_exeext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 (eval $ac_try) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 eval "$as_ac_var=yes"
5402else
5403 echo "$as_me: failed program was:" >&5
5404sed 's/^/| /' conftest.$ac_ext >&5
5405
5406eval "$as_ac_var=no"
5407fi
5408rm -f conftest.err conftest.$ac_objext \
5409 conftest$ac_exeext conftest.$ac_ext
5410fi
5411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5412echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5413if test `eval echo '${'$as_ac_var'}'` = yes; then
5414 cat >>confdefs.h <<_ACEOF
5415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5416_ACEOF
5417
5418fi
5419done
5420
5421 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5422set dummy gmsgfmt; ac_word=$2
5423echo "$as_me:$LINENO: checking for $ac_word" >&5
5424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425if test "${ac_cv_path_GMSGFMT+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428 case $GMSGFMT in
5429 [\\/]* | ?:[\\/]*)
5430 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5431 ;;
5432 *)
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH
5435do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5443 fi
5444done
5445done
5446
5447 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5448 ;;
5449esac
5450fi
5451GMSGFMT=$ac_cv_path_GMSGFMT
5452
5453if test -n "$GMSGFMT"; then
5454 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5455echo "${ECHO_T}$GMSGFMT" >&6
5456else
5457 echo "$as_me:$LINENO: result: no" >&5
5458echo "${ECHO_T}no" >&6
5459fi
5460
5461 # Extract the first word of "xgettext", so it can be a program name with args.
5462set dummy xgettext; ac_word=$2
5463echo "$as_me:$LINENO: checking for $ac_word" >&5
5464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465if test "${ac_cv_path_XGETTEXT+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468 case "$XGETTEXT" in
5469 /*)
5470 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5471 ;;
5472 *)
5473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5474 for ac_dir in $PATH; do
5475 test -z "$ac_dir" && ac_dir=.
5476 if test -f $ac_dir/$ac_word; then
5477 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5478 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5479 break
5480 fi
5481 fi
5482 done
5483 IFS="$ac_save_ifs"
5484 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5485 ;;
5486esac
5487fi
5488XGETTEXT="$ac_cv_path_XGETTEXT"
5489if test -n "$XGETTEXT"; then
5490 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5491echo "${ECHO_T}$XGETTEXT" >&6
5492else
5493 echo "$as_me:$LINENO: result: no" >&5
5494echo "${ECHO_T}no" >&6
5495fi
5496
5497 cat >conftest.$ac_ext <<_ACEOF
5498/* confdefs.h. */
5499_ACEOF
5500cat confdefs.h >>conftest.$ac_ext
5501cat >>conftest.$ac_ext <<_ACEOF
5502/* end confdefs.h. */
5503
5504int
5505main ()
5506{
5507extern int _nl_msg_cat_cntr;
5508 return _nl_msg_cat_cntr
5509 ;
5510 return 0;
5511}
5512_ACEOF
5513rm -f conftest.$ac_objext conftest$ac_exeext
5514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5515 (eval $ac_link) 2>conftest.er1
5516 ac_status=$?
5517 grep -v '^ *+' conftest.er1 >conftest.err
5518 rm -f conftest.er1
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -z "$ac_c_werror_flag"
5523 || test ! -s conftest.err'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 (eval $ac_try) 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; } &&
5529 { ac_try='test -s conftest$ac_exeext'
5530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531 (eval $ac_try) 2>&5
5532 ac_status=$?
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; }; then
5535 CATOBJEXT=.gmo
5536 DATADIRNAME=share
5537else
5538 echo "$as_me: failed program was:" >&5
5539sed 's/^/| /' conftest.$ac_ext >&5
5540
5541CATOBJEXT=.mo
5542 DATADIRNAME=lib
5543fi
5544rm -f conftest.err conftest.$ac_objext \
5545 conftest$ac_exeext conftest.$ac_ext
5546 INSTOBJEXT=.mo
5547 fi
5548 fi
5549
5550fi
5551
5552
5553
5554
5555 if test "$CATOBJEXT" = "NONE"; then
5556 nls_cv_use_gnu_gettext=yes
5557 fi
5558 fi
5559
5560 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5561 INTLOBJS="\$(GETTOBJS)"
5562 # Extract the first word of "msgfmt", so it can be a program name with args.
5563set dummy msgfmt; ac_word=$2
5564echo "$as_me:$LINENO: checking for $ac_word" >&5
5565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5566if test "${ac_cv_path_MSGFMT+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568else
5569 case "$MSGFMT" in
5570 /*)
5571 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5572 ;;
5573 *)
5574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5575 for ac_dir in $PATH; do
5576 test -z "$ac_dir" && ac_dir=.
5577 if test -f $ac_dir/$ac_word; then
5578 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5579 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5580 break
5581 fi
5582 fi
5583 done
5584 IFS="$ac_save_ifs"
5585 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5586 ;;
5587esac
5588fi
5589MSGFMT="$ac_cv_path_MSGFMT"
5590if test -n "$MSGFMT"; then
5591 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5592echo "${ECHO_T}$MSGFMT" >&6
5593else
5594 echo "$as_me:$LINENO: result: no" >&5
5595echo "${ECHO_T}no" >&6
5596fi
5597
5598 # Extract the first word of "gmsgfmt", so it can be a program name with args.
c906108c 5599set dummy gmsgfmt; ac_word=$2
bec39cab
AC
5600echo "$as_me:$LINENO: checking for $ac_word" >&5
5601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5602if test "${ac_cv_path_GMSGFMT+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605 case $GMSGFMT in
5606 [\\/]* | ?:[\\/]*)
5607 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5608 ;;
5609 *)
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5620 fi
5621done
5622done
5623
5624 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5625 ;;
5626esac
5627fi
5628GMSGFMT=$ac_cv_path_GMSGFMT
5629
5630if test -n "$GMSGFMT"; then
5631 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5632echo "${ECHO_T}$GMSGFMT" >&6
5633else
5634 echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636fi
5637
5638 # Extract the first word of "xgettext", so it can be a program name with args.
5639set dummy xgettext; ac_word=$2
5640echo "$as_me:$LINENO: checking for $ac_word" >&5
5641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5642if test "${ac_cv_path_XGETTEXT+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644else
5645 case "$XGETTEXT" in
5646 /*)
5647 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5648 ;;
5649 *)
5650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5651 for ac_dir in $PATH; do
5652 test -z "$ac_dir" && ac_dir=.
5653 if test -f $ac_dir/$ac_word; then
5654 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5655 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5656 break
5657 fi
5658 fi
5659 done
5660 IFS="$ac_save_ifs"
5661 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5662 ;;
5663esac
5664fi
5665XGETTEXT="$ac_cv_path_XGETTEXT"
5666if test -n "$XGETTEXT"; then
5667 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5668echo "${ECHO_T}$XGETTEXT" >&6
5669else
5670 echo "$as_me:$LINENO: result: no" >&5
5671echo "${ECHO_T}no" >&6
5672fi
5673
5674
5675 USE_INCLUDED_LIBINTL=yes
5676 CATOBJEXT=.gmo
5677 INSTOBJEXT=.mo
5678 DATADIRNAME=share
5679 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5680 INTLLIBS=$INTLDEPS
5681 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5682 nls_cv_header_intl=libintl.h
5683 nls_cv_header_libgt=libgettext.h
5684 fi
5685
5686 if test "$XGETTEXT" != ":"; then
5687 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5688 : ;
5689 else
5690 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5691echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5692 XGETTEXT=":"
5693 fi
5694 fi
5695
5696 # We need to process the po/ directory.
5697 POSUB=po
5698 else
5699 DATADIRNAME=share
5700 nls_cv_header_intl=libintl.h
5701 nls_cv_header_libgt=libgettext.h
5702 fi
5703
5704 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5705 # because some of the sources are only built for this goal.
5706 if test "$PACKAGE" = gettext; then
5707 USE_NLS=yes
5708 USE_INCLUDED_LIBINTL=yes
5709 fi
5710
5711 for lang in $ALL_LINGUAS; do
5712 GMOFILES="$GMOFILES $lang.gmo"
5713 POFILES="$POFILES $lang.po"
5714 done
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729 if test "x$CATOBJEXT" != "x"; then
5730 if test "x$ALL_LINGUAS" = "x"; then
5731 LINGUAS=
5732 else
5733 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5734echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5735 NEW_LINGUAS=
5736 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5737 case "$ALL_LINGUAS" in
5738 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5739 esac
5740 done
5741 LINGUAS=$NEW_LINGUAS
5742 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5743echo "${ECHO_T}$LINGUAS" >&6
5744 fi
5745
5746 if test -n "$LINGUAS"; then
5747 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5748 fi
5749 fi
5750
5751 if test $ac_cv_header_locale_h = yes; then
5752 INCLUDE_LOCALE_H="#include <locale.h>"
5753 else
5754 INCLUDE_LOCALE_H="\
5755/* The system does not provide the header <locale.h>. Take care yourself. */"
5756 fi
5757
5758
5759 if test -f $srcdir/po2tbl.sed.in; then
5760 if test "$CATOBJEXT" = ".cat"; then
5761 if test "${ac_cv_header_linux_version_h+set}" = set; then
5762 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5763echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5764if test "${ac_cv_header_linux_version_h+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766fi
5767echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5768echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5769else
5770 # Is the header compilable?
5771echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5772echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5773cat >conftest.$ac_ext <<_ACEOF
5774/* confdefs.h. */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h. */
5779$ac_includes_default
5780#include <linux/version.h>
5781_ACEOF
5782rm -f conftest.$ac_objext
5783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag"
5792 || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_header_compiler=yes
5805else
5806 echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809ac_header_compiler=no
5810fi
5811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5812echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5813echo "${ECHO_T}$ac_header_compiler" >&6
5814
5815# Is the header present?
5816echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5817echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5818cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h. */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h. */
5824#include <linux/version.h>
5825_ACEOF
5826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } >/dev/null; then
5834 if test -s conftest.err; then
5835 ac_cpp_err=$ac_c_preproc_warn_flag
5836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5837 else
5838 ac_cpp_err=
5839 fi
5840else
5841 ac_cpp_err=yes
5842fi
5843if test -z "$ac_cpp_err"; then
5844 ac_header_preproc=yes
5845else
5846 echo "$as_me: failed program was:" >&5
5847sed 's/^/| /' conftest.$ac_ext >&5
5848
5849 ac_header_preproc=no
5850fi
5851rm -f conftest.err conftest.$ac_ext
5852echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5853echo "${ECHO_T}$ac_header_preproc" >&6
5854
5855# So? What about this header?
5856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5857 yes:no: )
5858 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5859echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5861echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5862 ac_header_preproc=yes
5863 ;;
5864 no:yes:* )
5865 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5866echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5867 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5868echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5869 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5870echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5872echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5874echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5876echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5877 (
5878 cat <<\_ASBOX
5879## ------------------------------------------ ##
5880## Report this to the AC_PACKAGE_NAME lists. ##
5881## ------------------------------------------ ##
5882_ASBOX
5883 ) |
5884 sed "s/^/$as_me: WARNING: /" >&2
5885 ;;
5886esac
5887echo "$as_me:$LINENO: checking for linux/version.h" >&5
5888echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5889if test "${ac_cv_header_linux_version_h+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892 ac_cv_header_linux_version_h=$ac_header_preproc
5893fi
5894echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5895echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5896
5897fi
5898if test $ac_cv_header_linux_version_h = yes; then
5899 msgformat=linux
5900else
5901 msgformat=xopen
5902fi
5903
5904
5905
5906 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5907 fi
5908 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5909 $srcdir/po2tbl.sed.in > po2tbl.sed
5910 fi
5911
5912 if test "$PACKAGE" = "gettext"; then
5913 GT_NO="#NO#"
5914 GT_YES=
5915 else
5916 GT_NO=
5917 GT_YES="#YES#"
5918 fi
5919
5920
5921
5922 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5923
5924
5925 l=
5926
5927
5928 if test -f $srcdir/po/POTFILES.in; then
5929 test -d po || mkdir po
5930 if test "x$srcdir" != "x."; then
5931 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5932 posrcprefix="$srcdir/"
5933 else
5934 posrcprefix="../$srcdir/"
5935 fi
5936 else
5937 posrcprefix="../"
5938 fi
5939 rm -f po/POTFILES
5940 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5941 < $srcdir/po/POTFILES.in > po/POTFILES
5942 fi
5943
5944
5945localedir='${datadir}/locale'
5946
5947
5948if test "x$POSUB" != x; then
5949
5950 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5951echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5952 # Look for .po and .gmo files in the source directory.
5953 CATALOGS=
5954 XLINGUAS=
5955 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5956 # If there aren't any .gmo files the shell will give us the
5957 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5958 # weeded out.
5959 case "$cat" in *\**)
5960 continue;;
5961 esac
5962 # The quadruple backslash is collapsed to a double backslash
5963 # by the backticks, then collapsed again by the double quotes,
5964 # leaving us with one backslash in the sed expression (right
5965 # before the dot that mustn't act as a wildcard).
5966 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5967 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5968 # The user is allowed to set LINGUAS to a list of languages to
5969 # install catalogs for. If it's empty that means "all of them."
5970 if test "x$LINGUAS" = x; then
5971 CATALOGS="$CATALOGS $cat"
5972 XLINGUAS="$XLINGUAS $lang"
5973 else
5974 case "$LINGUAS" in *$lang*)
5975 CATALOGS="$CATALOGS $cat"
5976 XLINGUAS="$XLINGUAS $lang"
5977 ;;
5978 esac
5979 fi
5980 done
5981 LINGUAS="$XLINGUAS"
5982 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5983echo "${ECHO_T}$LINGUAS" >&6
5984
5985 CONFIG_ALL="$CONFIG_ALL all-po"
5986 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5987 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5988 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5989fi
5990
5991PACKAGE=gdb
5992
5993cat >>confdefs.h <<_ACEOF
5994#define PACKAGE "$PACKAGE"
5995_ACEOF
5996
5997
5998
5999debugdir=${libdir}/debug
6000
6001
6002# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6003if test "${with_separate_debug_dir+set}" = set; then
6004 withval="$with_separate_debug_dir"
6005 debugdir="${withval}"
6006fi;
6007
6008
6009 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6010 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6011 ac_define_dir=`eval echo $debugdir`
6012 ac_define_dir=`eval echo $ac_define_dir`
6013
6014cat >>confdefs.h <<_ACEOF
6015#define DEBUGDIR "$ac_define_dir"
6016_ACEOF
6017
6018
6019#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6020
6021
6022
6023subdirs="$subdirs doc testsuite"
6024
6025
6026. $srcdir/configure.host
6027
6028. $srcdir/configure.tgt
6029
6030# Fetch the default architecture and default target vector from BFD.
6031targ=$target; . $srcdir/../bfd/config.bfd
6032
6033# We only want the first architecture, so strip off the others if
6034# there is more than one.
6035targ_archs=`echo $targ_archs | sed 's/ .*//'`
6036
6037if test "x$targ_archs" != x; then
6038
6039cat >>confdefs.h <<_ACEOF
6040#define DEFAULT_BFD_ARCH $targ_archs
6041_ACEOF
6042
6043fi
6044if test "x$targ_defvec" != x; then
6045
6046cat >>confdefs.h <<_ACEOF
6047#define DEFAULT_BFD_VEC $targ_defvec
6048_ACEOF
6049
6050fi
6051
6052test "$program_prefix" != NONE &&
6053 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6054# Use a double $ so make ignores it.
6055test "$program_suffix" != NONE &&
6056 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6057# Double any \ or $. echo might interpret backslashes.
6058# By default was `s,x,x', remove it if useless.
6059cat <<\_ACEOF >conftest.sed
6060s/[\\$]/&&/g;s/;s,x,x,$//
6061_ACEOF
6062program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6063rm conftest.sed
6064
6065
6066# The CLI cannot be disabled yet, but may be in the future.
6067
6068# Enable CLI.
6069# Check whether --enable-gdbcli or --disable-gdbcli was given.
6070if test "${enable_gdbcli+set}" = set; then
6071 enableval="$enable_gdbcli"
6072 case $enableval in
6073 yes)
6074 ;;
6075 no)
6076 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6077echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6078 { (exit 1); exit 1; }; } ;;
6079 *)
6080 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6081echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6082 { (exit 1); exit 1; }; } ;;
6083 esac
6084else
6085 enable_gdbcli=yes
6086fi;
6087if test x"$enable_gdbcli" = xyes; then
6088 if test -d $srcdir/cli; then
6089 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6090 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6091 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6092 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6093 fi
6094fi
6095
6096# Enable MI.
6097# Check whether --enable-gdbmi or --disable-gdbmi was given.
6098if test "${enable_gdbmi+set}" = set; then
6099 enableval="$enable_gdbmi"
6100 case $enableval in
6101 yes | no)
6102 ;;
6103 *)
6104 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6105echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6106 { (exit 1); exit 1; }; } ;;
6107 esac
6108else
6109 enable_gdbmi=yes
6110fi;
6111if test x"$enable_gdbmi" = xyes; then
6112 if test -d $srcdir/mi; then
6113 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6114 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6115 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6116 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6117 fi
6118fi
6119
6120# Enable TUI.
6121# Check whether --enable-tui or --disable-tui was given.
6122if test "${enable_tui+set}" = set; then
6123 enableval="$enable_tui"
6124 case $enableval in
6125 yes | no)
6126 ;;
6127 *)
6128 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6129echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6130 { (exit 1); exit 1; }; } ;;
6131 esac
6132else
6133 enable_tui=yes
6134fi;
6135
6136# Enable gdbtk.
6137# Check whether --enable-gdbtk or --disable-gdbtk was given.
6138if test "${enable_gdbtk+set}" = set; then
6139 enableval="$enable_gdbtk"
6140 case $enableval in
6141 yes | no)
6142 ;;
6143 *)
6144 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6145echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6146 { (exit 1); exit 1; }; } ;;
6147 esac
6148else
6149 if test -d $srcdir/gdbtk; then
6150 enable_gdbtk=yes
6151 else
6152 enable_gdbtk=no
6153 fi
6154fi;
6155# We unconditionally disable gdbtk tests on selected platforms.
6156case $host_os in
6157 go32* | windows*)
6158 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6159echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6160 enable_gdbtk=no ;;
6161esac
6162
6163# Libunwind support.
6164
6165# Check whether --with-libunwind or --without-libunwind was given.
6166if test "${with_libunwind+set}" = set; then
6167 withval="$with_libunwind"
6168 case "${withval}" in
6169 yes) enable_libunwind=yes ;;
6170 no) enable_libunwind=no ;;
6171 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6172echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6173 { (exit 1); exit 1; }; } ;;
6174esac
6175else
6176
6177
6178for ac_header in libunwind.h
6179do
6180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6181if eval "test \"\${$as_ac_Header+set}\" = set"; then
6182 echo "$as_me:$LINENO: checking for $ac_header" >&5
6183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6184if eval "test \"\${$as_ac_Header+set}\" = set"; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186fi
6187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6189else
6190 # Is the header compilable?
6191echo "$as_me:$LINENO: checking $ac_header usability" >&5
6192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6193cat >conftest.$ac_ext <<_ACEOF
6194/* confdefs.h. */
6195_ACEOF
6196cat confdefs.h >>conftest.$ac_ext
6197cat >>conftest.$ac_ext <<_ACEOF
6198/* end confdefs.h. */
6199$ac_includes_default
6200#include <$ac_header>
6201_ACEOF
6202rm -f conftest.$ac_objext
6203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>conftest.er1
6205 ac_status=$?
6206 grep -v '^ *+' conftest.er1 >conftest.err
6207 rm -f conftest.er1
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try='test -z "$ac_c_werror_flag"
6212 || test ! -s conftest.err'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; } &&
6218 { ac_try='test -s conftest.$ac_objext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 (eval $ac_try) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 ac_header_compiler=yes
6225else
6226 echo "$as_me: failed program was:" >&5
6227sed 's/^/| /' conftest.$ac_ext >&5
6228
6229ac_header_compiler=no
6230fi
6231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6233echo "${ECHO_T}$ac_header_compiler" >&6
6234
6235# Is the header present?
6236echo "$as_me:$LINENO: checking $ac_header presence" >&5
6237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6238cat >conftest.$ac_ext <<_ACEOF
6239/* confdefs.h. */
6240_ACEOF
6241cat confdefs.h >>conftest.$ac_ext
6242cat >>conftest.$ac_ext <<_ACEOF
6243/* end confdefs.h. */
6244#include <$ac_header>
6245_ACEOF
6246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } >/dev/null; then
6254 if test -s conftest.err; then
6255 ac_cpp_err=$ac_c_preproc_warn_flag
6256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6257 else
6258 ac_cpp_err=
6259 fi
6260else
6261 ac_cpp_err=yes
6262fi
6263if test -z "$ac_cpp_err"; then
6264 ac_header_preproc=yes
6265else
6266 echo "$as_me: failed program was:" >&5
6267sed 's/^/| /' conftest.$ac_ext >&5
6268
6269 ac_header_preproc=no
6270fi
6271rm -f conftest.err conftest.$ac_ext
6272echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6273echo "${ECHO_T}$ac_header_preproc" >&6
6274
6275# So? What about this header?
6276case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6277 yes:no: )
6278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6279echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6281echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6282 ac_header_preproc=yes
6283 ;;
6284 no:yes:* )
6285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6286echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6288echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6290echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6292echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6294echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6296echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6297 (
6298 cat <<\_ASBOX
6299## ------------------------------------------ ##
6300## Report this to the AC_PACKAGE_NAME lists. ##
6301## ------------------------------------------ ##
6302_ASBOX
6303 ) |
6304 sed "s/^/$as_me: WARNING: /" >&2
6305 ;;
6306esac
6307echo "$as_me:$LINENO: checking for $ac_header" >&5
6308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6309if eval "test \"\${$as_ac_Header+set}\" = set"; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311else
6312 eval "$as_ac_Header=\$ac_header_preproc"
6313fi
6314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6316
6317fi
6318if test `eval echo '${'$as_ac_Header'}'` = yes; then
6319 cat >>confdefs.h <<_ACEOF
6320#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6321_ACEOF
6322
6323fi
6324
6325done
6326
6327
6328for ac_header in libunwind-ia64.h
6329do
6330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6331if eval "test \"\${$as_ac_Header+set}\" = set"; then
6332 echo "$as_me:$LINENO: checking for $ac_header" >&5
6333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6334if eval "test \"\${$as_ac_Header+set}\" = set"; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336fi
6337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6339else
6340 # Is the header compilable?
6341echo "$as_me:$LINENO: checking $ac_header usability" >&5
6342echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6343cat >conftest.$ac_ext <<_ACEOF
6344/* confdefs.h. */
6345_ACEOF
6346cat confdefs.h >>conftest.$ac_ext
6347cat >>conftest.$ac_ext <<_ACEOF
6348/* end confdefs.h. */
6349$ac_includes_default
6350#include <$ac_header>
6351_ACEOF
6352rm -f conftest.$ac_objext
6353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>conftest.er1
6355 ac_status=$?
6356 grep -v '^ *+' conftest.er1 >conftest.err
6357 rm -f conftest.er1
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -z "$ac_c_werror_flag"
6362 || test ! -s conftest.err'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 (eval $ac_try) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; } &&
6368 { ac_try='test -s conftest.$ac_objext'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 (eval $ac_try) 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6374 ac_header_compiler=yes
6375else
6376 echo "$as_me: failed program was:" >&5
6377sed 's/^/| /' conftest.$ac_ext >&5
6378
6379ac_header_compiler=no
6380fi
6381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6382echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6383echo "${ECHO_T}$ac_header_compiler" >&6
6384
6385# Is the header present?
6386echo "$as_me:$LINENO: checking $ac_header presence" >&5
6387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6388cat >conftest.$ac_ext <<_ACEOF
6389/* confdefs.h. */
6390_ACEOF
6391cat confdefs.h >>conftest.$ac_ext
6392cat >>conftest.$ac_ext <<_ACEOF
6393/* end confdefs.h. */
6394#include <$ac_header>
6395_ACEOF
6396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } >/dev/null; then
6404 if test -s conftest.err; then
6405 ac_cpp_err=$ac_c_preproc_warn_flag
6406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6407 else
6408 ac_cpp_err=
6409 fi
6410else
6411 ac_cpp_err=yes
6412fi
6413if test -z "$ac_cpp_err"; then
6414 ac_header_preproc=yes
6415else
6416 echo "$as_me: failed program was:" >&5
6417sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 ac_header_preproc=no
6420fi
6421rm -f conftest.err conftest.$ac_ext
6422echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6423echo "${ECHO_T}$ac_header_preproc" >&6
6424
6425# So? What about this header?
6426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6427 yes:no: )
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6432 ac_header_preproc=yes
6433 ;;
6434 no:yes:* )
6435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6438echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6442echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6447 (
6448 cat <<\_ASBOX
6449## ------------------------------------------ ##
6450## Report this to the AC_PACKAGE_NAME lists. ##
6451## ------------------------------------------ ##
6452_ASBOX
6453 ) |
6454 sed "s/^/$as_me: WARNING: /" >&2
6455 ;;
6456esac
6457echo "$as_me:$LINENO: checking for $ac_header" >&5
6458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6459if eval "test \"\${$as_ac_Header+set}\" = set"; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462 eval "$as_ac_Header=\$ac_header_preproc"
6463fi
6464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6466
6467fi
6468if test `eval echo '${'$as_ac_Header'}'` = yes; then
6469 cat >>confdefs.h <<_ACEOF
6470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6471_ACEOF
6472
6473fi
6474
6475done
6476
6477 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6478 enable_libunwind=yes;
6479 fi
6480
6481fi;
6482
6483if test x"$enable_libunwind" = xyes; then
6484
6485for ac_header in libunwind.h
6486do
6487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6488if eval "test \"\${$as_ac_Header+set}\" = set"; then
6489 echo "$as_me:$LINENO: checking for $ac_header" >&5
6490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6491if eval "test \"\${$as_ac_Header+set}\" = set"; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493fi
6494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6496else
6497 # Is the header compilable?
6498echo "$as_me:$LINENO: checking $ac_header usability" >&5
6499echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6500cat >conftest.$ac_ext <<_ACEOF
6501/* confdefs.h. */
6502_ACEOF
6503cat confdefs.h >>conftest.$ac_ext
6504cat >>conftest.$ac_ext <<_ACEOF
6505/* end confdefs.h. */
6506$ac_includes_default
6507#include <$ac_header>
6508_ACEOF
6509rm -f conftest.$ac_objext
6510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511 (eval $ac_compile) 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_c_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_header_compiler=yes
6532else
6533 echo "$as_me: failed program was:" >&5
6534sed 's/^/| /' conftest.$ac_ext >&5
6535
6536ac_header_compiler=no
6537fi
6538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6539echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6540echo "${ECHO_T}$ac_header_compiler" >&6
6541
6542# Is the header present?
6543echo "$as_me:$LINENO: checking $ac_header presence" >&5
6544echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6545cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h. */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h. */
6551#include <$ac_header>
6552_ACEOF
6553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } >/dev/null; then
6561 if test -s conftest.err; then
6562 ac_cpp_err=$ac_c_preproc_warn_flag
6563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6564 else
6565 ac_cpp_err=
6566 fi
6567else
6568 ac_cpp_err=yes
6569fi
6570if test -z "$ac_cpp_err"; then
6571 ac_header_preproc=yes
6572else
6573 echo "$as_me: failed program was:" >&5
6574sed 's/^/| /' conftest.$ac_ext >&5
6575
6576 ac_header_preproc=no
6577fi
6578rm -f conftest.err conftest.$ac_ext
6579echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6580echo "${ECHO_T}$ac_header_preproc" >&6
6581
6582# So? What about this header?
6583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6584 yes:no: )
6585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6589 ac_header_preproc=yes
6590 ;;
6591 no:yes:* )
6592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6604 (
6605 cat <<\_ASBOX
6606## ------------------------------------------ ##
6607## Report this to the AC_PACKAGE_NAME lists. ##
6608## ------------------------------------------ ##
6609_ASBOX
6610 ) |
6611 sed "s/^/$as_me: WARNING: /" >&2
6612 ;;
6613esac
6614echo "$as_me:$LINENO: checking for $ac_header" >&5
6615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6616if eval "test \"\${$as_ac_Header+set}\" = set"; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619 eval "$as_ac_Header=\$ac_header_preproc"
6620fi
6621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6623
6624fi
6625if test `eval echo '${'$as_ac_Header'}'` = yes; then
6626 cat >>confdefs.h <<_ACEOF
6627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6628_ACEOF
6629
6630fi
6631
6632done
6633
6634
6635for ac_header in libunwind-ia64.h
6636do
6637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6638if eval "test \"\${$as_ac_Header+set}\" = set"; then
6639 echo "$as_me:$LINENO: checking for $ac_header" >&5
6640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6641if eval "test \"\${$as_ac_Header+set}\" = set"; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643fi
6644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6646else
6647 # Is the header compilable?
6648echo "$as_me:$LINENO: checking $ac_header usability" >&5
6649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6650cat >conftest.$ac_ext <<_ACEOF
6651/* confdefs.h. */
6652_ACEOF
6653cat confdefs.h >>conftest.$ac_ext
6654cat >>conftest.$ac_ext <<_ACEOF
6655/* end confdefs.h. */
6656$ac_includes_default
6657#include <$ac_header>
6658_ACEOF
6659rm -f conftest.$ac_objext
6660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661 (eval $ac_compile) 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
6668 { ac_try='test -z "$ac_c_werror_flag"
6669 || test ! -s conftest.err'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 (eval $ac_try) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; } &&
6675 { ac_try='test -s conftest.$ac_objext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_header_compiler=yes
6682else
6683 echo "$as_me: failed program was:" >&5
6684sed 's/^/| /' conftest.$ac_ext >&5
6685
6686ac_header_compiler=no
6687fi
6688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6690echo "${ECHO_T}$ac_header_compiler" >&6
6691
6692# Is the header present?
6693echo "$as_me:$LINENO: checking $ac_header presence" >&5
6694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6695cat >conftest.$ac_ext <<_ACEOF
6696/* confdefs.h. */
6697_ACEOF
6698cat confdefs.h >>conftest.$ac_ext
6699cat >>conftest.$ac_ext <<_ACEOF
6700/* end confdefs.h. */
6701#include <$ac_header>
6702_ACEOF
6703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } >/dev/null; then
6711 if test -s conftest.err; then
6712 ac_cpp_err=$ac_c_preproc_warn_flag
6713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6714 else
6715 ac_cpp_err=
6716 fi
6717else
6718 ac_cpp_err=yes
6719fi
6720if test -z "$ac_cpp_err"; then
6721 ac_header_preproc=yes
6722else
6723 echo "$as_me: failed program was:" >&5
6724sed 's/^/| /' conftest.$ac_ext >&5
6725
6726 ac_header_preproc=no
6727fi
6728rm -f conftest.err conftest.$ac_ext
6729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6730echo "${ECHO_T}$ac_header_preproc" >&6
6731
6732# So? What about this header?
6733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6734 yes:no: )
6735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6739 ac_header_preproc=yes
6740 ;;
6741 no:yes:* )
6742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6754 (
6755 cat <<\_ASBOX
6756## ------------------------------------------ ##
6757## Report this to the AC_PACKAGE_NAME lists. ##
6758## ------------------------------------------ ##
6759_ASBOX
6760 ) |
6761 sed "s/^/$as_me: WARNING: /" >&2
6762 ;;
6763esac
6764echo "$as_me:$LINENO: checking for $ac_header" >&5
6765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6766if eval "test \"\${$as_ac_Header+set}\" = set"; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768else
6769 eval "$as_ac_Header=\$ac_header_preproc"
6770fi
6771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6773
6774fi
6775if test `eval echo '${'$as_ac_Header'}'` = yes; then
6776 cat >>confdefs.h <<_ACEOF
6777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6778_ACEOF
6779
6780fi
6781
6782done
6783
6784 cat >>confdefs.h <<\_ACEOF
6785#define HAVE_LIBUNWIND 1
6786_ACEOF
6787
6788 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6789 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6790 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6791fi
6792
6793# Profiling support.
6794# Check whether --enable-profiling or --disable-profiling was given.
6795if test "${enable_profiling+set}" = set; then
6796 enableval="$enable_profiling"
6797 case $enableval in
6798 yes | no)
6799 ;;
6800 *)
6801 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6802echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6803 { (exit 1); exit 1; }; } ;;
6804 esac
6805else
6806 enable_profiling=no
6807fi;
6808
6809
6810
6811for ac_func in monstartup _mcleanup
6812do
6813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6814echo "$as_me:$LINENO: checking for $ac_func" >&5
6815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6816if eval "test \"\${$as_ac_var+set}\" = set"; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819 cat >conftest.$ac_ext <<_ACEOF
6820/* confdefs.h. */
6821_ACEOF
6822cat confdefs.h >>conftest.$ac_ext
6823cat >>conftest.$ac_ext <<_ACEOF
6824/* end confdefs.h. */
6825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6827#define $ac_func innocuous_$ac_func
6828
6829/* System header to define __stub macros and hopefully few prototypes,
6830 which can conflict with char $ac_func (); below.
6831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6832 <limits.h> exists even on freestanding compilers. */
6833
6834#ifdef __STDC__
6835# include <limits.h>
6836#else
6837# include <assert.h>
6838#endif
6839
6840#undef $ac_func
6841
6842/* Override any gcc2 internal prototype to avoid an error. */
6843#ifdef __cplusplus
6844extern "C"
6845{
6846#endif
6847/* We use char because int might match the return type of a gcc2
6848 builtin and then its argument prototype would still apply. */
6849char $ac_func ();
6850/* The GNU C library defines this for functions which it implements
6851 to always fail with ENOSYS. Some functions are actually named
6852 something starting with __ and the normal name is an alias. */
6853#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6854choke me
6855#else
6856char (*f) () = $ac_func;
6857#endif
6858#ifdef __cplusplus
6859}
6860#endif
6861
6862int
6863main ()
6864{
6865return f != $ac_func;
6866 ;
6867 return 0;
6868}
6869_ACEOF
6870rm -f conftest.$ac_objext conftest$ac_exeext
6871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872 (eval $ac_link) 2>conftest.er1
6873 ac_status=$?
6874 grep -v '^ *+' conftest.er1 >conftest.err
6875 rm -f conftest.er1
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -z "$ac_c_werror_flag"
6880 || test ! -s conftest.err'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; } &&
6886 { ac_try='test -s conftest$ac_exeext'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6892 eval "$as_ac_var=yes"
6893else
6894 echo "$as_me: failed program was:" >&5
6895sed 's/^/| /' conftest.$ac_ext >&5
6896
6897eval "$as_ac_var=no"
6898fi
6899rm -f conftest.err conftest.$ac_objext \
6900 conftest$ac_exeext conftest.$ac_ext
6901fi
6902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6903echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6904if test `eval echo '${'$as_ac_var'}'` = yes; then
6905 cat >>confdefs.h <<_ACEOF
6906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6907_ACEOF
6908
6909fi
6910done
6911
6912echo "$as_me:$LINENO: checking for _etext" >&5
6913echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6914if test "${ac_cv_var__etext+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916else
6917 cat >conftest.$ac_ext <<_ACEOF
6918/* confdefs.h. */
6919_ACEOF
6920cat confdefs.h >>conftest.$ac_ext
6921cat >>conftest.$ac_ext <<_ACEOF
6922/* end confdefs.h. */
6923#include <stdlib.h>
6924extern char _etext;
6925
6926int
6927main ()
6928{
6929free (&_etext);
6930 ;
6931 return 0;
6932}
6933_ACEOF
6934rm -f conftest.$ac_objext conftest$ac_exeext
6935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>conftest.er1
6937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } &&
6943 { ac_try='test -z "$ac_c_werror_flag"
6944 || test ! -s conftest.err'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 (eval $ac_try) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; } &&
6950 { ac_try='test -s conftest$ac_exeext'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6956 ac_cv_var__etext=yes
6957else
6958 echo "$as_me: failed program was:" >&5
6959sed 's/^/| /' conftest.$ac_ext >&5
6960
6961ac_cv_var__etext=no
6962fi
6963rm -f conftest.err conftest.$ac_objext \
6964 conftest$ac_exeext conftest.$ac_ext
6965fi
6966echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6967echo "${ECHO_T}$ac_cv_var__etext" >&6
6968if test $ac_cv_var__etext = yes; then
6969
6970cat >>confdefs.h <<\_ACEOF
6971#define HAVE__ETEXT 1
6972_ACEOF
6973
6974fi
6975if test "$enable_profiling" = yes ; then
6976 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6977 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6978echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6979 { (exit 1); exit 1; }; }
6980 fi
6981 PROFILE_CFLAGS=-pg
6982 OLD_CFLAGS="$CFLAGS"
6983 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6984
6985 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6986echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6987if test "${ac_cv_cc_supports_pg+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6989else
bec39cab
AC
6990 cat >conftest.$ac_ext <<_ACEOF
6991/* confdefs.h. */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h. */
6996
6997int
6998main ()
6999{
7000int x;
7001 ;
7002 return 0;
7003}
7004_ACEOF
7005rm -f conftest.$ac_objext
7006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007 (eval $ac_compile) 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest.$ac_objext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_cc_supports_pg=yes
7028else
7029 echo "$as_me: failed program was:" >&5
7030sed 's/^/| /' conftest.$ac_ext >&5
7031
7032ac_cv_cc_supports_pg=no
7033fi
7034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7035fi
7036echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
7037echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
7038
7039 if test $ac_cv_cc_supports_pg = no; then
7040 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
7041echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
7042 { (exit 1); exit 1; }; }
7043 fi
7044
7045 CFLAGS="$OLD_CFLAGS"
7046fi
7047
7048# --------------------- #
7049# Checks for programs. #
7050# --------------------- #
7051
7052for ac_prog in gawk mawk nawk awk
7053do
7054 # Extract the first word of "$ac_prog", so it can be a program name with args.
7055set dummy $ac_prog; ac_word=$2
7056echo "$as_me:$LINENO: checking for $ac_word" >&5
7057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7058if test "${ac_cv_prog_AWK+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060else
7061 if test -n "$AWK"; then
7062 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7063else
7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071 ac_cv_prog_AWK="$ac_prog"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075done
7076done
7077
7078fi
7079fi
7080AWK=$ac_cv_prog_AWK
7081if test -n "$AWK"; then
7082 echo "$as_me:$LINENO: result: $AWK" >&5
7083echo "${ECHO_T}$AWK" >&6
7084else
7085 echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6
7087fi
7088
7089 test -n "$AWK" && break
7090done
7091
7092# Find a good install program. We prefer a C program (faster),
7093# so one script is as good as another. But avoid the broken or
7094# incompatible versions:
7095# SysV /etc/install, /usr/sbin/install
7096# SunOS /usr/etc/install
7097# IRIX /sbin/install
7098# AIX /bin/install
7099# AmigaOS /C/install, which installs bootblocks on floppy discs
7100# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7101# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7102# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7103# OS/2's system install, which has a completely different semantic
7104# ./install, which can be erroneously created by make from ./install.sh.
7105echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7106echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7107if test -z "$INSTALL"; then
7108if test "${ac_cv_path_install+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112for as_dir in $PATH
7113do
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 # Account for people who put trailing slashes in PATH elements.
7117case $as_dir/ in
7118 ./ | .// | /cC/* | \
7119 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7120 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7121 /usr/ucb/* ) ;;
c906108c 7122 *)
bec39cab
AC
7123 # OSF1 and SCO ODT 3.0 have their own names for install.
7124 # Don't use installbsd from OSF since it installs stuff as root
7125 # by default.
7126 for ac_prog in ginstall scoinst install; do
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7129 if test $ac_prog = install &&
7130 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7131 # AIX install. It has an incompatible calling convention.
7132 :
7133 elif test $ac_prog = install &&
7134 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7135 # program-specific install script used by HP pwplus--don't use.
7136 :
7137 else
7138 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7139 break 3
7140 fi
7141 fi
7142 done
7143 done
7144 ;;
c906108c 7145esac
bec39cab
AC
7146done
7147
7148
7149fi
7150 if test "${ac_cv_path_install+set}" = set; then
7151 INSTALL=$ac_cv_path_install
7152 else
7153 # As a last resort, use the slow shell script. We don't cache a
7154 # path for INSTALL within a source directory, because that will
7155 # break other packages using the cache if that directory is
7156 # removed, or if the path is relative.
7157 INSTALL=$ac_install_sh
7158 fi
7159fi
7160echo "$as_me:$LINENO: result: $INSTALL" >&5
7161echo "${ECHO_T}$INSTALL" >&6
7162
7163# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7164# It thinks the first close brace ends the variable substitution.
7165test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7166
7167test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7168
7169test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7170
7171echo "$as_me:$LINENO: checking whether ln -s works" >&5
7172echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7173LN_S=$as_ln_s
7174if test "$LN_S" = "ln -s"; then
7175 echo "$as_me:$LINENO: result: yes" >&5
7176echo "${ECHO_T}yes" >&6
7177else
7178 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7179echo "${ECHO_T}no, using $LN_S" >&6
7180fi
7181
7182if test -n "$ac_tool_prefix"; then
7183 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7184set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7185echo "$as_me:$LINENO: checking for $ac_word" >&5
7186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7187if test "${ac_cv_prog_RANLIB+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
7190 if test -n "$RANLIB"; then
7191 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7192else
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204done
7205done
7206
7207fi
7208fi
7209RANLIB=$ac_cv_prog_RANLIB
7210if test -n "$RANLIB"; then
7211 echo "$as_me:$LINENO: result: $RANLIB" >&5
7212echo "${ECHO_T}$RANLIB" >&6
7213else
7214 echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6
7216fi
7217
7218fi
7219if test -z "$ac_cv_prog_RANLIB"; then
7220 ac_ct_RANLIB=$RANLIB
7221 # Extract the first word of "ranlib", so it can be a program name with args.
7222set dummy ranlib; ac_word=$2
7223echo "$as_me:$LINENO: checking for $ac_word" >&5
7224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7225if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
7228 if test -n "$ac_ct_RANLIB"; then
7229 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7230else
7231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7238 ac_cv_prog_ac_ct_RANLIB="ranlib"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7241 fi
7242done
7243done
7244
7245 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7246fi
7247fi
7248ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7249if test -n "$ac_ct_RANLIB"; then
7250 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7251echo "${ECHO_T}$ac_ct_RANLIB" >&6
7252else
7253 echo "$as_me:$LINENO: result: no" >&5
7254echo "${ECHO_T}no" >&6
7255fi
7256
7257 RANLIB=$ac_ct_RANLIB
7258else
7259 RANLIB="$ac_cv_prog_RANLIB"
7260fi
7261
7262for ac_prog in 'bison -y' byacc
7263do
7264 # Extract the first word of "$ac_prog", so it can be a program name with args.
7265set dummy $ac_prog; ac_word=$2
7266echo "$as_me:$LINENO: checking for $ac_word" >&5
7267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7268if test "${ac_cv_prog_YACC+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271 if test -n "$YACC"; then
7272 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7273else
7274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_YACC="$ac_prog"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285done
7286done
7287
7288fi
7289fi
7290YACC=$ac_cv_prog_YACC
7291if test -n "$YACC"; then
7292 echo "$as_me:$LINENO: result: $YACC" >&5
7293echo "${ECHO_T}$YACC" >&6
7294else
7295 echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6
7297fi
7298
7299 test -n "$YACC" && break
7300done
7301test -n "$YACC" || YACC="yacc"
7302
7303
7304if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7306set dummy ${ac_tool_prefix}ar; ac_word=$2
7307echo "$as_me:$LINENO: checking for $ac_word" >&5
7308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309if test "${ac_cv_prog_AR+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312 if test -n "$AR"; then
7313 ac_cv_prog_AR="$AR" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_AR="${ac_tool_prefix}ar"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326done
7327done
7328
7329fi
7330fi
7331AR=$ac_cv_prog_AR
7332if test -n "$AR"; then
7333 echo "$as_me:$LINENO: result: $AR" >&5
7334echo "${ECHO_T}$AR" >&6
7335else
7336 echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6
7338fi
7339
7340fi
7341if test -z "$ac_cv_prog_AR"; then
7342 ac_ct_AR=$AR
7343 # Extract the first word of "ar", so it can be a program name with args.
7344set dummy ar; ac_word=$2
7345echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7347if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350 if test -n "$ac_ct_AR"; then
7351 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7352else
7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_ac_ct_AR="ar"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364done
7365done
7366
7367fi
7368fi
7369ac_ct_AR=$ac_cv_prog_ac_ct_AR
7370if test -n "$ac_ct_AR"; then
7371 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7372echo "${ECHO_T}$ac_ct_AR" >&6
7373else
7374 echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6
7376fi
7377
7378 AR=$ac_ct_AR
7379else
7380 AR="$ac_cv_prog_AR"
7381fi
7382
7383if test -n "$ac_tool_prefix"; then
7384 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7385set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7386echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7388if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390else
7391 if test -n "$DLLTOOL"; then
7392 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7393else
7394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405done
7406done
7407
7408fi
7409fi
7410DLLTOOL=$ac_cv_prog_DLLTOOL
7411if test -n "$DLLTOOL"; then
7412 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7413echo "${ECHO_T}$DLLTOOL" >&6
7414else
7415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
7417fi
7418
7419fi
7420if test -z "$ac_cv_prog_DLLTOOL"; then
7421 ac_ct_DLLTOOL=$DLLTOOL
7422 # Extract the first word of "dlltool", so it can be a program name with args.
7423set dummy dlltool; ac_word=$2
7424echo "$as_me:$LINENO: checking for $ac_word" >&5
7425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7426if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428else
7429 if test -n "$ac_ct_DLLTOOL"; then
7430 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7431else
7432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433for as_dir in $PATH
7434do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7442 fi
7443done
7444done
7445
7446fi
7447fi
7448ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7449if test -n "$ac_ct_DLLTOOL"; then
7450 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7451echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7452else
7453 echo "$as_me:$LINENO: result: no" >&5
7454echo "${ECHO_T}no" >&6
7455fi
7456
7457 DLLTOOL=$ac_ct_DLLTOOL
7458else
7459 DLLTOOL="$ac_cv_prog_DLLTOOL"
7460fi
7461
7462if test -n "$ac_tool_prefix"; then
7463 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7464set dummy ${ac_tool_prefix}windres; ac_word=$2
7465echo "$as_me:$LINENO: checking for $ac_word" >&5
7466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7467if test "${ac_cv_prog_WINDRES+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469else
7470 if test -n "$WINDRES"; then
7471 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7472else
7473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474for as_dir in $PATH
7475do
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7480 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 break 2
7483 fi
7484done
7485done
7486
7487fi
7488fi
7489WINDRES=$ac_cv_prog_WINDRES
7490if test -n "$WINDRES"; then
7491 echo "$as_me:$LINENO: result: $WINDRES" >&5
7492echo "${ECHO_T}$WINDRES" >&6
7493else
7494 echo "$as_me:$LINENO: result: no" >&5
7495echo "${ECHO_T}no" >&6
7496fi
7497
7498fi
7499if test -z "$ac_cv_prog_WINDRES"; then
7500 ac_ct_WINDRES=$WINDRES
7501 # Extract the first word of "windres", so it can be a program name with args.
7502set dummy windres; ac_word=$2
7503echo "$as_me:$LINENO: checking for $ac_word" >&5
7504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7505if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507else
7508 if test -n "$ac_ct_WINDRES"; then
7509 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7510else
7511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518 ac_cv_prog_ac_ct_WINDRES="windres"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 break 2
7521 fi
7522done
7523done
7524
7525fi
7526fi
7527ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7528if test -n "$ac_ct_WINDRES"; then
7529 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7530echo "${ECHO_T}$ac_ct_WINDRES" >&6
7531else
7532 echo "$as_me:$LINENO: result: no" >&5
7533echo "${ECHO_T}no" >&6
c906108c 7534fi
bec39cab
AC
7535
7536 WINDRES=$ac_ct_WINDRES
c906108c 7537else
bec39cab 7538 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
7539fi
7540
bec39cab
AC
7541
7542# Needed for GNU/Hurd.
7543if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7545set dummy ${ac_tool_prefix}mig; ac_word=$2
7546echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7548if test "${ac_cv_prog_MIG+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7550else
bec39cab
AC
7551 if test -n "$MIG"; then
7552 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7553else
7554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555for as_dir in $PATH
7556do
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7564 fi
7565done
7566done
7567
c906108c 7568fi
bec39cab
AC
7569fi
7570MIG=$ac_cv_prog_MIG
7571if test -n "$MIG"; then
7572 echo "$as_me:$LINENO: result: $MIG" >&5
7573echo "${ECHO_T}$MIG" >&6
c906108c 7574else
bec39cab
AC
7575 echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6
c906108c
SS
7577fi
7578
bec39cab
AC
7579fi
7580if test -z "$ac_cv_prog_MIG"; then
7581 ac_ct_MIG=$MIG
7582 # Extract the first word of "mig", so it can be a program name with args.
7583set dummy mig; ac_word=$2
7584echo "$as_me:$LINENO: checking for $ac_word" >&5
7585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589 if test -n "$ac_ct_MIG"; then
7590 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7591else
7592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_ac_ct_MIG="mig"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603done
7604done
c906108c 7605
bec39cab
AC
7606fi
7607fi
7608ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7609if test -n "$ac_ct_MIG"; then
7610 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7611echo "${ECHO_T}$ac_ct_MIG" >&6
7612else
7613 echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6
7615fi
c906108c 7616
bec39cab
AC
7617 MIG=$ac_ct_MIG
7618else
7619 MIG="$ac_cv_prog_MIG"
7620fi
c906108c 7621
c906108c 7622
bec39cab
AC
7623# ---------------------- #
7624# Checks for libraries. #
7625# ---------------------- #
c906108c 7626
bec39cab 7627# We might need to link with -lm; most simulators need it.
c906108c 7628
bec39cab
AC
7629echo "$as_me:$LINENO: checking for main in -lm" >&5
7630echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7631if test "${ac_cv_lib_m_main+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634 ac_check_lib_save_LIBS=$LIBS
7635LIBS="-lm $LIBS"
7636cat >conftest.$ac_ext <<_ACEOF
7637/* confdefs.h. */
7638_ACEOF
7639cat confdefs.h >>conftest.$ac_ext
7640cat >>conftest.$ac_ext <<_ACEOF
7641/* end confdefs.h. */
c906108c 7642
c906108c 7643
bec39cab
AC
7644int
7645main ()
7646{
7647main ();
7648 ;
7649 return 0;
7650}
7651_ACEOF
7652rm -f conftest.$ac_objext conftest$ac_exeext
7653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7654 (eval $ac_link) 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try='test -z "$ac_c_werror_flag"
7662 || test ! -s conftest.err'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try='test -s conftest$ac_exeext'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7674 ac_cv_lib_m_main=yes
7675else
7676 echo "$as_me: failed program was:" >&5
7677sed 's/^/| /' conftest.$ac_ext >&5
7678
7679ac_cv_lib_m_main=no
7680fi
7681rm -f conftest.err conftest.$ac_objext \
7682 conftest$ac_exeext conftest.$ac_ext
7683LIBS=$ac_check_lib_save_LIBS
7684fi
7685echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7686echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7687if test $ac_cv_lib_m_main = yes; then
7688 cat >>confdefs.h <<_ACEOF
7689#define HAVE_LIBM 1
7690_ACEOF
7691
7692 LIBS="-lm $LIBS"
c906108c 7693
c906108c 7694fi
bec39cab
AC
7695
7696
7697# We need to link with -lw to get `wctype' on Solaris before Solaris
7698# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7699# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7700# is known to have this problem). Therefore we avoid libw if we can.
7701echo "$as_me:$LINENO: checking for wctype" >&5
7702echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7703if test "${ac_cv_func_wctype+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7705else
7706 cat >conftest.$ac_ext <<_ACEOF
7707/* confdefs.h. */
7708_ACEOF
7709cat confdefs.h >>conftest.$ac_ext
7710cat >>conftest.$ac_ext <<_ACEOF
7711/* end confdefs.h. */
7712/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7714#define wctype innocuous_wctype
7715
7716/* System header to define __stub macros and hopefully few prototypes,
7717 which can conflict with char wctype (); below.
7718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7719 <limits.h> exists even on freestanding compilers. */
7720
7721#ifdef __STDC__
7722# include <limits.h>
7723#else
7724# include <assert.h>
7725#endif
7726
7727#undef wctype
7728
7729/* Override any gcc2 internal prototype to avoid an error. */
7730#ifdef __cplusplus
7731extern "C"
7732{
7733#endif
7734/* We use char because int might match the return type of a gcc2
7735 builtin and then its argument prototype would still apply. */
7736char wctype ();
7737/* The GNU C library defines this for functions which it implements
7738 to always fail with ENOSYS. Some functions are actually named
7739 something starting with __ and the normal name is an alias. */
7740#if defined (__stub_wctype) || defined (__stub___wctype)
7741choke me
7742#else
7743char (*f) () = wctype;
7744#endif
7745#ifdef __cplusplus
7746}
7747#endif
7748
7749int
7750main ()
7751{
7752return f != wctype;
7753 ;
7754 return 0;
7755}
7756_ACEOF
7757rm -f conftest.$ac_objext conftest$ac_exeext
7758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>conftest.er1
7760 ac_status=$?
7761 grep -v '^ *+' conftest.er1 >conftest.err
7762 rm -f conftest.er1
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -z "$ac_c_werror_flag"
7767 || test ! -s conftest.err'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try='test -s conftest$ac_exeext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 ac_cv_func_wctype=yes
7780else
7781 echo "$as_me: failed program was:" >&5
7782sed 's/^/| /' conftest.$ac_ext >&5
7783
7784ac_cv_func_wctype=no
7785fi
7786rm -f conftest.err conftest.$ac_objext \
7787 conftest$ac_exeext conftest.$ac_ext
7788fi
7789echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7790echo "${ECHO_T}$ac_cv_func_wctype" >&6
7791if test $ac_cv_func_wctype = yes; then
7792 :
c906108c 7793else
c906108c 7794
bec39cab
AC
7795echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7796echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7797if test "${ac_cv_lib_w_wctype+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7799else
7800 ac_check_lib_save_LIBS=$LIBS
7801LIBS="-lw $LIBS"
7802cat >conftest.$ac_ext <<_ACEOF
7803/* confdefs.h. */
7804_ACEOF
7805cat confdefs.h >>conftest.$ac_ext
7806cat >>conftest.$ac_ext <<_ACEOF
7807/* end confdefs.h. */
c906108c 7808
bec39cab
AC
7809/* Override any gcc2 internal prototype to avoid an error. */
7810#ifdef __cplusplus
7811extern "C"
7812#endif
7813/* We use char because int might match the return type of a gcc2
7814 builtin and then its argument prototype would still apply. */
7815char wctype ();
7816int
7817main ()
7818{
7819wctype ();
7820 ;
7821 return 0;
7822}
7823_ACEOF
7824rm -f conftest.$ac_objext conftest$ac_exeext
7825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826 (eval $ac_link) 2>conftest.er1
7827 ac_status=$?
7828 grep -v '^ *+' conftest.er1 >conftest.err
7829 rm -f conftest.er1
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag"
7834 || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 (eval $ac_try) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try='test -s conftest$ac_exeext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 (eval $ac_try) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_cv_lib_w_wctype=yes
7847else
7848 echo "$as_me: failed program was:" >&5
7849sed 's/^/| /' conftest.$ac_ext >&5
7850
7851ac_cv_lib_w_wctype=no
7852fi
7853rm -f conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7855LIBS=$ac_check_lib_save_LIBS
7856fi
7857echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7858echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7859if test $ac_cv_lib_w_wctype = yes; then
7860 cat >>confdefs.h <<_ACEOF
7861#define HAVE_LIBW 1
7862_ACEOF
c906108c 7863
bec39cab 7864 LIBS="-lw $LIBS"
c906108c 7865
bec39cab 7866fi
c906108c 7867
bec39cab 7868fi
c906108c 7869
ddc9cd0f 7870
bec39cab
AC
7871# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7872echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7873echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7874if test "${ac_cv_search_gethostbyname+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876else
7877 ac_func_search_save_LIBS=$LIBS
7878ac_cv_search_gethostbyname=no
7879cat >conftest.$ac_ext <<_ACEOF
7880/* confdefs.h. */
7881_ACEOF
7882cat confdefs.h >>conftest.$ac_ext
7883cat >>conftest.$ac_ext <<_ACEOF
7884/* end confdefs.h. */
ddc9cd0f 7885
bec39cab
AC
7886/* Override any gcc2 internal prototype to avoid an error. */
7887#ifdef __cplusplus
7888extern "C"
7889#endif
7890/* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7892char gethostbyname ();
7893int
7894main ()
7895{
7896gethostbyname ();
7897 ;
7898 return 0;
7899}
7900_ACEOF
7901rm -f conftest.$ac_objext conftest$ac_exeext
7902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest$ac_exeext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_cv_search_gethostbyname="none required"
7924else
7925 echo "$as_me: failed program was:" >&5
7926sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7927
bec39cab
AC
7928fi
7929rm -f conftest.err conftest.$ac_objext \
7930 conftest$ac_exeext conftest.$ac_ext
7931if test "$ac_cv_search_gethostbyname" = no; then
7932 for ac_lib in nsl; do
7933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7934 cat >conftest.$ac_ext <<_ACEOF
7935/* confdefs.h. */
7936_ACEOF
7937cat confdefs.h >>conftest.$ac_ext
7938cat >>conftest.$ac_ext <<_ACEOF
7939/* end confdefs.h. */
ddc9cd0f 7940
bec39cab
AC
7941/* Override any gcc2 internal prototype to avoid an error. */
7942#ifdef __cplusplus
7943extern "C"
7944#endif
7945/* We use char because int might match the return type of a gcc2
7946 builtin and then its argument prototype would still apply. */
7947char gethostbyname ();
7948int
7949main ()
7950{
7951gethostbyname ();
7952 ;
7953 return 0;
7954}
7955_ACEOF
7956rm -f conftest.$ac_objext conftest$ac_exeext
7957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7958 (eval $ac_link) 2>conftest.er1
7959 ac_status=$?
7960 grep -v '^ *+' conftest.er1 >conftest.err
7961 rm -f conftest.er1
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -z "$ac_c_werror_flag"
7966 || test ! -s conftest.err'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try='test -s conftest$ac_exeext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 ac_cv_search_gethostbyname="-l$ac_lib"
7979break
7980else
7981 echo "$as_me: failed program was:" >&5
7982sed 's/^/| /' conftest.$ac_ext >&5
7983
7984fi
7985rm -f conftest.err conftest.$ac_objext \
7986 conftest$ac_exeext conftest.$ac_ext
ddc9cd0f 7987 done
bec39cab
AC
7988fi
7989LIBS=$ac_func_search_save_LIBS
7990fi
7991echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7992echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7993if test "$ac_cv_search_gethostbyname" != no; then
7994 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
ddc9cd0f 7995
ddc9cd0f
AC
7996fi
7997
0fbb3da7 7998
bec39cab
AC
7999# Some systems (e.g. Solaris) have `socketpair' in libsocket.
8000echo "$as_me:$LINENO: checking for library containing socketpair" >&5
8001echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
8002if test "${ac_cv_search_socketpair+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8004else
8005 ac_func_search_save_LIBS=$LIBS
8006ac_cv_search_socketpair=no
8007cat >conftest.$ac_ext <<_ACEOF
8008/* confdefs.h. */
8009_ACEOF
8010cat confdefs.h >>conftest.$ac_ext
8011cat >>conftest.$ac_ext <<_ACEOF
8012/* end confdefs.h. */
0fbb3da7 8013
bec39cab
AC
8014/* Override any gcc2 internal prototype to avoid an error. */
8015#ifdef __cplusplus
8016extern "C"
8017#endif
8018/* We use char because int might match the return type of a gcc2
8019 builtin and then its argument prototype would still apply. */
8020char socketpair ();
8021int
8022main ()
8023{
8024socketpair ();
8025 ;
8026 return 0;
8027}
8028_ACEOF
8029rm -f conftest.$ac_objext conftest$ac_exeext
8030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8031 (eval $ac_link) 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } &&
8038 { ac_try='test -z "$ac_c_werror_flag"
8039 || test ! -s conftest.err'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 (eval $ac_try) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } &&
8045 { ac_try='test -s conftest$ac_exeext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 (eval $ac_try) 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_cv_search_socketpair="none required"
8052else
8053 echo "$as_me: failed program was:" >&5
8054sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 8055
5b5d99cf 8056fi
bec39cab
AC
8057rm -f conftest.err conftest.$ac_objext \
8058 conftest$ac_exeext conftest.$ac_ext
8059if test "$ac_cv_search_socketpair" = no; then
8060 for ac_lib in socket; do
8061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8062 cat >conftest.$ac_ext <<_ACEOF
8063/* confdefs.h. */
8064_ACEOF
8065cat confdefs.h >>conftest.$ac_ext
8066cat >>conftest.$ac_ext <<_ACEOF
8067/* end confdefs.h. */
5b5d99cf 8068
bec39cab
AC
8069/* Override any gcc2 internal prototype to avoid an error. */
8070#ifdef __cplusplus
8071extern "C"
8072#endif
8073/* We use char because int might match the return type of a gcc2
8074 builtin and then its argument prototype would still apply. */
8075char socketpair ();
8076int
8077main ()
8078{
8079socketpair ();
8080 ;
8081 return 0;
8082}
8083_ACEOF
8084rm -f conftest.$ac_objext conftest$ac_exeext
8085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8086 (eval $ac_link) 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -z "$ac_c_werror_flag"
8094 || test ! -s conftest.err'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; } &&
8100 { ac_try='test -s conftest$ac_exeext'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8106 ac_cv_search_socketpair="-l$ac_lib"
8107break
8108else
8109 echo "$as_me: failed program was:" >&5
8110sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8111
bec39cab
AC
8112fi
8113rm -f conftest.err conftest.$ac_objext \
8114 conftest$ac_exeext conftest.$ac_ext
8115 done
8116fi
8117LIBS=$ac_func_search_save_LIBS
8118fi
8119echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8120echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8121if test "$ac_cv_search_socketpair" != no; then
8122 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
96baa820 8123
bec39cab 8124fi
96baa820 8125
c906108c 8126
bec39cab
AC
8127# For the TUI, we need enhanced curses functionality.
8128#
8129# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8130# curses library because the latter might not provide all the
8131# functionality we need. However, this leads to problems on systems
8132# where the linker searches /usr/local/lib, but the compiler doesn't
8133# search /usr/local/include, if ncurses is installed in /usr/local. A
8134# default installation of ncurses on alpha*-dec-osf* will lead to such
8135# a situation.
8136echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8137echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8138if test "${ac_cv_search_waddstr+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141 ac_func_search_save_LIBS=$LIBS
8142ac_cv_search_waddstr=no
8143cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h. */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h. */
c906108c 8149
bec39cab
AC
8150/* Override any gcc2 internal prototype to avoid an error. */
8151#ifdef __cplusplus
8152extern "C"
8153#endif
8154/* We use char because int might match the return type of a gcc2
8155 builtin and then its argument prototype would still apply. */
8156char waddstr ();
8157int
8158main ()
8159{
8160waddstr ();
8161 ;
8162 return 0;
8163}
8164_ACEOF
8165rm -f conftest.$ac_objext conftest$ac_exeext
8166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167 (eval $ac_link) 2>conftest.er1
8168 ac_status=$?
8169 grep -v '^ *+' conftest.er1 >conftest.err
8170 rm -f conftest.er1
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try='test -z "$ac_c_werror_flag"
8175 || test ! -s conftest.err'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 (eval $ac_try) 2>&5
8178 ac_status=$?
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; } &&
8181 { ac_try='test -s conftest$ac_exeext'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 (eval $ac_try) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8187 ac_cv_search_waddstr="none required"
8188else
8189 echo "$as_me: failed program was:" >&5
8190sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8191
bec39cab
AC
8192fi
8193rm -f conftest.err conftest.$ac_objext \
8194 conftest$ac_exeext conftest.$ac_ext
8195if test "$ac_cv_search_waddstr" = no; then
8196 for ac_lib in ncurses cursesX curses; do
8197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8198 cat >conftest.$ac_ext <<_ACEOF
8199/* confdefs.h. */
8200_ACEOF
8201cat confdefs.h >>conftest.$ac_ext
8202cat >>conftest.$ac_ext <<_ACEOF
8203/* end confdefs.h. */
1ba607ad 8204
bec39cab
AC
8205/* Override any gcc2 internal prototype to avoid an error. */
8206#ifdef __cplusplus
8207extern "C"
8208#endif
8209/* We use char because int might match the return type of a gcc2
8210 builtin and then its argument prototype would still apply. */
8211char waddstr ();
8212int
8213main ()
8214{
8215waddstr ();
8216 ;
8217 return 0;
8218}
8219_ACEOF
8220rm -f conftest.$ac_objext conftest$ac_exeext
8221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8222 (eval $ac_link) 2>conftest.er1
8223 ac_status=$?
8224 grep -v '^ *+' conftest.er1 >conftest.err
8225 rm -f conftest.er1
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } &&
8229 { ac_try='test -z "$ac_c_werror_flag"
8230 || test ! -s conftest.err'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 (eval $ac_try) 2>&5
8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; } &&
8236 { ac_try='test -s conftest$ac_exeext'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 (eval $ac_try) 2>&5
8239 ac_status=$?
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; }; then
8242 ac_cv_search_waddstr="-l$ac_lib"
8243break
8244else
8245 echo "$as_me: failed program was:" >&5
8246sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
8247
8248fi
bec39cab
AC
8249rm -f conftest.err conftest.$ac_objext \
8250 conftest$ac_exeext conftest.$ac_ext
8251 done
1ba607ad 8252fi
bec39cab
AC
8253LIBS=$ac_func_search_save_LIBS
8254fi
8255echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8256echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8257if test "$ac_cv_search_waddstr" != no; then
8258 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 8259
8bb2c122 8260fi
8bb2c122 8261
8bb2c122 8262
bec39cab
AC
8263# Since GDB uses Readline, we need termcap functionality. In many
8264# cases this will be provided by the curses library, but some systems
8265# have a seperate termcap library, or no curses library at all.
8bb2c122 8266
bec39cab
AC
8267case $host_os in
8268 cygwin*)
8269 if test -d $srcdir/libtermcap; then
8270 LIBS="../libtermcap/libtermcap.a $LIBS"
8271 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8272 fi ;;
8273 go32* | *djgpp*)
8274 ac_cv_search_tgetent="none required"
8275 ;;
8276esac
627af7ea 8277
bec39cab
AC
8278# These are the libraries checked by Readline.
8279echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8280echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8281if test "${ac_cv_search_tgetent+set}" = set; then
8282 echo $ECHO_N "(cached) $ECHO_C" >&6
8283else
8284 ac_func_search_save_LIBS=$LIBS
8285ac_cv_search_tgetent=no
8286cat >conftest.$ac_ext <<_ACEOF
8287/* confdefs.h. */
8288_ACEOF
8289cat confdefs.h >>conftest.$ac_ext
8290cat >>conftest.$ac_ext <<_ACEOF
8291/* end confdefs.h. */
8292
8293/* Override any gcc2 internal prototype to avoid an error. */
8294#ifdef __cplusplus
8295extern "C"
8296#endif
8297/* We use char because int might match the return type of a gcc2
8298 builtin and then its argument prototype would still apply. */
8299char tgetent ();
8300int
8301main ()
8302{
8303tgetent ();
8304 ;
8305 return 0;
8306}
8307_ACEOF
8308rm -f conftest.$ac_objext conftest$ac_exeext
8309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310 (eval $ac_link) 2>conftest.er1
8311 ac_status=$?
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -z "$ac_c_werror_flag"
8318 || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_search_tgetent="none required"
627af7ea 8331else
bec39cab
AC
8332 echo "$as_me: failed program was:" >&5
8333sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8334
627af7ea 8335fi
bec39cab
AC
8336rm -f conftest.err conftest.$ac_objext \
8337 conftest$ac_exeext conftest.$ac_ext
8338if test "$ac_cv_search_tgetent" = no; then
8339 for ac_lib in termcap tinfo curses ncurses; do
8340 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8341 cat >conftest.$ac_ext <<_ACEOF
8342/* confdefs.h. */
8343_ACEOF
8344cat confdefs.h >>conftest.$ac_ext
8345cat >>conftest.$ac_ext <<_ACEOF
8346/* end confdefs.h. */
627af7ea 8347
bec39cab
AC
8348/* Override any gcc2 internal prototype to avoid an error. */
8349#ifdef __cplusplus
8350extern "C"
8351#endif
8352/* We use char because int might match the return type of a gcc2
8353 builtin and then its argument prototype would still apply. */
8354char tgetent ();
8355int
8356main ()
8357{
8358tgetent ();
8359 ;
8360 return 0;
8361}
8362_ACEOF
8363rm -f conftest.$ac_objext conftest$ac_exeext
8364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8365 (eval $ac_link) 2>conftest.er1
8366 ac_status=$?
8367 grep -v '^ *+' conftest.er1 >conftest.err
8368 rm -f conftest.er1
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try='test -z "$ac_c_werror_flag"
8373 || test ! -s conftest.err'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 (eval $ac_try) 2>&5
8376 ac_status=$?
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try='test -s conftest$ac_exeext'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 (eval $ac_try) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 ac_cv_search_tgetent="-l$ac_lib"
8386break
627af7ea 8387else
bec39cab
AC
8388 echo "$as_me: failed program was:" >&5
8389sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8390
627af7ea 8391fi
bec39cab
AC
8392rm -f conftest.err conftest.$ac_objext \
8393 conftest$ac_exeext conftest.$ac_ext
8394 done
8395fi
8396LIBS=$ac_func_search_save_LIBS
8397fi
8398echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8399echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8400if test "$ac_cv_search_tgetent" != no; then
8401 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 8402
06825bd1
MK
8403fi
8404
06825bd1 8405
bec39cab
AC
8406if test "$ac_cv_search_tgetent" = no; then
8407 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8408echo "$as_me: error: no termcap library found" >&2;}
8409 { (exit 1); exit 1; }; }
8ee53726
MK
8410fi
8411
bec39cab
AC
8412# ------------------------- #
8413# Checks for header files. #
8414# ------------------------- #
8ee53726 8415
0e5d83e3 8416
bec39cab
AC
8417
8418
8419
8420
8421ac_header_dirent=no
8422for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8423 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8424echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8425echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8426if eval "test \"\${$as_ac_Header+set}\" = set"; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428else
8429 cat >conftest.$ac_ext <<_ACEOF
8430/* confdefs.h. */
8431_ACEOF
8432cat confdefs.h >>conftest.$ac_ext
8433cat >>conftest.$ac_ext <<_ACEOF
8434/* end confdefs.h. */
8435#include <sys/types.h>
0e5d83e3 8436#include <$ac_hdr>
bec39cab
AC
8437
8438int
8439main ()
8440{
8441if ((DIR *) 0)
8442return 0;
8443 ;
8444 return 0;
8445}
8446_ACEOF
8447rm -f conftest.$ac_objext
8448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8449 (eval $ac_compile) 2>conftest.er1
8450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try='test -z "$ac_c_werror_flag"
8457 || test ! -s conftest.err'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 (eval $ac_try) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; } &&
8463 { ac_try='test -s conftest.$ac_objext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 eval "$as_ac_Header=yes"
8470else
8471 echo "$as_me: failed program was:" >&5
8472sed 's/^/| /' conftest.$ac_ext >&5
8473
8474eval "$as_ac_Header=no"
8475fi
8476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8477fi
8478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8480if test `eval echo '${'$as_ac_Header'}'` = yes; then
8481 cat >>confdefs.h <<_ACEOF
8482#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8483_ACEOF
8484
8485ac_header_dirent=$ac_hdr; break
0e5d83e3 8486fi
0e5d83e3 8487
bec39cab
AC
8488done
8489# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8490if test $ac_header_dirent = dirent.h; then
8491 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8492echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8493if test "${ac_cv_search_opendir+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495else
8496 ac_func_search_save_LIBS=$LIBS
8497ac_cv_search_opendir=no
8498cat >conftest.$ac_ext <<_ACEOF
8499/* confdefs.h. */
8500_ACEOF
8501cat confdefs.h >>conftest.$ac_ext
8502cat >>conftest.$ac_ext <<_ACEOF
8503/* end confdefs.h. */
0e5d83e3 8504
bec39cab
AC
8505/* Override any gcc2 internal prototype to avoid an error. */
8506#ifdef __cplusplus
8507extern "C"
8508#endif
8509/* We use char because int might match the return type of a gcc2
8510 builtin and then its argument prototype would still apply. */
8511char opendir ();
8512int
8513main ()
8514{
8515opendir ();
8516 ;
8517 return 0;
8518}
8519_ACEOF
8520rm -f conftest.$ac_objext conftest$ac_exeext
8521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8522 (eval $ac_link) 2>conftest.er1
8523 ac_status=$?
8524 grep -v '^ *+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
8529 { ac_try='test -z "$ac_c_werror_flag"
8530 || test ! -s conftest.err'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest$ac_exeext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_cv_search_opendir="none required"
8543else
8544 echo "$as_me: failed program was:" >&5
8545sed 's/^/| /' conftest.$ac_ext >&5
8546
8547fi
8548rm -f conftest.err conftest.$ac_objext \
8549 conftest$ac_exeext conftest.$ac_ext
8550if test "$ac_cv_search_opendir" = no; then
8551 for ac_lib in dir; do
8552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8553 cat >conftest.$ac_ext <<_ACEOF
8554/* confdefs.h. */
8555_ACEOF
8556cat confdefs.h >>conftest.$ac_ext
8557cat >>conftest.$ac_ext <<_ACEOF
8558/* end confdefs.h. */
0e5d83e3 8559
bec39cab
AC
8560/* Override any gcc2 internal prototype to avoid an error. */
8561#ifdef __cplusplus
8562extern "C"
8563#endif
8564/* We use char because int might match the return type of a gcc2
8565 builtin and then its argument prototype would still apply. */
8566char opendir ();
8567int
8568main ()
8569{
8570opendir ();
8571 ;
8572 return 0;
8573}
8574_ACEOF
8575rm -f conftest.$ac_objext conftest$ac_exeext
8576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -z "$ac_c_werror_flag"
8585 || test ! -s conftest.err'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 (eval $ac_try) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest$ac_exeext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 ac_cv_search_opendir="-l$ac_lib"
8598break
0e5d83e3 8599else
bec39cab
AC
8600 echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
0e5d83e3 8602
0e5d83e3 8603fi
bec39cab
AC
8604rm -f conftest.err conftest.$ac_objext \
8605 conftest$ac_exeext conftest.$ac_ext
8606 done
0e5d83e3 8607fi
bec39cab 8608LIBS=$ac_func_search_save_LIBS
0e5d83e3 8609fi
bec39cab
AC
8610echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8611echo "${ECHO_T}$ac_cv_search_opendir" >&6
8612if test "$ac_cv_search_opendir" != no; then
8613 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 8614
0e5d83e3
JJ
8615fi
8616
d28f9cdf 8617else
bec39cab
AC
8618 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8619echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8620if test "${ac_cv_search_opendir+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622else
8623 ac_func_search_save_LIBS=$LIBS
8624ac_cv_search_opendir=no
8625cat >conftest.$ac_ext <<_ACEOF
8626/* confdefs.h. */
8627_ACEOF
8628cat confdefs.h >>conftest.$ac_ext
8629cat >>conftest.$ac_ext <<_ACEOF
8630/* end confdefs.h. */
d28f9cdf 8631
d28f9cdf 8632/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8633#ifdef __cplusplus
8634extern "C"
8635#endif
d28f9cdf 8636/* We use char because int might match the return type of a gcc2
bec39cab
AC
8637 builtin and then its argument prototype would still apply. */
8638char opendir ();
8639int
8640main ()
8641{
8642opendir ();
8643 ;
8644 return 0;
8645}
8646_ACEOF
8647rm -f conftest.$ac_objext conftest$ac_exeext
8648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag"
8657 || test ! -s conftest.err'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 (eval $ac_try) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_search_opendir="none required"
8670else
8671 echo "$as_me: failed program was:" >&5
8672sed 's/^/| /' conftest.$ac_ext >&5
8673
8674fi
8675rm -f conftest.err conftest.$ac_objext \
8676 conftest$ac_exeext conftest.$ac_ext
8677if test "$ac_cv_search_opendir" = no; then
8678 for ac_lib in x; do
8679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8680 cat >conftest.$ac_ext <<_ACEOF
8681/* confdefs.h. */
8682_ACEOF
8683cat confdefs.h >>conftest.$ac_ext
8684cat >>conftest.$ac_ext <<_ACEOF
8685/* end confdefs.h. */
d28f9cdf 8686
bec39cab
AC
8687/* Override any gcc2 internal prototype to avoid an error. */
8688#ifdef __cplusplus
8689extern "C"
d28f9cdf 8690#endif
bec39cab
AC
8691/* We use char because int might match the return type of a gcc2
8692 builtin and then its argument prototype would still apply. */
8693char opendir ();
8694int
8695main ()
8696{
8697opendir ();
8698 ;
8699 return 0;
8700}
8701_ACEOF
8702rm -f conftest.$ac_objext conftest$ac_exeext
8703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704 (eval $ac_link) 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag"
8712 || test ! -s conftest.err'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; } &&
8718 { ac_try='test -s conftest$ac_exeext'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 (eval $ac_try) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 ac_cv_search_opendir="-l$ac_lib"
8725break
d28f9cdf 8726else
bec39cab
AC
8727 echo "$as_me: failed program was:" >&5
8728sed 's/^/| /' conftest.$ac_ext >&5
8729
d28f9cdf 8730fi
bec39cab
AC
8731rm -f conftest.err conftest.$ac_objext \
8732 conftest$ac_exeext conftest.$ac_ext
8733 done
8734fi
8735LIBS=$ac_func_search_save_LIBS
d28f9cdf 8736fi
bec39cab
AC
8737echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8738echo "${ECHO_T}$ac_cv_search_opendir" >&6
8739if test "$ac_cv_search_opendir" != no; then
8740 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 8741
d28f9cdf
DJ
8742fi
8743
bec39cab 8744fi
b0b1c2c0 8745
bec39cab
AC
8746echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8747echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8748if test "${ac_cv_header_stat_broken+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 8750else
bec39cab
AC
8751 cat >conftest.$ac_ext <<_ACEOF
8752/* confdefs.h. */
8753_ACEOF
8754cat confdefs.h >>conftest.$ac_ext
8755cat >>conftest.$ac_ext <<_ACEOF
8756/* end confdefs.h. */
8757#include <sys/types.h>
8758#include <sys/stat.h>
b0b1c2c0 8759
bec39cab
AC
8760#if defined(S_ISBLK) && defined(S_IFDIR)
8761# if S_ISBLK (S_IFDIR)
8762You lose.
8763# endif
8764#endif
b0b1c2c0 8765
bec39cab
AC
8766#if defined(S_ISBLK) && defined(S_IFCHR)
8767# if S_ISBLK (S_IFCHR)
8768You lose.
8769# endif
8770#endif
d28f9cdf 8771
bec39cab
AC
8772#if defined(S_ISLNK) && defined(S_IFREG)
8773# if S_ISLNK (S_IFREG)
8774You lose.
8775# endif
8776#endif
d28f9cdf 8777
bec39cab
AC
8778#if defined(S_ISSOCK) && defined(S_IFREG)
8779# if S_ISSOCK (S_IFREG)
8780You lose.
8781# endif
8782#endif
8783
8784_ACEOF
8785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8786 $EGREP "You lose" >/dev/null 2>&1; then
8787 ac_cv_header_stat_broken=yes
d28f9cdf 8788else
bec39cab 8789 ac_cv_header_stat_broken=no
d28f9cdf
DJ
8790fi
8791rm -f conftest*
d28f9cdf 8792
d28f9cdf 8793fi
bec39cab
AC
8794echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8795echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8796if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 8797
bec39cab
AC
8798cat >>confdefs.h <<\_ACEOF
8799#define STAT_MACROS_BROKEN 1
8800_ACEOF
8bb2c122 8801
7a292a7a 8802fi
bec39cab
AC
8803
8804echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8805echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8806if test "${ac_cv_header_stdc+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 8808else
bec39cab
AC
8809 cat >conftest.$ac_ext <<_ACEOF
8810/* confdefs.h. */
8811_ACEOF
8812cat confdefs.h >>conftest.$ac_ext
8813cat >>conftest.$ac_ext <<_ACEOF
8814/* end confdefs.h. */
8815#include <stdlib.h>
8816#include <stdarg.h>
8817#include <string.h>
8818#include <float.h>
7a292a7a 8819
bec39cab
AC
8820int
8821main ()
8822{
7a292a7a 8823
bec39cab
AC
8824 ;
8825 return 0;
8826}
8827_ACEOF
8828rm -f conftest.$ac_objext
8829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8830 (eval $ac_compile) 2>conftest.er1
8831 ac_status=$?
8832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } &&
8837 { ac_try='test -z "$ac_c_werror_flag"
8838 || test ! -s conftest.err'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; } &&
8844 { ac_try='test -s conftest.$ac_objext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 (eval $ac_try) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 ac_cv_header_stdc=yes
c906108c 8851else
bec39cab
AC
8852 echo "$as_me: failed program was:" >&5
8853sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8854
bec39cab 8855ac_cv_header_stdc=no
c906108c 8856fi
bec39cab 8857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 8858
bec39cab
AC
8859if test $ac_cv_header_stdc = yes; then
8860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8861 cat >conftest.$ac_ext <<_ACEOF
8862/* confdefs.h. */
8863_ACEOF
8864cat confdefs.h >>conftest.$ac_ext
8865cat >>conftest.$ac_ext <<_ACEOF
8866/* end confdefs.h. */
8867#include <string.h>
c906108c 8868
bec39cab
AC
8869_ACEOF
8870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8871 $EGREP "memchr" >/dev/null 2>&1; then
8872 :
8bb2c122 8873else
bec39cab 8874 ac_cv_header_stdc=no
8bb2c122 8875fi
bec39cab
AC
8876rm -f conftest*
8877
c906108c
SS
8878fi
8879
bec39cab
AC
8880if test $ac_cv_header_stdc = yes; then
8881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8882 cat >conftest.$ac_ext <<_ACEOF
8883/* confdefs.h. */
8884_ACEOF
8885cat confdefs.h >>conftest.$ac_ext
8886cat >>conftest.$ac_ext <<_ACEOF
8887/* end confdefs.h. */
8888#include <stdlib.h>
8889
8890_ACEOF
8891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8892 $EGREP "free" >/dev/null 2>&1; then
8893 :
c906108c 8894else
bec39cab 8895 ac_cv_header_stdc=no
c906108c 8896fi
bec39cab
AC
8897rm -f conftest*
8898
c906108c
SS
8899fi
8900
bec39cab
AC
8901if test $ac_cv_header_stdc = yes; then
8902 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8903 if test "$cross_compiling" = yes; then
8904 :
c906108c 8905else
bec39cab
AC
8906 cat >conftest.$ac_ext <<_ACEOF
8907/* confdefs.h. */
8908_ACEOF
8909cat confdefs.h >>conftest.$ac_ext
8910cat >>conftest.$ac_ext <<_ACEOF
8911/* end confdefs.h. */
8912#include <ctype.h>
8913#if ((' ' & 0x0FF) == 0x020)
8914# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8915# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8916#else
8917# define ISLOWER(c) \
8918 (('a' <= (c) && (c) <= 'i') \
8919 || ('j' <= (c) && (c) <= 'r') \
8920 || ('s' <= (c) && (c) <= 'z'))
8921# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8922#endif
8923
8924#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8925int
8926main ()
8927{
8928 int i;
8929 for (i = 0; i < 256; i++)
8930 if (XOR (islower (i), ISLOWER (i))
8931 || toupper (i) != TOUPPER (i))
8932 exit(2);
8933 exit (0);
8934}
8935_ACEOF
8936rm -f conftest$ac_exeext
8937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938 (eval $ac_link) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 :
8948else
8949 echo "$as_me: program exited with status $ac_status" >&5
8950echo "$as_me: failed program was:" >&5
8951sed 's/^/| /' conftest.$ac_ext >&5
8952
8953( exit $ac_status )
8954ac_cv_header_stdc=no
c906108c 8955fi
bec39cab 8956rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 8957fi
c906108c 8958fi
bec39cab
AC
8959fi
8960echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8961echo "${ECHO_T}$ac_cv_header_stdc" >&6
8962if test $ac_cv_header_stdc = yes; then
c906108c 8963
bec39cab
AC
8964cat >>confdefs.h <<\_ACEOF
8965#define STDC_HEADERS 1
8966_ACEOF
c906108c 8967
bec39cab 8968fi
8bb2c122 8969
bec39cab 8970
7cb9022a 8971for ac_header in nlist.h
bec39cab
AC
8972do
8973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8974if eval "test \"\${$as_ac_Header+set}\" = set"; then
8975 echo "$as_me:$LINENO: checking for $ac_header" >&5
8976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8977if eval "test \"\${$as_ac_Header+set}\" = set"; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8979fi
8980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8982else
8983 # Is the header compilable?
8984echo "$as_me:$LINENO: checking $ac_header usability" >&5
8985echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8986cat >conftest.$ac_ext <<_ACEOF
8987/* confdefs.h. */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
8991/* end confdefs.h. */
8992$ac_includes_default
8993#include <$ac_header>
8994_ACEOF
8995rm -f conftest.$ac_objext
8996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8997 (eval $ac_compile) 2>conftest.er1
8998 ac_status=$?
8999 grep -v '^ *+' conftest.er1 >conftest.err
9000 rm -f conftest.er1
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -z "$ac_c_werror_flag"
9005 || test ! -s conftest.err'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 (eval $ac_try) 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; } &&
9011 { ac_try='test -s conftest.$ac_objext'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 (eval $ac_try) 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_header_compiler=yes
9018else
9019 echo "$as_me: failed program was:" >&5
9020sed 's/^/| /' conftest.$ac_ext >&5
9021
9022ac_header_compiler=no
9023fi
9024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9025echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9026echo "${ECHO_T}$ac_header_compiler" >&6
9027
9028# Is the header present?
9029echo "$as_me:$LINENO: checking $ac_header presence" >&5
9030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9031cat >conftest.$ac_ext <<_ACEOF
9032/* confdefs.h. */
9033_ACEOF
9034cat confdefs.h >>conftest.$ac_ext
9035cat >>conftest.$ac_ext <<_ACEOF
9036/* end confdefs.h. */
9037#include <$ac_header>
9038_ACEOF
9039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } >/dev/null; then
9047 if test -s conftest.err; then
9048 ac_cpp_err=$ac_c_preproc_warn_flag
9049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9050 else
9051 ac_cpp_err=
9052 fi
c906108c 9053else
bec39cab 9054 ac_cpp_err=yes
c906108c 9055fi
bec39cab
AC
9056if test -z "$ac_cpp_err"; then
9057 ac_header_preproc=yes
c906108c 9058else
bec39cab
AC
9059 echo "$as_me: failed program was:" >&5
9060sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 9061
bec39cab
AC
9062 ac_header_preproc=no
9063fi
9064rm -f conftest.err conftest.$ac_ext
9065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9066echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 9067
bec39cab
AC
9068# So? What about this header?
9069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9070 yes:no: )
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9075 ac_header_preproc=yes
9076 ;;
9077 no:yes:* )
9078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9081echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9085echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9090 (
9091 cat <<\_ASBOX
9092## ------------------------------------------ ##
9093## Report this to the AC_PACKAGE_NAME lists. ##
9094## ------------------------------------------ ##
9095_ASBOX
9096 ) |
9097 sed "s/^/$as_me: WARNING: /" >&2
9098 ;;
9099esac
9100echo "$as_me:$LINENO: checking for $ac_header" >&5
9101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9102if eval "test \"\${$as_ac_Header+set}\" = set"; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 9104else
bec39cab 9105 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 9106fi
bec39cab
AC
9107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9109
95ca63c4 9110fi
bec39cab
AC
9111if test `eval echo '${'$as_ac_Header'}'` = yes; then
9112 cat >>confdefs.h <<_ACEOF
9113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9114_ACEOF
9115
95ca63c4
CF
9116fi
9117
bec39cab 9118done
95ca63c4
CF
9119
9120
7cb9022a 9121for ac_header in link.h
bec39cab
AC
9122do
9123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 9124echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
9125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9126if eval "test \"\${$as_ac_Header+set}\" = set"; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9128else
7cb9022a 9129 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9130/* confdefs.h. */
9131_ACEOF
9132cat confdefs.h >>conftest.$ac_ext
9133cat >>conftest.$ac_ext <<_ACEOF
9134/* end confdefs.h. */
7cb9022a
MK
9135#if HAVE_SYS_TYPES_H
9136# include <sys/types.h>
9137#endif
9138#if HAVE_NLIST_H
9139# include <nlist.h>
9140#endif
9141
9142
bec39cab
AC
9143#include <$ac_header>
9144_ACEOF
9145rm -f conftest.$ac_objext
9146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9147 (eval $ac_compile) 2>conftest.er1
9148 ac_status=$?
9149 grep -v '^ *+' conftest.er1 >conftest.err
9150 rm -f conftest.er1
9151 cat conftest.err >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } &&
9154 { ac_try='test -z "$ac_c_werror_flag"
9155 || test ! -s conftest.err'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 (eval $ac_try) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; } &&
9161 { ac_try='test -s conftest.$ac_objext'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 (eval $ac_try) 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
7cb9022a 9167 eval "$as_ac_Header=yes"
bec39cab
AC
9168else
9169 echo "$as_me: failed program was:" >&5
9170sed 's/^/| /' conftest.$ac_ext >&5
9171
7cb9022a 9172eval "$as_ac_Header=no"
bec39cab
AC
9173fi
9174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
9175fi
9176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9178if test `eval echo '${'$as_ac_Header'}'` = yes; then
9179 cat >>confdefs.h <<_ACEOF
9180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9181_ACEOF
95ca63c4 9182
bec39cab 9183fi
95ca63c4 9184
bec39cab 9185done
95ca63c4 9186
c906108c 9187
7cb9022a 9188for ac_header in machine/reg.h
bec39cab
AC
9189do
9190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9191if eval "test \"\${$as_ac_Header+set}\" = set"; then
9192 echo "$as_me:$LINENO: checking for $ac_header" >&5
9193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9194if eval "test \"\${$as_ac_Header+set}\" = set"; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196fi
9197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9199else
9200 # Is the header compilable?
9201echo "$as_me:$LINENO: checking $ac_header usability" >&5
9202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9203cat >conftest.$ac_ext <<_ACEOF
9204/* confdefs.h. */
9205_ACEOF
9206cat confdefs.h >>conftest.$ac_ext
9207cat >>conftest.$ac_ext <<_ACEOF
9208/* end confdefs.h. */
9209$ac_includes_default
9210#include <$ac_header>
9211_ACEOF
9212rm -f conftest.$ac_objext
9213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9214 (eval $ac_compile) 2>conftest.er1
9215 ac_status=$?
9216 grep -v '^ *+' conftest.er1 >conftest.err
9217 rm -f conftest.er1
9218 cat conftest.err >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } &&
9221 { ac_try='test -z "$ac_c_werror_flag"
9222 || test ! -s conftest.err'
9223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 (eval $ac_try) 2>&5
9225 ac_status=$?
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; } &&
9228 { ac_try='test -s conftest.$ac_objext'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 (eval $ac_try) 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; }; then
9234 ac_header_compiler=yes
9235else
9236 echo "$as_me: failed program was:" >&5
9237sed 's/^/| /' conftest.$ac_ext >&5
9238
9239ac_header_compiler=no
9240fi
9241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9243echo "${ECHO_T}$ac_header_compiler" >&6
9244
9245# Is the header present?
9246echo "$as_me:$LINENO: checking $ac_header presence" >&5
9247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9248cat >conftest.$ac_ext <<_ACEOF
9249/* confdefs.h. */
9250_ACEOF
9251cat confdefs.h >>conftest.$ac_ext
9252cat >>conftest.$ac_ext <<_ACEOF
9253/* end confdefs.h. */
9254#include <$ac_header>
9255_ACEOF
9256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9258 ac_status=$?
9259 grep -v '^ *+' conftest.er1 >conftest.err
9260 rm -f conftest.er1
9261 cat conftest.err >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } >/dev/null; then
9264 if test -s conftest.err; then
9265 ac_cpp_err=$ac_c_preproc_warn_flag
9266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9267 else
9268 ac_cpp_err=
9269 fi
75c6e08a 9270else
bec39cab 9271 ac_cpp_err=yes
75c6e08a 9272fi
bec39cab
AC
9273if test -z "$ac_cpp_err"; then
9274 ac_header_preproc=yes
9275else
9276 echo "$as_me: failed program was:" >&5
9277sed 's/^/| /' conftest.$ac_ext >&5
9278
9279 ac_header_preproc=no
75c6e08a 9280fi
bec39cab
AC
9281rm -f conftest.err conftest.$ac_ext
9282echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9283echo "${ECHO_T}$ac_header_preproc" >&6
9284
9285# So? What about this header?
9286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9287 yes:no: )
9288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9292 ac_header_preproc=yes
9293 ;;
9294 no:yes:* )
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9298echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9302echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9307 (
9308 cat <<\_ASBOX
9309## ------------------------------------------ ##
9310## Report this to the AC_PACKAGE_NAME lists. ##
9311## ------------------------------------------ ##
9312_ASBOX
9313 ) |
9314 sed "s/^/$as_me: WARNING: /" >&2
9315 ;;
9316esac
9317echo "$as_me:$LINENO: checking for $ac_header" >&5
9318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9319if eval "test \"\${$as_ac_Header+set}\" = set"; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 9321else
bec39cab
AC
9322 eval "$as_ac_Header=\$ac_header_preproc"
9323fi
9324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9326
75c6e08a 9327fi
bec39cab
AC
9328if test `eval echo '${'$as_ac_Header'}'` = yes; then
9329 cat >>confdefs.h <<_ACEOF
9330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9331_ACEOF
75c6e08a 9332
bec39cab 9333fi
75c6e08a 9334
bec39cab 9335done
75c6e08a
MK
9336
9337
9a156167 9338
bec39cab
AC
9339for ac_header in poll.h sys/poll.h
9340do
9341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9342if eval "test \"\${$as_ac_Header+set}\" = set"; then
9343 echo "$as_me:$LINENO: checking for $ac_header" >&5
9344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9345if eval "test \"\${$as_ac_Header+set}\" = set"; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9347fi
9348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9350else
9351 # Is the header compilable?
9352echo "$as_me:$LINENO: checking $ac_header usability" >&5
9353echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9354cat >conftest.$ac_ext <<_ACEOF
9355/* confdefs.h. */
9356_ACEOF
9357cat confdefs.h >>conftest.$ac_ext
9358cat >>conftest.$ac_ext <<_ACEOF
9359/* end confdefs.h. */
9360$ac_includes_default
9361#include <$ac_header>
9362_ACEOF
9363rm -f conftest.$ac_objext
9364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9365 (eval $ac_compile) 2>conftest.er1
9366 ac_status=$?
9367 grep -v '^ *+' conftest.er1 >conftest.err
9368 rm -f conftest.er1
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try='test -z "$ac_c_werror_flag"
9373 || test ! -s conftest.err'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 (eval $ac_try) 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; } &&
9379 { ac_try='test -s conftest.$ac_objext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 (eval $ac_try) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 ac_header_compiler=yes
9386else
9387 echo "$as_me: failed program was:" >&5
9388sed 's/^/| /' conftest.$ac_ext >&5
9389
9390ac_header_compiler=no
9391fi
9392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9393echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9394echo "${ECHO_T}$ac_header_compiler" >&6
9395
9396# Is the header present?
9397echo "$as_me:$LINENO: checking $ac_header presence" >&5
9398echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9399cat >conftest.$ac_ext <<_ACEOF
9400/* confdefs.h. */
9401_ACEOF
9402cat confdefs.h >>conftest.$ac_ext
9403cat >>conftest.$ac_ext <<_ACEOF
9404/* end confdefs.h. */
9405#include <$ac_header>
9406_ACEOF
9407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9409 ac_status=$?
9410 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } >/dev/null; then
9415 if test -s conftest.err; then
9416 ac_cpp_err=$ac_c_preproc_warn_flag
9417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9418 else
9419 ac_cpp_err=
9420 fi
9a156167 9421else
bec39cab 9422 ac_cpp_err=yes
9a156167 9423fi
bec39cab
AC
9424if test -z "$ac_cpp_err"; then
9425 ac_header_preproc=yes
9426else
9427 echo "$as_me: failed program was:" >&5
9428sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9429
bec39cab 9430 ac_header_preproc=no
9a156167 9431fi
bec39cab
AC
9432rm -f conftest.err conftest.$ac_ext
9433echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9434echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9435
bec39cab
AC
9436# So? What about this header?
9437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9438 yes:no: )
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9440echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9442echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9443 ac_header_preproc=yes
9444 ;;
9445 no:yes:* )
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9449echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9451echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9453echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9457echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9458 (
9459 cat <<\_ASBOX
9460## ------------------------------------------ ##
9461## Report this to the AC_PACKAGE_NAME lists. ##
9462## ------------------------------------------ ##
9463_ASBOX
9464 ) |
9465 sed "s/^/$as_me: WARNING: /" >&2
9466 ;;
9467esac
9468echo "$as_me:$LINENO: checking for $ac_header" >&5
9469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9470if eval "test \"\${$as_ac_Header+set}\" = set"; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9472else
bec39cab 9473 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9474fi
bec39cab
AC
9475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9476echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 9477
bec39cab
AC
9478fi
9479if test `eval echo '${'$as_ac_Header'}'` = yes; then
9480 cat >>confdefs.h <<_ACEOF
9481#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9482_ACEOF
9a156167 9483
bec39cab 9484fi
9a156167 9485
bec39cab 9486done
9a156167 9487
9a156167 9488
9a156167 9489
bec39cab
AC
9490
9491for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9492do
9493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9494if eval "test \"\${$as_ac_Header+set}\" = set"; then
9495 echo "$as_me:$LINENO: checking for $ac_header" >&5
9496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9497if eval "test \"\${$as_ac_Header+set}\" = set"; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9499fi
9500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9502else
9503 # Is the header compilable?
9504echo "$as_me:$LINENO: checking $ac_header usability" >&5
9505echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9506cat >conftest.$ac_ext <<_ACEOF
9507/* confdefs.h. */
9508_ACEOF
9509cat confdefs.h >>conftest.$ac_ext
9510cat >>conftest.$ac_ext <<_ACEOF
9511/* end confdefs.h. */
9512$ac_includes_default
9513#include <$ac_header>
9514_ACEOF
9515rm -f conftest.$ac_objext
9516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517 (eval $ac_compile) 2>conftest.er1
9518 ac_status=$?
9519 grep -v '^ *+' conftest.er1 >conftest.err
9520 rm -f conftest.er1
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try='test -z "$ac_c_werror_flag"
9525 || test ! -s conftest.err'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 (eval $ac_try) 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try='test -s conftest.$ac_objext'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 (eval $ac_try) 2>&5
9534 ac_status=$?
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 ac_header_compiler=yes
9538else
9539 echo "$as_me: failed program was:" >&5
9540sed 's/^/| /' conftest.$ac_ext >&5
9541
9542ac_header_compiler=no
9543fi
9544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9545echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9546echo "${ECHO_T}$ac_header_compiler" >&6
9547
9548# Is the header present?
9549echo "$as_me:$LINENO: checking $ac_header presence" >&5
9550echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9551cat >conftest.$ac_ext <<_ACEOF
9552/* confdefs.h. */
9553_ACEOF
9554cat confdefs.h >>conftest.$ac_ext
9555cat >>conftest.$ac_ext <<_ACEOF
9556/* end confdefs.h. */
9557#include <$ac_header>
9558_ACEOF
9559if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9561 ac_status=$?
9562 grep -v '^ *+' conftest.er1 >conftest.err
9563 rm -f conftest.er1
9564 cat conftest.err >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } >/dev/null; then
9567 if test -s conftest.err; then
9568 ac_cpp_err=$ac_c_preproc_warn_flag
9569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9570 else
9571 ac_cpp_err=
9572 fi
9a156167 9573else
bec39cab 9574 ac_cpp_err=yes
9a156167 9575fi
bec39cab
AC
9576if test -z "$ac_cpp_err"; then
9577 ac_header_preproc=yes
9578else
9579 echo "$as_me: failed program was:" >&5
9580sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9581
bec39cab 9582 ac_header_preproc=no
9a156167 9583fi
bec39cab
AC
9584rm -f conftest.err conftest.$ac_ext
9585echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9586echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9587
bec39cab
AC
9588# So? What about this header?
9589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9590 yes:no: )
9591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9592echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9594echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9595 ac_header_preproc=yes
9596 ;;
9597 no:yes:* )
9598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9599echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9601echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9603echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9605echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9607echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9609echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9610 (
9611 cat <<\_ASBOX
9612## ------------------------------------------ ##
9613## Report this to the AC_PACKAGE_NAME lists. ##
9614## ------------------------------------------ ##
9615_ASBOX
9616 ) |
9617 sed "s/^/$as_me: WARNING: /" >&2
9618 ;;
9619esac
9620echo "$as_me:$LINENO: checking for $ac_header" >&5
9621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9622if eval "test \"\${$as_ac_Header+set}\" = set"; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9624else
bec39cab 9625 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9626fi
bec39cab
AC
9627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
9629
9630fi
bec39cab
AC
9631if test `eval echo '${'$as_ac_Header'}'` = yes; then
9632 cat >>confdefs.h <<_ACEOF
9633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9634_ACEOF
9a156167 9635
bec39cab
AC
9636fi
9637
9638done
9a156167 9639
c890192f 9640
bec39cab
AC
9641for ac_header in stddef.h
9642do
9643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9644if eval "test \"\${$as_ac_Header+set}\" = set"; then
9645 echo "$as_me:$LINENO: checking for $ac_header" >&5
9646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9647if eval "test \"\${$as_ac_Header+set}\" = set"; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649fi
9650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9652else
9653 # Is the header compilable?
9654echo "$as_me:$LINENO: checking $ac_header usability" >&5
9655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9656cat >conftest.$ac_ext <<_ACEOF
9657/* confdefs.h. */
9658_ACEOF
9659cat confdefs.h >>conftest.$ac_ext
9660cat >>conftest.$ac_ext <<_ACEOF
9661/* end confdefs.h. */
9662$ac_includes_default
9663#include <$ac_header>
9664_ACEOF
9665rm -f conftest.$ac_objext
9666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9667 (eval $ac_compile) 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try='test -z "$ac_c_werror_flag"
9675 || test ! -s conftest.err'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try='test -s conftest.$ac_objext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 ac_header_compiler=yes
9688else
9689 echo "$as_me: failed program was:" >&5
9690sed 's/^/| /' conftest.$ac_ext >&5
9691
9692ac_header_compiler=no
9693fi
9694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9696echo "${ECHO_T}$ac_header_compiler" >&6
9697
9698# Is the header present?
9699echo "$as_me:$LINENO: checking $ac_header presence" >&5
9700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9701cat >conftest.$ac_ext <<_ACEOF
9702/* confdefs.h. */
9703_ACEOF
9704cat confdefs.h >>conftest.$ac_ext
9705cat >>conftest.$ac_ext <<_ACEOF
9706/* end confdefs.h. */
9707#include <$ac_header>
9708_ACEOF
9709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } >/dev/null; then
9717 if test -s conftest.err; then
9718 ac_cpp_err=$ac_c_preproc_warn_flag
9719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9720 else
9721 ac_cpp_err=
9722 fi
c890192f 9723else
bec39cab
AC
9724 ac_cpp_err=yes
9725fi
9726if test -z "$ac_cpp_err"; then
9727 ac_header_preproc=yes
c890192f 9728else
bec39cab
AC
9729 echo "$as_me: failed program was:" >&5
9730sed 's/^/| /' conftest.$ac_ext >&5
9731
9732 ac_header_preproc=no
c890192f 9733fi
bec39cab
AC
9734rm -f conftest.err conftest.$ac_ext
9735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9736echo "${ECHO_T}$ac_header_preproc" >&6
9737
9738# So? What about this header?
9739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9740 yes:no: )
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9745 ac_header_preproc=yes
9746 ;;
9747 no:yes:* )
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9751echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9755echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9760 (
9761 cat <<\_ASBOX
9762## ------------------------------------------ ##
9763## Report this to the AC_PACKAGE_NAME lists. ##
9764## ------------------------------------------ ##
9765_ASBOX
9766 ) |
9767 sed "s/^/$as_me: WARNING: /" >&2
9768 ;;
9769esac
9770echo "$as_me:$LINENO: checking for $ac_header" >&5
9771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9772if eval "test \"\${$as_ac_Header+set}\" = set"; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 9774else
bec39cab 9775 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 9776fi
bec39cab
AC
9777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9779
c890192f 9780fi
bec39cab
AC
9781if test `eval echo '${'$as_ac_Header'}'` = yes; then
9782 cat >>confdefs.h <<_ACEOF
9783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9784_ACEOF
c890192f 9785
c890192f
MK
9786fi
9787
bec39cab 9788done
9a156167 9789
bec39cab
AC
9790
9791for ac_header in stdlib.h
9792do
9793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9794if eval "test \"\${$as_ac_Header+set}\" = set"; then
9795 echo "$as_me:$LINENO: checking for $ac_header" >&5
9796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9797if eval "test \"\${$as_ac_Header+set}\" = set"; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9799fi
9800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9802else
9803 # Is the header compilable?
9804echo "$as_me:$LINENO: checking $ac_header usability" >&5
9805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9806cat >conftest.$ac_ext <<_ACEOF
9807/* confdefs.h. */
9808_ACEOF
9809cat confdefs.h >>conftest.$ac_ext
9810cat >>conftest.$ac_ext <<_ACEOF
9811/* end confdefs.h. */
9812$ac_includes_default
9813#include <$ac_header>
9814_ACEOF
9815rm -f conftest.$ac_objext
9816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9817 (eval $ac_compile) 2>conftest.er1
9818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } &&
9824 { ac_try='test -z "$ac_c_werror_flag"
9825 || test ! -s conftest.err'
9826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 (eval $ac_try) 2>&5
9828 ac_status=$?
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); }; } &&
9831 { ac_try='test -s conftest.$ac_objext'
9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 (eval $ac_try) 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; }; then
9837 ac_header_compiler=yes
9838else
9839 echo "$as_me: failed program was:" >&5
9840sed 's/^/| /' conftest.$ac_ext >&5
9841
9842ac_header_compiler=no
9843fi
9844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9845echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9846echo "${ECHO_T}$ac_header_compiler" >&6
9847
9848# Is the header present?
9849echo "$as_me:$LINENO: checking $ac_header presence" >&5
9850echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9851cat >conftest.$ac_ext <<_ACEOF
9852/* confdefs.h. */
9853_ACEOF
9854cat confdefs.h >>conftest.$ac_ext
9855cat >>conftest.$ac_ext <<_ACEOF
9856/* end confdefs.h. */
9857#include <$ac_header>
9858_ACEOF
9859if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } >/dev/null; then
9867 if test -s conftest.err; then
9868 ac_cpp_err=$ac_c_preproc_warn_flag
9869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9870 else
9871 ac_cpp_err=
9872 fi
9a156167 9873else
bec39cab
AC
9874 ac_cpp_err=yes
9875fi
9876if test -z "$ac_cpp_err"; then
9877 ac_header_preproc=yes
9a156167 9878else
bec39cab
AC
9879 echo "$as_me: failed program was:" >&5
9880sed 's/^/| /' conftest.$ac_ext >&5
9881
9882 ac_header_preproc=no
9a156167 9883fi
bec39cab
AC
9884rm -f conftest.err conftest.$ac_ext
9885echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9886echo "${ECHO_T}$ac_header_preproc" >&6
9887
9888# So? What about this header?
9889case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9890 yes:no: )
9891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9892echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9894echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9895 ac_header_preproc=yes
9896 ;;
9897 no:yes:* )
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9899echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9901echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9903echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9905echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9907echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9909echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9910 (
9911 cat <<\_ASBOX
9912## ------------------------------------------ ##
9913## Report this to the AC_PACKAGE_NAME lists. ##
9914## ------------------------------------------ ##
9915_ASBOX
9916 ) |
9917 sed "s/^/$as_me: WARNING: /" >&2
9918 ;;
9919esac
9920echo "$as_me:$LINENO: checking for $ac_header" >&5
9921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9922if eval "test \"\${$as_ac_Header+set}\" = set"; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9924else
bec39cab 9925 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9926fi
bec39cab
AC
9927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9929
9a156167 9930fi
bec39cab
AC
9931if test `eval echo '${'$as_ac_Header'}'` = yes; then
9932 cat >>confdefs.h <<_ACEOF
9933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9934_ACEOF
9a156167 9935
9a156167
MK
9936fi
9937
bec39cab
AC
9938done
9939
06825bd1 9940
bec39cab
AC
9941for ac_header in stdint.h
9942do
9943as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9944if eval "test \"\${$as_ac_Header+set}\" = set"; then
9945 echo "$as_me:$LINENO: checking for $ac_header" >&5
9946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9947if eval "test \"\${$as_ac_Header+set}\" = set"; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949fi
9950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9951echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9952else
9953 # Is the header compilable?
9954echo "$as_me:$LINENO: checking $ac_header usability" >&5
9955echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9956cat >conftest.$ac_ext <<_ACEOF
9957/* confdefs.h. */
9958_ACEOF
9959cat confdefs.h >>conftest.$ac_ext
9960cat >>conftest.$ac_ext <<_ACEOF
9961/* end confdefs.h. */
9962$ac_includes_default
9963#include <$ac_header>
9964_ACEOF
9965rm -f conftest.$ac_objext
9966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9967 (eval $ac_compile) 2>conftest.er1
9968 ac_status=$?
9969 grep -v '^ *+' conftest.er1 >conftest.err
9970 rm -f conftest.er1
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -z "$ac_c_werror_flag"
9975 || test ! -s conftest.err'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; } &&
9981 { ac_try='test -s conftest.$ac_objext'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983 (eval $ac_try) 2>&5
9984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 ac_header_compiler=yes
9988else
9989 echo "$as_me: failed program was:" >&5
9990sed 's/^/| /' conftest.$ac_ext >&5
9991
9992ac_header_compiler=no
9993fi
9994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9995echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9996echo "${ECHO_T}$ac_header_compiler" >&6
9997
9998# Is the header present?
9999echo "$as_me:$LINENO: checking $ac_header presence" >&5
10000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10001cat >conftest.$ac_ext <<_ACEOF
10002/* confdefs.h. */
10003_ACEOF
10004cat confdefs.h >>conftest.$ac_ext
10005cat >>conftest.$ac_ext <<_ACEOF
10006/* end confdefs.h. */
10007#include <$ac_header>
10008_ACEOF
10009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } >/dev/null; then
10017 if test -s conftest.err; then
10018 ac_cpp_err=$ac_c_preproc_warn_flag
10019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10020 else
10021 ac_cpp_err=
10022 fi
06825bd1 10023else
bec39cab
AC
10024 ac_cpp_err=yes
10025fi
10026if test -z "$ac_cpp_err"; then
10027 ac_header_preproc=yes
06825bd1 10028else
bec39cab
AC
10029 echo "$as_me: failed program was:" >&5
10030sed 's/^/| /' conftest.$ac_ext >&5
10031
10032 ac_header_preproc=no
06825bd1 10033fi
bec39cab
AC
10034rm -f conftest.err conftest.$ac_ext
10035echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10036echo "${ECHO_T}$ac_header_preproc" >&6
10037
10038# So? What about this header?
10039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10040 yes:no: )
10041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10042echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10044echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10045 ac_header_preproc=yes
10046 ;;
10047 no:yes:* )
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10049echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10051echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10053echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10055echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10057echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10059echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10060 (
10061 cat <<\_ASBOX
10062## ------------------------------------------ ##
10063## Report this to the AC_PACKAGE_NAME lists. ##
10064## ------------------------------------------ ##
10065_ASBOX
10066 ) |
10067 sed "s/^/$as_me: WARNING: /" >&2
10068 ;;
10069esac
10070echo "$as_me:$LINENO: checking for $ac_header" >&5
10071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10072if eval "test \"\${$as_ac_Header+set}\" = set"; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 10074else
bec39cab 10075 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10076fi
bec39cab
AC
10077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10078echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10079
06825bd1 10080fi
bec39cab
AC
10081if test `eval echo '${'$as_ac_Header'}'` = yes; then
10082 cat >>confdefs.h <<_ACEOF
10083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10084_ACEOF
06825bd1 10085
06825bd1 10086fi
4f0be353 10087
bec39cab 10088done
4f0be353 10089
06825bd1 10090
06825bd1 10091
bec39cab
AC
10092
10093for ac_header in string.h memory.h strings.h
10094do
10095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10096if eval "test \"\${$as_ac_Header+set}\" = set"; then
10097 echo "$as_me:$LINENO: checking for $ac_header" >&5
10098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10099if eval "test \"\${$as_ac_Header+set}\" = set"; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101fi
10102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10104else
10105 # Is the header compilable?
10106echo "$as_me:$LINENO: checking $ac_header usability" >&5
10107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10108cat >conftest.$ac_ext <<_ACEOF
10109/* confdefs.h. */
10110_ACEOF
10111cat confdefs.h >>conftest.$ac_ext
10112cat >>conftest.$ac_ext <<_ACEOF
10113/* end confdefs.h. */
10114$ac_includes_default
10115#include <$ac_header>
10116_ACEOF
10117rm -f conftest.$ac_objext
10118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10119 (eval $ac_compile) 2>conftest.er1
10120 ac_status=$?
10121 grep -v '^ *+' conftest.er1 >conftest.err
10122 rm -f conftest.er1
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } &&
10126 { ac_try='test -z "$ac_c_werror_flag"
10127 || test ! -s conftest.err'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; } &&
10133 { ac_try='test -s conftest.$ac_objext'
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 ac_header_compiler=yes
10140else
10141 echo "$as_me: failed program was:" >&5
10142sed 's/^/| /' conftest.$ac_ext >&5
10143
10144ac_header_compiler=no
10145fi
10146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10147echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10148echo "${ECHO_T}$ac_header_compiler" >&6
10149
10150# Is the header present?
10151echo "$as_me:$LINENO: checking $ac_header presence" >&5
10152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10153cat >conftest.$ac_ext <<_ACEOF
10154/* confdefs.h. */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h. */
10159#include <$ac_header>
10160_ACEOF
10161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } >/dev/null; then
10169 if test -s conftest.err; then
10170 ac_cpp_err=$ac_c_preproc_warn_flag
10171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10172 else
10173 ac_cpp_err=
10174 fi
06825bd1 10175else
bec39cab
AC
10176 ac_cpp_err=yes
10177fi
10178if test -z "$ac_cpp_err"; then
10179 ac_header_preproc=yes
06825bd1 10180else
bec39cab
AC
10181 echo "$as_me: failed program was:" >&5
10182sed 's/^/| /' conftest.$ac_ext >&5
10183
10184 ac_header_preproc=no
06825bd1 10185fi
bec39cab
AC
10186rm -f conftest.err conftest.$ac_ext
10187echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10188echo "${ECHO_T}$ac_header_preproc" >&6
10189
10190# So? What about this header?
10191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10192 yes:no: )
10193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10194echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10196echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10197 ac_header_preproc=yes
10198 ;;
10199 no:yes:* )
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10201echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10203echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10205echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10207echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10211echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10212 (
10213 cat <<\_ASBOX
10214## ------------------------------------------ ##
10215## Report this to the AC_PACKAGE_NAME lists. ##
10216## ------------------------------------------ ##
10217_ASBOX
10218 ) |
10219 sed "s/^/$as_me: WARNING: /" >&2
10220 ;;
10221esac
10222echo "$as_me:$LINENO: checking for $ac_header" >&5
10223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10224if eval "test \"\${$as_ac_Header+set}\" = set"; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10226else
10227 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10228fi
bec39cab
AC
10229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 10231
06825bd1 10232fi
bec39cab
AC
10233if test `eval echo '${'$as_ac_Header'}'` = yes; then
10234 cat >>confdefs.h <<_ACEOF
10235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10236_ACEOF
06825bd1 10237
06825bd1
MK
10238fi
10239
bec39cab 10240done
5ee754fc 10241
bec39cab
AC
10242
10243for ac_header in sys/fault.h
5ee754fc 10244do
bec39cab
AC
10245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10246if eval "test \"\${$as_ac_Header+set}\" = set"; then
10247 echo "$as_me:$LINENO: checking for $ac_header" >&5
10248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10249if eval "test \"\${$as_ac_Header+set}\" = set"; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251fi
10252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10254else
10255 # Is the header compilable?
10256echo "$as_me:$LINENO: checking $ac_header usability" >&5
10257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10258cat >conftest.$ac_ext <<_ACEOF
10259/* confdefs.h. */
10260_ACEOF
10261cat confdefs.h >>conftest.$ac_ext
10262cat >>conftest.$ac_ext <<_ACEOF
10263/* end confdefs.h. */
10264$ac_includes_default
10265#include <$ac_header>
10266_ACEOF
10267rm -f conftest.$ac_objext
10268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10269 (eval $ac_compile) 2>conftest.er1
10270 ac_status=$?
10271 grep -v '^ *+' conftest.er1 >conftest.err
10272 rm -f conftest.er1
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } &&
10276 { ac_try='test -z "$ac_c_werror_flag"
10277 || test ! -s conftest.err'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; } &&
10283 { ac_try='test -s conftest.$ac_objext'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; }; then
10289 ac_header_compiler=yes
10290else
10291 echo "$as_me: failed program was:" >&5
10292sed 's/^/| /' conftest.$ac_ext >&5
10293
10294ac_header_compiler=no
10295fi
10296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10298echo "${ECHO_T}$ac_header_compiler" >&6
10299
10300# Is the header present?
10301echo "$as_me:$LINENO: checking $ac_header presence" >&5
10302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10303cat >conftest.$ac_ext <<_ACEOF
10304/* confdefs.h. */
10305_ACEOF
10306cat confdefs.h >>conftest.$ac_ext
10307cat >>conftest.$ac_ext <<_ACEOF
10308/* end confdefs.h. */
10309#include <$ac_header>
10310_ACEOF
10311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10313 ac_status=$?
10314 grep -v '^ *+' conftest.er1 >conftest.err
10315 rm -f conftest.er1
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } >/dev/null; then
10319 if test -s conftest.err; then
10320 ac_cpp_err=$ac_c_preproc_warn_flag
10321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10322 else
10323 ac_cpp_err=
10324 fi
5ee754fc 10325else
bec39cab 10326 ac_cpp_err=yes
5ee754fc 10327fi
bec39cab
AC
10328if test -z "$ac_cpp_err"; then
10329 ac_header_preproc=yes
10330else
10331 echo "$as_me: failed program was:" >&5
10332sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10333
bec39cab 10334 ac_header_preproc=no
5ee754fc 10335fi
bec39cab
AC
10336rm -f conftest.err conftest.$ac_ext
10337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10338echo "${ECHO_T}$ac_header_preproc" >&6
10339
10340# So? What about this header?
10341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10342 yes:no: )
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10347 ac_header_preproc=yes
10348 ;;
10349 no:yes:* )
10350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10357echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10362 (
10363 cat <<\_ASBOX
10364## ------------------------------------------ ##
10365## Report this to the AC_PACKAGE_NAME lists. ##
10366## ------------------------------------------ ##
10367_ASBOX
10368 ) |
10369 sed "s/^/$as_me: WARNING: /" >&2
10370 ;;
10371esac
10372echo "$as_me:$LINENO: checking for $ac_header" >&5
10373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10374if eval "test \"\${$as_ac_Header+set}\" = set"; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10376else
bec39cab 10377 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10378fi
bec39cab
AC
10379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 10381
5ee754fc 10382fi
bec39cab
AC
10383if test `eval echo '${'$as_ac_Header'}'` = yes; then
10384 cat >>confdefs.h <<_ACEOF
10385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10386_ACEOF
c906108c 10387
5ee754fc 10388fi
bec39cab
AC
10389
10390done
10391
10392
10393for ac_header in sys/file.h
10394do
10395as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10396if eval "test \"\${$as_ac_Header+set}\" = set"; then
10397 echo "$as_me:$LINENO: checking for $ac_header" >&5
10398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10399if eval "test \"\${$as_ac_Header+set}\" = set"; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401fi
10402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10404else
10405 # Is the header compilable?
10406echo "$as_me:$LINENO: checking $ac_header usability" >&5
10407echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10408cat >conftest.$ac_ext <<_ACEOF
10409/* confdefs.h. */
10410_ACEOF
10411cat confdefs.h >>conftest.$ac_ext
10412cat >>conftest.$ac_ext <<_ACEOF
10413/* end confdefs.h. */
10414$ac_includes_default
10415#include <$ac_header>
10416_ACEOF
10417rm -f conftest.$ac_objext
10418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10419 (eval $ac_compile) 2>conftest.er1
10420 ac_status=$?
10421 grep -v '^ *+' conftest.er1 >conftest.err
10422 rm -f conftest.er1
10423 cat conftest.err >&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } &&
10426 { ac_try='test -z "$ac_c_werror_flag"
10427 || test ! -s conftest.err'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try='test -s conftest.$ac_objext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_header_compiler=yes
10440else
10441 echo "$as_me: failed program was:" >&5
10442sed 's/^/| /' conftest.$ac_ext >&5
10443
10444ac_header_compiler=no
10445fi
10446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10447echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10448echo "${ECHO_T}$ac_header_compiler" >&6
10449
10450# Is the header present?
10451echo "$as_me:$LINENO: checking $ac_header presence" >&5
10452echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10453cat >conftest.$ac_ext <<_ACEOF
10454/* confdefs.h. */
10455_ACEOF
10456cat confdefs.h >>conftest.$ac_ext
10457cat >>conftest.$ac_ext <<_ACEOF
10458/* end confdefs.h. */
10459#include <$ac_header>
10460_ACEOF
10461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10463 ac_status=$?
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } >/dev/null; then
10469 if test -s conftest.err; then
10470 ac_cpp_err=$ac_c_preproc_warn_flag
10471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10472 else
10473 ac_cpp_err=
10474 fi
5ee754fc 10475else
bec39cab 10476 ac_cpp_err=yes
5ee754fc 10477fi
bec39cab
AC
10478if test -z "$ac_cpp_err"; then
10479 ac_header_preproc=yes
10480else
10481 echo "$as_me: failed program was:" >&5
10482sed 's/^/| /' conftest.$ac_ext >&5
c906108c 10483
bec39cab 10484 ac_header_preproc=no
5ee754fc 10485fi
bec39cab
AC
10486rm -f conftest.err conftest.$ac_ext
10487echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10488echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 10489
bec39cab
AC
10490# So? What about this header?
10491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10492 yes:no: )
10493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10494echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10496echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10497 ac_header_preproc=yes
10498 ;;
10499 no:yes:* )
10500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10501echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10503echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10505echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10507echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10509echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10511echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10512 (
10513 cat <<\_ASBOX
10514## ------------------------------------------ ##
10515## Report this to the AC_PACKAGE_NAME lists. ##
10516## ------------------------------------------ ##
10517_ASBOX
10518 ) |
10519 sed "s/^/$as_me: WARNING: /" >&2
10520 ;;
10521esac
10522echo "$as_me:$LINENO: checking for $ac_header" >&5
10523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10524if eval "test \"\${$as_ac_Header+set}\" = set"; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10526else
bec39cab
AC
10527 eval "$as_ac_Header=\$ac_header_preproc"
10528fi
10529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10531
bec39cab
AC
10532fi
10533if test `eval echo '${'$as_ac_Header'}'` = yes; then
10534 cat >>confdefs.h <<_ACEOF
10535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10536_ACEOF
5ee754fc 10537
bec39cab 10538fi
5ee754fc 10539
bec39cab 10540done
5ee754fc 10541
5ee754fc 10542
bec39cab
AC
10543for ac_header in sys/filio.h
10544do
10545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10546if eval "test \"\${$as_ac_Header+set}\" = set"; then
10547 echo "$as_me:$LINENO: checking for $ac_header" >&5
10548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10549if eval "test \"\${$as_ac_Header+set}\" = set"; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10551fi
10552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10554else
10555 # Is the header compilable?
10556echo "$as_me:$LINENO: checking $ac_header usability" >&5
10557echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10558cat >conftest.$ac_ext <<_ACEOF
10559/* confdefs.h. */
10560_ACEOF
10561cat confdefs.h >>conftest.$ac_ext
10562cat >>conftest.$ac_ext <<_ACEOF
10563/* end confdefs.h. */
10564$ac_includes_default
10565#include <$ac_header>
10566_ACEOF
10567rm -f conftest.$ac_objext
10568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10569 (eval $ac_compile) 2>conftest.er1
10570 ac_status=$?
10571 grep -v '^ *+' conftest.er1 >conftest.err
10572 rm -f conftest.er1
10573 cat conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } &&
10576 { ac_try='test -z "$ac_c_werror_flag"
10577 || test ! -s conftest.err'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; } &&
10583 { ac_try='test -s conftest.$ac_objext'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10586 ac_status=$?
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 ac_header_compiler=yes
10590else
10591 echo "$as_me: failed program was:" >&5
10592sed 's/^/| /' conftest.$ac_ext >&5
10593
10594ac_header_compiler=no
10595fi
10596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10597echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10598echo "${ECHO_T}$ac_header_compiler" >&6
10599
10600# Is the header present?
10601echo "$as_me:$LINENO: checking $ac_header presence" >&5
10602echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10603cat >conftest.$ac_ext <<_ACEOF
10604/* confdefs.h. */
10605_ACEOF
10606cat confdefs.h >>conftest.$ac_ext
10607cat >>conftest.$ac_ext <<_ACEOF
10608/* end confdefs.h. */
10609#include <$ac_header>
10610_ACEOF
10611if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } >/dev/null; then
10619 if test -s conftest.err; then
10620 ac_cpp_err=$ac_c_preproc_warn_flag
10621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10622 else
10623 ac_cpp_err=
10624 fi
5ee754fc 10625else
bec39cab 10626 ac_cpp_err=yes
5ee754fc 10627fi
bec39cab
AC
10628if test -z "$ac_cpp_err"; then
10629 ac_header_preproc=yes
10630else
10631 echo "$as_me: failed program was:" >&5
10632sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10633
bec39cab 10634 ac_header_preproc=no
5ee754fc 10635fi
bec39cab
AC
10636rm -f conftest.err conftest.$ac_ext
10637echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10638echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10639
bec39cab
AC
10640# So? What about this header?
10641case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10642 yes:no: )
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10644echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10646echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10647 ac_header_preproc=yes
10648 ;;
10649 no:yes:* )
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10651echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10653echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10655echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10657echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10659echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10661echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10662 (
10663 cat <<\_ASBOX
10664## ------------------------------------------ ##
10665## Report this to the AC_PACKAGE_NAME lists. ##
10666## ------------------------------------------ ##
10667_ASBOX
10668 ) |
10669 sed "s/^/$as_me: WARNING: /" >&2
10670 ;;
10671esac
10672echo "$as_me:$LINENO: checking for $ac_header" >&5
10673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10674if eval "test \"\${$as_ac_Header+set}\" = set"; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10676else
bec39cab 10677 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10678fi
bec39cab
AC
10679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10681
5ee754fc 10682fi
bec39cab
AC
10683if test `eval echo '${'$as_ac_Header'}'` = yes; then
10684 cat >>confdefs.h <<_ACEOF
10685#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10686_ACEOF
5ee754fc
MK
10687
10688fi
10689
bec39cab
AC
10690done
10691
10692
10693for ac_header in sys/ioctl.h
10694do
10695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10696if eval "test \"\${$as_ac_Header+set}\" = set"; then
10697 echo "$as_me:$LINENO: checking for $ac_header" >&5
10698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10699if eval "test \"\${$as_ac_Header+set}\" = set"; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10701fi
10702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10704else
10705 # Is the header compilable?
10706echo "$as_me:$LINENO: checking $ac_header usability" >&5
10707echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10708cat >conftest.$ac_ext <<_ACEOF
10709/* confdefs.h. */
10710_ACEOF
10711cat confdefs.h >>conftest.$ac_ext
10712cat >>conftest.$ac_ext <<_ACEOF
10713/* end confdefs.h. */
10714$ac_includes_default
10715#include <$ac_header>
10716_ACEOF
10717rm -f conftest.$ac_objext
10718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10719 (eval $ac_compile) 2>conftest.er1
10720 ac_status=$?
10721 grep -v '^ *+' conftest.er1 >conftest.err
10722 rm -f conftest.er1
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag"
10727 || test ! -s conftest.err'
10728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729 (eval $ac_try) 2>&5
10730 ac_status=$?
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; } &&
10733 { ac_try='test -s conftest.$ac_objext'
10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735 (eval $ac_try) 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; }; then
10739 ac_header_compiler=yes
10740else
10741 echo "$as_me: failed program was:" >&5
10742sed 's/^/| /' conftest.$ac_ext >&5
10743
10744ac_header_compiler=no
10745fi
10746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10748echo "${ECHO_T}$ac_header_compiler" >&6
10749
10750# Is the header present?
10751echo "$as_me:$LINENO: checking $ac_header presence" >&5
10752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10753cat >conftest.$ac_ext <<_ACEOF
10754/* confdefs.h. */
10755_ACEOF
10756cat confdefs.h >>conftest.$ac_ext
10757cat >>conftest.$ac_ext <<_ACEOF
10758/* end confdefs.h. */
10759#include <$ac_header>
10760_ACEOF
10761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } >/dev/null; then
10769 if test -s conftest.err; then
10770 ac_cpp_err=$ac_c_preproc_warn_flag
10771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10772 else
10773 ac_cpp_err=
10774 fi
5ee754fc 10775else
bec39cab 10776 ac_cpp_err=yes
5ee754fc 10777fi
bec39cab
AC
10778if test -z "$ac_cpp_err"; then
10779 ac_header_preproc=yes
10780else
10781 echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10783
bec39cab 10784 ac_header_preproc=no
5ee754fc 10785fi
bec39cab
AC
10786rm -f conftest.err conftest.$ac_ext
10787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10788echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10789
bec39cab
AC
10790# So? What about this header?
10791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10792 yes:no: )
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10797 ac_header_preproc=yes
10798 ;;
10799 no:yes:* )
10800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10803echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10807echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10812 (
10813 cat <<\_ASBOX
10814## ------------------------------------------ ##
10815## Report this to the AC_PACKAGE_NAME lists. ##
10816## ------------------------------------------ ##
10817_ASBOX
10818 ) |
10819 sed "s/^/$as_me: WARNING: /" >&2
10820 ;;
10821esac
10822echo "$as_me:$LINENO: checking for $ac_header" >&5
10823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10824if eval "test \"\${$as_ac_Header+set}\" = set"; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10826else
bec39cab 10827 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10828fi
bec39cab
AC
10829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
10831
10832fi
bec39cab
AC
10833if test `eval echo '${'$as_ac_Header'}'` = yes; then
10834 cat >>confdefs.h <<_ACEOF
10835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10836_ACEOF
10837
5ee754fc
MK
10838fi
10839
bec39cab 10840done
5ee754fc 10841
5ee754fc 10842
bec39cab 10843for ac_header in sys/param.h
5ee754fc 10844do
bec39cab
AC
10845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10846if eval "test \"\${$as_ac_Header+set}\" = set"; then
10847 echo "$as_me:$LINENO: checking for $ac_header" >&5
10848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10849if eval "test \"\${$as_ac_Header+set}\" = set"; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10851fi
10852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10854else
10855 # Is the header compilable?
10856echo "$as_me:$LINENO: checking $ac_header usability" >&5
10857echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10858cat >conftest.$ac_ext <<_ACEOF
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
10864$ac_includes_default
10865#include <$ac_header>
10866_ACEOF
10867rm -f conftest.$ac_objext
10868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10869 (eval $ac_compile) 2>conftest.er1
10870 ac_status=$?
10871 grep -v '^ *+' conftest.er1 >conftest.err
10872 rm -f conftest.er1
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } &&
10876 { ac_try='test -z "$ac_c_werror_flag"
10877 || test ! -s conftest.err'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; } &&
10883 { ac_try='test -s conftest.$ac_objext'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
10889 ac_header_compiler=yes
10890else
10891 echo "$as_me: failed program was:" >&5
10892sed 's/^/| /' conftest.$ac_ext >&5
10893
10894ac_header_compiler=no
10895fi
10896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10897echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10898echo "${ECHO_T}$ac_header_compiler" >&6
10899
10900# Is the header present?
10901echo "$as_me:$LINENO: checking $ac_header presence" >&5
10902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10903cat >conftest.$ac_ext <<_ACEOF
10904/* confdefs.h. */
10905_ACEOF
10906cat confdefs.h >>conftest.$ac_ext
10907cat >>conftest.$ac_ext <<_ACEOF
10908/* end confdefs.h. */
10909#include <$ac_header>
10910_ACEOF
10911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10913 ac_status=$?
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } >/dev/null; then
10919 if test -s conftest.err; then
10920 ac_cpp_err=$ac_c_preproc_warn_flag
10921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10922 else
10923 ac_cpp_err=
10924 fi
5ee754fc 10925else
bec39cab 10926 ac_cpp_err=yes
5ee754fc 10927fi
bec39cab
AC
10928if test -z "$ac_cpp_err"; then
10929 ac_header_preproc=yes
10930else
10931 echo "$as_me: failed program was:" >&5
10932sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10933
bec39cab 10934 ac_header_preproc=no
5ee754fc 10935fi
bec39cab
AC
10936rm -f conftest.err conftest.$ac_ext
10937echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10938echo "${ECHO_T}$ac_header_preproc" >&6
10939
10940# So? What about this header?
10941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10942 yes:no: )
10943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10944echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10946echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10947 ac_header_preproc=yes
10948 ;;
10949 no:yes:* )
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10951echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10953echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10955echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10957echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10959echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10961echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10962 (
10963 cat <<\_ASBOX
10964## ------------------------------------------ ##
10965## Report this to the AC_PACKAGE_NAME lists. ##
10966## ------------------------------------------ ##
10967_ASBOX
10968 ) |
10969 sed "s/^/$as_me: WARNING: /" >&2
10970 ;;
10971esac
10972echo "$as_me:$LINENO: checking for $ac_header" >&5
10973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10974if eval "test \"\${$as_ac_Header+set}\" = set"; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10976else
bec39cab 10977 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10978fi
bec39cab
AC
10979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10981
5ee754fc 10982fi
bec39cab
AC
10983if test `eval echo '${'$as_ac_Header'}'` = yes; then
10984 cat >>confdefs.h <<_ACEOF
10985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10986_ACEOF
10987
5ee754fc 10988fi
bec39cab 10989
5ee754fc
MK
10990done
10991
bec39cab
AC
10992
10993for ac_header in sys/proc.h
5ee754fc 10994do
bec39cab 10995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 10996echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
10997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10998if eval "test \"\${$as_ac_Header+set}\" = set"; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11000else
7cb9022a 11001 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11002/* confdefs.h. */
11003_ACEOF
11004cat confdefs.h >>conftest.$ac_ext
11005cat >>conftest.$ac_ext <<_ACEOF
11006/* end confdefs.h. */
7cb9022a
MK
11007#if HAVE_SYS_PARAM_H
11008# include <sys/param.h>
11009#endif
11010
11011
bec39cab
AC
11012#include <$ac_header>
11013_ACEOF
11014rm -f conftest.$ac_objext
11015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11016 (eval $ac_compile) 2>conftest.er1
11017 ac_status=$?
11018 grep -v '^ *+' conftest.er1 >conftest.err
11019 rm -f conftest.er1
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try='test -z "$ac_c_werror_flag"
11024 || test ! -s conftest.err'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; } &&
11030 { ac_try='test -s conftest.$ac_objext'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
7cb9022a 11036 eval "$as_ac_Header=yes"
bec39cab
AC
11037else
11038 echo "$as_me: failed program was:" >&5
11039sed 's/^/| /' conftest.$ac_ext >&5
11040
7cb9022a 11041eval "$as_ac_Header=no"
bec39cab
AC
11042fi
11043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11044fi
bec39cab
AC
11045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11047if test `eval echo '${'$as_ac_Header'}'` = yes; then
11048 cat >>confdefs.h <<_ACEOF
11049#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11050_ACEOF
11051
5ee754fc 11052fi
bec39cab 11053
5ee754fc
MK
11054done
11055
bec39cab
AC
11056
11057for ac_header in sys/procfs.h
5ee754fc 11058do
bec39cab
AC
11059as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11060if eval "test \"\${$as_ac_Header+set}\" = set"; then
11061 echo "$as_me:$LINENO: checking for $ac_header" >&5
11062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11063if eval "test \"\${$as_ac_Header+set}\" = set"; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11065fi
11066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11068else
11069 # Is the header compilable?
11070echo "$as_me:$LINENO: checking $ac_header usability" >&5
11071echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11072cat >conftest.$ac_ext <<_ACEOF
11073/* confdefs.h. */
11074_ACEOF
11075cat confdefs.h >>conftest.$ac_ext
11076cat >>conftest.$ac_ext <<_ACEOF
11077/* end confdefs.h. */
11078$ac_includes_default
11079#include <$ac_header>
11080_ACEOF
11081rm -f conftest.$ac_objext
11082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11083 (eval $ac_compile) 2>conftest.er1
11084 ac_status=$?
11085 grep -v '^ *+' conftest.er1 >conftest.err
11086 rm -f conftest.er1
11087 cat conftest.err >&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } &&
11090 { ac_try='test -z "$ac_c_werror_flag"
11091 || test ! -s conftest.err'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; } &&
11097 { ac_try='test -s conftest.$ac_objext'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }; then
11103 ac_header_compiler=yes
11104else
11105 echo "$as_me: failed program was:" >&5
11106sed 's/^/| /' conftest.$ac_ext >&5
11107
11108ac_header_compiler=no
11109fi
11110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11111echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11112echo "${ECHO_T}$ac_header_compiler" >&6
11113
11114# Is the header present?
11115echo "$as_me:$LINENO: checking $ac_header presence" >&5
11116echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11117cat >conftest.$ac_ext <<_ACEOF
11118/* confdefs.h. */
11119_ACEOF
11120cat confdefs.h >>conftest.$ac_ext
11121cat >>conftest.$ac_ext <<_ACEOF
11122/* end confdefs.h. */
11123#include <$ac_header>
11124_ACEOF
11125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } >/dev/null; then
11133 if test -s conftest.err; then
11134 ac_cpp_err=$ac_c_preproc_warn_flag
11135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11136 else
11137 ac_cpp_err=
11138 fi
11139else
11140 ac_cpp_err=yes
5ee754fc 11141fi
bec39cab
AC
11142if test -z "$ac_cpp_err"; then
11143 ac_header_preproc=yes
5ee754fc 11144else
bec39cab
AC
11145 echo "$as_me: failed program was:" >&5
11146sed 's/^/| /' conftest.$ac_ext >&5
11147
11148 ac_header_preproc=no
5ee754fc 11149fi
bec39cab
AC
11150rm -f conftest.err conftest.$ac_ext
11151echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11152echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11153
bec39cab
AC
11154# So? What about this header?
11155case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11156 yes:no: )
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11158echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11160echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11161 ac_header_preproc=yes
11162 ;;
11163 no:yes:* )
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11165echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11167echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11169echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11171echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11173echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11175echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11176 (
11177 cat <<\_ASBOX
11178## ------------------------------------------ ##
11179## Report this to the AC_PACKAGE_NAME lists. ##
11180## ------------------------------------------ ##
11181_ASBOX
11182 ) |
11183 sed "s/^/$as_me: WARNING: /" >&2
11184 ;;
11185esac
11186echo "$as_me:$LINENO: checking for $ac_header" >&5
11187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11188if eval "test \"\${$as_ac_Header+set}\" = set"; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190else
11191 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11192fi
bec39cab
AC
11193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11194echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11195
5ee754fc 11196fi
bec39cab
AC
11197if test `eval echo '${'$as_ac_Header'}'` = yes; then
11198 cat >>confdefs.h <<_ACEOF
11199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11200_ACEOF
11201
5ee754fc 11202fi
bec39cab 11203
5ee754fc
MK
11204done
11205
bec39cab
AC
11206
11207
11208for ac_header in sys/ptrace.h ptrace.h
5ee754fc 11209do
bec39cab
AC
11210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11211if eval "test \"\${$as_ac_Header+set}\" = set"; then
11212 echo "$as_me:$LINENO: checking for $ac_header" >&5
11213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11214if eval "test \"\${$as_ac_Header+set}\" = set"; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216fi
11217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11219else
11220 # Is the header compilable?
11221echo "$as_me:$LINENO: checking $ac_header usability" >&5
11222echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11223cat >conftest.$ac_ext <<_ACEOF
11224/* confdefs.h. */
11225_ACEOF
11226cat confdefs.h >>conftest.$ac_ext
11227cat >>conftest.$ac_ext <<_ACEOF
11228/* end confdefs.h. */
11229$ac_includes_default
11230#include <$ac_header>
11231_ACEOF
11232rm -f conftest.$ac_objext
11233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234 (eval $ac_compile) 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -z "$ac_c_werror_flag"
11242 || test ! -s conftest.err'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest.$ac_objext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_header_compiler=yes
11255else
11256 echo "$as_me: failed program was:" >&5
11257sed 's/^/| /' conftest.$ac_ext >&5
11258
11259ac_header_compiler=no
11260fi
11261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11263echo "${ECHO_T}$ac_header_compiler" >&6
11264
11265# Is the header present?
11266echo "$as_me:$LINENO: checking $ac_header presence" >&5
11267echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11268cat >conftest.$ac_ext <<_ACEOF
11269/* confdefs.h. */
11270_ACEOF
11271cat confdefs.h >>conftest.$ac_ext
11272cat >>conftest.$ac_ext <<_ACEOF
11273/* end confdefs.h. */
11274#include <$ac_header>
11275_ACEOF
11276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11278 ac_status=$?
11279 grep -v '^ *+' conftest.er1 >conftest.err
11280 rm -f conftest.er1
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } >/dev/null; then
11284 if test -s conftest.err; then
11285 ac_cpp_err=$ac_c_preproc_warn_flag
11286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11287 else
11288 ac_cpp_err=
11289 fi
11290else
11291 ac_cpp_err=yes
5ee754fc 11292fi
bec39cab
AC
11293if test -z "$ac_cpp_err"; then
11294 ac_header_preproc=yes
5ee754fc 11295else
bec39cab
AC
11296 echo "$as_me: failed program was:" >&5
11297sed 's/^/| /' conftest.$ac_ext >&5
11298
11299 ac_header_preproc=no
5ee754fc 11300fi
bec39cab
AC
11301rm -f conftest.err conftest.$ac_ext
11302echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11304
bec39cab
AC
11305# So? What about this header?
11306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11307 yes:no: )
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11309echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11311echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11312 ac_header_preproc=yes
11313 ;;
11314 no:yes:* )
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11316echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11318echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11320echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11322echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11326echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11327 (
11328 cat <<\_ASBOX
11329## ------------------------------------------ ##
11330## Report this to the AC_PACKAGE_NAME lists. ##
11331## ------------------------------------------ ##
11332_ASBOX
11333 ) |
11334 sed "s/^/$as_me: WARNING: /" >&2
11335 ;;
11336esac
11337echo "$as_me:$LINENO: checking for $ac_header" >&5
11338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11339if eval "test \"\${$as_ac_Header+set}\" = set"; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11341else
11342 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11343fi
bec39cab
AC
11344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11346
5ee754fc 11347fi
bec39cab
AC
11348if test `eval echo '${'$as_ac_Header'}'` = yes; then
11349 cat >>confdefs.h <<_ACEOF
11350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11351_ACEOF
11352
5ee754fc 11353fi
bec39cab 11354
5ee754fc
MK
11355done
11356
bec39cab
AC
11357
11358
11359for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 11360do
bec39cab
AC
11361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11362if eval "test \"\${$as_ac_Header+set}\" = set"; then
11363 echo "$as_me:$LINENO: checking for $ac_header" >&5
11364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11365if eval "test \"\${$as_ac_Header+set}\" = set"; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11367fi
11368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11370else
11371 # Is the header compilable?
11372echo "$as_me:$LINENO: checking $ac_header usability" >&5
11373echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11374cat >conftest.$ac_ext <<_ACEOF
11375/* confdefs.h. */
11376_ACEOF
11377cat confdefs.h >>conftest.$ac_ext
11378cat >>conftest.$ac_ext <<_ACEOF
11379/* end confdefs.h. */
11380$ac_includes_default
11381#include <$ac_header>
11382_ACEOF
11383rm -f conftest.$ac_objext
11384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11385 (eval $ac_compile) 2>conftest.er1
11386 ac_status=$?
11387 grep -v '^ *+' conftest.er1 >conftest.err
11388 rm -f conftest.er1
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } &&
11392 { ac_try='test -z "$ac_c_werror_flag"
11393 || test ! -s conftest.err'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; } &&
11399 { ac_try='test -s conftest.$ac_objext'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 ac_header_compiler=yes
11406else
11407 echo "$as_me: failed program was:" >&5
11408sed 's/^/| /' conftest.$ac_ext >&5
11409
11410ac_header_compiler=no
11411fi
11412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11414echo "${ECHO_T}$ac_header_compiler" >&6
11415
11416# Is the header present?
11417echo "$as_me:$LINENO: checking $ac_header presence" >&5
11418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11419cat >conftest.$ac_ext <<_ACEOF
11420/* confdefs.h. */
11421_ACEOF
11422cat confdefs.h >>conftest.$ac_ext
11423cat >>conftest.$ac_ext <<_ACEOF
11424/* end confdefs.h. */
11425#include <$ac_header>
11426_ACEOF
11427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11429 ac_status=$?
11430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } >/dev/null; then
11435 if test -s conftest.err; then
11436 ac_cpp_err=$ac_c_preproc_warn_flag
11437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11438 else
11439 ac_cpp_err=
11440 fi
11441else
11442 ac_cpp_err=yes
5ee754fc 11443fi
bec39cab
AC
11444if test -z "$ac_cpp_err"; then
11445 ac_header_preproc=yes
5ee754fc 11446else
bec39cab
AC
11447 echo "$as_me: failed program was:" >&5
11448sed 's/^/| /' conftest.$ac_ext >&5
11449
11450 ac_header_preproc=no
5ee754fc 11451fi
bec39cab
AC
11452rm -f conftest.err conftest.$ac_ext
11453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11454echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11455
bec39cab
AC
11456# So? What about this header?
11457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11458 yes:no: )
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11463 ac_header_preproc=yes
11464 ;;
11465 no:yes:* )
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11478 (
11479 cat <<\_ASBOX
11480## ------------------------------------------ ##
11481## Report this to the AC_PACKAGE_NAME lists. ##
11482## ------------------------------------------ ##
11483_ASBOX
11484 ) |
11485 sed "s/^/$as_me: WARNING: /" >&2
11486 ;;
11487esac
11488echo "$as_me:$LINENO: checking for $ac_header" >&5
11489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11490if eval "test \"\${$as_ac_Header+set}\" = set"; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11492else
11493 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11494fi
bec39cab
AC
11495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11497
5ee754fc 11498fi
bec39cab
AC
11499if test `eval echo '${'$as_ac_Header'}'` = yes; then
11500 cat >>confdefs.h <<_ACEOF
11501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11502_ACEOF
11503
5ee754fc 11504fi
bec39cab 11505
5ee754fc
MK
11506done
11507
bec39cab
AC
11508
11509for ac_header in sys/select.h
5ee754fc 11510do
bec39cab
AC
11511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11512if eval "test \"\${$as_ac_Header+set}\" = set"; then
11513 echo "$as_me:$LINENO: checking for $ac_header" >&5
11514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11515if eval "test \"\${$as_ac_Header+set}\" = set"; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11517fi
11518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11520else
11521 # Is the header compilable?
11522echo "$as_me:$LINENO: checking $ac_header usability" >&5
11523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11524cat >conftest.$ac_ext <<_ACEOF
11525/* confdefs.h. */
11526_ACEOF
11527cat confdefs.h >>conftest.$ac_ext
11528cat >>conftest.$ac_ext <<_ACEOF
11529/* end confdefs.h. */
11530$ac_includes_default
11531#include <$ac_header>
11532_ACEOF
11533rm -f conftest.$ac_objext
11534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11535 (eval $ac_compile) 2>conftest.er1
11536 ac_status=$?
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } &&
11542 { ac_try='test -z "$ac_c_werror_flag"
11543 || test ! -s conftest.err'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try='test -s conftest.$ac_objext'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 ac_header_compiler=yes
11556else
11557 echo "$as_me: failed program was:" >&5
11558sed 's/^/| /' conftest.$ac_ext >&5
11559
11560ac_header_compiler=no
11561fi
11562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11563echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11564echo "${ECHO_T}$ac_header_compiler" >&6
11565
11566# Is the header present?
11567echo "$as_me:$LINENO: checking $ac_header presence" >&5
11568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11569cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h. */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h. */
11575#include <$ac_header>
11576_ACEOF
11577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11579 ac_status=$?
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } >/dev/null; then
11585 if test -s conftest.err; then
11586 ac_cpp_err=$ac_c_preproc_warn_flag
11587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11588 else
11589 ac_cpp_err=
11590 fi
11591else
11592 ac_cpp_err=yes
5ee754fc 11593fi
bec39cab
AC
11594if test -z "$ac_cpp_err"; then
11595 ac_header_preproc=yes
5ee754fc 11596else
bec39cab
AC
11597 echo "$as_me: failed program was:" >&5
11598sed 's/^/| /' conftest.$ac_ext >&5
11599
11600 ac_header_preproc=no
5ee754fc 11601fi
bec39cab
AC
11602rm -f conftest.err conftest.$ac_ext
11603echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11604echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11605
bec39cab
AC
11606# So? What about this header?
11607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11608 yes:no: )
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11613 ac_header_preproc=yes
11614 ;;
11615 no:yes:* )
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11619echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11623echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11628 (
11629 cat <<\_ASBOX
11630## ------------------------------------------ ##
11631## Report this to the AC_PACKAGE_NAME lists. ##
11632## ------------------------------------------ ##
11633_ASBOX
11634 ) |
11635 sed "s/^/$as_me: WARNING: /" >&2
11636 ;;
11637esac
11638echo "$as_me:$LINENO: checking for $ac_header" >&5
11639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11640if eval "test \"\${$as_ac_Header+set}\" = set"; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11642else
11643 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11644fi
bec39cab
AC
11645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11647
5ee754fc 11648fi
bec39cab
AC
11649if test `eval echo '${'$as_ac_Header'}'` = yes; then
11650 cat >>confdefs.h <<_ACEOF
11651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11652_ACEOF
11653
5ee754fc 11654fi
bec39cab 11655
5ee754fc
MK
11656done
11657
bec39cab
AC
11658
11659for ac_header in sys/syscall.h
5ee754fc 11660do
bec39cab
AC
11661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11662if eval "test \"\${$as_ac_Header+set}\" = set"; then
11663 echo "$as_me:$LINENO: checking for $ac_header" >&5
11664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11665if eval "test \"\${$as_ac_Header+set}\" = set"; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667fi
11668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11670else
11671 # Is the header compilable?
11672echo "$as_me:$LINENO: checking $ac_header usability" >&5
11673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11674cat >conftest.$ac_ext <<_ACEOF
11675/* confdefs.h. */
11676_ACEOF
11677cat confdefs.h >>conftest.$ac_ext
11678cat >>conftest.$ac_ext <<_ACEOF
11679/* end confdefs.h. */
11680$ac_includes_default
11681#include <$ac_header>
11682_ACEOF
11683rm -f conftest.$ac_objext
11684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11685 (eval $ac_compile) 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
11692 { ac_try='test -z "$ac_c_werror_flag"
11693 || test ! -s conftest.err'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; } &&
11699 { ac_try='test -s conftest.$ac_objext'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 ac_header_compiler=yes
11706else
11707 echo "$as_me: failed program was:" >&5
11708sed 's/^/| /' conftest.$ac_ext >&5
11709
11710ac_header_compiler=no
11711fi
11712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11713echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11714echo "${ECHO_T}$ac_header_compiler" >&6
11715
11716# Is the header present?
11717echo "$as_me:$LINENO: checking $ac_header presence" >&5
11718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11719cat >conftest.$ac_ext <<_ACEOF
11720/* confdefs.h. */
11721_ACEOF
11722cat confdefs.h >>conftest.$ac_ext
11723cat >>conftest.$ac_ext <<_ACEOF
11724/* end confdefs.h. */
11725#include <$ac_header>
11726_ACEOF
11727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11729 ac_status=$?
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } >/dev/null; then
11735 if test -s conftest.err; then
11736 ac_cpp_err=$ac_c_preproc_warn_flag
11737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11738 else
11739 ac_cpp_err=
11740 fi
11741else
11742 ac_cpp_err=yes
5ee754fc 11743fi
bec39cab
AC
11744if test -z "$ac_cpp_err"; then
11745 ac_header_preproc=yes
5ee754fc 11746else
bec39cab
AC
11747 echo "$as_me: failed program was:" >&5
11748sed 's/^/| /' conftest.$ac_ext >&5
11749
11750 ac_header_preproc=no
5ee754fc 11751fi
bec39cab
AC
11752rm -f conftest.err conftest.$ac_ext
11753echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11754echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11755
bec39cab
AC
11756# So? What about this header?
11757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11758 yes:no: )
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11762echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11763 ac_header_preproc=yes
11764 ;;
11765 no:yes:* )
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11767echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11769echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11771echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11773echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11775echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11777echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11778 (
11779 cat <<\_ASBOX
11780## ------------------------------------------ ##
11781## Report this to the AC_PACKAGE_NAME lists. ##
11782## ------------------------------------------ ##
11783_ASBOX
11784 ) |
11785 sed "s/^/$as_me: WARNING: /" >&2
11786 ;;
11787esac
11788echo "$as_me:$LINENO: checking for $ac_header" >&5
11789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11790if eval "test \"\${$as_ac_Header+set}\" = set"; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11792else
11793 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11794fi
bec39cab
AC
11795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11797
5ee754fc 11798fi
bec39cab
AC
11799if test `eval echo '${'$as_ac_Header'}'` = yes; then
11800 cat >>confdefs.h <<_ACEOF
11801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11802_ACEOF
11803
5ee754fc 11804fi
bec39cab 11805
5ee754fc
MK
11806done
11807
bec39cab
AC
11808
11809for ac_header in sys/types.h
5ee754fc 11810do
bec39cab
AC
11811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11812if eval "test \"\${$as_ac_Header+set}\" = set"; then
11813 echo "$as_me:$LINENO: checking for $ac_header" >&5
11814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11815if eval "test \"\${$as_ac_Header+set}\" = set"; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11817fi
11818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11820else
11821 # Is the header compilable?
11822echo "$as_me:$LINENO: checking $ac_header usability" >&5
11823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11824cat >conftest.$ac_ext <<_ACEOF
11825/* confdefs.h. */
11826_ACEOF
11827cat confdefs.h >>conftest.$ac_ext
11828cat >>conftest.$ac_ext <<_ACEOF
11829/* end confdefs.h. */
11830$ac_includes_default
11831#include <$ac_header>
11832_ACEOF
11833rm -f conftest.$ac_objext
11834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11835 (eval $ac_compile) 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_c_werror_flag"
11843 || test ! -s conftest.err'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; } &&
11849 { ac_try='test -s conftest.$ac_objext'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 ac_header_compiler=yes
11856else
11857 echo "$as_me: failed program was:" >&5
11858sed 's/^/| /' conftest.$ac_ext >&5
11859
11860ac_header_compiler=no
11861fi
11862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11863echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11864echo "${ECHO_T}$ac_header_compiler" >&6
11865
11866# Is the header present?
11867echo "$as_me:$LINENO: checking $ac_header presence" >&5
11868echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11869cat >conftest.$ac_ext <<_ACEOF
11870/* confdefs.h. */
11871_ACEOF
11872cat confdefs.h >>conftest.$ac_ext
11873cat >>conftest.$ac_ext <<_ACEOF
11874/* end confdefs.h. */
11875#include <$ac_header>
11876_ACEOF
11877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } >/dev/null; then
11885 if test -s conftest.err; then
11886 ac_cpp_err=$ac_c_preproc_warn_flag
11887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11888 else
11889 ac_cpp_err=
11890 fi
11891else
11892 ac_cpp_err=yes
5ee754fc 11893fi
bec39cab
AC
11894if test -z "$ac_cpp_err"; then
11895 ac_header_preproc=yes
5ee754fc 11896else
bec39cab
AC
11897 echo "$as_me: failed program was:" >&5
11898sed 's/^/| /' conftest.$ac_ext >&5
11899
11900 ac_header_preproc=no
5ee754fc 11901fi
bec39cab
AC
11902rm -f conftest.err conftest.$ac_ext
11903echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11904echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11905
bec39cab
AC
11906# So? What about this header?
11907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11908 yes:no: )
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11913 ac_header_preproc=yes
11914 ;;
11915 no:yes:* )
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11919echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11923echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11928 (
11929 cat <<\_ASBOX
11930## ------------------------------------------ ##
11931## Report this to the AC_PACKAGE_NAME lists. ##
11932## ------------------------------------------ ##
11933_ASBOX
11934 ) |
11935 sed "s/^/$as_me: WARNING: /" >&2
11936 ;;
11937esac
11938echo "$as_me:$LINENO: checking for $ac_header" >&5
11939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11940if eval "test \"\${$as_ac_Header+set}\" = set"; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11942else
11943 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11944fi
bec39cab
AC
11945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11947
5ee754fc 11948fi
bec39cab
AC
11949if test `eval echo '${'$as_ac_Header'}'` = yes; then
11950 cat >>confdefs.h <<_ACEOF
11951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11952_ACEOF
11953
5ee754fc 11954fi
bec39cab 11955
5ee754fc
MK
11956done
11957
bec39cab
AC
11958
11959for ac_header in sys/user.h
5ee754fc 11960do
bec39cab 11961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 11962echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
11963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11964if eval "test \"\${$as_ac_Header+set}\" = set"; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11966else
7cb9022a 11967 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11968/* confdefs.h. */
11969_ACEOF
11970cat confdefs.h >>conftest.$ac_ext
11971cat >>conftest.$ac_ext <<_ACEOF
11972/* end confdefs.h. */
7cb9022a
MK
11973#if HAVE_SYS_PARAM_H
11974# include <sys/param.h>
11975#endif
11976
11977
bec39cab
AC
11978#include <$ac_header>
11979_ACEOF
11980rm -f conftest.$ac_objext
11981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11982 (eval $ac_compile) 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -z "$ac_c_werror_flag"
11990 || test ! -s conftest.err'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; } &&
11996 { ac_try='test -s conftest.$ac_objext'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
7cb9022a 12002 eval "$as_ac_Header=yes"
bec39cab
AC
12003else
12004 echo "$as_me: failed program was:" >&5
12005sed 's/^/| /' conftest.$ac_ext >&5
12006
7cb9022a 12007eval "$as_ac_Header=no"
bec39cab
AC
12008fi
12009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 12010fi
bec39cab
AC
12011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12013if test `eval echo '${'$as_ac_Header'}'` = yes; then
12014 cat >>confdefs.h <<_ACEOF
12015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12016_ACEOF
12017
5ee754fc 12018fi
bec39cab 12019
5ee754fc
MK
12020done
12021
bec39cab
AC
12022
12023
12024for ac_header in sys/wait.h wait.h
5ee754fc 12025do
bec39cab
AC
12026as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12027if eval "test \"\${$as_ac_Header+set}\" = set"; then
12028 echo "$as_me:$LINENO: checking for $ac_header" >&5
12029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12030if eval "test \"\${$as_ac_Header+set}\" = set"; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032fi
12033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12034echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12035else
12036 # Is the header compilable?
12037echo "$as_me:$LINENO: checking $ac_header usability" >&5
12038echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12039cat >conftest.$ac_ext <<_ACEOF
12040/* confdefs.h. */
12041_ACEOF
12042cat confdefs.h >>conftest.$ac_ext
12043cat >>conftest.$ac_ext <<_ACEOF
12044/* end confdefs.h. */
12045$ac_includes_default
12046#include <$ac_header>
12047_ACEOF
12048rm -f conftest.$ac_objext
12049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12050 (eval $ac_compile) 2>conftest.er1
12051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try='test -z "$ac_c_werror_flag"
12058 || test ! -s conftest.err'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; } &&
12064 { ac_try='test -s conftest.$ac_objext'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 ac_header_compiler=yes
12071else
12072 echo "$as_me: failed program was:" >&5
12073sed 's/^/| /' conftest.$ac_ext >&5
12074
12075ac_header_compiler=no
12076fi
12077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12078echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12079echo "${ECHO_T}$ac_header_compiler" >&6
12080
12081# Is the header present?
12082echo "$as_me:$LINENO: checking $ac_header presence" >&5
12083echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12084cat >conftest.$ac_ext <<_ACEOF
12085/* confdefs.h. */
12086_ACEOF
12087cat confdefs.h >>conftest.$ac_ext
12088cat >>conftest.$ac_ext <<_ACEOF
12089/* end confdefs.h. */
12090#include <$ac_header>
12091_ACEOF
12092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12094 ac_status=$?
12095 grep -v '^ *+' conftest.er1 >conftest.err
12096 rm -f conftest.er1
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } >/dev/null; then
12100 if test -s conftest.err; then
12101 ac_cpp_err=$ac_c_preproc_warn_flag
12102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12103 else
12104 ac_cpp_err=
12105 fi
12106else
12107 ac_cpp_err=yes
5ee754fc 12108fi
bec39cab
AC
12109if test -z "$ac_cpp_err"; then
12110 ac_header_preproc=yes
5ee754fc 12111else
bec39cab
AC
12112 echo "$as_me: failed program was:" >&5
12113sed 's/^/| /' conftest.$ac_ext >&5
12114
12115 ac_header_preproc=no
5ee754fc 12116fi
bec39cab
AC
12117rm -f conftest.err conftest.$ac_ext
12118echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12119echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 12120
bec39cab
AC
12121# So? What about this header?
12122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12123 yes:no: )
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12125echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12127echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12128 ac_header_preproc=yes
12129 ;;
12130 no:yes:* )
12131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12132echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12134echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12136echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12138echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12140echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12142echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12143 (
12144 cat <<\_ASBOX
12145## ------------------------------------------ ##
12146## Report this to the AC_PACKAGE_NAME lists. ##
12147## ------------------------------------------ ##
12148_ASBOX
12149 ) |
12150 sed "s/^/$as_me: WARNING: /" >&2
12151 ;;
12152esac
12153echo "$as_me:$LINENO: checking for $ac_header" >&5
12154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12155if eval "test \"\${$as_ac_Header+set}\" = set"; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12157else
12158 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12159fi
bec39cab
AC
12160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12161echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12162
9608ab8b 12163fi
bec39cab
AC
12164if test `eval echo '${'$as_ac_Header'}'` = yes; then
12165 cat >>confdefs.h <<_ACEOF
12166#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12167_ACEOF
12168
9608ab8b 12169fi
bec39cab 12170
9608ab8b 12171done
5ee754fc 12172
bec39cab
AC
12173
12174
12175
12176for ac_header in termios.h termio.h sgtty.h
5ee754fc 12177do
bec39cab
AC
12178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12179if eval "test \"\${$as_ac_Header+set}\" = set"; then
12180 echo "$as_me:$LINENO: checking for $ac_header" >&5
12181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12182if eval "test \"\${$as_ac_Header+set}\" = set"; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12184fi
12185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12186echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12187else
12188 # Is the header compilable?
12189echo "$as_me:$LINENO: checking $ac_header usability" >&5
12190echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12191cat >conftest.$ac_ext <<_ACEOF
12192/* confdefs.h. */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h. */
12197$ac_includes_default
12198#include <$ac_header>
12199_ACEOF
12200rm -f conftest.$ac_objext
12201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag"
12210 || test ! -s conftest.err'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; } &&
12216 { ac_try='test -s conftest.$ac_objext'
12217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218 (eval $ac_try) 2>&5
12219 ac_status=$?
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; }; then
12222 ac_header_compiler=yes
12223else
12224 echo "$as_me: failed program was:" >&5
12225sed 's/^/| /' conftest.$ac_ext >&5
12226
12227ac_header_compiler=no
12228fi
12229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12230echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12231echo "${ECHO_T}$ac_header_compiler" >&6
12232
12233# Is the header present?
12234echo "$as_me:$LINENO: checking $ac_header presence" >&5
12235echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12236cat >conftest.$ac_ext <<_ACEOF
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
12242#include <$ac_header>
12243_ACEOF
12244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12246 ac_status=$?
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } >/dev/null; then
12252 if test -s conftest.err; then
12253 ac_cpp_err=$ac_c_preproc_warn_flag
12254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12255 else
12256 ac_cpp_err=
12257 fi
12258else
12259 ac_cpp_err=yes
9608ab8b 12260fi
bec39cab
AC
12261if test -z "$ac_cpp_err"; then
12262 ac_header_preproc=yes
9608ab8b 12263else
bec39cab
AC
12264 echo "$as_me: failed program was:" >&5
12265sed 's/^/| /' conftest.$ac_ext >&5
12266
12267 ac_header_preproc=no
9608ab8b 12268fi
bec39cab
AC
12269rm -f conftest.err conftest.$ac_ext
12270echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12271echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 12272
bec39cab
AC
12273# So? What about this header?
12274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12275 yes:no: )
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12280 ac_header_preproc=yes
12281 ;;
12282 no:yes:* )
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12286echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12290echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12295 (
12296 cat <<\_ASBOX
12297## ------------------------------------------ ##
12298## Report this to the AC_PACKAGE_NAME lists. ##
12299## ------------------------------------------ ##
12300_ASBOX
12301 ) |
12302 sed "s/^/$as_me: WARNING: /" >&2
12303 ;;
12304esac
12305echo "$as_me:$LINENO: checking for $ac_header" >&5
12306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12307if eval "test \"\${$as_ac_Header+set}\" = set"; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309else
12310 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12311fi
bec39cab
AC
12312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12314
9608ab8b 12315fi
bec39cab
AC
12316if test `eval echo '${'$as_ac_Header'}'` = yes; then
12317 cat >>confdefs.h <<_ACEOF
12318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12319_ACEOF
12320
9608ab8b 12321fi
bec39cab 12322
5ee754fc 12323done
9608ab8b 12324
bec39cab
AC
12325
12326for ac_header in unistd.h
78434e59 12327do
bec39cab
AC
12328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12329if eval "test \"\${$as_ac_Header+set}\" = set"; then
12330 echo "$as_me:$LINENO: checking for $ac_header" >&5
12331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12332if eval "test \"\${$as_ac_Header+set}\" = set"; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12334fi
12335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12337else
12338 # Is the header compilable?
12339echo "$as_me:$LINENO: checking $ac_header usability" >&5
12340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12341cat >conftest.$ac_ext <<_ACEOF
12342/* confdefs.h. */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h. */
12347$ac_includes_default
12348#include <$ac_header>
12349_ACEOF
12350rm -f conftest.$ac_objext
12351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12352 (eval $ac_compile) 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try='test -z "$ac_c_werror_flag"
12360 || test ! -s conftest.err'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; } &&
12366 { ac_try='test -s conftest.$ac_objext'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
12372 ac_header_compiler=yes
12373else
12374 echo "$as_me: failed program was:" >&5
12375sed 's/^/| /' conftest.$ac_ext >&5
12376
12377ac_header_compiler=no
12378fi
12379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12380echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12381echo "${ECHO_T}$ac_header_compiler" >&6
12382
12383# Is the header present?
12384echo "$as_me:$LINENO: checking $ac_header presence" >&5
12385echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12386cat >conftest.$ac_ext <<_ACEOF
12387/* confdefs.h. */
12388_ACEOF
12389cat confdefs.h >>conftest.$ac_ext
12390cat >>conftest.$ac_ext <<_ACEOF
12391/* end confdefs.h. */
12392#include <$ac_header>
12393_ACEOF
12394if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12396 ac_status=$?
12397 grep -v '^ *+' conftest.er1 >conftest.err
12398 rm -f conftest.er1
12399 cat conftest.err >&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } >/dev/null; then
12402 if test -s conftest.err; then
12403 ac_cpp_err=$ac_c_preproc_warn_flag
12404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12405 else
12406 ac_cpp_err=
12407 fi
12408else
12409 ac_cpp_err=yes
78434e59 12410fi
bec39cab
AC
12411if test -z "$ac_cpp_err"; then
12412 ac_header_preproc=yes
78434e59 12413else
bec39cab
AC
12414 echo "$as_me: failed program was:" >&5
12415sed 's/^/| /' conftest.$ac_ext >&5
12416
12417 ac_header_preproc=no
78434e59 12418fi
bec39cab
AC
12419rm -f conftest.err conftest.$ac_ext
12420echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12421echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 12422
bec39cab
AC
12423# So? What about this header?
12424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12425 yes:no: )
12426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12427echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12429echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12430 ac_header_preproc=yes
12431 ;;
12432 no:yes:* )
12433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12434echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12436echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12438echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12440echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12442echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12444echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12445 (
12446 cat <<\_ASBOX
12447## ------------------------------------------ ##
12448## Report this to the AC_PACKAGE_NAME lists. ##
12449## ------------------------------------------ ##
12450_ASBOX
12451 ) |
12452 sed "s/^/$as_me: WARNING: /" >&2
12453 ;;
12454esac
12455echo "$as_me:$LINENO: checking for $ac_header" >&5
12456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12457if eval "test \"\${$as_ac_Header+set}\" = set"; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12459else
12460 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 12461fi
bec39cab
AC
12462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12463echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12464
086ec9eb 12465fi
bec39cab
AC
12466if test `eval echo '${'$as_ac_Header'}'` = yes; then
12467 cat >>confdefs.h <<_ACEOF
12468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12469_ACEOF
12470
086ec9eb 12471fi
bec39cab 12472
086ec9eb
MK
12473done
12474
9608ab8b 12475
b1d19a62 12476# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
12477# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12478# think that we don't have <curses.h> if we're using GCC.
12479case $host_os in
b1d19a62 12480 solaris2.[789])
5ee754fc 12481 if test "$GCC" = yes; then
bec39cab
AC
12482
12483cat >>confdefs.h <<\_ACEOF
5ee754fc 12484#define _MSE_INT_H 1
bec39cab 12485_ACEOF
5ee754fc
MK
12486
12487 fi ;;
12488esac
bec39cab
AC
12489
12490
12491
12492
12493for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 12494do
bec39cab
AC
12495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12496if eval "test \"\${$as_ac_Header+set}\" = set"; then
12497 echo "$as_me:$LINENO: checking for $ac_header" >&5
12498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12499if eval "test \"\${$as_ac_Header+set}\" = set"; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12501fi
12502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12504else
12505 # Is the header compilable?
12506echo "$as_me:$LINENO: checking $ac_header usability" >&5
12507echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12508cat >conftest.$ac_ext <<_ACEOF
12509/* confdefs.h. */
12510_ACEOF
12511cat confdefs.h >>conftest.$ac_ext
12512cat >>conftest.$ac_ext <<_ACEOF
12513/* end confdefs.h. */
12514$ac_includes_default
12515#include <$ac_header>
12516_ACEOF
12517rm -f conftest.$ac_objext
12518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12519 (eval $ac_compile) 2>conftest.er1
12520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -z "$ac_c_werror_flag"
12527 || test ! -s conftest.err'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; } &&
12533 { ac_try='test -s conftest.$ac_objext'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12539 ac_header_compiler=yes
12540else
12541 echo "$as_me: failed program was:" >&5
12542sed 's/^/| /' conftest.$ac_ext >&5
12543
12544ac_header_compiler=no
12545fi
12546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12548echo "${ECHO_T}$ac_header_compiler" >&6
12549
12550# Is the header present?
12551echo "$as_me:$LINENO: checking $ac_header presence" >&5
12552echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12553cat >conftest.$ac_ext <<_ACEOF
12554/* confdefs.h. */
12555_ACEOF
12556cat confdefs.h >>conftest.$ac_ext
12557cat >>conftest.$ac_ext <<_ACEOF
12558/* end confdefs.h. */
12559#include <$ac_header>
12560_ACEOF
12561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12563 ac_status=$?
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } >/dev/null; then
12569 if test -s conftest.err; then
12570 ac_cpp_err=$ac_c_preproc_warn_flag
12571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12572 else
12573 ac_cpp_err=
12574 fi
12575else
12576 ac_cpp_err=yes
c906108c 12577fi
bec39cab
AC
12578if test -z "$ac_cpp_err"; then
12579 ac_header_preproc=yes
12580else
12581 echo "$as_me: failed program was:" >&5
12582sed 's/^/| /' conftest.$ac_ext >&5
12583
12584 ac_header_preproc=no
c906108c 12585fi
bec39cab
AC
12586rm -f conftest.err conftest.$ac_ext
12587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12588echo "${ECHO_T}$ac_header_preproc" >&6
12589
12590# So? What about this header?
12591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12592 yes:no: )
12593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12594echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12596echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12597 ac_header_preproc=yes
12598 ;;
12599 no:yes:* )
12600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12601echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12603echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12605echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12607echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12609echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12611echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12612 (
12613 cat <<\_ASBOX
12614## ------------------------------------------ ##
12615## Report this to the AC_PACKAGE_NAME lists. ##
12616## ------------------------------------------ ##
12617_ASBOX
12618 ) |
12619 sed "s/^/$as_me: WARNING: /" >&2
12620 ;;
12621esac
12622echo "$as_me:$LINENO: checking for $ac_header" >&5
12623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12624if eval "test \"\${$as_ac_Header+set}\" = set"; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12626else
bec39cab 12627 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12628fi
bec39cab
AC
12629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12631
12632fi
12633if test `eval echo '${'$as_ac_Header'}'` = yes; then
12634 cat >>confdefs.h <<_ACEOF
12635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12636_ACEOF
12637
12638fi
12639
5ee754fc 12640done
c906108c 12641
bec39cab
AC
12642
12643
12644for ac_header in ncurses/term.h term.h
3b78cdbb 12645do
bec39cab
AC
12646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12647if eval "test \"\${$as_ac_Header+set}\" = set"; then
12648 echo "$as_me:$LINENO: checking for $ac_header" >&5
12649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12650if eval "test \"\${$as_ac_Header+set}\" = set"; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12652fi
12653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12655else
12656 # Is the header compilable?
12657echo "$as_me:$LINENO: checking $ac_header usability" >&5
12658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12659cat >conftest.$ac_ext <<_ACEOF
12660/* confdefs.h. */
12661_ACEOF
12662cat confdefs.h >>conftest.$ac_ext
12663cat >>conftest.$ac_ext <<_ACEOF
12664/* end confdefs.h. */
12665$ac_includes_default
12666#include <$ac_header>
12667_ACEOF
12668rm -f conftest.$ac_objext
12669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12670 (eval $ac_compile) 2>conftest.er1
12671 ac_status=$?
12672 grep -v '^ *+' conftest.er1 >conftest.err
12673 rm -f conftest.er1
12674 cat conftest.err >&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } &&
12677 { ac_try='test -z "$ac_c_werror_flag"
12678 || test ! -s conftest.err'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; } &&
12684 { ac_try='test -s conftest.$ac_objext'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 ac_header_compiler=yes
12691else
12692 echo "$as_me: failed program was:" >&5
12693sed 's/^/| /' conftest.$ac_ext >&5
12694
12695ac_header_compiler=no
12696fi
12697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12698echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12699echo "${ECHO_T}$ac_header_compiler" >&6
12700
12701# Is the header present?
12702echo "$as_me:$LINENO: checking $ac_header presence" >&5
12703echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12704cat >conftest.$ac_ext <<_ACEOF
12705/* confdefs.h. */
12706_ACEOF
12707cat confdefs.h >>conftest.$ac_ext
12708cat >>conftest.$ac_ext <<_ACEOF
12709/* end confdefs.h. */
12710#include <$ac_header>
12711_ACEOF
12712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12714 ac_status=$?
12715 grep -v '^ *+' conftest.er1 >conftest.err
12716 rm -f conftest.er1
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } >/dev/null; then
12720 if test -s conftest.err; then
12721 ac_cpp_err=$ac_c_preproc_warn_flag
12722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12723 else
12724 ac_cpp_err=
12725 fi
12726else
12727 ac_cpp_err=yes
3b78cdbb 12728fi
bec39cab
AC
12729if test -z "$ac_cpp_err"; then
12730 ac_header_preproc=yes
12731else
12732 echo "$as_me: failed program was:" >&5
12733sed 's/^/| /' conftest.$ac_ext >&5
12734
12735 ac_header_preproc=no
3b78cdbb 12736fi
bec39cab
AC
12737rm -f conftest.err conftest.$ac_ext
12738echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12739echo "${ECHO_T}$ac_header_preproc" >&6
12740
12741# So? What about this header?
12742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12743 yes:no: )
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12745echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12747echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12748 ac_header_preproc=yes
12749 ;;
12750 no:yes:* )
12751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12752echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12754echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12756echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12758echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12760echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12762echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12763 (
12764 cat <<\_ASBOX
12765## ------------------------------------------ ##
12766## Report this to the AC_PACKAGE_NAME lists. ##
12767## ------------------------------------------ ##
12768_ASBOX
12769 ) |
12770 sed "s/^/$as_me: WARNING: /" >&2
12771 ;;
12772esac
12773echo "$as_me:$LINENO: checking for $ac_header" >&5
12774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12775if eval "test \"\${$as_ac_Header+set}\" = set"; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 12777else
bec39cab
AC
12778 eval "$as_ac_Header=\$ac_header_preproc"
12779fi
12780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12782
3b78cdbb 12783fi
bec39cab
AC
12784if test `eval echo '${'$as_ac_Header'}'` = yes; then
12785 cat >>confdefs.h <<_ACEOF
12786#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12787_ACEOF
12788
12789fi
12790
3b78cdbb
DA
12791done
12792
c906108c 12793
5ee754fc
MK
12794# FIXME: kettenis/20030102: In most cases we include these
12795# unconditionally, so what's the point in checking these?
bec39cab
AC
12796
12797
12798for ac_header in ctype.h time.h
c906108c 12799do
bec39cab
AC
12800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12801if eval "test \"\${$as_ac_Header+set}\" = set"; then
12802 echo "$as_me:$LINENO: checking for $ac_header" >&5
12803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12804if eval "test \"\${$as_ac_Header+set}\" = set"; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12806fi
12807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12809else
12810 # Is the header compilable?
12811echo "$as_me:$LINENO: checking $ac_header usability" >&5
12812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12813cat >conftest.$ac_ext <<_ACEOF
12814/* confdefs.h. */
12815_ACEOF
12816cat confdefs.h >>conftest.$ac_ext
12817cat >>conftest.$ac_ext <<_ACEOF
12818/* end confdefs.h. */
12819$ac_includes_default
12820#include <$ac_header>
12821_ACEOF
12822rm -f conftest.$ac_objext
12823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12824 (eval $ac_compile) 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -z "$ac_c_werror_flag"
12832 || test ! -s conftest.err'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try='test -s conftest.$ac_objext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 ac_header_compiler=yes
12845else
12846 echo "$as_me: failed program was:" >&5
12847sed 's/^/| /' conftest.$ac_ext >&5
12848
12849ac_header_compiler=no
12850fi
12851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12852echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12853echo "${ECHO_T}$ac_header_compiler" >&6
12854
12855# Is the header present?
12856echo "$as_me:$LINENO: checking $ac_header presence" >&5
12857echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12858cat >conftest.$ac_ext <<_ACEOF
12859/* confdefs.h. */
12860_ACEOF
12861cat confdefs.h >>conftest.$ac_ext
12862cat >>conftest.$ac_ext <<_ACEOF
12863/* end confdefs.h. */
12864#include <$ac_header>
12865_ACEOF
12866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12868 ac_status=$?
12869 grep -v '^ *+' conftest.er1 >conftest.err
12870 rm -f conftest.er1
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } >/dev/null; then
12874 if test -s conftest.err; then
12875 ac_cpp_err=$ac_c_preproc_warn_flag
12876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12877 else
12878 ac_cpp_err=
12879 fi
12880else
12881 ac_cpp_err=yes
c906108c 12882fi
bec39cab
AC
12883if test -z "$ac_cpp_err"; then
12884 ac_header_preproc=yes
12885else
12886 echo "$as_me: failed program was:" >&5
12887sed 's/^/| /' conftest.$ac_ext >&5
12888
12889 ac_header_preproc=no
c906108c 12890fi
bec39cab
AC
12891rm -f conftest.err conftest.$ac_ext
12892echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12893echo "${ECHO_T}$ac_header_preproc" >&6
12894
12895# So? What about this header?
12896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12897 yes:no: )
12898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12899echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12901echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12902 ac_header_preproc=yes
12903 ;;
12904 no:yes:* )
12905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12910echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12912echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12916echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12917 (
12918 cat <<\_ASBOX
12919## ------------------------------------------ ##
12920## Report this to the AC_PACKAGE_NAME lists. ##
12921## ------------------------------------------ ##
12922_ASBOX
12923 ) |
12924 sed "s/^/$as_me: WARNING: /" >&2
12925 ;;
12926esac
12927echo "$as_me:$LINENO: checking for $ac_header" >&5
12928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12929if eval "test \"\${$as_ac_Header+set}\" = set"; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12931else
bec39cab
AC
12932 eval "$as_ac_Header=\$ac_header_preproc"
12933fi
12934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12936
12937fi
12938if test `eval echo '${'$as_ac_Header'}'` = yes; then
12939 cat >>confdefs.h <<_ACEOF
12940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12941_ACEOF
12942
c906108c 12943fi
bec39cab 12944
c906108c
SS
12945done
12946
5ee754fc 12947
bec39cab
AC
12948echo "$as_me:$LINENO: checking for member st_blocks in struct stat" >&5
12949echo $ECHO_N "checking for member st_blocks in struct stat... $ECHO_C" >&6
12950if test "${gdb_cv_have_struct_stat_with_st_blocks_member+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 12952else
bec39cab
AC
12953 cat >conftest.$ac_ext <<_ACEOF
12954/* confdefs.h. */
12955_ACEOF
12956cat confdefs.h >>conftest.$ac_ext
12957cat >>conftest.$ac_ext <<_ACEOF
12958/* end confdefs.h. */
40a7debc
EZ
12959#include <sys/types.h>
12960#include <sys/stat.h>
bec39cab
AC
12961int
12962main ()
12963{
40a7debc 12964struct stat st; (void) st.st_blocks;
bec39cab
AC
12965 ;
12966 return 0;
12967}
12968_ACEOF
12969rm -f conftest.$ac_objext
12970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971 (eval $ac_compile) 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -z "$ac_c_werror_flag"
12979 || test ! -s conftest.err'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try='test -s conftest.$ac_objext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
40a7debc
EZ
12991 gdb_cv_have_struct_stat_with_st_blocks_member=yes
12992else
bec39cab
AC
12993 echo "$as_me: failed program was:" >&5
12994sed 's/^/| /' conftest.$ac_ext >&5
12995
12996gdb_cv_have_struct_stat_with_st_blocks_member=no
40a7debc 12997fi
bec39cab 12998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc
EZ
12999fi
13000
bec39cab
AC
13001echo "$as_me:$LINENO: result: $gdb_cv_have_struct_stat_with_st_blocks_member" >&5
13002echo "${ECHO_T}$gdb_cv_have_struct_stat_with_st_blocks_member" >&6
40a7debc 13003if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
bec39cab 13004 cat >>confdefs.h <<\_ACEOF
40a7debc 13005#define HAVE_STRUCT_STAT_ST_BLOCKS 1
bec39cab 13006_ACEOF
40a7debc
EZ
13007
13008fi
086ec9eb 13009
b9362cc7
AC
13010# ------------------------- #
13011# Checks for declarations. #
13012# ------------------------- #
13013
13014for ac_func in getopt
13015do
13016 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
bec39cab
AC
13017echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13018echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
13019if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021else
13022 cat >conftest.$ac_ext <<_ACEOF
13023/* confdefs.h. */
13024_ACEOF
13025cat confdefs.h >>conftest.$ac_ext
13026cat >>conftest.$ac_ext <<_ACEOF
13027/* end confdefs.h. */
b9362cc7
AC
13028#undef $ac_tr_decl
13029#define $ac_tr_decl 1
b9362cc7 13030
bec39cab
AC
13031
13032int
13033main ()
13034{
b9362cc7
AC
13035#ifndef $ac_func
13036char *(*pfn) = (char *(*)) $ac_func ;
13037#endif
bec39cab
AC
13038 ;
13039 return 0;
13040}
13041_ACEOF
13042rm -f conftest.$ac_objext
13043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13044 (eval $ac_compile) 2>conftest.er1
13045 ac_status=$?
13046 grep -v '^ *+' conftest.er1 >conftest.err
13047 rm -f conftest.er1
13048 cat conftest.err >&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
13051 { ac_try='test -z "$ac_c_werror_flag"
13052 || test ! -s conftest.err'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } &&
13058 { ac_try='test -s conftest.$ac_objext'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
b9362cc7
AC
13064 eval "gcc_cv_have_decl_$ac_func=yes"
13065else
bec39cab
AC
13066 echo "$as_me: failed program was:" >&5
13067sed 's/^/| /' conftest.$ac_ext >&5
13068
13069eval "gcc_cv_have_decl_$ac_func=no"
b9362cc7 13070fi
bec39cab 13071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7
AC
13072fi
13073
13074if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
bec39cab
AC
13075 echo "$as_me:$LINENO: result: yes" >&5
13076echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
b9362cc7 13077#define $ac_tr_decl 1
bec39cab
AC
13078_ACEOF
13079
b9362cc7 13080else
bec39cab
AC
13081 echo "$as_me:$LINENO: result: no" >&5
13082echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
b9362cc7 13083#define $ac_tr_decl 0
bec39cab
AC
13084_ACEOF
13085
b9362cc7
AC
13086fi
13087
13088done
13089if test x = y ; then
bec39cab
AC
13090
13091cat >>confdefs.h <<\_ACEOF
b9362cc7 13092#define HAVE_DECL_GETOPT 1
bec39cab 13093_ACEOF
b9362cc7
AC
13094fi
13095
13096
5ee754fc
MK
13097# ------------------ #
13098# Checks for types. #
13099# ------------------ #
13100
bec39cab
AC
13101echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13102echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13103if test "${ac_cv_type_signal+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13105else
13106 cat >conftest.$ac_ext <<_ACEOF
13107/* confdefs.h. */
13108_ACEOF
13109cat confdefs.h >>conftest.$ac_ext
13110cat >>conftest.$ac_ext <<_ACEOF
13111/* end confdefs.h. */
c906108c 13112#include <sys/types.h>
5ee754fc
MK
13113#include <signal.h>
13114#ifdef signal
bec39cab 13115# undef signal
c906108c 13116#endif
5ee754fc
MK
13117#ifdef __cplusplus
13118extern "C" void (*signal (int, void (*)(int)))(int);
13119#else
13120void (*signal ()) ();
c906108c
SS
13121#endif
13122
bec39cab
AC
13123int
13124main ()
13125{
5ee754fc 13126int i;
bec39cab
AC
13127 ;
13128 return 0;
13129}
13130_ACEOF
13131rm -f conftest.$ac_objext
13132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13133 (eval $ac_compile) 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -z "$ac_c_werror_flag"
13141 || test ! -s conftest.err'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest.$ac_objext'
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; }; then
5ee754fc 13153 ac_cv_type_signal=void
c906108c 13154else
bec39cab
AC
13155 echo "$as_me: failed program was:" >&5
13156sed 's/^/| /' conftest.$ac_ext >&5
13157
13158ac_cv_type_signal=int
c906108c 13159fi
bec39cab 13160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13161fi
bec39cab
AC
13162echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13163echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 13164
bec39cab 13165cat >>confdefs.h <<_ACEOF
5ee754fc 13166#define RETSIGTYPE $ac_cv_type_signal
bec39cab 13167_ACEOF
c906108c 13168
c906108c
SS
13169
13170
5ee754fc
MK
13171# ------------------------------------- #
13172# Checks for compiler characteristics. #
13173# ------------------------------------- #
13174
bec39cab
AC
13175echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13176echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13177if test "${ac_cv_c_const+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13179else
13180 cat >conftest.$ac_ext <<_ACEOF
13181/* confdefs.h. */
13182_ACEOF
13183cat confdefs.h >>conftest.$ac_ext
13184cat >>conftest.$ac_ext <<_ACEOF
13185/* end confdefs.h. */
13186
13187int
13188main ()
13189{
13190/* FIXME: Include the comments suggested by Paul. */
13191#ifndef __cplusplus
13192 /* Ultrix mips cc rejects this. */
13193 typedef int charset[2];
13194 const charset x;
13195 /* SunOS 4.1.1 cc rejects this. */
13196 char const *const *ccp;
13197 char **p;
13198 /* NEC SVR4.0.2 mips cc rejects this. */
13199 struct point {int x, y;};
13200 static struct point const zero = {0,0};
13201 /* AIX XL C 1.02.0.0 rejects this.
13202 It does not let you subtract one const X* pointer from another in
13203 an arm of an if-expression whose if-part is not a constant
13204 expression */
13205 const char *g = "string";
13206 ccp = &g + (g ? g-g : 0);
13207 /* HPUX 7.0 cc rejects these. */
13208 ++ccp;
13209 p = (char**) ccp;
13210 ccp = (char const *const *) p;
13211 { /* SCO 3.2v4 cc rejects this. */
13212 char *t;
13213 char const *s = 0 ? (char *) 0 : (char const *) 0;
13214
13215 *t++ = 0;
13216 }
13217 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13218 int x[] = {25, 17};
13219 const int *foo = &x[0];
13220 ++foo;
13221 }
13222 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13223 typedef const int *iptr;
13224 iptr p = 0;
13225 ++p;
13226 }
13227 { /* AIX XL C 1.02.0.0 rejects this saying
13228 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13229 struct s { int j; const int *ap[3]; };
13230 struct s *b; b->j = 5;
13231 }
13232 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13233 const int foo = 10;
13234 }
13235#endif
13236
13237 ;
13238 return 0;
13239}
13240_ACEOF
13241rm -f conftest.$ac_objext
13242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243 (eval $ac_compile) 2>conftest.er1
13244 ac_status=$?
13245 grep -v '^ *+' conftest.er1 >conftest.err
13246 rm -f conftest.er1
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try='test -z "$ac_c_werror_flag"
13251 || test ! -s conftest.err'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest.$ac_objext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
c906108c
SS
13263 ac_cv_c_const=yes
13264else
bec39cab
AC
13265 echo "$as_me: failed program was:" >&5
13266sed 's/^/| /' conftest.$ac_ext >&5
13267
13268ac_cv_c_const=no
c906108c 13269fi
bec39cab 13270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13271fi
bec39cab
AC
13272echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13273echo "${ECHO_T}$ac_cv_c_const" >&6
c906108c 13274if test $ac_cv_c_const = no; then
bec39cab
AC
13275
13276cat >>confdefs.h <<\_ACEOF
13277#define const
13278_ACEOF
c906108c
SS
13279
13280fi
13281
bec39cab
AC
13282echo "$as_me:$LINENO: checking for inline" >&5
13283echo $ECHO_N "checking for inline... $ECHO_C" >&6
13284if test "${ac_cv_c_inline+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09
JB
13286else
13287 ac_cv_c_inline=no
13288for ac_kw in inline __inline__ __inline; do
bec39cab
AC
13289 cat >conftest.$ac_ext <<_ACEOF
13290/* confdefs.h. */
13291_ACEOF
13292cat confdefs.h >>conftest.$ac_ext
13293cat >>conftest.$ac_ext <<_ACEOF
13294/* end confdefs.h. */
13295#ifndef __cplusplus
13296typedef int foo_t;
13297static $ac_kw foo_t static_foo () {return 0; }
13298$ac_kw foo_t foo () {return 0; }
13299#endif
13300
13301_ACEOF
13302rm -f conftest.$ac_objext
13303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13304 (eval $ac_compile) 2>conftest.er1
13305 ac_status=$?
13306 grep -v '^ *+' conftest.er1 >conftest.err
13307 rm -f conftest.er1
13308 cat conftest.err >&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } &&
13311 { ac_try='test -z "$ac_c_werror_flag"
13312 || test ! -s conftest.err'
13313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314 (eval $ac_try) 2>&5
13315 ac_status=$?
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; } &&
13318 { ac_try='test -s conftest.$ac_objext'
13319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320 (eval $ac_try) 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; }; then
bce58c09
JB
13324 ac_cv_c_inline=$ac_kw; break
13325else
bec39cab
AC
13326 echo "$as_me: failed program was:" >&5
13327sed 's/^/| /' conftest.$ac_ext >&5
13328
bce58c09 13329fi
bec39cab 13330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09
JB
13331done
13332
13333fi
bec39cab
AC
13334echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13335echo "${ECHO_T}$ac_cv_c_inline" >&6
13336
bce58c09 13337
bec39cab 13338case $ac_cv_c_inline in
bce58c09 13339 inline | yes) ;;
bec39cab
AC
13340 *)
13341 case $ac_cv_c_inline in
13342 no) ac_val=;;
13343 *) ac_val=$ac_cv_c_inline;;
13344 esac
13345 cat >>confdefs.h <<_ACEOF
13346#ifndef __cplusplus
13347#define inline $ac_val
13348#endif
13349_ACEOF
13350 ;;
bce58c09
JB
13351esac
13352
c906108c 13353
5ee754fc
MK
13354# ------------------------------ #
13355# Checks for library functions. #
13356# ------------------------------ #
13357
46711df8
MK
13358# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13359# for constant arguments. Useless!
bec39cab
AC
13360echo "$as_me:$LINENO: checking for working alloca.h" >&5
13361echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13362if test "${ac_cv_working_alloca_h+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364else
13365 cat >conftest.$ac_ext <<_ACEOF
13366/* confdefs.h. */
13367_ACEOF
13368cat confdefs.h >>conftest.$ac_ext
13369cat >>conftest.$ac_ext <<_ACEOF
13370/* end confdefs.h. */
46711df8 13371#include <alloca.h>
bec39cab
AC
13372int
13373main ()
13374{
13375char *p = (char *) alloca (2 * sizeof (int));
13376 ;
13377 return 0;
13378}
13379_ACEOF
13380rm -f conftest.$ac_objext conftest$ac_exeext
13381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382 (eval $ac_link) 2>conftest.er1
13383 ac_status=$?
13384 grep -v '^ *+' conftest.er1 >conftest.err
13385 rm -f conftest.er1
13386 cat conftest.err >&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } &&
13389 { ac_try='test -z "$ac_c_werror_flag"
13390 || test ! -s conftest.err'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; } &&
13396 { ac_try='test -s conftest$ac_exeext'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 ac_cv_working_alloca_h=yes
13403else
13404 echo "$as_me: failed program was:" >&5
13405sed 's/^/| /' conftest.$ac_ext >&5
13406
13407ac_cv_working_alloca_h=no
13408fi
13409rm -f conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext conftest.$ac_ext
13411fi
13412echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13413echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13414if test $ac_cv_working_alloca_h = yes; then
13415
13416cat >>confdefs.h <<\_ACEOF
46711df8 13417#define HAVE_ALLOCA_H 1
bec39cab 13418_ACEOF
46711df8
MK
13419
13420fi
13421
bec39cab
AC
13422echo "$as_me:$LINENO: checking for alloca" >&5
13423echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13424if test "${ac_cv_func_alloca_works+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13426else
bec39cab
AC
13427 cat >conftest.$ac_ext <<_ACEOF
13428/* confdefs.h. */
13429_ACEOF
13430cat confdefs.h >>conftest.$ac_ext
13431cat >>conftest.$ac_ext <<_ACEOF
13432/* end confdefs.h. */
46711df8
MK
13433#ifdef __GNUC__
13434# define alloca __builtin_alloca
13435#else
13436# ifdef _MSC_VER
13437# include <malloc.h>
13438# define alloca _alloca
13439# else
13440# if HAVE_ALLOCA_H
13441# include <alloca.h>
13442# else
13443# ifdef _AIX
13444 #pragma alloca
13445# else
13446# ifndef alloca /* predefined by HP cc +Olibcalls */
13447char *alloca ();
13448# endif
13449# endif
13450# endif
13451# endif
13452#endif
13453
bec39cab
AC
13454int
13455main ()
13456{
13457char *p = (char *) alloca (1);
13458 ;
13459 return 0;
13460}
13461_ACEOF
13462rm -f conftest.$ac_objext conftest$ac_exeext
13463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464 (eval $ac_link) 2>conftest.er1
13465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_c_werror_flag"
13472 || test ! -s conftest.err'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; } &&
13478 { ac_try='test -s conftest$ac_exeext'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
46711df8
MK
13484 ac_cv_func_alloca_works=yes
13485else
bec39cab
AC
13486 echo "$as_me: failed program was:" >&5
13487sed 's/^/| /' conftest.$ac_ext >&5
13488
13489ac_cv_func_alloca_works=no
46711df8 13490fi
bec39cab
AC
13491rm -f conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
46711df8 13493fi
bec39cab
AC
13494echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13495echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
46711df8 13496
46711df8 13497if test $ac_cv_func_alloca_works = yes; then
46711df8 13498
bec39cab
AC
13499cat >>confdefs.h <<\_ACEOF
13500#define HAVE_ALLOCA 1
13501_ACEOF
46711df8 13502
bec39cab 13503else
46711df8 13504 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
bec39cab
AC
13505# that cause trouble. Some versions do not even contain alloca or
13506# contain a buggy version. If you still want to use their alloca,
13507# use ar to extract alloca.o from them instead of compiling alloca.c.
13508
13509ALLOCA=alloca.$ac_objext
13510
13511cat >>confdefs.h <<\_ACEOF
46711df8 13512#define C_ALLOCA 1
bec39cab 13513_ACEOF
46711df8
MK
13514
13515
bec39cab
AC
13516echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13517echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13518if test "${ac_cv_os_cray+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13520else
bec39cab
AC
13521 cat >conftest.$ac_ext <<_ACEOF
13522/* confdefs.h. */
13523_ACEOF
13524cat confdefs.h >>conftest.$ac_ext
13525cat >>conftest.$ac_ext <<_ACEOF
13526/* end confdefs.h. */
46711df8
MK
13527#if defined(CRAY) && ! defined(CRAY2)
13528webecray
13529#else
13530wenotbecray
13531#endif
13532
bec39cab 13533_ACEOF
46711df8 13534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 13535 $EGREP "webecray" >/dev/null 2>&1; then
46711df8
MK
13536 ac_cv_os_cray=yes
13537else
46711df8
MK
13538 ac_cv_os_cray=no
13539fi
13540rm -f conftest*
13541
13542fi
bec39cab
AC
13543echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13544echo "${ECHO_T}$ac_cv_os_cray" >&6
46711df8 13545if test $ac_cv_os_cray = yes; then
bec39cab
AC
13546 for ac_func in _getb67 GETB67 getb67; do
13547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13548echo "$as_me:$LINENO: checking for $ac_func" >&5
13549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13550if eval "test \"\${$as_ac_var+set}\" = set"; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13552else
13553 cat >conftest.$ac_ext <<_ACEOF
13554/* confdefs.h. */
13555_ACEOF
13556cat confdefs.h >>conftest.$ac_ext
13557cat >>conftest.$ac_ext <<_ACEOF
13558/* end confdefs.h. */
13559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13561#define $ac_func innocuous_$ac_func
13562
46711df8 13563/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
13564 which can conflict with char $ac_func (); below.
13565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13566 <limits.h> exists even on freestanding compilers. */
13567
13568#ifdef __STDC__
13569# include <limits.h>
13570#else
13571# include <assert.h>
13572#endif
46711df8 13573
bec39cab 13574#undef $ac_func
46711df8 13575
bec39cab
AC
13576/* Override any gcc2 internal prototype to avoid an error. */
13577#ifdef __cplusplus
13578extern "C"
13579{
13580#endif
13581/* We use char because int might match the return type of a gcc2
13582 builtin and then its argument prototype would still apply. */
13583char $ac_func ();
46711df8
MK
13584/* The GNU C library defines this for functions which it implements
13585 to always fail with ENOSYS. Some functions are actually named
13586 something starting with __ and the normal name is an alias. */
13587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13588choke me
13589#else
bec39cab
AC
13590char (*f) () = $ac_func;
13591#endif
13592#ifdef __cplusplus
13593}
46711df8
MK
13594#endif
13595
bec39cab
AC
13596int
13597main ()
13598{
13599return f != $ac_func;
13600 ;
13601 return 0;
13602}
13603_ACEOF
13604rm -f conftest.$ac_objext conftest$ac_exeext
13605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13606 (eval $ac_link) 2>conftest.er1
13607 ac_status=$?
13608 grep -v '^ *+' conftest.er1 >conftest.err
13609 rm -f conftest.er1
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -z "$ac_c_werror_flag"
13614 || test ! -s conftest.err'
13615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616 (eval $ac_try) 2>&5
13617 ac_status=$?
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; } &&
13620 { ac_try='test -s conftest$ac_exeext'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 eval "$as_ac_var=yes"
13627else
13628 echo "$as_me: failed program was:" >&5
13629sed 's/^/| /' conftest.$ac_ext >&5
13630
13631eval "$as_ac_var=no"
13632fi
13633rm -f conftest.err conftest.$ac_objext \
13634 conftest$ac_exeext conftest.$ac_ext
13635fi
13636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13638if test `eval echo '${'$as_ac_var'}'` = yes; then
13639
13640cat >>confdefs.h <<_ACEOF
46711df8 13641#define CRAY_STACKSEG_END $ac_func
bec39cab 13642_ACEOF
46711df8 13643
bec39cab 13644 break
46711df8
MK
13645fi
13646
bec39cab 13647 done
46711df8
MK
13648fi
13649
bec39cab
AC
13650echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13651echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13652if test "${ac_cv_c_stack_direction+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8
MK
13654else
13655 if test "$cross_compiling" = yes; then
13656 ac_cv_c_stack_direction=0
13657else
bec39cab
AC
13658 cat >conftest.$ac_ext <<_ACEOF
13659/* confdefs.h. */
13660_ACEOF
13661cat confdefs.h >>conftest.$ac_ext
13662cat >>conftest.$ac_ext <<_ACEOF
13663/* end confdefs.h. */
13664int
46711df8
MK
13665find_stack_direction ()
13666{
13667 static char *addr = 0;
13668 auto char dummy;
13669 if (addr == 0)
13670 {
13671 addr = &dummy;
13672 return find_stack_direction ();
13673 }
13674 else
13675 return (&dummy > addr) ? 1 : -1;
13676}
bec39cab
AC
13677
13678int
46711df8
MK
13679main ()
13680{
bec39cab 13681 exit (find_stack_direction () < 0);
46711df8 13682}
bec39cab
AC
13683_ACEOF
13684rm -f conftest$ac_exeext
13685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13686 (eval $ac_link) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
46711df8
MK
13695 ac_cv_c_stack_direction=1
13696else
bec39cab
AC
13697 echo "$as_me: program exited with status $ac_status" >&5
13698echo "$as_me: failed program was:" >&5
13699sed 's/^/| /' conftest.$ac_ext >&5
13700
13701( exit $ac_status )
13702ac_cv_c_stack_direction=-1
46711df8 13703fi
bec39cab 13704rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46711df8 13705fi
46711df8 13706fi
bec39cab
AC
13707echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13708echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
46711df8 13709
bec39cab 13710cat >>confdefs.h <<_ACEOF
46711df8 13711#define STACK_DIRECTION $ac_cv_c_stack_direction
bec39cab
AC
13712_ACEOF
13713
46711df8
MK
13714
13715fi
13716
bec39cab
AC
13717
13718
13719for ac_header in stdlib.h unistd.h
97bf5e38 13720do
bec39cab
AC
13721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13722if eval "test \"\${$as_ac_Header+set}\" = set"; then
13723 echo "$as_me:$LINENO: checking for $ac_header" >&5
13724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13725if eval "test \"\${$as_ac_Header+set}\" = set"; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13727fi
13728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13730else
13731 # Is the header compilable?
13732echo "$as_me:$LINENO: checking $ac_header usability" >&5
13733echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13734cat >conftest.$ac_ext <<_ACEOF
13735/* confdefs.h. */
13736_ACEOF
13737cat confdefs.h >>conftest.$ac_ext
13738cat >>conftest.$ac_ext <<_ACEOF
13739/* end confdefs.h. */
13740$ac_includes_default
13741#include <$ac_header>
13742_ACEOF
13743rm -f conftest.$ac_objext
13744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13745 (eval $ac_compile) 2>conftest.er1
13746 ac_status=$?
13747 grep -v '^ *+' conftest.er1 >conftest.err
13748 rm -f conftest.er1
13749 cat conftest.err >&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try='test -z "$ac_c_werror_flag"
13753 || test ! -s conftest.err'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try='test -s conftest.$ac_objext'
13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761 (eval $ac_try) 2>&5
13762 ac_status=$?
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; }; then
13765 ac_header_compiler=yes
13766else
13767 echo "$as_me: failed program was:" >&5
13768sed 's/^/| /' conftest.$ac_ext >&5
13769
13770ac_header_compiler=no
13771fi
13772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13773echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13774echo "${ECHO_T}$ac_header_compiler" >&6
13775
13776# Is the header present?
13777echo "$as_me:$LINENO: checking $ac_header presence" >&5
13778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13779cat >conftest.$ac_ext <<_ACEOF
13780/* confdefs.h. */
13781_ACEOF
13782cat confdefs.h >>conftest.$ac_ext
13783cat >>conftest.$ac_ext <<_ACEOF
13784/* end confdefs.h. */
13785#include <$ac_header>
13786_ACEOF
13787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13789 ac_status=$?
13790 grep -v '^ *+' conftest.er1 >conftest.err
13791 rm -f conftest.er1
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } >/dev/null; then
13795 if test -s conftest.err; then
13796 ac_cpp_err=$ac_c_preproc_warn_flag
13797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13798 else
13799 ac_cpp_err=
13800 fi
13801else
13802 ac_cpp_err=yes
74c1b268 13803fi
bec39cab
AC
13804if test -z "$ac_cpp_err"; then
13805 ac_header_preproc=yes
13806else
13807 echo "$as_me: failed program was:" >&5
13808sed 's/^/| /' conftest.$ac_ext >&5
13809
13810 ac_header_preproc=no
74c1b268 13811fi
bec39cab
AC
13812rm -f conftest.err conftest.$ac_ext
13813echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13814echo "${ECHO_T}$ac_header_preproc" >&6
13815
13816# So? What about this header?
13817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13818 yes:no: )
13819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13820echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13822echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13823 ac_header_preproc=yes
13824 ;;
13825 no:yes:* )
13826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13827echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13829echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13831echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13833echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13835echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13837echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13838 (
13839 cat <<\_ASBOX
13840## ------------------------------------------ ##
13841## Report this to the AC_PACKAGE_NAME lists. ##
13842## ------------------------------------------ ##
13843_ASBOX
13844 ) |
13845 sed "s/^/$as_me: WARNING: /" >&2
13846 ;;
13847esac
13848echo "$as_me:$LINENO: checking for $ac_header" >&5
13849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13850if eval "test \"\${$as_ac_Header+set}\" = set"; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 13852else
bec39cab
AC
13853 eval "$as_ac_Header=\$ac_header_preproc"
13854fi
13855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13857
74c1b268 13858fi
bec39cab
AC
13859if test `eval echo '${'$as_ac_Header'}'` = yes; then
13860 cat >>confdefs.h <<_ACEOF
13861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13862_ACEOF
13863
13864fi
13865
97bf5e38 13866done
74c1b268 13867
bec39cab 13868
97bf5e38
MK
13869for ac_func in getpagesize
13870do
bec39cab
AC
13871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13872echo "$as_me:$LINENO: checking for $ac_func" >&5
13873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13874if eval "test \"\${$as_ac_var+set}\" = set"; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877 cat >conftest.$ac_ext <<_ACEOF
13878/* confdefs.h. */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
13882/* end confdefs.h. */
13883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13885#define $ac_func innocuous_$ac_func
13886
74c1b268 13887/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
13888 which can conflict with char $ac_func (); below.
13889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13890 <limits.h> exists even on freestanding compilers. */
13891
13892#ifdef __STDC__
13893# include <limits.h>
13894#else
13895# include <assert.h>
13896#endif
74c1b268 13897
bec39cab 13898#undef $ac_func
74c1b268 13899
bec39cab
AC
13900/* Override any gcc2 internal prototype to avoid an error. */
13901#ifdef __cplusplus
13902extern "C"
13903{
13904#endif
13905/* We use char because int might match the return type of a gcc2
13906 builtin and then its argument prototype would still apply. */
13907char $ac_func ();
74c1b268
AC
13908/* The GNU C library defines this for functions which it implements
13909 to always fail with ENOSYS. Some functions are actually named
13910 something starting with __ and the normal name is an alias. */
97bf5e38 13911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
74c1b268
AC
13912choke me
13913#else
bec39cab
AC
13914char (*f) () = $ac_func;
13915#endif
13916#ifdef __cplusplus
13917}
74c1b268
AC
13918#endif
13919
bec39cab
AC
13920int
13921main ()
13922{
13923return f != $ac_func;
13924 ;
13925 return 0;
13926}
13927_ACEOF
13928rm -f conftest.$ac_objext conftest$ac_exeext
13929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13930 (eval $ac_link) 2>conftest.er1
13931 ac_status=$?
13932 grep -v '^ *+' conftest.er1 >conftest.err
13933 rm -f conftest.er1
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -z "$ac_c_werror_flag"
13938 || test ! -s conftest.err'
13939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; } &&
13944 { ac_try='test -s conftest$ac_exeext'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
13950 eval "$as_ac_var=yes"
13951else
13952 echo "$as_me: failed program was:" >&5
13953sed 's/^/| /' conftest.$ac_ext >&5
13954
13955eval "$as_ac_var=no"
13956fi
13957rm -f conftest.err conftest.$ac_objext \
13958 conftest$ac_exeext conftest.$ac_ext
13959fi
13960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13961echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13962if test `eval echo '${'$as_ac_var'}'` = yes; then
13963 cat >>confdefs.h <<_ACEOF
13964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13965_ACEOF
74c1b268 13966
74c1b268 13967fi
97bf5e38 13968done
74c1b268 13969
bec39cab
AC
13970echo "$as_me:$LINENO: checking for working mmap" >&5
13971echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13972if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
13974else
13975 if test "$cross_compiling" = yes; then
13976 ac_cv_func_mmap_fixed_mapped=no
74c1b268 13977else
bec39cab
AC
13978 cat >conftest.$ac_ext <<_ACEOF
13979/* confdefs.h. */
13980_ACEOF
13981cat confdefs.h >>conftest.$ac_ext
13982cat >>conftest.$ac_ext <<_ACEOF
13983/* end confdefs.h. */
13984$ac_includes_default
13985/* malloc might have been renamed as rpl_malloc. */
13986#undef malloc
97bf5e38
MK
13987
13988/* Thanks to Mike Haertel and Jim Avera for this test.
13989 Here is a matrix of mmap possibilities:
13990 mmap private not fixed
13991 mmap private fixed at somewhere currently unmapped
13992 mmap private fixed at somewhere already mapped
13993 mmap shared not fixed
13994 mmap shared fixed at somewhere currently unmapped
13995 mmap shared fixed at somewhere already mapped
13996 For private mappings, we should verify that changes cannot be read()
13997 back from the file, nor mmap's back from the file at a different
13998 address. (There have been systems where private was not correctly
13999 implemented like the infamous i386 svr4.0, and systems where the
bec39cab 14000 VM page cache was not coherent with the file system buffer cache
97bf5e38
MK
14001 like early versions of FreeBSD and possibly contemporary NetBSD.)
14002 For shared mappings, we should conversely verify that changes get
bec39cab 14003 propagated back to all the places they're supposed to be.
97bf5e38
MK
14004
14005 Grep wants private fixed already mapped.
14006 The main things grep needs to know about mmap are:
14007 * does it exist and is it safe to write into the mmap'd area
14008 * how to use it (BSD variants) */
bec39cab 14009
97bf5e38
MK
14010#include <fcntl.h>
14011#include <sys/mman.h>
14012
bec39cab
AC
14013#if !STDC_HEADERS && !HAVE_STDLIB_H
14014char *malloc ();
14015#endif
97bf5e38 14016
bec39cab
AC
14017/* This mess was copied from the GNU getpagesize.h. */
14018#if !HAVE_GETPAGESIZE
97bf5e38 14019/* Assume that all systems that can run configure have sys/param.h. */
bec39cab 14020# if !HAVE_SYS_PARAM_H
97bf5e38
MK
14021# define HAVE_SYS_PARAM_H 1
14022# endif
14023
14024# ifdef _SC_PAGESIZE
14025# define getpagesize() sysconf(_SC_PAGESIZE)
14026# else /* no _SC_PAGESIZE */
bec39cab 14027# if HAVE_SYS_PARAM_H
97bf5e38
MK
14028# include <sys/param.h>
14029# ifdef EXEC_PAGESIZE
14030# define getpagesize() EXEC_PAGESIZE
14031# else /* no EXEC_PAGESIZE */
14032# ifdef NBPG
14033# define getpagesize() NBPG * CLSIZE
14034# ifndef CLSIZE
14035# define CLSIZE 1
14036# endif /* no CLSIZE */
14037# else /* no NBPG */
14038# ifdef NBPC
14039# define getpagesize() NBPC
14040# else /* no NBPC */
14041# ifdef PAGESIZE
14042# define getpagesize() PAGESIZE
14043# endif /* PAGESIZE */
14044# endif /* no NBPC */
14045# endif /* no NBPG */
14046# endif /* no EXEC_PAGESIZE */
14047# else /* no HAVE_SYS_PARAM_H */
14048# define getpagesize() 8192 /* punt totally */
14049# endif /* no HAVE_SYS_PARAM_H */
14050# endif /* no _SC_PAGESIZE */
14051
14052#endif /* no HAVE_GETPAGESIZE */
14053
bec39cab
AC
14054int
14055main ()
14056{
14057 char *data, *data2, *data3;
14058 int i, pagesize;
14059 int fd;
14060
14061 pagesize = getpagesize ();
14062
14063 /* First, make a file with some known garbage in it. */
14064 data = (char *) malloc (pagesize);
14065 if (!data)
14066 exit (1);
14067 for (i = 0; i < pagesize; ++i)
14068 *(data + i) = rand ();
14069 umask (0);
14070 fd = creat ("conftest.mmap", 0600);
14071 if (fd < 0)
14072 exit (1);
14073 if (write (fd, data, pagesize) != pagesize)
14074 exit (1);
14075 close (fd);
14076
14077 /* Next, try to mmap the file at a fixed address which already has
14078 something else allocated at it. If we can, also make sure that
14079 we see the same garbage. */
14080 fd = open ("conftest.mmap", O_RDWR);
14081 if (fd < 0)
14082 exit (1);
14083 data2 = (char *) malloc (2 * pagesize);
14084 if (!data2)
14085 exit (1);
14086 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14087 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14088 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14089 exit (1);
14090 for (i = 0; i < pagesize; ++i)
14091 if (*(data + i) != *(data2 + i))
14092 exit (1);
14093
14094 /* Finally, make sure that changes to the mapped area do not
14095 percolate back to the file as seen by read(). (This is a bug on
14096 some variants of i386 svr4.0.) */
14097 for (i = 0; i < pagesize; ++i)
14098 *(data2 + i) = *(data2 + i) + 1;
14099 data3 = (char *) malloc (pagesize);
14100 if (!data3)
14101 exit (1);
14102 if (read (fd, data3, pagesize) != pagesize)
14103 exit (1);
14104 for (i = 0; i < pagesize; ++i)
14105 if (*(data + i) != *(data3 + i))
14106 exit (1);
14107 close (fd);
14108 exit (0);
14109}
14110_ACEOF
14111rm -f conftest$ac_exeext
14112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
97bf5e38 14122 ac_cv_func_mmap_fixed_mapped=yes
74c1b268 14123else
bec39cab
AC
14124 echo "$as_me: program exited with status $ac_status" >&5
14125echo "$as_me: failed program was:" >&5
14126sed 's/^/| /' conftest.$ac_ext >&5
14127
14128( exit $ac_status )
14129ac_cv_func_mmap_fixed_mapped=no
74c1b268 14130fi
bec39cab 14131rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
74c1b268 14132fi
74c1b268 14133fi
bec39cab
AC
14134echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14135echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
97bf5e38 14136if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
14137
14138cat >>confdefs.h <<\_ACEOF
97bf5e38 14139#define HAVE_MMAP 1
bec39cab 14140_ACEOF
74c1b268
AC
14141
14142fi
bec39cab 14143rm -f conftest.mmap
74c1b268 14144
bec39cab
AC
14145echo "$as_me:$LINENO: checking for pid_t" >&5
14146echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14147if test "${ac_cv_type_pid_t+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
0200359f 14149else
bec39cab
AC
14150 cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h. */
14156$ac_includes_default
14157int
14158main ()
14159{
14160if ((pid_t *) 0)
14161 return 0;
14162if (sizeof (pid_t))
14163 return 0;
14164 ;
14165 return 0;
14166}
14167_ACEOF
14168rm -f conftest.$ac_objext
14169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -z "$ac_c_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try='test -s conftest.$ac_objext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
97bf5e38 14190 ac_cv_type_pid_t=yes
0200359f 14191else
bec39cab
AC
14192 echo "$as_me: failed program was:" >&5
14193sed 's/^/| /' conftest.$ac_ext >&5
0200359f 14194
bec39cab 14195ac_cv_type_pid_t=no
0200359f 14196fi
bec39cab 14197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72473524 14198fi
bec39cab
AC
14199echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14200echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14201if test $ac_cv_type_pid_t = yes; then
14202 :
14203else
14204
14205cat >>confdefs.h <<_ACEOF
14206#define pid_t int
14207_ACEOF
14208
72473524 14209fi
72473524 14210
bec39cab
AC
14211
14212
14213for ac_header in unistd.h vfork.h
14214do
14215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14216if eval "test \"\${$as_ac_Header+set}\" = set"; then
14217 echo "$as_me:$LINENO: checking for $ac_header" >&5
14218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14219if eval "test \"\${$as_ac_Header+set}\" = set"; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221fi
14222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14224else
14225 # Is the header compilable?
14226echo "$as_me:$LINENO: checking $ac_header usability" >&5
14227echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14228cat >conftest.$ac_ext <<_ACEOF
14229/* confdefs.h. */
14230_ACEOF
14231cat confdefs.h >>conftest.$ac_ext
14232cat >>conftest.$ac_ext <<_ACEOF
14233/* end confdefs.h. */
14234$ac_includes_default
14235#include <$ac_header>
14236_ACEOF
14237rm -f conftest.$ac_objext
14238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14239 (eval $ac_compile) 2>conftest.er1
14240 ac_status=$?
14241 grep -v '^ *+' conftest.er1 >conftest.err
14242 rm -f conftest.er1
14243 cat conftest.err >&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try='test -z "$ac_c_werror_flag"
14247 || test ! -s conftest.err'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; } &&
14253 { ac_try='test -s conftest.$ac_objext'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14256 ac_status=$?
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14259 ac_header_compiler=yes
14260else
14261 echo "$as_me: failed program was:" >&5
14262sed 's/^/| /' conftest.$ac_ext >&5
14263
14264ac_header_compiler=no
14265fi
14266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14267echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14268echo "${ECHO_T}$ac_header_compiler" >&6
14269
14270# Is the header present?
14271echo "$as_me:$LINENO: checking $ac_header presence" >&5
14272echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14273cat >conftest.$ac_ext <<_ACEOF
14274/* confdefs.h. */
14275_ACEOF
14276cat confdefs.h >>conftest.$ac_ext
14277cat >>conftest.$ac_ext <<_ACEOF
14278/* end confdefs.h. */
14279#include <$ac_header>
14280_ACEOF
14281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14283 ac_status=$?
14284 grep -v '^ *+' conftest.er1 >conftest.err
14285 rm -f conftest.er1
14286 cat conftest.err >&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } >/dev/null; then
14289 if test -s conftest.err; then
14290 ac_cpp_err=$ac_c_preproc_warn_flag
14291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14292 else
14293 ac_cpp_err=
14294 fi
14295else
14296 ac_cpp_err=yes
14297fi
14298if test -z "$ac_cpp_err"; then
14299 ac_header_preproc=yes
97bf5e38 14300else
bec39cab
AC
14301 echo "$as_me: failed program was:" >&5
14302sed 's/^/| /' conftest.$ac_ext >&5
14303
14304 ac_header_preproc=no
72473524 14305fi
bec39cab
AC
14306rm -f conftest.err conftest.$ac_ext
14307echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14308echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 14309
bec39cab
AC
14310# So? What about this header?
14311case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14312 yes:no: )
14313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14314echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14316echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14317 ac_header_preproc=yes
14318 ;;
14319 no:yes:* )
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14321echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14323echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14325echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14327echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14329echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14331echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14332 (
14333 cat <<\_ASBOX
14334## ------------------------------------------ ##
14335## Report this to the AC_PACKAGE_NAME lists. ##
14336## ------------------------------------------ ##
14337_ASBOX
14338 ) |
14339 sed "s/^/$as_me: WARNING: /" >&2
14340 ;;
14341esac
14342echo "$as_me:$LINENO: checking for $ac_header" >&5
14343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14344if eval "test \"\${$as_ac_Header+set}\" = set"; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14346else
bec39cab
AC
14347 eval "$as_ac_Header=\$ac_header_preproc"
14348fi
14349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14351
14352fi
14353if test `eval echo '${'$as_ac_Header'}'` = yes; then
14354 cat >>confdefs.h <<_ACEOF
14355#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14356_ACEOF
14357
14358fi
14359
14360done
14361
14362
14363
14364for ac_func in fork vfork
14365do
14366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14367echo "$as_me:$LINENO: checking for $ac_func" >&5
14368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14369if eval "test \"\${$as_ac_var+set}\" = set"; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371else
14372 cat >conftest.$ac_ext <<_ACEOF
14373/* confdefs.h. */
14374_ACEOF
14375cat confdefs.h >>conftest.$ac_ext
14376cat >>conftest.$ac_ext <<_ACEOF
14377/* end confdefs.h. */
14378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14380#define $ac_func innocuous_$ac_func
14381
97bf5e38 14382/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14383 which can conflict with char $ac_func (); below.
14384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14385 <limits.h> exists even on freestanding compilers. */
2b2d558c 14386
bec39cab
AC
14387#ifdef __STDC__
14388# include <limits.h>
14389#else
14390# include <assert.h>
14391#endif
97bf5e38 14392
bec39cab
AC
14393#undef $ac_func
14394
14395/* Override any gcc2 internal prototype to avoid an error. */
14396#ifdef __cplusplus
14397extern "C"
14398{
14399#endif
14400/* We use char because int might match the return type of a gcc2
14401 builtin and then its argument prototype would still apply. */
14402char $ac_func ();
97bf5e38
MK
14403/* The GNU C library defines this for functions which it implements
14404 to always fail with ENOSYS. Some functions are actually named
14405 something starting with __ and the normal name is an alias. */
bec39cab 14406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38
MK
14407choke me
14408#else
bec39cab
AC
14409char (*f) () = $ac_func;
14410#endif
14411#ifdef __cplusplus
14412}
97bf5e38
MK
14413#endif
14414
bec39cab
AC
14415int
14416main ()
14417{
14418return f != $ac_func;
14419 ;
14420 return 0;
14421}
14422_ACEOF
14423rm -f conftest.$ac_objext conftest$ac_exeext
14424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14425 (eval $ac_link) 2>conftest.er1
14426 ac_status=$?
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -f conftest.er1
14429 cat conftest.err >&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
14432 { ac_try='test -z "$ac_c_werror_flag"
14433 || test ! -s conftest.err'
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; } &&
14439 { ac_try='test -s conftest$ac_exeext'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; }; then
14445 eval "$as_ac_var=yes"
14446else
14447 echo "$as_me: failed program was:" >&5
14448sed 's/^/| /' conftest.$ac_ext >&5
14449
14450eval "$as_ac_var=no"
14451fi
14452rm -f conftest.err conftest.$ac_objext \
14453 conftest$ac_exeext conftest.$ac_ext
14454fi
14455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14456echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14457if test `eval echo '${'$as_ac_var'}'` = yes; then
14458 cat >>confdefs.h <<_ACEOF
14459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14460_ACEOF
14461
2b2d558c 14462fi
bec39cab 14463done
2b2d558c 14464
bec39cab
AC
14465if test "x$ac_cv_func_fork" = xyes; then
14466 echo "$as_me:$LINENO: checking for working fork" >&5
14467echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14468if test "${ac_cv_func_fork_works+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14470else
bec39cab
AC
14471 if test "$cross_compiling" = yes; then
14472 ac_cv_func_fork_works=cross
14473else
14474 cat >conftest.$ac_ext <<_ACEOF
14475/* By Ruediger Kuhlmann. */
14476 #include <sys/types.h>
14477 #if HAVE_UNISTD_H
14478 # include <unistd.h>
14479 #endif
14480 /* Some systems only have a dummy stub for fork() */
14481 int main ()
14482 {
14483 if (fork() < 0)
14484 exit (1);
14485 exit (0);
14486 }
14487_ACEOF
14488rm -f conftest$ac_exeext
14489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14490 (eval $ac_link) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14496 ac_status=$?
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_cv_func_fork_works=yes
14500else
14501 echo "$as_me: program exited with status $ac_status" >&5
14502echo "$as_me: failed program was:" >&5
14503sed 's/^/| /' conftest.$ac_ext >&5
14504
14505( exit $ac_status )
14506ac_cv_func_fork_works=no
14507fi
14508rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14509fi
14510fi
14511echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14512echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14513
14514else
14515 ac_cv_func_fork_works=$ac_cv_func_fork
14516fi
14517if test "x$ac_cv_func_fork_works" = xcross; then
14518 case $host in
14519 *-*-amigaos* | *-*-msdosdjgpp*)
14520 # Override, as these systems have only a dummy fork() stub
14521 ac_cv_func_fork_works=no
14522 ;;
14523 *)
14524 ac_cv_func_fork_works=yes
14525 ;;
14526 esac
14527 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14528echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
2b2d558c 14529fi
97bf5e38 14530ac_cv_func_vfork_works=$ac_cv_func_vfork
bec39cab
AC
14531if test "x$ac_cv_func_vfork" = xyes; then
14532 echo "$as_me:$LINENO: checking for working vfork" >&5
14533echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14534if test "${ac_cv_func_vfork_works+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
7dfa765c 14536else
bec39cab
AC
14537 if test "$cross_compiling" = yes; then
14538 ac_cv_func_vfork_works=cross
14539else
14540 cat >conftest.$ac_ext <<_ACEOF
14541/* confdefs.h. */
14542_ACEOF
14543cat confdefs.h >>conftest.$ac_ext
14544cat >>conftest.$ac_ext <<_ACEOF
14545/* end confdefs.h. */
97bf5e38
MK
14546/* Thanks to Paul Eggert for this test. */
14547#include <stdio.h>
bec39cab 14548#include <stdlib.h>
97bf5e38
MK
14549#include <sys/types.h>
14550#include <sys/stat.h>
bec39cab
AC
14551#include <sys/wait.h>
14552#if HAVE_UNISTD_H
14553# include <unistd.h>
97bf5e38 14554#endif
bec39cab
AC
14555#if HAVE_VFORK_H
14556# include <vfork.h>
97bf5e38
MK
14557#endif
14558/* On some sparc systems, changes by the child to local and incoming
bec39cab
AC
14559 argument registers are propagated back to the parent. The compiler
14560 is told about this with #include <vfork.h>, but some compilers
14561 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14562 static variable whose address is put into a register that is
14563 clobbered by the vfork. */
14564static void
97bf5e38
MK
14565#ifdef __cplusplus
14566sparc_address_test (int arg)
bec39cab 14567# else
97bf5e38
MK
14568sparc_address_test (arg) int arg;
14569#endif
14570{
14571 static pid_t child;
14572 if (!child) {
14573 child = vfork ();
14574 if (child < 0) {
14575 perror ("vfork");
14576 _exit(2);
14577 }
14578 if (!child) {
14579 arg = getpid();
14580 write(-1, "", 0);
14581 _exit (arg);
14582 }
14583 }
14584}
bec39cab
AC
14585
14586int
14587main ()
14588{
97bf5e38
MK
14589 pid_t parent = getpid ();
14590 pid_t child;
7dfa765c 14591
bec39cab 14592 sparc_address_test (0);
7dfa765c 14593
97bf5e38 14594 child = vfork ();
7dfa765c 14595
97bf5e38 14596 if (child == 0) {
bec39cab
AC
14597 /* Here is another test for sparc vfork register problems. This
14598 test uses lots of local variables, at least as many local
14599 variables as main has allocated so far including compiler
14600 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14601 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14602 reuse the register of parent for one of the local variables,
14603 since it will think that parent can't possibly be used any more
14604 in this routine. Assigning to the local variable will thus
14605 munge parent in the parent process. */
97bf5e38
MK
14606 pid_t
14607 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14608 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14609 /* Convince the compiler that p..p7 are live; otherwise, it might
14610 use the same hardware register for all 8 local variables. */
14611 if (p != p1 || p != p2 || p != p3 || p != p4
14612 || p != p5 || p != p6 || p != p7)
14613 _exit(1);
7dfa765c 14614
bec39cab
AC
14615 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14616 from child file descriptors. If the child closes a descriptor
14617 before it execs or exits, this munges the parent's descriptor
14618 as well. Test for this by closing stdout in the child. */
97bf5e38
MK
14619 _exit(close(fileno(stdout)) != 0);
14620 } else {
14621 int status;
14622 struct stat st;
64bb1671 14623
97bf5e38
MK
14624 while (wait(&status) != child)
14625 ;
14626 exit(
14627 /* Was there some problem with vforking? */
14628 child < 0
64bb1671 14629
97bf5e38
MK
14630 /* Did the child fail? (This shouldn't happen.) */
14631 || status
64bb1671 14632
97bf5e38
MK
14633 /* Did the vfork/compiler bug occur? */
14634 || parent != getpid()
14635
14636 /* Did the file descriptor bug occur? */
14637 || fstat(fileno(stdout), &st) != 0
14638 );
14639 }
14640}
bec39cab
AC
14641_ACEOF
14642rm -f conftest$ac_exeext
14643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14644 (eval $ac_link) 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }; then
97bf5e38 14653 ac_cv_func_vfork_works=yes
5c44784c 14654else
bec39cab
AC
14655 echo "$as_me: program exited with status $ac_status" >&5
14656echo "$as_me: failed program was:" >&5
14657sed 's/^/| /' conftest.$ac_ext >&5
14658
14659( exit $ac_status )
14660ac_cv_func_vfork_works=no
5c44784c 14661fi
bec39cab 14662rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5c44784c 14663fi
bec39cab
AC
14664fi
14665echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
14666echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5c44784c 14667
bec39cab
AC
14668fi;
14669if test "x$ac_cv_func_fork_works" = xcross; then
14670 ac_cv_func_vfork_works=$ac_cv_func_vfork
14671 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14672echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
0afdd437
MK
14673fi
14674
bec39cab
AC
14675if test "x$ac_cv_func_vfork_works" = xyes; then
14676
14677cat >>confdefs.h <<\_ACEOF
14678#define HAVE_WORKING_VFORK 1
14679_ACEOF
14680
14681else
14682
14683cat >>confdefs.h <<\_ACEOF
97bf5e38 14684#define vfork fork
bec39cab
AC
14685_ACEOF
14686
14687fi
14688if test "x$ac_cv_func_fork_works" = xyes; then
14689
14690cat >>confdefs.h <<\_ACEOF
14691#define HAVE_WORKING_FORK 1
14692_ACEOF
0afdd437
MK
14693
14694fi
14695
bec39cab
AC
14696
14697
97bf5e38
MK
14698for ac_func in canonicalize_file_name realpath
14699do
bec39cab
AC
14700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14701echo "$as_me:$LINENO: checking for $ac_func" >&5
14702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14703if eval "test \"\${$as_ac_var+set}\" = set"; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14705else
14706 cat >conftest.$ac_ext <<_ACEOF
14707/* confdefs.h. */
14708_ACEOF
14709cat confdefs.h >>conftest.$ac_ext
14710cat >>conftest.$ac_ext <<_ACEOF
14711/* end confdefs.h. */
14712/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14714#define $ac_func innocuous_$ac_func
14715
97bf5e38 14716/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14717 which can conflict with char $ac_func (); below.
14718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14719 <limits.h> exists even on freestanding compilers. */
14720
14721#ifdef __STDC__
14722# include <limits.h>
14723#else
14724# include <assert.h>
14725#endif
97bf5e38 14726
bec39cab 14727#undef $ac_func
97bf5e38 14728
bec39cab
AC
14729/* Override any gcc2 internal prototype to avoid an error. */
14730#ifdef __cplusplus
14731extern "C"
14732{
14733#endif
14734/* We use char because int might match the return type of a gcc2
14735 builtin and then its argument prototype would still apply. */
14736char $ac_func ();
97bf5e38
MK
14737/* The GNU C library defines this for functions which it implements
14738 to always fail with ENOSYS. Some functions are actually named
14739 something starting with __ and the normal name is an alias. */
14740#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14741choke me
14742#else
bec39cab
AC
14743char (*f) () = $ac_func;
14744#endif
14745#ifdef __cplusplus
14746}
97bf5e38
MK
14747#endif
14748
bec39cab
AC
14749int
14750main ()
14751{
14752return f != $ac_func;
14753 ;
14754 return 0;
14755}
14756_ACEOF
14757rm -f conftest.$ac_objext conftest$ac_exeext
14758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14759 (eval $ac_link) 2>conftest.er1
14760 ac_status=$?
14761 grep -v '^ *+' conftest.er1 >conftest.err
14762 rm -f conftest.er1
14763 cat conftest.err >&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
14766 { ac_try='test -z "$ac_c_werror_flag"
14767 || test ! -s conftest.err'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try='test -s conftest$ac_exeext'
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14776 ac_status=$?
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; }; then
14779 eval "$as_ac_var=yes"
14780else
14781 echo "$as_me: failed program was:" >&5
14782sed 's/^/| /' conftest.$ac_ext >&5
14783
14784eval "$as_ac_var=no"
14785fi
14786rm -f conftest.err conftest.$ac_objext \
14787 conftest$ac_exeext conftest.$ac_ext
14788fi
14789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14790echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14791if test `eval echo '${'$as_ac_var'}'` = yes; then
14792 cat >>confdefs.h <<_ACEOF
14793#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14794_ACEOF
7e89e357 14795
7e89e357 14796fi
97bf5e38 14797done
7e89e357 14798
bec39cab 14799
97bf5e38 14800for ac_func in poll
7be570e7 14801do
bec39cab
AC
14802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14803echo "$as_me:$LINENO: checking for $ac_func" >&5
14804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14805if eval "test \"\${$as_ac_var+set}\" = set"; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14807else
14808 cat >conftest.$ac_ext <<_ACEOF
14809/* confdefs.h. */
14810_ACEOF
14811cat confdefs.h >>conftest.$ac_ext
14812cat >>conftest.$ac_ext <<_ACEOF
14813/* end confdefs.h. */
14814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14816#define $ac_func innocuous_$ac_func
14817
7be570e7 14818/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14819 which can conflict with char $ac_func (); below.
14820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14821 <limits.h> exists even on freestanding compilers. */
14822
14823#ifdef __STDC__
14824# include <limits.h>
14825#else
14826# include <assert.h>
14827#endif
7be570e7 14828
bec39cab 14829#undef $ac_func
7be570e7 14830
bec39cab
AC
14831/* Override any gcc2 internal prototype to avoid an error. */
14832#ifdef __cplusplus
14833extern "C"
14834{
14835#endif
14836/* We use char because int might match the return type of a gcc2
14837 builtin and then its argument prototype would still apply. */
14838char $ac_func ();
7be570e7
JM
14839/* The GNU C library defines this for functions which it implements
14840 to always fail with ENOSYS. Some functions are actually named
14841 something starting with __ and the normal name is an alias. */
14842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14843choke me
14844#else
bec39cab
AC
14845char (*f) () = $ac_func;
14846#endif
14847#ifdef __cplusplus
14848}
7be570e7
JM
14849#endif
14850
bec39cab
AC
14851int
14852main ()
14853{
14854return f != $ac_func;
14855 ;
14856 return 0;
14857}
14858_ACEOF
14859rm -f conftest.$ac_objext conftest$ac_exeext
14860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14861 (eval $ac_link) 2>conftest.er1
14862 ac_status=$?
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -z "$ac_c_werror_flag"
14869 || test ! -s conftest.err'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; } &&
14875 { ac_try='test -s conftest$ac_exeext'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; }; then
14881 eval "$as_ac_var=yes"
14882else
14883 echo "$as_me: failed program was:" >&5
14884sed 's/^/| /' conftest.$ac_ext >&5
14885
14886eval "$as_ac_var=no"
14887fi
14888rm -f conftest.err conftest.$ac_objext \
14889 conftest$ac_exeext conftest.$ac_ext
14890fi
14891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14892echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14893if test `eval echo '${'$as_ac_var'}'` = yes; then
14894 cat >>confdefs.h <<_ACEOF
14895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14896_ACEOF
14abd0fb 14897
14abd0fb
MK
14898fi
14899done
14900
bec39cab 14901
14abd0fb
MK
14902for ac_func in pread64
14903do
bec39cab
AC
14904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14905echo "$as_me:$LINENO: checking for $ac_func" >&5
14906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14907if eval "test \"\${$as_ac_var+set}\" = set"; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14909else
14910 cat >conftest.$ac_ext <<_ACEOF
14911/* confdefs.h. */
14912_ACEOF
14913cat confdefs.h >>conftest.$ac_ext
14914cat >>conftest.$ac_ext <<_ACEOF
14915/* end confdefs.h. */
14916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14918#define $ac_func innocuous_$ac_func
14919
14abd0fb 14920/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14921 which can conflict with char $ac_func (); below.
14922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14923 <limits.h> exists even on freestanding compilers. */
14924
14925#ifdef __STDC__
14926# include <limits.h>
14927#else
14928# include <assert.h>
14929#endif
14abd0fb 14930
bec39cab 14931#undef $ac_func
14abd0fb 14932
bec39cab
AC
14933/* Override any gcc2 internal prototype to avoid an error. */
14934#ifdef __cplusplus
14935extern "C"
14936{
14937#endif
14938/* We use char because int might match the return type of a gcc2
14939 builtin and then its argument prototype would still apply. */
14940char $ac_func ();
14abd0fb
MK
14941/* The GNU C library defines this for functions which it implements
14942 to always fail with ENOSYS. Some functions are actually named
14943 something starting with __ and the normal name is an alias. */
14944#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14945choke me
14946#else
bec39cab
AC
14947char (*f) () = $ac_func;
14948#endif
14949#ifdef __cplusplus
14950}
14abd0fb
MK
14951#endif
14952
bec39cab
AC
14953int
14954main ()
14955{
14956return f != $ac_func;
14957 ;
14958 return 0;
14959}
14960_ACEOF
14961rm -f conftest.$ac_objext conftest$ac_exeext
14962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14963 (eval $ac_link) 2>conftest.er1
14964 ac_status=$?
14965 grep -v '^ *+' conftest.er1 >conftest.err
14966 rm -f conftest.er1
14967 cat conftest.err >&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } &&
14970 { ac_try='test -z "$ac_c_werror_flag"
14971 || test ! -s conftest.err'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; } &&
14977 { ac_try='test -s conftest$ac_exeext'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983 eval "$as_ac_var=yes"
14984else
14985 echo "$as_me: failed program was:" >&5
14986sed 's/^/| /' conftest.$ac_ext >&5
14987
14988eval "$as_ac_var=no"
14989fi
14990rm -f conftest.err conftest.$ac_objext \
14991 conftest$ac_exeext conftest.$ac_ext
14992fi
14993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14994echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14995if test `eval echo '${'$as_ac_var'}'` = yes; then
14996 cat >>confdefs.h <<_ACEOF
14997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14998_ACEOF
7be570e7 14999
7be570e7
JM
15000fi
15001done
15002
bec39cab 15003
97bf5e38
MK
15004for ac_func in sbrk
15005do
bec39cab
AC
15006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15007echo "$as_me:$LINENO: checking for $ac_func" >&5
15008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15009if eval "test \"\${$as_ac_var+set}\" = set"; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15011else
15012 cat >conftest.$ac_ext <<_ACEOF
15013/* confdefs.h. */
15014_ACEOF
15015cat confdefs.h >>conftest.$ac_ext
15016cat >>conftest.$ac_ext <<_ACEOF
15017/* end confdefs.h. */
15018/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15020#define $ac_func innocuous_$ac_func
15021
97bf5e38 15022/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15023 which can conflict with char $ac_func (); below.
15024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15025 <limits.h> exists even on freestanding compilers. */
15026
15027#ifdef __STDC__
15028# include <limits.h>
15029#else
15030# include <assert.h>
15031#endif
c906108c 15032
bec39cab 15033#undef $ac_func
97bf5e38 15034
bec39cab
AC
15035/* Override any gcc2 internal prototype to avoid an error. */
15036#ifdef __cplusplus
15037extern "C"
15038{
15039#endif
15040/* We use char because int might match the return type of a gcc2
15041 builtin and then its argument prototype would still apply. */
15042char $ac_func ();
97bf5e38
MK
15043/* The GNU C library defines this for functions which it implements
15044 to always fail with ENOSYS. Some functions are actually named
15045 something starting with __ and the normal name is an alias. */
15046#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15047choke me
c906108c 15048#else
bec39cab
AC
15049char (*f) () = $ac_func;
15050#endif
15051#ifdef __cplusplus
15052}
c906108c 15053#endif
97bf5e38 15054
bec39cab
AC
15055int
15056main ()
15057{
15058return f != $ac_func;
15059 ;
15060 return 0;
15061}
15062_ACEOF
15063rm -f conftest.$ac_objext conftest$ac_exeext
15064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15065 (eval $ac_link) 2>conftest.er1
15066 ac_status=$?
15067 grep -v '^ *+' conftest.er1 >conftest.err
15068 rm -f conftest.er1
15069 cat conftest.err >&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
15072 { ac_try='test -z "$ac_c_werror_flag"
15073 || test ! -s conftest.err'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest$ac_exeext'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 eval "$as_ac_var=yes"
15086else
15087 echo "$as_me: failed program was:" >&5
15088sed 's/^/| /' conftest.$ac_ext >&5
15089
15090eval "$as_ac_var=no"
15091fi
15092rm -f conftest.err conftest.$ac_objext \
15093 conftest$ac_exeext conftest.$ac_ext
15094fi
15095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15096echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15097if test `eval echo '${'$as_ac_var'}'` = yes; then
15098 cat >>confdefs.h <<_ACEOF
15099#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15100_ACEOF
c906108c 15101
c906108c 15102fi
97bf5e38 15103done
c906108c 15104
bec39cab
AC
15105
15106
97bf5e38
MK
15107for ac_func in setpgid setpgrp
15108do
bec39cab
AC
15109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15110echo "$as_me:$LINENO: checking for $ac_func" >&5
15111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15112if eval "test \"\${$as_ac_var+set}\" = set"; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15114else
15115 cat >conftest.$ac_ext <<_ACEOF
15116/* confdefs.h. */
15117_ACEOF
15118cat confdefs.h >>conftest.$ac_ext
15119cat >>conftest.$ac_ext <<_ACEOF
15120/* end confdefs.h. */
15121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15123#define $ac_func innocuous_$ac_func
15124
97bf5e38 15125/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15126 which can conflict with char $ac_func (); below.
15127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15128 <limits.h> exists even on freestanding compilers. */
c906108c 15129
bec39cab
AC
15130#ifdef __STDC__
15131# include <limits.h>
15132#else
15133# include <assert.h>
15134#endif
97bf5e38 15135
bec39cab
AC
15136#undef $ac_func
15137
15138/* Override any gcc2 internal prototype to avoid an error. */
15139#ifdef __cplusplus
15140extern "C"
15141{
15142#endif
15143/* We use char because int might match the return type of a gcc2
15144 builtin and then its argument prototype would still apply. */
15145char $ac_func ();
97bf5e38
MK
15146/* The GNU C library defines this for functions which it implements
15147 to always fail with ENOSYS. Some functions are actually named
15148 something starting with __ and the normal name is an alias. */
15149#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15150choke me
c906108c 15151#else
bec39cab
AC
15152char (*f) () = $ac_func;
15153#endif
15154#ifdef __cplusplus
15155}
c906108c 15156#endif
97bf5e38 15157
bec39cab
AC
15158int
15159main ()
15160{
15161return f != $ac_func;
15162 ;
15163 return 0;
15164}
15165_ACEOF
15166rm -f conftest.$ac_objext conftest$ac_exeext
15167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>conftest.er1
15169 ac_status=$?
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -z "$ac_c_werror_flag"
15176 || test ! -s conftest.err'
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; } &&
15182 { ac_try='test -s conftest$ac_exeext'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 eval "$as_ac_var=yes"
15189else
15190 echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193eval "$as_ac_var=no"
15194fi
15195rm -f conftest.err conftest.$ac_objext \
15196 conftest$ac_exeext conftest.$ac_ext
15197fi
15198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15199echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15200if test `eval echo '${'$as_ac_var'}'` = yes; then
15201 cat >>confdefs.h <<_ACEOF
15202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15203_ACEOF
c906108c 15204
c906108c 15205fi
97bf5e38 15206done
c906108c 15207
bec39cab
AC
15208
15209
15210
e1ea1d75 15211for ac_func in sigaction sigprocmask sigsetmask
97bf5e38 15212do
bec39cab
AC
15213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15214echo "$as_me:$LINENO: checking for $ac_func" >&5
15215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15216if eval "test \"\${$as_ac_var+set}\" = set"; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218else
15219 cat >conftest.$ac_ext <<_ACEOF
15220/* confdefs.h. */
15221_ACEOF
15222cat confdefs.h >>conftest.$ac_ext
15223cat >>conftest.$ac_ext <<_ACEOF
15224/* end confdefs.h. */
15225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15227#define $ac_func innocuous_$ac_func
15228
97bf5e38 15229/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15230 which can conflict with char $ac_func (); below.
15231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15232 <limits.h> exists even on freestanding compilers. */
15233
15234#ifdef __STDC__
15235# include <limits.h>
15236#else
15237# include <assert.h>
15238#endif
c906108c 15239
bec39cab 15240#undef $ac_func
97bf5e38 15241
bec39cab
AC
15242/* Override any gcc2 internal prototype to avoid an error. */
15243#ifdef __cplusplus
15244extern "C"
15245{
15246#endif
15247/* We use char because int might match the return type of a gcc2
15248 builtin and then its argument prototype would still apply. */
15249char $ac_func ();
97bf5e38
MK
15250/* The GNU C library defines this for functions which it implements
15251 to always fail with ENOSYS. Some functions are actually named
15252 something starting with __ and the normal name is an alias. */
15253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15254choke me
c906108c 15255#else
bec39cab
AC
15256char (*f) () = $ac_func;
15257#endif
15258#ifdef __cplusplus
15259}
c906108c 15260#endif
97bf5e38 15261
bec39cab
AC
15262int
15263main ()
15264{
15265return f != $ac_func;
15266 ;
15267 return 0;
15268}
15269_ACEOF
15270rm -f conftest.$ac_objext conftest$ac_exeext
15271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15272 (eval $ac_link) 2>conftest.er1
15273 ac_status=$?
15274 grep -v '^ *+' conftest.er1 >conftest.err
15275 rm -f conftest.er1
15276 cat conftest.err >&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } &&
15279 { ac_try='test -z "$ac_c_werror_flag"
15280 || test ! -s conftest.err'
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15283 ac_status=$?
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; } &&
15286 { ac_try='test -s conftest$ac_exeext'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15289 ac_status=$?
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; }; then
15292 eval "$as_ac_var=yes"
15293else
15294 echo "$as_me: failed program was:" >&5
15295sed 's/^/| /' conftest.$ac_ext >&5
15296
15297eval "$as_ac_var=no"
15298fi
15299rm -f conftest.err conftest.$ac_objext \
15300 conftest$ac_exeext conftest.$ac_ext
15301fi
15302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15303echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15304if test `eval echo '${'$as_ac_var'}'` = yes; then
15305 cat >>confdefs.h <<_ACEOF
15306#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15307_ACEOF
c906108c 15308
c906108c 15309fi
97bf5e38 15310done
c906108c 15311
bec39cab 15312
97bf5e38
MK
15313for ac_func in socketpair
15314do
bec39cab
AC
15315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15316echo "$as_me:$LINENO: checking for $ac_func" >&5
15317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15318if eval "test \"\${$as_ac_var+set}\" = set"; then
15319 echo $ECHO_N "(cached) $ECHO_C" >&6
15320else
15321 cat >conftest.$ac_ext <<_ACEOF
15322/* confdefs.h. */
15323_ACEOF
15324cat confdefs.h >>conftest.$ac_ext
15325cat >>conftest.$ac_ext <<_ACEOF
15326/* end confdefs.h. */
15327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15329#define $ac_func innocuous_$ac_func
15330
97bf5e38 15331/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15332 which can conflict with char $ac_func (); below.
15333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15334 <limits.h> exists even on freestanding compilers. */
15335
15336#ifdef __STDC__
15337# include <limits.h>
15338#else
15339# include <assert.h>
15340#endif
c906108c 15341
bec39cab 15342#undef $ac_func
97bf5e38 15343
bec39cab
AC
15344/* Override any gcc2 internal prototype to avoid an error. */
15345#ifdef __cplusplus
15346extern "C"
15347{
15348#endif
15349/* We use char because int might match the return type of a gcc2
15350 builtin and then its argument prototype would still apply. */
15351char $ac_func ();
97bf5e38
MK
15352/* The GNU C library defines this for functions which it implements
15353 to always fail with ENOSYS. Some functions are actually named
15354 something starting with __ and the normal name is an alias. */
15355#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15356choke me
c906108c 15357#else
bec39cab
AC
15358char (*f) () = $ac_func;
15359#endif
15360#ifdef __cplusplus
15361}
c906108c 15362#endif
97bf5e38 15363
bec39cab
AC
15364int
15365main ()
15366{
15367return f != $ac_func;
15368 ;
15369 return 0;
15370}
15371_ACEOF
15372rm -f conftest.$ac_objext conftest$ac_exeext
15373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15374 (eval $ac_link) 2>conftest.er1
15375 ac_status=$?
15376 grep -v '^ *+' conftest.er1 >conftest.err
15377 rm -f conftest.er1
15378 cat conftest.err >&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
15381 { ac_try='test -z "$ac_c_werror_flag"
15382 || test ! -s conftest.err'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest$ac_exeext'
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; }; then
15394 eval "$as_ac_var=yes"
15395else
15396 echo "$as_me: failed program was:" >&5
15397sed 's/^/| /' conftest.$ac_ext >&5
15398
15399eval "$as_ac_var=no"
15400fi
15401rm -f conftest.err conftest.$ac_objext \
15402 conftest$ac_exeext conftest.$ac_ext
15403fi
15404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15405echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15406if test `eval echo '${'$as_ac_var'}'` = yes; then
15407 cat >>confdefs.h <<_ACEOF
15408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15409_ACEOF
c906108c 15410
c906108c 15411fi
97bf5e38 15412done
c906108c 15413
bec39cab 15414
b757528f
JJ
15415for ac_func in syscall
15416do
bec39cab
AC
15417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15418echo "$as_me:$LINENO: checking for $ac_func" >&5
15419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15420if eval "test \"\${$as_ac_var+set}\" = set"; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15422else
15423 cat >conftest.$ac_ext <<_ACEOF
15424/* confdefs.h. */
15425_ACEOF
15426cat confdefs.h >>conftest.$ac_ext
15427cat >>conftest.$ac_ext <<_ACEOF
15428/* end confdefs.h. */
15429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15431#define $ac_func innocuous_$ac_func
15432
b757528f 15433/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15434 which can conflict with char $ac_func (); below.
15435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15436 <limits.h> exists even on freestanding compilers. */
15437
15438#ifdef __STDC__
15439# include <limits.h>
15440#else
15441# include <assert.h>
15442#endif
b757528f 15443
bec39cab 15444#undef $ac_func
b757528f 15445
bec39cab
AC
15446/* Override any gcc2 internal prototype to avoid an error. */
15447#ifdef __cplusplus
15448extern "C"
15449{
15450#endif
15451/* We use char because int might match the return type of a gcc2
15452 builtin and then its argument prototype would still apply. */
15453char $ac_func ();
b757528f
JJ
15454/* The GNU C library defines this for functions which it implements
15455 to always fail with ENOSYS. Some functions are actually named
15456 something starting with __ and the normal name is an alias. */
15457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15458choke me
15459#else
bec39cab
AC
15460char (*f) () = $ac_func;
15461#endif
15462#ifdef __cplusplus
15463}
b757528f
JJ
15464#endif
15465
bec39cab
AC
15466int
15467main ()
15468{
15469return f != $ac_func;
15470 ;
15471 return 0;
15472}
15473_ACEOF
15474rm -f conftest.$ac_objext conftest$ac_exeext
15475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15476 (eval $ac_link) 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try='test -z "$ac_c_werror_flag"
15484 || test ! -s conftest.err'
15485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486 (eval $ac_try) 2>&5
15487 ac_status=$?
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; } &&
15490 { ac_try='test -s conftest$ac_exeext'
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15493 ac_status=$?
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; }; then
15496 eval "$as_ac_var=yes"
15497else
15498 echo "$as_me: failed program was:" >&5
15499sed 's/^/| /' conftest.$ac_ext >&5
15500
15501eval "$as_ac_var=no"
15502fi
15503rm -f conftest.err conftest.$ac_objext \
15504 conftest$ac_exeext conftest.$ac_ext
15505fi
15506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15508if test `eval echo '${'$as_ac_var'}'` = yes; then
15509 cat >>confdefs.h <<_ACEOF
15510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15511_ACEOF
b757528f 15512
b757528f
JJ
15513fi
15514done
15515
bec39cab 15516
bcb3dc3d
MK
15517for ac_func in ttrace
15518do
bec39cab
AC
15519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15520echo "$as_me:$LINENO: checking for $ac_func" >&5
15521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15522if eval "test \"\${$as_ac_var+set}\" = set"; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15524else
15525 cat >conftest.$ac_ext <<_ACEOF
15526/* confdefs.h. */
15527_ACEOF
15528cat confdefs.h >>conftest.$ac_ext
15529cat >>conftest.$ac_ext <<_ACEOF
15530/* end confdefs.h. */
15531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15533#define $ac_func innocuous_$ac_func
15534
bcb3dc3d 15535/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15536 which can conflict with char $ac_func (); below.
15537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15538 <limits.h> exists even on freestanding compilers. */
15539
15540#ifdef __STDC__
15541# include <limits.h>
15542#else
15543# include <assert.h>
15544#endif
bcb3dc3d 15545
bec39cab 15546#undef $ac_func
bcb3dc3d 15547
bec39cab
AC
15548/* Override any gcc2 internal prototype to avoid an error. */
15549#ifdef __cplusplus
15550extern "C"
15551{
15552#endif
15553/* We use char because int might match the return type of a gcc2
15554 builtin and then its argument prototype would still apply. */
15555char $ac_func ();
bcb3dc3d
MK
15556/* The GNU C library defines this for functions which it implements
15557 to always fail with ENOSYS. Some functions are actually named
15558 something starting with __ and the normal name is an alias. */
15559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15560choke me
15561#else
bec39cab
AC
15562char (*f) () = $ac_func;
15563#endif
15564#ifdef __cplusplus
15565}
bcb3dc3d
MK
15566#endif
15567
bec39cab
AC
15568int
15569main ()
15570{
15571return f != $ac_func;
15572 ;
15573 return 0;
15574}
15575_ACEOF
15576rm -f conftest.$ac_objext conftest$ac_exeext
15577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578 (eval $ac_link) 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest$ac_exeext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 eval "$as_ac_var=yes"
15599else
15600 echo "$as_me: failed program was:" >&5
15601sed 's/^/| /' conftest.$ac_ext >&5
15602
15603eval "$as_ac_var=no"
15604fi
15605rm -f conftest.err conftest.$ac_objext \
15606 conftest$ac_exeext conftest.$ac_ext
15607fi
15608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15609echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15610if test `eval echo '${'$as_ac_var'}'` = yes; then
15611 cat >>confdefs.h <<_ACEOF
15612#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15613_ACEOF
bcb3dc3d 15614
bcb3dc3d
MK
15615fi
15616done
15617
bec39cab 15618
8b9cf735
MK
15619for ac_func in wborder
15620do
bec39cab
AC
15621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15622echo "$as_me:$LINENO: checking for $ac_func" >&5
15623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15624if eval "test \"\${$as_ac_var+set}\" = set"; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626else
15627 cat >conftest.$ac_ext <<_ACEOF
15628/* confdefs.h. */
15629_ACEOF
15630cat confdefs.h >>conftest.$ac_ext
15631cat >>conftest.$ac_ext <<_ACEOF
15632/* end confdefs.h. */
15633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15635#define $ac_func innocuous_$ac_func
15636
8b9cf735 15637/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15638 which can conflict with char $ac_func (); below.
15639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15640 <limits.h> exists even on freestanding compilers. */
15641
15642#ifdef __STDC__
15643# include <limits.h>
15644#else
15645# include <assert.h>
15646#endif
8b9cf735 15647
bec39cab 15648#undef $ac_func
8b9cf735 15649
bec39cab
AC
15650/* Override any gcc2 internal prototype to avoid an error. */
15651#ifdef __cplusplus
15652extern "C"
15653{
15654#endif
15655/* We use char because int might match the return type of a gcc2
15656 builtin and then its argument prototype would still apply. */
15657char $ac_func ();
8b9cf735
MK
15658/* The GNU C library defines this for functions which it implements
15659 to always fail with ENOSYS. Some functions are actually named
15660 something starting with __ and the normal name is an alias. */
15661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15662choke me
15663#else
bec39cab
AC
15664char (*f) () = $ac_func;
15665#endif
15666#ifdef __cplusplus
15667}
8b9cf735
MK
15668#endif
15669
bec39cab
AC
15670int
15671main ()
15672{
15673return f != $ac_func;
15674 ;
15675 return 0;
15676}
15677_ACEOF
15678rm -f conftest.$ac_objext conftest$ac_exeext
15679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15680 (eval $ac_link) 2>conftest.er1
15681 ac_status=$?
15682 grep -v '^ *+' conftest.er1 >conftest.err
15683 rm -f conftest.er1
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } &&
15687 { ac_try='test -z "$ac_c_werror_flag"
15688 || test ! -s conftest.err'
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; } &&
15694 { ac_try='test -s conftest$ac_exeext'
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 eval "$as_ac_var=yes"
15701else
15702 echo "$as_me: failed program was:" >&5
15703sed 's/^/| /' conftest.$ac_ext >&5
15704
15705eval "$as_ac_var=no"
15706fi
15707rm -f conftest.err conftest.$ac_objext \
15708 conftest$ac_exeext conftest.$ac_ext
15709fi
15710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15712if test `eval echo '${'$as_ac_var'}'` = yes; then
15713 cat >>confdefs.h <<_ACEOF
15714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15715_ACEOF
8b9cf735 15716
8b9cf735
MK
15717fi
15718done
15719
97bf5e38 15720
086ec9eb
MK
15721# Check the return and argument types of ptrace. No canned test for
15722# this, so roll our own.
15723gdb_ptrace_headers='
15724#if HAVE_SYS_TYPES_H
15725# include <sys/types.h>
15726#endif
15727#if HAVE_SYS_PTRACE_H
15728# include <sys/ptrace.h>
15729#endif
15730#if HAVE_UNISTD_H
15731# include <unistd.h>
15732#endif
15733'
15734# There is no point in checking if we don't have a prototype.
15735for ac_func in ptrace
15736do
15737 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
bec39cab
AC
15738echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
15739echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
15740if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742else
15743 cat >conftest.$ac_ext <<_ACEOF
15744/* confdefs.h. */
15745_ACEOF
15746cat confdefs.h >>conftest.$ac_ext
15747cat >>conftest.$ac_ext <<_ACEOF
15748/* end confdefs.h. */
086ec9eb
MK
15749#undef $ac_tr_decl
15750#define $ac_tr_decl 1
15751 $gdb_ptrace_headers
15752
bec39cab
AC
15753int
15754main ()
15755{
086ec9eb
MK
15756#ifndef $ac_func
15757char *(*pfn) = (char *(*)) $ac_func ;
15758#endif
bec39cab
AC
15759 ;
15760 return 0;
15761}
15762_ACEOF
15763rm -f conftest.$ac_objext
15764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15765 (eval $ac_compile) 2>conftest.er1
15766 ac_status=$?
15767 grep -v '^ *+' conftest.er1 >conftest.err
15768 rm -f conftest.er1
15769 cat conftest.err >&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
15772 { ac_try='test -z "$ac_c_werror_flag"
15773 || test ! -s conftest.err'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; } &&
15779 { ac_try='test -s conftest.$ac_objext'
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; }; then
086ec9eb
MK
15785 eval "gcc_cv_have_decl_$ac_func=yes"
15786else
bec39cab
AC
15787 echo "$as_me: failed program was:" >&5
15788sed 's/^/| /' conftest.$ac_ext >&5
15789
15790eval "gcc_cv_have_decl_$ac_func=no"
086ec9eb 15791fi
bec39cab 15792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
086ec9eb
MK
15793fi
15794
15795if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
bec39cab
AC
15796 echo "$as_me:$LINENO: result: yes" >&5
15797echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
086ec9eb 15798#define $ac_tr_decl 1
bec39cab
AC
15799_ACEOF
15800
086ec9eb 15801else
bec39cab
AC
15802 echo "$as_me:$LINENO: result: no" >&5
15803echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
086ec9eb 15804#define $ac_tr_decl 0
bec39cab
AC
15805_ACEOF
15806
086ec9eb
MK
15807 : ${gdb_cv_func_ptrace_ret='int'}
15808 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15809
15810fi
15811
15812done
15813if test x = y ; then
bec39cab
AC
15814
15815cat >>confdefs.h <<\_ACEOF
086ec9eb 15816#define HAVE_DECL_PTRACE 1
bec39cab 15817_ACEOF
086ec9eb
MK
15818fi
15819
15820# Check return type.
bec39cab
AC
15821echo "$as_me:$LINENO: checking return type of ptrace" >&5
15822echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
15823if test "${gdb_cv_func_ptrace_ret+set}" = set; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15825else
15826 cat >conftest.$ac_ext <<_ACEOF
15827/* confdefs.h. */
15828_ACEOF
15829cat confdefs.h >>conftest.$ac_ext
15830cat >>conftest.$ac_ext <<_ACEOF
15831/* end confdefs.h. */
086ec9eb 15832$gdb_ptrace_headers
bec39cab
AC
15833int
15834main ()
15835{
5885ab49 15836extern int ptrace ();
bec39cab
AC
15837 ;
15838 return 0;
15839}
15840_ACEOF
15841rm -f conftest.$ac_objext
15842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15843 (eval $ac_compile) 2>conftest.er1
15844 ac_status=$?
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
15850 { ac_try='test -z "$ac_c_werror_flag"
15851 || test ! -s conftest.err'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; } &&
15857 { ac_try='test -s conftest.$ac_objext'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; }; then
5885ab49 15863 gdb_cv_func_ptrace_ret='int'
086ec9eb 15864else
bec39cab
AC
15865 echo "$as_me: failed program was:" >&5
15866sed 's/^/| /' conftest.$ac_ext >&5
15867
15868gdb_cv_func_ptrace_ret='long'
086ec9eb 15869fi
bec39cab 15870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
086ec9eb 15871fi
bec39cab
AC
15872echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
15873echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
086ec9eb 15874
bec39cab 15875cat >>confdefs.h <<_ACEOF
086ec9eb 15876#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 15877_ACEOF
086ec9eb
MK
15878
15879# Check argument types.
bec39cab
AC
15880echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
15881echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
15882if test "${gdb_cv_func_ptrace_args+set}" = set; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
086ec9eb 15884else
bec39cab 15885
086ec9eb
MK
15886for gdb_arg1 in 'int' 'long'; do
15887 for gdb_arg2 in 'pid_t' 'int' 'long'; do
15888 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
15889 for gdb_arg4 in 'int' 'long'; do
bec39cab
AC
15890 cat >conftest.$ac_ext <<_ACEOF
15891/* confdefs.h. */
15892_ACEOF
15893cat confdefs.h >>conftest.$ac_ext
15894cat >>conftest.$ac_ext <<_ACEOF
15895/* end confdefs.h. */
086ec9eb 15896$gdb_ptrace_headers
bec39cab
AC
15897int
15898main ()
15899{
086ec9eb
MK
15900
15901extern $gdb_cv_func_ptrace_ret
15902 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15903
bec39cab
AC
15904 ;
15905 return 0;
15906}
15907_ACEOF
15908rm -f conftest.$ac_objext
15909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15910 (eval $ac_compile) 2>conftest.er1
15911 ac_status=$?
15912 grep -v '^ *+' conftest.er1 >conftest.err
15913 rm -f conftest.er1
15914 cat conftest.err >&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } &&
15917 { ac_try='test -z "$ac_c_werror_flag"
15918 || test ! -s conftest.err'
15919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15921 ac_status=$?
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; } &&
15924 { ac_try='test -s conftest.$ac_objext'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
086ec9eb
MK
15930 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15931 break 4;
15932else
bec39cab
AC
15933 echo "$as_me: failed program was:" >&5
15934sed 's/^/| /' conftest.$ac_ext >&5
15935
086ec9eb 15936fi
bec39cab 15937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
086ec9eb 15938 for gdb_arg5 in 'int *' 'int' 'long'; do
bec39cab
AC
15939 cat >conftest.$ac_ext <<_ACEOF
15940/* confdefs.h. */
15941_ACEOF
15942cat confdefs.h >>conftest.$ac_ext
15943cat >>conftest.$ac_ext <<_ACEOF
15944/* end confdefs.h. */
086ec9eb 15945$gdb_ptrace_headers
bec39cab
AC
15946int
15947main ()
15948{
086ec9eb
MK
15949
15950extern $gdb_cv_func_ptrace_ret
15951 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15952
bec39cab
AC
15953 ;
15954 return 0;
15955}
15956_ACEOF
15957rm -f conftest.$ac_objext
15958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15959 (eval $ac_compile) 2>conftest.er1
15960 ac_status=$?
15961 grep -v '^ *+' conftest.er1 >conftest.err
15962 rm -f conftest.er1
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } &&
15966 { ac_try='test -z "$ac_c_werror_flag"
15967 || test ! -s conftest.err'
15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969 (eval $ac_try) 2>&5
15970 ac_status=$?
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; } &&
15973 { ac_try='test -s conftest.$ac_objext'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15976 ac_status=$?
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15979
086ec9eb
MK
15980gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15981 break 5;
15982else
bec39cab
AC
15983 echo "$as_me: failed program was:" >&5
15984sed 's/^/| /' conftest.$ac_ext >&5
15985
086ec9eb 15986fi
bec39cab 15987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
086ec9eb
MK
15988 done
15989 done
15990 done
15991 done
15992done
15993# Provide a safe default value.
15994: ${gdb_cv_func_ptrace_args='int,int,long,long'}
15995
15996fi
bec39cab
AC
15997echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
15998echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
086ec9eb
MK
15999ac_save_IFS=$IFS; IFS=','
16000set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16001IFS=$ac_save_IFS
16002shift
bec39cab
AC
16003
16004cat >>confdefs.h <<_ACEOF
64218d3e 16005#define PTRACE_TYPE_ARG3 $3
bec39cab 16006_ACEOF
086ec9eb
MK
16007
16008if test -n "$5"; then
bec39cab
AC
16009
16010cat >>confdefs.h <<_ACEOF
64218d3e 16011#define PTRACE_TYPE_ARG5 $5
bec39cab 16012_ACEOF
086ec9eb
MK
16013
16014fi
16015
97bf5e38 16016if test "$cross_compiling" = no; then
bec39cab
AC
16017 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16018echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16019if test "${ac_cv_func_setpgrp_void+set}" = set; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
16021else
16022 if test "$cross_compiling" = yes; then
bec39cab
AC
16023 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16024echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16025 { (exit 1); exit 1; }; }
16026else
16027 cat >conftest.$ac_ext <<_ACEOF
16028/* confdefs.h. */
16029_ACEOF
16030cat confdefs.h >>conftest.$ac_ext
16031cat >>conftest.$ac_ext <<_ACEOF
16032/* end confdefs.h. */
16033#if HAVE_UNISTD_H
16034# include <unistd.h>
c906108c 16035#endif
97bf5e38 16036
bec39cab
AC
16037int
16038main ()
97bf5e38 16039{
bec39cab
AC
16040/* If this system has a BSD-style setpgrp which takes arguments,
16041 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16042 exit successfully. */
16043 exit (setpgrp (1,1) == -1 ? 0 : 1);
16044 ;
16045 return 0;
97bf5e38 16046}
bec39cab
AC
16047_ACEOF
16048rm -f conftest$ac_exeext
16049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16050 (eval $ac_link) 2>&5
16051 ac_status=$?
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
97bf5e38 16059 ac_cv_func_setpgrp_void=no
c906108c 16060else
bec39cab
AC
16061 echo "$as_me: program exited with status $ac_status" >&5
16062echo "$as_me: failed program was:" >&5
16063sed 's/^/| /' conftest.$ac_ext >&5
16064
16065( exit $ac_status )
16066ac_cv_func_setpgrp_void=yes
c906108c 16067fi
bec39cab 16068rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 16069fi
97bf5e38 16070fi
bec39cab
AC
16071echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16072echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
97bf5e38 16073if test $ac_cv_func_setpgrp_void = yes; then
bec39cab
AC
16074
16075cat >>confdefs.h <<\_ACEOF
97bf5e38 16076#define SETPGRP_VOID 1
bec39cab 16077_ACEOF
c906108c
SS
16078
16079fi
16080
97bf5e38 16081else
bec39cab
AC
16082 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16083echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16084if test "${ac_cv_func_setpgrp_void+set}" = set; then
16085 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 16086else
bec39cab
AC
16087 cat >conftest.$ac_ext <<_ACEOF
16088/* confdefs.h. */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h. */
b83266a0 16093
b83266a0 16094#include <unistd.h>
97bf5e38 16095
bec39cab
AC
16096int
16097main ()
16098{
97bf5e38
MK
16099
16100 if (setpgrp(1,1) == -1)
16101 exit (0);
16102 else
16103 exit (1);
16104
bec39cab
AC
16105 ;
16106 return 0;
16107}
16108_ACEOF
16109rm -f conftest.$ac_objext
16110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16111 (eval $ac_compile) 2>conftest.er1
16112 ac_status=$?
16113 grep -v '^ *+' conftest.er1 >conftest.err
16114 rm -f conftest.er1
16115 cat conftest.err >&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } &&
16118 { ac_try='test -z "$ac_c_werror_flag"
16119 || test ! -s conftest.err'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; } &&
16125 { ac_try='test -s conftest.$ac_objext'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; }; then
97bf5e38 16131 ac_cv_func_setpgrp_void=no
b83266a0 16132else
bec39cab
AC
16133 echo "$as_me: failed program was:" >&5
16134sed 's/^/| /' conftest.$ac_ext >&5
16135
16136ac_cv_func_setpgrp_void=yes
b83266a0 16137fi
bec39cab 16138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b83266a0 16139fi
bec39cab
AC
16140echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16141echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
97bf5e38 16142if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 16143 cat >>confdefs.h <<\_ACEOF
97bf5e38 16144#define SETPGRP_VOID 1
bec39cab 16145_ACEOF
b83266a0 16146
97bf5e38 16147fi
b83266a0
SS
16148fi
16149
97bf5e38
MK
16150# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16151# since sigsetjmp might only be defined as a macro.
bec39cab
AC
16152echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16153echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16154if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16156else
16157 cat >conftest.$ac_ext <<_ACEOF
16158/* confdefs.h. */
16159_ACEOF
16160cat confdefs.h >>conftest.$ac_ext
16161cat >>conftest.$ac_ext <<_ACEOF
16162/* end confdefs.h. */
a4db0f07 16163
97bf5e38
MK
16164#include <setjmp.h>
16165
bec39cab
AC
16166int
16167main ()
16168{
97bf5e38 16169sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
16170 ;
16171 return 0;
16172}
16173_ACEOF
16174rm -f conftest.$ac_objext
16175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16176 (eval $ac_compile) 2>conftest.er1
16177 ac_status=$?
16178 grep -v '^ *+' conftest.er1 >conftest.err
16179 rm -f conftest.er1
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag"
16184 || test ! -s conftest.err'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; } &&
16190 { ac_try='test -s conftest.$ac_objext'
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
97bf5e38 16196 gdb_cv_func_sigsetjmp=yes
a4db0f07 16197else
bec39cab
AC
16198 echo "$as_me: failed program was:" >&5
16199sed 's/^/| /' conftest.$ac_ext >&5
16200
16201gdb_cv_func_sigsetjmp=no
a4db0f07 16202fi
bec39cab 16203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a4db0f07 16204fi
bec39cab
AC
16205echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16206echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
97bf5e38 16207if test $gdb_cv_func_sigsetjmp = yes; then
bec39cab
AC
16208
16209cat >>confdefs.h <<\_ACEOF
97bf5e38 16210#define HAVE_SIGSETJMP 1
bec39cab 16211_ACEOF
a4db0f07
RH
16212
16213fi
c906108c 16214
06825bd1
MK
16215# Assume we'll default to using the included libiberty regex.
16216gdb_use_included_regex=yes
16217
16218# However, if the system regex is GNU regex, then default to *not*
16219# using the included regex.
bec39cab
AC
16220echo "$as_me:$LINENO: checking for GNU regex" >&5
16221echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16222if test "${gdb_cv_have_gnu_regex+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16224else
16225 cat >conftest.$ac_ext <<_ACEOF
16226/* confdefs.h. */
16227_ACEOF
16228cat confdefs.h >>conftest.$ac_ext
16229cat >>conftest.$ac_ext <<_ACEOF
16230/* end confdefs.h. */
06825bd1 16231#include <gnu-versions.h>
bec39cab
AC
16232int
16233main ()
16234{
06825bd1
MK
16235#define REGEX_INTERFACE_VERSION 1
16236#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16237# error "Version mismatch"
16238#endif
bec39cab
AC
16239 ;
16240 return 0;
16241}
16242_ACEOF
16243rm -f conftest.$ac_objext
16244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16245 (eval $ac_compile) 2>conftest.er1
16246 ac_status=$?
16247 grep -v '^ *+' conftest.er1 >conftest.err
16248 rm -f conftest.er1
16249 cat conftest.err >&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
16252 { ac_try='test -z "$ac_c_werror_flag"
16253 || test ! -s conftest.err'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; } &&
16259 { ac_try='test -s conftest.$ac_objext'
16260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16262 ac_status=$?
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
06825bd1
MK
16265 gdb_cv_have_gnu_regex=yes
16266else
bec39cab
AC
16267 echo "$as_me: failed program was:" >&5
16268sed 's/^/| /' conftest.$ac_ext >&5
16269
16270gdb_cv_have_gnu_regex=no
06825bd1 16271fi
bec39cab 16272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 16273fi
bec39cab
AC
16274echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16275echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
06825bd1
MK
16276if test $gdb_cv_have_gnu_regex = yes; then
16277 gdb_use_included_regex=no
16278fi
16279
bec39cab 16280
06825bd1
MK
16281# Check whether --with-included-regex or --without-included-regex was given.
16282if test "${with_included_regex+set}" = set; then
16283 withval="$with_included_regex"
16284 gdb_with_regex=$withval
16285else
16286 gdb_with_regex=$gdb_use_included_regex
bec39cab 16287fi;
06825bd1 16288if test "$gdb_with_regex" = yes; then
bec39cab
AC
16289
16290cat >>confdefs.h <<\_ACEOF
06825bd1 16291#define USE_INCLUDED_REGEX 1
bec39cab 16292_ACEOF
06825bd1
MK
16293
16294fi
16295
70f9f479 16296# See if <sys/proc.h> defines `struct thread' with a td_pcb member.
bec39cab
AC
16297echo "$as_me:$LINENO: checking for td_pcb in struct thread" >&5
16298echo $ECHO_N "checking for td_pcb in struct thread... $ECHO_C" >&6
16299if test "${gdb_cv_struct_thread_td_pcb+set}" = set; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16301else
16302 cat >conftest.$ac_ext <<_ACEOF
16303/* confdefs.h. */
16304_ACEOF
16305cat confdefs.h >>conftest.$ac_ext
16306cat >>conftest.$ac_ext <<_ACEOF
16307/* end confdefs.h. */
d15be926 16308#include <sys/param.h>
70f9f479 16309#include <sys/proc.h>
bec39cab
AC
16310int
16311main ()
16312{
70f9f479 16313struct thread td; td.td_pcb;
bec39cab
AC
16314 ;
16315 return 0;
16316}
16317_ACEOF
16318rm -f conftest.$ac_objext
16319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16320 (eval $ac_compile) 2>conftest.er1
16321 ac_status=$?
16322 grep -v '^ *+' conftest.er1 >conftest.err
16323 rm -f conftest.er1
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } &&
16327 { ac_try='test -z "$ac_c_werror_flag"
16328 || test ! -s conftest.err'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; } &&
16334 { ac_try='test -s conftest.$ac_objext'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
70f9f479
MK
16340 gdb_cv_struct_thread_td_pcb=yes
16341else
bec39cab
AC
16342 echo "$as_me: failed program was:" >&5
16343sed 's/^/| /' conftest.$ac_ext >&5
16344
16345gdb_cv_struct_thread_td_pcb=no
70f9f479 16346fi
bec39cab 16347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 16348fi
bec39cab
AC
16349echo "$as_me:$LINENO: result: $gdb_cv_struct_thread_td_pcb" >&5
16350echo "${ECHO_T}$gdb_cv_struct_thread_td_pcb" >&6
70f9f479 16351if test $gdb_cv_struct_thread_td_pcb = yes; then
bec39cab
AC
16352
16353cat >>confdefs.h <<\_ACEOF
70f9f479 16354#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 16355_ACEOF
70f9f479
MK
16356
16357fi
16358
5c7f2947 16359# See if <sys/lwp.h> defines `struct lwp`.
bec39cab
AC
16360echo "$as_me:$LINENO: checking for struct lwp" >&5
16361echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16362if test "${gdb_cv_struct_lwp+set}" = set; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16364else
16365 cat >conftest.$ac_ext <<_ACEOF
16366/* confdefs.h. */
16367_ACEOF
16368cat confdefs.h >>conftest.$ac_ext
16369cat >>conftest.$ac_ext <<_ACEOF
16370/* end confdefs.h. */
5c7f2947
MK
16371#include <sys/param.h>
16372#include <sys/lwp.h>
bec39cab
AC
16373int
16374main ()
16375{
5c7f2947 16376struct lwp l;
bec39cab
AC
16377 ;
16378 return 0;
16379}
16380_ACEOF
16381rm -f conftest.$ac_objext
16382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383 (eval $ac_compile) 2>conftest.er1
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag"
16391 || test ! -s conftest.err'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; } &&
16397 { ac_try='test -s conftest.$ac_objext'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16400 ac_status=$?
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
5c7f2947
MK
16403 gdb_cv_struct_lwp=yes
16404else
bec39cab
AC
16405 echo "$as_me: failed program was:" >&5
16406sed 's/^/| /' conftest.$ac_ext >&5
16407
16408gdb_cv_struct_lwp=no
5c7f2947 16409fi
bec39cab 16410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5c7f2947 16411fi
bec39cab
AC
16412echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16413echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
5c7f2947 16414if test $gdb_cv_struct_lwp = yes; then
bec39cab
AC
16415
16416cat >>confdefs.h <<\_ACEOF
5c7f2947 16417#define HAVE_STRUCT_LWP 1
bec39cab 16418_ACEOF
5c7f2947
MK
16419
16420fi
16421
78434e59 16422# See if <machine/reg.h> degines `struct reg'.
bec39cab
AC
16423echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16424echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16425if test "${gdb_cv_struct_reg+set}" = set; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16427else
16428 cat >conftest.$ac_ext <<_ACEOF
16429/* confdefs.h. */
16430_ACEOF
16431cat confdefs.h >>conftest.$ac_ext
16432cat >>conftest.$ac_ext <<_ACEOF
16433/* end confdefs.h. */
78434e59
MK
16434#include <sys/types.h>
16435#include <machine/reg.h>
bec39cab
AC
16436int
16437main ()
16438{
78434e59 16439struct reg r;
bec39cab
AC
16440 ;
16441 return 0;
16442}
16443_ACEOF
16444rm -f conftest.$ac_objext
16445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446 (eval $ac_compile) 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -z "$ac_c_werror_flag"
16454 || test ! -s conftest.err'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; } &&
16460 { ac_try='test -s conftest.$ac_objext'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16463 ac_status=$?
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
78434e59
MK
16466 gdb_cv_struct_reg=yes
16467else
bec39cab
AC
16468 echo "$as_me: failed program was:" >&5
16469sed 's/^/| /' conftest.$ac_ext >&5
16470
16471gdb_cv_struct_reg=no
78434e59 16472fi
bec39cab 16473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
78434e59 16474fi
bec39cab
AC
16475echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16476echo "${ECHO_T}$gdb_cv_struct_reg" >&6
78434e59 16477if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
16478
16479cat >>confdefs.h <<\_ACEOF
78434e59 16480#define HAVE_STRUCT_REG 1
bec39cab 16481_ACEOF
78434e59
MK
16482
16483fi
16484
97bf5e38
MK
16485# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16486# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
bec39cab
AC
16487echo "$as_me:$LINENO: checking for r_fs in struct reg" >&5
16488echo $ECHO_N "checking for r_fs in struct reg... $ECHO_C" >&6
16489if test "${gdb_cv_struct_reg_r_fs+set}" = set; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16491else
16492 cat >conftest.$ac_ext <<_ACEOF
16493/* confdefs.h. */
16494_ACEOF
16495cat confdefs.h >>conftest.$ac_ext
16496cat >>conftest.$ac_ext <<_ACEOF
16497/* end confdefs.h. */
97bf5e38 16498#include <machine/reg.h>
bec39cab
AC
16499int
16500main ()
16501{
97bf5e38 16502struct reg r; r.r_fs;
bec39cab
AC
16503 ;
16504 return 0;
16505}
16506_ACEOF
16507rm -f conftest.$ac_objext
16508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16509 (eval $ac_compile) 2>conftest.er1
16510 ac_status=$?
16511 grep -v '^ *+' conftest.er1 >conftest.err
16512 rm -f conftest.er1
16513 cat conftest.err >&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } &&
16516 { ac_try='test -z "$ac_c_werror_flag"
16517 || test ! -s conftest.err'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; } &&
16523 { ac_try='test -s conftest.$ac_objext'
16524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525 (eval $ac_try) 2>&5
16526 ac_status=$?
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; }; then
97bf5e38 16529 gdb_cv_struct_reg_r_fs=yes
c906108c 16530else
bec39cab
AC
16531 echo "$as_me: failed program was:" >&5
16532sed 's/^/| /' conftest.$ac_ext >&5
16533
16534gdb_cv_struct_reg_r_fs=no
c906108c 16535fi
bec39cab 16536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 16537fi
bec39cab
AC
16538echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_fs" >&5
16539echo "${ECHO_T}$gdb_cv_struct_reg_r_fs" >&6
97bf5e38 16540if test $gdb_cv_struct_reg_r_fs = yes; then
bec39cab 16541 cat >>confdefs.h <<\_ACEOF
97bf5e38 16542#define HAVE_STRUCT_REG_R_FS 1
bec39cab 16543_ACEOF
97bf5e38
MK
16544
16545fi
bec39cab
AC
16546echo "$as_me:$LINENO: checking for r_gs in struct reg" >&5
16547echo $ECHO_N "checking for r_gs in struct reg... $ECHO_C" >&6
16548if test "${gdb_cv_struct_reg_r_gs+set}" = set; then
16549 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16550else
bec39cab
AC
16551 cat >conftest.$ac_ext <<_ACEOF
16552/* confdefs.h. */
16553_ACEOF
16554cat confdefs.h >>conftest.$ac_ext
16555cat >>conftest.$ac_ext <<_ACEOF
16556/* end confdefs.h. */
97bf5e38 16557#include <machine/reg.h>
bec39cab
AC
16558int
16559main ()
16560{
97bf5e38 16561struct reg r; r.r_gs;
bec39cab
AC
16562 ;
16563 return 0;
16564}
16565_ACEOF
16566rm -f conftest.$ac_objext
16567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16568 (eval $ac_compile) 2>conftest.er1
16569 ac_status=$?
16570 grep -v '^ *+' conftest.er1 >conftest.err
16571 rm -f conftest.er1
16572 cat conftest.err >&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } &&
16575 { ac_try='test -z "$ac_c_werror_flag"
16576 || test ! -s conftest.err'
16577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578 (eval $ac_try) 2>&5
16579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; } &&
16582 { ac_try='test -s conftest.$ac_objext'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; }; then
97bf5e38 16588 gdb_cv_struct_reg_r_gs=yes
c906108c 16589else
bec39cab
AC
16590 echo "$as_me: failed program was:" >&5
16591sed 's/^/| /' conftest.$ac_ext >&5
16592
16593gdb_cv_struct_reg_r_gs=no
c906108c 16594fi
bec39cab 16595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16596fi
bec39cab
AC
16597echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_gs" >&5
16598echo "${ECHO_T}$gdb_cv_struct_reg_r_gs" >&6
97bf5e38 16599if test $gdb_cv_struct_reg_r_gs = yes; then
bec39cab 16600 cat >>confdefs.h <<\_ACEOF
97bf5e38 16601#define HAVE_STRUCT_REG_R_GS 1
bec39cab 16602_ACEOF
c3f6f71d 16603
c906108c
SS
16604fi
16605
97bf5e38 16606# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
bec39cab
AC
16607echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
16608echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
16609if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611else
16612 cat >conftest.$ac_ext <<_ACEOF
16613/* confdefs.h. */
16614_ACEOF
16615cat confdefs.h >>conftest.$ac_ext
16616cat >>conftest.$ac_ext <<_ACEOF
16617/* end confdefs.h. */
97bf5e38 16618#include <sys/ptrace.h>
bec39cab
AC
16619int
16620main ()
16621{
97bf5e38 16622PTRACE_GETREGS;
bec39cab
AC
16623 ;
16624 return 0;
16625}
16626_ACEOF
16627rm -f conftest.$ac_objext
16628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16629 (eval $ac_compile) 2>conftest.er1
16630 ac_status=$?
16631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
16636 { ac_try='test -z "$ac_c_werror_flag"
16637 || test ! -s conftest.err'
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; } &&
16643 { ac_try='test -s conftest.$ac_objext'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
97bf5e38 16649 gdb_cv_have_ptrace_getregs=yes
c906108c 16650else
bec39cab
AC
16651 echo "$as_me: failed program was:" >&5
16652sed 's/^/| /' conftest.$ac_ext >&5
16653
16654gdb_cv_have_ptrace_getregs=no
c906108c 16655fi
bec39cab 16656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
16657fi
16658
bec39cab
AC
16659echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
16660echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
97bf5e38 16661if test $gdb_cv_have_ptrace_getregs = yes; then
bec39cab 16662 cat >>confdefs.h <<\_ACEOF
97bf5e38 16663#define HAVE_PTRACE_GETREGS 1
bec39cab 16664_ACEOF
c906108c 16665
97bf5e38 16666fi
c906108c 16667
97bf5e38 16668# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
bec39cab
AC
16669echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
16670echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
16671if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16673else
16674 cat >conftest.$ac_ext <<_ACEOF
16675/* confdefs.h. */
16676_ACEOF
16677cat confdefs.h >>conftest.$ac_ext
16678cat >>conftest.$ac_ext <<_ACEOF
16679/* end confdefs.h. */
97bf5e38 16680#include <sys/ptrace.h>
bec39cab
AC
16681int
16682main ()
16683{
97bf5e38 16684PTRACE_GETFPXREGS;
bec39cab
AC
16685 ;
16686 return 0;
16687}
16688_ACEOF
16689rm -f conftest.$ac_objext
16690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16691 (eval $ac_compile) 2>conftest.er1
16692 ac_status=$?
16693 grep -v '^ *+' conftest.er1 >conftest.err
16694 rm -f conftest.er1
16695 cat conftest.err >&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } &&
16698 { ac_try='test -z "$ac_c_werror_flag"
16699 || test ! -s conftest.err'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try='test -s conftest.$ac_objext'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16708 ac_status=$?
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
97bf5e38 16711 gdb_cv_have_ptrace_getfpxregs=yes
c906108c 16712else
bec39cab
AC
16713 echo "$as_me: failed program was:" >&5
16714sed 's/^/| /' conftest.$ac_ext >&5
16715
16716gdb_cv_have_ptrace_getfpxregs=no
c906108c 16717fi
bec39cab 16718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
16719fi
16720
bec39cab
AC
16721echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16722echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
97bf5e38 16723if test $gdb_cv_have_ptrace_getfpxregs = yes; then
bec39cab 16724 cat >>confdefs.h <<\_ACEOF
97bf5e38 16725#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 16726_ACEOF
c906108c 16727
97bf5e38 16728fi
c906108c 16729
97bf5e38 16730# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
bec39cab
AC
16731echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
16732echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
16733if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16735else
16736 cat >conftest.$ac_ext <<_ACEOF
16737/* confdefs.h. */
16738_ACEOF
16739cat confdefs.h >>conftest.$ac_ext
16740cat >>conftest.$ac_ext <<_ACEOF
16741/* end confdefs.h. */
97bf5e38
MK
16742#include <sys/types.h>
16743#include <sys/ptrace.h>
bec39cab
AC
16744int
16745main ()
16746{
97bf5e38 16747PT_GETDBREGS;
bec39cab
AC
16748 ;
16749 return 0;
16750}
16751_ACEOF
16752rm -f conftest.$ac_objext
16753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16754 (eval $ac_compile) 2>conftest.er1
16755 ac_status=$?
16756 grep -v '^ *+' conftest.er1 >conftest.err
16757 rm -f conftest.er1
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } &&
16761 { ac_try='test -z "$ac_c_werror_flag"
16762 || test ! -s conftest.err'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; } &&
16768 { ac_try='test -s conftest.$ac_objext'
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
97bf5e38 16774 gdb_cv_have_pt_getdbregs=yes
c906108c 16775else
bec39cab
AC
16776 echo "$as_me: failed program was:" >&5
16777sed 's/^/| /' conftest.$ac_ext >&5
16778
16779gdb_cv_have_pt_getdbregs=no
c906108c 16780fi
bec39cab 16781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
16782fi
16783
bec39cab
AC
16784echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
16785echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
97bf5e38 16786if test $gdb_cv_have_pt_getdbregs = yes; then
bec39cab 16787 cat >>confdefs.h <<\_ACEOF
97bf5e38 16788#define HAVE_PT_GETDBREGS 1
bec39cab 16789_ACEOF
c906108c 16790
97bf5e38 16791fi
c906108c 16792
97bf5e38 16793# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
bec39cab
AC
16794echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
16795echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
16796if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16798else
16799 cat >conftest.$ac_ext <<_ACEOF
16800/* confdefs.h. */
16801_ACEOF
16802cat confdefs.h >>conftest.$ac_ext
16803cat >>conftest.$ac_ext <<_ACEOF
16804/* end confdefs.h. */
97bf5e38
MK
16805#include <sys/types.h>
16806#include <sys/ptrace.h>
bec39cab
AC
16807int
16808main ()
16809{
97bf5e38 16810PT_GETXMMREGS;
bec39cab
AC
16811 ;
16812 return 0;
16813}
16814_ACEOF
16815rm -f conftest.$ac_objext
16816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16817 (eval $ac_compile) 2>conftest.er1
16818 ac_status=$?
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_c_werror_flag"
16825 || test ! -s conftest.err'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest.$ac_objext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
97bf5e38 16837 gdb_cv_have_pt_getxmmregs=yes
c906108c 16838else
bec39cab
AC
16839 echo "$as_me: failed program was:" >&5
16840sed 's/^/| /' conftest.$ac_ext >&5
16841
16842gdb_cv_have_pt_getxmmregs=no
c906108c 16843fi
bec39cab 16844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
16845fi
16846
bec39cab
AC
16847echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
16848echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
97bf5e38 16849if test $gdb_cv_have_pt_getxmmregs = yes; then
bec39cab 16850 cat >>confdefs.h <<\_ACEOF
97bf5e38 16851#define HAVE_PT_GETXMMREGS 1
bec39cab 16852_ACEOF
c906108c 16853
97bf5e38 16854fi
c906108c 16855
27ca5dad 16856# See if stdint.h provides the uintptr_t type.
d3e0a5bf 16857# Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
bec39cab
AC
16858echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
16859echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
16860if test "${gdb_cv_have_uintptr_t+set}" = set; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16862else
16863 cat >conftest.$ac_ext <<_ACEOF
16864/* confdefs.h. */
16865_ACEOF
16866cat confdefs.h >>conftest.$ac_ext
16867cat >>conftest.$ac_ext <<_ACEOF
16868/* end confdefs.h. */
27ca5dad 16869#include <stdint.h>
bec39cab
AC
16870int
16871main ()
16872{
27ca5dad 16873uintptr_t foo = 0;
bec39cab
AC
16874 ;
16875 return 0;
16876}
16877_ACEOF
16878rm -f conftest.$ac_objext
16879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16880 (eval $ac_compile) 2>conftest.er1
16881 ac_status=$?
16882 grep -v '^ *+' conftest.er1 >conftest.err
16883 rm -f conftest.er1
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -z "$ac_c_werror_flag"
16888 || test ! -s conftest.err'
16889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16890 (eval $ac_try) 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; } &&
16894 { ac_try='test -s conftest.$ac_objext'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
27ca5dad
MC
16900 gdb_cv_have_uintptr_t=yes
16901else
bec39cab
AC
16902 echo "$as_me: failed program was:" >&5
16903sed 's/^/| /' conftest.$ac_ext >&5
16904
16905gdb_cv_have_uintptr_t=no
27ca5dad 16906fi
bec39cab 16907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 16908fi
bec39cab
AC
16909echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
16910echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
27ca5dad 16911if test $gdb_cv_have_uintptr_t = yes; then
bec39cab
AC
16912
16913cat >>confdefs.h <<\_ACEOF
27ca5dad 16914#define HAVE_UINTPTR_T 1
bec39cab 16915_ACEOF
27ca5dad
MC
16916
16917fi
97bf5e38 16918
bec39cab
AC
16919echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
16920echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
16921if test "${bfd_cv_decl_needed_malloc+set}" = set; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 16923else
bec39cab
AC
16924 cat >conftest.$ac_ext <<_ACEOF
16925/* confdefs.h. */
16926_ACEOF
16927cat confdefs.h >>conftest.$ac_ext
16928cat >>conftest.$ac_ext <<_ACEOF
16929/* end confdefs.h. */
e17bf198 16930
97bf5e38
MK
16931#include <stdio.h>
16932#ifdef HAVE_STRING_H
16933#include <string.h>
16934#else
16935#ifdef HAVE_STRINGS_H
16936#include <strings.h>
16937#endif
16938#endif
16939#ifdef HAVE_STDLIB_H
16940#include <stdlib.h>
16941#endif
16942#ifdef HAVE_UNISTD_H
16943#include <unistd.h>
16944#endif
bec39cab
AC
16945int
16946main ()
16947{
97bf5e38 16948char *(*pfn) = (char *(*)) malloc
bec39cab
AC
16949 ;
16950 return 0;
16951}
16952_ACEOF
16953rm -f conftest.$ac_objext
16954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16955 (eval $ac_compile) 2>conftest.er1
16956 ac_status=$?
16957 grep -v '^ *+' conftest.er1 >conftest.err
16958 rm -f conftest.er1
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -z "$ac_c_werror_flag"
16963 || test ! -s conftest.err'
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest.$ac_objext'
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
97bf5e38 16975 bfd_cv_decl_needed_malloc=no
3862412b 16976else
bec39cab
AC
16977 echo "$as_me: failed program was:" >&5
16978sed 's/^/| /' conftest.$ac_ext >&5
16979
16980bfd_cv_decl_needed_malloc=yes
3862412b 16981fi
bec39cab 16982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
16983fi
16984
bec39cab
AC
16985echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
16986echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
97bf5e38 16987if test $bfd_cv_decl_needed_malloc = yes; then
bec39cab
AC
16988
16989cat >>confdefs.h <<\_ACEOF
97bf5e38 16990#define NEED_DECLARATION_MALLOC 1
bec39cab 16991_ACEOF
3862412b 16992
97bf5e38 16993fi
3862412b 16994
bec39cab
AC
16995echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
16996echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
16997if test "${bfd_cv_decl_needed_realloc+set}" = set; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 16999else
bec39cab
AC
17000 cat >conftest.$ac_ext <<_ACEOF
17001/* confdefs.h. */
17002_ACEOF
17003cat confdefs.h >>conftest.$ac_ext
17004cat >>conftest.$ac_ext <<_ACEOF
17005/* end confdefs.h. */
e17bf198 17006
97bf5e38
MK
17007#include <stdio.h>
17008#ifdef HAVE_STRING_H
17009#include <string.h>
17010#else
17011#ifdef HAVE_STRINGS_H
17012#include <strings.h>
17013#endif
17014#endif
17015#ifdef HAVE_STDLIB_H
17016#include <stdlib.h>
17017#endif
17018#ifdef HAVE_UNISTD_H
17019#include <unistd.h>
17020#endif
bec39cab
AC
17021int
17022main ()
17023{
97bf5e38 17024char *(*pfn) = (char *(*)) realloc
bec39cab
AC
17025 ;
17026 return 0;
17027}
17028_ACEOF
17029rm -f conftest.$ac_objext
17030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17031 (eval $ac_compile) 2>conftest.er1
17032 ac_status=$?
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
17038 { ac_try='test -z "$ac_c_werror_flag"
17039 || test ! -s conftest.err'
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; } &&
17045 { ac_try='test -s conftest.$ac_objext'
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
97bf5e38 17051 bfd_cv_decl_needed_realloc=no
3862412b 17052else
bec39cab
AC
17053 echo "$as_me: failed program was:" >&5
17054sed 's/^/| /' conftest.$ac_ext >&5
17055
17056bfd_cv_decl_needed_realloc=yes
3862412b 17057fi
bec39cab 17058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17059fi
17060
bec39cab
AC
17061echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
17062echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
97bf5e38 17063if test $bfd_cv_decl_needed_realloc = yes; then
bec39cab
AC
17064
17065cat >>confdefs.h <<\_ACEOF
97bf5e38 17066#define NEED_DECLARATION_REALLOC 1
bec39cab 17067_ACEOF
3862412b 17068
97bf5e38 17069fi
3862412b 17070
bec39cab
AC
17071echo "$as_me:$LINENO: checking whether free must be declared" >&5
17072echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
17073if test "${bfd_cv_decl_needed_free+set}" = set; then
17074 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17075else
bec39cab
AC
17076 cat >conftest.$ac_ext <<_ACEOF
17077/* confdefs.h. */
17078_ACEOF
17079cat confdefs.h >>conftest.$ac_ext
17080cat >>conftest.$ac_ext <<_ACEOF
17081/* end confdefs.h. */
e17bf198 17082
97bf5e38
MK
17083#include <stdio.h>
17084#ifdef HAVE_STRING_H
17085#include <string.h>
17086#else
17087#ifdef HAVE_STRINGS_H
17088#include <strings.h>
17089#endif
17090#endif
17091#ifdef HAVE_STDLIB_H
17092#include <stdlib.h>
17093#endif
17094#ifdef HAVE_UNISTD_H
17095#include <unistd.h>
17096#endif
bec39cab
AC
17097int
17098main ()
17099{
97bf5e38 17100char *(*pfn) = (char *(*)) free
bec39cab
AC
17101 ;
17102 return 0;
17103}
17104_ACEOF
17105rm -f conftest.$ac_objext
17106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107 (eval $ac_compile) 2>conftest.er1
17108 ac_status=$?
17109 grep -v '^ *+' conftest.er1 >conftest.err
17110 rm -f conftest.er1
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try='test -z "$ac_c_werror_flag"
17115 || test ! -s conftest.err'
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try='test -s conftest.$ac_objext'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
97bf5e38 17127 bfd_cv_decl_needed_free=no
451928c5 17128else
bec39cab
AC
17129 echo "$as_me: failed program was:" >&5
17130sed 's/^/| /' conftest.$ac_ext >&5
17131
17132bfd_cv_decl_needed_free=yes
451928c5 17133fi
bec39cab 17134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17135fi
17136
bec39cab
AC
17137echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
17138echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
97bf5e38 17139if test $bfd_cv_decl_needed_free = yes; then
bec39cab
AC
17140
17141cat >>confdefs.h <<\_ACEOF
97bf5e38 17142#define NEED_DECLARATION_FREE 1
bec39cab 17143_ACEOF
451928c5 17144
97bf5e38 17145fi
451928c5 17146
bec39cab
AC
17147echo "$as_me:$LINENO: checking whether strerror must be declared" >&5
17148echo $ECHO_N "checking whether strerror must be declared... $ECHO_C" >&6
17149if test "${bfd_cv_decl_needed_strerror+set}" = set; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17151else
bec39cab
AC
17152 cat >conftest.$ac_ext <<_ACEOF
17153/* confdefs.h. */
17154_ACEOF
17155cat confdefs.h >>conftest.$ac_ext
17156cat >>conftest.$ac_ext <<_ACEOF
17157/* end confdefs.h. */
e17bf198 17158
97bf5e38
MK
17159#include <stdio.h>
17160#ifdef HAVE_STRING_H
17161#include <string.h>
17162#else
17163#ifdef HAVE_STRINGS_H
17164#include <strings.h>
17165#endif
17166#endif
17167#ifdef HAVE_STDLIB_H
17168#include <stdlib.h>
17169#endif
17170#ifdef HAVE_UNISTD_H
17171#include <unistd.h>
17172#endif
bec39cab
AC
17173int
17174main ()
17175{
97bf5e38 17176char *(*pfn) = (char *(*)) strerror
bec39cab
AC
17177 ;
17178 return 0;
17179}
17180_ACEOF
17181rm -f conftest.$ac_objext
17182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17183 (eval $ac_compile) 2>conftest.er1
17184 ac_status=$?
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
17190 { ac_try='test -z "$ac_c_werror_flag"
17191 || test ! -s conftest.err'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; } &&
17197 { ac_try='test -s conftest.$ac_objext'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
97bf5e38 17203 bfd_cv_decl_needed_strerror=no
451928c5 17204else
bec39cab
AC
17205 echo "$as_me: failed program was:" >&5
17206sed 's/^/| /' conftest.$ac_ext >&5
17207
17208bfd_cv_decl_needed_strerror=yes
451928c5 17209fi
bec39cab 17210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17211fi
17212
bec39cab
AC
17213echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strerror" >&5
17214echo "${ECHO_T}$bfd_cv_decl_needed_strerror" >&6
97bf5e38 17215if test $bfd_cv_decl_needed_strerror = yes; then
bec39cab
AC
17216
17217cat >>confdefs.h <<\_ACEOF
97bf5e38 17218#define NEED_DECLARATION_STRERROR 1
bec39cab 17219_ACEOF
451928c5 17220
97bf5e38 17221fi
451928c5 17222
bec39cab
AC
17223echo "$as_me:$LINENO: checking whether strdup must be declared" >&5
17224echo $ECHO_N "checking whether strdup must be declared... $ECHO_C" >&6
17225if test "${bfd_cv_decl_needed_strdup+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17227else
bec39cab
AC
17228 cat >conftest.$ac_ext <<_ACEOF
17229/* confdefs.h. */
17230_ACEOF
17231cat confdefs.h >>conftest.$ac_ext
17232cat >>conftest.$ac_ext <<_ACEOF
17233/* end confdefs.h. */
e17bf198 17234
97bf5e38
MK
17235#include <stdio.h>
17236#ifdef HAVE_STRING_H
17237#include <string.h>
17238#else
17239#ifdef HAVE_STRINGS_H
17240#include <strings.h>
17241#endif
17242#endif
17243#ifdef HAVE_STDLIB_H
17244#include <stdlib.h>
17245#endif
17246#ifdef HAVE_UNISTD_H
17247#include <unistd.h>
17248#endif
bec39cab
AC
17249int
17250main ()
17251{
97bf5e38 17252char *(*pfn) = (char *(*)) strdup
bec39cab
AC
17253 ;
17254 return 0;
17255}
17256_ACEOF
17257rm -f conftest.$ac_objext
17258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17259 (eval $ac_compile) 2>conftest.er1
17260 ac_status=$?
17261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -z "$ac_c_werror_flag"
17267 || test ! -s conftest.err'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } &&
17273 { ac_try='test -s conftest.$ac_objext'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
97bf5e38 17279 bfd_cv_decl_needed_strdup=no
3862412b 17280else
bec39cab
AC
17281 echo "$as_me: failed program was:" >&5
17282sed 's/^/| /' conftest.$ac_ext >&5
17283
17284bfd_cv_decl_needed_strdup=yes
3862412b 17285fi
bec39cab 17286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17287fi
17288
bec39cab
AC
17289echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strdup" >&5
17290echo "${ECHO_T}$bfd_cv_decl_needed_strdup" >&6
97bf5e38 17291if test $bfd_cv_decl_needed_strdup = yes; then
bec39cab
AC
17292
17293cat >>confdefs.h <<\_ACEOF
97bf5e38 17294#define NEED_DECLARATION_STRDUP 1
bec39cab 17295_ACEOF
3862412b 17296
97bf5e38 17297fi
3862412b 17298
bec39cab
AC
17299echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
17300echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
17301if test "${bfd_cv_decl_needed_strstr+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17303else
bec39cab
AC
17304 cat >conftest.$ac_ext <<_ACEOF
17305/* confdefs.h. */
17306_ACEOF
17307cat confdefs.h >>conftest.$ac_ext
17308cat >>conftest.$ac_ext <<_ACEOF
17309/* end confdefs.h. */
e17bf198 17310
97bf5e38
MK
17311#include <stdio.h>
17312#ifdef HAVE_STRING_H
17313#include <string.h>
17314#else
17315#ifdef HAVE_STRINGS_H
17316#include <strings.h>
17317#endif
17318#endif
17319#ifdef HAVE_STDLIB_H
17320#include <stdlib.h>
17321#endif
17322#ifdef HAVE_UNISTD_H
17323#include <unistd.h>
17324#endif
bec39cab
AC
17325int
17326main ()
17327{
97bf5e38 17328char *(*pfn) = (char *(*)) strstr
bec39cab
AC
17329 ;
17330 return 0;
17331}
17332_ACEOF
17333rm -f conftest.$ac_objext
17334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17335 (eval $ac_compile) 2>conftest.er1
17336 ac_status=$?
17337 grep -v '^ *+' conftest.er1 >conftest.err
17338 rm -f conftest.er1
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
17342 { ac_try='test -z "$ac_c_werror_flag"
17343 || test ! -s conftest.err'
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; } &&
17349 { ac_try='test -s conftest.$ac_objext'
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
97bf5e38 17355 bfd_cv_decl_needed_strstr=no
3862412b 17356else
bec39cab
AC
17357 echo "$as_me: failed program was:" >&5
17358sed 's/^/| /' conftest.$ac_ext >&5
17359
17360bfd_cv_decl_needed_strstr=yes
3862412b 17361fi
bec39cab 17362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17363fi
17364
bec39cab
AC
17365echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
17366echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
97bf5e38 17367if test $bfd_cv_decl_needed_strstr = yes; then
bec39cab
AC
17368
17369cat >>confdefs.h <<\_ACEOF
97bf5e38 17370#define NEED_DECLARATION_STRSTR 1
bec39cab 17371_ACEOF
3862412b 17372
97bf5e38 17373fi
3862412b 17374
bec39cab
AC
17375echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
17376echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
17377if test "${bfd_cv_decl_needed_canonicalize_file_name+set}" = set; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17379else
bec39cab
AC
17380 cat >conftest.$ac_ext <<_ACEOF
17381/* confdefs.h. */
17382_ACEOF
17383cat confdefs.h >>conftest.$ac_ext
17384cat >>conftest.$ac_ext <<_ACEOF
17385/* end confdefs.h. */
596c9d4b 17386
97bf5e38
MK
17387#include <stdio.h>
17388#ifdef HAVE_STRING_H
17389#include <string.h>
17390#else
17391#ifdef HAVE_STRINGS_H
17392#include <strings.h>
17393#endif
17394#endif
17395#ifdef HAVE_STDLIB_H
17396#include <stdlib.h>
17397#endif
17398#ifdef HAVE_UNISTD_H
17399#include <unistd.h>
17400#endif
bec39cab
AC
17401int
17402main ()
17403{
97bf5e38 17404char *(*pfn) = (char *(*)) canonicalize_file_name
bec39cab
AC
17405 ;
17406 return 0;
17407}
17408_ACEOF
17409rm -f conftest.$ac_objext
17410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17411 (eval $ac_compile) 2>conftest.er1
17412 ac_status=$?
17413 grep -v '^ *+' conftest.er1 >conftest.err
17414 rm -f conftest.er1
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
17418 { ac_try='test -z "$ac_c_werror_flag"
17419 || test ! -s conftest.err'
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17422 ac_status=$?
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; } &&
17425 { ac_try='test -s conftest.$ac_objext'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; }; then
97bf5e38 17431 bfd_cv_decl_needed_canonicalize_file_name=no
596c9d4b 17432else
bec39cab
AC
17433 echo "$as_me: failed program was:" >&5
17434sed 's/^/| /' conftest.$ac_ext >&5
17435
17436bfd_cv_decl_needed_canonicalize_file_name=yes
596c9d4b 17437fi
bec39cab 17438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17439fi
17440
bec39cab
AC
17441echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_canonicalize_file_name" >&5
17442echo "${ECHO_T}$bfd_cv_decl_needed_canonicalize_file_name" >&6
97bf5e38 17443if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
bec39cab
AC
17444
17445cat >>confdefs.h <<\_ACEOF
97bf5e38 17446#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
bec39cab 17447_ACEOF
596c9d4b 17448
97bf5e38 17449fi
596c9d4b 17450
97bf5e38 17451
bec39cab
AC
17452# The following save_state_t checkery is only necessary for HPUX
17453# versions earlier than 10.20. When those fade from memory, this
97bf5e38
MK
17454# could be expunged. --jsm 1999-03-22
17455
bec39cab
AC
17456echo "$as_me:$LINENO: checking for HPUX save_state structure" >&5
17457echo $ECHO_N "checking for HPUX save_state structure... $ECHO_C" >&6
17458cat >conftest.$ac_ext <<_ACEOF
17459/* confdefs.h. */
17460_ACEOF
17461cat confdefs.h >>conftest.$ac_ext
17462cat >>conftest.$ac_ext <<_ACEOF
17463/* end confdefs.h. */
97bf5e38 17464#include <machine/save_state.h>
bec39cab
AC
17465
17466_ACEOF
97bf5e38 17467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 17468 $EGREP "save_state_t" >/dev/null 2>&1; then
97bf5e38
MK
17469 gdb_cv_hpux_savestate=yes
17470else
97bf5e38
MK
17471 gdb_cv_hpux_savestate=no
17472fi
17473rm -f conftest*
17474
bec39cab
AC
17475cat >conftest.$ac_ext <<_ACEOF
17476/* confdefs.h. */
17477_ACEOF
17478cat confdefs.h >>conftest.$ac_ext
17479cat >>conftest.$ac_ext <<_ACEOF
17480/* end confdefs.h. */
97bf5e38 17481#include <machine/save_state.h>
bec39cab
AC
17482
17483_ACEOF
97bf5e38 17484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 17485 $EGREP "ss_wide" >/dev/null 2>&1; then
97bf5e38
MK
17486 gdb_cv_hpux_sswide=yes
17487else
97bf5e38
MK
17488 gdb_cv_hpux_sswide=no
17489fi
17490rm -f conftest*
17491
17492if test $gdb_cv_hpux_savestate = yes
17493then
bec39cab 17494 cat >>confdefs.h <<\_ACEOF
97bf5e38 17495#define HAVE_STRUCT_SAVE_STATE_T 1
bec39cab 17496_ACEOF
97bf5e38
MK
17497
17498fi
17499if test $gdb_cv_hpux_sswide = yes
17500then
bec39cab 17501 cat >>confdefs.h <<\_ACEOF
97bf5e38 17502#define HAVE_STRUCT_MEMBER_SS_WIDE 1
bec39cab 17503_ACEOF
97bf5e38
MK
17504
17505fi
bec39cab
AC
17506echo "$as_me:$LINENO: result: $gdb_cv_hpux_sswide" >&5
17507echo "${ECHO_T}$gdb_cv_hpux_sswide" >&6
97bf5e38
MK
17508
17509
17510# If we are configured native on GNU/Linux, work around problems with
17511# sys/procfs.h
17512# Also detect which type of /proc is in use, such as for Unixware or Solaris.
17513
17514if test "${target}" = "${host}"; then
17515 case "${host}" in
17516 i[3456]86-*-linux*)
bec39cab 17517 cat >>confdefs.h <<\_ACEOF
97bf5e38 17518#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 17519_ACEOF
97bf5e38 17520
bec39cab 17521 cat >>confdefs.h <<\_ACEOF
97bf5e38 17522#define sys_quotactl 1
bec39cab 17523_ACEOF
97bf5e38
MK
17524
17525 ;;
17526 ia64-*-aix*)
bec39cab 17527 cat >>confdefs.h <<\_ACEOF
97bf5e38 17528#define NEW_PROC_API 1
bec39cab 17529_ACEOF
97bf5e38
MK
17530
17531 ;;
17532 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
bec39cab 17533 cat >>confdefs.h <<\_ACEOF
97bf5e38 17534#define NEW_PROC_API 1
bec39cab 17535_ACEOF
97bf5e38
MK
17536
17537 ;;
0bbc026e 17538 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
bec39cab 17539 cat >>confdefs.h <<\_ACEOF
97bf5e38 17540#define NEW_PROC_API 1
bec39cab 17541_ACEOF
c960c18f
AC
17542
17543 ;;
17544 mips-sgi-irix5*)
17545 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
bec39cab 17546 cat >>confdefs.h <<\_ACEOF
c960c18f 17547#define _KMEMUSER 1
bec39cab 17548_ACEOF
97bf5e38
MK
17549
17550 ;;
17551 esac
17552fi
17553
17554if test "$ac_cv_header_sys_procfs_h" = yes; then
bec39cab
AC
17555 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17556echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17557 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17559else
17560 cat >conftest.$ac_ext <<_ACEOF
17561/* confdefs.h. */
17562_ACEOF
17563cat confdefs.h >>conftest.$ac_ext
17564cat >>conftest.$ac_ext <<_ACEOF
17565/* end confdefs.h. */
596c9d4b
KB
17566
17567#define _SYSCALL32
17568#include <sys/procfs.h>
bec39cab
AC
17569int
17570main ()
17571{
97bf5e38 17572pstatus_t avar
bec39cab
AC
17573 ;
17574 return 0;
17575}
17576_ACEOF
17577rm -f conftest.$ac_objext
17578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17579 (eval $ac_compile) 2>conftest.er1
17580 ac_status=$?
17581 grep -v '^ *+' conftest.er1 >conftest.err
17582 rm -f conftest.er1
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } &&
17586 { ac_try='test -z "$ac_c_werror_flag"
17587 || test ! -s conftest.err'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; } &&
17593 { ac_try='test -s conftest.$ac_objext'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
97bf5e38 17599 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 17600else
bec39cab
AC
17601 echo "$as_me: failed program was:" >&5
17602sed 's/^/| /' conftest.$ac_ext >&5
17603
17604bfd_cv_have_sys_procfs_type_pstatus_t=no
17605
596c9d4b 17606fi
bec39cab 17607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17608fi
17609
97bf5e38 17610 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
17611
17612cat >>confdefs.h <<\_ACEOF
97bf5e38 17613#define HAVE_PSTATUS_T 1
bec39cab 17614_ACEOF
596c9d4b
KB
17615
17616 fi
bec39cab
AC
17617 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17618echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 17619
bec39cab
AC
17620 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17621echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17622 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17624else
bec39cab
AC
17625 cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
596c9d4b
KB
17631
17632#define _SYSCALL32
17633#include <sys/procfs.h>
bec39cab
AC
17634int
17635main ()
17636{
97bf5e38 17637prrun_t avar
bec39cab
AC
17638 ;
17639 return 0;
17640}
17641_ACEOF
17642rm -f conftest.$ac_objext
17643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17644 (eval $ac_compile) 2>conftest.er1
17645 ac_status=$?
17646 grep -v '^ *+' conftest.er1 >conftest.err
17647 rm -f conftest.er1
17648 cat conftest.err >&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } &&
17651 { ac_try='test -z "$ac_c_werror_flag"
17652 || test ! -s conftest.err'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } &&
17658 { ac_try='test -s conftest.$ac_objext'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
97bf5e38 17664 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 17665else
bec39cab
AC
17666 echo "$as_me: failed program was:" >&5
17667sed 's/^/| /' conftest.$ac_ext >&5
17668
17669bfd_cv_have_sys_procfs_type_prrun_t=no
17670
596c9d4b 17671fi
bec39cab 17672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17673fi
17674
97bf5e38 17675 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
17676
17677cat >>confdefs.h <<\_ACEOF
97bf5e38 17678#define HAVE_PRRUN_T 1
bec39cab 17679_ACEOF
596c9d4b
KB
17680
17681 fi
bec39cab
AC
17682 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17683echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 17684
bec39cab
AC
17685 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17686echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17687 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17689else
bec39cab
AC
17690 cat >conftest.$ac_ext <<_ACEOF
17691/* confdefs.h. */
17692_ACEOF
17693cat confdefs.h >>conftest.$ac_ext
17694cat >>conftest.$ac_ext <<_ACEOF
17695/* end confdefs.h. */
596c9d4b
KB
17696
17697#define _SYSCALL32
17698#include <sys/procfs.h>
bec39cab
AC
17699int
17700main ()
17701{
97bf5e38 17702gregset_t avar
bec39cab
AC
17703 ;
17704 return 0;
17705}
17706_ACEOF
17707rm -f conftest.$ac_objext
17708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17709 (eval $ac_compile) 2>conftest.er1
17710 ac_status=$?
17711 grep -v '^ *+' conftest.er1 >conftest.err
17712 rm -f conftest.er1
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_c_werror_flag"
17717 || test ! -s conftest.err'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; } &&
17723 { ac_try='test -s conftest.$ac_objext'
17724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
97bf5e38 17729 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 17730else
bec39cab
AC
17731 echo "$as_me: failed program was:" >&5
17732sed 's/^/| /' conftest.$ac_ext >&5
17733
17734bfd_cv_have_sys_procfs_type_gregset_t=no
17735
596c9d4b 17736fi
bec39cab 17737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17738fi
17739
97bf5e38 17740 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
17741
17742cat >>confdefs.h <<\_ACEOF
97bf5e38 17743#define HAVE_GREGSET_T 1
bec39cab 17744_ACEOF
596c9d4b
KB
17745
17746 fi
bec39cab
AC
17747 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17748echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 17749
bec39cab
AC
17750 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17751echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17752 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 17754else
bec39cab
AC
17755 cat >conftest.$ac_ext <<_ACEOF
17756/* confdefs.h. */
17757_ACEOF
17758cat confdefs.h >>conftest.$ac_ext
17759cat >>conftest.$ac_ext <<_ACEOF
17760/* end confdefs.h. */
97bf5e38
MK
17761
17762#define _SYSCALL32
d84dd0c5 17763#include <sys/procfs.h>
bec39cab
AC
17764int
17765main ()
17766{
97bf5e38 17767fpregset_t avar
bec39cab
AC
17768 ;
17769 return 0;
17770}
17771_ACEOF
17772rm -f conftest.$ac_objext
17773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17774 (eval $ac_compile) 2>conftest.er1
17775 ac_status=$?
17776 grep -v '^ *+' conftest.er1 >conftest.err
17777 rm -f conftest.er1
17778 cat conftest.err >&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } &&
17781 { ac_try='test -z "$ac_c_werror_flag"
17782 || test ! -s conftest.err'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try='test -s conftest.$ac_objext'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
97bf5e38 17794 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 17795else
bec39cab
AC
17796 echo "$as_me: failed program was:" >&5
17797sed 's/^/| /' conftest.$ac_ext >&5
17798
17799bfd_cv_have_sys_procfs_type_fpregset_t=no
17800
d84dd0c5 17801fi
bec39cab 17802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
17803fi
17804
97bf5e38 17805 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
17806
17807cat >>confdefs.h <<\_ACEOF
97bf5e38 17808#define HAVE_FPREGSET_T 1
bec39cab 17809_ACEOF
d84dd0c5 17810
97bf5e38 17811 fi
bec39cab
AC
17812 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17813echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 17814
bec39cab
AC
17815 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17816echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17817 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 17819else
bec39cab
AC
17820 cat >conftest.$ac_ext <<_ACEOF
17821/* confdefs.h. */
17822_ACEOF
17823cat confdefs.h >>conftest.$ac_ext
17824cat >>conftest.$ac_ext <<_ACEOF
17825/* end confdefs.h. */
c906108c 17826
97bf5e38
MK
17827#define _SYSCALL32
17828#include <sys/procfs.h>
bec39cab
AC
17829int
17830main ()
17831{
97bf5e38 17832prgregset_t avar
bec39cab
AC
17833 ;
17834 return 0;
17835}
17836_ACEOF
17837rm -f conftest.$ac_objext
17838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17839 (eval $ac_compile) 2>conftest.er1
17840 ac_status=$?
17841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -z "$ac_c_werror_flag"
17847 || test ! -s conftest.err'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; } &&
17853 { ac_try='test -s conftest.$ac_objext'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; }; then
97bf5e38 17859 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 17860else
bec39cab
AC
17861 echo "$as_me: failed program was:" >&5
17862sed 's/^/| /' conftest.$ac_ext >&5
17863
17864bfd_cv_have_sys_procfs_type_prgregset_t=no
17865
c906108c 17866fi
bec39cab 17867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
17868fi
17869
97bf5e38 17870 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
17871
17872cat >>confdefs.h <<\_ACEOF
97bf5e38 17873#define HAVE_PRGREGSET_T 1
bec39cab 17874_ACEOF
c906108c 17875
97bf5e38 17876 fi
bec39cab
AC
17877 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17878echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 17879
bec39cab
AC
17880 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17881echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17882 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 17884else
bec39cab
AC
17885 cat >conftest.$ac_ext <<_ACEOF
17886/* confdefs.h. */
17887_ACEOF
17888cat confdefs.h >>conftest.$ac_ext
17889cat >>conftest.$ac_ext <<_ACEOF
17890/* end confdefs.h. */
97bf5e38
MK
17891
17892#define _SYSCALL32
17893#include <sys/procfs.h>
bec39cab
AC
17894int
17895main ()
17896{
97bf5e38 17897prfpregset_t avar
bec39cab
AC
17898 ;
17899 return 0;
17900}
17901_ACEOF
17902rm -f conftest.$ac_objext
17903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17904 (eval $ac_compile) 2>conftest.er1
17905 ac_status=$?
17906 grep -v '^ *+' conftest.er1 >conftest.err
17907 rm -f conftest.er1
17908 cat conftest.err >&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } &&
17911 { ac_try='test -z "$ac_c_werror_flag"
17912 || test ! -s conftest.err'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } &&
17918 { ac_try='test -s conftest.$ac_objext'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
97bf5e38 17924 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 17925else
bec39cab
AC
17926 echo "$as_me: failed program was:" >&5
17927sed 's/^/| /' conftest.$ac_ext >&5
17928
17929bfd_cv_have_sys_procfs_type_prfpregset_t=no
17930
d45fe813 17931fi
bec39cab 17932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
17933fi
17934
97bf5e38 17935 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
17936
17937cat >>confdefs.h <<\_ACEOF
97bf5e38 17938#define HAVE_PRFPREGSET_T 1
bec39cab 17939_ACEOF
d45fe813 17940
97bf5e38 17941 fi
bec39cab
AC
17942 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17943echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 17944
bec39cab
AC
17945 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17946echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17947 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 17949else
bec39cab
AC
17950 cat >conftest.$ac_ext <<_ACEOF
17951/* confdefs.h. */
17952_ACEOF
17953cat confdefs.h >>conftest.$ac_ext
17954cat >>conftest.$ac_ext <<_ACEOF
17955/* end confdefs.h. */
97bf5e38
MK
17956
17957#define _SYSCALL32
17958#include <sys/procfs.h>
bec39cab
AC
17959int
17960main ()
17961{
97bf5e38 17962prgregset32_t avar
bec39cab
AC
17963 ;
17964 return 0;
17965}
17966_ACEOF
17967rm -f conftest.$ac_objext
17968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17969 (eval $ac_compile) 2>conftest.er1
17970 ac_status=$?
17971 grep -v '^ *+' conftest.er1 >conftest.err
17972 rm -f conftest.er1
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } &&
17976 { ac_try='test -z "$ac_c_werror_flag"
17977 || test ! -s conftest.err'
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17980 ac_status=$?
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; } &&
17983 { ac_try='test -s conftest.$ac_objext'
17984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985 (eval $ac_try) 2>&5
17986 ac_status=$?
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; }; then
97bf5e38 17989 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 17990else
bec39cab
AC
17991 echo "$as_me: failed program was:" >&5
17992sed 's/^/| /' conftest.$ac_ext >&5
17993
17994bfd_cv_have_sys_procfs_type_prgregset32_t=no
17995
d45fe813 17996fi
bec39cab 17997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
17998fi
17999
97bf5e38 18000 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
18001
18002cat >>confdefs.h <<\_ACEOF
97bf5e38 18003#define HAVE_PRGREGSET32_T 1
bec39cab 18004_ACEOF
d45fe813 18005
97bf5e38 18006 fi
bec39cab
AC
18007 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18008echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 18009
bec39cab
AC
18010 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18011echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18012 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18014else
bec39cab
AC
18015 cat >conftest.$ac_ext <<_ACEOF
18016/* confdefs.h. */
18017_ACEOF
18018cat confdefs.h >>conftest.$ac_ext
18019cat >>conftest.$ac_ext <<_ACEOF
18020/* end confdefs.h. */
97bf5e38
MK
18021
18022#define _SYSCALL32
18023#include <sys/procfs.h>
bec39cab
AC
18024int
18025main ()
18026{
97bf5e38 18027prfpregset32_t avar
bec39cab
AC
18028 ;
18029 return 0;
18030}
18031_ACEOF
18032rm -f conftest.$ac_objext
18033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18034 (eval $ac_compile) 2>conftest.er1
18035 ac_status=$?
18036 grep -v '^ *+' conftest.er1 >conftest.err
18037 rm -f conftest.er1
18038 cat conftest.err >&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
18041 { ac_try='test -z "$ac_c_werror_flag"
18042 || test ! -s conftest.err'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; } &&
18048 { ac_try='test -s conftest.$ac_objext'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
97bf5e38 18054 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 18055else
bec39cab
AC
18056 echo "$as_me: failed program was:" >&5
18057sed 's/^/| /' conftest.$ac_ext >&5
18058
18059bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18060
d45fe813 18061fi
bec39cab 18062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18063fi
18064
97bf5e38 18065 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
18066
18067cat >>confdefs.h <<\_ACEOF
97bf5e38 18068#define HAVE_PRFPREGSET32_T 1
bec39cab 18069_ACEOF
d45fe813 18070
97bf5e38 18071 fi
bec39cab
AC
18072 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18073echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 18074
bec39cab
AC
18075 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18076echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18077 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18079else
bec39cab
AC
18080 cat >conftest.$ac_ext <<_ACEOF
18081/* confdefs.h. */
18082_ACEOF
18083cat confdefs.h >>conftest.$ac_ext
18084cat >>conftest.$ac_ext <<_ACEOF
18085/* end confdefs.h. */
97bf5e38 18086
d45fe813 18087#define _SYSCALL32
97bf5e38 18088#include <sys/procfs.h>
bec39cab
AC
18089int
18090main ()
18091{
97bf5e38 18092lwpid_t avar
bec39cab
AC
18093 ;
18094 return 0;
18095}
18096_ACEOF
18097rm -f conftest.$ac_objext
18098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18099 (eval $ac_compile) 2>conftest.er1
18100 ac_status=$?
18101 grep -v '^ *+' conftest.er1 >conftest.err
18102 rm -f conftest.er1
18103 cat conftest.err >&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
18106 { ac_try='test -z "$ac_c_werror_flag"
18107 || test ! -s conftest.err'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; } &&
18113 { ac_try='test -s conftest.$ac_objext'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
97bf5e38 18119 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 18120else
bec39cab
AC
18121 echo "$as_me: failed program was:" >&5
18122sed 's/^/| /' conftest.$ac_ext >&5
18123
18124bfd_cv_have_sys_procfs_type_lwpid_t=no
18125
d45fe813 18126fi
bec39cab 18127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18128fi
18129
97bf5e38 18130 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
18131
18132cat >>confdefs.h <<\_ACEOF
97bf5e38 18133#define HAVE_LWPID_T 1
bec39cab 18134_ACEOF
d45fe813 18135
97bf5e38 18136 fi
bec39cab
AC
18137 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18138echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 18139
bec39cab
AC
18140 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18141echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18142 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18143 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18144else
bec39cab
AC
18145 cat >conftest.$ac_ext <<_ACEOF
18146/* confdefs.h. */
18147_ACEOF
18148cat confdefs.h >>conftest.$ac_ext
18149cat >>conftest.$ac_ext <<_ACEOF
18150/* end confdefs.h. */
c906108c 18151
97bf5e38
MK
18152#define _SYSCALL32
18153#include <sys/procfs.h>
bec39cab
AC
18154int
18155main ()
18156{
97bf5e38 18157psaddr_t avar
bec39cab
AC
18158 ;
18159 return 0;
18160}
18161_ACEOF
18162rm -f conftest.$ac_objext
18163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18164 (eval $ac_compile) 2>conftest.er1
18165 ac_status=$?
18166 grep -v '^ *+' conftest.er1 >conftest.err
18167 rm -f conftest.er1
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
18171 { ac_try='test -z "$ac_c_werror_flag"
18172 || test ! -s conftest.err'
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; } &&
18178 { ac_try='test -s conftest.$ac_objext'
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
97bf5e38 18184 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 18185else
bec39cab
AC
18186 echo "$as_me: failed program was:" >&5
18187sed 's/^/| /' conftest.$ac_ext >&5
18188
18189bfd_cv_have_sys_procfs_type_psaddr_t=no
18190
c906108c 18191fi
bec39cab 18192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18193fi
18194
97bf5e38 18195 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
18196
18197cat >>confdefs.h <<\_ACEOF
97bf5e38 18198#define HAVE_PSADDR_T 1
bec39cab 18199_ACEOF
c906108c 18200
97bf5e38 18201 fi
bec39cab
AC
18202 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18203echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 18204
bec39cab
AC
18205 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18206echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18207 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18209else
bec39cab
AC
18210 cat >conftest.$ac_ext <<_ACEOF
18211/* confdefs.h. */
18212_ACEOF
18213cat confdefs.h >>conftest.$ac_ext
18214cat >>conftest.$ac_ext <<_ACEOF
18215/* end confdefs.h. */
c906108c 18216
97bf5e38
MK
18217#define _SYSCALL32
18218#include <sys/procfs.h>
bec39cab
AC
18219int
18220main ()
18221{
97bf5e38 18222prsysent_t avar
bec39cab
AC
18223 ;
18224 return 0;
18225}
18226_ACEOF
18227rm -f conftest.$ac_objext
18228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18229 (eval $ac_compile) 2>conftest.er1
18230 ac_status=$?
18231 grep -v '^ *+' conftest.er1 >conftest.err
18232 rm -f conftest.er1
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag"
18237 || test ! -s conftest.err'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest.$ac_objext'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18246 ac_status=$?
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
97bf5e38 18249 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 18250else
bec39cab
AC
18251 echo "$as_me: failed program was:" >&5
18252sed 's/^/| /' conftest.$ac_ext >&5
18253
18254bfd_cv_have_sys_procfs_type_prsysent_t=no
18255
c906108c 18256fi
bec39cab 18257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18258fi
18259
97bf5e38 18260 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
18261
18262cat >>confdefs.h <<\_ACEOF
97bf5e38 18263#define HAVE_PRSYSENT_T 1
bec39cab 18264_ACEOF
c906108c 18265
97bf5e38 18266 fi
bec39cab
AC
18267 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18268echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 18269
bec39cab
AC
18270 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18271echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18272 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18273 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18274else
bec39cab
AC
18275 cat >conftest.$ac_ext <<_ACEOF
18276/* confdefs.h. */
18277_ACEOF
18278cat confdefs.h >>conftest.$ac_ext
18279cat >>conftest.$ac_ext <<_ACEOF
18280/* end confdefs.h. */
c906108c 18281
97bf5e38
MK
18282#define _SYSCALL32
18283#include <sys/procfs.h>
bec39cab
AC
18284int
18285main ()
18286{
97bf5e38 18287pr_sigset_t avar
bec39cab
AC
18288 ;
18289 return 0;
18290}
18291_ACEOF
18292rm -f conftest.$ac_objext
18293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18294 (eval $ac_compile) 2>conftest.er1
18295 ac_status=$?
18296 grep -v '^ *+' conftest.er1 >conftest.err
18297 rm -f conftest.er1
18298 cat conftest.err >&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } &&
18301 { ac_try='test -z "$ac_c_werror_flag"
18302 || test ! -s conftest.err'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18305 ac_status=$?
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest.$ac_objext'
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18311 ac_status=$?
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; }; then
97bf5e38 18314 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 18315else
bec39cab
AC
18316 echo "$as_me: failed program was:" >&5
18317sed 's/^/| /' conftest.$ac_ext >&5
18318
18319bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18320
c906108c 18321fi
bec39cab 18322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18323fi
18324
97bf5e38 18325 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
18326
18327cat >>confdefs.h <<\_ACEOF
97bf5e38 18328#define HAVE_PR_SIGSET_T 1
bec39cab 18329_ACEOF
c906108c 18330
97bf5e38 18331 fi
bec39cab
AC
18332 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18333echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 18334
bec39cab
AC
18335 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18336echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18337 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18339else
bec39cab
AC
18340 cat >conftest.$ac_ext <<_ACEOF
18341/* confdefs.h. */
18342_ACEOF
18343cat confdefs.h >>conftest.$ac_ext
18344cat >>conftest.$ac_ext <<_ACEOF
18345/* end confdefs.h. */
c906108c 18346
97bf5e38
MK
18347#define _SYSCALL32
18348#include <sys/procfs.h>
bec39cab
AC
18349int
18350main ()
18351{
97bf5e38 18352pr_sigaction64_t avar
bec39cab
AC
18353 ;
18354 return 0;
18355}
18356_ACEOF
18357rm -f conftest.$ac_objext
18358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18359 (eval $ac_compile) 2>conftest.er1
18360 ac_status=$?
18361 grep -v '^ *+' conftest.er1 >conftest.err
18362 rm -f conftest.er1
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
18366 { ac_try='test -z "$ac_c_werror_flag"
18367 || test ! -s conftest.err'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; } &&
18373 { ac_try='test -s conftest.$ac_objext'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
97bf5e38 18379 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 18380else
bec39cab
AC
18381 echo "$as_me: failed program was:" >&5
18382sed 's/^/| /' conftest.$ac_ext >&5
18383
18384bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18385
c906108c 18386fi
bec39cab 18387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18388fi
18389
97bf5e38 18390 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
18391
18392cat >>confdefs.h <<\_ACEOF
97bf5e38 18393#define HAVE_PR_SIGACTION64_T 1
bec39cab 18394_ACEOF
c906108c 18395
97bf5e38 18396 fi
bec39cab
AC
18397 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18398echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 18399
bec39cab
AC
18400 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18401echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18402 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18403 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18404else
bec39cab
AC
18405 cat >conftest.$ac_ext <<_ACEOF
18406/* confdefs.h. */
18407_ACEOF
18408cat confdefs.h >>conftest.$ac_ext
18409cat >>conftest.$ac_ext <<_ACEOF
18410/* end confdefs.h. */
97bf5e38
MK
18411
18412#define _SYSCALL32
18413#include <sys/procfs.h>
bec39cab
AC
18414int
18415main ()
18416{
97bf5e38 18417pr_siginfo64_t avar
bec39cab
AC
18418 ;
18419 return 0;
18420}
18421_ACEOF
18422rm -f conftest.$ac_objext
18423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18424 (eval $ac_compile) 2>conftest.er1
18425 ac_status=$?
18426 grep -v '^ *+' conftest.er1 >conftest.err
18427 rm -f conftest.er1
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
18431 { ac_try='test -z "$ac_c_werror_flag"
18432 || test ! -s conftest.err'
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; } &&
18438 { ac_try='test -s conftest.$ac_objext'
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
97bf5e38
MK
18444 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18445else
bec39cab
AC
18446 echo "$as_me: failed program was:" >&5
18447sed 's/^/| /' conftest.$ac_ext >&5
18448
18449bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18450
97bf5e38 18451fi
bec39cab 18452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18453fi
c906108c 18454
97bf5e38 18455 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
18456
18457cat >>confdefs.h <<\_ACEOF
97bf5e38 18458#define HAVE_PR_SIGINFO64_T 1
bec39cab 18459_ACEOF
c906108c 18460
97bf5e38 18461 fi
bec39cab
AC
18462 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18463echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18464
18465
97bf5e38
MK
18466
18467
18468
97bf5e38 18469 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18470 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18471echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18472 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
18474else
18475 if test "$cross_compiling" = yes; then
97bf5e38 18476 gdb_cv_prfpregset_t_broken=yes
c906108c 18477else
bec39cab
AC
18478 cat >conftest.$ac_ext <<_ACEOF
18479/* confdefs.h. */
18480_ACEOF
18481cat confdefs.h >>conftest.$ac_ext
18482cat >>conftest.$ac_ext <<_ACEOF
18483/* end confdefs.h. */
97bf5e38
MK
18484#include <sys/procfs.h>
18485 int main ()
18486 {
18487 if (sizeof (prfpregset_t) == sizeof (void *))
18488 return 1;
18489 return 0;
18490 }
bec39cab
AC
18491_ACEOF
18492rm -f conftest$ac_exeext
18493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18494 (eval $ac_link) 2>&5
18495 ac_status=$?
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18500 ac_status=$?
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; }; then
97bf5e38 18503 gdb_cv_prfpregset_t_broken=no
c906108c 18504else
bec39cab
AC
18505 echo "$as_me: program exited with status $ac_status" >&5
18506echo "$as_me: failed program was:" >&5
18507sed 's/^/| /' conftest.$ac_ext >&5
18508
18509( exit $ac_status )
18510gdb_cv_prfpregset_t_broken=yes
c906108c 18511fi
bec39cab 18512rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 18513fi
c906108c
SS
18514fi
18515
bec39cab
AC
18516 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18517echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 18518 if test $gdb_cv_prfpregset_t_broken = yes; then
bec39cab 18519 cat >>confdefs.h <<\_ACEOF
97bf5e38 18520#define PRFPREGSET_T_BROKEN 1
bec39cab 18521_ACEOF
c906108c 18522
97bf5e38
MK
18523 fi
18524 fi
c906108c 18525
bec39cab
AC
18526
18527 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18528echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18529 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18531else
bec39cab
AC
18532 cat >conftest.$ac_ext <<_ACEOF
18533/* confdefs.h. */
18534_ACEOF
18535cat confdefs.h >>conftest.$ac_ext
18536cat >>conftest.$ac_ext <<_ACEOF
18537/* end confdefs.h. */
97bf5e38
MK
18538#include <unistd.h>
18539#include <sys/types.h>
18540#include <sys/procfs.h>
18541
bec39cab
AC
18542int
18543main ()
18544{
97bf5e38
MK
18545
18546 int dummy;;
18547 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
18548
18549 ;
18550 return 0;
18551}
18552_ACEOF
18553rm -f conftest.$ac_objext
18554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18555 (eval $ac_compile) 2>conftest.er1
18556 ac_status=$?
18557 grep -v '^ *+' conftest.er1 >conftest.err
18558 rm -f conftest.er1
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } &&
18562 { ac_try='test -z "$ac_c_werror_flag"
18563 || test ! -s conftest.err'
18564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565 (eval $ac_try) 2>&5
18566 ac_status=$?
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; } &&
18569 { ac_try='test -s conftest.$ac_objext'
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18572 ac_status=$?
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; }; then
97bf5e38 18575 gdb_cv_have_procfs_piocset=yes
c906108c 18576else
bec39cab
AC
18577 echo "$as_me: failed program was:" >&5
18578sed 's/^/| /' conftest.$ac_ext >&5
18579
18580gdb_cv_have_procfs_piocset=no
c906108c 18581fi
bec39cab 18582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18583fi
97bf5e38 18584
bec39cab
AC
18585 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18586echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 18587 if test $gdb_cv_have_procfs_piocset = yes; then
bec39cab 18588 cat >>confdefs.h <<\_ACEOF
97bf5e38 18589#define HAVE_PROCFS_PIOCSET 1
bec39cab 18590_ACEOF
97bf5e38
MK
18591
18592 fi
c906108c 18593fi
c906108c 18594
97bf5e38 18595if test ${host} = ${target} ; then
bec39cab
AC
18596
18597 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18598echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18599 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18600 echo $ECHO_N "(cached) $ECHO_C" >&6
18601else
18602 cat >conftest.$ac_ext <<_ACEOF
18603/* confdefs.h. */
18604_ACEOF
18605cat confdefs.h >>conftest.$ac_ext
18606cat >>conftest.$ac_ext <<_ACEOF
18607/* end confdefs.h. */
97bf5e38 18608#include <link.h>
bec39cab
AC
18609int
18610main ()
18611{
97bf5e38 18612struct link_map lm; (void) lm.l_addr;
bec39cab
AC
18613 ;
18614 return 0;
18615}
18616_ACEOF
18617rm -f conftest.$ac_objext
18618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18619 (eval $ac_compile) 2>conftest.er1
18620 ac_status=$?
18621 grep -v '^ *+' conftest.er1 >conftest.err
18622 rm -f conftest.er1
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
18626 { ac_try='test -z "$ac_c_werror_flag"
18627 || test ! -s conftest.err'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest.$ac_objext'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
97bf5e38 18639 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 18640else
bec39cab
AC
18641 echo "$as_me: failed program was:" >&5
18642sed 's/^/| /' conftest.$ac_ext >&5
18643
18644gdb_cv_have_struct_link_map_with_l_members=no
c906108c 18645fi
bec39cab 18646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18647fi
18648
bec39cab
AC
18649 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18650echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 18651 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
bec39cab 18652 cat >>confdefs.h <<\_ACEOF
97bf5e38 18653#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 18654_ACEOF
97bf5e38
MK
18655
18656 fi
18657
bec39cab
AC
18658
18659 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18660echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18661 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18663else
bec39cab
AC
18664 cat >conftest.$ac_ext <<_ACEOF
18665/* confdefs.h. */
18666_ACEOF
18667cat confdefs.h >>conftest.$ac_ext
18668cat >>conftest.$ac_ext <<_ACEOF
18669/* end confdefs.h. */
97bf5e38
MK
18670#include <sys/types.h>
18671#include <link.h>
bec39cab
AC
18672int
18673main ()
18674{
97bf5e38 18675struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
18676 ;
18677 return 0;
18678}
18679_ACEOF
18680rm -f conftest.$ac_objext
18681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18682 (eval $ac_compile) 2>conftest.er1
18683 ac_status=$?
18684 grep -v '^ *+' conftest.er1 >conftest.err
18685 rm -f conftest.er1
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } &&
18689 { ac_try='test -z "$ac_c_werror_flag"
18690 || test ! -s conftest.err'
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18693 ac_status=$?
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; } &&
18696 { ac_try='test -s conftest.$ac_objext'
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18699 ac_status=$?
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
97bf5e38
MK
18702 gdb_cv_have_struct_link_map_with_lm_members=yes
18703else
bec39cab
AC
18704 echo "$as_me: failed program was:" >&5
18705sed 's/^/| /' conftest.$ac_ext >&5
18706
18707gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 18708fi
bec39cab 18709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18710fi
c906108c 18711
bec39cab
AC
18712 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18713echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 18714 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
bec39cab 18715 cat >>confdefs.h <<\_ACEOF
97bf5e38 18716#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 18717_ACEOF
97bf5e38
MK
18718
18719 fi
18720
bec39cab
AC
18721
18722 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18723echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18724 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18726else
bec39cab
AC
18727 cat >conftest.$ac_ext <<_ACEOF
18728/* confdefs.h. */
18729_ACEOF
18730cat confdefs.h >>conftest.$ac_ext
18731cat >>conftest.$ac_ext <<_ACEOF
18732/* end confdefs.h. */
97bf5e38
MK
18733#include <sys/types.h>
18734#ifdef HAVE_NLIST_H
18735#include <nlist.h>
18736#endif
18737#include <link.h>
bec39cab
AC
18738int
18739main ()
18740{
97bf5e38 18741struct so_map lm; (void) lm.som_addr;
bec39cab
AC
18742 ;
18743 return 0;
18744}
18745_ACEOF
18746rm -f conftest.$ac_objext
18747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18748 (eval $ac_compile) 2>conftest.er1
18749 ac_status=$?
18750 grep -v '^ *+' conftest.er1 >conftest.err
18751 rm -f conftest.er1
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag"
18756 || test ! -s conftest.err'
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; } &&
18762 { ac_try='test -s conftest.$ac_objext'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; }; then
97bf5e38
MK
18768 gdb_cv_have_struct_so_map_with_som_members=yes
18769else
bec39cab
AC
18770 echo "$as_me: failed program was:" >&5
18771sed 's/^/| /' conftest.$ac_ext >&5
18772
18773gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 18774fi
bec39cab 18775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 18776fi
c906108c 18777
bec39cab
AC
18778 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18779echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 18780 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
bec39cab 18781 cat >>confdefs.h <<\_ACEOF
97bf5e38 18782#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 18783_ACEOF
c906108c 18784
97bf5e38 18785 fi
c906108c 18786
bec39cab
AC
18787
18788 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18789echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18790 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18792else
bec39cab
AC
18793 cat >conftest.$ac_ext <<_ACEOF
18794/* confdefs.h. */
18795_ACEOF
18796cat confdefs.h >>conftest.$ac_ext
18797cat >>conftest.$ac_ext <<_ACEOF
18798/* end confdefs.h. */
97bf5e38
MK
18799#define _SYSCALL32
18800#include <sys/link.h>
bec39cab
AC
18801int
18802main ()
18803{
97bf5e38 18804struct link_map32 l;
bec39cab
AC
18805 ;
18806 return 0;
18807}
18808_ACEOF
18809rm -f conftest.$ac_objext
18810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811 (eval $ac_compile) 2>conftest.er1
18812 ac_status=$?
18813 grep -v '^ *+' conftest.er1 >conftest.err
18814 rm -f conftest.er1
18815 cat conftest.err >&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try='test -z "$ac_c_werror_flag"
18819 || test ! -s conftest.err'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18822 ac_status=$?
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; } &&
18825 { ac_try='test -s conftest.$ac_objext'
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18828 ac_status=$?
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; }; then
97bf5e38
MK
18831 gdb_cv_have_struct_link_map32=yes
18832else
bec39cab
AC
18833 echo "$as_me: failed program was:" >&5
18834sed 's/^/| /' conftest.$ac_ext >&5
18835
18836gdb_cv_have_struct_link_map32=no
97bf5e38 18837fi
bec39cab 18838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 18839fi
c906108c 18840
bec39cab
AC
18841 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18842echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 18843 if test $gdb_cv_have_struct_link_map32 = yes; then
bec39cab 18844 cat >>confdefs.h <<\_ACEOF
97bf5e38 18845#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 18846_ACEOF
c906108c 18847
bec39cab 18848 cat >>confdefs.h <<\_ACEOF
97bf5e38 18849#define _SYSCALL32 1
bec39cab 18850_ACEOF
c906108c 18851
97bf5e38
MK
18852 fi
18853fi
c906108c 18854
c906108c 18855
bec39cab
AC
18856echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18857echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18858if test "${gdb_cv_c_long_long+set}" = set; then
18859 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18860else
bec39cab
AC
18861 cat >conftest.$ac_ext <<_ACEOF
18862/* confdefs.h. */
18863_ACEOF
18864cat confdefs.h >>conftest.$ac_ext
18865cat >>conftest.$ac_ext <<_ACEOF
18866/* end confdefs.h. */
c906108c 18867
bec39cab
AC
18868int
18869main ()
18870{
c906108c 18871
97bf5e38
MK
18872 extern long long foo;
18873 switch (foo & 2) { case 0: return 1; }
c906108c 18874
bec39cab
AC
18875 ;
18876 return 0;
18877}
18878_ACEOF
18879rm -f conftest.$ac_objext
18880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18881 (eval $ac_compile) 2>conftest.er1
18882 ac_status=$?
18883 grep -v '^ *+' conftest.er1 >conftest.err
18884 rm -f conftest.er1
18885 cat conftest.err >&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } &&
18888 { ac_try='test -z "$ac_c_werror_flag"
18889 || test ! -s conftest.err'
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } &&
18895 { ac_try='test -s conftest.$ac_objext'
18896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897 (eval $ac_try) 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; }; then
97bf5e38
MK
18901 gdb_cv_c_long_long=yes
18902else
bec39cab
AC
18903 echo "$as_me: failed program was:" >&5
18904sed 's/^/| /' conftest.$ac_ext >&5
18905
18906gdb_cv_c_long_long=no
97bf5e38 18907fi
bec39cab 18908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 18909fi
c906108c 18910
bec39cab
AC
18911echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18912echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 18913if test $gdb_cv_c_long_long = yes; then
bec39cab 18914 cat >>confdefs.h <<\_ACEOF
97bf5e38 18915#define CC_HAS_LONG_LONG 1
bec39cab 18916_ACEOF
97bf5e38
MK
18917
18918fi
18919
18920
bec39cab
AC
18921echo "$as_me:$LINENO: checking for long long support in printf" >&5
18922echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18923if test "${gdb_cv_printf_has_long_long+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
18925else
18926 if test "$cross_compiling" = yes; then
18927 gdb_cv_printf_has_long_long=no
18928else
bec39cab
AC
18929 cat >conftest.$ac_ext <<_ACEOF
18930/* confdefs.h. */
18931_ACEOF
18932cat confdefs.h >>conftest.$ac_ext
18933cat >>conftest.$ac_ext <<_ACEOF
18934/* end confdefs.h. */
97bf5e38
MK
18935
18936int main () {
18937 char buf[32];
18938 long long l = 0;
18939 l = (l << 16) + 0x0123;
18940 l = (l << 16) + 0x4567;
18941 l = (l << 16) + 0x89ab;
18942 l = (l << 16) + 0xcdef;
18943 sprintf (buf, "0x%016llx", l);
18944 return (strcmp ("0x0123456789abcdef", buf));
c906108c 18945}
bec39cab
AC
18946_ACEOF
18947rm -f conftest$ac_exeext
18948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18949 (eval $ac_link) 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; }; then
97bf5e38
MK
18958 gdb_cv_printf_has_long_long=yes
18959else
bec39cab
AC
18960 echo "$as_me: program exited with status $ac_status" >&5
18961echo "$as_me: failed program was:" >&5
18962sed 's/^/| /' conftest.$ac_ext >&5
18963
18964( exit $ac_status )
18965gdb_cv_printf_has_long_long=no
97bf5e38 18966fi
bec39cab 18967rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 18968fi
97bf5e38
MK
18969fi
18970
18971if test $gdb_cv_printf_has_long_long = yes; then
bec39cab 18972 cat >>confdefs.h <<\_ACEOF
97bf5e38 18973#define PRINTF_HAS_LONG_LONG 1
bec39cab 18974_ACEOF
97bf5e38
MK
18975
18976fi
bec39cab
AC
18977echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18978echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38
MK
18979
18980
bec39cab
AC
18981echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18982echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18983if test "${ac_cv_c_long_double+set}" = set; then
18984 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18985else
bec39cab
AC
18986 cat >conftest.$ac_ext <<_ACEOF
18987/* confdefs.h. */
18988_ACEOF
18989cat confdefs.h >>conftest.$ac_ext
18990cat >>conftest.$ac_ext <<_ACEOF
18991/* end confdefs.h. */
97bf5e38 18992
bec39cab
AC
18993int
18994main ()
18995{
97bf5e38 18996long double foo;
bec39cab
AC
18997 ;
18998 return 0;
18999}
19000_ACEOF
19001rm -f conftest.$ac_objext
19002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19003 (eval $ac_compile) 2>conftest.er1
19004 ac_status=$?
19005 grep -v '^ *+' conftest.er1 >conftest.err
19006 rm -f conftest.er1
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } &&
19010 { ac_try='test -z "$ac_c_werror_flag"
19011 || test ! -s conftest.err'
19012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013 (eval $ac_try) 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; } &&
19017 { ac_try='test -s conftest.$ac_objext'
19018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019 (eval $ac_try) 2>&5
19020 ac_status=$?
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
97bf5e38
MK
19023 ac_cv_c_long_double=yes
19024else
bec39cab
AC
19025 echo "$as_me: failed program was:" >&5
19026sed 's/^/| /' conftest.$ac_ext >&5
19027
19028ac_cv_c_long_double=no
97bf5e38 19029fi
bec39cab 19030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19031fi
c906108c 19032
bec39cab
AC
19033echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
19034echo "${ECHO_T}$ac_cv_c_long_double" >&6
97bf5e38 19035if test $ac_cv_c_long_double = yes; then
bec39cab 19036 cat >>confdefs.h <<\_ACEOF
97bf5e38 19037#define HAVE_LONG_DOUBLE 1
bec39cab 19038_ACEOF
97bf5e38
MK
19039
19040fi
19041
19042
bec39cab
AC
19043echo "$as_me:$LINENO: checking for long double support in printf" >&5
19044echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19045if test "${gdb_cv_printf_has_long_double+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19047else
19048 if test "$cross_compiling" = yes; then
19049 gdb_cv_printf_has_long_double=no
19050else
bec39cab
AC
19051 cat >conftest.$ac_ext <<_ACEOF
19052/* confdefs.h. */
19053_ACEOF
19054cat confdefs.h >>conftest.$ac_ext
19055cat >>conftest.$ac_ext <<_ACEOF
19056/* end confdefs.h. */
97bf5e38
MK
19057
19058int main () {
19059 char buf[16];
19060 long double f = 3.141592653;
19061 sprintf (buf, "%Lg", f);
19062 return (strncmp ("3.14159", buf, 7));
19063}
bec39cab
AC
19064_ACEOF
19065rm -f conftest$ac_exeext
19066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19067 (eval $ac_link) 2>&5
19068 ac_status=$?
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
97bf5e38 19076 gdb_cv_printf_has_long_double=yes
c906108c 19077else
bec39cab
AC
19078 echo "$as_me: program exited with status $ac_status" >&5
19079echo "$as_me: failed program was:" >&5
19080sed 's/^/| /' conftest.$ac_ext >&5
19081
19082( exit $ac_status )
19083gdb_cv_printf_has_long_double=no
c906108c 19084fi
bec39cab 19085rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19086fi
c906108c
SS
19087fi
19088
97bf5e38 19089if test $gdb_cv_printf_has_long_double = yes; then
bec39cab 19090 cat >>confdefs.h <<\_ACEOF
97bf5e38 19091#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 19092_ACEOF
97bf5e38
MK
19093
19094fi
bec39cab
AC
19095echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19096echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38
MK
19097
19098
bec39cab
AC
19099echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19100echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19101if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19102 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19103else
19104 if test "$cross_compiling" = yes; then
19105 gdb_cv_scanf_has_long_double=no
19106else
bec39cab
AC
19107 cat >conftest.$ac_ext <<_ACEOF
19108/* confdefs.h. */
19109_ACEOF
19110cat confdefs.h >>conftest.$ac_ext
19111cat >>conftest.$ac_ext <<_ACEOF
19112/* end confdefs.h. */
97bf5e38
MK
19113
19114int main () {
19115 char *buf = "3.141592653";
19116 long double f = 0;
19117 sscanf (buf, "%Lg", &f);
19118 return !(f > 3.14159 && f < 3.14160);
19119}
bec39cab
AC
19120_ACEOF
19121rm -f conftest$ac_exeext
19122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19123 (eval $ac_link) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
97bf5e38
MK
19132 gdb_cv_scanf_has_long_double=yes
19133else
bec39cab
AC
19134 echo "$as_me: program exited with status $ac_status" >&5
19135echo "$as_me: failed program was:" >&5
19136sed 's/^/| /' conftest.$ac_ext >&5
19137
19138( exit $ac_status )
19139gdb_cv_scanf_has_long_double=no
97bf5e38 19140fi
bec39cab 19141rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19142fi
c906108c
SS
19143fi
19144
97bf5e38 19145if test $gdb_cv_scanf_has_long_double = yes; then
bec39cab 19146 cat >>confdefs.h <<\_ACEOF
97bf5e38 19147#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 19148_ACEOF
97bf5e38
MK
19149
19150fi
bec39cab
AC
19151echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19152echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
c906108c 19153
438013df
AO
19154case ${host_os} in
19155aix*)
bec39cab
AC
19156 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19157echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19158if test "${gdb_cv_bigtoc+set}" = set; then
19159 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 19160else
bec39cab 19161
438013df
AO
19162 SAVE_LDFLAGS=$LDFLAGS
19163
19164 case $GCC in
19165 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19166 *) gdb_cv_bigtoc=-bbigtoc ;;
19167 esac
19168
19169 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
19170 cat >conftest.$ac_ext <<_ACEOF
19171/* confdefs.h. */
19172_ACEOF
19173cat confdefs.h >>conftest.$ac_ext
19174cat >>conftest.$ac_ext <<_ACEOF
19175/* end confdefs.h. */
438013df 19176
bec39cab
AC
19177int
19178main ()
19179{
438013df 19180int i;
bec39cab
AC
19181 ;
19182 return 0;
19183}
19184_ACEOF
19185rm -f conftest.$ac_objext conftest$ac_exeext
19186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19187 (eval $ac_link) 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_c_werror_flag"
19195 || test ! -s conftest.err'
19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197 (eval $ac_try) 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; } &&
19201 { ac_try='test -s conftest$ac_exeext'
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19204 ac_status=$?
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; }; then
438013df
AO
19207 :
19208else
bec39cab
AC
19209 echo "$as_me: failed program was:" >&5
19210sed 's/^/| /' conftest.$ac_ext >&5
19211
19212gdb_cv_bigtoc=
438013df 19213fi
bec39cab
AC
19214rm -f conftest.err conftest.$ac_objext \
19215 conftest$ac_exeext conftest.$ac_ext
ec76baa5 19216 LDFLAGS="${SAVE_LDFLAGS}"
438013df 19217
bec39cab
AC
19218fi
19219echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19220echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
19221 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19222 ;;
19223esac
19224
c906108c
SS
19225
19226
19227if test ${build} = ${host} -a ${host} = ${target} ; then
19228 case ${host_os} in
19229 hpux*)
bec39cab
AC
19230 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19231echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
19232 if test -f /usr/include/dce/cma_config.h ; then
19233 if test "$GCC" = "yes" ; then
bec39cab
AC
19234 echo "$as_me:$LINENO: result: yes" >&5
19235echo "${ECHO_T}yes" >&6
19236 cat >>confdefs.h <<\_ACEOF
c906108c 19237#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 19238_ACEOF
c906108c 19239
3483b318 19240 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
19241 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19242 else
bec39cab
AC
19243 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19244echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
19245 fi
19246 else
bec39cab
AC
19247 echo "$as_me:$LINENO: result: no" >&5
19248echo "${ECHO_T}no" >&6
c906108c
SS
19249 fi
19250 ;;
19251 solaris*)
d92419e5
JB
19252 # See if thread_db library is around for Solaris thread debugging.
19253 # Note that we must explicitly test for version 1 of the library
19254 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19255 # the same API.
bec39cab
AC
19256 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19257echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 19258 if test -f /usr/lib/libthread_db.so.1 ; then
bec39cab
AC
19259 echo "$as_me:$LINENO: result: yes" >&5
19260echo "${ECHO_T}yes" >&6
19261 cat >>confdefs.h <<\_ACEOF
c906108c 19262#define HAVE_THREAD_DB_LIB 1
bec39cab 19263_ACEOF
c906108c 19264
3483b318 19265 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 19266 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab
AC
19267
19268echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19269echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19270if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19272else
bec39cab 19273 ac_check_lib_save_LIBS=$LIBS
c906108c 19274LIBS="-ldl $LIBS"
bec39cab
AC
19275cat >conftest.$ac_ext <<_ACEOF
19276/* confdefs.h. */
19277_ACEOF
19278cat confdefs.h >>conftest.$ac_ext
19279cat >>conftest.$ac_ext <<_ACEOF
19280/* end confdefs.h. */
19281
c906108c 19282/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19283#ifdef __cplusplus
19284extern "C"
19285#endif
c906108c 19286/* We use char because int might match the return type of a gcc2
bec39cab
AC
19287 builtin and then its argument prototype would still apply. */
19288char dlopen ();
19289int
19290main ()
19291{
19292dlopen ();
19293 ;
19294 return 0;
19295}
19296_ACEOF
19297rm -f conftest.$ac_objext conftest$ac_exeext
19298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19299 (eval $ac_link) 2>conftest.er1
19300 ac_status=$?
19301 grep -v '^ *+' conftest.er1 >conftest.err
19302 rm -f conftest.er1
19303 cat conftest.err >&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } &&
19306 { ac_try='test -z "$ac_c_werror_flag"
19307 || test ! -s conftest.err'
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; } &&
19313 { ac_try='test -s conftest$ac_exeext'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; }; then
19319 ac_cv_lib_dl_dlopen=yes
19320else
19321 echo "$as_me: failed program was:" >&5
19322sed 's/^/| /' conftest.$ac_ext >&5
19323
19324ac_cv_lib_dl_dlopen=no
19325fi
19326rm -f conftest.err conftest.$ac_objext \
19327 conftest$ac_exeext conftest.$ac_ext
19328LIBS=$ac_check_lib_save_LIBS
19329fi
19330echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19331echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19332if test $ac_cv_lib_dl_dlopen = yes; then
19333 cat >>confdefs.h <<_ACEOF
19334#define HAVE_LIBDL 1
19335_ACEOF
c906108c
SS
19336
19337 LIBS="-ldl $LIBS"
19338
c906108c
SS
19339fi
19340
19341 if test "$GCC" = "yes" ; then
19342 # The GNU linker requires the -export-dynamic option to make
19343 # all symbols visible in the dynamic symbol table.
19344 hold_ldflags=$LDFLAGS
bec39cab
AC
19345 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19346echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 19347 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
19348 cat >conftest.$ac_ext <<_ACEOF
19349/* confdefs.h. */
19350_ACEOF
19351cat confdefs.h >>conftest.$ac_ext
19352cat >>conftest.$ac_ext <<_ACEOF
19353/* end confdefs.h. */
c906108c 19354
bec39cab
AC
19355int
19356main ()
19357{
c906108c 19358int i;
bec39cab
AC
19359 ;
19360 return 0;
19361}
19362_ACEOF
19363rm -f conftest.$ac_objext conftest$ac_exeext
19364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19365 (eval $ac_link) 2>conftest.er1
19366 ac_status=$?
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -z "$ac_c_werror_flag"
19373 || test ! -s conftest.err'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; } &&
19379 { ac_try='test -s conftest$ac_exeext'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
c906108c
SS
19385 found=yes
19386else
bec39cab
AC
19387 echo "$as_me: failed program was:" >&5
19388sed 's/^/| /' conftest.$ac_ext >&5
19389
19390found=no
c906108c 19391fi
bec39cab
AC
19392rm -f conftest.err conftest.$ac_objext \
19393 conftest$ac_exeext conftest.$ac_ext
c906108c 19394 LDFLAGS=$hold_ldflags
bec39cab
AC
19395 echo "$as_me:$LINENO: result: $found" >&5
19396echo "${ECHO_T}$found" >&6
c906108c
SS
19397 if test $found = yes; then
19398 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19399 fi
19400 fi
19401 # Sun randomly tweaked the prototypes in <proc_service.h>
19402 # at one point.
bec39cab
AC
19403 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19404echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19405 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19407else
bec39cab
AC
19408
19409 cat >conftest.$ac_ext <<_ACEOF
19410/* confdefs.h. */
19411_ACEOF
19412cat confdefs.h >>conftest.$ac_ext
19413cat >>conftest.$ac_ext <<_ACEOF
19414/* end confdefs.h. */
c906108c
SS
19415
19416 #include <proc_service.h>
19417 ps_err_e ps_pdwrite
19418 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 19419
bec39cab
AC
19420int
19421main ()
19422{
19423
19424 ;
19425 return 0;
19426}
19427_ACEOF
19428rm -f conftest.$ac_objext
19429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19430 (eval $ac_compile) 2>conftest.er1
19431 ac_status=$?
19432 grep -v '^ *+' conftest.er1 >conftest.err
19433 rm -f conftest.er1
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } &&
19437 { ac_try='test -z "$ac_c_werror_flag"
19438 || test ! -s conftest.err'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19441 ac_status=$?
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; } &&
19444 { ac_try='test -s conftest.$ac_objext'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
c906108c
SS
19450 gdb_cv_proc_service_is_old=no
19451else
bec39cab
AC
19452 echo "$as_me: failed program was:" >&5
19453sed 's/^/| /' conftest.$ac_ext >&5
19454
19455gdb_cv_proc_service_is_old=yes
c906108c 19456fi
bec39cab
AC
19457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19458
c906108c
SS
19459fi
19460
bec39cab
AC
19461 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19462echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 19463 if test $gdb_cv_proc_service_is_old = yes; then
bec39cab 19464 cat >>confdefs.h <<\_ACEOF
c906108c 19465#define PROC_SERVICE_IS_OLD 1
bec39cab 19466_ACEOF
c906108c
SS
19467
19468 fi
19469 else
bec39cab
AC
19470 echo "$as_me:$LINENO: result: no" >&5
19471echo "${ECHO_T}no" >&6
c906108c
SS
19472 fi
19473 ;;
d92419e5 19474 aix*)
bec39cab
AC
19475 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19476echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19477 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19478 echo $ECHO_N "(cached) $ECHO_C" >&6
19479else
19480 cat >conftest.$ac_ext <<_ACEOF
19481/* confdefs.h. */
19482_ACEOF
19483cat confdefs.h >>conftest.$ac_ext
19484cat >>conftest.$ac_ext <<_ACEOF
19485/* end confdefs.h. */
d92419e5 19486#include <sys/pthdebug.h>
bec39cab
AC
19487int
19488main ()
19489{
d92419e5
JB
19490#ifndef PTHDB_VERSION_3
19491 #error
19492 #endif
bec39cab
AC
19493 ;
19494 return 0;
19495}
19496_ACEOF
19497rm -f conftest.$ac_objext
19498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19499 (eval $ac_compile) 2>conftest.er1
19500 ac_status=$?
19501 grep -v '^ *+' conftest.er1 >conftest.err
19502 rm -f conftest.er1
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
19506 { ac_try='test -z "$ac_c_werror_flag"
19507 || test ! -s conftest.err'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19510 ac_status=$?
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; } &&
19513 { ac_try='test -s conftest.$ac_objext'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
d92419e5
JB
19519 gdb_cv_have_aix_thread_debug=yes
19520else
bec39cab
AC
19521 echo "$as_me: failed program was:" >&5
19522sed 's/^/| /' conftest.$ac_ext >&5
19523
19524gdb_cv_have_aix_thread_debug=no
d92419e5 19525fi
bec39cab 19526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
19527fi
19528
bec39cab
AC
19529 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19530echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
19531 if test $gdb_cv_have_aix_thread_debug = yes; then
19532 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 19533 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
19534 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19535 fi
19536 ;;
c906108c 19537 esac
bec39cab 19538
c906108c
SS
19539fi
19540
3f47be5c 19541if test "x$ac_cv_header_thread_db_h" = "xyes"; then
bec39cab
AC
19542 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19543echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19544if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19546else
19547 cat >conftest.$ac_ext <<_ACEOF
19548/* confdefs.h. */
19549_ACEOF
19550cat confdefs.h >>conftest.$ac_ext
19551cat >>conftest.$ac_ext <<_ACEOF
19552/* end confdefs.h. */
3f47be5c 19553#include <thread_db.h>
bec39cab
AC
19554int
19555main ()
19556{
3f47be5c 19557int i = TD_NOTALLOC;
bec39cab
AC
19558 ;
19559 return 0;
19560}
19561_ACEOF
19562rm -f conftest.$ac_objext
19563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564 (eval $ac_compile) 2>conftest.er1
19565 ac_status=$?
19566 grep -v '^ *+' conftest.er1 >conftest.err
19567 rm -f conftest.er1
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
19571 { ac_try='test -z "$ac_c_werror_flag"
19572 || test ! -s conftest.err'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; } &&
19578 { ac_try='test -s conftest.$ac_objext'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19581 ac_status=$?
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
3f47be5c
EZ
19584 gdb_cv_thread_db_h_has_td_notalloc=yes
19585else
bec39cab
AC
19586 echo "$as_me: failed program was:" >&5
19587sed 's/^/| /' conftest.$ac_ext >&5
19588
19589gdb_cv_thread_db_h_has_td_notalloc=no
19590
3f47be5c 19591fi
bec39cab 19592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 19593
bec39cab
AC
19594fi
19595echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19596echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
3f47be5c
EZ
19597fi
19598if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
19599
19600cat >>confdefs.h <<\_ACEOF
3f47be5c 19601#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 19602_ACEOF
3f47be5c
EZ
19603
19604fi
19605
b757528f 19606if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
bec39cab
AC
19607 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19608echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19609if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19611else
19612 cat >conftest.$ac_ext <<_ACEOF
19613/* confdefs.h. */
19614_ACEOF
19615cat confdefs.h >>conftest.$ac_ext
19616cat >>conftest.$ac_ext <<_ACEOF
19617/* end confdefs.h. */
b757528f 19618#include <sys/syscall.h>
bec39cab
AC
19619int
19620main ()
19621{
b757528f 19622int i = __NR_tkill;
bec39cab
AC
19623 ;
19624 return 0;
19625}
19626_ACEOF
19627rm -f conftest.$ac_objext
19628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19629 (eval $ac_compile) 2>conftest.er1
19630 ac_status=$?
19631 grep -v '^ *+' conftest.er1 >conftest.err
19632 rm -f conftest.er1
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } &&
19636 { ac_try='test -z "$ac_c_werror_flag"
19637 || test ! -s conftest.err'
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest.$ac_objext'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19646 ac_status=$?
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
b757528f
JJ
19649 gdb_cv_sys_syscall_h_has_tkill=yes
19650else
bec39cab
AC
19651 echo "$as_me: failed program was:" >&5
19652sed 's/^/| /' conftest.$ac_ext >&5
19653
19654gdb_cv_sys_syscall_h_has_tkill=no
19655
b757528f 19656fi
bec39cab 19657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 19658
bec39cab
AC
19659fi
19660echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19661echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
19662fi
19663if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
19664
19665cat >>confdefs.h <<\_ACEOF
b757528f 19666#define HAVE_TKILL_SYSCALL 1
bec39cab 19667_ACEOF
b757528f
JJ
19668
19669fi
19670
fb40c209 19671
bec39cab 19672
030292b7
DJ
19673# Check whether --with-sysroot or --without-sysroot was given.
19674if test "${with_sysroot+set}" = set; then
19675 withval="$with_sysroot"
bec39cab 19676
030292b7 19677 case ${with_sysroot} in
715d1656 19678 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
19679 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19680 esac
19681
19682 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19683
19684 if test "x$exec_prefix" = xNONE; then
19685 if test "x$prefix" = xNONE; then
19686 test_prefix=/usr/local
19687 else
19688 test_prefix=$prefix
19689 fi
19690 else
19691 test_prefix=$exec_prefix
19692 fi
19693 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
19694 "${test_prefix}"|"${test_prefix}/"*|\
19695 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
19696 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19697 TARGET_SYSTEM_ROOT_DEFINE="$t"
19698 ;;
19699 esac
19700
19701else
bec39cab 19702
030292b7
DJ
19703 TARGET_SYSTEM_ROOT=
19704 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19705
bec39cab 19706fi;
030292b7
DJ
19707
19708
19709
3b851bce
AC
19710# NOTE: Don't add -Wall or -Wunused, they both include
19711# -Wunused-parameter which reports bogus warnings.
19712# NOTE: If you add to this list, remember to update
19713# gdb/doc/gdbint.texinfo.
1decb323 19714build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
0f0cffd2 19715-Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
4566dfcf 19716-Wunused-label -Wunused-function"
d8038014 19717# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 19718# -Wunused-function -Wunused-variable -Wunused-value
93d56215 19719# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
19720# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19721# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19722# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
19723# Check whether --enable-build-warnings or --disable-build-warnings was given.
19724if test "${enable_build_warnings+set}" = set; then
19725 enableval="$enable_build_warnings"
1decb323 19726 case "${enableval}" in
c906108c
SS
19727 yes) ;;
19728 no) build_warnings="-w";;
19729 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19730 build_warnings="${build_warnings} ${t}";;
19731 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19732 build_warnings="${t} ${build_warnings}";;
19733 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19734esac
d4f3574e 19735if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 19736 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 19737fi
bec39cab 19738fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce
AC
19739if test "${enable_gdb_build_warnings+set}" = set; then
19740 enableval="$enable_gdb_build_warnings"
19741 case "${enableval}" in
19742 yes) ;;
19743 no) build_warnings="-w";;
19744 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19745 build_warnings="${build_warnings} ${t}";;
19746 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19747 build_warnings="${t} ${build_warnings}";;
19748 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19749esac
19750if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19751 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19752fi
bec39cab 19753fi; WARN_CFLAGS=""
104c1213 19754WERROR_CFLAGS=""
c906108c
SS
19755if test "x${build_warnings}" != x -a "x$GCC" = xyes
19756then
bec39cab
AC
19757 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19758echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
19759 # Separate out the -Werror flag as some files just cannot be
19760 # compiled with it enabled.
19761 for w in ${build_warnings}; do
19762 case $w in
19763 -Werr*) WERROR_CFLAGS=-Werror ;;
19764 *) # Check that GCC accepts it
4536bbc6
AC
19765 saved_CFLAGS="$CFLAGS"
19766 CFLAGS="$CFLAGS $w"
bec39cab
AC
19767 cat >conftest.$ac_ext <<_ACEOF
19768/* confdefs.h. */
19769_ACEOF
19770cat confdefs.h >>conftest.$ac_ext
19771cat >>conftest.$ac_ext <<_ACEOF
19772/* end confdefs.h. */
4536bbc6 19773
bec39cab
AC
19774int
19775main ()
19776{
4536bbc6 19777
bec39cab
AC
19778 ;
19779 return 0;
19780}
19781_ACEOF
19782rm -f conftest.$ac_objext
19783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19784 (eval $ac_compile) 2>conftest.er1
19785 ac_status=$?
19786 grep -v '^ *+' conftest.er1 >conftest.err
19787 rm -f conftest.er1
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } &&
19791 { ac_try='test -z "$ac_c_werror_flag"
19792 || test ! -s conftest.err'
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19795 ac_status=$?
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; } &&
19798 { ac_try='test -s conftest.$ac_objext'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; }; then
4536bbc6
AC
19804 WARN_CFLAGS="${WARN_CFLAGS} $w"
19805else
bec39cab
AC
19806 echo "$as_me: failed program was:" >&5
19807sed 's/^/| /' conftest.$ac_ext >&5
19808
4536bbc6 19809fi
bec39cab 19810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 19811 CFLAGS="$saved_CFLAGS"
746a987d
AC
19812 esac
19813 done
bec39cab
AC
19814 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
19815echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
19816fi
19817
19818
104c1213 19819
7a292a7a 19820# In the Cygwin environment, we need some additional flags.
bec39cab
AC
19821echo "$as_me:$LINENO: checking for cygwin" >&5
19822echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19823if test "${gdb_cv_os_cygwin+set}" = set; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19825else
19826 cat >conftest.$ac_ext <<_ACEOF
19827/* confdefs.h. */
19828_ACEOF
19829cat confdefs.h >>conftest.$ac_ext
19830cat >>conftest.$ac_ext <<_ACEOF
19831/* end confdefs.h. */
7a292a7a
SS
19832
19833#if defined (__CYGWIN__) || defined (__CYGWIN32__)
19834lose
19835#endif
bec39cab 19836_ACEOF
7a292a7a 19837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 19838 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
19839 gdb_cv_os_cygwin=yes
19840else
7a292a7a
SS
19841 gdb_cv_os_cygwin=no
19842fi
19843rm -f conftest*
19844
19845fi
bec39cab
AC
19846echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19847echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 19848
aff38e61
AC
19849
19850SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
19851case ${host} in
95cbc983
AC
19852 *go32* ) SER_HARDWIRE=ser-go32.o ;;
19853 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
aff38e61
AC
19854esac
19855
19856
cd0fc7c3
SS
19857# libreadline needs libuser32.a in a cygwin environment
19858WIN32LIBS=
19859if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
19860 WIN32LIBS="-luser32"
19861 case "${target}" in
19862 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19863 ;;
19864 esac
cd0fc7c3 19865fi
c906108c 19866
7a292a7a 19867
3fc11d3e
JM
19868LIBGUI="../libgui/src/libgui.a"
19869GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19870
19871
7a292a7a 19872
3fc11d3e
JM
19873WIN32LDAPP=
19874
19875
19876
d91670b9
CV
19877case "${host}" in
19878*-*-cygwin*)
19879 configdir="win"
19880 ;;
19881*)
19882 configdir="unix"
19883 ;;
19884esac
3fc11d3e
JM
19885
19886GDBTKLIBS=
19887if test "${enable_gdbtk}" = "yes"; then
19888
d1c3b63a
KS
19889 # Gdbtk must have an absolute path to srcdir in order to run
19890 # properly when not installed.
19891 here=`pwd`
19892 cd ${srcdir}
19893 GDBTK_SRC_DIR=`pwd`
19894 cd $here
19895
bec39cab 19896
3fc11d3e
JM
19897#
19898# Ok, lets find the tcl configuration
bec39cab 19899# First, look for one uninstalled.
3fc11d3e
JM
19900# the alternative search directory is invoked by --with-tclconfig
19901#
19902
19903if test x"${no_tcl}" = x ; then
19904 # we reset no_tcl in case something fails here
19905 no_tcl=true
bec39cab
AC
19906
19907# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e
JM
19908if test "${with_tclconfig+set}" = set; then
19909 withval="$with_tclconfig"
19910 with_tclconfig=${withval}
bec39cab
AC
19911fi;
19912 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19913echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19914 if test "${ac_cv_c_tclconfig+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 19916else
bec39cab 19917
3fc11d3e
JM
19918
19919 # First check to see if --with-tclconfig was specified.
19920 if test x"${with_tclconfig}" != x ; then
19921 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19922 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19923 else
bec39cab
AC
19924 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19925echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19926 { (exit 1); exit 1; }; }
3fc11d3e
JM
19927 fi
19928 fi
19929
19930 # then check for a private Tcl installation
19931 if test x"${ac_cv_c_tclconfig}" = x ; then
19932 for i in \
19933 ../tcl \
19934 `ls -dr ../tcl[7-9]* 2>/dev/null` \
19935 ../../tcl \
19936 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
19937 ../../../tcl \
19938 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
19939 if test -f "$i/${configdir}/tclConfig.sh" ; then
19940 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19941 break
19942 fi
19943 done
19944 fi
19945 # check in a few common install locations
19946 if test x"${ac_cv_c_tclconfig}" = x ; then
19947 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
19948 if test -f "$i/tclConfig.sh" ; then
19949 ac_cv_c_tclconfig=`(cd $i; pwd)`
19950 break
19951 fi
19952 done
19953 fi
19954 # check in a few other private locations
19955 if test x"${ac_cv_c_tclconfig}" = x ; then
19956 for i in \
19957 ${srcdir}/../tcl \
19958 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
19959 if test -f "$i/${configdir}/tclConfig.sh" ; then
19960 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19961 break
19962 fi
19963 done
19964 fi
bec39cab 19965
3fc11d3e
JM
19966fi
19967
19968 if test x"${ac_cv_c_tclconfig}" = x ; then
19969 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
19970 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19971echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
19972 else
19973 no_tcl=
19974 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
bec39cab
AC
19975 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
19976echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
19977 fi
19978fi
19979
19980 if test -z "${no_tcl}"; then
bec39cab 19981
3fc11d3e
JM
19982 . $TCLCONFIG
19983
3fc11d3e
JM
19984
19985
19986
19987
3fc11d3e
JM
19988
19989
19990
bec39cab
AC
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
3fc11d3e
JM
20010#
20011# Ok, lets find the tk configuration
bec39cab 20012# First, look for one uninstalled.
3fc11d3e
JM
20013# the alternative search directory is invoked by --with-tkconfig
20014#
20015
20016if test x"${no_tk}" = x ; then
20017 # we reset no_tk in case something fails here
20018 no_tk=true
bec39cab
AC
20019
20020# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e
JM
20021if test "${with_tkconfig+set}" = set; then
20022 withval="$with_tkconfig"
20023 with_tkconfig=${withval}
bec39cab
AC
20024fi;
20025 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20026echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20027 if test "${ac_cv_c_tkconfig+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20029else
bec39cab 20030
3fc11d3e
JM
20031
20032 # First check to see if --with-tkconfig was specified.
20033 if test x"${with_tkconfig}" != x ; then
20034 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20035 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20036 else
bec39cab
AC
20037 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20038echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20039 { (exit 1); exit 1; }; }
3fc11d3e
JM
20040 fi
20041 fi
20042
20043 # then check for a private Tk library
20044 if test x"${ac_cv_c_tkconfig}" = x ; then
20045 for i in \
20046 ../tk \
20047 `ls -dr ../tk[4-9]* 2>/dev/null` \
20048 ../../tk \
20049 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20050 ../../../tk \
20051 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20052 if test -f "$i/${configdir}/tkConfig.sh" ; then
20053 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20054 break
20055 fi
20056 done
20057 fi
20058 # check in a few common install locations
20059 if test x"${ac_cv_c_tkconfig}" = x ; then
20060 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20061 if test -f "$i/tkConfig.sh" ; then
20062 ac_cv_c_tkconfig=`(cd $i; pwd)`
20063 break
20064 fi
20065 done
20066 fi
20067 # check in a few other private locations
20068 if test x"${ac_cv_c_tkconfig}" = x ; then
20069 for i in \
20070 ${srcdir}/../tk \
20071 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20072 if test -f "$i/${configdir}/tkConfig.sh" ; then
20073 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20074 break
20075 fi
20076 done
20077 fi
bec39cab 20078
3fc11d3e
JM
20079fi
20080
20081 if test x"${ac_cv_c_tkconfig}" = x ; then
20082 TKCONFIG="# no Tk configs found"
bec39cab
AC
20083 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20084echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
20085 else
20086 no_tk=
20087 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
bec39cab
AC
20088 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20089echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
20090 fi
20091fi
20092
20093
20094
dd2504ab
JM
20095 # now look for Tcl library stuff
20096
d91670b9 20097 tcldir="../tcl/${configdir}/"
dd2504ab
JM
20098
20099 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20100
3fc11d3e
JM
20101 # If $no_tk is nonempty, then we can't do Tk, and there is no
20102 # point to doing Tcl.
20103 if test -z "${no_tk}"; then
bec39cab 20104
3fc11d3e
JM
20105 if test -f "$TKCONFIG" ; then
20106 . $TKCONFIG
20107 fi
20108
3fc11d3e 20109
3fc11d3e
JM
20110
20111
3fc11d3e 20112
bec39cab
AC
20113
20114
20115
20116
20117
20118
20119
20120
20121
3fc11d3e
JM
20122#
20123# Ok, lets find the tcl source trees so we can use the headers
20124# Warning: transition of version 9 to 10 will break this algorithm
20125# because 10 sorts before 9. We also look for just tcl. We have to
20126# be careful that we don't match stuff like tclX by accident.
20127# the alternative search directory is involked by --with-tclinclude
20128#
20129
20130no_tcl=true
bec39cab
AC
20131echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20132echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20133
3fc11d3e
JM
20134# Check whether --with-tclinclude or --without-tclinclude was given.
20135if test "${with_tclinclude+set}" = set; then
20136 withval="$with_tclinclude"
20137 with_tclinclude=${withval}
bec39cab
AC
20138fi;
20139if test "${ac_cv_c_tclh+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20141else
bec39cab 20142
3fc11d3e
JM
20143# first check to see if --with-tclinclude was specified
20144if test x"${with_tclinclude}" != x ; then
20145 if test -f ${with_tclinclude}/tclInt.h ; then
20146 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20147 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20148 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20149 else
bec39cab
AC
20150 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20151echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20152 { (exit 1); exit 1; }; }
3fc11d3e
JM
20153 fi
20154fi
20155
20156# next check if it came with Tcl configuration file
20157if test x"${ac_cv_c_tclconfig}" = x ; then
20158 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20159 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20160 fi
20161fi
20162
20163# next check in private source directory
20164#
20165# since ls returns lowest version numbers first, reverse its output
20166if test x"${ac_cv_c_tclh}" = x ; then
20167 for i in \
20168 ${srcdir}/../tcl \
20169 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20170 ${srcdir}/../../tcl \
20171 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20172 ${srcdir}/../../../tcl \
20173 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20174 if test -f $i/generic/tclInt.h ; then
20175 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20176 break
20177 fi
20178 done
20179fi
20180# finally check in a few common install locations
20181#
20182# since ls returns lowest version numbers first, reverse its output
20183if test x"${ac_cv_c_tclh}" = x ; then
20184 for i in \
20185 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20186 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20187 /usr/local/src/tcl \
20188 /usr/local/lib/tcl \
20189 ${prefix}/include ; do
20190 if test -f $i/generic/tclInt.h ; then
20191 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20192 break
20193 fi
20194 done
20195fi
20196# see if one is installed
20197if test x"${ac_cv_c_tclh}" = x ; then
bec39cab
AC
20198 if test "${ac_cv_header_tclInt_h+set}" = set; then
20199 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20200echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20201if test "${ac_cv_header_tclInt_h+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20203fi
20204echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20205echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20206else
20207 # Is the header compilable?
20208echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20209echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20210cat >conftest.$ac_ext <<_ACEOF
20211/* confdefs.h. */
20212_ACEOF
20213cat confdefs.h >>conftest.$ac_ext
20214cat >>conftest.$ac_ext <<_ACEOF
20215/* end confdefs.h. */
20216$ac_includes_default
20217#include <tclInt.h>
20218_ACEOF
20219rm -f conftest.$ac_objext
20220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20221 (eval $ac_compile) 2>conftest.er1
20222 ac_status=$?
20223 grep -v '^ *+' conftest.er1 >conftest.err
20224 rm -f conftest.er1
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } &&
20228 { ac_try='test -z "$ac_c_werror_flag"
20229 || test ! -s conftest.err'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; } &&
20235 { ac_try='test -s conftest.$ac_objext'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; }; then
20241 ac_header_compiler=yes
20242else
20243 echo "$as_me: failed program was:" >&5
20244sed 's/^/| /' conftest.$ac_ext >&5
20245
20246ac_header_compiler=no
20247fi
20248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20249echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20250echo "${ECHO_T}$ac_header_compiler" >&6
20251
20252# Is the header present?
20253echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20254echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20255cat >conftest.$ac_ext <<_ACEOF
20256/* confdefs.h. */
20257_ACEOF
20258cat confdefs.h >>conftest.$ac_ext
20259cat >>conftest.$ac_ext <<_ACEOF
20260/* end confdefs.h. */
3fc11d3e 20261#include <tclInt.h>
bec39cab
AC
20262_ACEOF
20263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20265 ac_status=$?
20266 grep -v '^ *+' conftest.er1 >conftest.err
20267 rm -f conftest.er1
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } >/dev/null; then
20271 if test -s conftest.err; then
20272 ac_cpp_err=$ac_c_preproc_warn_flag
20273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20274 else
20275 ac_cpp_err=
20276 fi
20277else
20278 ac_cpp_err=yes
3fc11d3e 20279fi
bec39cab
AC
20280if test -z "$ac_cpp_err"; then
20281 ac_header_preproc=yes
20282else
20283 echo "$as_me: failed program was:" >&5
20284sed 's/^/| /' conftest.$ac_ext >&5
20285
20286 ac_header_preproc=no
3fc11d3e 20287fi
bec39cab
AC
20288rm -f conftest.err conftest.$ac_ext
20289echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20290echo "${ECHO_T}$ac_header_preproc" >&6
20291
20292# So? What about this header?
20293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20294 yes:no: )
20295 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20296echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20297 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20298echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20299 ac_header_preproc=yes
20300 ;;
20301 no:yes:* )
20302 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20303echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20305echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20307echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20308 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20309echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20310 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20311echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20312 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20313echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20314 (
20315 cat <<\_ASBOX
20316## ------------------------------------------ ##
20317## Report this to the AC_PACKAGE_NAME lists. ##
20318## ------------------------------------------ ##
20319_ASBOX
20320 ) |
20321 sed "s/^/$as_me: WARNING: /" >&2
20322 ;;
20323esac
20324echo "$as_me:$LINENO: checking for tclInt.h" >&5
20325echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20326if test "${ac_cv_header_tclInt_h+set}" = set; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20328else
20329 ac_cv_header_tclInt_h=$ac_header_preproc
20330fi
20331echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20332echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20333
20334fi
20335if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
20336 ac_cv_c_tclh=installed
20337else
bec39cab 20338 ac_cv_c_tclh=""
3fc11d3e
JM
20339fi
20340
bec39cab 20341
3fc11d3e
JM
20342fi
20343
20344fi
20345
20346if test x"${ac_cv_c_tclh}" = x ; then
20347 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
20348 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20349echo "$as_me: error: Can't find Tcl private headers" >&2;}
20350 { (exit 1); exit 1; }; }
3fc11d3e
JM
20351fi
20352if test x"${ac_cv_c_tclh}" != x ; then
20353 no_tcl=""
20354 if test x"${ac_cv_c_tclh}" = x"installed" ; then
bec39cab
AC
20355 echo "$as_me:$LINENO: result: is installed" >&5
20356echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20357 TCLHDIR=""
20358 else
bec39cab
AC
20359 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20360echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
20361 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20362 TCLHDIR="-I${ac_cv_c_tclh}"
20363 fi
20364fi
20365
20366
20367
bec39cab 20368
3fc11d3e
JM
20369#
20370# Ok, lets find the tk source trees so we can use the headers
20371# If the directory (presumably symlink) named "tk" exists, use that one
20372# in preference to any others. Same logic is used when choosing library
20373# and again with Tcl. The search order is the best place to look first, then in
20374# decreasing significance. The loop breaks if the trigger file is found.
20375# Note the gross little conversion here of srcdir by cd'ing to the found
20376# directory. This converts the path from a relative to an absolute, so
20377# recursive cache variables for the path will work right. We check all
20378# the possible paths in one loop rather than many seperate loops to speed
20379# things up.
20380# the alternative search directory is involked by --with-tkinclude
20381#
20382no_tk=true
bec39cab
AC
20383echo "$as_me:$LINENO: checking for Tk private headers" >&5
20384echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20385
3fc11d3e
JM
20386# Check whether --with-tkinclude or --without-tkinclude was given.
20387if test "${with_tkinclude+set}" = set; then
20388 withval="$with_tkinclude"
20389 with_tkinclude=${withval}
bec39cab
AC
20390fi;
20391if test "${ac_cv_c_tkh+set}" = set; then
20392 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20393else
bec39cab 20394
3fc11d3e
JM
20395# first check to see if --with-tkinclude was specified
20396if test x"${with_tkinclude}" != x ; then
20397 if test -f ${with_tkinclude}/tk.h ; then
20398 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20399 elif test -f ${with_tkinclude}/generic/tk.h ; then
20400 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20401 else
bec39cab
AC
20402 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20403echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20404 { (exit 1); exit 1; }; }
3fc11d3e
JM
20405 fi
20406fi
20407
20408# next check if it came with Tk configuration file
20409if test x"${ac_cv_c_tkconfig}" = x ; then
20410 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20411 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20412 fi
20413fi
20414
20415# next check in private source directory
20416#
20417# since ls returns lowest version numbers first, reverse its output
20418if test x"${ac_cv_c_tkh}" = x ; then
20419 for i in \
20420 ${srcdir}/../tk \
20421 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20422 ${srcdir}/../../tk \
20423 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20424 ${srcdir}/../../../tk \
20425 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20426 if test -f $i/generic/tk.h ; then
20427 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20428 break
20429 fi
20430 done
20431fi
20432# finally check in a few common install locations
20433#
20434# since ls returns lowest version numbers first, reverse its output
20435if test x"${ac_cv_c_tkh}" = x ; then
20436 for i in \
20437 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20438 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20439 /usr/local/src/tk \
20440 /usr/local/lib/tk \
20441 ${prefix}/include ; do
20442 if test -f $i/generic/tk.h ; then
20443 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20444 break
20445 fi
20446 done
20447fi
20448# see if one is installed
20449if test x"${ac_cv_c_tkh}" = x ; then
bec39cab
AC
20450 if test "${ac_cv_header_tk_h+set}" = set; then
20451 echo "$as_me:$LINENO: checking for tk.h" >&5
20452echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20453if test "${ac_cv_header_tk_h+set}" = set; then
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20455fi
20456echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20457echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20458else
20459 # Is the header compilable?
20460echo "$as_me:$LINENO: checking tk.h usability" >&5
20461echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20462cat >conftest.$ac_ext <<_ACEOF
20463/* confdefs.h. */
20464_ACEOF
20465cat confdefs.h >>conftest.$ac_ext
20466cat >>conftest.$ac_ext <<_ACEOF
20467/* end confdefs.h. */
20468$ac_includes_default
3fc11d3e 20469#include <tk.h>
bec39cab
AC
20470_ACEOF
20471rm -f conftest.$ac_objext
20472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20473 (eval $ac_compile) 2>conftest.er1
20474 ac_status=$?
20475 grep -v '^ *+' conftest.er1 >conftest.err
20476 rm -f conftest.er1
20477 cat conftest.err >&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } &&
20480 { ac_try='test -z "$ac_c_werror_flag"
20481 || test ! -s conftest.err'
20482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20483 (eval $ac_try) 2>&5
20484 ac_status=$?
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; } &&
20487 { ac_try='test -s conftest.$ac_objext'
20488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489 (eval $ac_try) 2>&5
20490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; }; then
20493 ac_header_compiler=yes
20494else
20495 echo "$as_me: failed program was:" >&5
20496sed 's/^/| /' conftest.$ac_ext >&5
20497
20498ac_header_compiler=no
20499fi
20500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20501echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20502echo "${ECHO_T}$ac_header_compiler" >&6
20503
20504# Is the header present?
20505echo "$as_me:$LINENO: checking tk.h presence" >&5
20506echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20507cat >conftest.$ac_ext <<_ACEOF
20508/* confdefs.h. */
20509_ACEOF
20510cat confdefs.h >>conftest.$ac_ext
20511cat >>conftest.$ac_ext <<_ACEOF
20512/* end confdefs.h. */
20513#include <tk.h>
20514_ACEOF
20515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20517 ac_status=$?
20518 grep -v '^ *+' conftest.er1 >conftest.err
20519 rm -f conftest.er1
20520 cat conftest.err >&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } >/dev/null; then
20523 if test -s conftest.err; then
20524 ac_cpp_err=$ac_c_preproc_warn_flag
20525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20526 else
20527 ac_cpp_err=
20528 fi
20529else
20530 ac_cpp_err=yes
3fc11d3e 20531fi
bec39cab
AC
20532if test -z "$ac_cpp_err"; then
20533 ac_header_preproc=yes
20534else
20535 echo "$as_me: failed program was:" >&5
20536sed 's/^/| /' conftest.$ac_ext >&5
20537
20538 ac_header_preproc=no
20539fi
20540rm -f conftest.err conftest.$ac_ext
20541echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20542echo "${ECHO_T}$ac_header_preproc" >&6
20543
20544# So? What about this header?
20545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20546 yes:no: )
20547 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20548echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20549 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20550echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20551 ac_header_preproc=yes
20552 ;;
20553 no:yes:* )
20554 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20555echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20556 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20557echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20558 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20559echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20560 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20561echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20562 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20563echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20564 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20565echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20566 (
20567 cat <<\_ASBOX
20568## ------------------------------------------ ##
20569## Report this to the AC_PACKAGE_NAME lists. ##
20570## ------------------------------------------ ##
20571_ASBOX
20572 ) |
20573 sed "s/^/$as_me: WARNING: /" >&2
20574 ;;
20575esac
20576echo "$as_me:$LINENO: checking for tk.h" >&5
20577echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20578if test "${ac_cv_header_tk_h+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20580else
20581 ac_cv_header_tk_h=$ac_header_preproc
20582fi
20583echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20584echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20585
3fc11d3e 20586fi
bec39cab 20587if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
20588 ac_cv_c_tkh=installed
20589else
bec39cab 20590 ac_cv_c_tkh=""
3fc11d3e
JM
20591fi
20592
bec39cab 20593
3fc11d3e
JM
20594fi
20595
20596fi
20597
20598if test x"${ac_cv_c_tkh}" != x ; then
20599 no_tk=""
20600 if test x"${ac_cv_c_tkh}" = x"installed" ; then
bec39cab
AC
20601 echo "$as_me:$LINENO: result: is installed" >&5
20602echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20603 TKHDIR=""
20604 else
bec39cab
AC
20605 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20606echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
20607 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20608 TKHDIR="-I${ac_cv_c_tkh}"
20609 fi
20610else
20611 TKHDIR="# no Tk directory found"
bec39cab
AC
20612 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20613echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
20614 no_tk=true
20615fi
20616
20617
20618
bec39cab
AC
20619
20620echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20621echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
20622if test x"${ac_cv_c_itclh}" = x ; then
20623 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20624 if test -f $i/generic/itcl.h ; then
20625 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20626 break
20627 fi
20628 done
20629fi
20630if test x"${ac_cv_c_itclh}" = x ; then
20631 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
20632 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20633echo "$as_me: error: Can't find Itcl private headers" >&2;}
20634 { (exit 1); exit 1; }; }
3fc11d3e
JM
20635fi
20636if test x"${ac_cv_c_itclh}" != x ; then
20637 ITCLHDIR="-I${ac_cv_c_itclh}"
20638fi
20639# should always be here
20640# ITCLLIB="../itcl/itcl/unix/libitcl.a"
20641
20642#AC_SUBST(ITCLLIB)
20643
bec39cab
AC
20644
20645echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20646echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
20647if test x"${ac_cv_c_itkh}" = x ; then
20648 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20649 if test -f $i/generic/itk.h ; then
20650 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20651 break
20652 fi
20653 done
20654fi
20655if test x"${ac_cv_c_itkh}" = x ; then
20656 ITKHDIR="# no Itk private headers found"
bec39cab
AC
20657 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20658echo "$as_me: error: Can't find Itk private headers" >&2;}
20659 { (exit 1); exit 1; }; }
3fc11d3e
JM
20660fi
20661if test x"${ac_cv_c_itkh}" != x ; then
20662 ITKHDIR="-I${ac_cv_c_itkh}"
20663fi
20664# should always be here
20665# ITKLIB="../itcl/itk/unix/libitk.a"
20666
20667#AC_SUBST(ITKLIB)
20668
3fc11d3e 20669
dd2504ab
JM
20670
20671 # now look for Tk library stuff
20672
d91670b9 20673 tkdir="../tk/${configdir}/"
dd2504ab
JM
20674
20675 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20676
3fc11d3e
JM
20677 # now look for Itcl library stuff
20678
bec39cab 20679
3fc11d3e
JM
20680#
20681# Ok, lets find the itcl configuration
bec39cab 20682# First, look for one uninstalled.
3fc11d3e
JM
20683# the alternative search directory is invoked by --with-itclconfig
20684#
20685
20686if test x"${no_itcl}" = x ; then
20687 # we reset no_itcl in case something fails here
20688 no_itcl=true
bec39cab
AC
20689
20690# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e
JM
20691if test "${with_itclconfig+set}" = set; then
20692 withval="$with_itclconfig"
20693 with_itclconfig=${withval}
bec39cab
AC
20694fi;
20695 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20696echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20697 if test "${ac_cv_c_itclconfig+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20699else
bec39cab 20700
3fc11d3e
JM
20701
20702 # First check to see if --with-itclconfig was specified.
20703 if test x"${with_itclconfig}" != x ; then
20704 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20705 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20706 else
bec39cab
AC
20707 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20708echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20709 { (exit 1); exit 1; }; }
3fc11d3e
JM
20710 fi
20711 fi
20712
20713 # then check for a private Itcl library
20714 if test x"${ac_cv_c_itclconfig}" = x ; then
20715 for i in \
20716 ../itcl/itcl \
20717 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20718 ../../itcl \
20719 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20720 ../../../itcl \
20721 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20722 if test -f "$i/itclConfig.sh" ; then
20723 ac_cv_c_itclconfig=`(cd $i; pwd)`
20724 break
20725 fi
20726 done
20727 fi
20728 # check in a few common install locations
20729 if test x"${ac_cv_c_itclconfig}" = x ; then
20730 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20731 if test -f "$i/itclConfig.sh" ; then
20732 ac_cv_c_itclconfig=`(cd $i; pwd)`
20733 break
20734 fi
20735 done
20736 fi
20737 # check in a few other private locations
20738 if test x"${ac_cv_c_itclconfig}" = x ; then
20739 for i in \
20740 ${srcdir}/../itcl/itcl \
20741 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
20742 if test -f "$i/itclConfig.sh" ; then
20743 ac_cv_c_itclconfig=`(cd $i; pwd)`
20744 break
20745 fi
20746 done
20747 fi
bec39cab 20748
3fc11d3e
JM
20749fi
20750
20751 if test x"${ac_cv_c_itclconfig}" = x ; then
20752 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
20753 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
20754echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
20755 else
20756 no_itcl=
20757 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
bec39cab
AC
20758 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
20759echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
20760 fi
20761fi
20762
20763 if test -z "${no_itcl}"; then
bec39cab 20764
3fc11d3e
JM
20765 if test -f "$ITCLCONFIG" ; then
20766 . $ITCLCONFIG
20767 fi
20768
3fc11d3e 20769
3fc11d3e
JM
20770
20771
bec39cab
AC
20772
20773
20774
20775
20776
20777
20778
3fc11d3e
JM
20779
20780 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 20781 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
20782 fi
20783
bec39cab 20784
3fc11d3e 20785 # now look for Itk library stuff
bec39cab 20786
3fc11d3e
JM
20787#
20788# Ok, lets find the itk configuration
bec39cab 20789# First, look for one uninstalled.
3fc11d3e
JM
20790# the alternative search directory is invoked by --with-itkconfig
20791#
20792
20793if test x"${no_itk}" = x ; then
20794 # we reset no_itk in case something fails here
20795 no_itk=true
bec39cab
AC
20796
20797# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e
JM
20798if test "${with_itkconfig+set}" = set; then
20799 withval="$with_itkconfig"
20800 with_itkconfig=${withval}
bec39cab
AC
20801fi;
20802 echo "$as_me:$LINENO: checking for Itk configuration" >&5
20803echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
20804 if test "${ac_cv_c_itkconfig+set}" = set; then
20805 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20806else
bec39cab 20807
3fc11d3e
JM
20808
20809 # First check to see if --with-itkconfig was specified.
20810 if test x"${with_itkconfig}" != x ; then
20811 if test -f "${with_itkconfig}/itkConfig.sh" ; then
20812 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
20813 else
bec39cab
AC
20814 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
20815echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
20816 { (exit 1); exit 1; }; }
3fc11d3e
JM
20817 fi
20818 fi
20819
20820 # then check for a private Itk library
20821 if test x"${ac_cv_c_itkconfig}" = x ; then
20822 for i in \
20823 ../itcl/itk \
20824 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
20825 ../../itk \
20826 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
20827 ../../../itk \
20828 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
20829 if test -f "$i/itkConfig.sh" ; then
20830 ac_cv_c_itkconfig=`(cd $i; pwd)`
20831 break
20832 fi
20833 done
20834 fi
20835 # check in a few common install locations
20836 if test x"${ac_cv_c_itkconfig}" = x ; then
20837 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20838 if test -f "$i/itkConfig.sh" ; then
20839 ac_cv_c_itkconfig=`(cd $i; pwd)`
20840 break
20841 fi
20842 done
20843 fi
20844 # check in a few other private locations
20845 if test x"${ac_cv_c_itkconfig}" = x ; then
20846 for i in \
20847 ${srcdir}/../itcl/itk \
20848 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
20849 if test -f "$i/itkConfig.sh" ; then
20850 ac_cv_c_itkconfig=`(cd $i; pwd)`
20851 break
20852 fi
20853 done
20854 fi
bec39cab 20855
3fc11d3e
JM
20856fi
20857
20858 if test x"${ac_cv_c_itkconfig}" = x ; then
20859 ITKCONFIG="# no Itk configs found"
bec39cab
AC
20860 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
20861echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
20862 else
20863 no_itk=
20864 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
bec39cab
AC
20865 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
20866echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
20867 fi
20868fi
20869
20870
bec39cab
AC
20871 if test -z "${no_itcl}"; then
20872
20873 if test -f "$ITKCONFIG" ; then
20874 . $ITKCONFIG
20875 fi
20876
20877
20878
20879
20880
20881
3fc11d3e 20882
3fc11d3e 20883
3fc11d3e
JM
20884
20885
3fc11d3e
JM
20886
20887
3fc11d3e 20888 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 20889 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
20890 fi
20891
4226a5a5 20892 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
20893 # Tcl/Tk 8.1 require -fwritable strings. I don't
20894 # know whether 8.2 will or not, but I bet it will.
20895 # I don't have to worry about 7.x since we don't support it.
20896 GDBTK_CFLAGS=""
20897 if test "$GCC" = "yes"; then
20898 if test "$TCL_VERSION" != "8.0" ; then
20899 GDBTK_CFLAGS="-fwritable-strings"
20900 fi
20901 fi
20902
20903 # Include some libraries that Tcl and Tk want.
b2a1bd4f 20904 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
20905 # Yes, the ordering seems wrong here. But it isn't.
20906 # TK_LIBS is the list of libraries that need to be linked
20907 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20908 # were in LIBS then any link tests after this point would
20909 # try to include things like `$(LIBGUI)', which wouldn't work.
20910 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
20911
20912 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20913 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20914 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
20915 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20916 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20917 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20918 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
20919
20920 if test x$gdb_cv_os_cygwin = xyes; then
20921 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20922 WIN32LDAPP="-Wl,--subsystem,console"
20923 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20924 fi
20925 fi
20926 fi
ffc6a242 20927
bec39cab
AC
20928
20929
20930subdirs="$subdirs gdbtk"
3ace7edb 20931
3fc11d3e
JM
20932fi
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
dd2504ab 20946
bec39cab
AC
20947echo "$as_me:$LINENO: checking for X" >&5
20948echo $ECHO_N "checking for X... $ECHO_C" >&6
20949
c906108c
SS
20950
20951# Check whether --with-x or --without-x was given.
20952if test "${with_x+set}" = set; then
20953 withval="$with_x"
c906108c 20954
bec39cab 20955fi;
c906108c
SS
20956# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20957if test "x$with_x" = xno; then
20958 # The user explicitly disabled X.
20959 have_x=disabled
20960else
20961 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20962 # Both variables are already set.
20963 have_x=yes
20964 else
bec39cab
AC
20965 if test "${ac_cv_have_x+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
20967else
20968 # One or both of the vars are not set, and there is no cached value.
bec39cab
AC
20969ac_x_includes=no ac_x_libraries=no
20970rm -fr conftest.dir
20971if mkdir conftest.dir; then
20972 cd conftest.dir
c906108c 20973 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 20974 cat >Imakefile <<'_ACEOF'
c906108c
SS
20975acfindx:
20976 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 20977_ACEOF
c906108c
SS
20978 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20979 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20980 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20981 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20982 for ac_extension in a so sl; do
20983 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
20984 test -f $ac_im_libdir/libX11.$ac_extension; then
20985 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
20986 fi
20987 done
20988 # Screen out bogus values from the imake configuration. They are
20989 # bogus both because they are the default anyway, and because
20990 # using them would break gcc on systems where it needs fixed includes.
bec39cab 20991 case $ac_im_incroot in
c906108c 20992 /usr/include) ;;
bec39cab 20993 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 20994 esac
bec39cab 20995 case $ac_im_usrlibdir in
c906108c 20996 /usr/lib | /lib) ;;
bec39cab 20997 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
20998 esac
20999 fi
21000 cd ..
bec39cab 21001 rm -fr conftest.dir
c906108c
SS
21002fi
21003
bec39cab
AC
21004# Standard set of common directories for X headers.
21005# Check X11 before X11Rn because it is often a symlink to the current release.
21006ac_x_header_dirs='
21007/usr/X11/include
21008/usr/X11R6/include
21009/usr/X11R5/include
21010/usr/X11R4/include
21011
21012/usr/include/X11
21013/usr/include/X11R6
21014/usr/include/X11R5
21015/usr/include/X11R4
21016
21017/usr/local/X11/include
21018/usr/local/X11R6/include
21019/usr/local/X11R5/include
21020/usr/local/X11R4/include
21021
21022/usr/local/include/X11
21023/usr/local/include/X11R6
21024/usr/local/include/X11R5
21025/usr/local/include/X11R4
21026
21027/usr/X386/include
21028/usr/x386/include
21029/usr/XFree86/include/X11
21030
21031/usr/include
21032/usr/local/include
21033/usr/unsupported/include
21034/usr/athena/include
21035/usr/local/x11r5/include
21036/usr/lpp/Xamples/include
21037
21038/usr/openwin/include
21039/usr/openwin/share/include'
21040
21041if test "$ac_x_includes" = no; then
21042 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 21043 # First, try using that file with no special directory specified.
bec39cab
AC
21044 cat >conftest.$ac_ext <<_ACEOF
21045/* confdefs.h. */
21046_ACEOF
21047cat confdefs.h >>conftest.$ac_ext
21048cat >>conftest.$ac_ext <<_ACEOF
21049/* end confdefs.h. */
21050#include <X11/Intrinsic.h>
21051_ACEOF
21052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21054 ac_status=$?
21055 grep -v '^ *+' conftest.er1 >conftest.err
21056 rm -f conftest.er1
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } >/dev/null; then
21060 if test -s conftest.err; then
21061 ac_cpp_err=$ac_c_preproc_warn_flag
21062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21063 else
21064 ac_cpp_err=
21065 fi
21066else
21067 ac_cpp_err=yes
21068fi
21069if test -z "$ac_cpp_err"; then
c906108c
SS
21070 # We can compile using X headers with no special include directory.
21071ac_x_includes=
21072else
bec39cab
AC
21073 echo "$as_me: failed program was:" >&5
21074sed 's/^/| /' conftest.$ac_ext >&5
21075
21076 for ac_dir in $ac_x_header_dirs; do
21077 if test -r "$ac_dir/X11/Intrinsic.h"; then
21078 ac_x_includes=$ac_dir
21079 break
21080 fi
21081done
c906108c 21082fi
bec39cab
AC
21083rm -f conftest.err conftest.$ac_ext
21084fi # $ac_x_includes = no
c906108c 21085
bec39cab 21086if test "$ac_x_libraries" = no; then
c906108c 21087 # Check for the libraries.
c906108c
SS
21088 # See if we find them without any special options.
21089 # Don't add to $LIBS permanently.
bec39cab
AC
21090 ac_save_LIBS=$LIBS
21091 LIBS="-lXt $LIBS"
21092 cat >conftest.$ac_ext <<_ACEOF
21093/* confdefs.h. */
21094_ACEOF
21095cat confdefs.h >>conftest.$ac_ext
21096cat >>conftest.$ac_ext <<_ACEOF
21097/* end confdefs.h. */
21098#include <X11/Intrinsic.h>
21099int
21100main ()
21101{
21102XtMalloc (0)
21103 ;
21104 return 0;
21105}
21106_ACEOF
21107rm -f conftest.$ac_objext conftest$ac_exeext
21108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21109 (eval $ac_link) 2>conftest.er1
21110 ac_status=$?
21111 grep -v '^ *+' conftest.er1 >conftest.err
21112 rm -f conftest.er1
21113 cat conftest.err >&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } &&
21116 { ac_try='test -z "$ac_c_werror_flag"
21117 || test ! -s conftest.err'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; } &&
21123 { ac_try='test -s conftest$ac_exeext'
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; }; then
21129 LIBS=$ac_save_LIBS
c906108c
SS
21130# We can link X programs with no special library path.
21131ac_x_libraries=
21132else
bec39cab
AC
21133 echo "$as_me: failed program was:" >&5
21134sed 's/^/| /' conftest.$ac_ext >&5
21135
21136LIBS=$ac_save_LIBS
21137for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 21138do
bec39cab 21139 # Don't even attempt the hair of trying to link an X program!
c906108c 21140 for ac_extension in a so sl; do
bec39cab 21141 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
21142 ac_x_libraries=$ac_dir
21143 break 2
21144 fi
21145 done
21146done
21147fi
bec39cab
AC
21148rm -f conftest.err conftest.$ac_objext \
21149 conftest$ac_exeext conftest.$ac_ext
21150fi # $ac_x_libraries = no
c906108c 21151
bec39cab 21152if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
21153 # Didn't find X anywhere. Cache the known absence of X.
21154 ac_cv_have_x="have_x=no"
21155else
21156 # Record where we found X for the cache.
21157 ac_cv_have_x="have_x=yes \
bec39cab 21158 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
21159fi
21160fi
bec39cab 21161
c906108c
SS
21162 fi
21163 eval "$ac_cv_have_x"
21164fi # $with_x != no
21165
21166if test "$have_x" != yes; then
bec39cab
AC
21167 echo "$as_me:$LINENO: result: $have_x" >&5
21168echo "${ECHO_T}$have_x" >&6
c906108c
SS
21169 no_x=yes
21170else
21171 # If each of the values was on the command line, it overrides each guess.
21172 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21173 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21174 # Update the cache value to reflect the command line values.
21175 ac_cv_have_x="have_x=yes \
21176 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
bec39cab
AC
21177 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21178echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
21179fi
21180
21181
9cc52bde
MK
21182# Check whether we should enable the TUI, but only do so if we really
21183# can.
21184if test x"$enable_tui" = xyes; then
21185 if test -d $srcdir/tui; then
21186 if test "$ac_cv_search_waddstr" != no; then
21187 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21188 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21189 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21190 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21191 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21192 CONFIG_ALL="${CONFIG_ALL} all-tui"
21193 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21194 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21195 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21196 else
bec39cab
AC
21197 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21198echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
21199 fi
21200 fi
21201fi
21202
bec39cab
AC
21203# Unlike the sim directory, whether a simulator is linked is controlled by
21204# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
21205# This code just checks for a few cases where we'd like to ignore those
21206# definitions, even when they're present in the '.mt' file. These cases
21207# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 21208# not part of the source tree.
7a292a7a
SS
21209#
21210# Check whether --enable-sim or --disable-sim was given.
21211if test "${enable_sim+set}" = set; then
21212 enableval="$enable_sim"
21213 echo "enable_sim = $enable_sim";
21214 echo "enableval = ${enableval}";
21215 case "${enableval}" in
21216 yes) ignore_sim=false ;;
21217 no) ignore_sim=true ;;
21218 *) ignore_sim=false ;;
21219 esac
21220else
21221 ignore_sim=false
bec39cab 21222fi;
7a292a7a
SS
21223
21224if test ! -d "${srcdir}/../sim"; then
21225 ignore_sim=true
21226fi
21227
21228if test "${ignore_sim}" = "true"; then
21229 IGNORE_SIM="SIM="
21230 IGNORE_SIM_OBS="SIM_OBS="
21231else
21232 IGNORE_SIM=""
21233 IGNORE_SIM_OBS=""
bec39cab 21234 cat >>confdefs.h <<\_ACEOF
7a292a7a 21235#define WITH_SIM 1
bec39cab 21236_ACEOF
7a292a7a
SS
21237
21238fi
21239
21240
21241
c906108c
SS
21242
21243
21244
21245
21246
21247
dfcd3bfb 21248
e56ac5c3
AC
21249
21250
b3a90332
AC
21251
21252
c35f4ffc 21253# List of host floatformats.
bec39cab
AC
21254
21255cat >>confdefs.h <<_ACEOF
c35f4ffc 21256#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 21257_ACEOF
c35f4ffc 21258
bec39cab
AC
21259
21260cat >>confdefs.h <<_ACEOF
c35f4ffc 21261#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
21262_ACEOF
21263
c35f4ffc 21264
bec39cab 21265cat >>confdefs.h <<_ACEOF
c35f4ffc 21266#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 21267_ACEOF
c35f4ffc
AC
21268
21269
c906108c
SS
21270# target_subdir is used by the testsuite to find the target libraries.
21271target_subdir=
21272if test "${host}" != "${target}"; then
21273 target_subdir="${target_alias}/"
21274fi
21275
21276
21277frags=
0dad8a66
MK
21278if test "${target}" = "${host}"; then
21279 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21280 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
21281 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21282echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21283 { (exit 1); exit 1; }; }
0dad8a66
MK
21284 fi
21285 frags="$frags $host_makefile_frag"
21286else
21287 host_makefile_frag=/dev/null
c906108c 21288fi
c906108c
SS
21289
21290target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21291if test ! -f ${target_makefile_frag}; then
bec39cab
AC
21292 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21293echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21294 { (exit 1); exit 1; }; }
c906108c
SS
21295fi
21296frags="$frags $target_makefile_frag"
21297
21298
21299
21300
21301
21302hostfile=`sed -n '
21303s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21304' ${host_makefile_frag}`
21305
21306targetfile=`sed -n '
2c0fc042 21307s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
21308' ${target_makefile_frag}`
21309
c906108c 21310if test "${target}" = "${host}"; then
a85f51e7
DJ
21311# We pick this up from the host configuration file (.mh) because we
21312# do not have a native configuration Makefile fragment.
c906108c
SS
21313nativefile=`sed -n '
21314s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21315' ${host_makefile_frag}`
c906108c
SS
21316fi
21317
21318
b00a8037 21319if test x"${gdb_osabi}" != x ; then
bec39cab
AC
21320
21321cat >>confdefs.h <<_ACEOF
b00a8037 21322#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 21323_ACEOF
b00a8037
DJ
21324
21325fi
21326
8dcde887
MK
21327# Enable multi-ice-gdb-server.
21328# Check whether --enable-multi-ice or --disable-multi-ice was given.
21329if test "${enable_multi_ice+set}" = set; then
21330 enableval="$enable_multi_ice"
21331 case $enableval in
21332 yes | no)
21333 ;;
bec39cab
AC
21334 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21335echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21336 { (exit 1); exit 1; }; } ;;
8dcde887 21337 esac
bec39cab 21338fi;
8dcde887 21339if test "x$enable_multi_ice" = xyes; then
bec39cab
AC
21340
21341
21342subdirs="$subdirs multi-ice"
3ace7edb 21343
a85f51e7
DJ
21344fi
21345
8dcde887
MK
21346# We only build gdbserver automatically if host and target are the same.
21347if test "x$target" = "x$host"; then
bec39cab
AC
21348 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21349echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 21350 if test "x$build_gdbserver" = xyes; then
bec39cab
AC
21351 echo "$as_me:$LINENO: result: yes" >&5
21352echo "${ECHO_T}yes" >&6
21353
21354
21355subdirs="$subdirs gdbserver"
3ace7edb 21356
8dcde887 21357 else
bec39cab
AC
21358 echo "$as_me:$LINENO: result: no" >&5
21359echo "${ECHO_T}no" >&6
8dcde887
MK
21360 fi
21361fi
21362
2c0fc042
AC
21363# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21364# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21365# to an empty version.
c906108c
SS
21366
21367files=
21368links=
5a2402b8 21369
c906108c 21370rm -f xm.h
5a2402b8 21371xm_h=""
c906108c 21372if test "${hostfile}" != ""; then
5a2402b8 21373 xm_h=xm.h
0f475e27
AC
21374 case "${hostfile}" in
21375 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21376 * ) GDB_XM_FILE="${hostfile}"
21377 esac
5a2402b8
AC
21378 files="${files} ${GDB_XM_FILE}"
21379 links="${links} xm.h"
bec39cab 21380 cat >>confdefs.h <<_ACEOF
b78960be 21381#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 21382_ACEOF
5a2402b8 21383
c906108c 21384fi
5a2402b8
AC
21385
21386
c906108c 21387rm -f tm.h
5a2402b8 21388tm_h=""
c906108c 21389if test "${targetfile}" != ""; then
5a2402b8 21390 tm_h=tm.h
0f475e27 21391 case "${targetfile}" in
b8c4aece 21392 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
21393 * ) GDB_TM_FILE="${targetfile}"
21394 esac
5a2402b8
AC
21395 files="${files} ${GDB_TM_FILE}"
21396 links="${links} tm.h"
bec39cab 21397 cat >>confdefs.h <<_ACEOF
b78960be 21398#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 21399_ACEOF
5a2402b8 21400
c906108c 21401fi
5a2402b8
AC
21402
21403
c906108c 21404rm -f nm.h
5a2402b8 21405nm_h=""
c906108c 21406if test "${nativefile}" != ""; then
5a2402b8 21407 nm_h=nm.h
0f475e27
AC
21408 case "${nativefile}" in
21409 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21410 * ) GDB_NM_FILE="${nativefile}"
21411 esac
5a2402b8
AC
21412 files="${files} ${GDB_NM_FILE}"
21413 links="${links} nm.h"
bec39cab 21414 cat >>confdefs.h <<_ACEOF
b78960be 21415#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 21416_ACEOF
5a2402b8 21417
c906108c 21418fi
5a2402b8
AC
21419
21420
bec39cab
AC
21421ac_sources="$files"
21422ac_dests="$links"
21423while test -n "$ac_sources"; do
21424 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21425 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21426 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21427done
21428 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
21429
21430
c906108c
SS
21431
21432
c906108c 21433
c906108c 21434
bec39cab
AC
21435cat >>confdefs.h <<\_ACEOF
21436#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21437_ACEOF
c906108c 21438
234b45d4 21439
234b45d4
KB
21440
21441
21442
bec39cab 21443# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4
KB
21444if test "${with_libiconv_prefix+set}" = set; then
21445 withval="$with_libiconv_prefix"
bec39cab 21446
234b45d4
KB
21447 for dir in `echo "$withval" | tr : ' '`; do
21448 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21449 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21450 done
234b45d4 21451
bec39cab 21452fi;
234b45d4 21453
bec39cab
AC
21454 echo "$as_me:$LINENO: checking for iconv" >&5
21455echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21456if test "${am_cv_func_iconv+set}" = set; then
21457 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 21458else
bec39cab 21459
234b45d4
KB
21460 am_cv_func_iconv="no, consider installing GNU libiconv"
21461 am_cv_lib_iconv=no
bec39cab
AC
21462 cat >conftest.$ac_ext <<_ACEOF
21463/* confdefs.h. */
21464_ACEOF
21465cat confdefs.h >>conftest.$ac_ext
21466cat >>conftest.$ac_ext <<_ACEOF
21467/* end confdefs.h. */
234b45d4
KB
21468#include <stdlib.h>
21469#include <iconv.h>
bec39cab
AC
21470int
21471main ()
21472{
234b45d4
KB
21473iconv_t cd = iconv_open("","");
21474 iconv(cd,NULL,NULL,NULL,NULL);
21475 iconv_close(cd);
bec39cab
AC
21476 ;
21477 return 0;
21478}
21479_ACEOF
21480rm -f conftest.$ac_objext conftest$ac_exeext
21481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21482 (eval $ac_link) 2>conftest.er1
21483 ac_status=$?
21484 grep -v '^ *+' conftest.er1 >conftest.err
21485 rm -f conftest.er1
21486 cat conftest.err >&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } &&
21489 { ac_try='test -z "$ac_c_werror_flag"
21490 || test ! -s conftest.err'
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; } &&
21496 { ac_try='test -s conftest$ac_exeext'
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21499 ac_status=$?
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
234b45d4
KB
21502 am_cv_func_iconv=yes
21503else
bec39cab
AC
21504 echo "$as_me: failed program was:" >&5
21505sed 's/^/| /' conftest.$ac_ext >&5
21506
234b45d4 21507fi
bec39cab
AC
21508rm -f conftest.err conftest.$ac_objext \
21509 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21510 if test "$am_cv_func_iconv" != yes; then
21511 am_save_LIBS="$LIBS"
21512 LIBS="$LIBS -liconv"
bec39cab
AC
21513 cat >conftest.$ac_ext <<_ACEOF
21514/* confdefs.h. */
21515_ACEOF
21516cat confdefs.h >>conftest.$ac_ext
21517cat >>conftest.$ac_ext <<_ACEOF
21518/* end confdefs.h. */
234b45d4
KB
21519#include <stdlib.h>
21520#include <iconv.h>
bec39cab
AC
21521int
21522main ()
21523{
234b45d4
KB
21524iconv_t cd = iconv_open("","");
21525 iconv(cd,NULL,NULL,NULL,NULL);
21526 iconv_close(cd);
bec39cab
AC
21527 ;
21528 return 0;
21529}
21530_ACEOF
21531rm -f conftest.$ac_objext conftest$ac_exeext
21532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21533 (eval $ac_link) 2>conftest.er1
21534 ac_status=$?
21535 grep -v '^ *+' conftest.er1 >conftest.err
21536 rm -f conftest.er1
21537 cat conftest.err >&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } &&
21540 { ac_try='test -z "$ac_c_werror_flag"
21541 || test ! -s conftest.err'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21544 ac_status=$?
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; } &&
21547 { ac_try='test -s conftest$ac_exeext'
21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549 (eval $ac_try) 2>&5
21550 ac_status=$?
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; }; then
234b45d4
KB
21553 am_cv_lib_iconv=yes
21554 am_cv_func_iconv=yes
21555else
bec39cab
AC
21556 echo "$as_me: failed program was:" >&5
21557sed 's/^/| /' conftest.$ac_ext >&5
21558
234b45d4 21559fi
bec39cab
AC
21560rm -f conftest.err conftest.$ac_objext \
21561 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21562 LIBS="$am_save_LIBS"
21563 fi
bec39cab
AC
21564
21565fi
21566echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21567echo "${ECHO_T}$am_cv_func_iconv" >&6
21568 if test "$am_cv_func_iconv" = yes; then
21569
21570cat >>confdefs.h <<\_ACEOF
21571#define HAVE_ICONV 1
21572_ACEOF
21573
21574 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21575echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21576 if test "${am_cv_proto_iconv+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21578else
21579
21580 cat >conftest.$ac_ext <<_ACEOF
21581/* confdefs.h. */
21582_ACEOF
21583cat confdefs.h >>conftest.$ac_ext
21584cat >>conftest.$ac_ext <<_ACEOF
21585/* end confdefs.h. */
21586
21587#include <stdlib.h>
21588#include <iconv.h>
21589extern
21590#ifdef __cplusplus
21591"C"
21592#endif
21593#if defined(__STDC__) || defined(__cplusplus)
21594size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21595#else
21596size_t iconv();
21597#endif
21598
21599int
21600main ()
21601{
21602
21603 ;
21604 return 0;
21605}
21606_ACEOF
21607rm -f conftest.$ac_objext
21608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609 (eval $ac_compile) 2>conftest.er1
21610 ac_status=$?
21611 grep -v '^ *+' conftest.er1 >conftest.err
21612 rm -f conftest.er1
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
21616 { ac_try='test -z "$ac_c_werror_flag"
21617 || test ! -s conftest.err'
21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21620 ac_status=$?
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; } &&
21623 { ac_try='test -s conftest.$ac_objext'
21624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625 (eval $ac_try) 2>&5
21626 ac_status=$?
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); }; }; then
21629 am_cv_proto_iconv_arg1=""
21630else
21631 echo "$as_me: failed program was:" >&5
21632sed 's/^/| /' conftest.$ac_ext >&5
21633
21634am_cv_proto_iconv_arg1="const"
21635fi
21636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21637 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);"
21638fi
21639
21640 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21641 echo "$as_me:$LINENO: result: ${ac_t:-
21642 }$am_cv_proto_iconv" >&5
21643echo "${ECHO_T}${ac_t:-
21644 }$am_cv_proto_iconv" >&6
21645
21646cat >>confdefs.h <<_ACEOF
21647#define ICONV_CONST $am_cv_proto_iconv_arg1
21648_ACEOF
21649
21650 fi
21651 LIBICONV=
21652 if test "$am_cv_lib_iconv" = yes; then
21653 LIBICONV="-liconv"
21654 fi
21655
21656
21657
21658 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21659 ac_config_commands="$ac_config_commands default"
21660cat >confcache <<\_ACEOF
21661# This file is a shell script that caches the results of configure
21662# tests run on this system so they can be shared between configure
21663# scripts and configure runs, see configure's option --config-cache.
21664# It is not useful on other systems. If it contains results you don't
21665# want to keep, you may remove or edit it.
21666#
21667# config.status only pays attention to the cache file if you give it
21668# the --recheck option to rerun configure.
21669#
21670# `ac_cv_env_foo' variables (set or unset) will be overridden when
21671# loading this file, other *unset* `ac_cv_foo' will be assigned the
21672# following values.
21673
21674_ACEOF
21675
21676# The following way of writing the cache mishandles newlines in values,
21677# but we know of no workaround that is simple, portable, and efficient.
21678# So, don't put newlines in cache variables' values.
21679# Ultrix sh set writes to stderr and can't be redirected directly,
21680# and sets the high bit in the cache file unless we assign to the vars.
21681{
21682 (set) 2>&1 |
21683 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21684 *ac_space=\ *)
21685 # `set' does not quote correctly, so add quotes (double-quote
21686 # substitution turns \\\\ into \\, and sed turns \\ into \).
21687 sed -n \
21688 "s/'/'\\\\''/g;
21689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21690 ;;
21691 *)
21692 # `set' quotes correctly as required by POSIX, so do not add quotes.
21693 sed -n \
21694 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21695 ;;
21696 esac;
21697} |
21698 sed '
21699 t clear
21700 : clear
21701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21702 t end
21703 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21704 : end' >>confcache
21705if diff $cache_file confcache >/dev/null 2>&1; then :; else
21706 if test -w $cache_file; then
21707 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21708 cat confcache >$cache_file
21709 else
21710 echo "not updating unwritable cache $cache_file"
21711 fi
21712fi
21713rm -f confcache
21714
21715test "x$prefix" = xNONE && prefix=$ac_default_prefix
21716# Let make expand exec_prefix.
21717test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21718
21719# VPATH may cause trouble with some makes, so we remove $(srcdir),
21720# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21721# trailing colons and then remove the whole line if VPATH becomes empty
21722# (actually we leave an empty line to preserve line numbers).
21723if test "x$srcdir" = x.; then
21724 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21725s/:*\$(srcdir):*/:/;
21726s/:*\${srcdir}:*/:/;
21727s/:*@srcdir@:*/:/;
21728s/^\([^=]*=[ ]*\):*/\1/;
21729s/:*$//;
21730s/^[^=]*=[ ]*$//;
21731}'
21732fi
21733
21734DEFS=-DHAVE_CONFIG_H
21735
21736ac_libobjs=
21737ac_ltlibobjs=
21738for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21739 # 1. Remove the extension, and $U if already installed.
21740 ac_i=`echo "$ac_i" |
21741 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21742 # 2. Add them.
21743 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21744 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21745done
21746LIBOBJS=$ac_libobjs
21747
21748LTLIBOBJS=$ac_ltlibobjs
21749
21750
85981d60
AC
21751if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21752 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21753Usually this means the macro was only invoked conditionally." >&5
21754echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21755Usually this means the macro was only invoked conditionally." >&2;}
21756 { (exit 1); exit 1; }; }
21757fi
bec39cab
AC
21758
21759: ${CONFIG_STATUS=./config.status}
21760ac_clean_files_save=$ac_clean_files
21761ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21762{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21763echo "$as_me: creating $CONFIG_STATUS" >&6;}
21764cat >$CONFIG_STATUS <<_ACEOF
21765#! $SHELL
21766# Generated by $as_me.
21767# Run this file to recreate the current configuration.
21768# Compiler output produced by configure, useful for debugging
21769# configure, is in config.log if it exists.
21770
21771debug=false
21772ac_cs_recheck=false
21773ac_cs_silent=false
21774SHELL=\${CONFIG_SHELL-$SHELL}
21775_ACEOF
21776
21777cat >>$CONFIG_STATUS <<\_ACEOF
21778## --------------------- ##
21779## M4sh Initialization. ##
21780## --------------------- ##
21781
21782# Be Bourne compatible
21783if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21784 emulate sh
21785 NULLCMD=:
21786 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21787 # is contrary to our usage. Disable this feature.
21788 alias -g '${1+"$@"}'='"$@"'
21789elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21790 set -o posix
21791fi
21792DUALCASE=1; export DUALCASE # for MKS sh
21793
21794# Support unset when possible.
21795if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21796 as_unset=unset
21797else
21798 as_unset=false
21799fi
21800
21801
21802# Work around bugs in pre-3.0 UWIN ksh.
21803$as_unset ENV MAIL MAILPATH
21804PS1='$ '
21805PS2='> '
21806PS4='+ '
21807
21808# NLS nuisances.
21809for as_var in \
21810 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21811 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21812 LC_TELEPHONE LC_TIME
21813do
21814 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21815 eval $as_var=C; export $as_var
21816 else
21817 $as_unset $as_var
21818 fi
21819done
21820
21821# Required to use basename.
21822if expr a : '\(a\)' >/dev/null 2>&1; then
21823 as_expr=expr
21824else
21825 as_expr=false
21826fi
21827
21828if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21829 as_basename=basename
21830else
21831 as_basename=false
21832fi
21833
21834
21835# Name of the executable.
21836as_me=`$as_basename "$0" ||
21837$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21838 X"$0" : 'X\(//\)$' \| \
21839 X"$0" : 'X\(/\)$' \| \
21840 . : '\(.\)' 2>/dev/null ||
21841echo X/"$0" |
21842 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21843 /^X\/\(\/\/\)$/{ s//\1/; q; }
21844 /^X\/\(\/\).*/{ s//\1/; q; }
21845 s/.*/./; q'`
21846
21847
21848# PATH needs CR, and LINENO needs CR and PATH.
21849# Avoid depending upon Character Ranges.
21850as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21851as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21852as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21853as_cr_digits='0123456789'
21854as_cr_alnum=$as_cr_Letters$as_cr_digits
21855
21856# The user is always right.
21857if test "${PATH_SEPARATOR+set}" != set; then
21858 echo "#! /bin/sh" >conf$$.sh
21859 echo "exit 0" >>conf$$.sh
21860 chmod +x conf$$.sh
21861 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21862 PATH_SEPARATOR=';'
21863 else
21864 PATH_SEPARATOR=:
21865 fi
21866 rm -f conf$$.sh
21867fi
21868
21869
21870 as_lineno_1=$LINENO
21871 as_lineno_2=$LINENO
21872 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21873 test "x$as_lineno_1" != "x$as_lineno_2" &&
21874 test "x$as_lineno_3" = "x$as_lineno_2" || {
21875 # Find who we are. Look in the path if we contain no path at all
21876 # relative or not.
21877 case $0 in
21878 *[\\/]* ) as_myself=$0 ;;
21879 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21880for as_dir in $PATH
21881do
21882 IFS=$as_save_IFS
21883 test -z "$as_dir" && as_dir=.
21884 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21885done
21886
21887 ;;
21888 esac
21889 # We did not find ourselves, most probably we were run as `sh COMMAND'
21890 # in which case we are not to be found in the path.
21891 if test "x$as_myself" = x; then
21892 as_myself=$0
21893 fi
21894 if test ! -f "$as_myself"; then
21895 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21896echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21897 { (exit 1); exit 1; }; }
21898 fi
21899 case $CONFIG_SHELL in
21900 '')
21901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21902for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21903do
21904 IFS=$as_save_IFS
21905 test -z "$as_dir" && as_dir=.
21906 for as_base in sh bash ksh sh5; do
21907 case $as_dir in
21908 /*)
21909 if ("$as_dir/$as_base" -c '
21910 as_lineno_1=$LINENO
21911 as_lineno_2=$LINENO
21912 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21913 test "x$as_lineno_1" != "x$as_lineno_2" &&
21914 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21915 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21916 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21917 CONFIG_SHELL=$as_dir/$as_base
21918 export CONFIG_SHELL
21919 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21920 fi;;
21921 esac
21922 done
21923done
21924;;
21925 esac
21926
21927 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21928 # uniformly replaced by the line number. The first 'sed' inserts a
21929 # line-number line before each line; the second 'sed' does the real
21930 # work. The second script uses 'N' to pair each line-number line
21931 # with the numbered line, and appends trailing '-' during
21932 # substitution so that $LINENO is not a special case at line end.
21933 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21934 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21935 sed '=' <$as_myself |
21936 sed '
21937 N
21938 s,$,-,
21939 : loop
21940 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21941 t loop
21942 s,-$,,
21943 s,^['$as_cr_digits']*\n,,
21944 ' >$as_me.lineno &&
21945 chmod +x $as_me.lineno ||
21946 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21947echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21948 { (exit 1); exit 1; }; }
21949
21950 # Don't try to exec as it changes $[0], causing all sort of problems
21951 # (the dirname of $[0] is not the place where we might find the
21952 # original and so on. Autoconf is especially sensible to this).
21953 . ./$as_me.lineno
21954 # Exit status is that of the last command.
21955 exit
21956}
21957
21958
21959case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21960 *c*,-n*) ECHO_N= ECHO_C='
21961' ECHO_T=' ' ;;
21962 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21963 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21964esac
21965
21966if expr a : '\(a\)' >/dev/null 2>&1; then
21967 as_expr=expr
21968else
21969 as_expr=false
21970fi
21971
21972rm -f conf$$ conf$$.exe conf$$.file
21973echo >conf$$.file
21974if ln -s conf$$.file conf$$ 2>/dev/null; then
21975 # We could just check for DJGPP; but this test a) works b) is more generic
21976 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21977 if test -f conf$$.exe; then
21978 # Don't use ln at all; we don't have any links
21979 as_ln_s='cp -p'
21980 else
21981 as_ln_s='ln -s'
21982 fi
21983elif ln conf$$.file conf$$ 2>/dev/null; then
21984 as_ln_s=ln
21985else
21986 as_ln_s='cp -p'
21987fi
21988rm -f conf$$ conf$$.exe conf$$.file
21989
21990if mkdir -p . 2>/dev/null; then
21991 as_mkdir_p=:
21992else
21993 test -d ./-p && rmdir ./-p
21994 as_mkdir_p=false
21995fi
21996
21997as_executable_p="test -f"
21998
21999# Sed expression to map a string onto a valid CPP name.
22000as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22001
22002# Sed expression to map a string onto a valid variable name.
22003as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22004
22005
22006# IFS
22007# We need space, tab and new line, in precisely that order.
22008as_nl='
22009'
22010IFS=" $as_nl"
22011
22012# CDPATH.
22013$as_unset CDPATH
22014
22015exec 6>&1
22016
22017# Open the log real soon, to keep \$[0] and so on meaningful, and to
22018# report actual input values of CONFIG_FILES etc. instead of their
22019# values after options handling. Logging --version etc. is OK.
22020exec 5>>config.log
22021{
22022 echo
22023 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22024## Running $as_me. ##
22025_ASBOX
22026} >&5
22027cat >&5 <<_CSEOF
22028
22029This file was extended by $as_me, which was
22030generated by GNU Autoconf 2.59. Invocation command line was
22031
22032 CONFIG_FILES = $CONFIG_FILES
22033 CONFIG_HEADERS = $CONFIG_HEADERS
22034 CONFIG_LINKS = $CONFIG_LINKS
22035 CONFIG_COMMANDS = $CONFIG_COMMANDS
22036 $ $0 $@
22037
22038_CSEOF
22039echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22040echo >&5
22041_ACEOF
22042
22043# Files that config.status was made for.
22044if test -n "$ac_config_files"; then
22045 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22046fi
22047
22048if test -n "$ac_config_headers"; then
22049 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22050fi
22051
22052if test -n "$ac_config_links"; then
22053 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
234b45d4
KB
22054fi
22055
bec39cab
AC
22056if test -n "$ac_config_commands"; then
22057 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22058fi
234b45d4 22059
bec39cab 22060cat >>$CONFIG_STATUS <<\_ACEOF
234b45d4 22061
bec39cab
AC
22062ac_cs_usage="\
22063\`$as_me' instantiates files from templates according to the
22064current configuration.
234b45d4 22065
bec39cab 22066Usage: $0 [OPTIONS] [FILE]...
234b45d4 22067
bec39cab
AC
22068 -h, --help print this help, then exit
22069 -V, --version print version number, then exit
22070 -q, --quiet do not print progress messages
22071 -d, --debug don't remove temporary files
22072 --recheck update $as_me by reconfiguring in the same conditions
22073 --file=FILE[:TEMPLATE]
22074 instantiate the configuration file FILE
22075 --header=FILE[:TEMPLATE]
22076 instantiate the configuration header FILE
234b45d4 22077
bec39cab
AC
22078Configuration files:
22079$config_files
234b45d4 22080
bec39cab
AC
22081Configuration headers:
22082$config_headers
234b45d4 22083
bec39cab
AC
22084Configuration links:
22085$config_links
234b45d4 22086
bec39cab
AC
22087Configuration commands:
22088$config_commands
22089
22090Report bugs to <bug-autoconf@gnu.org>."
22091_ACEOF
22092
22093cat >>$CONFIG_STATUS <<_ACEOF
22094ac_cs_version="\\
22095config.status
22096configured by $0, generated by GNU Autoconf 2.59,
22097 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22098
22099Copyright (C) 2003 Free Software Foundation, Inc.
22100This config.status script is free software; the Free Software Foundation
22101gives unlimited permission to copy, distribute and modify it."
22102srcdir=$srcdir
22103INSTALL="$INSTALL"
22104_ACEOF
22105
22106cat >>$CONFIG_STATUS <<\_ACEOF
22107# If no file are specified by the user, then we need to provide default
22108# value. By we need to know if files were specified by the user.
22109ac_need_defaults=:
22110while test $# != 0
22111do
22112 case $1 in
22113 --*=*)
22114 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22115 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22116 ac_shift=:
c906108c 22117 ;;
bec39cab
AC
22118 -*)
22119 ac_option=$1
22120 ac_optarg=$2
22121 ac_shift=shift
c906108c 22122 ;;
bec39cab
AC
22123 *) # This is not an option, so the user has probably given explicit
22124 # arguments.
22125 ac_option=$1
22126 ac_need_defaults=false;;
22127 esac
c906108c 22128
bec39cab
AC
22129 case $ac_option in
22130 # Handling of the options.
22131_ACEOF
22132cat >>$CONFIG_STATUS <<\_ACEOF
22133 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22134 ac_cs_recheck=: ;;
22135 --version | --vers* | -V )
22136 echo "$ac_cs_version"; exit 0 ;;
22137 --he | --h)
22138 # Conflict between --help and --header
22139 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22140Try \`$0 --help' for more information." >&5
22141echo "$as_me: error: ambiguous option: $1
22142Try \`$0 --help' for more information." >&2;}
22143 { (exit 1); exit 1; }; };;
22144 --help | --hel | -h )
22145 echo "$ac_cs_usage"; exit 0 ;;
22146 --debug | --d* | -d )
22147 debug=: ;;
22148 --file | --fil | --fi | --f )
22149 $ac_shift
22150 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22151 ac_need_defaults=false;;
22152 --header | --heade | --head | --hea )
22153 $ac_shift
22154 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22155 ac_need_defaults=false;;
22156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22158 ac_cs_silent=: ;;
c906108c 22159
bec39cab
AC
22160 # This is an error.
22161 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22162Try \`$0 --help' for more information." >&5
22163echo "$as_me: error: unrecognized option: $1
22164Try \`$0 --help' for more information." >&2;}
22165 { (exit 1); exit 1; }; } ;;
c906108c 22166
bec39cab 22167 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 22168
bec39cab
AC
22169 esac
22170 shift
22171done
c906108c 22172
bec39cab 22173ac_configure_extra_args=
c906108c 22174
bec39cab
AC
22175if $ac_cs_silent; then
22176 exec 6>/dev/null
22177 ac_configure_extra_args="$ac_configure_extra_args --silent"
22178fi
c906108c 22179
bec39cab
AC
22180_ACEOF
22181cat >>$CONFIG_STATUS <<_ACEOF
22182if \$ac_cs_recheck; then
22183 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22184 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22185fi
22186
22187_ACEOF
22188
22189cat >>$CONFIG_STATUS <<_ACEOF
c906108c 22190#
bec39cab 22191# INIT-COMMANDS section.
c906108c 22192#
c906108c 22193
bec39cab
AC
22194
22195gdb_host_cpu=$gdb_host_cpu
22196gdb_target_cpu=$gdb_target_cpu
22197nativefile=$nativefile
22198
22199
22200_ACEOF
22201
22202
22203
22204cat >>$CONFIG_STATUS <<\_ACEOF
22205for ac_config_target in $ac_config_targets
c906108c 22206do
bec39cab
AC
22207 case "$ac_config_target" in
22208 # Handling of arguments.
22209 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22210 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22211 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22212 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22213 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22214 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22215echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22216 { (exit 1); exit 1; }; };;
c906108c
SS
22217 esac
22218done
22219
bec39cab
AC
22220# If the user did not use the arguments to specify the items to instantiate,
22221# then the envvar interface is used. Set only those that are not.
22222# We use the long form for the default assignment because of an extremely
22223# bizarre bug on SunOS 4.1.3.
22224if $ac_need_defaults; then
22225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22227 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22228 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22229fi
22230
22231# Have a temporary directory for convenience. Make it in the build tree
22232# simply because there is no reason to put it here, and in addition,
22233# creating and moving files from /tmp can sometimes cause problems.
22234# Create a temporary directory, and hook for its removal unless debugging.
22235$debug ||
22236{
22237 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22238 trap '{ (exit 1); exit 1; }' 1 2 13 15
22239}
c906108c 22240
bec39cab 22241# Create a (secure) tmp directory for tmp files.
c906108c 22242
bec39cab
AC
22243{
22244 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22245 test -n "$tmp" && test -d "$tmp"
22246} ||
22247{
22248 tmp=./confstat$$-$RANDOM
22249 (umask 077 && mkdir $tmp)
22250} ||
22251{
22252 echo "$me: cannot create a temporary directory in ." >&2
22253 { (exit 1); exit 1; }
22254}
22255
22256_ACEOF
22257
22258cat >>$CONFIG_STATUS <<_ACEOF
22259
22260#
22261# CONFIG_FILES section.
22262#
22263
22264# No need to generate the scripts if there are no CONFIG_FILES.
22265# This happens for instance when ./config.status config.h
22266if test -n "\$CONFIG_FILES"; then
22267 # Protect against being on the right side of a sed subst in config.status.
22268 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22269 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22270s,@SHELL@,$SHELL,;t t
22271s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22272s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22273s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22274s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22275s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22276s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22277s,@exec_prefix@,$exec_prefix,;t t
22278s,@prefix@,$prefix,;t t
22279s,@program_transform_name@,$program_transform_name,;t t
22280s,@bindir@,$bindir,;t t
22281s,@sbindir@,$sbindir,;t t
22282s,@libexecdir@,$libexecdir,;t t
22283s,@datadir@,$datadir,;t t
22284s,@sysconfdir@,$sysconfdir,;t t
22285s,@sharedstatedir@,$sharedstatedir,;t t
22286s,@localstatedir@,$localstatedir,;t t
22287s,@libdir@,$libdir,;t t
22288s,@includedir@,$includedir,;t t
22289s,@oldincludedir@,$oldincludedir,;t t
22290s,@infodir@,$infodir,;t t
22291s,@mandir@,$mandir,;t t
22292s,@build_alias@,$build_alias,;t t
22293s,@host_alias@,$host_alias,;t t
22294s,@target_alias@,$target_alias,;t t
22295s,@DEFS@,$DEFS,;t t
22296s,@ECHO_C@,$ECHO_C,;t t
22297s,@ECHO_N@,$ECHO_N,;t t
22298s,@ECHO_T@,$ECHO_T,;t t
22299s,@LIBS@,$LIBS,;t t
22300s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22301s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22302s,@MAINT@,$MAINT,;t t
22303s,@CC@,$CC,;t t
22304s,@CFLAGS@,$CFLAGS,;t t
22305s,@LDFLAGS@,$LDFLAGS,;t t
22306s,@CPPFLAGS@,$CPPFLAGS,;t t
22307s,@ac_ct_CC@,$ac_ct_CC,;t t
22308s,@EXEEXT@,$EXEEXT,;t t
22309s,@OBJEXT@,$OBJEXT,;t t
22310s,@CPP@,$CPP,;t t
22311s,@EGREP@,$EGREP,;t t
22312s,@build@,$build,;t t
22313s,@build_cpu@,$build_cpu,;t t
22314s,@build_vendor@,$build_vendor,;t t
22315s,@build_os@,$build_os,;t t
22316s,@host@,$host,;t t
22317s,@host_cpu@,$host_cpu,;t t
22318s,@host_vendor@,$host_vendor,;t t
22319s,@host_os@,$host_os,;t t
22320s,@target@,$target,;t t
22321s,@target_cpu@,$target_cpu,;t t
22322s,@target_vendor@,$target_vendor,;t t
22323s,@target_os@,$target_os,;t t
22324s,@RANLIB@,$RANLIB,;t t
22325s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22326s,@SET_MAKE@,$SET_MAKE,;t t
22327s,@ALLOCA@,$ALLOCA,;t t
22328s,@USE_NLS@,$USE_NLS,;t t
22329s,@MSGFMT@,$MSGFMT,;t t
22330s,@GMSGFMT@,$GMSGFMT,;t t
22331s,@XGETTEXT@,$XGETTEXT,;t t
22332s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22333s,@CATALOGS@,$CATALOGS,;t t
22334s,@CATOBJEXT@,$CATOBJEXT,;t t
22335s,@DATADIRNAME@,$DATADIRNAME,;t t
22336s,@GMOFILES@,$GMOFILES,;t t
22337s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22338s,@INTLDEPS@,$INTLDEPS,;t t
22339s,@INTLLIBS@,$INTLLIBS,;t t
22340s,@INTLOBJS@,$INTLOBJS,;t t
22341s,@POFILES@,$POFILES,;t t
22342s,@POSUB@,$POSUB,;t t
22343s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22344s,@GT_NO@,$GT_NO,;t t
22345s,@GT_YES@,$GT_YES,;t t
22346s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22347s,@l@,$l,;t t
22348s,@localedir@,$localedir,;t t
22349s,@PACKAGE@,$PACKAGE,;t t
22350s,@subdirs@,$subdirs,;t t
22351s,@AWK@,$AWK,;t t
22352s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22353s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22354s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22355s,@LN_S@,$LN_S,;t t
22356s,@YACC@,$YACC,;t t
22357s,@AR@,$AR,;t t
22358s,@ac_ct_AR@,$ac_ct_AR,;t t
22359s,@DLLTOOL@,$DLLTOOL,;t t
22360s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22361s,@WINDRES@,$WINDRES,;t t
22362s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22363s,@MIG@,$MIG,;t t
22364s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22365s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22366s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22367s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22368s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22369s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22370s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22371s,@WIN32LIBS@,$WIN32LIBS,;t t
22372s,@LIBGUI@,$LIBGUI,;t t
22373s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22374s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22375s,@TCL_VERSION@,$TCL_VERSION,;t t
22376s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22377s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22378s,@TCL_CC@,$TCL_CC,;t t
22379s,@TCL_DEFS@,$TCL_DEFS,;t t
22380s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22381s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22382s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22383s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22384s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22385s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22386s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22387s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22388s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22389s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22390s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22391s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22392s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22393s,@TK_VERSION@,$TK_VERSION,;t t
22394s,@TK_DEFS@,$TK_DEFS,;t t
22395s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22396s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22397s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22398s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22399s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22400s,@TCLHDIR@,$TCLHDIR,;t t
22401s,@TKHDIR@,$TKHDIR,;t t
22402s,@ITCLHDIR@,$ITCLHDIR,;t t
22403s,@ITKHDIR@,$ITKHDIR,;t t
22404s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22405s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22406s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22407s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22408s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22409s,@ITK_VERSION@,$ITK_VERSION,;t t
22410s,@ITK_DEFS@,$ITK_DEFS,;t t
22411s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22412s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22413s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22414s,@X_CFLAGS@,$X_CFLAGS,;t t
22415s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22416s,@X_LIBS@,$X_LIBS,;t t
22417s,@TCL_DEPS@,$TCL_DEPS,;t t
22418s,@TK_DEPS@,$TK_DEPS,;t t
22419s,@ITCLLIB@,$ITCLLIB,;t t
22420s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22421s,@ITKLIB@,$ITKLIB,;t t
22422s,@ITK_DEPS@,$ITK_DEPS,;t t
22423s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22424s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22425s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22426s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22427s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22428s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22429s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22430s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22431s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22432s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22433s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22434s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22435s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22436s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22437s,@target_subdir@,$target_subdir,;t t
22438s,@frags@,$frags,;t t
22439s,@xm_h@,$xm_h,;t t
22440s,@tm_h@,$tm_h,;t t
22441s,@nm_h@,$nm_h,;t t
22442s,@LIBICONV@,$LIBICONV,;t t
22443s,@LIBOBJS@,$LIBOBJS,;t t
22444s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 22445/@host_makefile_frag@/r $host_makefile_frag
bec39cab 22446s,@host_makefile_frag@,,;t t
c906108c 22447/@target_makefile_frag@/r $target_makefile_frag
bec39cab 22448s,@target_makefile_frag@,,;t t
c906108c 22449CEOF
bec39cab
AC
22450
22451_ACEOF
22452
22453 cat >>$CONFIG_STATUS <<\_ACEOF
22454 # Split the substitutions into bite-sized pieces for seds with
22455 # small command number limits, like on Digital OSF/1 and HP-UX.
22456 ac_max_sed_lines=48
22457 ac_sed_frag=1 # Number of current file.
22458 ac_beg=1 # First line for current file.
22459 ac_end=$ac_max_sed_lines # Line after last line for current file.
22460 ac_more_lines=:
22461 ac_sed_cmds=
22462 while $ac_more_lines; do
22463 if test $ac_beg -gt 1; then
22464 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22465 else
22466 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22467 fi
22468 if test ! -s $tmp/subs.frag; then
22469 ac_more_lines=false
c906108c 22470 else
bec39cab
AC
22471 # The purpose of the label and of the branching condition is to
22472 # speed up the sed processing (if there are no `@' at all, there
22473 # is no need to browse any of the substitutions).
22474 # These are the two extra sed commands mentioned above.
22475 (echo ':t
22476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22477 if test -z "$ac_sed_cmds"; then
22478 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22479 else
22480 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22481 fi
22482 ac_sed_frag=`expr $ac_sed_frag + 1`
22483 ac_beg=$ac_end
22484 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 22485 fi
bec39cab
AC
22486 done
22487 if test -z "$ac_sed_cmds"; then
22488 ac_sed_cmds=cat
c906108c 22489 fi
bec39cab 22490fi # test -n "$CONFIG_FILES"
c906108c 22491
bec39cab
AC
22492_ACEOF
22493cat >>$CONFIG_STATUS <<\_ACEOF
22494for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 22495 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22496 case $ac_file in
22497 - | *:- | *:-:* ) # input from stdin
22498 cat >$tmp/stdin
22499 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22500 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22501 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22502 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22503 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22504 esac
22505
bec39cab
AC
22506 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22507 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22508$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22509 X"$ac_file" : 'X\(//\)[^/]' \| \
22510 X"$ac_file" : 'X\(//\)$' \| \
22511 X"$ac_file" : 'X\(/\)' \| \
22512 . : '\(.\)' 2>/dev/null ||
22513echo X"$ac_file" |
22514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22516 /^X\(\/\/\)$/{ s//\1/; q; }
22517 /^X\(\/\).*/{ s//\1/; q; }
22518 s/.*/./; q'`
22519 { if $as_mkdir_p; then
22520 mkdir -p "$ac_dir"
c906108c 22521 else
bec39cab
AC
22522 as_dir="$ac_dir"
22523 as_dirs=
22524 while test ! -d "$as_dir"; do
22525 as_dirs="$as_dir $as_dirs"
22526 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22527$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22528 X"$as_dir" : 'X\(//\)[^/]' \| \
22529 X"$as_dir" : 'X\(//\)$' \| \
22530 X"$as_dir" : 'X\(/\)' \| \
22531 . : '\(.\)' 2>/dev/null ||
22532echo X"$as_dir" |
22533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22535 /^X\(\/\/\)$/{ s//\1/; q; }
22536 /^X\(\/\).*/{ s//\1/; q; }
22537 s/.*/./; q'`
22538 done
22539 test ! -n "$as_dirs" || mkdir $as_dirs
22540 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22541echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22542 { (exit 1); exit 1; }; }; }
c906108c 22543
bec39cab
AC
22544 ac_builddir=.
22545
22546if test "$ac_dir" != .; then
22547 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22548 # A "../" for each directory in $ac_dir_suffix.
22549 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22550else
22551 ac_dir_suffix= ac_top_builddir=
22552fi
22553
22554case $srcdir in
22555 .) # No --srcdir option. We are building in place.
22556 ac_srcdir=.
22557 if test -z "$ac_top_builddir"; then
22558 ac_top_srcdir=.
22559 else
22560 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22561 fi ;;
22562 [\\/]* | ?:[\\/]* ) # Absolute path.
22563 ac_srcdir=$srcdir$ac_dir_suffix;
22564 ac_top_srcdir=$srcdir ;;
c906108c 22565 *) # Relative path.
bec39cab
AC
22566 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22567 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22568esac
22569
22570# Do not use `cd foo && pwd` to compute absolute paths, because
22571# the directories may not exist.
22572case `pwd` in
22573.) ac_abs_builddir="$ac_dir";;
22574*)
22575 case "$ac_dir" in
22576 .) ac_abs_builddir=`pwd`;;
22577 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22578 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22579 esac;;
22580esac
22581case $ac_abs_builddir in
22582.) ac_abs_top_builddir=${ac_top_builddir}.;;
22583*)
22584 case ${ac_top_builddir}. in
22585 .) ac_abs_top_builddir=$ac_abs_builddir;;
22586 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22587 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22588 esac;;
22589esac
22590case $ac_abs_builddir in
22591.) ac_abs_srcdir=$ac_srcdir;;
22592*)
22593 case $ac_srcdir in
22594 .) ac_abs_srcdir=$ac_abs_builddir;;
22595 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22596 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22597 esac;;
22598esac
22599case $ac_abs_builddir in
22600.) ac_abs_top_srcdir=$ac_top_srcdir;;
22601*)
22602 case $ac_top_srcdir in
22603 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22604 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22605 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22606 esac;;
22607esac
c906108c 22608
c906108c 22609
bec39cab
AC
22610 case $INSTALL in
22611 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22612 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
22613 esac
22614
bec39cab
AC
22615 if test x"$ac_file" != x-; then
22616 { echo "$as_me:$LINENO: creating $ac_file" >&5
22617echo "$as_me: creating $ac_file" >&6;}
22618 rm -f "$ac_file"
22619 fi
22620 # Let's still pretend it is `configure' which instantiates (i.e., don't
22621 # use $as_me), people would be surprised to read:
22622 # /* config.h. Generated by config.status. */
22623 if test x"$ac_file" = x-; then
22624 configure_input=
22625 else
22626 configure_input="$ac_file. "
22627 fi
22628 configure_input=$configure_input"Generated from `echo $ac_file_in |
22629 sed 's,.*/,,'` by configure."
22630
22631 # First look for the input files in the build tree, otherwise in the
22632 # src tree.
22633 ac_file_inputs=`IFS=:
22634 for f in $ac_file_in; do
22635 case $f in
22636 -) echo $tmp/stdin ;;
22637 [\\/$]*)
22638 # Absolute (can't be DOS-style, as IFS=:)
22639 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22640echo "$as_me: error: cannot find input file: $f" >&2;}
22641 { (exit 1); exit 1; }; }
22642 echo "$f";;
22643 *) # Relative
22644 if test -f "$f"; then
22645 # Build tree
22646 echo "$f"
22647 elif test -f "$srcdir/$f"; then
22648 # Source tree
22649 echo "$srcdir/$f"
22650 else
22651 # /dev/null tree
22652 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22653echo "$as_me: error: cannot find input file: $f" >&2;}
22654 { (exit 1); exit 1; }; }
22655 fi;;
22656 esac
22657 done` || { (exit 1); exit 1; }
22658_ACEOF
22659cat >>$CONFIG_STATUS <<_ACEOF
22660 sed "$ac_vpsub
22661$extrasub
22662_ACEOF
22663cat >>$CONFIG_STATUS <<\_ACEOF
22664:t
22665/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22666s,@configure_input@,$configure_input,;t t
22667s,@srcdir@,$ac_srcdir,;t t
22668s,@abs_srcdir@,$ac_abs_srcdir,;t t
22669s,@top_srcdir@,$ac_top_srcdir,;t t
22670s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22671s,@builddir@,$ac_builddir,;t t
22672s,@abs_builddir@,$ac_abs_builddir,;t t
22673s,@top_builddir@,$ac_top_builddir,;t t
22674s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22675s,@INSTALL@,$ac_INSTALL,;t t
22676" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22677 rm -f $tmp/stdin
22678 if test x"$ac_file" != x-; then
22679 mv $tmp/out $ac_file
22680 else
22681 cat $tmp/out
22682 rm -f $tmp/out
22683 fi
22684
22685done
22686_ACEOF
22687cat >>$CONFIG_STATUS <<\_ACEOF
22688
22689#
22690# CONFIG_HEADER section.
22691#
c906108c
SS
22692
22693# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22694# NAME is the cpp macro being defined and VALUE is the value it is being given.
22695#
22696# ac_d sets the value in "#define NAME VALUE" lines.
bec39cab
AC
22697ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22698ac_dB='[ ].*$,\1#\2'
22699ac_dC=' '
22700ac_dD=',;t'
22701# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22702ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22703ac_uB='$,\1#\2define\3'
c906108c 22704ac_uC=' '
bec39cab
AC
22705ac_uD=',;t'
22706
22707for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 22708 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22709 case $ac_file in
22710 - | *:- | *:-:* ) # input from stdin
22711 cat >$tmp/stdin
22712 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22713 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22714 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22715 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22716 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22717 esac
22718
bec39cab
AC
22719 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22720echo "$as_me: creating $ac_file" >&6;}
22721
22722 # First look for the input files in the build tree, otherwise in the
22723 # src tree.
22724 ac_file_inputs=`IFS=:
22725 for f in $ac_file_in; do
22726 case $f in
22727 -) echo $tmp/stdin ;;
22728 [\\/$]*)
22729 # Absolute (can't be DOS-style, as IFS=:)
22730 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22731echo "$as_me: error: cannot find input file: $f" >&2;}
22732 { (exit 1); exit 1; }; }
22733 # Do quote $f, to prevent DOS paths from being IFS'd.
22734 echo "$f";;
22735 *) # Relative
22736 if test -f "$f"; then
22737 # Build tree
22738 echo "$f"
22739 elif test -f "$srcdir/$f"; then
22740 # Source tree
22741 echo "$srcdir/$f"
22742 else
22743 # /dev/null tree
22744 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22745echo "$as_me: error: cannot find input file: $f" >&2;}
22746 { (exit 1); exit 1; }; }
22747 fi;;
22748 esac
22749 done` || { (exit 1); exit 1; }
22750 # Remove the trailing spaces.
22751 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22752
22753_ACEOF
22754
22755# Transform confdefs.h into two sed scripts, `conftest.defines' and
22756# `conftest.undefs', that substitutes the proper values into
22757# config.h.in to produce config.h. The first handles `#define'
22758# templates, and the second `#undef' templates.
22759# And first: Protect against being on the right side of a sed subst in
22760# config.status. Protect against being in an unquoted here document
22761# in config.status.
22762rm -f conftest.defines conftest.undefs
22763# Using a here document instead of a string reduces the quoting nightmare.
22764# Putting comments in sed scripts is not portable.
22765#
22766# `end' is used to avoid that the second main sed command (meant for
22767# 0-ary CPP macros) applies to n-ary macro definitions.
22768# See the Autoconf documentation for `clear'.
22769cat >confdef2sed.sed <<\_ACEOF
22770s/[\\&,]/\\&/g
22771s,[\\$`],\\&,g
22772t clear
22773: clear
22774s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22775t end
22776s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22777: end
22778_ACEOF
22779# If some macros were called several times there might be several times
22780# the same #defines, which is useless. Nevertheless, we may not want to
22781# sort them, since we want the *last* AC-DEFINE to be honored.
22782uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22783sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22784rm -f confdef2sed.sed
c906108c
SS
22785
22786# This sed command replaces #undef with comments. This is necessary, for
22787# example, in the case of _POSIX_SOURCE, which is predefined and required
22788# on some systems where configure will not decide to define it.
bec39cab
AC
22789cat >>conftest.undefs <<\_ACEOF
22790s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22791_ACEOF
22792
22793# Break up conftest.defines because some shells have a limit on the size
22794# of here documents, and old seds have small limits too (100 cmds).
22795echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22796echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22797echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22798echo ' :' >>$CONFIG_STATUS
22799rm -f conftest.tail
22800while grep . conftest.defines >/dev/null
22801do
22802 # Write a limited-size here document to $tmp/defines.sed.
22803 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22804 # Speed up: don't consider the non `#define' lines.
22805 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22806 # Work around the forget-to-reset-the-flag bug.
22807 echo 't clr' >>$CONFIG_STATUS
22808 echo ': clr' >>$CONFIG_STATUS
22809 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22810 echo 'CEOF
22811 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22812 rm -f $tmp/in
22813 mv $tmp/out $tmp/in
22814' >>$CONFIG_STATUS
22815 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22816 rm -f conftest.defines
22817 mv conftest.tail conftest.defines
22818done
22819rm -f conftest.defines
22820echo ' fi # grep' >>$CONFIG_STATUS
22821echo >>$CONFIG_STATUS
c906108c 22822
bec39cab
AC
22823# Break up conftest.undefs because some shells have a limit on the size
22824# of here documents, and old seds have small limits too (100 cmds).
22825echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 22826rm -f conftest.tail
bec39cab 22827while grep . conftest.undefs >/dev/null
c906108c 22828do
bec39cab
AC
22829 # Write a limited-size here document to $tmp/undefs.sed.
22830 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22831 # Speed up: don't consider the non `#undef'
22832 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22833 # Work around the forget-to-reset-the-flag bug.
22834 echo 't clr' >>$CONFIG_STATUS
22835 echo ': clr' >>$CONFIG_STATUS
22836 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 22837 echo 'CEOF
bec39cab
AC
22838 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22839 rm -f $tmp/in
22840 mv $tmp/out $tmp/in
22841' >>$CONFIG_STATUS
22842 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22843 rm -f conftest.undefs
22844 mv conftest.tail conftest.undefs
22845done
22846rm -f conftest.undefs
22847
22848cat >>$CONFIG_STATUS <<\_ACEOF
22849 # Let's still pretend it is `configure' which instantiates (i.e., don't
22850 # use $as_me), people would be surprised to read:
22851 # /* config.h. Generated by config.status. */
22852 if test x"$ac_file" = x-; then
22853 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 22854 else
bec39cab 22855 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 22856 fi
bec39cab
AC
22857 cat $tmp/in >>$tmp/config.h
22858 rm -f $tmp/in
22859 if test x"$ac_file" != x-; then
22860 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22861 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22862echo "$as_me: $ac_file is unchanged" >&6;}
22863 else
22864 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22865$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22866 X"$ac_file" : 'X\(//\)[^/]' \| \
22867 X"$ac_file" : 'X\(//\)$' \| \
22868 X"$ac_file" : 'X\(/\)' \| \
22869 . : '\(.\)' 2>/dev/null ||
22870echo X"$ac_file" |
22871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22873 /^X\(\/\/\)$/{ s//\1/; q; }
22874 /^X\(\/\).*/{ s//\1/; q; }
22875 s/.*/./; q'`
22876 { if $as_mkdir_p; then
22877 mkdir -p "$ac_dir"
22878 else
22879 as_dir="$ac_dir"
22880 as_dirs=
22881 while test ! -d "$as_dir"; do
22882 as_dirs="$as_dir $as_dirs"
22883 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22884$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22885 X"$as_dir" : 'X\(//\)[^/]' \| \
22886 X"$as_dir" : 'X\(//\)$' \| \
22887 X"$as_dir" : 'X\(/\)' \| \
22888 . : '\(.\)' 2>/dev/null ||
22889echo X"$as_dir" |
22890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22891 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22892 /^X\(\/\/\)$/{ s//\1/; q; }
22893 /^X\(\/\).*/{ s//\1/; q; }
22894 s/.*/./; q'`
22895 done
22896 test ! -n "$as_dirs" || mkdir $as_dirs
22897 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22898echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22899 { (exit 1); exit 1; }; }; }
c906108c 22900
bec39cab
AC
22901 rm -f $ac_file
22902 mv $tmp/config.h $ac_file
22903 fi
22904 else
22905 cat $tmp/config.h
22906 rm -f $tmp/config.h
22907 fi
22908done
22909_ACEOF
22910cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 22911
bec39cab
AC
22912#
22913# CONFIG_LINKS section.
22914#
c906108c 22915
bec39cab
AC
22916for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22917 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22918 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 22919
bec39cab
AC
22920 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22921echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
22922
22923 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
22924 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22925echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22926 { (exit 1); exit 1; }; }
c906108c
SS
22927 fi
22928 rm -f $ac_dest
22929
22930 # Make relative symlinks.
bec39cab
AC
22931 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22932$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22933 X"$ac_dest" : 'X\(//\)[^/]' \| \
22934 X"$ac_dest" : 'X\(//\)$' \| \
22935 X"$ac_dest" : 'X\(/\)' \| \
22936 . : '\(.\)' 2>/dev/null ||
22937echo X"$ac_dest" |
22938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22940 /^X\(\/\/\)$/{ s//\1/; q; }
22941 /^X\(\/\).*/{ s//\1/; q; }
22942 s/.*/./; q'`
22943 { if $as_mkdir_p; then
22944 mkdir -p "$ac_dest_dir"
c906108c 22945 else
bec39cab
AC
22946 as_dir="$ac_dest_dir"
22947 as_dirs=
22948 while test ! -d "$as_dir"; do
22949 as_dirs="$as_dir $as_dirs"
22950 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22951$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22952 X"$as_dir" : 'X\(//\)[^/]' \| \
22953 X"$as_dir" : 'X\(//\)$' \| \
22954 X"$as_dir" : 'X\(/\)' \| \
22955 . : '\(.\)' 2>/dev/null ||
22956echo X"$as_dir" |
22957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22959 /^X\(\/\/\)$/{ s//\1/; q; }
22960 /^X\(\/\).*/{ s//\1/; q; }
22961 s/.*/./; q'`
22962 done
22963 test ! -n "$as_dirs" || mkdir $as_dirs
22964 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22965echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22966 { (exit 1); exit 1; }; }; }
22967
22968 ac_builddir=.
22969
22970if test "$ac_dest_dir" != .; then
22971 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22972 # A "../" for each directory in $ac_dir_suffix.
22973 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22974else
22975 ac_dir_suffix= ac_top_builddir=
22976fi
22977
22978case $srcdir in
22979 .) # No --srcdir option. We are building in place.
22980 ac_srcdir=.
22981 if test -z "$ac_top_builddir"; then
22982 ac_top_srcdir=.
22983 else
22984 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22985 fi ;;
22986 [\\/]* | ?:[\\/]* ) # Absolute path.
22987 ac_srcdir=$srcdir$ac_dir_suffix;
22988 ac_top_srcdir=$srcdir ;;
22989 *) # Relative path.
22990 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22991 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22992esac
22993
22994# Do not use `cd foo && pwd` to compute absolute paths, because
22995# the directories may not exist.
22996case `pwd` in
22997.) ac_abs_builddir="$ac_dest_dir";;
22998*)
22999 case "$ac_dest_dir" in
23000 .) ac_abs_builddir=`pwd`;;
23001 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23002 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23003 esac;;
23004esac
23005case $ac_abs_builddir in
23006.) ac_abs_top_builddir=${ac_top_builddir}.;;
23007*)
23008 case ${ac_top_builddir}. in
23009 .) ac_abs_top_builddir=$ac_abs_builddir;;
23010 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23011 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23012 esac;;
23013esac
23014case $ac_abs_builddir in
23015.) ac_abs_srcdir=$ac_srcdir;;
23016*)
23017 case $ac_srcdir in
23018 .) ac_abs_srcdir=$ac_abs_builddir;;
23019 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23020 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23021 esac;;
23022esac
23023case $ac_abs_builddir in
23024.) ac_abs_top_srcdir=$ac_top_srcdir;;
23025*)
23026 case $ac_top_srcdir in
23027 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23028 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23029 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23030 esac;;
23031esac
c906108c 23032
bec39cab
AC
23033
23034 case $srcdir in
23035 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23036 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
23037 esac
23038
bec39cab
AC
23039 # Try a symlink, then a hard link, then a copy.
23040 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23041 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23042 cp -p $srcdir/$ac_source $ac_dest ||
23043 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23044echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23045 { (exit 1); exit 1; }; }
c906108c 23046done
bec39cab
AC
23047_ACEOF
23048cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23049
bec39cab
AC
23050#
23051# CONFIG_COMMANDS section.
23052#
23053for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23054 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23055 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23056 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23057$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23058 X"$ac_dest" : 'X\(//\)[^/]' \| \
23059 X"$ac_dest" : 'X\(//\)$' \| \
23060 X"$ac_dest" : 'X\(/\)' \| \
23061 . : '\(.\)' 2>/dev/null ||
23062echo X"$ac_dest" |
23063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23064 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23065 /^X\(\/\/\)$/{ s//\1/; q; }
23066 /^X\(\/\).*/{ s//\1/; q; }
23067 s/.*/./; q'`
23068 { if $as_mkdir_p; then
23069 mkdir -p "$ac_dir"
23070 else
23071 as_dir="$ac_dir"
23072 as_dirs=
23073 while test ! -d "$as_dir"; do
23074 as_dirs="$as_dir $as_dirs"
23075 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23076$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23077 X"$as_dir" : 'X\(//\)[^/]' \| \
23078 X"$as_dir" : 'X\(//\)$' \| \
23079 X"$as_dir" : 'X\(/\)' \| \
23080 . : '\(.\)' 2>/dev/null ||
23081echo X"$as_dir" |
23082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23084 /^X\(\/\/\)$/{ s//\1/; q; }
23085 /^X\(\/\).*/{ s//\1/; q; }
23086 s/.*/./; q'`
23087 done
23088 test ! -n "$as_dirs" || mkdir $as_dirs
23089 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23090echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23091 { (exit 1); exit 1; }; }; }
23092
23093 ac_builddir=.
23094
23095if test "$ac_dir" != .; then
23096 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23097 # A "../" for each directory in $ac_dir_suffix.
23098 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23099else
23100 ac_dir_suffix= ac_top_builddir=
23101fi
23102
23103case $srcdir in
23104 .) # No --srcdir option. We are building in place.
23105 ac_srcdir=.
23106 if test -z "$ac_top_builddir"; then
23107 ac_top_srcdir=.
23108 else
23109 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23110 fi ;;
23111 [\\/]* | ?:[\\/]* ) # Absolute path.
23112 ac_srcdir=$srcdir$ac_dir_suffix;
23113 ac_top_srcdir=$srcdir ;;
23114 *) # Relative path.
23115 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23116 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23117esac
23118
23119# Do not use `cd foo && pwd` to compute absolute paths, because
23120# the directories may not exist.
23121case `pwd` in
23122.) ac_abs_builddir="$ac_dir";;
23123*)
23124 case "$ac_dir" in
23125 .) ac_abs_builddir=`pwd`;;
23126 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23127 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23128 esac;;
23129esac
23130case $ac_abs_builddir in
23131.) ac_abs_top_builddir=${ac_top_builddir}.;;
23132*)
23133 case ${ac_top_builddir}. in
23134 .) ac_abs_top_builddir=$ac_abs_builddir;;
23135 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23136 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23137 esac;;
23138esac
23139case $ac_abs_builddir in
23140.) ac_abs_srcdir=$ac_srcdir;;
23141*)
23142 case $ac_srcdir in
23143 .) ac_abs_srcdir=$ac_abs_builddir;;
23144 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23145 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23146 esac;;
23147esac
23148case $ac_abs_builddir in
23149.) ac_abs_top_srcdir=$ac_top_srcdir;;
23150*)
23151 case $ac_top_srcdir in
23152 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23153 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23154 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23155 esac;;
23156esac
c906108c 23157
c906108c 23158
bec39cab
AC
23159 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23160echo "$as_me: executing $ac_dest commands" >&6;}
23161 case $ac_dest in
23162 default )
c906108c 23163
2c0fc042 23164sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
23165/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23166/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23167mv -f Makefile.tmp Makefile
23168
2acceee2 23169
c906108c
SS
23170case x$CONFIG_HEADERS in
23171xconfig.h:config.in)
23172echo > stamp-h ;;
23173esac
bec39cab
AC
23174 ;;
23175 esac
23176done
23177_ACEOF
c906108c 23178
bec39cab
AC
23179cat >>$CONFIG_STATUS <<\_ACEOF
23180
23181{ (exit 0); exit 0; }
23182_ACEOF
c906108c 23183chmod +x $CONFIG_STATUS
bec39cab
AC
23184ac_clean_files=$ac_clean_files_save
23185
23186
23187# configure is writing to config.log, and then calls config.status.
23188# config.status does its own redirection, appending to config.log.
23189# Unfortunately, on DOS this fails, as config.log is still kept open
23190# by configure, so config.status won't be able to write to it; its
23191# output is simply discarded. So we exec the FD to /dev/null,
23192# effectively closing config.log, so it can be properly (re)opened and
23193# appended to by config.status. When coming back to configure, we
23194# need to make the FD available again.
23195if test "$no_create" != yes; then
23196 ac_cs_success=:
23197 ac_config_status_args=
23198 test "$silent" = yes &&
23199 ac_config_status_args="$ac_config_status_args --quiet"
23200 exec 5>/dev/null
23201 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23202 exec 5>>config.log
23203 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23204 # would make configure fail if this is the last instruction.
23205 $ac_cs_success || { (exit 1); exit 1; }
23206fi
c906108c 23207
bec39cab
AC
23208#
23209# CONFIG_SUBDIRS section.
23210#
c906108c
SS
23211if test "$no_recursion" != yes; then
23212
23213 # Remove --cache-file and --srcdir arguments so they do not pile up.
23214 ac_sub_configure_args=
23215 ac_prev=
23216 for ac_arg in $ac_configure_args; do
23217 if test -n "$ac_prev"; then
23218 ac_prev=
23219 continue
23220 fi
bec39cab 23221 case $ac_arg in
c906108c
SS
23222 -cache-file | --cache-file | --cache-fil | --cache-fi \
23223 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23224 ac_prev=cache_file ;;
23225 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
23226 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23227 | --c=*)
23228 ;;
23229 --config-cache | -C)
c906108c
SS
23230 ;;
23231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23232 ac_prev=srcdir ;;
23233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23234 ;;
bec39cab
AC
23235 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23236 ac_prev=prefix ;;
23237 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23238 ;;
c906108c
SS
23239 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23240 esac
23241 done
23242
bec39cab
AC
23243 # Always prepend --prefix to ensure using the same prefix
23244 # in subdir configurations.
23245 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23246
23247 ac_popdir=`pwd`
23248 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
23249
23250 # Do not complain, so a configure script can configure whichever
23251 # parts of a large source tree are present.
bec39cab 23252 test -d $srcdir/$ac_dir || continue
c906108c 23253
bec39cab
AC
23254 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23255echo "$as_me: configuring in $ac_dir" >&6;}
23256 { if $as_mkdir_p; then
23257 mkdir -p "$ac_dir"
23258 else
23259 as_dir="$ac_dir"
23260 as_dirs=
23261 while test ! -d "$as_dir"; do
23262 as_dirs="$as_dir $as_dirs"
23263 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23264$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23265 X"$as_dir" : 'X\(//\)[^/]' \| \
23266 X"$as_dir" : 'X\(//\)$' \| \
23267 X"$as_dir" : 'X\(/\)' \| \
23268 . : '\(.\)' 2>/dev/null ||
23269echo X"$as_dir" |
23270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23272 /^X\(\/\/\)$/{ s//\1/; q; }
23273 /^X\(\/\).*/{ s//\1/; q; }
23274 s/.*/./; q'`
23275 done
23276 test ! -n "$as_dirs" || mkdir $as_dirs
23277 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23278echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23279 { (exit 1); exit 1; }; }; }
c906108c 23280
bec39cab
AC
23281 ac_builddir=.
23282
23283if test "$ac_dir" != .; then
23284 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23285 # A "../" for each directory in $ac_dir_suffix.
23286 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23287else
23288 ac_dir_suffix= ac_top_builddir=
23289fi
23290
23291case $srcdir in
23292 .) # No --srcdir option. We are building in place.
23293 ac_srcdir=.
23294 if test -z "$ac_top_builddir"; then
23295 ac_top_srcdir=.
23296 else
23297 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23298 fi ;;
23299 [\\/]* | ?:[\\/]* ) # Absolute path.
23300 ac_srcdir=$srcdir$ac_dir_suffix;
23301 ac_top_srcdir=$srcdir ;;
23302 *) # Relative path.
23303 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23304 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23305esac
c906108c 23306
bec39cab
AC
23307# Do not use `cd foo && pwd` to compute absolute paths, because
23308# the directories may not exist.
23309case `pwd` in
23310.) ac_abs_builddir="$ac_dir";;
23311*)
23312 case "$ac_dir" in
23313 .) ac_abs_builddir=`pwd`;;
23314 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23315 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23316 esac;;
23317esac
23318case $ac_abs_builddir in
23319.) ac_abs_top_builddir=${ac_top_builddir}.;;
23320*)
23321 case ${ac_top_builddir}. in
23322 .) ac_abs_top_builddir=$ac_abs_builddir;;
23323 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23324 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23325 esac;;
23326esac
23327case $ac_abs_builddir in
23328.) ac_abs_srcdir=$ac_srcdir;;
23329*)
23330 case $ac_srcdir in
23331 .) ac_abs_srcdir=$ac_abs_builddir;;
23332 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23333 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23334 esac;;
23335esac
23336case $ac_abs_builddir in
23337.) ac_abs_top_srcdir=$ac_top_srcdir;;
23338*)
23339 case $ac_top_srcdir in
23340 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23341 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23342 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23343 esac;;
23344esac
c906108c 23345
c906108c 23346
bec39cab 23347 cd $ac_dir
c906108c
SS
23348
23349 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
23350 if test -f $ac_srcdir/configure.gnu; then
23351 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23352 elif test -f $ac_srcdir/configure; then
23353 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23354 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
23355 ac_sub_configure=$ac_configure
23356 else
bec39cab
AC
23357 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23358echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
23359 ac_sub_configure=
23360 fi
23361
23362 # The recursion is here.
23363 if test -n "$ac_sub_configure"; then
c906108c 23364 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
23365 case $cache_file in
23366 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
c906108c 23367 *) # Relative path.
bec39cab 23368 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 23369 esac
c906108c 23370
bec39cab
AC
23371 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23372echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 23373 # The eval makes quoting arguments work.
bec39cab
AC
23374 eval $ac_sub_configure $ac_sub_configure_args \
23375 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23376 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23377echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23378 { (exit 1); exit 1; }; }
c906108c
SS
23379 fi
23380
23381 cd $ac_popdir
23382 done
23383fi
23384
23385
23386exit 0
This page took 1.619817 seconds and 4 git commands to generate.