*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
4e8d927d 3# Generated by GNU Autoconf 2.59d.
c906108c 4#
4e8d927d
DJ
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
c906108c
SS
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
bec39cab
AC
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
4e8d927d
DJ
20 setopt NO_GLOB_SUBST
21else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
bec39cab 23fi
4e8d927d 24BIN_SH=xpg4; export BIN_SH # for Tru64
bec39cab
AC
25DUALCASE=1; export DUALCASE # for MKS sh
26
4e8d927d
DJ
27
28# PATH needs CR
29# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
45 fi
46 rm -f conf$$.sh
47fi
48
bec39cab
AC
49# Support unset when possible.
50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52else
53 as_unset=false
54fi
55
56
4e8d927d
DJ
57# IFS
58# We need space, tab and new line, in precisely that order. Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
62as_nl='
63'
64IFS=" "" $as_nl"
65
66# Find who we are. Look in the path if we contain no directory separator.
67case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70for as_dir in $PATH
71do
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
76IFS=$as_save_IFS
77
78 ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83 as_myself=$0
84fi
85if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
88fi
89
bec39cab 90# Work around bugs in pre-3.0 UWIN ksh.
4e8d927d
DJ
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
bec39cab
AC
94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
103do
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
4e8d927d 107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
bec39cab
AC
108 fi
109done
110
111# Required to use basename.
4e8d927d
DJ
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
114 as_expr=expr
115else
116 as_expr=false
117fi
118
4e8d927d 119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
120 as_basename=basename
121else
122 as_basename=false
123fi
124
125
126# Name of the executable.
4e8d927d 127as_me=`$as_basename -- "$0" ||
bec39cab
AC
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
4e8d927d 130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
bec39cab 131echo X/"$0" |
4e8d927d
DJ
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
134 q
135 }
136 /^X\/\(\/\/\)$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\).*/{
141 s//\1/
142 q
143 }
144 s/.*/./; q'`
bec39cab 145
4e8d927d
DJ
146# CDPATH.
147$as_unset CDPATH
bec39cab 148
bec39cab 149
4e8d927d
DJ
150if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153else
154 as_have_required=no
bec39cab
AC
155fi
156
4e8d927d
DJ
157 if test $as_have_required = yes && (eval ":
158(as_func_return () {
159 (exit \$1)
160}
161as_func_success () {
162 as_func_return 0
163}
164as_func_failure () {
165 as_func_return 1
166}
167as_func_ret_success () {
168 return 0
169}
170as_func_ret_failure () {
171 return 1
172}
bec39cab 173
4e8d927d
DJ
174exitcode=0
175if as_func_success; then
176 :
177else
178 exitcode=1
179 echo as_func_success failed.
180fi
bec39cab 181
4e8d927d
DJ
182if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188 :
189else
190 exitcode=1
191 echo as_func_ret_success failed.
192fi
193
194if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
197fi
198
199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200 :
201else
202 exitcode=1
203 echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213") 2> /dev/null; then
214 :
215else
216 as_candidate_shells=
bec39cab 217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4e8d927d 218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab
AC
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
4e8d927d 222 case $as_dir in
bec39cab 223 /*)
4e8d927d
DJ
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228done
229IFS=$as_save_IFS
230
231
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells which exist, to save several forks.
234 if test -f $as_shell &&
235 { ($as_shell) 2> /dev/null <<\_ASEOF
236# Be Bourne compatible
237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246fi
247BIN_SH=xpg4; export BIN_SH # for Tru64
248DUALCASE=1; export DUALCASE # for MKS sh
249
250:
251_ASEOF
252}; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { $as_shell 2> /dev/null <<\_ASEOF
256# Be Bourne compatible
257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266fi
267BIN_SH=xpg4; export BIN_SH # for Tru64
268DUALCASE=1; export DUALCASE # for MKS sh
269
270:
271(as_func_return () {
272 (exit $1)
273}
274as_func_success () {
275 as_func_return 0
276}
277as_func_failure () {
278 as_func_return 1
279}
280as_func_ret_success () {
281 return 0
282}
283as_func_ret_failure () {
284 return 1
285}
286
287exitcode=0
288if as_func_success; then
289 :
290else
291 exitcode=1
292 echo as_func_success failed.
293fi
294
295if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
298fi
299
300if as_func_ret_success; then
301 :
302else
303 exitcode=1
304 echo as_func_ret_success failed.
305fi
306
307if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
310fi
311
312if ( set x; as_func_ret_success y && test x = "$1" ); then
313 :
314else
315 exitcode=1
316 echo positional parameters were not saved.
317fi
318
319test $exitcode = 0) || { (exit 1); exit 1; }
320
321(
bec39cab
AC
322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
bec39cab 324 test "x$as_lineno_1" != "x$as_lineno_2" &&
4e8d927d
DJ
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327_ASEOF
328}; then
329 break
330fi
331
332fi
333
334 done
335
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342fi
343
344
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
351fi
352
353
354fi
355
356fi
357
358
359
360(eval "as_func_return () {
361 (exit \$1)
362}
363as_func_success () {
364 as_func_return 0
365}
366as_func_failure () {
367 as_func_return 1
368}
369as_func_ret_success () {
370 return 0
371}
372as_func_ret_failure () {
373 return 1
374}
375
376exitcode=0
377if as_func_success; then
378 :
379else
380 exitcode=1
381 echo as_func_success failed.
382fi
383
384if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
387fi
388
389if as_func_ret_success; then
390 :
391else
392 exitcode=1
393 echo as_func_ret_success failed.
394fi
395
396if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
399fi
400
401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402 :
403else
404 exitcode=1
405 echo positional parameters were not saved.
406fi
407
408test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
413}
414
415
416
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
bec39cab
AC
421
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
4e8d927d
DJ
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
bec39cab 429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4e8d927d
DJ
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
bec39cab 436 sed '
4e8d927d
DJ
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
bec39cab 441 N
4e8d927d
DJ
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bec39cab 444 t loop
4e8d927d 445 s/-\n.*//
bec39cab 446 ' >$as_me.lineno &&
4e8d927d 447 chmod +x "$as_me.lineno" ||
bec39cab
AC
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
4e8d927d
DJ
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
bec39cab
AC
455 # Exit status is that of the last command.
456 exit
457}
458
459
4e8d927d
DJ
460if (dirname -- /) >/dev/null 2>&1; then
461 as_dirname=dirname
462else
463 as_dirname=false
464fi
465
466ECHO_C= ECHO_N= ECHO_T=
467case `echo -n x` in
468-n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
473*)
474 ECHO_N='-n';;
bec39cab
AC
475esac
476
4e8d927d
DJ
477if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
479 as_expr=expr
480else
481 as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
4e8d927d
DJ
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
490fi
bec39cab
AC
491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
4e8d927d
DJ
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
bec39cab 499 as_ln_s='cp -p'
bec39cab
AC
500elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502else
503 as_ln_s='cp -p'
504fi
4e8d927d
DJ
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
bec39cab
AC
507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513fi
514
4e8d927d
DJ
515# Find out whether ``test -x'' works. Don't use a zero-byte file, as
516# systems may use methods other than mode bits to determine executability.
517cat >conf$$.file <<_ASEOF
518#! /bin/sh
519exit 0
520_ASEOF
521chmod +x conf$$.file
522if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524else
525 as_executable_p=:
526fi
527rm -f conf$$.file
bec39cab
AC
528
529# Sed expression to map a string onto a valid CPP name.
530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532# Sed expression to map a string onto a valid variable name.
533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
bec39cab 536
4e8d927d 537exec 7<&0 </dev/null 6>&1
c906108c 538
bec39cab
AC
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
bec39cab
AC
544#
545# Initializations.
546#
c906108c 547ac_default_prefix=/usr/local
4e8d927d 548ac_clean_files=
bec39cab 549ac_config_libobj_dir=.
4e8d927d 550LIBOBJS=
bec39cab
AC
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555SHELL=${CONFIG_SHELL-/bin/sh}
556
bec39cab
AC
557# Identity of this package.
558PACKAGE_NAME=
559PACKAGE_TARNAME=
560PACKAGE_VERSION=
561PACKAGE_STRING=
562PACKAGE_BUGREPORT=
563
564ac_unique_file="main.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#if HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#if HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#if STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# if HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#if HAVE_STRING_H
583# if !STDC_HEADERS && HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#if HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#if HAVE_INTTYPES_H
592# include <inttypes.h>
4e8d927d
DJ
593#endif
594#if HAVE_STDINT_H
595# include <stdint.h>
bec39cab
AC
596#endif
597#if HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
4e8d927d
DJ
601ac_subst_vars='SHELL
602PATH_SEPARATOR
603PACKAGE_NAME
604PACKAGE_TARNAME
605PACKAGE_VERSION
606PACKAGE_STRING
607PACKAGE_BUGREPORT
608exec_prefix
609prefix
610program_transform_name
611bindir
612sbindir
613libexecdir
614datarootdir
615datadir
616sysconfdir
617sharedstatedir
618localstatedir
619includedir
620oldincludedir
621docdir
622infodir
623htmldir
624dvidir
625pdfdir
626psdir
627libdir
628localedir
629mandir
630DEFS
631ECHO_C
632ECHO_N
633ECHO_T
634LIBS
635build_alias
636host_alias
637target_alias
638MAINTAINER_MODE_TRUE
639MAINTAINER_MODE_FALSE
640MAINT
641CC
642CFLAGS
643LDFLAGS
644CPPFLAGS
645ac_ct_CC
646EXEEXT
647OBJEXT
648CPP
649GREP
650EGREP
651build
652build_cpu
653build_vendor
654build_os
655host
656host_cpu
657host_vendor
658host_os
659target
660target_cpu
661target_vendor
662target_os
663SET_MAKE
664RANLIB
665ALLOCA
666USE_NLS
667MSGFMT
668GMSGFMT
669XGETTEXT
670USE_INCLUDED_LIBINTL
671CATALOGS
672CATOBJEXT
673DATADIRNAME
674GMOFILES
675INSTOBJEXT
676INTLDEPS
677INTLLIBS
678INTLOBJS
679POFILES
680POSUB
681INCLUDE_LOCALE_H
682GT_NO
683GT_YES
684MKINSTALLDIRS
685l
686PACKAGE
687subdirs
688AWK
689INSTALL_PROGRAM
690INSTALL_SCRIPT
691INSTALL_DATA
692LN_S
693YACC
694YFLAGS
695AR
696DLLTOOL
697WINDRES
698MIG
699CONFIG_LDFLAGS
700TARGET_SYSTEM_ROOT
701TARGET_SYSTEM_ROOT_DEFINE
702WARN_CFLAGS
703WERROR_CFLAGS
704SER_HARDWIRE
705WIN32LIBS
706LIBGUI
707GUI_CFLAGS_X
708WIN32LDAPP
709TCL_VERSION
710TCL_MAJOR_VERSION
711TCL_MINOR_VERSION
712TCL_CC
713TCL_DEFS
714TCL_SHLIB_CFLAGS
715TCL_SHLIB_LD
716TCL_SHLIB_LD_LIBS
717TCL_SHLIB_SUFFIX
718TCL_DL_LIBS
719TCL_LD_FLAGS
720TCL_LD_SEARCH_FLAGS
721TCL_CC_SEARCH_FLAGS
722TCL_COMPAT_OBJS
723TCL_RANLIB
724TCL_BUILD_LIB_SPEC
725TCL_LIB_SPEC
726TCL_LIB_VERSIONS_OK
727TK_VERSION
728TK_DEFS
729TK_BUILD_INCLUDES
730TK_XINCLUDES
731TK_XLIBSW
732TK_BUILD_LIB_SPEC
733TK_LIB_SPEC
734TCLHDIR
735TKHDIR
736ITCLHDIR
737ITKHDIR
738ITCL_VERSION
739ITCL_DEFS
740ITCL_BUILD_INCLUDES
741ITCL_BUILD_LIB_SPEC
742ITCL_LIB_SPEC
743ITK_VERSION
744ITK_DEFS
745ITK_BUILD_INCLUDES
746ITK_BUILD_LIB_SPEC
747ITK_LIB_SPEC
748X_CFLAGS
749X_LDFLAGS
750X_LIBS
751TCL_DEPS
752TK_DEPS
753ITCLLIB
754ITCL_DEPS
755ITKLIB
756ITK_DEPS
757GDBTKLIBS
758GDBTK_CFLAGS
759GDBTK_SRC_DIR
760XMKMF
761IGNORE_SIM
762IGNORE_SIM_OBS
763ENABLE_CFLAGS
764PROFILE_CFLAGS
765CONFIG_OBS
766CONFIG_DEPS
767CONFIG_SRCS
768CONFIG_ALL
769CONFIG_CLEAN
770CONFIG_INSTALL
771CONFIG_UNINSTALL
772target_subdir
773frags
774xm_h
775tm_h
776nm_h
777LIBICONV
778LIBOBJS
779LTLIBOBJS'
780ac_subst_files='host_makefile_frag
781target_makefile_frag'
782 ac_precious_vars='build_alias
783host_alias
784target_alias
785CC
786CFLAGS
787LDFLAGS
788CPPFLAGS
789CPP
790YACC
791YFLAGS
792XMKMF'
793ac_subdirs_all='doc testsuite
794gdbtk
795multi-ice
796gdbserver'
c906108c
SS
797
798# Initialize some variables set by options.
bec39cab
AC
799ac_init_help=
800ac_init_version=false
c906108c
SS
801# The variables have the same names as the options, with
802# dashes changed to underlines.
bec39cab 803cache_file=/dev/null
c906108c 804exec_prefix=NONE
c906108c 805no_create=
c906108c
SS
806no_recursion=
807prefix=NONE
808program_prefix=NONE
809program_suffix=NONE
810program_transform_name=s,x,x,
811silent=
812site=
813srcdir=
c906108c
SS
814verbose=
815x_includes=NONE
816x_libraries=NONE
bec39cab
AC
817
818# Installation directory options.
819# These are left unexpanded so users can "make install exec_prefix=/foo"
820# and all the variables that are supposed to be based on exec_prefix
821# by default will actually change.
822# Use braces instead of parens because sh, perl, etc. also accept them.
4e8d927d 823# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
824bindir='${exec_prefix}/bin'
825sbindir='${exec_prefix}/sbin'
826libexecdir='${exec_prefix}/libexec'
4e8d927d
DJ
827datarootdir='${prefix}/share'
828datadir='${datarootdir}'
c906108c
SS
829sysconfdir='${prefix}/etc'
830sharedstatedir='${prefix}/com'
831localstatedir='${prefix}/var'
c906108c
SS
832includedir='${prefix}/include'
833oldincludedir='/usr/include'
4e8d927d
DJ
834docdir='${datarootdir}/doc/${PACKAGE}'
835infodir='${datarootdir}/info'
836htmldir='${docdir}'
837dvidir='${docdir}'
838pdfdir='${docdir}'
839psdir='${docdir}'
840libdir='${exec_prefix}/lib'
841localedir='${datarootdir}/locale'
842mandir='${datarootdir}/man'
c906108c 843
c906108c 844ac_prev=
4e8d927d 845ac_dashdash=
c906108c
SS
846for ac_option
847do
c906108c
SS
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
4e8d927d 850 eval $ac_prev=\$ac_option
c906108c
SS
851 ac_prev=
852 continue
853 fi
854
4e8d927d
DJ
855 case $ac_option in
856 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *) ac_optarg=yes ;;
858 esac
c906108c
SS
859
860 # Accept the important Cygnus configure options, so we can diagnose typos.
861
4e8d927d
DJ
862 case $ac_dashdash$ac_option in
863 --)
864 ac_dashdash=yes ;;
c906108c
SS
865
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 869 bindir=$ac_optarg ;;
c906108c
SS
870
871 -build | --build | --buil | --bui | --bu)
bec39cab 872 ac_prev=build_alias ;;
c906108c 873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 874 build_alias=$ac_optarg ;;
c906108c
SS
875
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
881 cache_file=$ac_optarg ;;
882
883 --config-cache | -C)
884 cache_file=config.cache ;;
c906108c 885
4e8d927d 886 -datadir | --datadir | --datadi | --datad)
c906108c 887 ac_prev=datadir ;;
4e8d927d 888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bec39cab 889 datadir=$ac_optarg ;;
c906108c 890
4e8d927d
DJ
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
897
c906108c 898 -disable-* | --disable-*)
bec39cab 899 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 900 # Reject names that are not valid shell variable names.
bec39cab
AC
901 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
902 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
903 { (exit 1); exit 1; }; }
904 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
4e8d927d
DJ
905 eval enable_$ac_feature=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
c906108c
SS
916
917 -enable-* | --enable-*)
bec39cab 918 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 919 # Reject names that are not valid shell variable names.
bec39cab
AC
920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
4e8d927d 924 eval enable_$ac_feature=\$ac_optarg ;;
c906108c
SS
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
bec39cab 933 exec_prefix=$ac_optarg ;;
c906108c
SS
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
bec39cab
AC
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
c906108c
SS
945
946 -host | --host | --hos | --ho)
bec39cab 947 ac_prev=host_alias ;;
c906108c 948 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 949 host_alias=$ac_optarg ;;
c906108c 950
4e8d927d
DJ
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
c906108c
SS
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 962 includedir=$ac_optarg ;;
c906108c
SS
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 967 infodir=$ac_optarg ;;
c906108c
SS
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 972 libdir=$ac_optarg ;;
c906108c
SS
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
bec39cab 979 libexecdir=$ac_optarg ;;
c906108c 980
4e8d927d
DJ
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
c906108c 986 -localstatedir | --localstatedir | --localstatedi | --localstated \
4e8d927d 987 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
4e8d927d 990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bec39cab 991 localstatedir=$ac_optarg ;;
c906108c
SS
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 996 mandir=$ac_optarg ;;
c906108c
SS
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 1003 | --no-cr | --no-c | -n)
c906108c
SS
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 1017 oldincludedir=$ac_optarg ;;
c906108c
SS
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 1022 prefix=$ac_optarg ;;
c906108c
SS
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 1029 program_prefix=$ac_optarg ;;
c906108c
SS
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 1036 program_suffix=$ac_optarg ;;
c906108c
SS
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 1053 program_transform_name=$ac_optarg ;;
c906108c 1054
4e8d927d
DJ
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
c906108c
SS
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
bec39cab 1073 sbindir=$ac_optarg ;;
c906108c
SS
1074
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
bec39cab 1084 sharedstatedir=$ac_optarg ;;
c906108c
SS
1085
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
bec39cab 1089 site=$ac_optarg ;;
3ace7edb 1090
c906108c
SS
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 1094 srcdir=$ac_optarg ;;
c906108c
SS
1095
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 1101 sysconfdir=$ac_optarg ;;
c906108c
SS
1102
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 1104 ac_prev=target_alias ;;
c906108c 1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 1106 target_alias=$ac_optarg ;;
c906108c
SS
1107
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1110
bec39cab
AC
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
c906108c
SS
1113
1114 -with-* | --with-*)
bec39cab 1115 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1116 # Reject names that are not valid shell variable names.
bec39cab
AC
1117 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1118 { echo "$as_me: error: invalid package name: $ac_package" >&2
1119 { (exit 1); exit 1; }; }
c906108c 1120 ac_package=`echo $ac_package| sed 's/-/_/g'`
4e8d927d 1121 eval with_$ac_package=\$ac_optarg ;;
c906108c
SS
1122
1123 -without-* | --without-*)
bec39cab 1124 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1125 # Reject names that are not valid shell variable names.
bec39cab
AC
1126 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1127 { echo "$as_me: error: invalid package name: $ac_package" >&2
1128 { (exit 1); exit 1; }; }
1129 ac_package=`echo $ac_package | sed 's/-/_/g'`
4e8d927d 1130 eval with_$ac_package=no ;;
c906108c
SS
1131
1132 --x)
1133 # Obsolete; use --with-x.
1134 with_x=yes ;;
1135
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 1141 x_includes=$ac_optarg ;;
c906108c
SS
1142
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 1148 x_libraries=$ac_optarg ;;
c906108c 1149
bec39cab
AC
1150 -*) { echo "$as_me: error: unrecognized option: $ac_option
1151Try \`$0 --help' for more information." >&2
1152 { (exit 1); exit 1; }; }
c906108c
SS
1153 ;;
1154
bec39cab
AC
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1159 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1160 { (exit 1); exit 1; }; }
4e8d927d 1161 eval $ac_envvar=\$ac_optarg
bec39cab
AC
1162 export $ac_envvar ;;
1163
c906108c 1164 *)
bec39cab
AC
1165 # FIXME: should be removed in autoconf 3.0.
1166 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
1170 ;;
1171
1172 esac
1173done
1174
1175if test -n "$ac_prev"; then
bec39cab
AC
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 { echo "$as_me: error: missing argument to $ac_option" >&2
1178 { (exit 1); exit 1; }; }
c906108c 1179fi
c906108c 1180
4e8d927d
DJ
1181# Be sure to have absolute directory names.
1182for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
c906108c 1186do
4e8d927d 1187 eval ac_val=\$$ac_var
bec39cab 1188 case $ac_val in
4e8d927d
DJ
1189 [\\/$]* | ?:[\\/]* ) continue;;
1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1191 esac
4e8d927d
DJ
1192 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1193 { (exit 1); exit 1; }; }
c906108c
SS
1194done
1195
bec39cab
AC
1196# There might be people who depend on the old broken behavior: `$host'
1197# used to hold the argument of --host etc.
1198# FIXME: To remove some day.
1199build=$build_alias
1200host=$host_alias
1201target=$target_alias
1202
1203# FIXME: To remove some day.
1204if test "x$host_alias" != x; then
1205 if test "x$build_alias" = x; then
1206 cross_compiling=maybe
1207 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1208 If a cross compiler is detected then cross compile mode will be used." >&2
1209 elif test "x$build_alias" != "x$host_alias"; then
1210 cross_compiling=yes
1211 fi
1212fi
c906108c 1213
bec39cab
AC
1214ac_tool_prefix=
1215test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216
1217test "$silent" = yes && exec 6>/dev/null
c906108c 1218
c906108c 1219
4e8d927d
DJ
1220ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221ac_ls_di=`ls -di .` &&
1222ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223 { echo "$as_me: error: Working directory cannot be determined" >&2
1224 { (exit 1); exit 1; }; }
1225test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 { echo "$as_me: error: pwd does not report name of working directory" >&2
1227 { (exit 1); exit 1; }; }
1228
1229
c906108c
SS
1230# Find the source files, if location was not specified.
1231if test -z "$srcdir"; then
1232 ac_srcdir_defaulted=yes
4e8d927d
DJ
1233 # Try the directory containing this script, then the parent directory.
1234 ac_confdir=`$as_dirname -- "$0" ||
bec39cab
AC
1235$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236 X"$0" : 'X\(//\)[^/]' \| \
1237 X"$0" : 'X\(//\)$' \| \
4e8d927d 1238 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
bec39cab 1239echo X"$0" |
4e8d927d
DJ
1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\/\)[^/].*/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\/\)$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\).*/{
1253 s//\1/
1254 q
1255 }
1256 s/.*/./; q'`
c906108c 1257 srcdir=$ac_confdir
4e8d927d 1258 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1259 srcdir=..
1260 fi
1261else
1262 ac_srcdir_defaulted=no
1263fi
4e8d927d
DJ
1264if test ! -r "$srcdir/$ac_unique_file"; then
1265 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bec39cab 1267 { (exit 1); exit 1; }; }
c906108c 1268fi
4e8d927d
DJ
1269ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270ac_abs_confdir=`(
1271 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
bec39cab 1272 { (exit 1); exit 1; }; }
4e8d927d
DJ
1273 pwd)`
1274# When building in place, set srcdir=.
1275if test "$ac_abs_confdir" = "$ac_pwd"; then
1276 srcdir=.
1277fi
1278# Remove unnecessary trailing slashes from srcdir.
1279# Double slashes in file names in object file debugging info
1280# mess up M-x gdb in Emacs.
1281case $srcdir in
1282*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283esac
1284for ac_var in $ac_precious_vars; do
1285 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_env_${ac_var}_value=\$${ac_var}
1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289done
c906108c 1290
bec39cab
AC
1291#
1292# Report the --help message.
1293#
1294if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1297 cat <<_ACEOF
1298\`configure' configures this package to adapt to many kinds of systems.
1299
1300Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303VAR=VALUE. See below for descriptions of some of the useful variables.
1304
1305Defaults for the options are specified in brackets.
1306
1307Configuration:
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317
bec39cab
AC
1318Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1322 [PREFIX]
1323
1324By default, \`make install' will install all the files in
1325\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327for instance \`--prefix=\$HOME'.
1328
1329For better control, use the options below.
1330
1331Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
bec39cab
AC
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --libdir=DIR object code libraries [EPREFIX/lib]
1339 --includedir=DIR C header files [PREFIX/include]
1340 --oldincludedir=DIR C header files for non-gcc [/usr/include]
4e8d927d
DJ
1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343 --infodir=DIR info documentation [DATAROOTDIR/info]
1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345 --mandir=DIR man documentation [DATAROOTDIR/man]
1346 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1347 --htmldir=DIR html documentation [DOCDIR]
1348 --dvidir=DIR dvi documentation [DOCDIR]
1349 --pdfdir=DIR pdf documentation [DOCDIR]
1350 --psdir=DIR ps documentation [DOCDIR]
bec39cab
AC
1351_ACEOF
1352
1353 cat <<\_ACEOF
1354
1355Program names:
1356 --program-prefix=PREFIX prepend PREFIX to installed program names
1357 --program-suffix=SUFFIX append SUFFIX to installed program names
1358 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1359
1360X features:
1361 --x-includes=DIR X include files are in DIR
1362 --x-libraries=DIR X library files are in DIR
1363
1364System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1368_ACEOF
1369fi
1370
1371if test -n "$ac_init_help"; then
1372
1373 cat <<\_ACEOF
1374
1375Optional Features:
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
1378 --enable-maintainer-mode enable make rules and dependencies not useful
1379 (and sometimes confusing) to the casual installer
bec39cab
AC
1380 --disable-nls do not use Native Language Support
1381 --disable-gdbcli disable command-line interface (CLI)
1382 --disable-gdbmi disable machine-interface (MI)
1383 --enable-tui enable full-screen terminal user interface (TUI)
1384 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1385 --enable-profiling enable profiling of GDB
094a342e 1386 --enable-werror treat compile warnings as errors
bec39cab
AC
1387 --enable-build-warnings Enable build-time compiler warnings if gcc is used
1388 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
1389 --enable-sim Link gdb with simulator
1390 --enable-multi-ice build the multi-ice-gdb-server
1391
1392Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-included-gettext use the GNU gettext library included here
1396 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
1397 --with-libunwind Use libunwind frame unwinding support
1398 --without-included-regex don't use included regex; this is the default
1399 on systems with version 2 of the GNU C library
1400 (use with caution on other system)
1401 --with-sysroot=DIR Search for usr/lib et al within DIR.
1402 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
1403 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
1404 --with-tclinclude=DIR Directory where tcl private headers are
1405 --with-tkinclude=DIR Directory where tk private headers are
1406 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
1407 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
1408 --with-x use the X Window System
1409 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1410
1411Some influential environment variables:
1412 CC C compiler command
1413 CFLAGS C compiler flags
1414 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1415 nonstandard directory <lib dir>
4e8d927d
DJ
1416 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
bec39cab 1418 CPP C preprocessor
4e8d927d
DJ
1419 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1420 the first program found out of: `bison -y', `byacc', `yacc'.
1421 YFLAGS The list of arguments that will be passed by default to $YACC.
1422 This script will default YFLAGS to the empty string to avoid a
1423 default value of `-d' given by some make applications.
1424 XMKMF Path to xmkmf, Makefile generator for X Window System
bec39cab
AC
1425
1426Use these variables to override the choices made by `configure' or to help
1427it to find libraries and programs with nonstandard names/locations.
1428
1429_ACEOF
4e8d927d 1430ac_status=$?
bec39cab
AC
1431fi
1432
1433if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
bec39cab
AC
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d $ac_dir || continue
1437 ac_builddir=.
1438
4e8d927d
DJ
1439case "$ac_dir" in
1440.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441*)
bec39cab 1442 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4e8d927d
DJ
1443 # A ".." for each directory in $ac_dir_suffix.
1444 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1445 case $ac_top_builddir_sub in
1446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448 esac ;;
1449esac
1450ac_abs_top_builddir=$ac_pwd
1451ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452# for backward compatibility:
1453ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
1454
1455case $srcdir in
4e8d927d 1456 .) # We are building in place.
bec39cab 1457 ac_srcdir=.
4e8d927d
DJ
1458 ac_top_srcdir=$ac_top_builddir_sub
1459 ac_abs_top_srcdir=$ac_pwd ;;
1460 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 1461 ac_srcdir=$srcdir$ac_dir_suffix;
4e8d927d
DJ
1462 ac_top_srcdir=$srcdir
1463 ac_abs_top_srcdir=$srcdir ;;
1464 *) # Relative name.
1465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1466 ac_top_srcdir=$ac_top_build_prefix$srcdir
1467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 1468esac
4e8d927d 1469ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 1470
4e8d927d
DJ
1471 cd "$ac_dir" || { ac_status=$?; continue; }
1472 # Check for guested configure.
bec39cab 1473 if test -f $ac_srcdir/configure.gnu; then
4e8d927d 1474 echo &&
bec39cab
AC
1475 $SHELL $ac_srcdir/configure.gnu --help=recursive
1476 elif test -f $ac_srcdir/configure; then
4e8d927d 1477 echo &&
bec39cab 1478 $SHELL $ac_srcdir/configure --help=recursive
3ace7edb 1479 else
bec39cab 1480 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
4e8d927d
DJ
1481 fi || ac_status=$?
1482 cd "$ac_pwd" || { ac_status=$?; break; }
bec39cab
AC
1483 done
1484fi
1485
4e8d927d 1486test -n "$ac_init_help" && exit $ac_status
bec39cab
AC
1487if $ac_init_version; then
1488 cat <<\_ACEOF
4e8d927d
DJ
1489configure
1490generated by GNU Autoconf 2.59d
bec39cab 1491
4e8d927d
DJ
1492Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14932002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
bec39cab
AC
1494This configure script is free software; the Free Software Foundation
1495gives unlimited permission to copy, distribute and modify it.
1496_ACEOF
4e8d927d 1497 exit
bec39cab 1498fi
4e8d927d 1499cat >config.log <<_ACEOF
bec39cab
AC
1500This file contains any messages produced by compilers while
1501running configure, to aid debugging if configure makes a mistake.
1502
1503It was created by $as_me, which was
4e8d927d 1504generated by GNU Autoconf 2.59d. Invocation command line was
bec39cab
AC
1505
1506 $ $0 $@
1507
1508_ACEOF
4e8d927d 1509exec 5>>config.log
bec39cab
AC
1510{
1511cat <<_ASUNAME
1512## --------- ##
1513## Platform. ##
1514## --------- ##
1515
1516hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1517uname -m = `(uname -m) 2>/dev/null || echo unknown`
1518uname -r = `(uname -r) 2>/dev/null || echo unknown`
1519uname -s = `(uname -s) 2>/dev/null || echo unknown`
1520uname -v = `(uname -v) 2>/dev/null || echo unknown`
1521
1522/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1523/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1524
1525/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1526/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1527/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
4e8d927d 1528/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1529/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1530/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1531/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1532
1533_ASUNAME
1534
1535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536for as_dir in $PATH
1537do
1538 IFS=$as_save_IFS
1539 test -z "$as_dir" && as_dir=.
1540 echo "PATH: $as_dir"
1541done
4e8d927d 1542IFS=$as_save_IFS
bec39cab
AC
1543
1544} >&5
1545
1546cat >&5 <<_ACEOF
1547
1548
1549## ----------- ##
1550## Core tests. ##
1551## ----------- ##
1552
1553_ACEOF
1554
1555
1556# Keep a trace of the command line.
1557# Strip out --no-create and --no-recursion so they do not pile up.
1558# Strip out --silent because we don't want to record it for future runs.
1559# Also quote any args containing shell meta-characters.
1560# Make two passes to allow for proper duplicate-argument suppression.
1561ac_configure_args=
1562ac_configure_args0=
1563ac_configure_args1=
1564ac_sep=
1565ac_must_keep_next=false
1566for ac_pass in 1 2
1567do
1568 for ac_arg
1569 do
1570 case $ac_arg in
1571 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1572 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1573 | -silent | --silent | --silen | --sile | --sil)
1574 continue ;;
4e8d927d 1575 *\'*)
bec39cab
AC
1576 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1577 esac
1578 case $ac_pass in
1579 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1580 2)
1581 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1582 if test $ac_must_keep_next = true; then
1583 ac_must_keep_next=false # Got value, back to normal.
1584 else
1585 case $ac_arg in
1586 *=* | --config-cache | -C | -disable-* | --disable-* \
1587 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1588 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1589 | -with-* | --with-* | -without-* | --without-* | --x)
1590 case "$ac_configure_args0 " in
1591 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1592 esac
1593 ;;
1594 -* ) ac_must_keep_next=true ;;
1595 esac
1596 fi
1597 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1598 # Get rid of the leading space.
1599 ac_sep=" "
1600 ;;
1601 esac
1602 done
1603done
1604$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1605$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1606
1607# When interrupted or exit'd, cleanup temporary files, and complete
1608# config.log. We remove comments because anyway the quotes in there
1609# would cause problems or look ugly.
4e8d927d
DJ
1610# WARNING: Use '\'' to represent an apostrophe within the trap.
1611# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bec39cab
AC
1612trap 'exit_status=$?
1613 # Save into config.log some information that might help in debugging.
1614 {
1615 echo
1616
1617 cat <<\_ASBOX
1618## ---------------- ##
1619## Cache variables. ##
1620## ---------------- ##
1621_ASBOX
1622 echo
1623 # The following way of writing the cache mishandles newlines in values,
4e8d927d
DJ
1624(
1625 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1626 eval ac_val=\$$ac_var
1627 case $ac_val in #(
1628 *${as_nl}*)
1629 case $ac_var in #(
1630 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1631echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1632 esac
1633 case $ac_var in #(
1634 _ | IFS | as_nl) ;; #(
1635 *) $as_unset $ac_var ;;
1636 esac ;;
1637 esac
1638 done
bec39cab 1639 (set) 2>&1 |
4e8d927d
DJ
1640 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1641 *${as_nl}ac_space=\ *)
bec39cab 1642 sed -n \
4e8d927d
DJ
1643 "s/'\''/'\''\\\\'\'''\''/g;
1644 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1645 ;; #(
bec39cab 1646 *)
4e8d927d 1647 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 1648 ;;
4e8d927d
DJ
1649 esac |
1650 sort
1651)
bec39cab
AC
1652 echo
1653
1654 cat <<\_ASBOX
1655## ----------------- ##
1656## Output variables. ##
1657## ----------------- ##
1658_ASBOX
1659 echo
1660 for ac_var in $ac_subst_vars
1661 do
4e8d927d
DJ
1662 eval ac_val=\$$ac_var
1663 echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
1664 done | sort
1665 echo
1666
1667 if test -n "$ac_subst_files"; then
1668 cat <<\_ASBOX
4e8d927d
DJ
1669## ------------------- ##
1670## File substitutions. ##
1671## ------------------- ##
bec39cab
AC
1672_ASBOX
1673 echo
1674 for ac_var in $ac_subst_files
1675 do
4e8d927d
DJ
1676 eval ac_val=\$$ac_var
1677 echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
1678 done | sort
1679 echo
1680 fi
1681
1682 if test -s confdefs.h; then
1683 cat <<\_ASBOX
1684## ----------- ##
1685## confdefs.h. ##
1686## ----------- ##
1687_ASBOX
1688 echo
4e8d927d 1689 cat confdefs.h
bec39cab 1690 echo
3ace7edb 1691 fi
bec39cab
AC
1692 test "$ac_signal" != 0 &&
1693 echo "$as_me: caught signal $ac_signal"
1694 echo "$as_me: exit $exit_status"
1695 } >&5
4e8d927d
DJ
1696 rm -f core *.core core.conftest.* &&
1697 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1698 exit $exit_status
4e8d927d 1699' 0
bec39cab
AC
1700for ac_signal in 1 2 13 15; do
1701 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1702done
1703ac_signal=0
1704
1705# confdefs.h avoids OS command line length limits that DEFS can exceed.
4e8d927d 1706rm -f -r conftest* confdefs.h
bec39cab
AC
1707
1708# Predefined preprocessor variables.
1709
1710cat >>confdefs.h <<_ACEOF
1711#define PACKAGE_NAME "$PACKAGE_NAME"
1712_ACEOF
1713
1714
1715cat >>confdefs.h <<_ACEOF
1716#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1717_ACEOF
1718
1719
1720cat >>confdefs.h <<_ACEOF
1721#define PACKAGE_VERSION "$PACKAGE_VERSION"
1722_ACEOF
1723
1724
1725cat >>confdefs.h <<_ACEOF
1726#define PACKAGE_STRING "$PACKAGE_STRING"
1727_ACEOF
1728
1729
1730cat >>confdefs.h <<_ACEOF
1731#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1732_ACEOF
1733
1734
1735# Let the site file select an alternate cache file if it wants to.
1736# Prefer explicitly selected file to automatically selected ones.
4e8d927d
DJ
1737if test -n "$CONFIG_SITE"; then
1738 set x "$CONFIG_SITE"
1739elif test "x$prefix" != xNONE; then
1740 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1741else
1742 set x "$ac_default_prefix/share/config.site" \
1743 "$ac_default_prefix/etc/config.site"
c906108c 1744fi
4e8d927d
DJ
1745shift
1746for ac_site_file
1747do
c906108c 1748 if test -r "$ac_site_file"; then
bec39cab
AC
1749 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1750echo "$as_me: loading site script $ac_site_file" >&6;}
1751 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1752 . "$ac_site_file"
1753 fi
1754done
1755
1756if test -r "$cache_file"; then
bec39cab
AC
1757 # Some versions of bash will fail to source /dev/null (special
1758 # files actually), so we avoid doing that.
1759 if test -f "$cache_file"; then
1760 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1761echo "$as_me: loading cache $cache_file" >&6;}
1762 case $cache_file in
1763 [\\/]* | ?:[\\/]* ) . $cache_file;;
1764 *) . ./$cache_file;;
1765 esac
1766 fi
c906108c 1767else
bec39cab
AC
1768 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1769echo "$as_me: creating cache $cache_file" >&6;}
1770 >$cache_file
1771fi
1772
1773# Check that the precious variables saved in the cache have kept the same
1774# value.
1775ac_cache_corrupted=false
4e8d927d 1776for ac_var in $ac_precious_vars; do
bec39cab
AC
1777 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1778 eval ac_new_set=\$ac_env_${ac_var}_set
4e8d927d
DJ
1779 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1780 eval ac_new_val=\$ac_env_${ac_var}_value
bec39cab
AC
1781 case $ac_old_set,$ac_new_set in
1782 set,)
1783 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1784echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1785 ac_cache_corrupted=: ;;
1786 ,set)
1787 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1788echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1789 ac_cache_corrupted=: ;;
1790 ,);;
1791 *)
1792 if test "x$ac_old_val" != "x$ac_new_val"; then
1793 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1794echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1795 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1796echo "$as_me: former value: $ac_old_val" >&2;}
1797 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1798echo "$as_me: current value: $ac_new_val" >&2;}
1799 ac_cache_corrupted=:
1800 fi;;
1801 esac
1802 # Pass precious variables to config.status.
1803 if test "$ac_new_set" = set; then
1804 case $ac_new_val in
4e8d927d 1805 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1806 *) ac_arg=$ac_var=$ac_new_val ;;
1807 esac
1808 case " $ac_configure_args " in
1809 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1810 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1811 esac
1812 fi
1813done
1814if $ac_cache_corrupted; then
1815 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1816echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1817 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1818echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1819 { (exit 1); exit 1; }; }
c906108c
SS
1820fi
1821
c906108c
SS
1822
1823
bec39cab
AC
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
4e8d927d
DJ
1838ac_ext=c
1839ac_cpp='$CPP $CPPFLAGS'
1840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1842ac_compiler_gnu=$ac_cv_c_compiler_gnu
bec39cab
AC
1843
1844
4e8d927d 1845ac_config_headers="$ac_config_headers config.h:config.in"
bec39cab 1846
4e8d927d
DJ
1847{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1848echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1849 # Check whether --enable-maintainer-mode was given.
413ccac7 1850if test "${enable_maintainer_mode+set}" = set; then
4e8d927d 1851 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1852else
1853 USE_MAINTAINER_MODE=no
4e8d927d
DJ
1854fi
1855
1856 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1857echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
413ccac7 1858
413ccac7
AC
1859
1860if test $USE_MAINTAINER_MODE = yes; then
1861 MAINTAINER_MODE_TRUE=
1862 MAINTAINER_MODE_FALSE='#'
1863else
1864 MAINTAINER_MODE_TRUE='#'
1865 MAINTAINER_MODE_FALSE=
1866fi
85981d60 1867
413ccac7 1868 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1869
c906108c 1870
bec39cab
AC
1871
1872ac_ext=c
1873ac_cpp='$CPP $CPPFLAGS'
1874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1876ac_compiler_gnu=$ac_cv_c_compiler_gnu
1877if test -n "$ac_tool_prefix"; then
1878 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1879set dummy ${ac_tool_prefix}gcc; ac_word=$2
4e8d927d
DJ
1880{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
1882if test "${ac_cv_prog_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884else
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1887else
1888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889for as_dir in $PATH
1890do
1891 IFS=$as_save_IFS
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 1894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
1895 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 break 2
1898 fi
1899done
1900done
4e8d927d 1901IFS=$as_save_IFS
bec39cab
AC
1902
1903fi
1904fi
1905CC=$ac_cv_prog_CC
1906if test -n "$CC"; then
4e8d927d
DJ
1907 { echo "$as_me:$LINENO: result: $CC" >&5
1908echo "${ECHO_T}$CC" >&6; }
bec39cab 1909else
4e8d927d
DJ
1910 { echo "$as_me:$LINENO: result: no" >&5
1911echo "${ECHO_T}no" >&6; }
bec39cab
AC
1912fi
1913
4e8d927d 1914
bec39cab
AC
1915fi
1916if test -z "$ac_cv_prog_CC"; then
1917 ac_ct_CC=$CC
1918 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1919set dummy gcc; ac_word=$2
4e8d927d
DJ
1920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
1922if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925 if test -n "$ac_ct_CC"; then
1926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1927else
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931 IFS=$as_save_IFS
1932 test -z "$as_dir" && as_dir=.
1933 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 1934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
1935 ac_cv_prog_ac_ct_CC="gcc"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 break 2
1938 fi
1939done
1940done
4e8d927d 1941IFS=$as_save_IFS
bec39cab
AC
1942
1943fi
1944fi
1945ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946if test -n "$ac_ct_CC"; then
4e8d927d
DJ
1947 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948echo "${ECHO_T}$ac_ct_CC" >&6; }
bec39cab 1949else
4e8d927d
DJ
1950 { echo "$as_me:$LINENO: result: no" >&5
1951echo "${ECHO_T}no" >&6; }
bec39cab
AC
1952fi
1953
4e8d927d
DJ
1954 if test "x$ac_ct_CC" = x; then
1955 CC=""
1956 else
1957 case $cross_compiling:$ac_tool_warned in
1958yes:)
1959{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1960whose name does not start with the host triplet. If you think this
1961configuration is useful to you, please write to autoconf@gnu.org." >&5
1962echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1963whose name does not start with the host triplet. If you think this
1964configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1965ac_tool_warned=yes ;;
1966esac
1967 CC=$ac_ct_CC
1968 fi
bec39cab
AC
1969else
1970 CC="$ac_cv_prog_CC"
1971fi
1972
1973if test -z "$CC"; then
4e8d927d
DJ
1974 if test -n "$ac_tool_prefix"; then
1975 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1976set dummy ${ac_tool_prefix}cc; ac_word=$2
4e8d927d
DJ
1977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
1979if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1981else
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1984else
bec39cab
AC
1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986for as_dir in $PATH
1987do
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 1991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
1992 ac_cv_prog_CC="${ac_tool_prefix}cc"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 break 2
1995 fi
1996done
1997done
4e8d927d 1998IFS=$as_save_IFS
bec39cab 1999
c906108c
SS
2000fi
2001fi
bec39cab 2002CC=$ac_cv_prog_CC
c906108c 2003if test -n "$CC"; then
4e8d927d
DJ
2004 { echo "$as_me:$LINENO: result: $CC" >&5
2005echo "${ECHO_T}$CC" >&6; }
c906108c 2006else
4e8d927d
DJ
2007 { echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6; }
c906108c
SS
2009fi
2010
bec39cab 2011
4e8d927d 2012 fi
bec39cab 2013fi
c906108c
SS
2014if test -z "$CC"; then
2015 # Extract the first word of "cc", so it can be a program name with args.
2016set dummy cc; ac_word=$2
4e8d927d
DJ
2017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
2019if test "${ac_cv_prog_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2021else
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2024else
c906108c 2025 ac_prog_rejected=no
bec39cab
AC
2026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027for as_dir in $PATH
2028do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
2033 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2034 ac_prog_rejected=yes
2035 continue
2036 fi
2037 ac_cv_prog_CC="cc"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2040 fi
2041done
2042done
4e8d927d 2043IFS=$as_save_IFS
bec39cab 2044
c906108c
SS
2045if test $ac_prog_rejected = yes; then
2046 # We found a bogon in the path, so make sure we never use it.
2047 set dummy $ac_cv_prog_CC
2048 shift
bec39cab 2049 if test $# != 0; then
c906108c
SS
2050 # We chose a different compiler from the bogus one.
2051 # However, it has the same basename, so the bogon will be chosen
2052 # first if we set CC to just the basename; use the full file name.
2053 shift
bec39cab 2054 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
2055 fi
2056fi
2057fi
2058fi
bec39cab 2059CC=$ac_cv_prog_CC
c906108c 2060if test -n "$CC"; then
4e8d927d
DJ
2061 { echo "$as_me:$LINENO: result: $CC" >&5
2062echo "${ECHO_T}$CC" >&6; }
c906108c 2063else
4e8d927d
DJ
2064 { echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6; }
c906108c
SS
2066fi
2067
4e8d927d 2068
bec39cab
AC
2069fi
2070if test -z "$CC"; then
2071 if test -n "$ac_tool_prefix"; then
4e8d927d 2072 for ac_prog in cl.exe
bec39cab
AC
2073 do
2074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2075set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4e8d927d
DJ
2076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
2078if test "${ac_cv_prog_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2080else
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2083else
bec39cab
AC
2084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085for as_dir in $PATH
2086do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 2090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
2091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 break 2
2094 fi
2095done
2096done
4e8d927d 2097IFS=$as_save_IFS
bec39cab 2098
c906108c
SS
2099fi
2100fi
bec39cab 2101CC=$ac_cv_prog_CC
c906108c 2102if test -n "$CC"; then
4e8d927d
DJ
2103 { echo "$as_me:$LINENO: result: $CC" >&5
2104echo "${ECHO_T}$CC" >&6; }
c906108c 2105else
4e8d927d
DJ
2106 { echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6; }
c906108c 2108fi
bec39cab 2109
4e8d927d 2110
bec39cab
AC
2111 test -n "$CC" && break
2112 done
2113fi
2114if test -z "$CC"; then
2115 ac_ct_CC=$CC
4e8d927d 2116 for ac_prog in cl.exe
bec39cab
AC
2117do
2118 # Extract the first word of "$ac_prog", so it can be a program name with args.
2119set dummy $ac_prog; ac_word=$2
4e8d927d
DJ
2120{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
2122if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
2125 if test -n "$ac_ct_CC"; then
2126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2127else
2128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129for as_dir in $PATH
2130do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 2134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
2135 ac_cv_prog_ac_ct_CC="$ac_prog"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 break 2
c906108c 2138 fi
bec39cab
AC
2139done
2140done
4e8d927d 2141IFS=$as_save_IFS
bec39cab
AC
2142
2143fi
2144fi
2145ac_ct_CC=$ac_cv_prog_ac_ct_CC
2146if test -n "$ac_ct_CC"; then
4e8d927d
DJ
2147 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2148echo "${ECHO_T}$ac_ct_CC" >&6; }
bec39cab 2149else
4e8d927d
DJ
2150 { echo "$as_me:$LINENO: result: no" >&5
2151echo "${ECHO_T}no" >&6; }
c906108c
SS
2152fi
2153
4e8d927d 2154
bec39cab
AC
2155 test -n "$ac_ct_CC" && break
2156done
c906108c 2157
4e8d927d
DJ
2158 if test "x$ac_ct_CC" = x; then
2159 CC=""
2160 else
2161 case $cross_compiling:$ac_tool_warned in
2162yes:)
2163{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2164whose name does not start with the host triplet. If you think this
2165configuration is useful to you, please write to autoconf@gnu.org." >&5
2166echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2167whose name does not start with the host triplet. If you think this
2168configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2169ac_tool_warned=yes ;;
2170esac
2171 CC=$ac_ct_CC
2172 fi
bec39cab
AC
2173fi
2174
2175fi
2176
2177
2178test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2179See \`config.log' for more details." >&5
2180echo "$as_me: error: no acceptable C compiler found in \$PATH
2181See \`config.log' for more details." >&2;}
2182 { (exit 1); exit 1; }; }
2183
2184# Provide some information about the compiler.
4e8d927d 2185echo "$as_me:$LINENO: checking for C compiler version" >&5
bec39cab 2186ac_compiler=`set X $ac_compile; echo $2`
4e8d927d
DJ
2187{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2188 (eval $ac_compiler --version >&5) 2>&5
bec39cab
AC
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }
4e8d927d
DJ
2192{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2193 (eval $ac_compiler -v >&5) 2>&5
bec39cab
AC
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }
4e8d927d
DJ
2197{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2198 (eval $ac_compiler -V >&5) 2>&5
bec39cab
AC
2199 ac_status=$?
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }
2202
4e8d927d
DJ
2203
2204# List of possible output files. We want to start from the most likely,
2205# but we have to check foo.exe before foo, because Cygwin `test -f' looks
2206# also for foo.exe. b.out is created by i960 compilers.
2207# As a last resort, we also try wildcards: `conftest.*' and `a.*'.
2208# But we are not allowed to rm a.*, and we do not want always remove
2209# conftest.*, so we will list them literally, when appropriate.
2210ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out"
2211
2212# The IRIX 6 linker writes into existing files which may not be
2213# executable, retaining their permissions. Remove them first so a
2214# subsequent execution test works.
2215rm -f $ac_outfiles conftest.*
2216
bec39cab
AC
2217cat >conftest.$ac_ext <<_ACEOF
2218/* confdefs.h. */
2219_ACEOF
2220cat confdefs.h >>conftest.$ac_ext
2221cat >>conftest.$ac_ext <<_ACEOF
2222/* end confdefs.h. */
2223
2224int
2225main ()
2226{
2227
2228 ;
2229 return 0;
2230}
2231_ACEOF
4e8d927d 2232
bec39cab 2233ac_clean_files_save=$ac_clean_files
4e8d927d
DJ
2234ac_clean_files="$ac_clean_files $ac_outfiles"
2235
2236# The following tests should remove their output except files matching conftest.*.
bec39cab
AC
2237# Try to create an executable without -o first, disregard a.out.
2238# It will help us diagnose broken compilers, and finding out an intuition
2239# of exeext.
4e8d927d
DJ
2240{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2241echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
bec39cab 2242ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4e8d927d 2243
bec39cab
AC
2244if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2245 (eval $ac_link_default) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; then
4e8d927d 2249 for ac_file in $ac_outfiles a.* conftest.* NO
bec39cab
AC
2250do
2251 test -f "$ac_file" || continue
2252 case $ac_file in
4e8d927d
DJ
2253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2254 * ) break;;
bec39cab
AC
2255 esac
2256done
4e8d927d
DJ
2257if test "$ac_file" = NO; then
2258 { { echo "$as_me:$LINENO: error: no output file found
2259See \`config.log' for more details." >&5
2260echo "$as_me: error: no output file found
2261See \`config.log' for more details." >&2;}
2262 { (exit 1); exit 1; }; }
2263fi
2264
2265
bec39cab
AC
2266else
2267 echo "$as_me: failed program was:" >&5
2268sed 's/^/| /' conftest.$ac_ext >&5
2269
2270{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2271See \`config.log' for more details." >&5
2272echo "$as_me: error: C compiler cannot create executables
2273See \`config.log' for more details." >&2;}
2274 { (exit 77); exit 77; }; }
2275fi
2276
4e8d927d
DJ
2277{ echo "$as_me:$LINENO: result: $ac_file" >&5
2278echo "${ECHO_T}$ac_file" >&6; }
2279# Check that the compiler produces executables we can run. If not, either
bec39cab 2280# the compiler is broken, or we cross compile.
4e8d927d
DJ
2281{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2282echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
bec39cab
AC
2283# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2284# If not cross compiling, check that we can run a simple program.
2285if test "$cross_compiling" != yes; then
2286 if { ac_try='./$ac_file'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2292 cross_compiling=no
c906108c 2293 else
bec39cab
AC
2294 if test "$cross_compiling" = maybe; then
2295 cross_compiling=yes
2296 else
2297 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2298If you meant to cross compile, use \`--host'.
2299See \`config.log' for more details." >&5
2300echo "$as_me: error: cannot run C compiled programs.
2301If you meant to cross compile, use \`--host'.
2302See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; }
2304 fi
c906108c 2305 fi
bec39cab 2306fi
4e8d927d
DJ
2307{ echo "$as_me:$LINENO: result: yes" >&5
2308echo "${ECHO_T}yes" >&6; }
bec39cab 2309
4e8d927d
DJ
2310# Clean up; list also $ac_file, in case it matched a wildcard entry.
2311rm -f $ac_outfiles $ac_file
bec39cab 2312
4e8d927d
DJ
2313{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2314echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2315{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2316echo "${ECHO_T}$cross_compiling" >&6; }
2317
2318{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2319echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2320if test "${ac_cv_exeext+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322else
2323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
2324 (eval $ac_link) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
4e8d927d
DJ
2328 # If both `conftest.exe' and `conftest' are `present' (well, observable),
2329 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2330 # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'.
2331 for ac_file in conftest.exe conftest conftest.* NO; do
2332 test -f "$ac_file" || continue
2333 case $ac_file in
2334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2336 break;;
2337 * ) break;;
2338 esac
2339 done
2340 if test "$ac_file" = NO; then
2341 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found
2342See \`config.log' for more details." >&5
2343echo "$as_me: error: cannot compute suffix of executables: no output file found
2344See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
2346fi
2347
2348 # Clean up; list also $ac_file, in case it matched conftest.*.
2349 rm -f $ac_outfiles $ac_file
2350
c906108c 2351else
bec39cab
AC
2352 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2353See \`config.log' for more details." >&5
2354echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2355See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
4e8d927d 2357
c906108c 2358fi
c906108c 2359
c906108c 2360
4e8d927d
DJ
2361fi
2362{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2363echo "${ECHO_T}$ac_cv_exeext" >&6; }
bec39cab
AC
2364EXEEXT=$ac_cv_exeext
2365ac_exeext=$EXEEXT
4e8d927d
DJ
2366
2367
2368ac_clean_files=$ac_clean_files_save
2369
2370{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2371echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
bec39cab
AC
2372if test "${ac_cv_objext+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2374else
4e8d927d 2375 rm -f conftest.o conftest.obj
bec39cab
AC
2376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; then
4e8d927d
DJ
2381 for ac_file in conftest.o conftest.obj conftest.*; do
2382 test -f "$ac_file" || continue;
bec39cab 2383 case $ac_file in
4e8d927d 2384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
bec39cab
AC
2385 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2386 break;;
2387 esac
2388done
c906108c 2389else
bec39cab
AC
2390 echo "$as_me: failed program was:" >&5
2391sed 's/^/| /' conftest.$ac_ext >&5
2392
2393{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2394See \`config.log' for more details." >&5
2395echo "$as_me: error: cannot compute suffix of object files: cannot compile
2396See \`config.log' for more details." >&2;}
2397 { (exit 1); exit 1; }; }
c906108c
SS
2398fi
2399
bec39cab 2400fi
4e8d927d
DJ
2401{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2402echo "${ECHO_T}$ac_cv_objext" >&6; }
bec39cab
AC
2403OBJEXT=$ac_cv_objext
2404ac_objext=$OBJEXT
4e8d927d
DJ
2405
2406
2407rm -f conftest.*
2408{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2409echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
bec39cab
AC
2410if test "${ac_cv_c_compiler_gnu+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2412else
bec39cab
AC
2413 cat >conftest.$ac_ext <<_ACEOF
2414/* confdefs.h. */
2415_ACEOF
2416cat confdefs.h >>conftest.$ac_ext
2417cat >>conftest.$ac_ext <<_ACEOF
2418/* end confdefs.h. */
2419
2420int
2421main ()
2422{
2423#ifndef __GNUC__
2424 choke me
2425#endif
2426
2427 ;
2428 return 0;
2429}
2430_ACEOF
2431rm -f conftest.$ac_objext
2432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>conftest.er1
2434 ac_status=$?
2435 grep -v '^ *+' conftest.er1 >conftest.err
2436 rm -f conftest.er1
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } &&
121ce6e5 2440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 (eval $ac_try) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2452 ac_compiler_gnu=yes
2453else
2454 echo "$as_me: failed program was:" >&5
2455sed 's/^/| /' conftest.$ac_ext >&5
2456
4e8d927d 2457 ac_compiler_gnu=no
bec39cab 2458fi
4e8d927d 2459
bec39cab
AC
2460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2461ac_cv_c_compiler_gnu=$ac_compiler_gnu
2462
2463fi
4e8d927d
DJ
2464{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2465echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
bec39cab
AC
2466GCC=`test $ac_compiler_gnu = yes && echo yes`
2467ac_test_CFLAGS=${CFLAGS+set}
2468ac_save_CFLAGS=$CFLAGS
4e8d927d
DJ
2469{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2470echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
bec39cab
AC
2471if test "${ac_cv_prog_cc_g+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
4e8d927d
DJ
2474 ac_save_c_werror_flag=$ac_c_werror_flag
2475 ac_c_werror_flag=yes
2476 ac_cv_prog_cc_g=no
2477 CFLAGS="-g"
2478 cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h. */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h. */
2484
2485int
2486main ()
2487{
2488
2489 ;
2490 return 0;
2491}
2492_ACEOF
2493rm -f conftest.$ac_objext
2494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; } &&
2508 { ac_try='test -s conftest.$ac_objext'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2514 ac_cv_prog_cc_g=yes
2515else
2516 echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5
2518
2519 CFLAGS=""
2520 cat >conftest.$ac_ext <<_ACEOF
2521/* confdefs.h. */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h. */
2526
2527int
2528main ()
2529{
2530
2531 ;
2532 return 0;
2533}
2534_ACEOF
2535rm -f conftest.$ac_objext
2536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>conftest.er1
2538 ac_status=$?
2539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } &&
2544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 (eval $ac_try) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 (eval $ac_try) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2556 :
2557else
2558 echo "$as_me: failed program was:" >&5
2559sed 's/^/| /' conftest.$ac_ext >&5
2560
2561 ac_c_werror_flag=$ac_save_c_werror_flag
2562 CFLAGS="-g"
2563 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
2564/* confdefs.h. */
2565_ACEOF
2566cat confdefs.h >>conftest.$ac_ext
2567cat >>conftest.$ac_ext <<_ACEOF
2568/* end confdefs.h. */
2569
2570int
2571main ()
2572{
2573
2574 ;
2575 return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext
2579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
121ce6e5 2587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
c906108c
SS
2599 ac_cv_prog_cc_g=yes
2600else
bec39cab
AC
2601 echo "$as_me: failed program was:" >&5
2602sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2603
4e8d927d
DJ
2604
2605fi
2606
2607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2608fi
4e8d927d
DJ
2609
2610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2611fi
2612
bec39cab 2613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d 2614 ac_c_werror_flag=$ac_save_c_werror_flag
bec39cab 2615fi
4e8d927d
DJ
2616{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2617echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
c906108c 2618if test "$ac_test_CFLAGS" = set; then
bec39cab 2619 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2620elif test $ac_cv_prog_cc_g = yes; then
2621 if test "$GCC" = yes; then
2622 CFLAGS="-g -O2"
2623 else
2624 CFLAGS="-g"
2625 fi
2626else
2627 if test "$GCC" = yes; then
2628 CFLAGS="-O2"
2629 else
2630 CFLAGS=
2631 fi
2632fi
4e8d927d
DJ
2633{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2634echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2635if test "${ac_cv_prog_cc_c89+set}" = set; then
bec39cab
AC
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637else
4e8d927d 2638 ac_cv_prog_cc_c89=no
bec39cab
AC
2639ac_save_CC=$CC
2640cat >conftest.$ac_ext <<_ACEOF
2641/* confdefs.h. */
2642_ACEOF
2643cat confdefs.h >>conftest.$ac_ext
2644cat >>conftest.$ac_ext <<_ACEOF
2645/* end confdefs.h. */
c906108c
SS
2646#include <stdarg.h>
2647#include <stdio.h>
2648#include <sys/types.h>
2649#include <sys/stat.h>
2650/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2651struct buf { int x; };
2652FILE * (*rcsopen) (struct buf *, struct stat *, int);
2653static char *e (p, i)
2654 char **p;
2655 int i;
2656{
2657 return p[i];
2658}
2659static char *f (char * (*g) (char **, int), char **p, ...)
2660{
2661 char *s;
2662 va_list v;
2663 va_start (v,p);
2664 s = g (p, va_arg (v,int));
2665 va_end (v);
2666 return s;
2667}
bec39cab
AC
2668
2669/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2670 function prototypes and stuff, but not '\xHH' hex character constants.
2671 These don't provoke an error unfortunately, instead are silently treated
4e8d927d 2672 as 'x'. The following induces an error, until -std is added to get
bec39cab
AC
2673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2674 array size at least. It's necessary to write '\x00'==0 to get something
4e8d927d 2675 that's true only with -std. */
bec39cab
AC
2676int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2677
c906108c
SS
2678int test (int i, double x);
2679struct s1 {int (*f) (int a);};
2680struct s2 {int (*f) (double a);};
2681int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2682int argc;
2683char **argv;
bec39cab
AC
2684int
2685main ()
2686{
c906108c 2687return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2688 ;
2689 return 0;
2690}
2691_ACEOF
4e8d927d
DJ
2692for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2694do
2695 CC="$ac_save_CC $ac_arg"
2696 rm -f conftest.$ac_objext
2697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>conftest.er1
2699 ac_status=$?
2700 grep -v '^ *+' conftest.er1 >conftest.err
2701 rm -f conftest.er1
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
121ce6e5 2705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
4e8d927d 2717 ac_cv_prog_cc_c89=$ac_arg
c906108c 2718else
bec39cab
AC
2719 echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
4e8d927d 2722
c906108c 2723fi
4e8d927d 2724
bec39cab 2725rm -f conftest.err conftest.$ac_objext
4e8d927d 2726 test "x$ac_cv_prog_cc_c89" != "xno" && break
c906108c 2727done
4e8d927d 2728rm -f conftest.$ac_ext
bec39cab 2729CC=$ac_save_CC
c906108c
SS
2730
2731fi
4e8d927d
DJ
2732# AC_CACHE_VAL
2733case "x$ac_cv_prog_cc_c89" in
2734 x)
2735 { echo "$as_me:$LINENO: result: none needed" >&5
2736echo "${ECHO_T}none needed" >&6; } ;;
2737 xno)
2738 { echo "$as_me:$LINENO: result: unsupported" >&5
2739echo "${ECHO_T}unsupported" >&6; } ;;
bec39cab 2740 *)
4e8d927d
DJ
2741 CC="$CC $ac_cv_prog_cc_c89"
2742 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2743echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
c906108c
SS
2744esac
2745
c906108c 2746
bec39cab
AC
2747ac_ext=c
2748ac_cpp='$CPP $CPPFLAGS'
2749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2752
60ca704f 2753
bec39cab
AC
2754cat >>confdefs.h <<\_ACEOF
2755#define _GNU_SOURCE 1
2756_ACEOF
c906108c
SS
2757
2758
8bb2c122 2759
bec39cab
AC
2760ac_ext=c
2761ac_cpp='$CPP $CPPFLAGS'
2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764ac_compiler_gnu=$ac_cv_c_compiler_gnu
4e8d927d
DJ
2765{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2766echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
bec39cab
AC
2767# On Suns, sometimes $CPP names a directory.
2768if test -n "$CPP" && test -d "$CPP"; then
2769 CPP=
8bb2c122 2770fi
bec39cab
AC
2771if test -z "$CPP"; then
2772 if test "${ac_cv_prog_CPP+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774else
2775 # Double quotes because CPP needs to be expanded
2776 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2777 do
2778 ac_preproc_ok=false
2779for ac_c_preproc_warn_flag in '' yes
2780do
2781 # Use a header file that comes with gcc, so configuring glibc
2782 # with a fresh cross-compiler works.
2783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2784 # <limits.h> exists even on freestanding compilers.
2785 # On the NeXT, cc -E runs the code through the compiler's parser,
2786 # not just through cpp. "Syntax error" is here to catch this case.
2787 cat >conftest.$ac_ext <<_ACEOF
2788/* confdefs.h. */
2789_ACEOF
2790cat confdefs.h >>conftest.$ac_ext
2791cat >>conftest.$ac_ext <<_ACEOF
2792/* end confdefs.h. */
2793#ifdef __STDC__
2794# include <limits.h>
2795#else
2796# include <assert.h>
2797#endif
2798 Syntax error
2799_ACEOF
2800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } >/dev/null; then
2808 if test -s conftest.err; then
2809 ac_cpp_err=$ac_c_preproc_warn_flag
2810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2811 else
2812 ac_cpp_err=
2813 fi
8bb2c122 2814else
bec39cab 2815 ac_cpp_err=yes
8bb2c122 2816fi
bec39cab
AC
2817if test -z "$ac_cpp_err"; then
2818 :
8bb2c122 2819else
bec39cab
AC
2820 echo "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
2823 # Broken: fails on valid input.
2824continue
2825fi
4e8d927d 2826
bec39cab
AC
2827rm -f conftest.err conftest.$ac_ext
2828
4e8d927d 2829 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab
AC
2830 # can be detected and how.
2831 cat >conftest.$ac_ext <<_ACEOF
2832/* confdefs.h. */
2833_ACEOF
2834cat confdefs.h >>conftest.$ac_ext
2835cat >>conftest.$ac_ext <<_ACEOF
2836/* end confdefs.h. */
2837#include <ac_nonexistent.h>
2838_ACEOF
2839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2841 ac_status=$?
2842 grep -v '^ *+' conftest.er1 >conftest.err
2843 rm -f conftest.er1
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } >/dev/null; then
2847 if test -s conftest.err; then
2848 ac_cpp_err=$ac_c_preproc_warn_flag
2849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2850 else
2851 ac_cpp_err=
2852 fi
8bb2c122 2853else
bec39cab 2854 ac_cpp_err=yes
8bb2c122 2855fi
bec39cab
AC
2856if test -z "$ac_cpp_err"; then
2857 # Broken: success on invalid input.
2858continue
8bb2c122 2859else
bec39cab
AC
2860 echo "$as_me: failed program was:" >&5
2861sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2862
bec39cab
AC
2863 # Passes both tests.
2864ac_preproc_ok=:
2865break
8bb2c122 2866fi
4e8d927d 2867
bec39cab 2868rm -f conftest.err conftest.$ac_ext
8bb2c122 2869
bec39cab
AC
2870done
2871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2872rm -f conftest.err conftest.$ac_ext
2873if $ac_preproc_ok; then
2874 break
2875fi
8bb2c122 2876
bec39cab
AC
2877 done
2878 ac_cv_prog_CPP=$CPP
ddc9cd0f 2879
c906108c 2880fi
bec39cab
AC
2881 CPP=$ac_cv_prog_CPP
2882else
2883 ac_cv_prog_CPP=$CPP
c906108c 2884fi
4e8d927d
DJ
2885{ echo "$as_me:$LINENO: result: $CPP" >&5
2886echo "${ECHO_T}$CPP" >&6; }
bec39cab
AC
2887ac_preproc_ok=false
2888for ac_c_preproc_warn_flag in '' yes
2889do
2890 # Use a header file that comes with gcc, so configuring glibc
2891 # with a fresh cross-compiler works.
2892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2893 # <limits.h> exists even on freestanding compilers.
2894 # On the NeXT, cc -E runs the code through the compiler's parser,
2895 # not just through cpp. "Syntax error" is here to catch this case.
2896 cat >conftest.$ac_ext <<_ACEOF
2897/* confdefs.h. */
2898_ACEOF
2899cat confdefs.h >>conftest.$ac_ext
2900cat >>conftest.$ac_ext <<_ACEOF
2901/* end confdefs.h. */
2902#ifdef __STDC__
2903# include <limits.h>
2904#else
2905# include <assert.h>
2906#endif
2907 Syntax error
2908_ACEOF
2909if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2911 ac_status=$?
2912 grep -v '^ *+' conftest.er1 >conftest.err
2913 rm -f conftest.er1
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } >/dev/null; then
2917 if test -s conftest.err; then
2918 ac_cpp_err=$ac_c_preproc_warn_flag
2919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2920 else
2921 ac_cpp_err=
2922 fi
c906108c 2923else
bec39cab 2924 ac_cpp_err=yes
c906108c 2925fi
bec39cab
AC
2926if test -z "$ac_cpp_err"; then
2927 :
c906108c 2928else
bec39cab
AC
2929 echo "$as_me: failed program was:" >&5
2930sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 # Broken: fails on valid input.
2933continue
2934fi
4e8d927d 2935
bec39cab
AC
2936rm -f conftest.err conftest.$ac_ext
2937
4e8d927d 2938 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab
AC
2939 # can be detected and how.
2940 cat >conftest.$ac_ext <<_ACEOF
2941/* confdefs.h. */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
2945/* end confdefs.h. */
2946#include <ac_nonexistent.h>
2947_ACEOF
2948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 ac_status=$?
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } >/dev/null; then
2956 if test -s conftest.err; then
2957 ac_cpp_err=$ac_c_preproc_warn_flag
2958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959 else
2960 ac_cpp_err=
2961 fi
c906108c 2962else
bec39cab 2963 ac_cpp_err=yes
c906108c 2964fi
bec39cab
AC
2965if test -z "$ac_cpp_err"; then
2966 # Broken: success on invalid input.
2967continue
c906108c 2968else
bec39cab
AC
2969 echo "$as_me: failed program was:" >&5
2970sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2971
bec39cab
AC
2972 # Passes both tests.
2973ac_preproc_ok=:
2974break
c906108c 2975fi
4e8d927d 2976
bec39cab 2977rm -f conftest.err conftest.$ac_ext
c906108c 2978
bec39cab
AC
2979done
2980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2981rm -f conftest.err conftest.$ac_ext
2982if $ac_preproc_ok; then
c906108c
SS
2983 :
2984else
bec39cab
AC
2985 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2986See \`config.log' for more details." >&5
2987echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2988See \`config.log' for more details." >&2;}
2989 { (exit 1); exit 1; }; }
c906108c 2990fi
c906108c 2991
bec39cab
AC
2992ac_ext=c
2993ac_cpp='$CPP $CPPFLAGS'
2994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997
2998
4e8d927d
DJ
2999{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3000echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3001if test "${ac_cv_path_GREP+set}" = set; then
bec39cab
AC
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3003else
4e8d927d
DJ
3004 # Extract the first word of "grep ggrep" to use in msg output
3005if test -z "$GREP"; then
3006set dummy grep ggrep; ac_prog_name=$2
3007if test "${ac_cv_path_GREP+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009else
3010 ac_path_GREP_found=false
3011# Loop through the user's path and test for each of PROGNAME-LIST
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3014do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_prog in grep ggrep; do
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3020 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3021 # Check for GNU ac_path_GREP and select it if it is found.
3022 # Check for GNU $ac_path_GREP
3023case `"$ac_path_GREP" --version 2>&1` in
3024*GNU*)
3025 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3026*)
3027 ac_count=0
3028 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3029 while :
3030 do
3031 cat "conftest.in" "conftest.in" >"conftest.tmp"
3032 mv "conftest.tmp" "conftest.in"
3033 cp "conftest.in" "conftest.nl"
3034 echo 'GREP' >> "conftest.nl"
3035 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3037 ac_count=`expr $ac_count + 1`
3038 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3039 # Best one so far, save it but keep looking for a better one
3040 ac_cv_path_GREP="$ac_path_GREP"
3041 ac_path_GREP_max=$ac_count
3042 fi
3043 # 10*(2^10) chars as input seems more than enough
3044 test $ac_count -gt 10 && break
3045 done
3046 rm -f conftest.*;;
3047esac
3048
3049
3050 $ac_path_GREP_found && break 3
3051 done
3052done
3053
3054done
3055IFS=$as_save_IFS
3056
3057
3058fi
3059
3060GREP="$ac_cv_path_GREP"
3061if test -z "$GREP"; then
3062 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3063echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3064 { (exit 1); exit 1; }; }
3065fi
3066
3067else
3068 ac_cv_path_GREP=$GREP
3069fi
3070
3071
3072fi
3073{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3074echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3075 GREP="$ac_cv_path_GREP"
3076
3077
3078{ echo "$as_me:$LINENO: checking for egrep" >&5
3079echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3080if test "${ac_cv_path_EGREP+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082else
3083 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3084 then ac_cv_path_EGREP="$GREP -E"
3085 else
3086 # Extract the first word of "egrep" to use in msg output
3087if test -z "$EGREP"; then
3088set dummy egrep; ac_prog_name=$2
3089if test "${ac_cv_path_EGREP+set}" = set; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3091else
3092 ac_path_EGREP_found=false
3093# Loop through the user's path and test for each of PROGNAME-LIST
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_prog in egrep; do
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3102 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3103 # Check for GNU ac_path_EGREP and select it if it is found.
3104 # Check for GNU $ac_path_EGREP
3105case `"$ac_path_EGREP" --version 2>&1` in
3106*GNU*)
3107 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3108*)
3109 ac_count=0
3110 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3111 while :
3112 do
3113 cat "conftest.in" "conftest.in" >"conftest.tmp"
3114 mv "conftest.tmp" "conftest.in"
3115 cp "conftest.in" "conftest.nl"
3116 echo 'EGREP' >> "conftest.nl"
3117 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3119 ac_count=`expr $ac_count + 1`
3120 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3121 # Best one so far, save it but keep looking for a better one
3122 ac_cv_path_EGREP="$ac_path_EGREP"
3123 ac_path_EGREP_max=$ac_count
bec39cab 3124 fi
4e8d927d
DJ
3125 # 10*(2^10) chars as input seems more than enough
3126 test $ac_count -gt 10 && break
3127 done
3128 rm -f conftest.*;;
3129esac
3130
3131
3132 $ac_path_EGREP_found && break 3
3133 done
3134done
3135
3136done
3137IFS=$as_save_IFS
3138
3139
3140fi
3141
3142EGREP="$ac_cv_path_EGREP"
3143if test -z "$EGREP"; then
3144 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3145echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3146 { (exit 1); exit 1; }; }
3147fi
3148
3149else
3150 ac_cv_path_EGREP=$EGREP
3151fi
3152
3153
3154 fi
c906108c 3155fi
4e8d927d
DJ
3156{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3157echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3158 EGREP="$ac_cv_path_EGREP"
c906108c 3159
bec39cab
AC
3160
3161
4e8d927d
DJ
3162{ echo "$as_me:$LINENO: checking for AIX" >&5
3163echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
bec39cab
AC
3164cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h. */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h. */
3170#ifdef _AIX
3171 yes
3172#endif
3173
3174_ACEOF
c906108c 3175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 3176 $EGREP "yes" >/dev/null 2>&1; then
4e8d927d
DJ
3177 { echo "$as_me:$LINENO: result: yes" >&5
3178echo "${ECHO_T}yes" >&6; }
bec39cab
AC
3179cat >>confdefs.h <<\_ACEOF
3180#define _ALL_SOURCE 1
3181_ACEOF
3182
c906108c 3183else
4e8d927d
DJ
3184 { echo "$as_me:$LINENO: result: no" >&5
3185echo "${ECHO_T}no" >&6; }
c906108c
SS
3186fi
3187rm -f conftest*
3188
c906108c 3189
4e8d927d
DJ
3190{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3191echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
bec39cab
AC
3192if test "${ac_cv_search_strerror+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3194else
bec39cab 3195 ac_func_search_save_LIBS=$LIBS
bec39cab
AC
3196cat >conftest.$ac_ext <<_ACEOF
3197/* confdefs.h. */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h. */
c906108c 3202
4e8d927d
DJ
3203/* Override any GCC internal prototype to avoid an error.
3204 Use char because int might match the return type of a GCC
bec39cab 3205 builtin and then its argument prototype would still apply. */
bec39cab
AC
3206#ifdef __cplusplus
3207extern "C"
3208#endif
bec39cab
AC
3209char strerror ();
3210int
3211main ()
3212{
4e8d927d 3213return strerror ();
bec39cab
AC
3214 ;
3215 return 0;
3216}
3217_ACEOF
4e8d927d
DJ
3218for ac_lib in '' cposix; do
3219 if test -z "$ac_lib"; then
3220 ac_res="none required"
3221 else
3222 ac_res=-l$ac_lib
3223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3224 fi
3225 rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
3226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3227 (eval $ac_link) 2>conftest.er1
3228 ac_status=$?
3229 grep -v '^ *+' conftest.er1 >conftest.err
3230 rm -f conftest.er1
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } &&
121ce6e5 3234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 (eval $ac_try) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; } &&
3240 { ac_try='test -s conftest$ac_exeext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 (eval $ac_try) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
4e8d927d 3246 ac_cv_search_strerror=$ac_res
c906108c 3247else
bec39cab
AC
3248 echo "$as_me: failed program was:" >&5
3249sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3250
4e8d927d 3251
c906108c 3252fi
4e8d927d 3253
bec39cab 3254rm -f conftest.err conftest.$ac_objext \
4e8d927d
DJ
3255 conftest$ac_exeext
3256 if test "${ac_cv_search_strerror+set}" = set; then
3257 break
3258fi
3259done
3260if test "${ac_cv_search_strerror+set}" = set; then
3261 :
3262else
3263 ac_cv_search_strerror=no
c906108c 3264fi
4e8d927d 3265rm conftest.$ac_ext
bec39cab 3266LIBS=$ac_func_search_save_LIBS
c906108c 3267fi
4e8d927d
DJ
3268{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3269echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3270ac_res=$ac_cv_search_strerror
3271if test "$ac_res" != no; then
3272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
bec39cab 3273
c906108c
SS
3274fi
3275
c906108c 3276
c906108c 3277
bec39cab 3278
4e8d927d
DJ
3279{ echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3280echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
bec39cab
AC
3281if test "${am_cv_prog_cc_stdc+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3283else
bec39cab
AC
3284 am_cv_prog_cc_stdc=no
3285ac_save_CC="$CC"
3286# Don't try gcc -ansi; that turns off useful extensions and
3287# breaks some systems' header files.
3288# AIX -qlanglvl=ansi
3289# Ultrix and OSF/1 -std1
3290# HP-UX 10.20 and later -Ae
3291# HP-UX older versions -Aa -D_HPUX_SOURCE
3292# SVR4 -Xc -D__EXTENSIONS__
3293for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3294do
3295 CC="$ac_save_CC $ac_arg"
3296 cat >conftest.$ac_ext <<_ACEOF
3297/* confdefs.h. */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h. */
3302#include <stdarg.h>
3303#include <stdio.h>
3304#include <sys/types.h>
3305#include <sys/stat.h>
3306/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3307struct buf { int x; };
3308FILE * (*rcsopen) (struct buf *, struct stat *, int);
3309static char *e (p, i)
3310 char **p;
3311 int i;
3312{
3313 return p[i];
3314}
3315static char *f (char * (*g) (char **, int), char **p, ...)
3316{
3317 char *s;
3318 va_list v;
3319 va_start (v,p);
3320 s = g (p, va_arg (v,int));
3321 va_end (v);
3322 return s;
3323}
3324int test (int i, double x);
3325struct s1 {int (*f) (int a);};
3326struct s2 {int (*f) (double a);};
3327int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3328int argc;
3329char **argv;
c906108c 3330
bec39cab
AC
3331int
3332main ()
3333{
c906108c 3334
bec39cab 3335return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 3336
bec39cab
AC
3337 ;
3338 return 0;
3339}
3340_ACEOF
3341rm -f conftest.$ac_objext
3342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>conftest.er1
3344 ac_status=$?
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
121ce6e5 3350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 3363else
bec39cab
AC
3364 echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3366
4e8d927d 3367
c906108c 3368fi
4e8d927d 3369
bec39cab
AC
3370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3371done
3372CC="$ac_save_CC"
c906108c
SS
3373
3374fi
3375
bec39cab 3376if test -z "$am_cv_prog_cc_stdc"; then
4e8d927d
DJ
3377 { echo "$as_me:$LINENO: result: none needed" >&5
3378echo "${ECHO_T}none needed" >&6; }
c906108c 3379else
4e8d927d
DJ
3380 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3381echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
c906108c 3382fi
bec39cab
AC
3383case "x$am_cv_prog_cc_stdc" in
3384 x|xno) ;;
3385 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3386esac
c906108c 3387
c906108c 3388
bec39cab
AC
3389ac_aux_dir=
3390for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
3391 if test -f $ac_dir/install-sh; then
3392 ac_aux_dir=$ac_dir
3393 ac_install_sh="$ac_aux_dir/install-sh -c"
3394 break
3395 elif test -f $ac_dir/install.sh; then
3396 ac_aux_dir=$ac_dir
3397 ac_install_sh="$ac_aux_dir/install.sh -c"
3398 break
3399 elif test -f $ac_dir/shtool; then
3400 ac_aux_dir=$ac_dir
3401 ac_install_sh="$ac_aux_dir/shtool install -c"
3402 break
3403 fi
3404done
3405if test -z "$ac_aux_dir"; then
3406 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
3407echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
3408 { (exit 1); exit 1; }; }
c906108c 3409fi
bec39cab
AC
3410ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3411ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3412ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 3413
bec39cab
AC
3414# Make sure we can run config.sub.
3415$ac_config_sub sun4 >/dev/null 2>&1 ||
3416 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3417echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3418 { (exit 1); exit 1; }; }
3419
4e8d927d
DJ
3420{ echo "$as_me:$LINENO: checking build system type" >&5
3421echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
bec39cab
AC
3422if test "${ac_cv_build+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424else
4e8d927d
DJ
3425 ac_build_alias=$build_alias
3426test "x$ac_build_alias" = x &&
3427 ac_build_alias=`$ac_config_guess`
3428test "x$ac_build_alias" = x &&
bec39cab
AC
3429 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3430echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3431 { (exit 1); exit 1; }; }
4e8d927d
DJ
3432ac_cv_build=`$ac_config_sub $ac_build_alias` ||
3433 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
3434echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
bec39cab
AC
3435 { (exit 1); exit 1; }; }
3436
3437fi
4e8d927d
DJ
3438{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3439echo "${ECHO_T}$ac_cv_build" >&6; }
3440case $ac_cv_build in
3441*-*-*) ;;
3442*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3443echo "$as_me: error: invalid value of canonical build" >&2;}
3444 { (exit 1); exit 1; }; };;
3445esac
bec39cab 3446build=$ac_cv_build
4e8d927d
DJ
3447ac_save_IFS=$IFS; IFS='-'
3448set x $ac_cv_build
3449shift
3450build_cpu=$1
3451build_vendor=$2
3452shift; shift
3453# Remember, the first character of IFS is used to create $*,
3454# except with old shells:
3455build_os=$*
3456IFS=$ac_save_IFS
3457case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
bec39cab
AC
3458
3459
4e8d927d
DJ
3460{ echo "$as_me:$LINENO: checking host system type" >&5
3461echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
bec39cab
AC
3462if test "${ac_cv_host+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
4e8d927d
DJ
3465 if test "x$host_alias" = x; then
3466 ac_cv_host=$ac_cv_build
3467else
3468 ac_cv_host=`$ac_config_sub $host_alias` ||
3469 { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
3470echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
bec39cab 3471 { (exit 1); exit 1; }; }
4e8d927d 3472fi
bec39cab
AC
3473
3474fi
4e8d927d
DJ
3475{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3476echo "${ECHO_T}$ac_cv_host" >&6; }
3477case $ac_cv_host in
3478*-*-*) ;;
3479*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3480echo "$as_me: error: invalid value of canonical host" >&2;}
3481 { (exit 1); exit 1; }; };;
3482esac
bec39cab 3483host=$ac_cv_host
4e8d927d
DJ
3484ac_save_IFS=$IFS; IFS='-'
3485set x $ac_cv_host
3486shift
3487host_cpu=$1
3488host_vendor=$2
3489shift; shift
3490# Remember, the first character of IFS is used to create $*,
3491# except with old shells:
3492host_os=$*
3493IFS=$ac_save_IFS
3494case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
bec39cab
AC
3495
3496
4e8d927d
DJ
3497{ echo "$as_me:$LINENO: checking target system type" >&5
3498echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
bec39cab
AC
3499if test "${ac_cv_target+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501else
4e8d927d
DJ
3502 if test "x$target_alias" = x; then
3503 ac_cv_target=$ac_cv_host
3504else
3505 ac_cv_target=`$ac_config_sub $target_alias` ||
3506 { { echo "$as_me:$LINENO: error: $ac_config_sub $target_alias failed" >&5
3507echo "$as_me: error: $ac_config_sub $target_alias failed" >&2;}
bec39cab 3508 { (exit 1); exit 1; }; }
4e8d927d 3509fi
bec39cab
AC
3510
3511fi
4e8d927d
DJ
3512{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3513echo "${ECHO_T}$ac_cv_target" >&6; }
3514case $ac_cv_target in
3515*-*-*) ;;
3516*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3517echo "$as_me: error: invalid value of canonical target" >&2;}
3518 { (exit 1); exit 1; }; };;
3519esac
bec39cab 3520target=$ac_cv_target
4e8d927d
DJ
3521ac_save_IFS=$IFS; IFS='-'
3522set x $ac_cv_target
3523shift
3524target_cpu=$1
3525target_vendor=$2
3526shift; shift
3527# Remember, the first character of IFS is used to create $*,
3528# except with old shells:
3529target_os=$*
3530IFS=$ac_save_IFS
3531case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c906108c 3532
c906108c 3533
bec39cab
AC
3534# The aliases save the names the user supplied, while $host etc.
3535# will get canonicalized.
3536test -n "$target_alias" &&
3537 test "$program_prefix$program_suffix$program_transform_name" = \
3538 NONENONEs,x,x, &&
3539 program_prefix=${target_alias}-
c906108c 3540
c906108c 3541
bec39cab
AC
3542CONFIG_OBS=
3543CONFIG_DEPS=
3544CONFIG_SRCS=
3545ENABLE_CFLAGS=
c906108c 3546
bec39cab
AC
3547CONFIG_ALL=
3548CONFIG_CLEAN=
3549CONFIG_INSTALL=
3550CONFIG_UNINSTALL=
3551
3552
4e8d927d
DJ
3553{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3554echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
bec39cab 3555set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4e8d927d 3556if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559 cat >conftest.make <<\_ACEOF
4e8d927d 3560SHELL = /bin/sh
bec39cab 3561all:
4e8d927d 3562 @echo 'ac_maketemp=X"$(MAKE)"'
bec39cab
AC
3563_ACEOF
3564# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3565eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4e8d927d 3566if test "$ac_maketemp" != X ; then
bec39cab 3567 eval ac_cv_prog_make_${ac_make}_set=yes
c906108c 3568else
bec39cab 3569 eval ac_cv_prog_make_${ac_make}_set=no
c906108c 3570fi
bec39cab
AC
3571rm -f conftest.make
3572fi
3573if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4e8d927d
DJ
3574 { echo "$as_me:$LINENO: result: yes" >&5
3575echo "${ECHO_T}yes" >&6; }
bec39cab
AC
3576 SET_MAKE=
3577else
4e8d927d
DJ
3578 { echo "$as_me:$LINENO: result: no" >&5
3579echo "${ECHO_T}no" >&6; }
bec39cab 3580 SET_MAKE="MAKE=${MAKE-make}"
c906108c
SS
3581fi
3582
bec39cab
AC
3583if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3585set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4e8d927d
DJ
3586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
3588if test "${ac_cv_prog_RANLIB+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590else
3591 if test -n "$RANLIB"; then
3592 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3593else
3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH
3596do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
3601 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605done
3606done
4e8d927d 3607IFS=$as_save_IFS
c906108c 3608
bec39cab
AC
3609fi
3610fi
3611RANLIB=$ac_cv_prog_RANLIB
3612if test -n "$RANLIB"; then
4e8d927d
DJ
3613 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3614echo "${ECHO_T}$RANLIB" >&6; }
c906108c 3615else
4e8d927d
DJ
3616 { echo "$as_me:$LINENO: result: no" >&5
3617echo "${ECHO_T}no" >&6; }
c906108c
SS
3618fi
3619
4e8d927d 3620
bec39cab
AC
3621fi
3622if test -z "$ac_cv_prog_RANLIB"; then
3623 ac_ct_RANLIB=$RANLIB
3624 # Extract the first word of "ranlib", so it can be a program name with args.
3625set dummy ranlib; ac_word=$2
4e8d927d
DJ
3626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
3628if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631 if test -n "$ac_ct_RANLIB"; then
3632 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3633else
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
3641 ac_cv_prog_ac_ct_RANLIB="ranlib"
3642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 break 2
3644 fi
3645done
c906108c 3646done
4e8d927d 3647IFS=$as_save_IFS
bec39cab 3648
bec39cab
AC
3649fi
3650fi
3651ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3652if test -n "$ac_ct_RANLIB"; then
4e8d927d
DJ
3653 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3654echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
bec39cab 3655else
4e8d927d
DJ
3656 { echo "$as_me:$LINENO: result: no" >&5
3657echo "${ECHO_T}no" >&6; }
c906108c
SS
3658fi
3659
4e8d927d
DJ
3660 if test "x$ac_ct_RANLIB" = x; then
3661 RANLIB=":"
3662 else
3663 case $cross_compiling:$ac_tool_warned in
3664yes:)
3665{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3666whose name does not start with the host triplet. If you think this
3667configuration is useful to you, please write to autoconf@gnu.org." >&5
3668echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3669whose name does not start with the host triplet. If you think this
3670configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3671ac_tool_warned=yes ;;
3672esac
3673 RANLIB=$ac_ct_RANLIB
3674 fi
c906108c 3675else
bec39cab
AC
3676 RANLIB="$ac_cv_prog_RANLIB"
3677fi
3678
4e8d927d
DJ
3679{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3680echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
bec39cab
AC
3681if test "${ac_cv_header_stdc+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3683else
bec39cab
AC
3684 cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h. */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
3689/* end confdefs.h. */
3690#include <stdlib.h>
3691#include <stdarg.h>
3692#include <string.h>
3693#include <float.h>
3694
3695int
c906108c
SS
3696main ()
3697{
bec39cab
AC
3698
3699 ;
3700 return 0;
c906108c 3701}
bec39cab
AC
3702_ACEOF
3703rm -f conftest.$ac_objext
3704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
121ce6e5 3712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; } &&
3718 { ac_try='test -s conftest.$ac_objext'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 ac_cv_header_stdc=yes
c906108c 3725else
bec39cab
AC
3726 echo "$as_me: failed program was:" >&5
3727sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3728
4e8d927d 3729 ac_cv_header_stdc=no
c906108c 3730fi
4e8d927d 3731
bec39cab 3732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3733
bec39cab
AC
3734if test $ac_cv_header_stdc = yes; then
3735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3736 cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h. */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h. */
3742#include <string.h>
c906108c 3743
bec39cab
AC
3744_ACEOF
3745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746 $EGREP "memchr" >/dev/null 2>&1; then
3747 :
c906108c 3748else
bec39cab 3749 ac_cv_header_stdc=no
c906108c 3750fi
bec39cab 3751rm -f conftest*
c906108c 3752
bec39cab 3753fi
c906108c 3754
bec39cab
AC
3755if test $ac_cv_header_stdc = yes; then
3756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3757 cat >conftest.$ac_ext <<_ACEOF
3758/* confdefs.h. */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h. */
3763#include <stdlib.h>
c906108c 3764
bec39cab
AC
3765_ACEOF
3766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767 $EGREP "free" >/dev/null 2>&1; then
3768 :
c906108c 3769else
bec39cab 3770 ac_cv_header_stdc=no
c906108c
SS
3771fi
3772rm -f conftest*
c906108c 3773
c906108c 3774fi
c906108c 3775
bec39cab
AC
3776if test $ac_cv_header_stdc = yes; then
3777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c906108c 3778 if test "$cross_compiling" = yes; then
bec39cab 3779 :
c906108c 3780else
bec39cab
AC
3781 cat >conftest.$ac_ext <<_ACEOF
3782/* confdefs.h. */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
3786/* end confdefs.h. */
3787#include <ctype.h>
4e8d927d 3788#include <stdlib.h>
bec39cab
AC
3789#if ((' ' & 0x0FF) == 0x020)
3790# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3791# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3792#else
3793# define ISLOWER(c) \
3794 (('a' <= (c) && (c) <= 'i') \
3795 || ('j' <= (c) && (c) <= 'r') \
3796 || ('s' <= (c) && (c) <= 'z'))
3797# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3798#endif
c906108c 3799
bec39cab
AC
3800#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3801int
3802main ()
3803{
3804 int i;
3805 for (i = 0; i < 256; i++)
3806 if (XOR (islower (i), ISLOWER (i))
3807 || toupper (i) != TOUPPER (i))
4e8d927d
DJ
3808 return 2;
3809 return 0;
bec39cab
AC
3810}
3811_ACEOF
3812rm -f conftest$ac_exeext
3813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3814 (eval $ac_link) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 :
3824else
3825 echo "$as_me: program exited with status $ac_status" >&5
3826echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3828
bec39cab
AC
3829( exit $ac_status )
3830ac_cv_header_stdc=no
3831fi
4e8d927d 3832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 3833fi
4e8d927d
DJ
3834
3835
bec39cab
AC
3836fi
3837fi
4e8d927d
DJ
3838{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3839echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
bec39cab 3840if test $ac_cv_header_stdc = yes; then
c906108c 3841
bec39cab
AC
3842cat >>confdefs.h <<\_ACEOF
3843#define STDC_HEADERS 1
3844_ACEOF
c906108c 3845
bec39cab 3846fi
c906108c 3847
4e8d927d
DJ
3848{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3849echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
bec39cab
AC
3850if test "${ac_cv_c_const+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852else
3853 cat >conftest.$ac_ext <<_ACEOF
3854/* confdefs.h. */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h. */
c906108c 3859
bec39cab
AC
3860int
3861main ()
3862{
3863/* FIXME: Include the comments suggested by Paul. */
3864#ifndef __cplusplus
3865 /* Ultrix mips cc rejects this. */
3866 typedef int charset[2];
3867 const charset x;
3868 /* SunOS 4.1.1 cc rejects this. */
3869 char const *const *ccp;
3870 char **p;
3871 /* NEC SVR4.0.2 mips cc rejects this. */
3872 struct point {int x, y;};
3873 static struct point const zero = {0,0};
3874 /* AIX XL C 1.02.0.0 rejects this.
3875 It does not let you subtract one const X* pointer from another in
3876 an arm of an if-expression whose if-part is not a constant
3877 expression */
3878 const char *g = "string";
3879 ccp = &g + (g ? g-g : 0);
3880 /* HPUX 7.0 cc rejects these. */
3881 ++ccp;
3882 p = (char**) ccp;
3883 ccp = (char const *const *) p;
3884 { /* SCO 3.2v4 cc rejects this. */
3885 char *t;
3886 char const *s = 0 ? (char *) 0 : (char const *) 0;
3887
3888 *t++ = 0;
4e8d927d 3889 if (s) return 0;
bec39cab
AC
3890 }
3891 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3892 int x[] = {25, 17};
3893 const int *foo = &x[0];
3894 ++foo;
3895 }
3896 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3897 typedef const int *iptr;
3898 iptr p = 0;
3899 ++p;
3900 }
3901 { /* AIX XL C 1.02.0.0 rejects this saying
3902 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3903 struct s { int j; const int *ap[3]; };
3904 struct s *b; b->j = 5;
3905 }
3906 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3907 const int foo = 10;
4e8d927d 3908 if (!foo) return 0;
bec39cab 3909 }
4e8d927d 3910 return !x[0] && !zero.x;
bec39cab 3911#endif
c906108c 3912
bec39cab
AC
3913 ;
3914 return 0;
3915}
3916_ACEOF
3917rm -f conftest.$ac_objext
3918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919 (eval $ac_compile) 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
121ce6e5 3926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 (eval $ac_try) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; } &&
3932 { ac_try='test -s conftest.$ac_objext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_c_const=yes
c906108c 3939else
bec39cab
AC
3940 echo "$as_me: failed program was:" >&5
3941sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3942
4e8d927d 3943 ac_cv_c_const=no
bec39cab 3944fi
4e8d927d 3945
bec39cab 3946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3947fi
4e8d927d
DJ
3948{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3949echo "${ECHO_T}$ac_cv_c_const" >&6; }
bec39cab 3950if test $ac_cv_c_const = no; then
c906108c 3951
bec39cab
AC
3952cat >>confdefs.h <<\_ACEOF
3953#define const
3954_ACEOF
c906108c
SS
3955
3956fi
3957
4e8d927d
DJ
3958{ echo "$as_me:$LINENO: checking for inline" >&5
3959echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
bec39cab
AC
3960if test "${ac_cv_c_inline+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3962else
bec39cab
AC
3963 ac_cv_c_inline=no
3964for ac_kw in inline __inline__ __inline; do
3965 cat >conftest.$ac_ext <<_ACEOF
3966/* confdefs.h. */
3967_ACEOF
3968cat confdefs.h >>conftest.$ac_ext
3969cat >>conftest.$ac_ext <<_ACEOF
3970/* end confdefs.h. */
3971#ifndef __cplusplus
3972typedef int foo_t;
3973static $ac_kw foo_t static_foo () {return 0; }
3974$ac_kw foo_t foo () {return 0; }
c906108c
SS
3975#endif
3976
bec39cab
AC
3977_ACEOF
3978rm -f conftest.$ac_objext
3979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
121ce6e5 3987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 (eval $ac_try) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
4e8d927d 3999 ac_cv_c_inline=$ac_kw
c906108c 4000else
bec39cab
AC
4001 echo "$as_me: failed program was:" >&5
4002sed 's/^/| /' conftest.$ac_ext >&5
c906108c 4003
4e8d927d 4004
c906108c 4005fi
4e8d927d 4006
bec39cab 4007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d 4008 test "$ac_cv_c_inline" != no && break
c906108c
SS
4009done
4010
bec39cab 4011fi
4e8d927d
DJ
4012{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4013echo "${ECHO_T}$ac_cv_c_inline" >&6; }
c906108c 4014
c906108c 4015
bec39cab
AC
4016case $ac_cv_c_inline in
4017 inline | yes) ;;
4018 *)
4019 case $ac_cv_c_inline in
4020 no) ac_val=;;
4021 *) ac_val=$ac_cv_c_inline;;
4022 esac
4023 cat >>confdefs.h <<_ACEOF
4024#ifndef __cplusplus
4025#define inline $ac_val
c906108c 4026#endif
bec39cab
AC
4027_ACEOF
4028 ;;
4029esac
c906108c 4030
bec39cab 4031# On IRIX 5.3, sys/types and inttypes.h are conflicting.
c906108c 4032
c906108c 4033
c906108c 4034
c906108c 4035
c906108c 4036
c906108c 4037
c906108c 4038
c906108c 4039
c906108c 4040
bec39cab
AC
4041for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4042 inttypes.h stdint.h unistd.h
4043do
4044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
4045{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049else
4050 cat >conftest.$ac_ext <<_ACEOF
4051/* confdefs.h. */
4052_ACEOF
4053cat confdefs.h >>conftest.$ac_ext
4054cat >>conftest.$ac_ext <<_ACEOF
4055/* end confdefs.h. */
4056$ac_includes_default
4057
4058#include <$ac_header>
4059_ACEOF
4060rm -f conftest.$ac_objext
4061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062 (eval $ac_compile) 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
121ce6e5 4069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 eval "$as_ac_Header=yes"
4082else
4083 echo "$as_me: failed program was:" >&5
4084sed 's/^/| /' conftest.$ac_ext >&5
4085
4e8d927d 4086 eval "$as_ac_Header=no"
bec39cab 4087fi
4e8d927d 4088
bec39cab
AC
4089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4090fi
4e8d927d
DJ
4091ac_res=`eval echo '${'$as_ac_Header'}'`
4092 { echo "$as_me:$LINENO: result: $ac_res" >&5
4093echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
4094if test `eval echo '${'$as_ac_Header'}'` = yes; then
4095 cat >>confdefs.h <<_ACEOF
4096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4097_ACEOF
c906108c 4098
c906108c
SS
4099fi
4100
bec39cab 4101done
c906108c 4102
c906108c 4103
4e8d927d
DJ
4104{ echo "$as_me:$LINENO: checking for off_t" >&5
4105echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
bec39cab
AC
4106if test "${ac_cv_type_off_t+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4108else
bec39cab
AC
4109 cat >conftest.$ac_ext <<_ACEOF
4110/* confdefs.h. */
4111_ACEOF
4112cat confdefs.h >>conftest.$ac_ext
4113cat >>conftest.$ac_ext <<_ACEOF
4114/* end confdefs.h. */
4115$ac_includes_default
4e8d927d 4116typedef off_t ac__type_new_;
bec39cab
AC
4117int
4118main ()
4119{
4e8d927d 4120if ((ac__type_new_ *) 0)
bec39cab 4121 return 0;
4e8d927d 4122if (sizeof (ac__type_new_))
bec39cab
AC
4123 return 0;
4124 ;
4125 return 0;
4126}
4127_ACEOF
4128rm -f conftest.$ac_objext
4129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4130 (eval $ac_compile) 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
121ce6e5 4137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest.$ac_objext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 ac_cv_type_off_t=yes
4150else
4151 echo "$as_me: failed program was:" >&5
4152sed 's/^/| /' conftest.$ac_ext >&5
4153
4e8d927d 4154 ac_cv_type_off_t=no
c906108c 4155fi
4e8d927d 4156
bec39cab 4157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4158fi
4e8d927d
DJ
4159{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4160echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
bec39cab
AC
4161if test $ac_cv_type_off_t = yes; then
4162 :
c906108c 4163else
bec39cab
AC
4164
4165cat >>confdefs.h <<_ACEOF
4e8d927d 4166#define off_t long int
bec39cab
AC
4167_ACEOF
4168
4169fi
4170
4e8d927d
DJ
4171{ echo "$as_me:$LINENO: checking for size_t" >&5
4172echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
bec39cab
AC
4173if test "${ac_cv_type_size_t+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175else
4176 cat >conftest.$ac_ext <<_ACEOF
4177/* confdefs.h. */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>conftest.$ac_ext <<_ACEOF
4181/* end confdefs.h. */
4182$ac_includes_default
4e8d927d 4183typedef size_t ac__type_new_;
bec39cab
AC
4184int
4185main ()
4186{
4e8d927d 4187if ((ac__type_new_ *) 0)
bec39cab 4188 return 0;
4e8d927d 4189if (sizeof (ac__type_new_))
bec39cab
AC
4190 return 0;
4191 ;
4192 return 0;
4193}
4194_ACEOF
4195rm -f conftest.$ac_objext
4196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197 (eval $ac_compile) 2>conftest.er1
4198 ac_status=$?
4199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
121ce6e5 4204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; } &&
4210 { ac_try='test -s conftest.$ac_objext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 ac_cv_type_size_t=yes
c906108c 4217else
bec39cab
AC
4218 echo "$as_me: failed program was:" >&5
4219sed 's/^/| /' conftest.$ac_ext >&5
4220
4e8d927d 4221 ac_cv_type_size_t=no
c906108c 4222fi
4e8d927d 4223
bec39cab 4224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4225fi
4e8d927d
DJ
4226{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4227echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
bec39cab
AC
4228if test $ac_cv_type_size_t = yes; then
4229 :
4230else
c906108c 4231
bec39cab 4232cat >>confdefs.h <<_ACEOF
4e8d927d 4233#define size_t unsigned int
bec39cab 4234_ACEOF
c906108c 4235
c906108c 4236fi
bec39cab
AC
4237
4238# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4239# for constant arguments. Useless!
4e8d927d
DJ
4240{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
4241echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
bec39cab
AC
4242if test "${ac_cv_working_alloca_h+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244else
4245 cat >conftest.$ac_ext <<_ACEOF
4246/* confdefs.h. */
4247_ACEOF
4248cat confdefs.h >>conftest.$ac_ext
4249cat >>conftest.$ac_ext <<_ACEOF
4250/* end confdefs.h. */
4251#include <alloca.h>
4252int
4253main ()
4254{
4255char *p = (char *) alloca (2 * sizeof (int));
4256 ;
4257 return 0;
4258}
4259_ACEOF
4260rm -f conftest.$ac_objext conftest$ac_exeext
4261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4262 (eval $ac_link) 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
121ce6e5 4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; } &&
4275 { ac_try='test -s conftest$ac_exeext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_cv_working_alloca_h=yes
4282else
4283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4e8d927d 4286 ac_cv_working_alloca_h=no
bec39cab 4287fi
4e8d927d 4288
bec39cab
AC
4289rm -f conftest.err conftest.$ac_objext \
4290 conftest$ac_exeext conftest.$ac_ext
4291fi
4e8d927d
DJ
4292{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4293echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
bec39cab
AC
4294if test $ac_cv_working_alloca_h = yes; then
4295
4296cat >>confdefs.h <<\_ACEOF
4297#define HAVE_ALLOCA_H 1
4298_ACEOF
c906108c
SS
4299
4300fi
bec39cab 4301
4e8d927d
DJ
4302{ echo "$as_me:$LINENO: checking for alloca" >&5
4303echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
bec39cab
AC
4304if test "${ac_cv_func_alloca_works+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4306else
bec39cab
AC
4307 cat >conftest.$ac_ext <<_ACEOF
4308/* confdefs.h. */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
4312/* end confdefs.h. */
4313#ifdef __GNUC__
4314# define alloca __builtin_alloca
4315#else
4316# ifdef _MSC_VER
4317# include <malloc.h>
4318# define alloca _alloca
4319# else
4320# if HAVE_ALLOCA_H
4321# include <alloca.h>
4322# else
4323# ifdef _AIX
4324 #pragma alloca
4325# else
4326# ifndef alloca /* predefined by HP cc +Olibcalls */
4327char *alloca ();
4328# endif
4329# endif
4330# endif
4331# endif
4332#endif
c906108c 4333
bec39cab
AC
4334int
4335main ()
4336{
4337char *p = (char *) alloca (1);
4338 ;
4339 return 0;
4340}
4341_ACEOF
4342rm -f conftest.$ac_objext conftest$ac_exeext
4343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4344 (eval $ac_link) 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
121ce6e5 4351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; } &&
4357 { ac_try='test -s conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_func_alloca_works=yes
c906108c 4364else
bec39cab
AC
4365 echo "$as_me: failed program was:" >&5
4366sed 's/^/| /' conftest.$ac_ext >&5
4367
4e8d927d 4368 ac_cv_func_alloca_works=no
c906108c 4369fi
4e8d927d 4370
bec39cab
AC
4371rm -f conftest.err conftest.$ac_objext \
4372 conftest$ac_exeext conftest.$ac_ext
c906108c 4373fi
4e8d927d
DJ
4374{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4375echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
bec39cab
AC
4376
4377if test $ac_cv_func_alloca_works = yes; then
4378
4379cat >>confdefs.h <<\_ACEOF
4380#define HAVE_ALLOCA 1
4381_ACEOF
c906108c 4382
c906108c 4383else
bec39cab
AC
4384 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4385# that cause trouble. Some versions do not even contain alloca or
4386# contain a buggy version. If you still want to use their alloca,
4387# use ar to extract alloca.o from them instead of compiling alloca.c.
c906108c 4388
4e8d927d 4389ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
c906108c 4390
bec39cab
AC
4391cat >>confdefs.h <<\_ACEOF
4392#define C_ALLOCA 1
4393_ACEOF
c906108c 4394
bec39cab 4395
4e8d927d
DJ
4396{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4397echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
bec39cab
AC
4398if test "${ac_cv_os_cray+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4400else
bec39cab
AC
4401 cat >conftest.$ac_ext <<_ACEOF
4402/* confdefs.h. */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h. */
4e8d927d 4407#if defined CRAY && ! defined CRAY2
bec39cab
AC
4408webecray
4409#else
4410wenotbecray
4411#endif
4412
4413_ACEOF
4414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "webecray" >/dev/null 2>&1; then
4416 ac_cv_os_cray=yes
c906108c 4417else
bec39cab 4418 ac_cv_os_cray=no
c906108c 4419fi
bec39cab
AC
4420rm -f conftest*
4421
4422fi
4e8d927d
DJ
4423{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4424echo "${ECHO_T}$ac_cv_os_cray" >&6; }
bec39cab
AC
4425if test $ac_cv_os_cray = yes; then
4426 for ac_func in _getb67 GETB67 getb67; do
4427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
4428{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4429echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4430if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432else
4433 cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h. */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h. */
4439/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4441#define $ac_func innocuous_$ac_func
4442
c906108c 4443/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
4444 which can conflict with char $ac_func (); below.
4445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446 <limits.h> exists even on freestanding compilers. */
4447
4448#ifdef __STDC__
4449# include <limits.h>
4450#else
4451# include <assert.h>
4452#endif
c906108c 4453
bec39cab 4454#undef $ac_func
c906108c 4455
4e8d927d
DJ
4456/* Override any GCC internal prototype to avoid an error.
4457 Use char because int might match the return type of a GCC
4458 builtin and then its argument prototype would still apply. */
bec39cab
AC
4459#ifdef __cplusplus
4460extern "C"
bec39cab 4461#endif
bec39cab 4462char $ac_func ();
c906108c
SS
4463/* The GNU C library defines this for functions which it implements
4464 to always fail with ENOSYS. Some functions are actually named
4465 something starting with __ and the normal name is an alias. */
4e8d927d 4466#if defined __stub_$ac_func || defined __stub___$ac_func
c906108c 4467choke me
c906108c
SS
4468#endif
4469
bec39cab
AC
4470int
4471main ()
4472{
4e8d927d 4473return $ac_func ();
bec39cab
AC
4474 ;
4475 return 0;
4476}
4477_ACEOF
4478rm -f conftest.$ac_objext conftest$ac_exeext
4479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480 (eval $ac_link) 2>conftest.er1
4481 ac_status=$?
4482 grep -v '^ *+' conftest.er1 >conftest.err
4483 rm -f conftest.er1
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
121ce6e5 4487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 (eval $ac_try) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest$ac_exeext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 eval "$as_ac_var=yes"
4500else
4501 echo "$as_me: failed program was:" >&5
4502sed 's/^/| /' conftest.$ac_ext >&5
4503
4e8d927d 4504 eval "$as_ac_var=no"
bec39cab 4505fi
4e8d927d 4506
bec39cab
AC
4507rm -f conftest.err conftest.$ac_objext \
4508 conftest$ac_exeext conftest.$ac_ext
4509fi
4e8d927d
DJ
4510ac_res=`eval echo '${'$as_ac_var'}'`
4511 { echo "$as_me:$LINENO: result: $ac_res" >&5
4512echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
4513if test `eval echo '${'$as_ac_var'}'` = yes; then
4514
4515cat >>confdefs.h <<_ACEOF
4516#define CRAY_STACKSEG_END $ac_func
4517_ACEOF
c906108c 4518
bec39cab 4519 break
c906108c 4520fi
c906108c 4521
c906108c 4522 done
c906108c 4523fi
bec39cab 4524
4e8d927d
DJ
4525{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4526echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
bec39cab
AC
4527if test "${ac_cv_c_stack_direction+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4529else
bec39cab
AC
4530 if test "$cross_compiling" = yes; then
4531 ac_cv_c_stack_direction=0
4532else
4533 cat >conftest.$ac_ext <<_ACEOF
4534/* confdefs.h. */
4535_ACEOF
4536cat confdefs.h >>conftest.$ac_ext
4537cat >>conftest.$ac_ext <<_ACEOF
4538/* end confdefs.h. */
4e8d927d 4539$ac_includes_default
bec39cab
AC
4540int
4541find_stack_direction ()
4542{
4543 static char *addr = 0;
4544 auto char dummy;
4545 if (addr == 0)
4546 {
4547 addr = &dummy;
4548 return find_stack_direction ();
4549 }
4550 else
4551 return (&dummy > addr) ? 1 : -1;
4552}
c906108c 4553
bec39cab
AC
4554int
4555main ()
4556{
4e8d927d 4557 return find_stack_direction () < 0;
bec39cab
AC
4558}
4559_ACEOF
4560rm -f conftest$ac_exeext
4561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4562 (eval $ac_link) 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 ac_cv_c_stack_direction=1
c906108c 4572else
bec39cab
AC
4573 echo "$as_me: program exited with status $ac_status" >&5
4574echo "$as_me: failed program was:" >&5
4575sed 's/^/| /' conftest.$ac_ext >&5
4576
4577( exit $ac_status )
4578ac_cv_c_stack_direction=-1
4579fi
4e8d927d 4580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 4581fi
4e8d927d
DJ
4582
4583
c906108c 4584fi
4e8d927d
DJ
4585{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4586echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
bec39cab
AC
4587
4588cat >>confdefs.h <<_ACEOF
4589#define STACK_DIRECTION $ac_cv_c_stack_direction
4590_ACEOF
c906108c 4591
c906108c 4592
c906108c
SS
4593fi
4594
4595
c906108c 4596
bec39cab
AC
4597for ac_header in stdlib.h unistd.h
4598do
4599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
4600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605fi
4e8d927d
DJ
4606ac_res=`eval echo '${'$as_ac_Header'}'`
4607 { echo "$as_me:$LINENO: result: $ac_res" >&5
4608echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
4609else
4610 # Is the header compilable?
4e8d927d
DJ
4611{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4612echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
4613cat >conftest.$ac_ext <<_ACEOF
4614/* confdefs.h. */
4615_ACEOF
4616cat confdefs.h >>conftest.$ac_ext
4617cat >>conftest.$ac_ext <<_ACEOF
4618/* end confdefs.h. */
4619$ac_includes_default
4620#include <$ac_header>
4621_ACEOF
4622rm -f conftest.$ac_objext
4623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>conftest.er1
4625 ac_status=$?
4626 grep -v '^ *+' conftest.er1 >conftest.err
4627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
121ce6e5 4631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try='test -s conftest.$ac_objext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 ac_header_compiler=yes
4644else
4645 echo "$as_me: failed program was:" >&5
4646sed 's/^/| /' conftest.$ac_ext >&5
4647
4e8d927d 4648 ac_header_compiler=no
bec39cab 4649fi
4e8d927d 4650
bec39cab 4651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
4652{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4653echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
4654
4655# Is the header present?
4e8d927d
DJ
4656{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4657echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
4658cat >conftest.$ac_ext <<_ACEOF
4659/* confdefs.h. */
4660_ACEOF
4661cat confdefs.h >>conftest.$ac_ext
4662cat >>conftest.$ac_ext <<_ACEOF
4663/* end confdefs.h. */
4664#include <$ac_header>
4665_ACEOF
4666if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev/null; then
4674 if test -s conftest.err; then
4675 ac_cpp_err=$ac_c_preproc_warn_flag
4676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4677 else
4678 ac_cpp_err=
4679 fi
c906108c 4680else
bec39cab 4681 ac_cpp_err=yes
c906108c 4682fi
bec39cab
AC
4683if test -z "$ac_cpp_err"; then
4684 ac_header_preproc=yes
c906108c 4685else
bec39cab
AC
4686 echo "$as_me: failed program was:" >&5
4687sed 's/^/| /' conftest.$ac_ext >&5
4688
4689 ac_header_preproc=no
c906108c 4690fi
4e8d927d 4691
bec39cab 4692rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
4693{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4694echo "${ECHO_T}$ac_header_preproc" >&6; }
c906108c 4695
bec39cab
AC
4696# So? What about this header?
4697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4698 yes:no: )
4699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4700echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4702echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4703 ac_header_preproc=yes
4704 ;;
4705 no:yes:* )
4706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4707echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4709echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4711echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4713echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4715echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4717echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 4718
bec39cab
AC
4719 ;;
4720esac
4e8d927d
DJ
4721{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4725else
4726 eval "$as_ac_Header=\$ac_header_preproc"
4727fi
4e8d927d
DJ
4728ac_res=`eval echo '${'$as_ac_Header'}'`
4729 { echo "$as_me:$LINENO: result: $ac_res" >&5
4730echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
4731
4732fi
4733if test `eval echo '${'$as_ac_Header'}'` = yes; then
4734 cat >>confdefs.h <<_ACEOF
4735#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4736_ACEOF
4737
4738fi
4739
4740done
4741
4742
4743for ac_func in getpagesize
4744do
4745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
4746{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4748if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751 cat >conftest.$ac_ext <<_ACEOF
4752/* confdefs.h. */
4753_ACEOF
4754cat confdefs.h >>conftest.$ac_ext
4755cat >>conftest.$ac_ext <<_ACEOF
4756/* end confdefs.h. */
4757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4759#define $ac_func innocuous_$ac_func
4760
4761/* System header to define __stub macros and hopefully few prototypes,
4762 which can conflict with char $ac_func (); below.
4763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4764 <limits.h> exists even on freestanding compilers. */
4765
4766#ifdef __STDC__
4767# include <limits.h>
4768#else
4769# include <assert.h>
4770#endif
4771
4772#undef $ac_func
4773
4e8d927d
DJ
4774/* Override any GCC internal prototype to avoid an error.
4775 Use char because int might match the return type of a GCC
4776 builtin and then its argument prototype would still apply. */
bec39cab
AC
4777#ifdef __cplusplus
4778extern "C"
bec39cab 4779#endif
bec39cab
AC
4780char $ac_func ();
4781/* The GNU C library defines this for functions which it implements
4782 to always fail with ENOSYS. Some functions are actually named
4783 something starting with __ and the normal name is an alias. */
4e8d927d 4784#if defined __stub_$ac_func || defined __stub___$ac_func
bec39cab 4785choke me
bec39cab
AC
4786#endif
4787
4788int
4789main ()
4790{
4e8d927d 4791return $ac_func ();
bec39cab
AC
4792 ;
4793 return 0;
4794}
4795_ACEOF
4796rm -f conftest.$ac_objext conftest$ac_exeext
4797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4798 (eval $ac_link) 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
121ce6e5 4805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 (eval $ac_try) 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; } &&
4811 { ac_try='test -s conftest$ac_exeext'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 (eval $ac_try) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 eval "$as_ac_var=yes"
4818else
4819 echo "$as_me: failed program was:" >&5
4820sed 's/^/| /' conftest.$ac_ext >&5
4821
4e8d927d 4822 eval "$as_ac_var=no"
bec39cab 4823fi
4e8d927d 4824
bec39cab
AC
4825rm -f conftest.err conftest.$ac_objext \
4826 conftest$ac_exeext conftest.$ac_ext
4827fi
4e8d927d
DJ
4828ac_res=`eval echo '${'$as_ac_var'}'`
4829 { echo "$as_me:$LINENO: result: $ac_res" >&5
4830echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
4831if test `eval echo '${'$as_ac_var'}'` = yes; then
4832 cat >>confdefs.h <<_ACEOF
4833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4834_ACEOF
4835
4836fi
4837done
4838
4e8d927d
DJ
4839{ echo "$as_me:$LINENO: checking for working mmap" >&5
4840echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
bec39cab
AC
4841if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843else
4844 if test "$cross_compiling" = yes; then
4845 ac_cv_func_mmap_fixed_mapped=no
4846else
4847 cat >conftest.$ac_ext <<_ACEOF
4848/* confdefs.h. */
4849_ACEOF
4850cat confdefs.h >>conftest.$ac_ext
4851cat >>conftest.$ac_ext <<_ACEOF
4852/* end confdefs.h. */
4853$ac_includes_default
4854/* malloc might have been renamed as rpl_malloc. */
4855#undef malloc
4856
4857/* Thanks to Mike Haertel and Jim Avera for this test.
4858 Here is a matrix of mmap possibilities:
4859 mmap private not fixed
4860 mmap private fixed at somewhere currently unmapped
4861 mmap private fixed at somewhere already mapped
4862 mmap shared not fixed
4863 mmap shared fixed at somewhere currently unmapped
4864 mmap shared fixed at somewhere already mapped
4865 For private mappings, we should verify that changes cannot be read()
4866 back from the file, nor mmap's back from the file at a different
4867 address. (There have been systems where private was not correctly
4868 implemented like the infamous i386 svr4.0, and systems where the
4869 VM page cache was not coherent with the file system buffer cache
4870 like early versions of FreeBSD and possibly contemporary NetBSD.)
4871 For shared mappings, we should conversely verify that changes get
4872 propagated back to all the places they're supposed to be.
4873
4874 Grep wants private fixed already mapped.
4875 The main things grep needs to know about mmap are:
4876 * does it exist and is it safe to write into the mmap'd area
4877 * how to use it (BSD variants) */
4878
4879#include <fcntl.h>
4880#include <sys/mman.h>
4881
4882#if !STDC_HEADERS && !HAVE_STDLIB_H
4883char *malloc ();
4884#endif
4885
4886/* This mess was copied from the GNU getpagesize.h. */
4887#if !HAVE_GETPAGESIZE
4888/* Assume that all systems that can run configure have sys/param.h. */
4889# if !HAVE_SYS_PARAM_H
4890# define HAVE_SYS_PARAM_H 1
4891# endif
4892
4893# ifdef _SC_PAGESIZE
4894# define getpagesize() sysconf(_SC_PAGESIZE)
4895# else /* no _SC_PAGESIZE */
4896# if HAVE_SYS_PARAM_H
4897# include <sys/param.h>
4898# ifdef EXEC_PAGESIZE
4899# define getpagesize() EXEC_PAGESIZE
4900# else /* no EXEC_PAGESIZE */
4901# ifdef NBPG
4902# define getpagesize() NBPG * CLSIZE
4903# ifndef CLSIZE
4904# define CLSIZE 1
4905# endif /* no CLSIZE */
4906# else /* no NBPG */
4907# ifdef NBPC
4908# define getpagesize() NBPC
4909# else /* no NBPC */
4910# ifdef PAGESIZE
4911# define getpagesize() PAGESIZE
4912# endif /* PAGESIZE */
4913# endif /* no NBPC */
4914# endif /* no NBPG */
4915# endif /* no EXEC_PAGESIZE */
4916# else /* no HAVE_SYS_PARAM_H */
4917# define getpagesize() 8192 /* punt totally */
4918# endif /* no HAVE_SYS_PARAM_H */
4919# endif /* no _SC_PAGESIZE */
4920
4921#endif /* no HAVE_GETPAGESIZE */
4922
4923int
4924main ()
4925{
4926 char *data, *data2, *data3;
4927 int i, pagesize;
4928 int fd;
4929
4930 pagesize = getpagesize ();
4931
4932 /* First, make a file with some known garbage in it. */
4933 data = (char *) malloc (pagesize);
4934 if (!data)
4e8d927d 4935 return 1;
bec39cab
AC
4936 for (i = 0; i < pagesize; ++i)
4937 *(data + i) = rand ();
4938 umask (0);
4939 fd = creat ("conftest.mmap", 0600);
4940 if (fd < 0)
4e8d927d 4941 return 1;
bec39cab 4942 if (write (fd, data, pagesize) != pagesize)
4e8d927d 4943 return 1;
bec39cab
AC
4944 close (fd);
4945
4946 /* Next, try to mmap the file at a fixed address which already has
4947 something else allocated at it. If we can, also make sure that
4948 we see the same garbage. */
4949 fd = open ("conftest.mmap", O_RDWR);
4950 if (fd < 0)
4e8d927d 4951 return 1;
bec39cab
AC
4952 data2 = (char *) malloc (2 * pagesize);
4953 if (!data2)
4e8d927d
DJ
4954 return 1;
4955 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
bec39cab
AC
4956 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4957 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4e8d927d 4958 return 1;
bec39cab
AC
4959 for (i = 0; i < pagesize; ++i)
4960 if (*(data + i) != *(data2 + i))
4e8d927d 4961 return 1;
bec39cab
AC
4962
4963 /* Finally, make sure that changes to the mapped area do not
4964 percolate back to the file as seen by read(). (This is a bug on
4965 some variants of i386 svr4.0.) */
4966 for (i = 0; i < pagesize; ++i)
4967 *(data2 + i) = *(data2 + i) + 1;
4968 data3 = (char *) malloc (pagesize);
4969 if (!data3)
4e8d927d 4970 return 1;
bec39cab 4971 if (read (fd, data3, pagesize) != pagesize)
4e8d927d 4972 return 1;
bec39cab
AC
4973 for (i = 0; i < pagesize; ++i)
4974 if (*(data + i) != *(data3 + i))
4e8d927d 4975 return 1;
bec39cab 4976 close (fd);
4e8d927d 4977 return 0;
bec39cab
AC
4978}
4979_ACEOF
4980rm -f conftest$ac_exeext
4981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4982 (eval $ac_link) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_cv_func_mmap_fixed_mapped=yes
4992else
4993 echo "$as_me: program exited with status $ac_status" >&5
4994echo "$as_me: failed program was:" >&5
4995sed 's/^/| /' conftest.$ac_ext >&5
4996
4997( exit $ac_status )
4998ac_cv_func_mmap_fixed_mapped=no
4999fi
4e8d927d 5000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 5001fi
4e8d927d
DJ
5002
5003
bec39cab 5004fi
4e8d927d
DJ
5005{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5006echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
bec39cab
AC
5007if test $ac_cv_func_mmap_fixed_mapped = yes; then
5008
5009cat >>confdefs.h <<\_ACEOF
5010#define HAVE_MMAP 1
5011_ACEOF
5012
5013fi
5014rm -f conftest.mmap
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
5027unistd.h values.h sys/param.h
5028do
5029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
5030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035fi
4e8d927d
DJ
5036ac_res=`eval echo '${'$as_ac_Header'}'`
5037 { echo "$as_me:$LINENO: result: $ac_res" >&5
5038echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
5039else
5040 # Is the header compilable?
4e8d927d
DJ
5041{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5042echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
5043cat >conftest.$ac_ext <<_ACEOF
5044/* confdefs.h. */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h. */
5049$ac_includes_default
5050#include <$ac_header>
5051_ACEOF
5052rm -f conftest.$ac_objext
5053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>conftest.er1
5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
121ce6e5 5061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 (eval $ac_try) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; } &&
5067 { ac_try='test -s conftest.$ac_objext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_header_compiler=yes
5074else
5075 echo "$as_me: failed program was:" >&5
5076sed 's/^/| /' conftest.$ac_ext >&5
5077
4e8d927d 5078 ac_header_compiler=no
bec39cab 5079fi
4e8d927d 5080
bec39cab 5081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
5082{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5083echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
5084
5085# Is the header present?
4e8d927d
DJ
5086{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5087echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
5088cat >conftest.$ac_ext <<_ACEOF
5089/* confdefs.h. */
5090_ACEOF
5091cat confdefs.h >>conftest.$ac_ext
5092cat >>conftest.$ac_ext <<_ACEOF
5093/* end confdefs.h. */
5094#include <$ac_header>
5095_ACEOF
5096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5098 ac_status=$?
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } >/dev/null; then
5104 if test -s conftest.err; then
5105 ac_cpp_err=$ac_c_preproc_warn_flag
5106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5107 else
5108 ac_cpp_err=
5109 fi
5110else
5111 ac_cpp_err=yes
5112fi
5113if test -z "$ac_cpp_err"; then
5114 ac_header_preproc=yes
5115else
5116 echo "$as_me: failed program was:" >&5
5117sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ac_header_preproc=no
5120fi
4e8d927d 5121
bec39cab 5122rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
5123{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5124echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
5125
5126# So? What about this header?
5127case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5128 yes:no: )
5129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5130echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5132echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5133 ac_header_preproc=yes
5134 ;;
5135 no:yes:* )
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5141echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5143echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5145echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5147echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 5148
bec39cab
AC
5149 ;;
5150esac
4e8d927d
DJ
5151{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155else
5156 eval "$as_ac_Header=\$ac_header_preproc"
5157fi
4e8d927d
DJ
5158ac_res=`eval echo '${'$as_ac_Header'}'`
5159 { echo "$as_me:$LINENO: result: $ac_res" >&5
5160echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
5161
5162fi
5163if test `eval echo '${'$as_ac_Header'}'` = yes; then
5164 cat >>confdefs.h <<_ACEOF
5165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5166_ACEOF
5167
5168fi
5169
5170done
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
5183__argz_count __argz_stringify __argz_next
5184do
5185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
5186{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5188if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190else
5191 cat >conftest.$ac_ext <<_ACEOF
5192/* confdefs.h. */
5193_ACEOF
5194cat confdefs.h >>conftest.$ac_ext
5195cat >>conftest.$ac_ext <<_ACEOF
5196/* end confdefs.h. */
5197/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5199#define $ac_func innocuous_$ac_func
5200
5201/* System header to define __stub macros and hopefully few prototypes,
5202 which can conflict with char $ac_func (); below.
5203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5204 <limits.h> exists even on freestanding compilers. */
5205
5206#ifdef __STDC__
5207# include <limits.h>
5208#else
5209# include <assert.h>
5210#endif
5211
5212#undef $ac_func
5213
4e8d927d
DJ
5214/* Override any GCC internal prototype to avoid an error.
5215 Use char because int might match the return type of a GCC
5216 builtin and then its argument prototype would still apply. */
bec39cab
AC
5217#ifdef __cplusplus
5218extern "C"
bec39cab 5219#endif
bec39cab
AC
5220char $ac_func ();
5221/* The GNU C library defines this for functions which it implements
5222 to always fail with ENOSYS. Some functions are actually named
5223 something starting with __ and the normal name is an alias. */
4e8d927d 5224#if defined __stub_$ac_func || defined __stub___$ac_func
bec39cab 5225choke me
bec39cab
AC
5226#endif
5227
5228int
5229main ()
5230{
4e8d927d 5231return $ac_func ();
bec39cab
AC
5232 ;
5233 return 0;
5234}
5235_ACEOF
5236rm -f conftest.$ac_objext conftest$ac_exeext
5237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5238 (eval $ac_link) 2>conftest.er1
5239 ac_status=$?
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
121ce6e5 5245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 (eval $ac_try) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 eval "$as_ac_var=yes"
5258else
5259 echo "$as_me: failed program was:" >&5
5260sed 's/^/| /' conftest.$ac_ext >&5
5261
4e8d927d 5262 eval "$as_ac_var=no"
bec39cab 5263fi
4e8d927d 5264
bec39cab
AC
5265rm -f conftest.err conftest.$ac_objext \
5266 conftest$ac_exeext conftest.$ac_ext
5267fi
4e8d927d
DJ
5268ac_res=`eval echo '${'$as_ac_var'}'`
5269 { echo "$as_me:$LINENO: result: $ac_res" >&5
5270echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
5271if test `eval echo '${'$as_ac_var'}'` = yes; then
5272 cat >>confdefs.h <<_ACEOF
5273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5274_ACEOF
5275
5276fi
5277done
5278
5279
5280 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5281
5282for ac_func in stpcpy
5283do
5284as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
5285{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5286echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5287if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289else
5290 cat >conftest.$ac_ext <<_ACEOF
5291/* confdefs.h. */
5292_ACEOF
5293cat confdefs.h >>conftest.$ac_ext
5294cat >>conftest.$ac_ext <<_ACEOF
5295/* end confdefs.h. */
5296/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5298#define $ac_func innocuous_$ac_func
5299
5300/* System header to define __stub macros and hopefully few prototypes,
5301 which can conflict with char $ac_func (); below.
5302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5303 <limits.h> exists even on freestanding compilers. */
5304
5305#ifdef __STDC__
5306# include <limits.h>
5307#else
5308# include <assert.h>
5309#endif
5310
5311#undef $ac_func
5312
4e8d927d
DJ
5313/* Override any GCC internal prototype to avoid an error.
5314 Use char because int might match the return type of a GCC
5315 builtin and then its argument prototype would still apply. */
bec39cab
AC
5316#ifdef __cplusplus
5317extern "C"
bec39cab 5318#endif
bec39cab
AC
5319char $ac_func ();
5320/* The GNU C library defines this for functions which it implements
5321 to always fail with ENOSYS. Some functions are actually named
5322 something starting with __ and the normal name is an alias. */
4e8d927d 5323#if defined __stub_$ac_func || defined __stub___$ac_func
bec39cab 5324choke me
bec39cab
AC
5325#endif
5326
5327int
5328main ()
5329{
4e8d927d 5330return $ac_func ();
bec39cab
AC
5331 ;
5332 return 0;
5333}
5334_ACEOF
5335rm -f conftest.$ac_objext conftest$ac_exeext
5336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5337 (eval $ac_link) 2>conftest.er1
5338 ac_status=$?
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
121ce6e5 5344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 eval "$as_ac_var=yes"
5357else
5358 echo "$as_me: failed program was:" >&5
5359sed 's/^/| /' conftest.$ac_ext >&5
5360
4e8d927d 5361 eval "$as_ac_var=no"
bec39cab 5362fi
4e8d927d 5363
bec39cab
AC
5364rm -f conftest.err conftest.$ac_objext \
5365 conftest$ac_exeext conftest.$ac_ext
5366fi
4e8d927d
DJ
5367ac_res=`eval echo '${'$as_ac_var'}'`
5368 { echo "$as_me:$LINENO: result: $ac_res" >&5
5369echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
5370if test `eval echo '${'$as_ac_var'}'` = yes; then
5371 cat >>confdefs.h <<_ACEOF
5372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5373_ACEOF
5374
5375fi
5376done
5377
5378 fi
5379 if test "${ac_cv_func_stpcpy}" = "yes"; then
5380
5381cat >>confdefs.h <<\_ACEOF
5382#define HAVE_STPCPY 1
5383_ACEOF
5384
5385 fi
5386
5387 if test $ac_cv_header_locale_h = yes; then
4e8d927d
DJ
5388 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
5389echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
bec39cab
AC
5390if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392else
5393 cat >conftest.$ac_ext <<_ACEOF
5394/* confdefs.h. */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h. */
5399#include <locale.h>
5400int
5401main ()
5402{
5403return LC_MESSAGES
5404 ;
5405 return 0;
5406}
5407_ACEOF
5408rm -f conftest.$ac_objext conftest$ac_exeext
5409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5410 (eval $ac_link) 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
121ce6e5 5417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; } &&
5423 { ac_try='test -s conftest$ac_exeext'
5424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425 (eval $ac_try) 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5429 am_cv_val_LC_MESSAGES=yes
5430else
5431 echo "$as_me: failed program was:" >&5
5432sed 's/^/| /' conftest.$ac_ext >&5
5433
4e8d927d 5434 am_cv_val_LC_MESSAGES=no
bec39cab 5435fi
4e8d927d 5436
bec39cab
AC
5437rm -f conftest.err conftest.$ac_objext \
5438 conftest$ac_exeext conftest.$ac_ext
5439fi
4e8d927d
DJ
5440{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5441echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
bec39cab
AC
5442 if test $am_cv_val_LC_MESSAGES = yes; then
5443
5444cat >>confdefs.h <<\_ACEOF
5445#define HAVE_LC_MESSAGES 1
5446_ACEOF
5447
5448 fi
5449 fi
4e8d927d
DJ
5450 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5451echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5452 # Check whether --enable-nls was given.
bec39cab 5453if test "${enable_nls+set}" = set; then
4e8d927d 5454 enableval=$enable_nls; USE_NLS=$enableval
bec39cab
AC
5455else
5456 USE_NLS=yes
4e8d927d
DJ
5457fi
5458
5459 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5460echo "${ECHO_T}$USE_NLS" >&6; }
bec39cab
AC
5461
5462
5463 USE_INCLUDED_LIBINTL=no
5464
5465 if test "$USE_NLS" = "yes"; then
4e8d927d
DJ
5466 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
5467echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
bec39cab 5468
4e8d927d 5469# Check whether --with-included-gettext was given.
bec39cab 5470if test "${with_included_gettext+set}" = set; then
4e8d927d 5471 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
bec39cab
AC
5472else
5473 nls_cv_force_use_gnu_gettext=no
4e8d927d
DJ
5474fi
5475
5476 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
5477echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
bec39cab
AC
5478
5479 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5480 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5481 nls_cv_header_intl=
5482 nls_cv_header_libgt=
a53bf506 5483 CATOBJEXT=
bec39cab
AC
5484
5485 if test "${ac_cv_header_libintl_h+set}" = set; then
4e8d927d
DJ
5486 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5487echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
bec39cab
AC
5488if test "${ac_cv_header_libintl_h+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490fi
4e8d927d
DJ
5491{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5492echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
bec39cab
AC
5493else
5494 # Is the header compilable?
4e8d927d
DJ
5495{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
5496echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
bec39cab
AC
5497cat >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$ac_includes_default
5504#include <libintl.h>
5505_ACEOF
5506rm -f conftest.$ac_objext
5507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5508 (eval $ac_compile) 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
121ce6e5 5515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; } &&
5521 { ac_try='test -s conftest.$ac_objext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_header_compiler=yes
5528else
5529 echo "$as_me: failed program was:" >&5
5530sed 's/^/| /' conftest.$ac_ext >&5
5531
4e8d927d 5532 ac_header_compiler=no
bec39cab 5533fi
4e8d927d 5534
bec39cab 5535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
5536{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5537echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
5538
5539# Is the header present?
4e8d927d
DJ
5540{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
5541echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
bec39cab
AC
5542cat >conftest.$ac_ext <<_ACEOF
5543/* confdefs.h. */
5544_ACEOF
5545cat confdefs.h >>conftest.$ac_ext
5546cat >>conftest.$ac_ext <<_ACEOF
5547/* end confdefs.h. */
5548#include <libintl.h>
5549_ACEOF
5550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5552 ac_status=$?
5553 grep -v '^ *+' conftest.er1 >conftest.err
5554 rm -f conftest.er1
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } >/dev/null; then
5558 if test -s conftest.err; then
5559 ac_cpp_err=$ac_c_preproc_warn_flag
5560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5561 else
5562 ac_cpp_err=
5563 fi
5564else
5565 ac_cpp_err=yes
5566fi
5567if test -z "$ac_cpp_err"; then
5568 ac_header_preproc=yes
5569else
5570 echo "$as_me: failed program was:" >&5
5571sed 's/^/| /' conftest.$ac_ext >&5
5572
5573 ac_header_preproc=no
5574fi
4e8d927d 5575
bec39cab 5576rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
5577{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5578echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
5579
5580# So? What about this header?
5581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5582 yes:no: )
5583 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5584echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5585 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5586echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5587 ac_header_preproc=yes
5588 ;;
5589 no:yes:* )
5590 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5591echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5593echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5594 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5595echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5597echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5598 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5599echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5600 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5601echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4e8d927d 5602
bec39cab
AC
5603 ;;
5604esac
4e8d927d
DJ
5605{ echo "$as_me:$LINENO: checking for libintl.h" >&5
5606echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
bec39cab
AC
5607if test "${ac_cv_header_libintl_h+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609else
5610 ac_cv_header_libintl_h=$ac_header_preproc
5611fi
4e8d927d
DJ
5612{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5613echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
bec39cab
AC
5614
5615fi
5616if test $ac_cv_header_libintl_h = yes; then
4e8d927d
DJ
5617 { echo "$as_me:$LINENO: checking for gettext in libc" >&5
5618echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6; }
bec39cab
AC
5619if test "${gt_cv_func_gettext_libc+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622 cat >conftest.$ac_ext <<_ACEOF
5623/* confdefs.h. */
5624_ACEOF
5625cat confdefs.h >>conftest.$ac_ext
5626cat >>conftest.$ac_ext <<_ACEOF
5627/* end confdefs.h. */
5628#include <libintl.h>
5629int
5630main ()
5631{
5632return (int) gettext ("")
5633 ;
5634 return 0;
5635}
5636_ACEOF
5637rm -f conftest.$ac_objext conftest$ac_exeext
5638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
121ce6e5 5646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } &&
5652 { ac_try='test -s conftest$ac_exeext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 gt_cv_func_gettext_libc=yes
5659else
5660 echo "$as_me: failed program was:" >&5
5661sed 's/^/| /' conftest.$ac_ext >&5
5662
4e8d927d 5663 gt_cv_func_gettext_libc=no
bec39cab 5664fi
4e8d927d 5665
bec39cab
AC
5666rm -f conftest.err conftest.$ac_objext \
5667 conftest$ac_exeext conftest.$ac_ext
5668fi
4e8d927d
DJ
5669{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5670echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6; }
bec39cab
AC
5671
5672 if test "$gt_cv_func_gettext_libc" != "yes"; then
4e8d927d
DJ
5673 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5674echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
bec39cab
AC
5675if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
5678 ac_check_lib_save_LIBS=$LIBS
5679LIBS="-lintl $LIBS"
5680cat >conftest.$ac_ext <<_ACEOF
5681/* confdefs.h. */
5682_ACEOF
5683cat confdefs.h >>conftest.$ac_ext
5684cat >>conftest.$ac_ext <<_ACEOF
5685/* end confdefs.h. */
5686
4e8d927d
DJ
5687/* Override any GCC internal prototype to avoid an error.
5688 Use char because int might match the return type of a GCC
5689 builtin and then its argument prototype would still apply. */
bec39cab
AC
5690#ifdef __cplusplus
5691extern "C"
5692#endif
bec39cab
AC
5693char bindtextdomain ();
5694int
5695main ()
5696{
4e8d927d 5697return bindtextdomain ();
bec39cab
AC
5698 ;
5699 return 0;
5700}
5701_ACEOF
5702rm -f conftest.$ac_objext conftest$ac_exeext
5703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
121ce6e5 5711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest$ac_exeext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_lib_intl_bindtextdomain=yes
5724else
5725 echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
5727
4e8d927d 5728 ac_cv_lib_intl_bindtextdomain=no
bec39cab 5729fi
4e8d927d 5730
bec39cab
AC
5731rm -f conftest.err conftest.$ac_objext \
5732 conftest$ac_exeext conftest.$ac_ext
5733LIBS=$ac_check_lib_save_LIBS
5734fi
4e8d927d
DJ
5735{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5736echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
bec39cab 5737if test $ac_cv_lib_intl_bindtextdomain = yes; then
4e8d927d
DJ
5738 { echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5739echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6; }
bec39cab
AC
5740if test "${gt_cv_func_gettext_libintl+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742else
5743 cat >conftest.$ac_ext <<_ACEOF
5744/* confdefs.h. */
5745_ACEOF
5746cat confdefs.h >>conftest.$ac_ext
5747cat >>conftest.$ac_ext <<_ACEOF
5748/* end confdefs.h. */
5749
5750int
5751main ()
5752{
5753return (int) gettext ("")
5754 ;
5755 return 0;
5756}
5757_ACEOF
5758rm -f conftest.$ac_objext conftest$ac_exeext
5759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5760 (eval $ac_link) 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
121ce6e5 5767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest$ac_exeext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 gt_cv_func_gettext_libintl=yes
5780else
5781 echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
4e8d927d 5784 gt_cv_func_gettext_libintl=no
bec39cab 5785fi
4e8d927d 5786
bec39cab
AC
5787rm -f conftest.err conftest.$ac_objext \
5788 conftest$ac_exeext conftest.$ac_ext
5789fi
4e8d927d
DJ
5790{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5791echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6; }
bec39cab
AC
5792fi
5793
5794 fi
5795
5796 if test "$gt_cv_func_gettext_libc" = "yes" \
5797 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5798
5799cat >>confdefs.h <<\_ACEOF
5800#define HAVE_GETTEXT 1
5801_ACEOF
5802
5803 # Extract the first word of "msgfmt", so it can be a program name with args.
5804set dummy msgfmt; ac_word=$2
4e8d927d
DJ
5805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
5807if test "${ac_cv_path_MSGFMT+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
5810 case "$MSGFMT" in
5811 /*)
5812 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5813 ;;
5814 *)
5815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5816 for ac_dir in $PATH; do
5817 test -z "$ac_dir" && ac_dir=.
5818 if test -f $ac_dir/$ac_word; then
5819 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5820 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5821 break
5822 fi
5823 fi
5824 done
5825 IFS="$ac_save_ifs"
5826 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5827 ;;
5828esac
5829fi
5830MSGFMT="$ac_cv_path_MSGFMT"
5831if test -n "$MSGFMT"; then
4e8d927d
DJ
5832 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5833echo "${ECHO_T}$MSGFMT" >&6; }
bec39cab 5834else
4e8d927d
DJ
5835 { echo "$as_me:$LINENO: result: no" >&5
5836echo "${ECHO_T}no" >&6; }
bec39cab
AC
5837fi
5838 if test "$MSGFMT" != "no"; then
5839
5840for ac_func in dcgettext
5841do
5842as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
5843{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5844echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5845if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847else
5848 cat >conftest.$ac_ext <<_ACEOF
5849/* confdefs.h. */
5850_ACEOF
5851cat confdefs.h >>conftest.$ac_ext
5852cat >>conftest.$ac_ext <<_ACEOF
5853/* end confdefs.h. */
5854/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5856#define $ac_func innocuous_$ac_func
5857
5858/* System header to define __stub macros and hopefully few prototypes,
5859 which can conflict with char $ac_func (); below.
5860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5861 <limits.h> exists even on freestanding compilers. */
5862
5863#ifdef __STDC__
5864# include <limits.h>
5865#else
5866# include <assert.h>
5867#endif
5868
5869#undef $ac_func
5870
4e8d927d
DJ
5871/* Override any GCC internal prototype to avoid an error.
5872 Use char because int might match the return type of a GCC
5873 builtin and then its argument prototype would still apply. */
bec39cab
AC
5874#ifdef __cplusplus
5875extern "C"
bec39cab 5876#endif
bec39cab
AC
5877char $ac_func ();
5878/* The GNU C library defines this for functions which it implements
5879 to always fail with ENOSYS. Some functions are actually named
5880 something starting with __ and the normal name is an alias. */
4e8d927d 5881#if defined __stub_$ac_func || defined __stub___$ac_func
bec39cab 5882choke me
bec39cab
AC
5883#endif
5884
5885int
5886main ()
5887{
4e8d927d 5888return $ac_func ();
bec39cab
AC
5889 ;
5890 return 0;
5891}
5892_ACEOF
5893rm -f conftest.$ac_objext conftest$ac_exeext
5894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5895 (eval $ac_link) 2>conftest.er1
5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } &&
121ce6e5 5902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; } &&
5908 { ac_try='test -s conftest$ac_exeext'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; }; then
5914 eval "$as_ac_var=yes"
5915else
5916 echo "$as_me: failed program was:" >&5
5917sed 's/^/| /' conftest.$ac_ext >&5
5918
4e8d927d 5919 eval "$as_ac_var=no"
bec39cab 5920fi
4e8d927d 5921
bec39cab
AC
5922rm -f conftest.err conftest.$ac_objext \
5923 conftest$ac_exeext conftest.$ac_ext
5924fi
4e8d927d
DJ
5925ac_res=`eval echo '${'$as_ac_var'}'`
5926 { echo "$as_me:$LINENO: result: $ac_res" >&5
5927echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
5928if test `eval echo '${'$as_ac_var'}'` = yes; then
5929 cat >>confdefs.h <<_ACEOF
5930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5931_ACEOF
5932
5933fi
5934done
5935
5936 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5937set dummy gmsgfmt; ac_word=$2
4e8d927d
DJ
5938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
5940if test "${ac_cv_path_GMSGFMT+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5942else
5943 case $GMSGFMT in
5944 [\\/]* | ?:[\\/]*)
5945 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5946 ;;
5947 *)
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949for as_dir in $PATH
5950do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 5954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
5955 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5958 fi
5959done
5960done
4e8d927d 5961IFS=$as_save_IFS
bec39cab
AC
5962
5963 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5964 ;;
5965esac
5966fi
5967GMSGFMT=$ac_cv_path_GMSGFMT
bec39cab 5968if test -n "$GMSGFMT"; then
4e8d927d
DJ
5969 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5970echo "${ECHO_T}$GMSGFMT" >&6; }
bec39cab 5971else
4e8d927d
DJ
5972 { echo "$as_me:$LINENO: result: no" >&5
5973echo "${ECHO_T}no" >&6; }
bec39cab
AC
5974fi
5975
4e8d927d 5976
bec39cab
AC
5977 # Extract the first word of "xgettext", so it can be a program name with args.
5978set dummy xgettext; ac_word=$2
4e8d927d
DJ
5979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
5981if test "${ac_cv_path_XGETTEXT+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984 case "$XGETTEXT" in
5985 /*)
5986 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5987 ;;
5988 *)
5989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5990 for ac_dir in $PATH; do
5991 test -z "$ac_dir" && ac_dir=.
5992 if test -f $ac_dir/$ac_word; then
5993 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5994 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5995 break
5996 fi
5997 fi
5998 done
5999 IFS="$ac_save_ifs"
6000 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6001 ;;
6002esac
6003fi
6004XGETTEXT="$ac_cv_path_XGETTEXT"
6005if test -n "$XGETTEXT"; then
4e8d927d
DJ
6006 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6007echo "${ECHO_T}$XGETTEXT" >&6; }
bec39cab 6008else
4e8d927d
DJ
6009 { echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6; }
bec39cab
AC
6011fi
6012
6013 cat >conftest.$ac_ext <<_ACEOF
6014/* confdefs.h. */
6015_ACEOF
6016cat confdefs.h >>conftest.$ac_ext
6017cat >>conftest.$ac_ext <<_ACEOF
6018/* end confdefs.h. */
6019
6020int
6021main ()
6022{
6023extern int _nl_msg_cat_cntr;
6024 return _nl_msg_cat_cntr
6025 ;
6026 return 0;
6027}
6028_ACEOF
6029rm -f conftest.$ac_objext conftest$ac_exeext
6030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6031 (eval $ac_link) 2>conftest.er1
6032 ac_status=$?
6033 grep -v '^ *+' conftest.er1 >conftest.err
6034 rm -f conftest.er1
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
121ce6e5 6038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 (eval $ac_try) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 (eval $ac_try) 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 CATOBJEXT=.gmo
6051 DATADIRNAME=share
6052else
6053 echo "$as_me: failed program was:" >&5
6054sed 's/^/| /' conftest.$ac_ext >&5
6055
4e8d927d 6056 CATOBJEXT=.mo
bec39cab
AC
6057 DATADIRNAME=lib
6058fi
4e8d927d 6059
bec39cab
AC
6060rm -f conftest.err conftest.$ac_objext \
6061 conftest$ac_exeext conftest.$ac_ext
6062 INSTOBJEXT=.mo
6063 fi
6064 fi
6065
6066fi
6067
6068
6069
6070
a53bf506 6071 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
6072 # Neither gettext nor catgets in included in the C library.
6073 # Fall back on GNU gettext library (assuming it is present).
6074 nls_cv_use_gnu_gettext=yes
bec39cab
AC
6075 fi
6076 fi
6077
6078 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6079 INTLOBJS="\$(GETTOBJS)"
6080 # Extract the first word of "msgfmt", so it can be a program name with args.
6081set dummy msgfmt; ac_word=$2
4e8d927d
DJ
6082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
6084if test "${ac_cv_path_MSGFMT+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087 case "$MSGFMT" in
6088 /*)
6089 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6090 ;;
6091 *)
6092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6093 for ac_dir in $PATH; do
6094 test -z "$ac_dir" && ac_dir=.
6095 if test -f $ac_dir/$ac_word; then
6096 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6097 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6098 break
6099 fi
6100 fi
6101 done
6102 IFS="$ac_save_ifs"
6103 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
6104 ;;
6105esac
6106fi
6107MSGFMT="$ac_cv_path_MSGFMT"
6108if test -n "$MSGFMT"; then
4e8d927d
DJ
6109 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6110echo "${ECHO_T}$MSGFMT" >&6; }
bec39cab 6111else
4e8d927d
DJ
6112 { echo "$as_me:$LINENO: result: no" >&5
6113echo "${ECHO_T}no" >&6; }
bec39cab
AC
6114fi
6115
6116 # Extract the first word of "gmsgfmt", so it can be a program name with args.
c906108c 6117set dummy gmsgfmt; ac_word=$2
4e8d927d
DJ
6118{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
6120if test "${ac_cv_path_GMSGFMT+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123 case $GMSGFMT in
6124 [\\/]* | ?:[\\/]*)
6125 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6126 ;;
6127 *)
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129for as_dir in $PATH
6130do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
6135 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139done
6140done
4e8d927d 6141IFS=$as_save_IFS
bec39cab
AC
6142
6143 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6144 ;;
6145esac
6146fi
6147GMSGFMT=$ac_cv_path_GMSGFMT
bec39cab 6148if test -n "$GMSGFMT"; then
4e8d927d
DJ
6149 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6150echo "${ECHO_T}$GMSGFMT" >&6; }
bec39cab 6151else
4e8d927d
DJ
6152 { echo "$as_me:$LINENO: result: no" >&5
6153echo "${ECHO_T}no" >&6; }
bec39cab
AC
6154fi
6155
4e8d927d 6156
bec39cab
AC
6157 # Extract the first word of "xgettext", so it can be a program name with args.
6158set dummy xgettext; ac_word=$2
4e8d927d
DJ
6159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
6161if test "${ac_cv_path_XGETTEXT+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164 case "$XGETTEXT" in
6165 /*)
6166 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6167 ;;
6168 *)
6169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6170 for ac_dir in $PATH; do
6171 test -z "$ac_dir" && ac_dir=.
6172 if test -f $ac_dir/$ac_word; then
6173 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6174 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6175 break
6176 fi
6177 fi
6178 done
6179 IFS="$ac_save_ifs"
6180 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6181 ;;
6182esac
6183fi
6184XGETTEXT="$ac_cv_path_XGETTEXT"
6185if test -n "$XGETTEXT"; then
4e8d927d
DJ
6186 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6187echo "${ECHO_T}$XGETTEXT" >&6; }
bec39cab 6188else
4e8d927d
DJ
6189 { echo "$as_me:$LINENO: result: no" >&5
6190echo "${ECHO_T}no" >&6; }
bec39cab
AC
6191fi
6192
6193
6194 USE_INCLUDED_LIBINTL=yes
6195 CATOBJEXT=.gmo
6196 INSTOBJEXT=.mo
6197 DATADIRNAME=share
6198 INTLDEPS='$(top_builddir)/../intl/libintl.a'
6199 INTLLIBS=$INTLDEPS
6200 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
6201 nls_cv_header_intl=libintl.h
6202 nls_cv_header_libgt=libgettext.h
6203 fi
6204
6205 if test "$XGETTEXT" != ":"; then
6206 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
6207 : ;
6208 else
4e8d927d
DJ
6209 { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
6210echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
bec39cab
AC
6211 XGETTEXT=":"
6212 fi
6213 fi
6214
6215 # We need to process the po/ directory.
6216 POSUB=po
6217 else
6218 DATADIRNAME=share
6219 nls_cv_header_intl=libintl.h
6220 nls_cv_header_libgt=libgettext.h
6221 fi
6222
6223 # If this is used in GNU gettext we have to set USE_NLS to `yes'
6224 # because some of the sources are only built for this goal.
6225 if test "$PACKAGE" = gettext; then
6226 USE_NLS=yes
6227 USE_INCLUDED_LIBINTL=yes
6228 fi
6229
6230 for lang in $ALL_LINGUAS; do
6231 GMOFILES="$GMOFILES $lang.gmo"
6232 POFILES="$POFILES $lang.po"
6233 done
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
c46f8c51
AC
6246 if test "x$CATOBJEXT" != "x"; then
6247
6248cat >>confdefs.h <<\_ACEOF
6249#define ENABLE_NLS 1
6250_ACEOF
6251
6252 fi
bec39cab
AC
6253
6254
6255 if test "x$CATOBJEXT" != "x"; then
6256 if test "x$ALL_LINGUAS" = "x"; then
6257 LINGUAS=
6258 else
4e8d927d
DJ
6259 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6260echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
bec39cab
AC
6261 NEW_LINGUAS=
6262 for lang in ${LINGUAS=$ALL_LINGUAS}; do
6263 case "$ALL_LINGUAS" in
6264 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
6265 esac
6266 done
6267 LINGUAS=$NEW_LINGUAS
4e8d927d
DJ
6268 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
6269echo "${ECHO_T}$LINGUAS" >&6; }
bec39cab
AC
6270 fi
6271
6272 if test -n "$LINGUAS"; then
6273 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
6274 fi
6275 fi
6276
6277 if test $ac_cv_header_locale_h = yes; then
6278 INCLUDE_LOCALE_H="#include <locale.h>"
6279 else
6280 INCLUDE_LOCALE_H="\
6281/* The system does not provide the header <locale.h>. Take care yourself. */"
6282 fi
6283
6284
6285 if test -f $srcdir/po2tbl.sed.in; then
6286 if test "$CATOBJEXT" = ".cat"; then
6287 if test "${ac_cv_header_linux_version_h+set}" = set; then
4e8d927d
DJ
6288 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
6289echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
bec39cab
AC
6290if test "${ac_cv_header_linux_version_h+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292fi
4e8d927d
DJ
6293{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
6294echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
bec39cab
AC
6295else
6296 # Is the header compilable?
4e8d927d
DJ
6297{ echo "$as_me:$LINENO: checking linux/version.h usability" >&5
6298echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
bec39cab
AC
6299cat >conftest.$ac_ext <<_ACEOF
6300/* confdefs.h. */
6301_ACEOF
6302cat confdefs.h >>conftest.$ac_ext
6303cat >>conftest.$ac_ext <<_ACEOF
6304/* end confdefs.h. */
6305$ac_includes_default
6306#include <linux/version.h>
6307_ACEOF
6308rm -f conftest.$ac_objext
6309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310 (eval $ac_compile) 2>conftest.er1
6311 ac_status=$?
6312 grep -v '^ *+' conftest.er1 >conftest.err
6313 rm -f conftest.er1
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
121ce6e5 6317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
6329 ac_header_compiler=yes
6330else
6331 echo "$as_me: failed program was:" >&5
6332sed 's/^/| /' conftest.$ac_ext >&5
6333
4e8d927d 6334 ac_header_compiler=no
bec39cab 6335fi
4e8d927d 6336
bec39cab 6337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
6338{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6339echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
6340
6341# Is the header present?
4e8d927d
DJ
6342{ echo "$as_me:$LINENO: checking linux/version.h presence" >&5
6343echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
bec39cab
AC
6344cat >conftest.$ac_ext <<_ACEOF
6345/* confdefs.h. */
6346_ACEOF
6347cat confdefs.h >>conftest.$ac_ext
6348cat >>conftest.$ac_ext <<_ACEOF
6349/* end confdefs.h. */
6350#include <linux/version.h>
6351_ACEOF
6352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } >/dev/null; then
6360 if test -s conftest.err; then
6361 ac_cpp_err=$ac_c_preproc_warn_flag
6362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6363 else
6364 ac_cpp_err=
6365 fi
6366else
6367 ac_cpp_err=yes
6368fi
6369if test -z "$ac_cpp_err"; then
6370 ac_header_preproc=yes
6371else
6372 echo "$as_me: failed program was:" >&5
6373sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 ac_header_preproc=no
6376fi
4e8d927d 6377
bec39cab 6378rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
6379{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6380echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
6381
6382# So? What about this header?
6383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6384 yes:no: )
6385 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
6386echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
6388echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
6389 ac_header_preproc=yes
6390 ;;
6391 no:yes:* )
6392 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
6393echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
6395echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
6397echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
6398 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
6399echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
6400 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
6401echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
6402 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
6403echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
4e8d927d 6404
bec39cab
AC
6405 ;;
6406esac
4e8d927d
DJ
6407{ echo "$as_me:$LINENO: checking for linux/version.h" >&5
6408echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
bec39cab
AC
6409if test "${ac_cv_header_linux_version_h+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411else
6412 ac_cv_header_linux_version_h=$ac_header_preproc
6413fi
4e8d927d
DJ
6414{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
6415echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
bec39cab
AC
6416
6417fi
6418if test $ac_cv_header_linux_version_h = yes; then
6419 msgformat=linux
6420else
6421 msgformat=xopen
6422fi
6423
6424
6425
6426 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
6427 fi
6428 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
6429 $srcdir/po2tbl.sed.in > po2tbl.sed
6430 fi
6431
6432 if test "$PACKAGE" = "gettext"; then
6433 GT_NO="#NO#"
6434 GT_YES=
6435 else
6436 GT_NO=
6437 GT_YES="#YES#"
6438 fi
6439
6440
6441
6442 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
6443
6444
6445 l=
6446
6447
6448 if test -f $srcdir/po/POTFILES.in; then
6449 test -d po || mkdir po
6450 if test "x$srcdir" != "x."; then
6451 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
6452 posrcprefix="$srcdir/"
6453 else
6454 posrcprefix="../$srcdir/"
6455 fi
6456 else
6457 posrcprefix="../"
6458 fi
6459 rm -f po/POTFILES
6460 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
6461 < $srcdir/po/POTFILES.in > po/POTFILES
6462 fi
6463
6464
6465localedir='${datadir}/locale'
6466
6467
6468if test "x$POSUB" != x; then
6469
4e8d927d
DJ
6470 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6471echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
bec39cab
AC
6472 # Look for .po and .gmo files in the source directory.
6473 CATALOGS=
6474 XLINGUAS=
6475 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6476 # If there aren't any .gmo files the shell will give us the
6477 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6478 # weeded out.
6479 case "$cat" in *\**)
6480 continue;;
6481 esac
6482 # The quadruple backslash is collapsed to a double backslash
6483 # by the backticks, then collapsed again by the double quotes,
6484 # leaving us with one backslash in the sed expression (right
6485 # before the dot that mustn't act as a wildcard).
6486 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
6487 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
6488 # The user is allowed to set LINGUAS to a list of languages to
6489 # install catalogs for. If it's empty that means "all of them."
6490 if test "x$LINGUAS" = x; then
6491 CATALOGS="$CATALOGS $cat"
6492 XLINGUAS="$XLINGUAS $lang"
6493 else
6494 case "$LINGUAS" in *$lang*)
6495 CATALOGS="$CATALOGS $cat"
6496 XLINGUAS="$XLINGUAS $lang"
6497 ;;
6498 esac
6499 fi
6500 done
6501 LINGUAS="$XLINGUAS"
4e8d927d
DJ
6502 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
6503echo "${ECHO_T}$LINGUAS" >&6; }
bec39cab
AC
6504
6505 CONFIG_ALL="$CONFIG_ALL all-po"
6506 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
6507 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
6508 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
6509fi
6510
6511PACKAGE=gdb
6512
6513cat >>confdefs.h <<_ACEOF
6514#define PACKAGE "$PACKAGE"
6515_ACEOF
6516
6517
6518
6519debugdir=${libdir}/debug
6520
6521
4e8d927d 6522# Check whether --with-separate-debug-dir was given.
bec39cab 6523if test "${with_separate_debug_dir+set}" = set; then
4e8d927d
DJ
6524 withval=$with_separate_debug_dir; debugdir="${withval}"
6525fi
6526
bec39cab
AC
6527
6528
6529 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6531 ac_define_dir=`eval echo $debugdir`
6532 ac_define_dir=`eval echo $ac_define_dir`
6533
6534cat >>confdefs.h <<_ACEOF
6535#define DEBUGDIR "$ac_define_dir"
6536_ACEOF
6537
6538
6539#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6540
bec39cab
AC
6541subdirs="$subdirs doc testsuite"
6542
6543
121ce6e5
DJ
6544# Provide defaults for some variables set by the per-host and per-target
6545# configuration.
6546gdb_host_obs=posix-hdep.o
6547
bec39cab
AC
6548. $srcdir/configure.host
6549
6550. $srcdir/configure.tgt
6551
6552# Fetch the default architecture and default target vector from BFD.
6553targ=$target; . $srcdir/../bfd/config.bfd
6554
6555# We only want the first architecture, so strip off the others if
6556# there is more than one.
6557targ_archs=`echo $targ_archs | sed 's/ .*//'`
6558
6559if test "x$targ_archs" != x; then
6560
6561cat >>confdefs.h <<_ACEOF
6562#define DEFAULT_BFD_ARCH $targ_archs
6563_ACEOF
6564
6565fi
6566if test "x$targ_defvec" != x; then
6567
6568cat >>confdefs.h <<_ACEOF
6569#define DEFAULT_BFD_VEC $targ_defvec
6570_ACEOF
6571
6572fi
6573
6574test "$program_prefix" != NONE &&
4e8d927d 6575 program_transform_name="s&^&$program_prefix&;$program_transform_name"
bec39cab
AC
6576# Use a double $ so make ignores it.
6577test "$program_suffix" != NONE &&
4e8d927d 6578 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
bec39cab
AC
6579# Double any \ or $. echo might interpret backslashes.
6580# By default was `s,x,x', remove it if useless.
6581cat <<\_ACEOF >conftest.sed
6582s/[\\$]/&&/g;s/;s,x,x,$//
6583_ACEOF
6584program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4e8d927d 6585rm -f conftest.sed
bec39cab
AC
6586
6587
6588# The CLI cannot be disabled yet, but may be in the future.
6589
6590# Enable CLI.
4e8d927d 6591# Check whether --enable-gdbcli was given.
bec39cab 6592if test "${enable_gdbcli+set}" = set; then
4e8d927d 6593 enableval=$enable_gdbcli; case $enableval in
bec39cab
AC
6594 yes)
6595 ;;
6596 no)
6597 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6598echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6599 { (exit 1); exit 1; }; } ;;
6600 *)
6601 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6602echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6603 { (exit 1); exit 1; }; } ;;
6604 esac
6605else
6606 enable_gdbcli=yes
4e8d927d
DJ
6607fi
6608
bec39cab
AC
6609if test x"$enable_gdbcli" = xyes; then
6610 if test -d $srcdir/cli; then
6611 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6612 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6613 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6614 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6615 fi
6616fi
6617
6618# Enable MI.
4e8d927d 6619# Check whether --enable-gdbmi was given.
bec39cab 6620if test "${enable_gdbmi+set}" = set; then
4e8d927d 6621 enableval=$enable_gdbmi; case $enableval in
bec39cab
AC
6622 yes | no)
6623 ;;
6624 *)
6625 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6626echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6627 { (exit 1); exit 1; }; } ;;
6628 esac
6629else
6630 enable_gdbmi=yes
4e8d927d
DJ
6631fi
6632
bec39cab
AC
6633if test x"$enable_gdbmi" = xyes; then
6634 if test -d $srcdir/mi; then
6635 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6636 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6637 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6638 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6639 fi
6640fi
6641
6642# Enable TUI.
4e8d927d 6643# Check whether --enable-tui was given.
bec39cab 6644if test "${enable_tui+set}" = set; then
4e8d927d 6645 enableval=$enable_tui; case $enableval in
bec39cab
AC
6646 yes | no)
6647 ;;
6648 *)
6649 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6650echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6651 { (exit 1); exit 1; }; } ;;
6652 esac
6653else
6654 enable_tui=yes
4e8d927d
DJ
6655fi
6656
bec39cab
AC
6657
6658# Enable gdbtk.
4e8d927d 6659# Check whether --enable-gdbtk was given.
bec39cab 6660if test "${enable_gdbtk+set}" = set; then
4e8d927d 6661 enableval=$enable_gdbtk; case $enableval in
bec39cab
AC
6662 yes | no)
6663 ;;
6664 *)
6665 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6666echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6667 { (exit 1); exit 1; }; } ;;
6668 esac
6669else
04ac69aa 6670 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
6671 enable_gdbtk=yes
6672 else
6673 enable_gdbtk=no
6674 fi
4e8d927d
DJ
6675fi
6676
bec39cab
AC
6677# We unconditionally disable gdbtk tests on selected platforms.
6678case $host_os in
6679 go32* | windows*)
6680 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6681echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6682 enable_gdbtk=no ;;
6683esac
6684
6685# Libunwind support.
6686
4e8d927d 6687# Check whether --with-libunwind was given.
bec39cab 6688if test "${with_libunwind+set}" = set; then
4e8d927d 6689 withval=$with_libunwind; case "${withval}" in
bec39cab
AC
6690 yes) enable_libunwind=yes ;;
6691 no) enable_libunwind=no ;;
6692 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6693echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6694 { (exit 1); exit 1; }; } ;;
6695esac
6696else
6697
6698
6699for ac_header in libunwind.h
6700do
6701as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
6702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707fi
4e8d927d
DJ
6708ac_res=`eval echo '${'$as_ac_Header'}'`
6709 { echo "$as_me:$LINENO: result: $ac_res" >&5
6710echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
6711else
6712 # Is the header compilable?
4e8d927d
DJ
6713{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6714echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
6715cat >conftest.$ac_ext <<_ACEOF
6716/* confdefs.h. */
6717_ACEOF
6718cat confdefs.h >>conftest.$ac_ext
6719cat >>conftest.$ac_ext <<_ACEOF
6720/* end confdefs.h. */
6721$ac_includes_default
6722#include <$ac_header>
6723_ACEOF
6724rm -f conftest.$ac_objext
6725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
121ce6e5 6733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; } &&
6739 { ac_try='test -s conftest.$ac_objext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 ac_header_compiler=yes
6746else
6747 echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
4e8d927d 6750 ac_header_compiler=no
bec39cab 6751fi
4e8d927d 6752
bec39cab 6753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
6754{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6755echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
6756
6757# Is the header present?
4e8d927d
DJ
6758{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
6760cat >conftest.$ac_ext <<_ACEOF
6761/* confdefs.h. */
6762_ACEOF
6763cat confdefs.h >>conftest.$ac_ext
6764cat >>conftest.$ac_ext <<_ACEOF
6765/* end confdefs.h. */
6766#include <$ac_header>
6767_ACEOF
6768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } >/dev/null; then
6776 if test -s conftest.err; then
6777 ac_cpp_err=$ac_c_preproc_warn_flag
6778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6779 else
6780 ac_cpp_err=
6781 fi
6782else
6783 ac_cpp_err=yes
6784fi
6785if test -z "$ac_cpp_err"; then
6786 ac_header_preproc=yes
6787else
6788 echo "$as_me: failed program was:" >&5
6789sed 's/^/| /' conftest.$ac_ext >&5
6790
6791 ac_header_preproc=no
6792fi
4e8d927d 6793
bec39cab 6794rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
6795{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6796echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
6797
6798# So? What about this header?
6799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6800 yes:no: )
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6802echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6804echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6805 ac_header_preproc=yes
6806 ;;
6807 no:yes:* )
6808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6809echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6811echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6813echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6815echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6819echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 6820
bec39cab
AC
6821 ;;
6822esac
4e8d927d
DJ
6823{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827else
6828 eval "$as_ac_Header=\$ac_header_preproc"
6829fi
4e8d927d
DJ
6830ac_res=`eval echo '${'$as_ac_Header'}'`
6831 { echo "$as_me:$LINENO: result: $ac_res" >&5
6832echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
6833
6834fi
6835if test `eval echo '${'$as_ac_Header'}'` = yes; then
6836 cat >>confdefs.h <<_ACEOF
6837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6838_ACEOF
6839
6840fi
6841
6842done
6843
6844
6845for ac_header in libunwind-ia64.h
6846do
6847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
6848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853fi
4e8d927d
DJ
6854ac_res=`eval echo '${'$as_ac_Header'}'`
6855 { echo "$as_me:$LINENO: result: $ac_res" >&5
6856echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
6857else
6858 # Is the header compilable?
4e8d927d
DJ
6859{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
6861cat >conftest.$ac_ext <<_ACEOF
6862/* confdefs.h. */
6863_ACEOF
6864cat confdefs.h >>conftest.$ac_ext
6865cat >>conftest.$ac_ext <<_ACEOF
6866/* end confdefs.h. */
6867$ac_includes_default
6868#include <$ac_header>
6869_ACEOF
6870rm -f conftest.$ac_objext
6871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6872 (eval $ac_compile) 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); } &&
121ce6e5 6879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_header_compiler=yes
6892else
6893 echo "$as_me: failed program was:" >&5
6894sed 's/^/| /' conftest.$ac_ext >&5
6895
4e8d927d 6896 ac_header_compiler=no
bec39cab 6897fi
4e8d927d 6898
bec39cab 6899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
6900{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6901echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
6902
6903# Is the header present?
4e8d927d
DJ
6904{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6905echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
6906cat >conftest.$ac_ext <<_ACEOF
6907/* confdefs.h. */
6908_ACEOF
6909cat confdefs.h >>conftest.$ac_ext
6910cat >>conftest.$ac_ext <<_ACEOF
6911/* end confdefs.h. */
6912#include <$ac_header>
6913_ACEOF
6914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6916 ac_status=$?
6917 grep -v '^ *+' conftest.er1 >conftest.err
6918 rm -f conftest.er1
6919 cat conftest.err >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } >/dev/null; then
6922 if test -s conftest.err; then
6923 ac_cpp_err=$ac_c_preproc_warn_flag
6924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6925 else
6926 ac_cpp_err=
6927 fi
6928else
6929 ac_cpp_err=yes
6930fi
6931if test -z "$ac_cpp_err"; then
6932 ac_header_preproc=yes
6933else
6934 echo "$as_me: failed program was:" >&5
6935sed 's/^/| /' conftest.$ac_ext >&5
6936
6937 ac_header_preproc=no
6938fi
4e8d927d 6939
bec39cab 6940rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
6941{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6942echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
6943
6944# So? What about this header?
6945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6946 yes:no: )
6947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6948echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6950echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6951 ac_header_preproc=yes
6952 ;;
6953 no:yes:* )
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6955echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6957echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6959echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6961echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6963echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6965echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 6966
bec39cab
AC
6967 ;;
6968esac
4e8d927d
DJ
6969{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974 eval "$as_ac_Header=\$ac_header_preproc"
6975fi
4e8d927d
DJ
6976ac_res=`eval echo '${'$as_ac_Header'}'`
6977 { echo "$as_me:$LINENO: result: $ac_res" >&5
6978echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
6979
6980fi
6981if test `eval echo '${'$as_ac_Header'}'` = yes; then
6982 cat >>confdefs.h <<_ACEOF
6983#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6984_ACEOF
6985
6986fi
6987
6988done
6989
6990 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6991 enable_libunwind=yes;
6992 fi
6993
4e8d927d
DJ
6994fi
6995
bec39cab
AC
6996
6997if test x"$enable_libunwind" = xyes; then
6998
6999for ac_header in libunwind.h
7000do
7001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
7002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007fi
4e8d927d
DJ
7008ac_res=`eval echo '${'$as_ac_Header'}'`
7009 { echo "$as_me:$LINENO: result: $ac_res" >&5
7010echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
7011else
7012 # Is the header compilable?
4e8d927d
DJ
7013{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7014echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
7015cat >conftest.$ac_ext <<_ACEOF
7016/* confdefs.h. */
7017_ACEOF
7018cat confdefs.h >>conftest.$ac_ext
7019cat >>conftest.$ac_ext <<_ACEOF
7020/* end confdefs.h. */
7021$ac_includes_default
7022#include <$ac_header>
7023_ACEOF
7024rm -f conftest.$ac_objext
7025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7026 (eval $ac_compile) 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
121ce6e5 7033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; } &&
7039 { ac_try='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 (eval $ac_try) 2>&5
7042 ac_status=$?
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 ac_header_compiler=yes
7046else
7047 echo "$as_me: failed program was:" >&5
7048sed 's/^/| /' conftest.$ac_ext >&5
7049
4e8d927d 7050 ac_header_compiler=no
bec39cab 7051fi
4e8d927d 7052
bec39cab 7053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
7054{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7055echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
7056
7057# Is the header present?
4e8d927d
DJ
7058{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
7060cat >conftest.$ac_ext <<_ACEOF
7061/* confdefs.h. */
7062_ACEOF
7063cat confdefs.h >>conftest.$ac_ext
7064cat >>conftest.$ac_ext <<_ACEOF
7065/* end confdefs.h. */
7066#include <$ac_header>
7067_ACEOF
7068if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7070 ac_status=$?
7071 grep -v '^ *+' conftest.er1 >conftest.err
7072 rm -f conftest.er1
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } >/dev/null; then
7076 if test -s conftest.err; then
7077 ac_cpp_err=$ac_c_preproc_warn_flag
7078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7079 else
7080 ac_cpp_err=
7081 fi
7082else
7083 ac_cpp_err=yes
7084fi
7085if test -z "$ac_cpp_err"; then
7086 ac_header_preproc=yes
7087else
7088 echo "$as_me: failed program was:" >&5
7089sed 's/^/| /' conftest.$ac_ext >&5
7090
7091 ac_header_preproc=no
7092fi
4e8d927d 7093
bec39cab 7094rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
7095{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7096echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
7097
7098# So? What about this header?
7099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7100 yes:no: )
7101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7105 ac_header_preproc=yes
7106 ;;
7107 no:yes:* )
7108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 7120
bec39cab
AC
7121 ;;
7122esac
4e8d927d
DJ
7123{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127else
7128 eval "$as_ac_Header=\$ac_header_preproc"
7129fi
4e8d927d
DJ
7130ac_res=`eval echo '${'$as_ac_Header'}'`
7131 { echo "$as_me:$LINENO: result: $ac_res" >&5
7132echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
7133
7134fi
7135if test `eval echo '${'$as_ac_Header'}'` = yes; then
7136 cat >>confdefs.h <<_ACEOF
7137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7138_ACEOF
7139
7140fi
7141
7142done
7143
7144
7145for ac_header in libunwind-ia64.h
7146do
7147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
7148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153fi
4e8d927d
DJ
7154ac_res=`eval echo '${'$as_ac_Header'}'`
7155 { echo "$as_me:$LINENO: result: $ac_res" >&5
7156echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
7157else
7158 # Is the header compilable?
4e8d927d
DJ
7159{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
7161cat >conftest.$ac_ext <<_ACEOF
7162/* confdefs.h. */
7163_ACEOF
7164cat confdefs.h >>conftest.$ac_ext
7165cat >>conftest.$ac_ext <<_ACEOF
7166/* end confdefs.h. */
7167$ac_includes_default
7168#include <$ac_header>
7169_ACEOF
7170rm -f conftest.$ac_objext
7171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172 (eval $ac_compile) 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
121ce6e5 7179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 (eval $ac_try) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest.$ac_objext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 (eval $ac_try) 2>&5
7188 ac_status=$?
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 ac_header_compiler=yes
7192else
7193 echo "$as_me: failed program was:" >&5
7194sed 's/^/| /' conftest.$ac_ext >&5
7195
4e8d927d 7196 ac_header_compiler=no
bec39cab 7197fi
4e8d927d 7198
bec39cab 7199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
7200{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7201echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
7202
7203# Is the header present?
4e8d927d
DJ
7204{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
7206cat >conftest.$ac_ext <<_ACEOF
7207/* confdefs.h. */
7208_ACEOF
7209cat confdefs.h >>conftest.$ac_ext
7210cat >>conftest.$ac_ext <<_ACEOF
7211/* end confdefs.h. */
7212#include <$ac_header>
7213_ACEOF
7214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7216 ac_status=$?
7217 grep -v '^ *+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } >/dev/null; then
7222 if test -s conftest.err; then
7223 ac_cpp_err=$ac_c_preproc_warn_flag
7224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7225 else
7226 ac_cpp_err=
7227 fi
7228else
7229 ac_cpp_err=yes
7230fi
7231if test -z "$ac_cpp_err"; then
7232 ac_header_preproc=yes
7233else
7234 echo "$as_me: failed program was:" >&5
7235sed 's/^/| /' conftest.$ac_ext >&5
7236
7237 ac_header_preproc=no
7238fi
4e8d927d 7239
bec39cab 7240rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
7241{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7242echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
7243
7244# So? What about this header?
7245case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7246 yes:no: )
7247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7248echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7250echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7251 ac_header_preproc=yes
7252 ;;
7253 no:yes:* )
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7255echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7257echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7259echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7261echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7263echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7265echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 7266
bec39cab
AC
7267 ;;
7268esac
4e8d927d
DJ
7269{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273else
7274 eval "$as_ac_Header=\$ac_header_preproc"
7275fi
4e8d927d
DJ
7276ac_res=`eval echo '${'$as_ac_Header'}'`
7277 { echo "$as_me:$LINENO: result: $ac_res" >&5
7278echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
7279
7280fi
7281if test `eval echo '${'$as_ac_Header'}'` = yes; then
7282 cat >>confdefs.h <<_ACEOF
7283#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7284_ACEOF
7285
7286fi
7287
7288done
7289
60ca704f
SE
7290
7291cat >>confdefs.h <<\_ACEOF
bec39cab
AC
7292#define HAVE_LIBUNWIND 1
7293_ACEOF
7294
7295 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
7296 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
7297 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
7298fi
7299
7300# Profiling support.
4e8d927d 7301# Check whether --enable-profiling was given.
bec39cab 7302if test "${enable_profiling+set}" = set; then
4e8d927d 7303 enableval=$enable_profiling; case $enableval in
bec39cab
AC
7304 yes | no)
7305 ;;
7306 *)
7307 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
7308echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
7309 { (exit 1); exit 1; }; } ;;
7310 esac
7311else
7312 enable_profiling=no
4e8d927d
DJ
7313fi
7314
bec39cab
AC
7315
7316
7317
7318for ac_func in monstartup _mcleanup
7319do
7320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
7321{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7323if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326 cat >conftest.$ac_ext <<_ACEOF
7327/* confdefs.h. */
7328_ACEOF
7329cat confdefs.h >>conftest.$ac_ext
7330cat >>conftest.$ac_ext <<_ACEOF
7331/* end confdefs.h. */
7332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7334#define $ac_func innocuous_$ac_func
7335
7336/* System header to define __stub macros and hopefully few prototypes,
7337 which can conflict with char $ac_func (); below.
7338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7339 <limits.h> exists even on freestanding compilers. */
7340
7341#ifdef __STDC__
7342# include <limits.h>
7343#else
7344# include <assert.h>
7345#endif
7346
7347#undef $ac_func
7348
4e8d927d
DJ
7349/* Override any GCC internal prototype to avoid an error.
7350 Use char because int might match the return type of a GCC
7351 builtin and then its argument prototype would still apply. */
bec39cab
AC
7352#ifdef __cplusplus
7353extern "C"
bec39cab 7354#endif
bec39cab
AC
7355char $ac_func ();
7356/* The GNU C library defines this for functions which it implements
7357 to always fail with ENOSYS. Some functions are actually named
7358 something starting with __ and the normal name is an alias. */
4e8d927d 7359#if defined __stub_$ac_func || defined __stub___$ac_func
bec39cab 7360choke me
bec39cab
AC
7361#endif
7362
7363int
7364main ()
7365{
4e8d927d 7366return $ac_func ();
bec39cab
AC
7367 ;
7368 return 0;
7369}
7370_ACEOF
7371rm -f conftest.$ac_objext conftest$ac_exeext
7372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7373 (eval $ac_link) 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
121ce6e5 7380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 (eval $ac_try) 2>&5
7383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; } &&
7386 { ac_try='test -s conftest$ac_exeext'
7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 (eval $ac_try) 2>&5
7389 ac_status=$?
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 eval "$as_ac_var=yes"
7393else
7394 echo "$as_me: failed program was:" >&5
7395sed 's/^/| /' conftest.$ac_ext >&5
7396
4e8d927d 7397 eval "$as_ac_var=no"
bec39cab 7398fi
4e8d927d 7399
bec39cab
AC
7400rm -f conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7402fi
4e8d927d
DJ
7403ac_res=`eval echo '${'$as_ac_var'}'`
7404 { echo "$as_me:$LINENO: result: $ac_res" >&5
7405echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
7406if test `eval echo '${'$as_ac_var'}'` = yes; then
7407 cat >>confdefs.h <<_ACEOF
7408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7409_ACEOF
7410
7411fi
7412done
7413
4e8d927d
DJ
7414{ echo "$as_me:$LINENO: checking for _etext" >&5
7415echo $ECHO_N "checking for _etext... $ECHO_C" >&6; }
bec39cab
AC
7416if test "${ac_cv_var__etext+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419 cat >conftest.$ac_ext <<_ACEOF
7420/* confdefs.h. */
7421_ACEOF
7422cat confdefs.h >>conftest.$ac_ext
7423cat >>conftest.$ac_ext <<_ACEOF
7424/* end confdefs.h. */
7425#include <stdlib.h>
7426extern char _etext;
7427
7428int
7429main ()
7430{
7431free (&_etext);
7432 ;
7433 return 0;
7434}
7435_ACEOF
7436rm -f conftest.$ac_objext conftest$ac_exeext
7437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438 (eval $ac_link) 2>conftest.er1
7439 ac_status=$?
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } &&
121ce6e5 7445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 ac_cv_var__etext=yes
7458else
7459 echo "$as_me: failed program was:" >&5
7460sed 's/^/| /' conftest.$ac_ext >&5
7461
4e8d927d 7462 ac_cv_var__etext=no
bec39cab 7463fi
4e8d927d 7464
bec39cab
AC
7465rm -f conftest.err conftest.$ac_objext \
7466 conftest$ac_exeext conftest.$ac_ext
7467fi
4e8d927d
DJ
7468{ echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
7469echo "${ECHO_T}$ac_cv_var__etext" >&6; }
bec39cab
AC
7470if test $ac_cv_var__etext = yes; then
7471
7472cat >>confdefs.h <<\_ACEOF
7473#define HAVE__ETEXT 1
7474_ACEOF
7475
7476fi
7477if test "$enable_profiling" = yes ; then
7478 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
7479 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
7480echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
7481 { (exit 1); exit 1; }; }
7482 fi
7483 PROFILE_CFLAGS=-pg
7484 OLD_CFLAGS="$CFLAGS"
7485 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
7486
4e8d927d
DJ
7487 { echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
7488echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6; }
bec39cab
AC
7489if test "${ac_cv_cc_supports_pg+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7491else
bec39cab
AC
7492 cat >conftest.$ac_ext <<_ACEOF
7493/* confdefs.h. */
7494_ACEOF
7495cat confdefs.h >>conftest.$ac_ext
7496cat >>conftest.$ac_ext <<_ACEOF
7497/* end confdefs.h. */
7498
7499int
7500main ()
7501{
7502int x;
7503 ;
7504 return 0;
7505}
7506_ACEOF
7507rm -f conftest.$ac_objext
7508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509 (eval $ac_compile) 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
121ce6e5 7516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 (eval $ac_try) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; } &&
7522 { ac_try='test -s conftest.$ac_objext'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 (eval $ac_try) 2>&5
7525 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528 ac_cv_cc_supports_pg=yes
7529else
7530 echo "$as_me: failed program was:" >&5
7531sed 's/^/| /' conftest.$ac_ext >&5
7532
4e8d927d 7533 ac_cv_cc_supports_pg=no
bec39cab 7534fi
4e8d927d 7535
bec39cab
AC
7536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7537fi
4e8d927d
DJ
7538{ echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
7539echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6; }
bec39cab
AC
7540
7541 if test $ac_cv_cc_supports_pg = no; then
7542 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
7543echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
7544 { (exit 1); exit 1; }; }
7545 fi
7546
7547 CFLAGS="$OLD_CFLAGS"
7548fi
7549
7550# --------------------- #
7551# Checks for programs. #
7552# --------------------- #
7553
7554for ac_prog in gawk mawk nawk awk
7555do
7556 # Extract the first word of "$ac_prog", so it can be a program name with args.
7557set dummy $ac_prog; ac_word=$2
4e8d927d
DJ
7558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
7560if test "${ac_cv_prog_AWK+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563 if test -n "$AWK"; then
7564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7565else
7566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567for as_dir in $PATH
7568do
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 7572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
7573 ac_cv_prog_AWK="$ac_prog"
7574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7576 fi
7577done
7578done
4e8d927d 7579IFS=$as_save_IFS
bec39cab
AC
7580
7581fi
7582fi
7583AWK=$ac_cv_prog_AWK
7584if test -n "$AWK"; then
4e8d927d
DJ
7585 { echo "$as_me:$LINENO: result: $AWK" >&5
7586echo "${ECHO_T}$AWK" >&6; }
bec39cab 7587else
4e8d927d
DJ
7588 { echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6; }
bec39cab
AC
7590fi
7591
4e8d927d 7592
bec39cab
AC
7593 test -n "$AWK" && break
7594done
7595
7596# Find a good install program. We prefer a C program (faster),
7597# so one script is as good as another. But avoid the broken or
7598# incompatible versions:
7599# SysV /etc/install, /usr/sbin/install
7600# SunOS /usr/etc/install
7601# IRIX /sbin/install
7602# AIX /bin/install
7603# AmigaOS /C/install, which installs bootblocks on floppy discs
7604# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7605# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7606# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7607# OS/2's system install, which has a completely different semantic
7608# ./install, which can be erroneously created by make from ./install.sh.
4e8d927d
DJ
7609{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7610echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
bec39cab
AC
7611if test -z "$INSTALL"; then
7612if test "${ac_cv_path_install+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 # Account for people who put trailing slashes in PATH elements.
7621case $as_dir/ in
7622 ./ | .// | /cC/* | \
7623 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7624 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7625 /usr/ucb/* ) ;;
c906108c 7626 *)
bec39cab
AC
7627 # OSF1 and SCO ODT 3.0 have their own names for install.
7628 # Don't use installbsd from OSF since it installs stuff as root
7629 # by default.
7630 for ac_prog in ginstall scoinst install; do
7631 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 7632 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
bec39cab
AC
7633 if test $ac_prog = install &&
7634 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7635 # AIX install. It has an incompatible calling convention.
7636 :
7637 elif test $ac_prog = install &&
7638 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7639 # program-specific install script used by HP pwplus--don't use.
7640 :
7641 else
7642 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7643 break 3
7644 fi
7645 fi
7646 done
7647 done
7648 ;;
c906108c 7649esac
bec39cab 7650done
4e8d927d 7651IFS=$as_save_IFS
bec39cab
AC
7652
7653
7654fi
7655 if test "${ac_cv_path_install+set}" = set; then
7656 INSTALL=$ac_cv_path_install
7657 else
4e8d927d
DJ
7658 # As a last resort, use the slow shell script. Don't cache a
7659 # value for INSTALL within a source directory, because that will
bec39cab 7660 # break other packages using the cache if that directory is
4e8d927d 7661 # removed, or if the value is a relative name.
bec39cab
AC
7662 INSTALL=$ac_install_sh
7663 fi
7664fi
4e8d927d
DJ
7665{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7666echo "${ECHO_T}$INSTALL" >&6; }
bec39cab
AC
7667
7668# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7669# It thinks the first close brace ends the variable substitution.
7670test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7671
7672test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7673
7674test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7675
4e8d927d
DJ
7676{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
7677echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
bec39cab
AC
7678LN_S=$as_ln_s
7679if test "$LN_S" = "ln -s"; then
4e8d927d
DJ
7680 { echo "$as_me:$LINENO: result: yes" >&5
7681echo "${ECHO_T}yes" >&6; }
bec39cab 7682else
4e8d927d
DJ
7683 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7684echo "${ECHO_T}no, using $LN_S" >&6; }
bec39cab
AC
7685fi
7686
7687if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7689set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4e8d927d
DJ
7690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
7692if test "${ac_cv_prog_RANLIB+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694else
7695 if test -n "$RANLIB"; then
7696 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7697else
7698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
7705 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7708 fi
7709done
7710done
4e8d927d 7711IFS=$as_save_IFS
bec39cab
AC
7712
7713fi
7714fi
7715RANLIB=$ac_cv_prog_RANLIB
7716if test -n "$RANLIB"; then
4e8d927d
DJ
7717 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7718echo "${ECHO_T}$RANLIB" >&6; }
bec39cab 7719else
4e8d927d
DJ
7720 { echo "$as_me:$LINENO: result: no" >&5
7721echo "${ECHO_T}no" >&6; }
bec39cab
AC
7722fi
7723
4e8d927d 7724
bec39cab
AC
7725fi
7726if test -z "$ac_cv_prog_RANLIB"; then
7727 ac_ct_RANLIB=$RANLIB
7728 # Extract the first word of "ranlib", so it can be a program name with args.
7729set dummy ranlib; ac_word=$2
4e8d927d
DJ
7730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
7732if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734else
7735 if test -n "$ac_ct_RANLIB"; then
7736 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7737else
7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739for as_dir in $PATH
7740do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
7745 ac_cv_prog_ac_ct_RANLIB="ranlib"
7746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749done
7750done
4e8d927d 7751IFS=$as_save_IFS
bec39cab 7752
bec39cab
AC
7753fi
7754fi
7755ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7756if test -n "$ac_ct_RANLIB"; then
4e8d927d
DJ
7757 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7758echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
bec39cab 7759else
4e8d927d
DJ
7760 { echo "$as_me:$LINENO: result: no" >&5
7761echo "${ECHO_T}no" >&6; }
bec39cab
AC
7762fi
7763
4e8d927d
DJ
7764 if test "x$ac_ct_RANLIB" = x; then
7765 RANLIB=":"
7766 else
7767 case $cross_compiling:$ac_tool_warned in
7768yes:)
7769{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7770whose name does not start with the host triplet. If you think this
7771configuration is useful to you, please write to autoconf@gnu.org." >&5
7772echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7773whose name does not start with the host triplet. If you think this
7774configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7775ac_tool_warned=yes ;;
7776esac
7777 RANLIB=$ac_ct_RANLIB
7778 fi
bec39cab
AC
7779else
7780 RANLIB="$ac_cv_prog_RANLIB"
7781fi
7782
7783for ac_prog in 'bison -y' byacc
7784do
7785 # Extract the first word of "$ac_prog", so it can be a program name with args.
7786set dummy $ac_prog; ac_word=$2
4e8d927d
DJ
7787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
7789if test "${ac_cv_prog_YACC+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791else
7792 if test -n "$YACC"; then
7793 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7794else
7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
7802 ac_cv_prog_YACC="$ac_prog"
7803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7805 fi
7806done
7807done
4e8d927d 7808IFS=$as_save_IFS
bec39cab
AC
7809
7810fi
7811fi
7812YACC=$ac_cv_prog_YACC
7813if test -n "$YACC"; then
4e8d927d
DJ
7814 { echo "$as_me:$LINENO: result: $YACC" >&5
7815echo "${ECHO_T}$YACC" >&6; }
bec39cab 7816else
4e8d927d
DJ
7817 { echo "$as_me:$LINENO: result: no" >&5
7818echo "${ECHO_T}no" >&6; }
bec39cab
AC
7819fi
7820
4e8d927d 7821
bec39cab
AC
7822 test -n "$YACC" && break
7823done
7824test -n "$YACC" || YACC="yacc"
7825
7826
7827if test -n "$ac_tool_prefix"; then
7828 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7829set dummy ${ac_tool_prefix}ar; ac_word=$2
4e8d927d
DJ
7830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
7832if test "${ac_cv_prog_AR+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7834else
7835 if test -n "$AR"; then
7836 ac_cv_prog_AR="$AR" # Let the user override the test.
7837else
7838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839for as_dir in $PATH
7840do
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
7845 ac_cv_prog_AR="${ac_tool_prefix}ar"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7848 fi
7849done
7850done
4e8d927d 7851IFS=$as_save_IFS
bec39cab
AC
7852
7853fi
7854fi
7855AR=$ac_cv_prog_AR
7856if test -n "$AR"; then
4e8d927d
DJ
7857 { echo "$as_me:$LINENO: result: $AR" >&5
7858echo "${ECHO_T}$AR" >&6; }
bec39cab 7859else
4e8d927d
DJ
7860 { echo "$as_me:$LINENO: result: no" >&5
7861echo "${ECHO_T}no" >&6; }
bec39cab
AC
7862fi
7863
4e8d927d 7864
bec39cab
AC
7865fi
7866if test -z "$ac_cv_prog_AR"; then
7867 ac_ct_AR=$AR
7868 # Extract the first word of "ar", so it can be a program name with args.
7869set dummy ar; ac_word=$2
4e8d927d
DJ
7870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
7872if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7874else
7875 if test -n "$ac_ct_AR"; then
7876 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7877else
7878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
7885 ac_cv_prog_ac_ct_AR="ar"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7888 fi
7889done
7890done
4e8d927d 7891IFS=$as_save_IFS
bec39cab
AC
7892
7893fi
7894fi
7895ac_ct_AR=$ac_cv_prog_ac_ct_AR
7896if test -n "$ac_ct_AR"; then
4e8d927d
DJ
7897 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7898echo "${ECHO_T}$ac_ct_AR" >&6; }
bec39cab 7899else
4e8d927d
DJ
7900 { echo "$as_me:$LINENO: result: no" >&5
7901echo "${ECHO_T}no" >&6; }
bec39cab
AC
7902fi
7903
4e8d927d
DJ
7904 if test "x$ac_ct_AR" = x; then
7905 AR=""
7906 else
7907 case $cross_compiling:$ac_tool_warned in
7908yes:)
7909{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7910whose name does not start with the host triplet. If you think this
7911configuration is useful to you, please write to autoconf@gnu.org." >&5
7912echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7913whose name does not start with the host triplet. If you think this
7914configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7915ac_tool_warned=yes ;;
7916esac
7917 AR=$ac_ct_AR
7918 fi
bec39cab
AC
7919else
7920 AR="$ac_cv_prog_AR"
7921fi
7922
7923if test -n "$ac_tool_prefix"; then
7924 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7925set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4e8d927d
DJ
7926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
7928if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
7931 if test -n "$DLLTOOL"; then
7932 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7933else
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
7941 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945done
7946done
4e8d927d 7947IFS=$as_save_IFS
bec39cab
AC
7948
7949fi
7950fi
7951DLLTOOL=$ac_cv_prog_DLLTOOL
7952if test -n "$DLLTOOL"; then
4e8d927d
DJ
7953 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7954echo "${ECHO_T}$DLLTOOL" >&6; }
bec39cab 7955else
4e8d927d
DJ
7956 { echo "$as_me:$LINENO: result: no" >&5
7957echo "${ECHO_T}no" >&6; }
bec39cab
AC
7958fi
7959
4e8d927d 7960
bec39cab
AC
7961fi
7962if test -z "$ac_cv_prog_DLLTOOL"; then
7963 ac_ct_DLLTOOL=$DLLTOOL
7964 # Extract the first word of "dlltool", so it can be a program name with args.
7965set dummy dlltool; ac_word=$2
4e8d927d
DJ
7966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
7968if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7970else
7971 if test -n "$ac_ct_DLLTOOL"; then
7972 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7973else
7974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975for as_dir in $PATH
7976do
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
7981 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7984 fi
7985done
7986done
4e8d927d 7987IFS=$as_save_IFS
bec39cab
AC
7988
7989fi
7990fi
7991ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7992if test -n "$ac_ct_DLLTOOL"; then
4e8d927d
DJ
7993 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7994echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
bec39cab 7995else
4e8d927d
DJ
7996 { echo "$as_me:$LINENO: result: no" >&5
7997echo "${ECHO_T}no" >&6; }
bec39cab
AC
7998fi
7999
4e8d927d
DJ
8000 if test "x$ac_ct_DLLTOOL" = x; then
8001 DLLTOOL=""
8002 else
8003 case $cross_compiling:$ac_tool_warned in
8004yes:)
8005{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8006whose name does not start with the host triplet. If you think this
8007configuration is useful to you, please write to autoconf@gnu.org." >&5
8008echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8009whose name does not start with the host triplet. If you think this
8010configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8011ac_tool_warned=yes ;;
8012esac
8013 DLLTOOL=$ac_ct_DLLTOOL
8014 fi
bec39cab
AC
8015else
8016 DLLTOOL="$ac_cv_prog_DLLTOOL"
8017fi
8018
8019if test -n "$ac_tool_prefix"; then
8020 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8021set dummy ${ac_tool_prefix}windres; ac_word=$2
4e8d927d
DJ
8022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
8024if test "${ac_cv_prog_WINDRES+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8026else
8027 if test -n "$WINDRES"; then
8028 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8029else
8030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in $PATH
8032do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
8037 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 break 2
8040 fi
8041done
8042done
4e8d927d 8043IFS=$as_save_IFS
bec39cab
AC
8044
8045fi
8046fi
8047WINDRES=$ac_cv_prog_WINDRES
8048if test -n "$WINDRES"; then
4e8d927d
DJ
8049 { echo "$as_me:$LINENO: result: $WINDRES" >&5
8050echo "${ECHO_T}$WINDRES" >&6; }
bec39cab 8051else
4e8d927d
DJ
8052 { echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6; }
bec39cab
AC
8054fi
8055
4e8d927d 8056
bec39cab
AC
8057fi
8058if test -z "$ac_cv_prog_WINDRES"; then
8059 ac_ct_WINDRES=$WINDRES
8060 # Extract the first word of "windres", so it can be a program name with args.
8061set dummy windres; ac_word=$2
4e8d927d
DJ
8062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
8064if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8066else
8067 if test -n "$ac_ct_WINDRES"; then
8068 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8069else
8070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071for as_dir in $PATH
8072do
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 8076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
8077 ac_cv_prog_ac_ct_WINDRES="windres"
8078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 break 2
8080 fi
8081done
8082done
4e8d927d 8083IFS=$as_save_IFS
bec39cab
AC
8084
8085fi
8086fi
8087ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8088if test -n "$ac_ct_WINDRES"; then
4e8d927d
DJ
8089 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
8090echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
bec39cab 8091else
4e8d927d
DJ
8092 { echo "$as_me:$LINENO: result: no" >&5
8093echo "${ECHO_T}no" >&6; }
c906108c 8094fi
bec39cab 8095
4e8d927d
DJ
8096 if test "x$ac_ct_WINDRES" = x; then
8097 WINDRES=""
8098 else
8099 case $cross_compiling:$ac_tool_warned in
8100yes:)
8101{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8102whose name does not start with the host triplet. If you think this
8103configuration is useful to you, please write to autoconf@gnu.org." >&5
8104echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8105whose name does not start with the host triplet. If you think this
8106configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8107ac_tool_warned=yes ;;
8108esac
8109 WINDRES=$ac_ct_WINDRES
8110 fi
c906108c 8111else
bec39cab 8112 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
8113fi
8114
bec39cab
AC
8115
8116# Needed for GNU/Hurd.
8117if test -n "$ac_tool_prefix"; then
8118 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8119set dummy ${ac_tool_prefix}mig; ac_word=$2
4e8d927d
DJ
8120{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
8122if test "${ac_cv_prog_MIG+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 8124else
bec39cab
AC
8125 if test -n "$MIG"; then
8126 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8127else
8128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129for as_dir in $PATH
8130do
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
8135 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2
8138 fi
8139done
8140done
4e8d927d 8141IFS=$as_save_IFS
bec39cab 8142
c906108c 8143fi
bec39cab
AC
8144fi
8145MIG=$ac_cv_prog_MIG
8146if test -n "$MIG"; then
4e8d927d
DJ
8147 { echo "$as_me:$LINENO: result: $MIG" >&5
8148echo "${ECHO_T}$MIG" >&6; }
c906108c 8149else
4e8d927d
DJ
8150 { echo "$as_me:$LINENO: result: no" >&5
8151echo "${ECHO_T}no" >&6; }
c906108c
SS
8152fi
8153
4e8d927d 8154
bec39cab
AC
8155fi
8156if test -z "$ac_cv_prog_MIG"; then
8157 ac_ct_MIG=$MIG
8158 # Extract the first word of "mig", so it can be a program name with args.
8159set dummy mig; ac_word=$2
4e8d927d
DJ
8160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
bec39cab
AC
8162if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8164else
8165 if test -n "$ac_ct_MIG"; then
8166 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8167else
8168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
4e8d927d 8174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
8175 ac_cv_prog_ac_ct_MIG="mig"
8176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 break 2
8178 fi
8179done
8180done
4e8d927d 8181IFS=$as_save_IFS
c906108c 8182
bec39cab
AC
8183fi
8184fi
8185ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8186if test -n "$ac_ct_MIG"; then
4e8d927d
DJ
8187 { echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
8188echo "${ECHO_T}$ac_ct_MIG" >&6; }
bec39cab 8189else
4e8d927d
DJ
8190 { echo "$as_me:$LINENO: result: no" >&5
8191echo "${ECHO_T}no" >&6; }
bec39cab 8192fi
c906108c 8193
4e8d927d
DJ
8194 if test "x$ac_ct_MIG" = x; then
8195 MIG=""
8196 else
8197 case $cross_compiling:$ac_tool_warned in
8198yes:)
8199{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8200whose name does not start with the host triplet. If you think this
8201configuration is useful to you, please write to autoconf@gnu.org." >&5
8202echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8203whose name does not start with the host triplet. If you think this
8204configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8205ac_tool_warned=yes ;;
8206esac
8207 MIG=$ac_ct_MIG
8208 fi
bec39cab
AC
8209else
8210 MIG="$ac_cv_prog_MIG"
8211fi
c906108c 8212
c906108c 8213
bec39cab
AC
8214# ---------------------- #
8215# Checks for libraries. #
8216# ---------------------- #
c906108c 8217
bec39cab 8218# We might need to link with -lm; most simulators need it.
c906108c 8219
4e8d927d
DJ
8220{ echo "$as_me:$LINENO: checking for main in -lm" >&5
8221echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
bec39cab
AC
8222if test "${ac_cv_lib_m_main+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224else
8225 ac_check_lib_save_LIBS=$LIBS
8226LIBS="-lm $LIBS"
8227cat >conftest.$ac_ext <<_ACEOF
8228/* confdefs.h. */
8229_ACEOF
8230cat confdefs.h >>conftest.$ac_ext
8231cat >>conftest.$ac_ext <<_ACEOF
8232/* end confdefs.h. */
c906108c 8233
c906108c 8234
bec39cab
AC
8235int
8236main ()
8237{
4e8d927d 8238return main ();
bec39cab
AC
8239 ;
8240 return 0;
8241}
8242_ACEOF
8243rm -f conftest.$ac_objext conftest$ac_exeext
8244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245 (eval $ac_link) 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
121ce6e5 8252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest$ac_exeext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_cv_lib_m_main=yes
8265else
8266 echo "$as_me: failed program was:" >&5
8267sed 's/^/| /' conftest.$ac_ext >&5
8268
4e8d927d 8269 ac_cv_lib_m_main=no
bec39cab 8270fi
4e8d927d 8271
bec39cab
AC
8272rm -f conftest.err conftest.$ac_objext \
8273 conftest$ac_exeext conftest.$ac_ext
8274LIBS=$ac_check_lib_save_LIBS
8275fi
4e8d927d
DJ
8276{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8277echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
bec39cab
AC
8278if test $ac_cv_lib_m_main = yes; then
8279 cat >>confdefs.h <<_ACEOF
8280#define HAVE_LIBM 1
8281_ACEOF
8282
8283 LIBS="-lm $LIBS"
c906108c 8284
c906108c 8285fi
bec39cab
AC
8286
8287
8288# We need to link with -lw to get `wctype' on Solaris before Solaris
8289# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
8290# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
8291# is known to have this problem). Therefore we avoid libw if we can.
4e8d927d
DJ
8292{ echo "$as_me:$LINENO: checking for wctype" >&5
8293echo $ECHO_N "checking for wctype... $ECHO_C" >&6; }
bec39cab
AC
8294if test "${ac_cv_func_wctype+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8296else
8297 cat >conftest.$ac_ext <<_ACEOF
8298/* confdefs.h. */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h. */
8303/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
8304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8305#define wctype innocuous_wctype
8306
8307/* System header to define __stub macros and hopefully few prototypes,
8308 which can conflict with char wctype (); below.
8309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8310 <limits.h> exists even on freestanding compilers. */
8311
8312#ifdef __STDC__
8313# include <limits.h>
8314#else
8315# include <assert.h>
8316#endif
8317
8318#undef wctype
8319
4e8d927d
DJ
8320/* Override any GCC internal prototype to avoid an error.
8321 Use char because int might match the return type of a GCC
8322 builtin and then its argument prototype would still apply. */
bec39cab
AC
8323#ifdef __cplusplus
8324extern "C"
bec39cab 8325#endif
bec39cab
AC
8326char wctype ();
8327/* The GNU C library defines this for functions which it implements
8328 to always fail with ENOSYS. Some functions are actually named
8329 something starting with __ and the normal name is an alias. */
4e8d927d 8330#if defined __stub_wctype || defined __stub___wctype
bec39cab 8331choke me
bec39cab
AC
8332#endif
8333
8334int
8335main ()
8336{
4e8d927d 8337return wctype ();
bec39cab
AC
8338 ;
8339 return 0;
8340}
8341_ACEOF
8342rm -f conftest.$ac_objext conftest$ac_exeext
8343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344 (eval $ac_link) 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
121ce6e5 8351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 (eval $ac_try) 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest$ac_exeext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 (eval $ac_try) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_cv_func_wctype=yes
8364else
8365 echo "$as_me: failed program was:" >&5
8366sed 's/^/| /' conftest.$ac_ext >&5
8367
4e8d927d 8368 ac_cv_func_wctype=no
bec39cab 8369fi
4e8d927d 8370
bec39cab
AC
8371rm -f conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373fi
4e8d927d
DJ
8374{ echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
8375echo "${ECHO_T}$ac_cv_func_wctype" >&6; }
bec39cab
AC
8376if test $ac_cv_func_wctype = yes; then
8377 :
c906108c 8378else
c906108c 8379
4e8d927d
DJ
8380{ echo "$as_me:$LINENO: checking for wctype in -lw" >&5
8381echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6; }
bec39cab
AC
8382if test "${ac_cv_lib_w_wctype+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8384else
8385 ac_check_lib_save_LIBS=$LIBS
8386LIBS="-lw $LIBS"
8387cat >conftest.$ac_ext <<_ACEOF
8388/* confdefs.h. */
8389_ACEOF
8390cat confdefs.h >>conftest.$ac_ext
8391cat >>conftest.$ac_ext <<_ACEOF
8392/* end confdefs.h. */
c906108c 8393
4e8d927d
DJ
8394/* Override any GCC internal prototype to avoid an error.
8395 Use char because int might match the return type of a GCC
8396 builtin and then its argument prototype would still apply. */
bec39cab
AC
8397#ifdef __cplusplus
8398extern "C"
8399#endif
bec39cab
AC
8400char wctype ();
8401int
8402main ()
8403{
4e8d927d 8404return wctype ();
bec39cab
AC
8405 ;
8406 return 0;
8407}
8408_ACEOF
8409rm -f conftest.$ac_objext conftest$ac_exeext
8410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411 (eval $ac_link) 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
121ce6e5 8418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 (eval $ac_try) 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest$ac_exeext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_cv_lib_w_wctype=yes
8431else
8432 echo "$as_me: failed program was:" >&5
8433sed 's/^/| /' conftest.$ac_ext >&5
8434
4e8d927d 8435 ac_cv_lib_w_wctype=no
bec39cab 8436fi
4e8d927d 8437
bec39cab
AC
8438rm -f conftest.err conftest.$ac_objext \
8439 conftest$ac_exeext conftest.$ac_ext
8440LIBS=$ac_check_lib_save_LIBS
8441fi
4e8d927d
DJ
8442{ echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
8443echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6; }
bec39cab
AC
8444if test $ac_cv_lib_w_wctype = yes; then
8445 cat >>confdefs.h <<_ACEOF
8446#define HAVE_LIBW 1
8447_ACEOF
c906108c 8448
bec39cab 8449 LIBS="-lw $LIBS"
c906108c 8450
bec39cab 8451fi
c906108c 8452
bec39cab 8453fi
c906108c 8454
ddc9cd0f 8455
bec39cab 8456# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
4e8d927d
DJ
8457{ echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8458echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
bec39cab
AC
8459if test "${ac_cv_search_gethostbyname+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8461else
8462 ac_func_search_save_LIBS=$LIBS
bec39cab
AC
8463cat >conftest.$ac_ext <<_ACEOF
8464/* confdefs.h. */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h. */
ddc9cd0f 8469
4e8d927d
DJ
8470/* Override any GCC internal prototype to avoid an error.
8471 Use char because int might match the return type of a GCC
8472 builtin and then its argument prototype would still apply. */
bec39cab
AC
8473#ifdef __cplusplus
8474extern "C"
8475#endif
bec39cab
AC
8476char gethostbyname ();
8477int
8478main ()
8479{
4e8d927d 8480return gethostbyname ();
bec39cab
AC
8481 ;
8482 return 0;
8483}
8484_ACEOF
4e8d927d
DJ
8485for ac_lib in '' nsl; do
8486 if test -z "$ac_lib"; then
8487 ac_res="none required"
8488 else
8489 ac_res=-l$ac_lib
8490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8491 fi
8492 rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
8493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>conftest.er1
8495 ac_status=$?
8496 grep -v '^ *+' conftest.er1 >conftest.err
8497 rm -f conftest.er1
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
121ce6e5 8501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 (eval $ac_try) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 (eval $ac_try) 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
4e8d927d 8513 ac_cv_search_gethostbyname=$ac_res
bec39cab
AC
8514else
8515 echo "$as_me: failed program was:" >&5
8516sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 8517
4e8d927d 8518
bec39cab 8519fi
4e8d927d 8520
bec39cab 8521rm -f conftest.err conftest.$ac_objext \
4e8d927d
DJ
8522 conftest$ac_exeext
8523 if test "${ac_cv_search_gethostbyname+set}" = set; then
8524 break
8525fi
8526done
8527if test "${ac_cv_search_gethostbyname+set}" = set; then
8528 :
8529else
8530 ac_cv_search_gethostbyname=no
8531fi
8532rm conftest.$ac_ext
8533LIBS=$ac_func_search_save_LIBS
8534fi
8535{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8536echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
8537ac_res=$ac_cv_search_gethostbyname
8538if test "$ac_res" != no; then
8539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8540
8541fi
8542
8543
8544# Some systems (e.g. Solaris) have `socketpair' in libsocket.
8545{ echo "$as_me:$LINENO: checking for library containing socketpair" >&5
8546echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6; }
8547if test "${ac_cv_search_socketpair+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8549else
8550 ac_func_search_save_LIBS=$LIBS
8551cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
8552/* confdefs.h. */
8553_ACEOF
8554cat confdefs.h >>conftest.$ac_ext
8555cat >>conftest.$ac_ext <<_ACEOF
8556/* end confdefs.h. */
ddc9cd0f 8557
4e8d927d
DJ
8558/* Override any GCC internal prototype to avoid an error.
8559 Use char because int might match the return type of a GCC
8560 builtin and then its argument prototype would still apply. */
bec39cab
AC
8561#ifdef __cplusplus
8562extern "C"
8563#endif
4e8d927d 8564char socketpair ();
bec39cab
AC
8565int
8566main ()
8567{
4e8d927d 8568return socketpair ();
bec39cab
AC
8569 ;
8570 return 0;
8571}
8572_ACEOF
4e8d927d
DJ
8573for ac_lib in '' socket; do
8574 if test -z "$ac_lib"; then
8575 ac_res="none required"
8576 else
8577 ac_res=-l$ac_lib
8578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8579 fi
8580 rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
8581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582 (eval $ac_link) 2>conftest.er1
8583 ac_status=$?
8584 grep -v '^ *+' conftest.er1 >conftest.err
8585 rm -f conftest.er1
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
121ce6e5 8589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
4e8d927d 8601 ac_cv_search_socketpair=$ac_res
bec39cab
AC
8602else
8603 echo "$as_me: failed program was:" >&5
8604sed 's/^/| /' conftest.$ac_ext >&5
8605
4e8d927d 8606
bec39cab 8607fi
4e8d927d 8608
bec39cab 8609rm -f conftest.err conftest.$ac_objext \
4e8d927d
DJ
8610 conftest$ac_exeext
8611 if test "${ac_cv_search_socketpair+set}" = set; then
8612 break
ddc9cd0f 8613fi
4e8d927d 8614done
bec39cab 8615if test "${ac_cv_search_socketpair+set}" = set; then
4e8d927d 8616 :
bec39cab 8617else
4e8d927d 8618 ac_cv_search_socketpair=no
bec39cab 8619fi
4e8d927d 8620rm conftest.$ac_ext
bec39cab
AC
8621LIBS=$ac_func_search_save_LIBS
8622fi
4e8d927d
DJ
8623{ echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8624echo "${ECHO_T}$ac_cv_search_socketpair" >&6; }
8625ac_res=$ac_cv_search_socketpair
8626if test "$ac_res" != no; then
8627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
96baa820 8628
bec39cab 8629fi
96baa820 8630
c906108c 8631
bec39cab
AC
8632# For the TUI, we need enhanced curses functionality.
8633#
8634# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8635# curses library because the latter might not provide all the
8636# functionality we need. However, this leads to problems on systems
8637# where the linker searches /usr/local/lib, but the compiler doesn't
8638# search /usr/local/include, if ncurses is installed in /usr/local. A
8639# default installation of ncurses on alpha*-dec-osf* will lead to such
8640# a situation.
4e8d927d
DJ
8641{ echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8642echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6; }
bec39cab
AC
8643if test "${ac_cv_search_waddstr+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645else
8646 ac_func_search_save_LIBS=$LIBS
bec39cab
AC
8647cat >conftest.$ac_ext <<_ACEOF
8648/* confdefs.h. */
8649_ACEOF
8650cat confdefs.h >>conftest.$ac_ext
8651cat >>conftest.$ac_ext <<_ACEOF
8652/* end confdefs.h. */
c906108c 8653
4e8d927d
DJ
8654/* Override any GCC internal prototype to avoid an error.
8655 Use char because int might match the return type of a GCC
bec39cab 8656 builtin and then its argument prototype would still apply. */
bec39cab
AC
8657#ifdef __cplusplus
8658extern "C"
8659#endif
bec39cab
AC
8660char waddstr ();
8661int
8662main ()
8663{
4e8d927d 8664return waddstr ();
bec39cab
AC
8665 ;
8666 return 0;
8667}
8668_ACEOF
4e8d927d
DJ
8669for ac_lib in '' ncurses cursesX curses; do
8670 if test -z "$ac_lib"; then
8671 ac_res="none required"
8672 else
8673 ac_res=-l$ac_lib
8674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8675 fi
8676 rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
8677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>conftest.er1
8679 ac_status=$?
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
121ce6e5 8685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 (eval $ac_try) 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
4e8d927d 8697 ac_cv_search_waddstr=$ac_res
bec39cab
AC
8698else
8699 echo "$as_me: failed program was:" >&5
8700sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad 8701
4e8d927d 8702
1ba607ad 8703fi
4e8d927d 8704
bec39cab 8705rm -f conftest.err conftest.$ac_objext \
4e8d927d
DJ
8706 conftest$ac_exeext
8707 if test "${ac_cv_search_waddstr+set}" = set; then
8708 break
8709fi
8710done
8711if test "${ac_cv_search_waddstr+set}" = set; then
8712 :
8713else
8714 ac_cv_search_waddstr=no
1ba607ad 8715fi
4e8d927d 8716rm conftest.$ac_ext
bec39cab
AC
8717LIBS=$ac_func_search_save_LIBS
8718fi
4e8d927d
DJ
8719{ echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8720echo "${ECHO_T}$ac_cv_search_waddstr" >&6; }
8721ac_res=$ac_cv_search_waddstr
8722if test "$ac_res" != no; then
8723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
c906108c 8724
8bb2c122 8725fi
8bb2c122 8726
8bb2c122 8727
bec39cab
AC
8728# Since GDB uses Readline, we need termcap functionality. In many
8729# cases this will be provided by the curses library, but some systems
8730# have a seperate termcap library, or no curses library at all.
8bb2c122 8731
bec39cab
AC
8732case $host_os in
8733 cygwin*)
8734 if test -d $srcdir/libtermcap; then
8735 LIBS="../libtermcap/libtermcap.a $LIBS"
8736 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8737 fi ;;
8738 go32* | *djgpp*)
8739 ac_cv_search_tgetent="none required"
8740 ;;
7ef34f2c
MM
8741 *mingw32*)
8742 ac_cv_search_tgetent="none required"
8743 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
8744 ;;
bec39cab 8745esac
627af7ea 8746
bec39cab 8747# These are the libraries checked by Readline.
4e8d927d
DJ
8748{ echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8749echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
bec39cab
AC
8750if test "${ac_cv_search_tgetent+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752else
8753 ac_func_search_save_LIBS=$LIBS
bec39cab
AC
8754cat >conftest.$ac_ext <<_ACEOF
8755/* confdefs.h. */
8756_ACEOF
8757cat confdefs.h >>conftest.$ac_ext
8758cat >>conftest.$ac_ext <<_ACEOF
8759/* end confdefs.h. */
8760
4e8d927d
DJ
8761/* Override any GCC internal prototype to avoid an error.
8762 Use char because int might match the return type of a GCC
bec39cab 8763 builtin and then its argument prototype would still apply. */
bec39cab
AC
8764#ifdef __cplusplus
8765extern "C"
8766#endif
bec39cab
AC
8767char tgetent ();
8768int
8769main ()
8770{
4e8d927d 8771return tgetent ();
bec39cab
AC
8772 ;
8773 return 0;
8774}
8775_ACEOF
4e8d927d
DJ
8776for ac_lib in '' termcap tinfo curses ncurses; do
8777 if test -z "$ac_lib"; then
8778 ac_res="none required"
8779 else
8780 ac_res=-l$ac_lib
8781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8782 fi
8783 rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
8784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8785 (eval $ac_link) 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
121ce6e5 8792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 (eval $ac_try) 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; } &&
8798 { ac_try='test -s conftest$ac_exeext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 (eval $ac_try) 2>&5
8801 ac_status=$?
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
4e8d927d 8804 ac_cv_search_tgetent=$ac_res
627af7ea 8805else
bec39cab
AC
8806 echo "$as_me: failed program was:" >&5
8807sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8808
4e8d927d 8809
627af7ea 8810fi
4e8d927d 8811
bec39cab 8812rm -f conftest.err conftest.$ac_objext \
4e8d927d
DJ
8813 conftest$ac_exeext
8814 if test "${ac_cv_search_tgetent+set}" = set; then
8815 break
8816fi
8817done
8818if test "${ac_cv_search_tgetent+set}" = set; then
8819 :
8820else
8821 ac_cv_search_tgetent=no
bec39cab 8822fi
4e8d927d 8823rm conftest.$ac_ext
bec39cab
AC
8824LIBS=$ac_func_search_save_LIBS
8825fi
4e8d927d
DJ
8826{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8827echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
8828ac_res=$ac_cv_search_tgetent
8829if test "$ac_res" != no; then
8830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
627af7ea 8831
06825bd1
MK
8832fi
8833
06825bd1 8834
bec39cab
AC
8835if test "$ac_cv_search_tgetent" = no; then
8836 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8837echo "$as_me: error: no termcap library found" >&2;}
8838 { (exit 1); exit 1; }; }
8ee53726
MK
8839fi
8840
bec39cab
AC
8841# ------------------------- #
8842# Checks for header files. #
8843# ------------------------- #
8ee53726 8844
0e5d83e3 8845
bec39cab
AC
8846
8847
8848
8849
8850ac_header_dirent=no
8851for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8852 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4e8d927d
DJ
8853{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8854echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857else
8858 cat >conftest.$ac_ext <<_ACEOF
8859/* confdefs.h. */
8860_ACEOF
8861cat confdefs.h >>conftest.$ac_ext
8862cat >>conftest.$ac_ext <<_ACEOF
8863/* end confdefs.h. */
8864#include <sys/types.h>
0e5d83e3 8865#include <$ac_hdr>
bec39cab
AC
8866
8867int
8868main ()
8869{
8870if ((DIR *) 0)
8871return 0;
8872 ;
8873 return 0;
8874}
8875_ACEOF
8876rm -f conftest.$ac_objext
8877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
121ce6e5 8885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 (eval $ac_try) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; } &&
8891 { ac_try='test -s conftest.$ac_objext'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 (eval $ac_try) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; }; then
8897 eval "$as_ac_Header=yes"
8898else
8899 echo "$as_me: failed program was:" >&5
8900sed 's/^/| /' conftest.$ac_ext >&5
8901
4e8d927d 8902 eval "$as_ac_Header=no"
bec39cab 8903fi
4e8d927d 8904
bec39cab
AC
8905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8906fi
4e8d927d
DJ
8907ac_res=`eval echo '${'$as_ac_Header'}'`
8908 { echo "$as_me:$LINENO: result: $ac_res" >&5
8909echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
8910if test `eval echo '${'$as_ac_Header'}'` = yes; then
8911 cat >>confdefs.h <<_ACEOF
8912#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8913_ACEOF
8914
8915ac_header_dirent=$ac_hdr; break
0e5d83e3 8916fi
0e5d83e3 8917
bec39cab
AC
8918done
8919# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8920if test $ac_header_dirent = dirent.h; then
4e8d927d
DJ
8921 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8922echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
bec39cab
AC
8923if test "${ac_cv_search_opendir+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925else
8926 ac_func_search_save_LIBS=$LIBS
bec39cab
AC
8927cat >conftest.$ac_ext <<_ACEOF
8928/* confdefs.h. */
8929_ACEOF
8930cat confdefs.h >>conftest.$ac_ext
8931cat >>conftest.$ac_ext <<_ACEOF
8932/* end confdefs.h. */
0e5d83e3 8933
4e8d927d
DJ
8934/* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
bec39cab
AC
8937#ifdef __cplusplus
8938extern "C"
8939#endif
bec39cab
AC
8940char opendir ();
8941int
8942main ()
8943{
4e8d927d 8944return opendir ();
bec39cab
AC
8945 ;
8946 return 0;
8947}
8948_ACEOF
4e8d927d
DJ
8949for ac_lib in '' dir; do
8950 if test -z "$ac_lib"; then
8951 ac_res="none required"
8952 else
8953 ac_res=-l$ac_lib
8954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8955 fi
8956 rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
8957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8958 (eval $ac_link) 2>conftest.er1
8959 ac_status=$?
8960 grep -v '^ *+' conftest.er1 >conftest.err
8961 rm -f conftest.er1
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
121ce6e5 8965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 (eval $ac_try) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; } &&
8971 { ac_try='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 (eval $ac_try) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
4e8d927d 8977 ac_cv_search_opendir=$ac_res
bec39cab
AC
8978else
8979 echo "$as_me: failed program was:" >&5
8980sed 's/^/| /' conftest.$ac_ext >&5
8981
4e8d927d 8982
bec39cab 8983fi
0e5d83e3 8984
bec39cab 8985rm -f conftest.err conftest.$ac_objext \
4e8d927d
DJ
8986 conftest$ac_exeext
8987 if test "${ac_cv_search_opendir+set}" = set; then
8988 break
8989fi
8990done
8991if test "${ac_cv_search_opendir+set}" = set; then
8992 :
8993else
8994 ac_cv_search_opendir=no
0e5d83e3 8995fi
4e8d927d 8996rm conftest.$ac_ext
bec39cab 8997LIBS=$ac_func_search_save_LIBS
0e5d83e3 8998fi
4e8d927d
DJ
8999{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9000echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9001ac_res=$ac_cv_search_opendir
9002if test "$ac_res" != no; then
9003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
0e5d83e3 9004
0e5d83e3
JJ
9005fi
9006
d28f9cdf 9007else
4e8d927d
DJ
9008 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9009echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
bec39cab
AC
9010if test "${ac_cv_search_opendir+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012else
9013 ac_func_search_save_LIBS=$LIBS
bec39cab
AC
9014cat >conftest.$ac_ext <<_ACEOF
9015/* confdefs.h. */
9016_ACEOF
9017cat confdefs.h >>conftest.$ac_ext
9018cat >>conftest.$ac_ext <<_ACEOF
9019/* end confdefs.h. */
d28f9cdf 9020
4e8d927d
DJ
9021/* Override any GCC internal prototype to avoid an error.
9022 Use char because int might match the return type of a GCC
bec39cab 9023 builtin and then its argument prototype would still apply. */
bec39cab
AC
9024#ifdef __cplusplus
9025extern "C"
d28f9cdf 9026#endif
bec39cab
AC
9027char opendir ();
9028int
9029main ()
9030{
4e8d927d 9031return opendir ();
bec39cab
AC
9032 ;
9033 return 0;
9034}
9035_ACEOF
4e8d927d
DJ
9036for ac_lib in '' x; do
9037 if test -z "$ac_lib"; then
9038 ac_res="none required"
9039 else
9040 ac_res=-l$ac_lib
9041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9042 fi
9043 rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
121ce6e5 9052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 (eval $ac_try) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; } &&
9058 { ac_try='test -s conftest$ac_exeext'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
4e8d927d 9064 ac_cv_search_opendir=$ac_res
d28f9cdf 9065else
bec39cab
AC
9066 echo "$as_me: failed program was:" >&5
9067sed 's/^/| /' conftest.$ac_ext >&5
9068
4e8d927d 9069
d28f9cdf 9070fi
4e8d927d 9071
bec39cab 9072rm -f conftest.err conftest.$ac_objext \
4e8d927d
DJ
9073 conftest$ac_exeext
9074 if test "${ac_cv_search_opendir+set}" = set; then
9075 break
9076fi
9077done
9078if test "${ac_cv_search_opendir+set}" = set; then
9079 :
9080else
9081 ac_cv_search_opendir=no
bec39cab 9082fi
4e8d927d 9083rm conftest.$ac_ext
bec39cab 9084LIBS=$ac_func_search_save_LIBS
d28f9cdf 9085fi
4e8d927d
DJ
9086{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9087echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9088ac_res=$ac_cv_search_opendir
9089if test "$ac_res" != no; then
9090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d28f9cdf 9091
d28f9cdf
DJ
9092fi
9093
bec39cab 9094fi
b0b1c2c0 9095
4e8d927d
DJ
9096{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9097echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
bec39cab
AC
9098if test "${ac_cv_header_stat_broken+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 9100else
bec39cab
AC
9101 cat >conftest.$ac_ext <<_ACEOF
9102/* confdefs.h. */
9103_ACEOF
9104cat confdefs.h >>conftest.$ac_ext
9105cat >>conftest.$ac_ext <<_ACEOF
9106/* end confdefs.h. */
9107#include <sys/types.h>
9108#include <sys/stat.h>
b0b1c2c0 9109
4e8d927d 9110#if defined S_ISBLK && defined S_IFDIR
bec39cab
AC
9111# if S_ISBLK (S_IFDIR)
9112You lose.
9113# endif
9114#endif
b0b1c2c0 9115
4e8d927d 9116#if defined S_ISBLK && defined S_IFCHR
bec39cab
AC
9117# if S_ISBLK (S_IFCHR)
9118You lose.
9119# endif
9120#endif
d28f9cdf 9121
4e8d927d 9122#if defined S_ISLNK && defined S_IFREG
bec39cab
AC
9123# if S_ISLNK (S_IFREG)
9124You lose.
9125# endif
9126#endif
d28f9cdf 9127
4e8d927d 9128#if defined S_ISSOCK && defined S_IFREG
bec39cab
AC
9129# if S_ISSOCK (S_IFREG)
9130You lose.
9131# endif
9132#endif
9133
9134_ACEOF
9135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9136 $EGREP "You lose" >/dev/null 2>&1; then
9137 ac_cv_header_stat_broken=yes
d28f9cdf 9138else
bec39cab 9139 ac_cv_header_stat_broken=no
d28f9cdf
DJ
9140fi
9141rm -f conftest*
d28f9cdf 9142
d28f9cdf 9143fi
4e8d927d
DJ
9144{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9145echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
bec39cab 9146if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 9147
bec39cab
AC
9148cat >>confdefs.h <<\_ACEOF
9149#define STAT_MACROS_BROKEN 1
9150_ACEOF
8bb2c122 9151
7a292a7a 9152fi
bec39cab 9153
4e8d927d
DJ
9154{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9155echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
bec39cab
AC
9156if test "${ac_cv_header_stdc+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 9158else
bec39cab
AC
9159 cat >conftest.$ac_ext <<_ACEOF
9160/* confdefs.h. */
9161_ACEOF
9162cat confdefs.h >>conftest.$ac_ext
9163cat >>conftest.$ac_ext <<_ACEOF
9164/* end confdefs.h. */
9165#include <stdlib.h>
9166#include <stdarg.h>
9167#include <string.h>
9168#include <float.h>
7a292a7a 9169
bec39cab
AC
9170int
9171main ()
9172{
7a292a7a 9173
bec39cab
AC
9174 ;
9175 return 0;
9176}
9177_ACEOF
9178rm -f conftest.$ac_objext
9179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180 (eval $ac_compile) 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
121ce6e5 9187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_header_stdc=yes
c906108c 9200else
bec39cab
AC
9201 echo "$as_me: failed program was:" >&5
9202sed 's/^/| /' conftest.$ac_ext >&5
c906108c 9203
4e8d927d 9204 ac_cv_header_stdc=no
c906108c 9205fi
4e8d927d 9206
bec39cab 9207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 9208
bec39cab
AC
9209if test $ac_cv_header_stdc = yes; then
9210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9211 cat >conftest.$ac_ext <<_ACEOF
9212/* confdefs.h. */
9213_ACEOF
9214cat confdefs.h >>conftest.$ac_ext
9215cat >>conftest.$ac_ext <<_ACEOF
9216/* end confdefs.h. */
9217#include <string.h>
c906108c 9218
bec39cab
AC
9219_ACEOF
9220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9221 $EGREP "memchr" >/dev/null 2>&1; then
9222 :
8bb2c122 9223else
bec39cab 9224 ac_cv_header_stdc=no
8bb2c122 9225fi
bec39cab
AC
9226rm -f conftest*
9227
c906108c
SS
9228fi
9229
bec39cab
AC
9230if test $ac_cv_header_stdc = yes; then
9231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9232 cat >conftest.$ac_ext <<_ACEOF
9233/* confdefs.h. */
9234_ACEOF
9235cat confdefs.h >>conftest.$ac_ext
9236cat >>conftest.$ac_ext <<_ACEOF
9237/* end confdefs.h. */
9238#include <stdlib.h>
9239
9240_ACEOF
9241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9242 $EGREP "free" >/dev/null 2>&1; then
9243 :
c906108c 9244else
bec39cab 9245 ac_cv_header_stdc=no
c906108c 9246fi
bec39cab
AC
9247rm -f conftest*
9248
c906108c
SS
9249fi
9250
bec39cab
AC
9251if test $ac_cv_header_stdc = yes; then
9252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9253 if test "$cross_compiling" = yes; then
9254 :
c906108c 9255else
bec39cab
AC
9256 cat >conftest.$ac_ext <<_ACEOF
9257/* confdefs.h. */
9258_ACEOF
9259cat confdefs.h >>conftest.$ac_ext
9260cat >>conftest.$ac_ext <<_ACEOF
9261/* end confdefs.h. */
9262#include <ctype.h>
4e8d927d 9263#include <stdlib.h>
bec39cab
AC
9264#if ((' ' & 0x0FF) == 0x020)
9265# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9266# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9267#else
9268# define ISLOWER(c) \
9269 (('a' <= (c) && (c) <= 'i') \
9270 || ('j' <= (c) && (c) <= 'r') \
9271 || ('s' <= (c) && (c) <= 'z'))
9272# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9273#endif
9274
9275#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9276int
9277main ()
9278{
9279 int i;
9280 for (i = 0; i < 256; i++)
9281 if (XOR (islower (i), ISLOWER (i))
9282 || toupper (i) != TOUPPER (i))
4e8d927d
DJ
9283 return 2;
9284 return 0;
bec39cab
AC
9285}
9286_ACEOF
9287rm -f conftest$ac_exeext
9288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9289 (eval $ac_link) 2>&5
9290 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 (eval $ac_try) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9298 :
9299else
9300 echo "$as_me: program exited with status $ac_status" >&5
9301echo "$as_me: failed program was:" >&5
9302sed 's/^/| /' conftest.$ac_ext >&5
9303
9304( exit $ac_status )
9305ac_cv_header_stdc=no
c906108c 9306fi
4e8d927d 9307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 9308fi
4e8d927d
DJ
9309
9310
c906108c 9311fi
bec39cab 9312fi
4e8d927d
DJ
9313{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9314echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
bec39cab 9315if test $ac_cv_header_stdc = yes; then
c906108c 9316
bec39cab
AC
9317cat >>confdefs.h <<\_ACEOF
9318#define STDC_HEADERS 1
9319_ACEOF
c906108c 9320
bec39cab 9321fi
8bb2c122 9322
bec39cab 9323
7cb9022a 9324for ac_header in nlist.h
bec39cab
AC
9325do
9326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
9327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332fi
4e8d927d
DJ
9333ac_res=`eval echo '${'$as_ac_Header'}'`
9334 { echo "$as_me:$LINENO: result: $ac_res" >&5
9335echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
9336else
9337 # Is the header compilable?
4e8d927d
DJ
9338{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
9340cat >conftest.$ac_ext <<_ACEOF
9341/* confdefs.h. */
9342_ACEOF
9343cat confdefs.h >>conftest.$ac_ext
9344cat >>conftest.$ac_ext <<_ACEOF
9345/* end confdefs.h. */
9346$ac_includes_default
9347#include <$ac_header>
9348_ACEOF
9349rm -f conftest.$ac_objext
9350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9351 (eval $ac_compile) 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
121ce6e5 9358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 (eval $ac_try) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; } &&
9364 { ac_try='test -s conftest.$ac_objext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 ac_header_compiler=yes
9371else
9372 echo "$as_me: failed program was:" >&5
9373sed 's/^/| /' conftest.$ac_ext >&5
9374
4e8d927d 9375 ac_header_compiler=no
bec39cab 9376fi
4e8d927d 9377
bec39cab 9378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
9379{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9380echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
9381
9382# Is the header present?
4e8d927d
DJ
9383{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
9385cat >conftest.$ac_ext <<_ACEOF
9386/* confdefs.h. */
9387_ACEOF
9388cat confdefs.h >>conftest.$ac_ext
9389cat >>conftest.$ac_ext <<_ACEOF
9390/* end confdefs.h. */
9391#include <$ac_header>
9392_ACEOF
9393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9395 ac_status=$?
9396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } >/dev/null; then
9401 if test -s conftest.err; then
9402 ac_cpp_err=$ac_c_preproc_warn_flag
9403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9404 else
9405 ac_cpp_err=
9406 fi
c906108c 9407else
bec39cab 9408 ac_cpp_err=yes
c906108c 9409fi
bec39cab
AC
9410if test -z "$ac_cpp_err"; then
9411 ac_header_preproc=yes
c906108c 9412else
bec39cab
AC
9413 echo "$as_me: failed program was:" >&5
9414sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 9415
bec39cab
AC
9416 ac_header_preproc=no
9417fi
4e8d927d 9418
bec39cab 9419rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
9420{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9421echo "${ECHO_T}$ac_header_preproc" >&6; }
c906108c 9422
bec39cab
AC
9423# So? What about this header?
9424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9425 yes:no: )
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9427echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9429echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9430 ac_header_preproc=yes
9431 ;;
9432 no:yes:* )
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9434echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9436echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9438echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9440echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9442echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9444echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 9445
bec39cab
AC
9446 ;;
9447esac
4e8d927d
DJ
9448{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 9451 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 9452else
bec39cab 9453 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 9454fi
4e8d927d
DJ
9455ac_res=`eval echo '${'$as_ac_Header'}'`
9456 { echo "$as_me:$LINENO: result: $ac_res" >&5
9457echo "${ECHO_T}$ac_res" >&6; }
bec39cab 9458
95ca63c4 9459fi
bec39cab
AC
9460if test `eval echo '${'$as_ac_Header'}'` = yes; then
9461 cat >>confdefs.h <<_ACEOF
9462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9463_ACEOF
9464
95ca63c4
CF
9465fi
9466
bec39cab 9467done
95ca63c4
CF
9468
9469
7cb9022a 9470for ac_header in link.h
bec39cab
AC
9471do
9472as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
9473{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 9476 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9477else
7cb9022a 9478 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9479/* confdefs.h. */
9480_ACEOF
9481cat confdefs.h >>conftest.$ac_ext
9482cat >>conftest.$ac_ext <<_ACEOF
9483/* end confdefs.h. */
7cb9022a
MK
9484#if HAVE_SYS_TYPES_H
9485# include <sys/types.h>
9486#endif
9487#if HAVE_NLIST_H
9488# include <nlist.h>
9489#endif
9490
9491
bec39cab
AC
9492#include <$ac_header>
9493_ACEOF
9494rm -f conftest.$ac_objext
9495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9496 (eval $ac_compile) 2>conftest.er1
9497 ac_status=$?
9498 grep -v '^ *+' conftest.er1 >conftest.err
9499 rm -f conftest.er1
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } &&
121ce6e5 9503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 (eval $ac_try) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; } &&
9509 { ac_try='test -s conftest.$ac_objext'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 (eval $ac_try) 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; }; then
7cb9022a 9515 eval "$as_ac_Header=yes"
bec39cab
AC
9516else
9517 echo "$as_me: failed program was:" >&5
9518sed 's/^/| /' conftest.$ac_ext >&5
9519
4e8d927d 9520 eval "$as_ac_Header=no"
bec39cab 9521fi
4e8d927d 9522
bec39cab 9523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 9524fi
4e8d927d
DJ
9525ac_res=`eval echo '${'$as_ac_Header'}'`
9526 { echo "$as_me:$LINENO: result: $ac_res" >&5
9527echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
9528if test `eval echo '${'$as_ac_Header'}'` = yes; then
9529 cat >>confdefs.h <<_ACEOF
9530#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9531_ACEOF
95ca63c4 9532
bec39cab 9533fi
95ca63c4 9534
bec39cab 9535done
95ca63c4 9536
c906108c 9537
7cb9022a 9538for ac_header in machine/reg.h
bec39cab
AC
9539do
9540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
9541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546fi
4e8d927d
DJ
9547ac_res=`eval echo '${'$as_ac_Header'}'`
9548 { echo "$as_me:$LINENO: result: $ac_res" >&5
9549echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
9550else
9551 # Is the header compilable?
4e8d927d
DJ
9552{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
9554cat >conftest.$ac_ext <<_ACEOF
9555/* confdefs.h. */
9556_ACEOF
9557cat confdefs.h >>conftest.$ac_ext
9558cat >>conftest.$ac_ext <<_ACEOF
9559/* end confdefs.h. */
9560$ac_includes_default
9561#include <$ac_header>
9562_ACEOF
9563rm -f conftest.$ac_objext
9564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9565 (eval $ac_compile) 2>conftest.er1
9566 ac_status=$?
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
121ce6e5 9572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest.$ac_objext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_header_compiler=yes
9585else
9586 echo "$as_me: failed program was:" >&5
9587sed 's/^/| /' conftest.$ac_ext >&5
9588
4e8d927d 9589 ac_header_compiler=no
bec39cab 9590fi
4e8d927d 9591
bec39cab 9592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
9593{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9594echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
9595
9596# Is the header present?
4e8d927d
DJ
9597{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9598echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
9599cat >conftest.$ac_ext <<_ACEOF
9600/* confdefs.h. */
9601_ACEOF
9602cat confdefs.h >>conftest.$ac_ext
9603cat >>conftest.$ac_ext <<_ACEOF
9604/* end confdefs.h. */
9605#include <$ac_header>
9606_ACEOF
9607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } >/dev/null; then
9615 if test -s conftest.err; then
9616 ac_cpp_err=$ac_c_preproc_warn_flag
9617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9618 else
9619 ac_cpp_err=
9620 fi
75c6e08a 9621else
bec39cab 9622 ac_cpp_err=yes
75c6e08a 9623fi
bec39cab
AC
9624if test -z "$ac_cpp_err"; then
9625 ac_header_preproc=yes
9626else
9627 echo "$as_me: failed program was:" >&5
9628sed 's/^/| /' conftest.$ac_ext >&5
9629
9630 ac_header_preproc=no
75c6e08a 9631fi
4e8d927d 9632
bec39cab 9633rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
9634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9635echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
9636
9637# So? What about this header?
9638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9639 yes:no: )
9640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9644 ac_header_preproc=yes
9645 ;;
9646 no:yes:* )
9647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 9659
bec39cab
AC
9660 ;;
9661esac
4e8d927d
DJ
9662{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 9665 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 9666else
bec39cab
AC
9667 eval "$as_ac_Header=\$ac_header_preproc"
9668fi
4e8d927d
DJ
9669ac_res=`eval echo '${'$as_ac_Header'}'`
9670 { echo "$as_me:$LINENO: result: $ac_res" >&5
9671echo "${ECHO_T}$ac_res" >&6; }
bec39cab 9672
75c6e08a 9673fi
bec39cab
AC
9674if test `eval echo '${'$as_ac_Header'}'` = yes; then
9675 cat >>confdefs.h <<_ACEOF
9676#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9677_ACEOF
75c6e08a 9678
bec39cab 9679fi
75c6e08a 9680
bec39cab 9681done
75c6e08a
MK
9682
9683
9a156167 9684
bec39cab
AC
9685for ac_header in poll.h sys/poll.h
9686do
9687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
9688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693fi
4e8d927d
DJ
9694ac_res=`eval echo '${'$as_ac_Header'}'`
9695 { echo "$as_me:$LINENO: result: $ac_res" >&5
9696echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
9697else
9698 # Is the header compilable?
4e8d927d
DJ
9699{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9700echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
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$ac_includes_default
9708#include <$ac_header>
9709_ACEOF
9710rm -f conftest.$ac_objext
9711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9712 (eval $ac_compile) 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
121ce6e5 9719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 (eval $ac_try) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest.$ac_objext'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 ac_header_compiler=yes
9732else
9733 echo "$as_me: failed program was:" >&5
9734sed 's/^/| /' conftest.$ac_ext >&5
9735
4e8d927d 9736 ac_header_compiler=no
bec39cab 9737fi
4e8d927d 9738
bec39cab 9739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
9740{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9741echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
9742
9743# Is the header present?
4e8d927d
DJ
9744{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9745echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
9746cat >conftest.$ac_ext <<_ACEOF
9747/* confdefs.h. */
9748_ACEOF
9749cat confdefs.h >>conftest.$ac_ext
9750cat >>conftest.$ac_ext <<_ACEOF
9751/* end confdefs.h. */
9752#include <$ac_header>
9753_ACEOF
9754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } >/dev/null; then
9762 if test -s conftest.err; then
9763 ac_cpp_err=$ac_c_preproc_warn_flag
9764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9765 else
9766 ac_cpp_err=
9767 fi
9a156167 9768else
bec39cab 9769 ac_cpp_err=yes
9a156167 9770fi
bec39cab
AC
9771if test -z "$ac_cpp_err"; then
9772 ac_header_preproc=yes
9773else
9774 echo "$as_me: failed program was:" >&5
9775sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9776
bec39cab 9777 ac_header_preproc=no
9a156167 9778fi
4e8d927d 9779
bec39cab 9780rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
9781{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9782echo "${ECHO_T}$ac_header_preproc" >&6; }
9a156167 9783
bec39cab
AC
9784# So? What about this header?
9785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9786 yes:no: )
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9788echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9790echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9791 ac_header_preproc=yes
9792 ;;
9793 no:yes:* )
9794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9795echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9797echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9799echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9801echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9805echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 9806
bec39cab
AC
9807 ;;
9808esac
4e8d927d
DJ
9809{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9813else
bec39cab 9814 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9815fi
4e8d927d
DJ
9816ac_res=`eval echo '${'$as_ac_Header'}'`
9817 { echo "$as_me:$LINENO: result: $ac_res" >&5
9818echo "${ECHO_T}$ac_res" >&6; }
9a156167 9819
bec39cab
AC
9820fi
9821if test `eval echo '${'$as_ac_Header'}'` = yes; then
9822 cat >>confdefs.h <<_ACEOF
9823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9824_ACEOF
9a156167 9825
bec39cab 9826fi
9a156167 9827
bec39cab 9828done
9a156167 9829
9a156167 9830
9a156167 9831
bec39cab
AC
9832
9833for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9834do
9835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
9836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841fi
4e8d927d
DJ
9842ac_res=`eval echo '${'$as_ac_Header'}'`
9843 { echo "$as_me:$LINENO: result: $ac_res" >&5
9844echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
9845else
9846 # Is the header compilable?
4e8d927d
DJ
9847{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
9849cat >conftest.$ac_ext <<_ACEOF
9850/* confdefs.h. */
9851_ACEOF
9852cat confdefs.h >>conftest.$ac_ext
9853cat >>conftest.$ac_ext <<_ACEOF
9854/* end confdefs.h. */
9855$ac_includes_default
9856#include <$ac_header>
9857_ACEOF
9858rm -f conftest.$ac_objext
9859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860 (eval $ac_compile) 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); } &&
121ce6e5 9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest.$ac_objext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_header_compiler=yes
9880else
9881 echo "$as_me: failed program was:" >&5
9882sed 's/^/| /' conftest.$ac_ext >&5
9883
4e8d927d 9884 ac_header_compiler=no
bec39cab 9885fi
4e8d927d 9886
bec39cab 9887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
9888{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9889echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
9890
9891# Is the header present?
4e8d927d
DJ
9892{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9893echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
9894cat >conftest.$ac_ext <<_ACEOF
9895/* confdefs.h. */
9896_ACEOF
9897cat confdefs.h >>conftest.$ac_ext
9898cat >>conftest.$ac_ext <<_ACEOF
9899/* end confdefs.h. */
9900#include <$ac_header>
9901_ACEOF
9902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } >/dev/null; then
9910 if test -s conftest.err; then
9911 ac_cpp_err=$ac_c_preproc_warn_flag
9912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9913 else
9914 ac_cpp_err=
9915 fi
9a156167 9916else
bec39cab 9917 ac_cpp_err=yes
9a156167 9918fi
bec39cab
AC
9919if test -z "$ac_cpp_err"; then
9920 ac_header_preproc=yes
9921else
9922 echo "$as_me: failed program was:" >&5
9923sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9924
bec39cab 9925 ac_header_preproc=no
9a156167 9926fi
4e8d927d 9927
bec39cab 9928rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
9929{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9930echo "${ECHO_T}$ac_header_preproc" >&6; }
9a156167 9931
bec39cab
AC
9932# So? What about this header?
9933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9934 yes:no: )
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9936echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9938echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9939 ac_header_preproc=yes
9940 ;;
9941 no:yes:* )
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9943echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9945echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9947echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9949echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9951echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9953echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 9954
bec39cab
AC
9955 ;;
9956esac
4e8d927d
DJ
9957{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9961else
bec39cab 9962 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9963fi
4e8d927d
DJ
9964ac_res=`eval echo '${'$as_ac_Header'}'`
9965 { echo "$as_me:$LINENO: result: $ac_res" >&5
9966echo "${ECHO_T}$ac_res" >&6; }
9a156167
MK
9967
9968fi
bec39cab
AC
9969if test `eval echo '${'$as_ac_Header'}'` = yes; then
9970 cat >>confdefs.h <<_ACEOF
9971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9972_ACEOF
9a156167 9973
bec39cab
AC
9974fi
9975
9976done
9a156167 9977
c890192f 9978
bec39cab
AC
9979for ac_header in stddef.h
9980do
9981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
9982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987fi
4e8d927d
DJ
9988ac_res=`eval echo '${'$as_ac_Header'}'`
9989 { echo "$as_me:$LINENO: result: $ac_res" >&5
9990echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
9991else
9992 # Is the header compilable?
4e8d927d
DJ
9993{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9994echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
9995cat >conftest.$ac_ext <<_ACEOF
9996/* confdefs.h. */
9997_ACEOF
9998cat confdefs.h >>conftest.$ac_ext
9999cat >>conftest.$ac_ext <<_ACEOF
10000/* end confdefs.h. */
10001$ac_includes_default
10002#include <$ac_header>
10003_ACEOF
10004rm -f conftest.$ac_objext
10005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10006 (eval $ac_compile) 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
121ce6e5 10013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest.$ac_objext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 ac_header_compiler=yes
10026else
10027 echo "$as_me: failed program was:" >&5
10028sed 's/^/| /' conftest.$ac_ext >&5
10029
4e8d927d 10030 ac_header_compiler=no
bec39cab 10031fi
4e8d927d 10032
bec39cab 10033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
10034{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10035echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
10036
10037# Is the header present?
4e8d927d
DJ
10038{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
10040cat >conftest.$ac_ext <<_ACEOF
10041/* confdefs.h. */
10042_ACEOF
10043cat confdefs.h >>conftest.$ac_ext
10044cat >>conftest.$ac_ext <<_ACEOF
10045/* end confdefs.h. */
10046#include <$ac_header>
10047_ACEOF
10048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } >/dev/null; then
10056 if test -s conftest.err; then
10057 ac_cpp_err=$ac_c_preproc_warn_flag
10058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10059 else
10060 ac_cpp_err=
10061 fi
c890192f 10062else
bec39cab
AC
10063 ac_cpp_err=yes
10064fi
10065if test -z "$ac_cpp_err"; then
10066 ac_header_preproc=yes
c890192f 10067else
bec39cab
AC
10068 echo "$as_me: failed program was:" >&5
10069sed 's/^/| /' conftest.$ac_ext >&5
10070
10071 ac_header_preproc=no
c890192f 10072fi
4e8d927d 10073
bec39cab 10074rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
10075{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10076echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
10077
10078# So? What about this header?
10079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10080 yes:no: )
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10085 ac_header_preproc=yes
10086 ;;
10087 no:yes:* )
10088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10091echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10095echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 10100
bec39cab
AC
10101 ;;
10102esac
4e8d927d
DJ
10103{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 10106 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 10107else
bec39cab 10108 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 10109fi
4e8d927d
DJ
10110ac_res=`eval echo '${'$as_ac_Header'}'`
10111 { echo "$as_me:$LINENO: result: $ac_res" >&5
10112echo "${ECHO_T}$ac_res" >&6; }
bec39cab 10113
c890192f 10114fi
bec39cab
AC
10115if test `eval echo '${'$as_ac_Header'}'` = yes; then
10116 cat >>confdefs.h <<_ACEOF
10117#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10118_ACEOF
c890192f 10119
c890192f
MK
10120fi
10121
bec39cab 10122done
9a156167 10123
bec39cab
AC
10124
10125for ac_header in stdlib.h
10126do
10127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
10128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133fi
4e8d927d
DJ
10134ac_res=`eval echo '${'$as_ac_Header'}'`
10135 { echo "$as_me:$LINENO: result: $ac_res" >&5
10136echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
10137else
10138 # Is the header compilable?
4e8d927d
DJ
10139{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10140echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
10141cat >conftest.$ac_ext <<_ACEOF
10142/* confdefs.h. */
10143_ACEOF
10144cat confdefs.h >>conftest.$ac_ext
10145cat >>conftest.$ac_ext <<_ACEOF
10146/* end confdefs.h. */
10147$ac_includes_default
10148#include <$ac_header>
10149_ACEOF
10150rm -f conftest.$ac_objext
10151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10152 (eval $ac_compile) 2>conftest.er1
10153 ac_status=$?
10154 grep -v '^ *+' conftest.er1 >conftest.err
10155 rm -f conftest.er1
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } &&
121ce6e5 10159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; } &&
10165 { ac_try='test -s conftest.$ac_objext'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
10171 ac_header_compiler=yes
10172else
10173 echo "$as_me: failed program was:" >&5
10174sed 's/^/| /' conftest.$ac_ext >&5
10175
4e8d927d 10176 ac_header_compiler=no
bec39cab 10177fi
4e8d927d 10178
bec39cab 10179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
10180{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10181echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
10182
10183# Is the header present?
4e8d927d
DJ
10184{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10185echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
10186cat >conftest.$ac_ext <<_ACEOF
10187/* confdefs.h. */
10188_ACEOF
10189cat confdefs.h >>conftest.$ac_ext
10190cat >>conftest.$ac_ext <<_ACEOF
10191/* end confdefs.h. */
10192#include <$ac_header>
10193_ACEOF
10194if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10196 ac_status=$?
10197 grep -v '^ *+' conftest.er1 >conftest.err
10198 rm -f conftest.er1
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } >/dev/null; then
10202 if test -s conftest.err; then
10203 ac_cpp_err=$ac_c_preproc_warn_flag
10204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10205 else
10206 ac_cpp_err=
10207 fi
9a156167 10208else
bec39cab
AC
10209 ac_cpp_err=yes
10210fi
10211if test -z "$ac_cpp_err"; then
10212 ac_header_preproc=yes
9a156167 10213else
bec39cab
AC
10214 echo "$as_me: failed program was:" >&5
10215sed 's/^/| /' conftest.$ac_ext >&5
10216
10217 ac_header_preproc=no
9a156167 10218fi
4e8d927d 10219
bec39cab 10220rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
10221{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10222echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
10223
10224# So? What about this header?
10225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10226 yes:no: )
10227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10231 ac_header_preproc=yes
10232 ;;
10233 no:yes:* )
10234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 10246
bec39cab
AC
10247 ;;
10248esac
4e8d927d
DJ
10249{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 10252 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 10253else
bec39cab 10254 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 10255fi
4e8d927d
DJ
10256ac_res=`eval echo '${'$as_ac_Header'}'`
10257 { echo "$as_me:$LINENO: result: $ac_res" >&5
10258echo "${ECHO_T}$ac_res" >&6; }
bec39cab 10259
9a156167 10260fi
bec39cab
AC
10261if test `eval echo '${'$as_ac_Header'}'` = yes; then
10262 cat >>confdefs.h <<_ACEOF
10263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10264_ACEOF
9a156167 10265
9a156167
MK
10266fi
10267
bec39cab
AC
10268done
10269
06825bd1 10270
bec39cab
AC
10271for ac_header in stdint.h
10272do
10273as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
10274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279fi
4e8d927d
DJ
10280ac_res=`eval echo '${'$as_ac_Header'}'`
10281 { echo "$as_me:$LINENO: result: $ac_res" >&5
10282echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
10283else
10284 # Is the header compilable?
4e8d927d
DJ
10285{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10286echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
10287cat >conftest.$ac_ext <<_ACEOF
10288/* confdefs.h. */
10289_ACEOF
10290cat confdefs.h >>conftest.$ac_ext
10291cat >>conftest.$ac_ext <<_ACEOF
10292/* end confdefs.h. */
10293$ac_includes_default
10294#include <$ac_header>
10295_ACEOF
10296rm -f conftest.$ac_objext
10297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10298 (eval $ac_compile) 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
121ce6e5 10305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } &&
10311 { ac_try='test -s conftest.$ac_objext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_header_compiler=yes
10318else
10319 echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
4e8d927d 10322 ac_header_compiler=no
bec39cab 10323fi
4e8d927d 10324
bec39cab 10325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
10326{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10327echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
10328
10329# Is the header present?
4e8d927d
DJ
10330{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10331echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
10332cat >conftest.$ac_ext <<_ACEOF
10333/* confdefs.h. */
10334_ACEOF
10335cat confdefs.h >>conftest.$ac_ext
10336cat >>conftest.$ac_ext <<_ACEOF
10337/* end confdefs.h. */
10338#include <$ac_header>
10339_ACEOF
10340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } >/dev/null; then
10348 if test -s conftest.err; then
10349 ac_cpp_err=$ac_c_preproc_warn_flag
10350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10351 else
10352 ac_cpp_err=
10353 fi
06825bd1 10354else
bec39cab
AC
10355 ac_cpp_err=yes
10356fi
10357if test -z "$ac_cpp_err"; then
10358 ac_header_preproc=yes
06825bd1 10359else
bec39cab
AC
10360 echo "$as_me: failed program was:" >&5
10361sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_header_preproc=no
06825bd1 10364fi
4e8d927d 10365
bec39cab 10366rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
10367{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10368echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
10369
10370# So? What about this header?
10371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10372 yes:no: )
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10377 ac_header_preproc=yes
10378 ;;
10379 no:yes:* )
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10387echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 10392
bec39cab
AC
10393 ;;
10394esac
4e8d927d
DJ
10395{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 10398 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 10399else
bec39cab 10400 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10401fi
4e8d927d
DJ
10402ac_res=`eval echo '${'$as_ac_Header'}'`
10403 { echo "$as_me:$LINENO: result: $ac_res" >&5
10404echo "${ECHO_T}$ac_res" >&6; }
bec39cab 10405
06825bd1 10406fi
bec39cab
AC
10407if test `eval echo '${'$as_ac_Header'}'` = yes; then
10408 cat >>confdefs.h <<_ACEOF
10409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10410_ACEOF
06825bd1 10411
06825bd1 10412fi
4f0be353 10413
bec39cab 10414done
4f0be353 10415
06825bd1 10416
06825bd1 10417
bec39cab
AC
10418
10419for ac_header in string.h memory.h strings.h
10420do
10421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
10422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10427fi
4e8d927d
DJ
10428ac_res=`eval echo '${'$as_ac_Header'}'`
10429 { echo "$as_me:$LINENO: result: $ac_res" >&5
10430echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
10431else
10432 # Is the header compilable?
4e8d927d
DJ
10433{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10434echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
10435cat >conftest.$ac_ext <<_ACEOF
10436/* confdefs.h. */
10437_ACEOF
10438cat confdefs.h >>conftest.$ac_ext
10439cat >>conftest.$ac_ext <<_ACEOF
10440/* end confdefs.h. */
10441$ac_includes_default
10442#include <$ac_header>
10443_ACEOF
10444rm -f conftest.$ac_objext
10445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446 (eval $ac_compile) 2>conftest.er1
10447 ac_status=$?
10448 grep -v '^ *+' conftest.er1 >conftest.err
10449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } &&
121ce6e5 10453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10456 ac_status=$?
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; } &&
10459 { ac_try='test -s conftest.$ac_objext'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 ac_header_compiler=yes
10466else
10467 echo "$as_me: failed program was:" >&5
10468sed 's/^/| /' conftest.$ac_ext >&5
10469
4e8d927d 10470 ac_header_compiler=no
bec39cab 10471fi
4e8d927d 10472
bec39cab 10473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
10474{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10475echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
10476
10477# Is the header present?
4e8d927d
DJ
10478{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10479echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
10480cat >conftest.$ac_ext <<_ACEOF
10481/* confdefs.h. */
10482_ACEOF
10483cat confdefs.h >>conftest.$ac_ext
10484cat >>conftest.$ac_ext <<_ACEOF
10485/* end confdefs.h. */
10486#include <$ac_header>
10487_ACEOF
10488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } >/dev/null; then
10496 if test -s conftest.err; then
10497 ac_cpp_err=$ac_c_preproc_warn_flag
10498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10499 else
10500 ac_cpp_err=
10501 fi
06825bd1 10502else
bec39cab
AC
10503 ac_cpp_err=yes
10504fi
10505if test -z "$ac_cpp_err"; then
10506 ac_header_preproc=yes
06825bd1 10507else
bec39cab
AC
10508 echo "$as_me: failed program was:" >&5
10509sed 's/^/| /' conftest.$ac_ext >&5
10510
10511 ac_header_preproc=no
06825bd1 10512fi
4e8d927d 10513
bec39cab 10514rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
10515{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10516echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
10517
10518# So? What about this header?
10519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10520 yes:no: )
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10524echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10525 ac_header_preproc=yes
10526 ;;
10527 no:yes:* )
10528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10529echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10531echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10533echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10535echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10537echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10539echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 10540
bec39cab
AC
10541 ;;
10542esac
4e8d927d
DJ
10543{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10549fi
4e8d927d
DJ
10550ac_res=`eval echo '${'$as_ac_Header'}'`
10551 { echo "$as_me:$LINENO: result: $ac_res" >&5
10552echo "${ECHO_T}$ac_res" >&6; }
06825bd1 10553
06825bd1 10554fi
bec39cab
AC
10555if test `eval echo '${'$as_ac_Header'}'` = yes; then
10556 cat >>confdefs.h <<_ACEOF
10557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10558_ACEOF
06825bd1 10559
06825bd1
MK
10560fi
10561
bec39cab 10562done
5ee754fc 10563
bec39cab
AC
10564
10565for ac_header in sys/fault.h
5ee754fc 10566do
bec39cab 10567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
10568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573fi
4e8d927d
DJ
10574ac_res=`eval echo '${'$as_ac_Header'}'`
10575 { echo "$as_me:$LINENO: result: $ac_res" >&5
10576echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
10577else
10578 # Is the header compilable?
4e8d927d
DJ
10579{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10580echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
10581cat >conftest.$ac_ext <<_ACEOF
10582/* confdefs.h. */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h. */
10587$ac_includes_default
10588#include <$ac_header>
10589_ACEOF
10590rm -f conftest.$ac_objext
10591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10592 (eval $ac_compile) 2>conftest.er1
10593 ac_status=$?
10594 grep -v '^ *+' conftest.er1 >conftest.err
10595 rm -f conftest.er1
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
121ce6e5 10599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; } &&
10605 { ac_try='test -s conftest.$ac_objext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_header_compiler=yes
10612else
10613 echo "$as_me: failed program was:" >&5
10614sed 's/^/| /' conftest.$ac_ext >&5
10615
4e8d927d 10616 ac_header_compiler=no
bec39cab 10617fi
4e8d927d 10618
bec39cab 10619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
10620{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10621echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
10622
10623# Is the header present?
4e8d927d
DJ
10624{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10625echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
10626cat >conftest.$ac_ext <<_ACEOF
10627/* confdefs.h. */
10628_ACEOF
10629cat confdefs.h >>conftest.$ac_ext
10630cat >>conftest.$ac_ext <<_ACEOF
10631/* end confdefs.h. */
10632#include <$ac_header>
10633_ACEOF
10634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } >/dev/null; then
10642 if test -s conftest.err; then
10643 ac_cpp_err=$ac_c_preproc_warn_flag
10644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10645 else
10646 ac_cpp_err=
10647 fi
5ee754fc 10648else
bec39cab 10649 ac_cpp_err=yes
5ee754fc 10650fi
bec39cab
AC
10651if test -z "$ac_cpp_err"; then
10652 ac_header_preproc=yes
10653else
10654 echo "$as_me: failed program was:" >&5
10655sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10656
bec39cab 10657 ac_header_preproc=no
5ee754fc 10658fi
4e8d927d 10659
bec39cab 10660rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
10661{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10662echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
10663
10664# So? What about this header?
10665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10666 yes:no: )
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10671 ac_header_preproc=yes
10672 ;;
10673 no:yes:* )
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 10686
bec39cab
AC
10687 ;;
10688esac
4e8d927d
DJ
10689{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 10692 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10693else
bec39cab 10694 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10695fi
4e8d927d
DJ
10696ac_res=`eval echo '${'$as_ac_Header'}'`
10697 { echo "$as_me:$LINENO: result: $ac_res" >&5
10698echo "${ECHO_T}$ac_res" >&6; }
c906108c 10699
5ee754fc 10700fi
bec39cab
AC
10701if test `eval echo '${'$as_ac_Header'}'` = yes; then
10702 cat >>confdefs.h <<_ACEOF
10703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10704_ACEOF
c906108c 10705
5ee754fc 10706fi
bec39cab
AC
10707
10708done
10709
10710
10711for ac_header in sys/file.h
10712do
10713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
10714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719fi
4e8d927d
DJ
10720ac_res=`eval echo '${'$as_ac_Header'}'`
10721 { echo "$as_me:$LINENO: result: $ac_res" >&5
10722echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
10723else
10724 # Is the header compilable?
4e8d927d
DJ
10725{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10726echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
10727cat >conftest.$ac_ext <<_ACEOF
10728/* confdefs.h. */
10729_ACEOF
10730cat confdefs.h >>conftest.$ac_ext
10731cat >>conftest.$ac_ext <<_ACEOF
10732/* end confdefs.h. */
10733$ac_includes_default
10734#include <$ac_header>
10735_ACEOF
10736rm -f conftest.$ac_objext
10737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10738 (eval $ac_compile) 2>conftest.er1
10739 ac_status=$?
10740 grep -v '^ *+' conftest.er1 >conftest.err
10741 rm -f conftest.er1
10742 cat conftest.err >&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } &&
121ce6e5 10745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; } &&
10751 { ac_try='test -s conftest.$ac_objext'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; }; then
10757 ac_header_compiler=yes
10758else
10759 echo "$as_me: failed program was:" >&5
10760sed 's/^/| /' conftest.$ac_ext >&5
10761
4e8d927d 10762 ac_header_compiler=no
bec39cab 10763fi
4e8d927d 10764
bec39cab 10765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
10766{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10767echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
10768
10769# Is the header present?
4e8d927d
DJ
10770{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
10772cat >conftest.$ac_ext <<_ACEOF
10773/* confdefs.h. */
10774_ACEOF
10775cat confdefs.h >>conftest.$ac_ext
10776cat >>conftest.$ac_ext <<_ACEOF
10777/* end confdefs.h. */
10778#include <$ac_header>
10779_ACEOF
10780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } >/dev/null; then
10788 if test -s conftest.err; then
10789 ac_cpp_err=$ac_c_preproc_warn_flag
10790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10791 else
10792 ac_cpp_err=
10793 fi
5ee754fc 10794else
bec39cab 10795 ac_cpp_err=yes
5ee754fc 10796fi
bec39cab
AC
10797if test -z "$ac_cpp_err"; then
10798 ac_header_preproc=yes
10799else
10800 echo "$as_me: failed program was:" >&5
10801sed 's/^/| /' conftest.$ac_ext >&5
c906108c 10802
bec39cab 10803 ac_header_preproc=no
5ee754fc 10804fi
4e8d927d 10805
bec39cab 10806rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
10807{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10808echo "${ECHO_T}$ac_header_preproc" >&6; }
c906108c 10809
bec39cab
AC
10810# So? What about this header?
10811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10812 yes:no: )
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10814echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10816echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10817 ac_header_preproc=yes
10818 ;;
10819 no:yes:* )
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10823echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10825echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10827echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10831echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 10832
bec39cab
AC
10833 ;;
10834esac
4e8d927d
DJ
10835{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 10838 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10839else
bec39cab
AC
10840 eval "$as_ac_Header=\$ac_header_preproc"
10841fi
4e8d927d
DJ
10842ac_res=`eval echo '${'$as_ac_Header'}'`
10843 { echo "$as_me:$LINENO: result: $ac_res" >&5
10844echo "${ECHO_T}$ac_res" >&6; }
5ee754fc 10845
bec39cab
AC
10846fi
10847if test `eval echo '${'$as_ac_Header'}'` = yes; then
10848 cat >>confdefs.h <<_ACEOF
10849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10850_ACEOF
5ee754fc 10851
bec39cab 10852fi
5ee754fc 10853
bec39cab 10854done
5ee754fc 10855
5ee754fc 10856
bec39cab
AC
10857for ac_header in sys/filio.h
10858do
10859as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
10860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10865fi
4e8d927d
DJ
10866ac_res=`eval echo '${'$as_ac_Header'}'`
10867 { echo "$as_me:$LINENO: result: $ac_res" >&5
10868echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
10869else
10870 # Is the header compilable?
4e8d927d
DJ
10871{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10872echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
10873cat >conftest.$ac_ext <<_ACEOF
10874/* confdefs.h. */
10875_ACEOF
10876cat confdefs.h >>conftest.$ac_ext
10877cat >>conftest.$ac_ext <<_ACEOF
10878/* end confdefs.h. */
10879$ac_includes_default
10880#include <$ac_header>
10881_ACEOF
10882rm -f conftest.$ac_objext
10883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10884 (eval $ac_compile) 2>conftest.er1
10885 ac_status=$?
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
121ce6e5 10891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; } &&
10897 { ac_try='test -s conftest.$ac_objext'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 ac_header_compiler=yes
10904else
10905 echo "$as_me: failed program was:" >&5
10906sed 's/^/| /' conftest.$ac_ext >&5
10907
4e8d927d 10908 ac_header_compiler=no
bec39cab 10909fi
4e8d927d 10910
bec39cab 10911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
10912{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10913echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
10914
10915# Is the header present?
4e8d927d
DJ
10916{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10917echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
10918cat >conftest.$ac_ext <<_ACEOF
10919/* confdefs.h. */
10920_ACEOF
10921cat confdefs.h >>conftest.$ac_ext
10922cat >>conftest.$ac_ext <<_ACEOF
10923/* end confdefs.h. */
10924#include <$ac_header>
10925_ACEOF
10926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } >/dev/null; then
10934 if test -s conftest.err; then
10935 ac_cpp_err=$ac_c_preproc_warn_flag
10936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10937 else
10938 ac_cpp_err=
10939 fi
5ee754fc 10940else
bec39cab 10941 ac_cpp_err=yes
5ee754fc 10942fi
bec39cab
AC
10943if test -z "$ac_cpp_err"; then
10944 ac_header_preproc=yes
10945else
10946 echo "$as_me: failed program was:" >&5
10947sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10948
bec39cab 10949 ac_header_preproc=no
5ee754fc 10950fi
4e8d927d 10951
bec39cab 10952rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
10953{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10954echo "${ECHO_T}$ac_header_preproc" >&6; }
5ee754fc 10955
bec39cab
AC
10956# So? What about this header?
10957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10958 yes:no: )
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10960echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10962echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10963 ac_header_preproc=yes
10964 ;;
10965 no:yes:* )
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10967echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10969echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10971echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10973echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10975echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10977echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 10978
bec39cab
AC
10979 ;;
10980esac
4e8d927d
DJ
10981{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 10984 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10985else
bec39cab 10986 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10987fi
4e8d927d
DJ
10988ac_res=`eval echo '${'$as_ac_Header'}'`
10989 { echo "$as_me:$LINENO: result: $ac_res" >&5
10990echo "${ECHO_T}$ac_res" >&6; }
5ee754fc 10991
5ee754fc 10992fi
bec39cab
AC
10993if test `eval echo '${'$as_ac_Header'}'` = yes; then
10994 cat >>confdefs.h <<_ACEOF
10995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10996_ACEOF
5ee754fc
MK
10997
10998fi
10999
bec39cab
AC
11000done
11001
11002
11003for ac_header in sys/ioctl.h
11004do
11005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
11006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11011fi
4e8d927d
DJ
11012ac_res=`eval echo '${'$as_ac_Header'}'`
11013 { echo "$as_me:$LINENO: result: $ac_res" >&5
11014echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
11015else
11016 # Is the header compilable?
4e8d927d
DJ
11017{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
11019cat >conftest.$ac_ext <<_ACEOF
11020/* confdefs.h. */
11021_ACEOF
11022cat confdefs.h >>conftest.$ac_ext
11023cat >>conftest.$ac_ext <<_ACEOF
11024/* end confdefs.h. */
11025$ac_includes_default
11026#include <$ac_header>
11027_ACEOF
11028rm -f conftest.$ac_objext
11029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11030 (eval $ac_compile) 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
121ce6e5 11037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest.$ac_objext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_header_compiler=yes
11050else
11051 echo "$as_me: failed program was:" >&5
11052sed 's/^/| /' conftest.$ac_ext >&5
11053
4e8d927d 11054 ac_header_compiler=no
bec39cab 11055fi
4e8d927d 11056
bec39cab 11057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
11058{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11059echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
11060
11061# Is the header present?
4e8d927d
DJ
11062{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
11064cat >conftest.$ac_ext <<_ACEOF
11065/* confdefs.h. */
11066_ACEOF
11067cat confdefs.h >>conftest.$ac_ext
11068cat >>conftest.$ac_ext <<_ACEOF
11069/* end confdefs.h. */
11070#include <$ac_header>
11071_ACEOF
11072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11074 ac_status=$?
11075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } >/dev/null; then
11080 if test -s conftest.err; then
11081 ac_cpp_err=$ac_c_preproc_warn_flag
11082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11083 else
11084 ac_cpp_err=
11085 fi
5ee754fc 11086else
bec39cab 11087 ac_cpp_err=yes
5ee754fc 11088fi
bec39cab
AC
11089if test -z "$ac_cpp_err"; then
11090 ac_header_preproc=yes
11091else
11092 echo "$as_me: failed program was:" >&5
11093sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 11094
bec39cab 11095 ac_header_preproc=no
5ee754fc 11096fi
4e8d927d 11097
bec39cab 11098rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
11099{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11100echo "${ECHO_T}$ac_header_preproc" >&6; }
5ee754fc 11101
bec39cab
AC
11102# So? What about this header?
11103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11104 yes:no: )
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11106echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11108echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11109 ac_header_preproc=yes
11110 ;;
11111 no:yes:* )
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11113echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11115echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11117echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11119echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11123echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 11124
bec39cab
AC
11125 ;;
11126esac
4e8d927d
DJ
11127{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 11130 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 11131else
bec39cab 11132 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11133fi
4e8d927d
DJ
11134ac_res=`eval echo '${'$as_ac_Header'}'`
11135 { echo "$as_me:$LINENO: result: $ac_res" >&5
11136echo "${ECHO_T}$ac_res" >&6; }
5ee754fc
MK
11137
11138fi
bec39cab
AC
11139if test `eval echo '${'$as_ac_Header'}'` = yes; then
11140 cat >>confdefs.h <<_ACEOF
11141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11142_ACEOF
11143
5ee754fc
MK
11144fi
11145
bec39cab 11146done
5ee754fc 11147
5ee754fc 11148
bec39cab 11149for ac_header in sys/param.h
5ee754fc 11150do
bec39cab 11151as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
11152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157fi
4e8d927d
DJ
11158ac_res=`eval echo '${'$as_ac_Header'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
11161else
11162 # Is the header compilable?
4e8d927d
DJ
11163{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
11165cat >conftest.$ac_ext <<_ACEOF
11166/* confdefs.h. */
11167_ACEOF
11168cat confdefs.h >>conftest.$ac_ext
11169cat >>conftest.$ac_ext <<_ACEOF
11170/* end confdefs.h. */
11171$ac_includes_default
11172#include <$ac_header>
11173_ACEOF
11174rm -f conftest.$ac_objext
11175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
121ce6e5 11183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_header_compiler=yes
11196else
11197 echo "$as_me: failed program was:" >&5
11198sed 's/^/| /' conftest.$ac_ext >&5
11199
4e8d927d 11200 ac_header_compiler=no
bec39cab 11201fi
4e8d927d 11202
bec39cab 11203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
11204{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11205echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
11206
11207# Is the header present?
4e8d927d
DJ
11208{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
11210cat >conftest.$ac_ext <<_ACEOF
11211/* confdefs.h. */
11212_ACEOF
11213cat confdefs.h >>conftest.$ac_ext
11214cat >>conftest.$ac_ext <<_ACEOF
11215/* end confdefs.h. */
11216#include <$ac_header>
11217_ACEOF
11218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } >/dev/null; then
11226 if test -s conftest.err; then
11227 ac_cpp_err=$ac_c_preproc_warn_flag
11228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11229 else
11230 ac_cpp_err=
11231 fi
5ee754fc 11232else
bec39cab 11233 ac_cpp_err=yes
5ee754fc 11234fi
bec39cab
AC
11235if test -z "$ac_cpp_err"; then
11236 ac_header_preproc=yes
11237else
11238 echo "$as_me: failed program was:" >&5
11239sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 11240
bec39cab 11241 ac_header_preproc=no
5ee754fc 11242fi
4e8d927d 11243
bec39cab 11244rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
11245{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11246echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
11247
11248# So? What about this header?
11249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11250 yes:no: )
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11252echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11254echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11255 ac_header_preproc=yes
11256 ;;
11257 no:yes:* )
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11263echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11265echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11269echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 11270
bec39cab
AC
11271 ;;
11272esac
4e8d927d
DJ
11273{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 11276 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 11277else
bec39cab 11278 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11279fi
4e8d927d
DJ
11280ac_res=`eval echo '${'$as_ac_Header'}'`
11281 { echo "$as_me:$LINENO: result: $ac_res" >&5
11282echo "${ECHO_T}$ac_res" >&6; }
5ee754fc 11283
5ee754fc 11284fi
bec39cab
AC
11285if test `eval echo '${'$as_ac_Header'}'` = yes; then
11286 cat >>confdefs.h <<_ACEOF
11287#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11288_ACEOF
11289
5ee754fc 11290fi
bec39cab 11291
5ee754fc
MK
11292done
11293
bec39cab
AC
11294
11295for ac_header in sys/proc.h
5ee754fc 11296do
bec39cab 11297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
11298{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 11301 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11302else
7cb9022a 11303 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11304/* confdefs.h. */
11305_ACEOF
11306cat confdefs.h >>conftest.$ac_ext
11307cat >>conftest.$ac_ext <<_ACEOF
11308/* end confdefs.h. */
7cb9022a
MK
11309#if HAVE_SYS_PARAM_H
11310# include <sys/param.h>
11311#endif
11312
11313
bec39cab
AC
11314#include <$ac_header>
11315_ACEOF
11316rm -f conftest.$ac_objext
11317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11318 (eval $ac_compile) 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
121ce6e5 11325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; } &&
11331 { ac_try='test -s conftest.$ac_objext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
7cb9022a 11337 eval "$as_ac_Header=yes"
bec39cab
AC
11338else
11339 echo "$as_me: failed program was:" >&5
11340sed 's/^/| /' conftest.$ac_ext >&5
11341
4e8d927d 11342 eval "$as_ac_Header=no"
bec39cab 11343fi
4e8d927d 11344
bec39cab 11345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11346fi
4e8d927d
DJ
11347ac_res=`eval echo '${'$as_ac_Header'}'`
11348 { echo "$as_me:$LINENO: result: $ac_res" >&5
11349echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
11350if test `eval echo '${'$as_ac_Header'}'` = yes; then
11351 cat >>confdefs.h <<_ACEOF
11352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11353_ACEOF
11354
5ee754fc 11355fi
bec39cab 11356
5ee754fc
MK
11357done
11358
bec39cab
AC
11359
11360for ac_header in sys/procfs.h
5ee754fc 11361do
bec39cab 11362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
11363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368fi
4e8d927d
DJ
11369ac_res=`eval echo '${'$as_ac_Header'}'`
11370 { echo "$as_me:$LINENO: result: $ac_res" >&5
11371echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
11372else
11373 # Is the header compilable?
4e8d927d
DJ
11374{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
11376cat >conftest.$ac_ext <<_ACEOF
11377/* confdefs.h. */
11378_ACEOF
11379cat confdefs.h >>conftest.$ac_ext
11380cat >>conftest.$ac_ext <<_ACEOF
11381/* end confdefs.h. */
11382$ac_includes_default
11383#include <$ac_header>
11384_ACEOF
11385rm -f conftest.$ac_objext
11386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11387 (eval $ac_compile) 2>conftest.er1
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
121ce6e5 11394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; } &&
11400 { ac_try='test -s conftest.$ac_objext'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 ac_header_compiler=yes
11407else
11408 echo "$as_me: failed program was:" >&5
11409sed 's/^/| /' conftest.$ac_ext >&5
11410
4e8d927d 11411 ac_header_compiler=no
bec39cab 11412fi
4e8d927d 11413
bec39cab 11414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
11415{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11416echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
11417
11418# Is the header present?
4e8d927d
DJ
11419{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
11421cat >conftest.$ac_ext <<_ACEOF
11422/* confdefs.h. */
11423_ACEOF
11424cat confdefs.h >>conftest.$ac_ext
11425cat >>conftest.$ac_ext <<_ACEOF
11426/* end confdefs.h. */
11427#include <$ac_header>
11428_ACEOF
11429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } >/dev/null; then
11437 if test -s conftest.err; then
11438 ac_cpp_err=$ac_c_preproc_warn_flag
11439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11440 else
11441 ac_cpp_err=
11442 fi
11443else
11444 ac_cpp_err=yes
5ee754fc 11445fi
bec39cab
AC
11446if test -z "$ac_cpp_err"; then
11447 ac_header_preproc=yes
5ee754fc 11448else
bec39cab
AC
11449 echo "$as_me: failed program was:" >&5
11450sed 's/^/| /' conftest.$ac_ext >&5
11451
11452 ac_header_preproc=no
5ee754fc 11453fi
4e8d927d 11454
bec39cab 11455rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
11456{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11457echo "${ECHO_T}$ac_header_preproc" >&6; }
5ee754fc 11458
bec39cab
AC
11459# So? What about this header?
11460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11461 yes:no: )
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11465echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11466 ac_header_preproc=yes
11467 ;;
11468 no:yes:* )
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11474echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11476echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11480echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 11481
bec39cab
AC
11482 ;;
11483esac
4e8d927d
DJ
11484{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488else
11489 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11490fi
4e8d927d
DJ
11491ac_res=`eval echo '${'$as_ac_Header'}'`
11492 { echo "$as_me:$LINENO: result: $ac_res" >&5
11493echo "${ECHO_T}$ac_res" >&6; }
bec39cab 11494
5ee754fc 11495fi
bec39cab
AC
11496if test `eval echo '${'$as_ac_Header'}'` = yes; then
11497 cat >>confdefs.h <<_ACEOF
11498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11499_ACEOF
11500
5ee754fc 11501fi
bec39cab 11502
5ee754fc
MK
11503done
11504
bec39cab
AC
11505
11506
11507for ac_header in sys/ptrace.h ptrace.h
5ee754fc 11508do
bec39cab 11509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
11510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11515fi
4e8d927d
DJ
11516ac_res=`eval echo '${'$as_ac_Header'}'`
11517 { echo "$as_me:$LINENO: result: $ac_res" >&5
11518echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
11519else
11520 # Is the header compilable?
4e8d927d
DJ
11521{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
11523cat >conftest.$ac_ext <<_ACEOF
11524/* confdefs.h. */
11525_ACEOF
11526cat confdefs.h >>conftest.$ac_ext
11527cat >>conftest.$ac_ext <<_ACEOF
11528/* end confdefs.h. */
11529$ac_includes_default
11530#include <$ac_header>
11531_ACEOF
11532rm -f conftest.$ac_objext
11533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534 (eval $ac_compile) 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
121ce6e5 11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 ac_header_compiler=yes
11554else
11555 echo "$as_me: failed program was:" >&5
11556sed 's/^/| /' conftest.$ac_ext >&5
11557
4e8d927d 11558 ac_header_compiler=no
bec39cab 11559fi
4e8d927d 11560
bec39cab 11561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
11562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11563echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
11564
11565# Is the header present?
4e8d927d
DJ
11566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
11568cat >conftest.$ac_ext <<_ACEOF
11569/* confdefs.h. */
11570_ACEOF
11571cat confdefs.h >>conftest.$ac_ext
11572cat >>conftest.$ac_ext <<_ACEOF
11573/* end confdefs.h. */
11574#include <$ac_header>
11575_ACEOF
11576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } >/dev/null; then
11584 if test -s conftest.err; then
11585 ac_cpp_err=$ac_c_preproc_warn_flag
11586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11587 else
11588 ac_cpp_err=
11589 fi
11590else
11591 ac_cpp_err=yes
5ee754fc 11592fi
bec39cab
AC
11593if test -z "$ac_cpp_err"; then
11594 ac_header_preproc=yes
5ee754fc 11595else
bec39cab
AC
11596 echo "$as_me: failed program was:" >&5
11597sed 's/^/| /' conftest.$ac_ext >&5
11598
11599 ac_header_preproc=no
5ee754fc 11600fi
4e8d927d 11601
bec39cab 11602rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
11603{ echo "$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;}
4e8d927d 11628
bec39cab
AC
11629 ;;
11630esac
4e8d927d
DJ
11631{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635else
11636 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11637fi
4e8d927d
DJ
11638ac_res=`eval echo '${'$as_ac_Header'}'`
11639 { echo "$as_me:$LINENO: result: $ac_res" >&5
11640echo "${ECHO_T}$ac_res" >&6; }
bec39cab 11641
5ee754fc 11642fi
bec39cab
AC
11643if test `eval echo '${'$as_ac_Header'}'` = yes; then
11644 cat >>confdefs.h <<_ACEOF
11645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11646_ACEOF
11647
5ee754fc 11648fi
bec39cab 11649
5ee754fc
MK
11650done
11651
bec39cab
AC
11652
11653
11654for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 11655do
bec39cab 11656as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
11657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11662fi
4e8d927d
DJ
11663ac_res=`eval echo '${'$as_ac_Header'}'`
11664 { echo "$as_me:$LINENO: result: $ac_res" >&5
11665echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
11666else
11667 # Is the header compilable?
4e8d927d
DJ
11668{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11669echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
11670cat >conftest.$ac_ext <<_ACEOF
11671/* confdefs.h. */
11672_ACEOF
11673cat confdefs.h >>conftest.$ac_ext
11674cat >>conftest.$ac_ext <<_ACEOF
11675/* end confdefs.h. */
11676$ac_includes_default
11677#include <$ac_header>
11678_ACEOF
11679rm -f conftest.$ac_objext
11680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11681 (eval $ac_compile) 2>conftest.er1
11682 ac_status=$?
11683 grep -v '^ *+' conftest.er1 >conftest.err
11684 rm -f conftest.er1
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } &&
121ce6e5 11688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_header_compiler=yes
11701else
11702 echo "$as_me: failed program was:" >&5
11703sed 's/^/| /' conftest.$ac_ext >&5
11704
4e8d927d 11705 ac_header_compiler=no
bec39cab 11706fi
4e8d927d 11707
bec39cab 11708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
11709{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11710echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
11711
11712# Is the header present?
4e8d927d
DJ
11713{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11714echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
11715cat >conftest.$ac_ext <<_ACEOF
11716/* confdefs.h. */
11717_ACEOF
11718cat confdefs.h >>conftest.$ac_ext
11719cat >>conftest.$ac_ext <<_ACEOF
11720/* end confdefs.h. */
11721#include <$ac_header>
11722_ACEOF
11723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11725 ac_status=$?
11726 grep -v '^ *+' conftest.er1 >conftest.err
11727 rm -f conftest.er1
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } >/dev/null; then
11731 if test -s conftest.err; then
11732 ac_cpp_err=$ac_c_preproc_warn_flag
11733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11734 else
11735 ac_cpp_err=
11736 fi
11737else
11738 ac_cpp_err=yes
5ee754fc 11739fi
bec39cab
AC
11740if test -z "$ac_cpp_err"; then
11741 ac_header_preproc=yes
5ee754fc 11742else
bec39cab
AC
11743 echo "$as_me: failed program was:" >&5
11744sed 's/^/| /' conftest.$ac_ext >&5
11745
11746 ac_header_preproc=no
5ee754fc 11747fi
4e8d927d 11748
bec39cab 11749rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
11750{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11751echo "${ECHO_T}$ac_header_preproc" >&6; }
5ee754fc 11752
bec39cab
AC
11753# So? What about this header?
11754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11755 yes:no: )
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11757echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11759echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11760 ac_header_preproc=yes
11761 ;;
11762 no:yes:* )
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11764echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11766echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11768echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11770echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11772echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11774echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 11775
bec39cab
AC
11776 ;;
11777esac
4e8d927d
DJ
11778{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782else
11783 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11784fi
4e8d927d
DJ
11785ac_res=`eval echo '${'$as_ac_Header'}'`
11786 { echo "$as_me:$LINENO: result: $ac_res" >&5
11787echo "${ECHO_T}$ac_res" >&6; }
bec39cab 11788
5ee754fc 11789fi
bec39cab
AC
11790if test `eval echo '${'$as_ac_Header'}'` = yes; then
11791 cat >>confdefs.h <<_ACEOF
11792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11793_ACEOF
11794
5ee754fc 11795fi
bec39cab 11796
5ee754fc
MK
11797done
11798
bec39cab
AC
11799
11800for ac_header in sys/select.h
5ee754fc 11801do
bec39cab 11802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
11803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808fi
4e8d927d
DJ
11809ac_res=`eval echo '${'$as_ac_Header'}'`
11810 { echo "$as_me:$LINENO: result: $ac_res" >&5
11811echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
11812else
11813 # Is the header compilable?
4e8d927d
DJ
11814{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
11816cat >conftest.$ac_ext <<_ACEOF
11817/* confdefs.h. */
11818_ACEOF
11819cat confdefs.h >>conftest.$ac_ext
11820cat >>conftest.$ac_ext <<_ACEOF
11821/* end confdefs.h. */
11822$ac_includes_default
11823#include <$ac_header>
11824_ACEOF
11825rm -f conftest.$ac_objext
11826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11827 (eval $ac_compile) 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
121ce6e5 11834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest.$ac_objext'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11846 ac_header_compiler=yes
11847else
11848 echo "$as_me: failed program was:" >&5
11849sed 's/^/| /' conftest.$ac_ext >&5
11850
4e8d927d 11851 ac_header_compiler=no
bec39cab 11852fi
4e8d927d 11853
bec39cab 11854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
11855{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11856echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
11857
11858# Is the header present?
4e8d927d
DJ
11859{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
11861cat >conftest.$ac_ext <<_ACEOF
11862/* confdefs.h. */
11863_ACEOF
11864cat confdefs.h >>conftest.$ac_ext
11865cat >>conftest.$ac_ext <<_ACEOF
11866/* end confdefs.h. */
11867#include <$ac_header>
11868_ACEOF
11869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } >/dev/null; then
11877 if test -s conftest.err; then
11878 ac_cpp_err=$ac_c_preproc_warn_flag
11879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11880 else
11881 ac_cpp_err=
11882 fi
11883else
11884 ac_cpp_err=yes
5ee754fc 11885fi
bec39cab
AC
11886if test -z "$ac_cpp_err"; then
11887 ac_header_preproc=yes
5ee754fc 11888else
bec39cab
AC
11889 echo "$as_me: failed program was:" >&5
11890sed 's/^/| /' conftest.$ac_ext >&5
11891
11892 ac_header_preproc=no
5ee754fc 11893fi
4e8d927d 11894
bec39cab 11895rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
11896{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11897echo "${ECHO_T}$ac_header_preproc" >&6; }
5ee754fc 11898
bec39cab
AC
11899# So? What about this header?
11900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11901 yes:no: )
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11903echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11905echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11906 ac_header_preproc=yes
11907 ;;
11908 no:yes:* )
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11910echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11912echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11914echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11916echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11920echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 11921
bec39cab
AC
11922 ;;
11923esac
4e8d927d
DJ
11924{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928else
11929 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11930fi
4e8d927d
DJ
11931ac_res=`eval echo '${'$as_ac_Header'}'`
11932 { echo "$as_me:$LINENO: result: $ac_res" >&5
11933echo "${ECHO_T}$ac_res" >&6; }
bec39cab 11934
5ee754fc 11935fi
bec39cab
AC
11936if test `eval echo '${'$as_ac_Header'}'` = yes; then
11937 cat >>confdefs.h <<_ACEOF
11938#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11939_ACEOF
11940
5ee754fc 11941fi
bec39cab 11942
5ee754fc
MK
11943done
11944
bec39cab
AC
11945
11946for ac_header in sys/syscall.h
5ee754fc 11947do
bec39cab 11948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
11949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954fi
4e8d927d
DJ
11955ac_res=`eval echo '${'$as_ac_Header'}'`
11956 { echo "$as_me:$LINENO: result: $ac_res" >&5
11957echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
11958else
11959 # Is the header compilable?
4e8d927d
DJ
11960{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
11962cat >conftest.$ac_ext <<_ACEOF
11963/* confdefs.h. */
11964_ACEOF
11965cat confdefs.h >>conftest.$ac_ext
11966cat >>conftest.$ac_ext <<_ACEOF
11967/* end confdefs.h. */
11968$ac_includes_default
11969#include <$ac_header>
11970_ACEOF
11971rm -f conftest.$ac_objext
11972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973 (eval $ac_compile) 2>conftest.er1
11974 ac_status=$?
11975 grep -v '^ *+' conftest.er1 >conftest.err
11976 rm -f conftest.er1
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
121ce6e5 11980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest.$ac_objext'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11992 ac_header_compiler=yes
11993else
11994 echo "$as_me: failed program was:" >&5
11995sed 's/^/| /' conftest.$ac_ext >&5
11996
4e8d927d 11997 ac_header_compiler=no
bec39cab 11998fi
4e8d927d 11999
bec39cab 12000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
12001{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12002echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
12003
12004# Is the header present?
4e8d927d
DJ
12005{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
12007cat >conftest.$ac_ext <<_ACEOF
12008/* confdefs.h. */
12009_ACEOF
12010cat confdefs.h >>conftest.$ac_ext
12011cat >>conftest.$ac_ext <<_ACEOF
12012/* end confdefs.h. */
12013#include <$ac_header>
12014_ACEOF
12015if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12017 ac_status=$?
12018 grep -v '^ *+' conftest.er1 >conftest.err
12019 rm -f conftest.er1
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } >/dev/null; then
12023 if test -s conftest.err; then
12024 ac_cpp_err=$ac_c_preproc_warn_flag
12025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12026 else
12027 ac_cpp_err=
12028 fi
12029else
12030 ac_cpp_err=yes
5ee754fc 12031fi
bec39cab
AC
12032if test -z "$ac_cpp_err"; then
12033 ac_header_preproc=yes
5ee754fc 12034else
bec39cab
AC
12035 echo "$as_me: failed program was:" >&5
12036sed 's/^/| /' conftest.$ac_ext >&5
12037
12038 ac_header_preproc=no
5ee754fc 12039fi
4e8d927d 12040
bec39cab 12041rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
12042{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12043echo "${ECHO_T}$ac_header_preproc" >&6; }
5ee754fc 12044
bec39cab
AC
12045# So? What about this header?
12046case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12047 yes:no: )
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12049echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12051echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12052 ac_header_preproc=yes
12053 ;;
12054 no:yes:* )
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12056echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12058echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12060echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12062echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12064echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12066echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 12067
bec39cab
AC
12068 ;;
12069esac
4e8d927d
DJ
12070{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074else
12075 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 12076fi
4e8d927d
DJ
12077ac_res=`eval echo '${'$as_ac_Header'}'`
12078 { echo "$as_me:$LINENO: result: $ac_res" >&5
12079echo "${ECHO_T}$ac_res" >&6; }
bec39cab 12080
5ee754fc 12081fi
bec39cab
AC
12082if test `eval echo '${'$as_ac_Header'}'` = yes; then
12083 cat >>confdefs.h <<_ACEOF
12084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12085_ACEOF
12086
5ee754fc 12087fi
bec39cab 12088
5ee754fc
MK
12089done
12090
bec39cab
AC
12091
12092for ac_header in sys/types.h
5ee754fc 12093do
bec39cab 12094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
12095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100fi
4e8d927d
DJ
12101ac_res=`eval echo '${'$as_ac_Header'}'`
12102 { echo "$as_me:$LINENO: result: $ac_res" >&5
12103echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
12104else
12105 # Is the header compilable?
4e8d927d
DJ
12106{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
12108cat >conftest.$ac_ext <<_ACEOF
12109/* confdefs.h. */
12110_ACEOF
12111cat confdefs.h >>conftest.$ac_ext
12112cat >>conftest.$ac_ext <<_ACEOF
12113/* end confdefs.h. */
12114$ac_includes_default
12115#include <$ac_header>
12116_ACEOF
12117rm -f conftest.$ac_objext
12118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119 (eval $ac_compile) 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
121ce6e5 12126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; } &&
12132 { ac_try='test -s conftest.$ac_objext'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 ac_header_compiler=yes
12139else
12140 echo "$as_me: failed program was:" >&5
12141sed 's/^/| /' conftest.$ac_ext >&5
12142
4e8d927d 12143 ac_header_compiler=no
bec39cab 12144fi
4e8d927d 12145
bec39cab 12146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
12147{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12148echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
12149
12150# Is the header present?
4e8d927d
DJ
12151{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
12153cat >conftest.$ac_ext <<_ACEOF
12154/* confdefs.h. */
12155_ACEOF
12156cat confdefs.h >>conftest.$ac_ext
12157cat >>conftest.$ac_ext <<_ACEOF
12158/* end confdefs.h. */
12159#include <$ac_header>
12160_ACEOF
12161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12163 ac_status=$?
12164 grep -v '^ *+' conftest.er1 >conftest.err
12165 rm -f conftest.er1
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } >/dev/null; then
12169 if test -s conftest.err; then
12170 ac_cpp_err=$ac_c_preproc_warn_flag
12171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12172 else
12173 ac_cpp_err=
12174 fi
12175else
12176 ac_cpp_err=yes
5ee754fc 12177fi
bec39cab
AC
12178if test -z "$ac_cpp_err"; then
12179 ac_header_preproc=yes
5ee754fc 12180else
bec39cab
AC
12181 echo "$as_me: failed program was:" >&5
12182sed 's/^/| /' conftest.$ac_ext >&5
12183
12184 ac_header_preproc=no
5ee754fc 12185fi
4e8d927d 12186
bec39cab 12187rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
12188{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12189echo "${ECHO_T}$ac_header_preproc" >&6; }
5ee754fc 12190
bec39cab
AC
12191# So? What about this header?
12192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12193 yes:no: )
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12195echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12197echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12198 ac_header_preproc=yes
12199 ;;
12200 no:yes:* )
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12202echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12204echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12206echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12208echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12210echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12212echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 12213
bec39cab
AC
12214 ;;
12215esac
4e8d927d
DJ
12216{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220else
12221 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 12222fi
4e8d927d
DJ
12223ac_res=`eval echo '${'$as_ac_Header'}'`
12224 { echo "$as_me:$LINENO: result: $ac_res" >&5
12225echo "${ECHO_T}$ac_res" >&6; }
bec39cab 12226
5ee754fc 12227fi
bec39cab
AC
12228if test `eval echo '${'$as_ac_Header'}'` = yes; then
12229 cat >>confdefs.h <<_ACEOF
12230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12231_ACEOF
12232
5ee754fc 12233fi
bec39cab 12234
5ee754fc
MK
12235done
12236
bec39cab
AC
12237
12238for ac_header in sys/user.h
5ee754fc 12239do
bec39cab 12240as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
12241{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 12244 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12245else
7cb9022a 12246 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12247/* confdefs.h. */
12248_ACEOF
12249cat confdefs.h >>conftest.$ac_ext
12250cat >>conftest.$ac_ext <<_ACEOF
12251/* end confdefs.h. */
7cb9022a
MK
12252#if HAVE_SYS_PARAM_H
12253# include <sys/param.h>
12254#endif
12255
12256
bec39cab
AC
12257#include <$ac_header>
12258_ACEOF
12259rm -f conftest.$ac_objext
12260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12261 (eval $ac_compile) 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
121ce6e5 12268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest.$ac_objext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
7cb9022a 12280 eval "$as_ac_Header=yes"
bec39cab
AC
12281else
12282 echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
4e8d927d 12285 eval "$as_ac_Header=no"
bec39cab 12286fi
4e8d927d 12287
bec39cab 12288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 12289fi
4e8d927d
DJ
12290ac_res=`eval echo '${'$as_ac_Header'}'`
12291 { echo "$as_me:$LINENO: result: $ac_res" >&5
12292echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
12293if test `eval echo '${'$as_ac_Header'}'` = yes; then
12294 cat >>confdefs.h <<_ACEOF
12295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12296_ACEOF
12297
5ee754fc 12298fi
bec39cab 12299
5ee754fc
MK
12300done
12301
bec39cab
AC
12302
12303
12304for ac_header in sys/wait.h wait.h
5ee754fc 12305do
bec39cab 12306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
12307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312fi
4e8d927d
DJ
12313ac_res=`eval echo '${'$as_ac_Header'}'`
12314 { echo "$as_me:$LINENO: result: $ac_res" >&5
12315echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
12316else
12317 # Is the header compilable?
4e8d927d
DJ
12318{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
12320cat >conftest.$ac_ext <<_ACEOF
12321/* confdefs.h. */
12322_ACEOF
12323cat confdefs.h >>conftest.$ac_ext
12324cat >>conftest.$ac_ext <<_ACEOF
12325/* end confdefs.h. */
12326$ac_includes_default
12327#include <$ac_header>
12328_ACEOF
12329rm -f conftest.$ac_objext
12330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12331 (eval $ac_compile) 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
121ce6e5 12338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest.$ac_objext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 ac_header_compiler=yes
12351else
12352 echo "$as_me: failed program was:" >&5
12353sed 's/^/| /' conftest.$ac_ext >&5
12354
4e8d927d 12355 ac_header_compiler=no
bec39cab 12356fi
4e8d927d 12357
bec39cab 12358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
12359{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12360echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
12361
12362# Is the header present?
4e8d927d
DJ
12363{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
12365cat >conftest.$ac_ext <<_ACEOF
12366/* confdefs.h. */
12367_ACEOF
12368cat confdefs.h >>conftest.$ac_ext
12369cat >>conftest.$ac_ext <<_ACEOF
12370/* end confdefs.h. */
12371#include <$ac_header>
12372_ACEOF
12373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } >/dev/null; then
12381 if test -s conftest.err; then
12382 ac_cpp_err=$ac_c_preproc_warn_flag
12383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12384 else
12385 ac_cpp_err=
12386 fi
12387else
12388 ac_cpp_err=yes
5ee754fc 12389fi
bec39cab
AC
12390if test -z "$ac_cpp_err"; then
12391 ac_header_preproc=yes
5ee754fc 12392else
bec39cab
AC
12393 echo "$as_me: failed program was:" >&5
12394sed 's/^/| /' conftest.$ac_ext >&5
12395
12396 ac_header_preproc=no
5ee754fc 12397fi
4e8d927d 12398
bec39cab 12399rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
12400{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12401echo "${ECHO_T}$ac_header_preproc" >&6; }
5ee754fc 12402
bec39cab
AC
12403# So? What about this header?
12404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12405 yes:no: )
12406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12407echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12409echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12410 ac_header_preproc=yes
12411 ;;
12412 no:yes:* )
12413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12416echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12418echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12420echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12422echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12424echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 12425
bec39cab
AC
12426 ;;
12427esac
4e8d927d
DJ
12428{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12432else
12433 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12434fi
4e8d927d
DJ
12435ac_res=`eval echo '${'$as_ac_Header'}'`
12436 { echo "$as_me:$LINENO: result: $ac_res" >&5
12437echo "${ECHO_T}$ac_res" >&6; }
bec39cab 12438
9608ab8b 12439fi
bec39cab
AC
12440if test `eval echo '${'$as_ac_Header'}'` = yes; then
12441 cat >>confdefs.h <<_ACEOF
12442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12443_ACEOF
12444
9608ab8b 12445fi
bec39cab 12446
9608ab8b 12447done
5ee754fc 12448
bec39cab
AC
12449
12450
12451
12452for ac_header in termios.h termio.h sgtty.h
5ee754fc 12453do
bec39cab 12454as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
12455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12460fi
4e8d927d
DJ
12461ac_res=`eval echo '${'$as_ac_Header'}'`
12462 { echo "$as_me:$LINENO: result: $ac_res" >&5
12463echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
12464else
12465 # Is the header compilable?
4e8d927d
DJ
12466{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12467echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
12468cat >conftest.$ac_ext <<_ACEOF
12469/* confdefs.h. */
12470_ACEOF
12471cat confdefs.h >>conftest.$ac_ext
12472cat >>conftest.$ac_ext <<_ACEOF
12473/* end confdefs.h. */
12474$ac_includes_default
12475#include <$ac_header>
12476_ACEOF
12477rm -f conftest.$ac_objext
12478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
121ce6e5 12486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; } &&
12492 { ac_try='test -s conftest.$ac_objext'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; }; then
12498 ac_header_compiler=yes
12499else
12500 echo "$as_me: failed program was:" >&5
12501sed 's/^/| /' conftest.$ac_ext >&5
12502
4e8d927d 12503 ac_header_compiler=no
bec39cab 12504fi
4e8d927d 12505
bec39cab 12506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
12507{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12508echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
12509
12510# Is the header present?
4e8d927d
DJ
12511{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
12513cat >conftest.$ac_ext <<_ACEOF
12514/* confdefs.h. */
12515_ACEOF
12516cat confdefs.h >>conftest.$ac_ext
12517cat >>conftest.$ac_ext <<_ACEOF
12518/* end confdefs.h. */
12519#include <$ac_header>
12520_ACEOF
12521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12523 ac_status=$?
12524 grep -v '^ *+' conftest.er1 >conftest.err
12525 rm -f conftest.er1
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } >/dev/null; then
12529 if test -s conftest.err; then
12530 ac_cpp_err=$ac_c_preproc_warn_flag
12531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12532 else
12533 ac_cpp_err=
12534 fi
12535else
12536 ac_cpp_err=yes
9608ab8b 12537fi
bec39cab
AC
12538if test -z "$ac_cpp_err"; then
12539 ac_header_preproc=yes
9608ab8b 12540else
bec39cab
AC
12541 echo "$as_me: failed program was:" >&5
12542sed 's/^/| /' conftest.$ac_ext >&5
12543
12544 ac_header_preproc=no
9608ab8b 12545fi
4e8d927d 12546
bec39cab 12547rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
12548{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12549echo "${ECHO_T}$ac_header_preproc" >&6; }
9608ab8b 12550
bec39cab
AC
12551# So? What about this header?
12552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12553 yes:no: )
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12558 ac_header_preproc=yes
12559 ;;
12560 no:yes:* )
12561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12568echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 12573
bec39cab
AC
12574 ;;
12575esac
4e8d927d
DJ
12576{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12580else
12581 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12582fi
4e8d927d
DJ
12583ac_res=`eval echo '${'$as_ac_Header'}'`
12584 { echo "$as_me:$LINENO: result: $ac_res" >&5
12585echo "${ECHO_T}$ac_res" >&6; }
bec39cab 12586
9608ab8b 12587fi
bec39cab
AC
12588if test `eval echo '${'$as_ac_Header'}'` = yes; then
12589 cat >>confdefs.h <<_ACEOF
12590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12591_ACEOF
12592
9608ab8b 12593fi
bec39cab 12594
5ee754fc 12595done
9608ab8b 12596
bec39cab
AC
12597
12598for ac_header in unistd.h
78434e59 12599do
bec39cab 12600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
12601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12606fi
4e8d927d
DJ
12607ac_res=`eval echo '${'$as_ac_Header'}'`
12608 { echo "$as_me:$LINENO: result: $ac_res" >&5
12609echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
12610else
12611 # Is the header compilable?
4e8d927d
DJ
12612{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
12614cat >conftest.$ac_ext <<_ACEOF
12615/* confdefs.h. */
12616_ACEOF
12617cat confdefs.h >>conftest.$ac_ext
12618cat >>conftest.$ac_ext <<_ACEOF
12619/* end confdefs.h. */
12620$ac_includes_default
12621#include <$ac_header>
12622_ACEOF
12623rm -f conftest.$ac_objext
12624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12625 (eval $ac_compile) 2>conftest.er1
12626 ac_status=$?
12627 grep -v '^ *+' conftest.er1 >conftest.err
12628 rm -f conftest.er1
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
121ce6e5 12632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest.$ac_objext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_header_compiler=yes
12645else
12646 echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
4e8d927d 12649 ac_header_compiler=no
bec39cab 12650fi
4e8d927d 12651
bec39cab 12652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
12653{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12654echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
12655
12656# Is the header present?
4e8d927d
DJ
12657{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12658echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
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#include <$ac_header>
12666_ACEOF
12667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12669 ac_status=$?
12670 grep -v '^ *+' conftest.er1 >conftest.err
12671 rm -f conftest.er1
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } >/dev/null; then
12675 if test -s conftest.err; then
12676 ac_cpp_err=$ac_c_preproc_warn_flag
12677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12678 else
12679 ac_cpp_err=
12680 fi
12681else
12682 ac_cpp_err=yes
78434e59 12683fi
bec39cab
AC
12684if test -z "$ac_cpp_err"; then
12685 ac_header_preproc=yes
78434e59 12686else
bec39cab
AC
12687 echo "$as_me: failed program was:" >&5
12688sed 's/^/| /' conftest.$ac_ext >&5
12689
12690 ac_header_preproc=no
78434e59 12691fi
4e8d927d 12692
bec39cab 12693rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
12694{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12695echo "${ECHO_T}$ac_header_preproc" >&6; }
78434e59 12696
bec39cab
AC
12697# So? What about this header?
12698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12699 yes:no: )
12700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12701echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12703echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12704 ac_header_preproc=yes
12705 ;;
12706 no:yes:* )
12707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12712echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12714echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12716echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12718echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 12719
bec39cab
AC
12720 ;;
12721esac
4e8d927d
DJ
12722{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12724if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726else
12727 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 12728fi
4e8d927d
DJ
12729ac_res=`eval echo '${'$as_ac_Header'}'`
12730 { echo "$as_me:$LINENO: result: $ac_res" >&5
12731echo "${ECHO_T}$ac_res" >&6; }
bec39cab 12732
086ec9eb 12733fi
bec39cab
AC
12734if test `eval echo '${'$as_ac_Header'}'` = yes; then
12735 cat >>confdefs.h <<_ACEOF
12736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12737_ACEOF
12738
086ec9eb 12739fi
bec39cab 12740
086ec9eb
MK
12741done
12742
9608ab8b 12743
b1d19a62 12744# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
12745# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12746# think that we don't have <curses.h> if we're using GCC.
12747case $host_os in
b1d19a62 12748 solaris2.[789])
5ee754fc 12749 if test "$GCC" = yes; then
bec39cab
AC
12750
12751cat >>confdefs.h <<\_ACEOF
5ee754fc 12752#define _MSE_INT_H 1
bec39cab 12753_ACEOF
5ee754fc
MK
12754
12755 fi ;;
12756esac
bec39cab
AC
12757
12758
12759
12760
12761for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 12762do
bec39cab 12763as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
12764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769fi
4e8d927d
DJ
12770ac_res=`eval echo '${'$as_ac_Header'}'`
12771 { echo "$as_me:$LINENO: result: $ac_res" >&5
12772echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
12773else
12774 # Is the header compilable?
4e8d927d
DJ
12775{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12776echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
12777cat >conftest.$ac_ext <<_ACEOF
12778/* confdefs.h. */
12779_ACEOF
12780cat confdefs.h >>conftest.$ac_ext
12781cat >>conftest.$ac_ext <<_ACEOF
12782/* end confdefs.h. */
12783$ac_includes_default
12784#include <$ac_header>
12785_ACEOF
12786rm -f conftest.$ac_objext
12787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12788 (eval $ac_compile) 2>conftest.er1
12789 ac_status=$?
12790 grep -v '^ *+' conftest.er1 >conftest.err
12791 rm -f conftest.er1
12792 cat conftest.err >&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
121ce6e5 12795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest.$ac_objext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_header_compiler=yes
12808else
12809 echo "$as_me: failed program was:" >&5
12810sed 's/^/| /' conftest.$ac_ext >&5
12811
4e8d927d 12812 ac_header_compiler=no
bec39cab 12813fi
4e8d927d 12814
bec39cab 12815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
12816{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12817echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
12818
12819# Is the header present?
4e8d927d
DJ
12820{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
12822cat >conftest.$ac_ext <<_ACEOF
12823/* confdefs.h. */
12824_ACEOF
12825cat confdefs.h >>conftest.$ac_ext
12826cat >>conftest.$ac_ext <<_ACEOF
12827/* end confdefs.h. */
12828#include <$ac_header>
12829_ACEOF
12830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12832 ac_status=$?
12833 grep -v '^ *+' conftest.er1 >conftest.err
12834 rm -f conftest.er1
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } >/dev/null; then
12838 if test -s conftest.err; then
12839 ac_cpp_err=$ac_c_preproc_warn_flag
12840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12841 else
12842 ac_cpp_err=
12843 fi
12844else
12845 ac_cpp_err=yes
c906108c 12846fi
bec39cab
AC
12847if test -z "$ac_cpp_err"; then
12848 ac_header_preproc=yes
12849else
12850 echo "$as_me: failed program was:" >&5
12851sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 ac_header_preproc=no
c906108c 12854fi
4e8d927d 12855
bec39cab 12856rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
12857{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12858echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
12859
12860# So? What about this header?
12861case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12862 yes:no: )
12863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12864echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12866echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12867 ac_header_preproc=yes
12868 ;;
12869 no:yes:* )
12870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12871echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12873echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12875echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12877echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12879echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12881echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 12882
bec39cab
AC
12883 ;;
12884esac
4e8d927d
DJ
12885{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 12888 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12889else
bec39cab 12890 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12891fi
4e8d927d
DJ
12892ac_res=`eval echo '${'$as_ac_Header'}'`
12893 { echo "$as_me:$LINENO: result: $ac_res" >&5
12894echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
12895
12896fi
12897if test `eval echo '${'$as_ac_Header'}'` = yes; then
12898 cat >>confdefs.h <<_ACEOF
12899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12900_ACEOF
12901
12902fi
12903
5ee754fc 12904done
c906108c 12905
bec39cab 12906
065a1afc 12907for ac_header in ncurses/term.h
3b78cdbb 12908do
bec39cab 12909as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
12910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915fi
4e8d927d
DJ
12916ac_res=`eval echo '${'$as_ac_Header'}'`
12917 { echo "$as_me:$LINENO: result: $ac_res" >&5
12918echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
12919else
12920 # Is the header compilable?
4e8d927d
DJ
12921{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12922echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
12923cat >conftest.$ac_ext <<_ACEOF
12924/* confdefs.h. */
12925_ACEOF
12926cat confdefs.h >>conftest.$ac_ext
12927cat >>conftest.$ac_ext <<_ACEOF
12928/* end confdefs.h. */
12929$ac_includes_default
12930#include <$ac_header>
12931_ACEOF
12932rm -f conftest.$ac_objext
12933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12934 (eval $ac_compile) 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
121ce6e5 12941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest.$ac_objext'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_header_compiler=yes
12954else
12955 echo "$as_me: failed program was:" >&5
12956sed 's/^/| /' conftest.$ac_ext >&5
12957
4e8d927d 12958 ac_header_compiler=no
bec39cab 12959fi
4e8d927d 12960
bec39cab 12961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
12962{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12963echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
12964
12965# Is the header present?
4e8d927d
DJ
12966{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12967echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
12968cat >conftest.$ac_ext <<_ACEOF
12969/* confdefs.h. */
12970_ACEOF
12971cat confdefs.h >>conftest.$ac_ext
12972cat >>conftest.$ac_ext <<_ACEOF
12973/* end confdefs.h. */
12974#include <$ac_header>
12975_ACEOF
12976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } >/dev/null; then
12984 if test -s conftest.err; then
12985 ac_cpp_err=$ac_c_preproc_warn_flag
12986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12987 else
12988 ac_cpp_err=
12989 fi
12990else
12991 ac_cpp_err=yes
3b78cdbb 12992fi
bec39cab
AC
12993if test -z "$ac_cpp_err"; then
12994 ac_header_preproc=yes
12995else
12996 echo "$as_me: failed program was:" >&5
12997sed 's/^/| /' conftest.$ac_ext >&5
12998
12999 ac_header_preproc=no
3b78cdbb 13000fi
4e8d927d 13001
bec39cab 13002rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
13003{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13004echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
13005
13006# So? What about this header?
13007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13008 yes:no: )
13009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13010echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13012echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13013 ac_header_preproc=yes
13014 ;;
13015 no:yes:* )
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13017echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13019echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13021echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13023echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13025echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13027echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 13028
bec39cab
AC
13029 ;;
13030esac
4e8d927d
DJ
13031{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 13034 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 13035else
bec39cab
AC
13036 eval "$as_ac_Header=\$ac_header_preproc"
13037fi
4e8d927d
DJ
13038ac_res=`eval echo '${'$as_ac_Header'}'`
13039 { echo "$as_me:$LINENO: result: $ac_res" >&5
13040echo "${ECHO_T}$ac_res" >&6; }
bec39cab 13041
3b78cdbb 13042fi
bec39cab
AC
13043if test `eval echo '${'$as_ac_Header'}'` = yes; then
13044 cat >>confdefs.h <<_ACEOF
13045#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13046_ACEOF
13047
13048fi
13049
3b78cdbb
DA
13050done
13051
c906108c 13052
065a1afc
JB
13053for ac_header in term.h
13054do
13055as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
13056{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
065a1afc
JB
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13060else
13061 cat >conftest.$ac_ext <<_ACEOF
13062/* confdefs.h. */
13063_ACEOF
13064cat confdefs.h >>conftest.$ac_ext
13065cat >>conftest.$ac_ext <<_ACEOF
13066/* end confdefs.h. */
13067#if HAVE_CURSES_H
13068# include <curses.h>
13069#endif
13070
13071
13072#include <$ac_header>
13073_ACEOF
13074rm -f conftest.$ac_objext
13075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076 (eval $ac_compile) 2>conftest.er1
13077 ac_status=$?
13078 grep -v '^ *+' conftest.er1 >conftest.err
13079 rm -f conftest.er1
13080 cat conftest.err >&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
121ce6e5 13083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
065a1afc
JB
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest.$ac_objext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 eval "$as_ac_Header=yes"
13096else
13097 echo "$as_me: failed program was:" >&5
13098sed 's/^/| /' conftest.$ac_ext >&5
13099
4e8d927d 13100 eval "$as_ac_Header=no"
065a1afc 13101fi
4e8d927d 13102
065a1afc
JB
13103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13104fi
4e8d927d
DJ
13105ac_res=`eval echo '${'$as_ac_Header'}'`
13106 { echo "$as_me:$LINENO: result: $ac_res" >&5
13107echo "${ECHO_T}$ac_res" >&6; }
065a1afc
JB
13108if test `eval echo '${'$as_ac_Header'}'` = yes; then
13109 cat >>confdefs.h <<_ACEOF
13110#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13111_ACEOF
13112
13113fi
13114
13115done
13116
13117
5ee754fc
MK
13118# FIXME: kettenis/20030102: In most cases we include these
13119# unconditionally, so what's the point in checking these?
bec39cab
AC
13120
13121
13122for ac_header in ctype.h time.h
c906108c 13123do
bec39cab 13124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
13125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13130fi
4e8d927d
DJ
13131ac_res=`eval echo '${'$as_ac_Header'}'`
13132 { echo "$as_me:$LINENO: result: $ac_res" >&5
13133echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
13134else
13135 # Is the header compilable?
4e8d927d
DJ
13136{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13137echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
bec39cab
AC
13138cat >conftest.$ac_ext <<_ACEOF
13139/* confdefs.h. */
13140_ACEOF
13141cat confdefs.h >>conftest.$ac_ext
13142cat >>conftest.$ac_ext <<_ACEOF
13143/* end confdefs.h. */
13144$ac_includes_default
13145#include <$ac_header>
13146_ACEOF
13147rm -f conftest.$ac_objext
13148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13149 (eval $ac_compile) 2>conftest.er1
13150 ac_status=$?
13151 grep -v '^ *+' conftest.er1 >conftest.err
13152 rm -f conftest.er1
13153 cat conftest.err >&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
121ce6e5 13156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest.$ac_objext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_header_compiler=yes
13169else
13170 echo "$as_me: failed program was:" >&5
13171sed 's/^/| /' conftest.$ac_ext >&5
13172
4e8d927d 13173 ac_header_compiler=no
bec39cab 13174fi
4e8d927d 13175
bec39cab 13176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
13177{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13178echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
13179
13180# Is the header present?
4e8d927d
DJ
13181{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
13183cat >conftest.$ac_ext <<_ACEOF
13184/* confdefs.h. */
13185_ACEOF
13186cat confdefs.h >>conftest.$ac_ext
13187cat >>conftest.$ac_ext <<_ACEOF
13188/* end confdefs.h. */
13189#include <$ac_header>
13190_ACEOF
13191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13193 ac_status=$?
13194 grep -v '^ *+' conftest.er1 >conftest.err
13195 rm -f conftest.er1
13196 cat conftest.err >&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } >/dev/null; then
13199 if test -s conftest.err; then
13200 ac_cpp_err=$ac_c_preproc_warn_flag
13201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13202 else
13203 ac_cpp_err=
13204 fi
13205else
13206 ac_cpp_err=yes
c906108c 13207fi
bec39cab
AC
13208if test -z "$ac_cpp_err"; then
13209 ac_header_preproc=yes
13210else
13211 echo "$as_me: failed program was:" >&5
13212sed 's/^/| /' conftest.$ac_ext >&5
13213
13214 ac_header_preproc=no
c906108c 13215fi
4e8d927d 13216
bec39cab 13217rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
13218{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13219echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
13220
13221# So? What about this header?
13222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13223 yes:no: )
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13225echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13227echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13228 ac_header_preproc=yes
13229 ;;
13230 no:yes:* )
13231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13234echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13236echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13238echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13242echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 13243
bec39cab
AC
13244 ;;
13245esac
4e8d927d
DJ
13246{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 13249 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 13250else
bec39cab
AC
13251 eval "$as_ac_Header=\$ac_header_preproc"
13252fi
4e8d927d
DJ
13253ac_res=`eval echo '${'$as_ac_Header'}'`
13254 { echo "$as_me:$LINENO: result: $ac_res" >&5
13255echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
13256
13257fi
13258if test `eval echo '${'$as_ac_Header'}'` = yes; then
13259 cat >>confdefs.h <<_ACEOF
13260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13261_ACEOF
13262
c906108c 13263fi
bec39cab 13264
c906108c
SS
13265done
13266
5ee754fc 13267
4e8d927d 13268# Create a header we can use portably to get the standard integer types.
666ec76f 13269
4e8d927d
DJ
13270
13271inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13272
13273acx_cv_header_stdint=stddef.h
13274acx_cv_header_stdint_kind="(already complete)"
13275for i in stdint.h $inttype_headers; do
13276 unset ac_cv_type_uintptr_t
13277 unset ac_cv_type_uintmax_t
13278 unset ac_cv_type_int_least32_t
13279 unset ac_cv_type_int_fast32_t
13280 unset ac_cv_type_uint64_t
13281 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13282 { echo "$as_me:$LINENO: checking for uintmax_t" >&5
13283echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
13284if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 13285 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 13286else
bec39cab
AC
13287 cat >conftest.$ac_ext <<_ACEOF
13288/* confdefs.h. */
13289_ACEOF
13290cat confdefs.h >>conftest.$ac_ext
13291cat >>conftest.$ac_ext <<_ACEOF
13292/* end confdefs.h. */
4e8d927d
DJ
13293#include <sys/types.h>
13294#include <$i>
13295
13296typedef uintmax_t ac__type_new_;
bec39cab
AC
13297int
13298main ()
13299{
4e8d927d
DJ
13300if ((ac__type_new_ *) 0)
13301 return 0;
13302if (sizeof (ac__type_new_))
13303 return 0;
13304 ;
bec39cab
AC
13305 return 0;
13306}
13307_ACEOF
13308rm -f conftest.$ac_objext
13309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13310 (eval $ac_compile) 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
121ce6e5 13317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; } &&
13323 { ac_try='test -s conftest.$ac_objext'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
4e8d927d 13329 ac_cv_type_uintmax_t=yes
40a7debc 13330else
bec39cab
AC
13331 echo "$as_me: failed program was:" >&5
13332sed 's/^/| /' conftest.$ac_ext >&5
13333
4e8d927d 13334 ac_cv_type_uintmax_t=no
40a7debc 13335fi
4e8d927d 13336
bec39cab 13337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 13338fi
4e8d927d
DJ
13339{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13340echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
13341if test $ac_cv_type_uintmax_t = yes; then
13342 acx_cv_header_stdint=$i
666ec76f 13343else
4e8d927d 13344 continue
666ec76f 13345fi
4e8d927d
DJ
13346
13347 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
13348echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
13349if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13351else
13352 cat >conftest.$ac_ext <<_ACEOF
13353/* confdefs.h. */
13354_ACEOF
13355cat confdefs.h >>conftest.$ac_ext
13356cat >>conftest.$ac_ext <<_ACEOF
13357/* end confdefs.h. */
4e8d927d
DJ
13358#include <sys/types.h>
13359#include <$i>
13360
13361typedef uintptr_t ac__type_new_;
666ec76f
MK
13362int
13363main ()
13364{
4e8d927d
DJ
13365if ((ac__type_new_ *) 0)
13366 return 0;
13367if (sizeof (ac__type_new_))
13368 return 0;
666ec76f
MK
13369 ;
13370 return 0;
13371}
13372_ACEOF
13373rm -f conftest.$ac_objext
13374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13375 (eval $ac_compile) 2>conftest.er1
13376 ac_status=$?
13377 grep -v '^ *+' conftest.er1 >conftest.err
13378 rm -f conftest.er1
13379 cat conftest.err >&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } &&
121ce6e5 13382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
666ec76f
MK
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; } &&
13388 { ac_try='test -s conftest.$ac_objext'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13391 ac_status=$?
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; }; then
4e8d927d 13394 ac_cv_type_uintptr_t=yes
666ec76f
MK
13395else
13396 echo "$as_me: failed program was:" >&5
13397sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 13398
4e8d927d 13399 ac_cv_type_uintptr_t=no
a3828db0 13400fi
4e8d927d 13401
a3828db0
MK
13402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13403fi
4e8d927d
DJ
13404{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13405echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
13406if test $ac_cv_type_uintptr_t = yes; then
13407 :
a3828db0 13408else
4e8d927d 13409 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 13410fi
4e8d927d
DJ
13411
13412 { echo "$as_me:$LINENO: checking for int_least32_t" >&5
13413echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6; }
13414if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416else
13417 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
13418/* confdefs.h. */
13419_ACEOF
13420cat confdefs.h >>conftest.$ac_ext
13421cat >>conftest.$ac_ext <<_ACEOF
13422/* end confdefs.h. */
4e8d927d
DJ
13423#include <sys/types.h>
13424#include <$i>
13425
13426typedef int_least32_t ac__type_new_;
bec39cab
AC
13427int
13428main ()
13429{
4e8d927d
DJ
13430if ((ac__type_new_ *) 0)
13431 return 0;
13432if (sizeof (ac__type_new_))
13433 return 0;
bec39cab
AC
13434 ;
13435 return 0;
13436}
13437_ACEOF
13438rm -f conftest.$ac_objext
13439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13440 (eval $ac_compile) 2>conftest.er1
13441 ac_status=$?
13442 grep -v '^ *+' conftest.er1 >conftest.err
13443 rm -f conftest.er1
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
121ce6e5 13447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; } &&
13453 { ac_try='test -s conftest.$ac_objext'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
4e8d927d 13459 ac_cv_type_int_least32_t=yes
b9362cc7 13460else
bec39cab
AC
13461 echo "$as_me: failed program was:" >&5
13462sed 's/^/| /' conftest.$ac_ext >&5
13463
4e8d927d 13464 ac_cv_type_int_least32_t=no
b9362cc7 13465fi
4e8d927d 13466
bec39cab 13467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 13468fi
4e8d927d
DJ
13469{ echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13470echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6; }
13471if test $ac_cv_type_int_least32_t = yes; then
13472 :
a3828db0 13473else
4e8d927d 13474 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 13475fi
5ee754fc 13476
4e8d927d
DJ
13477 { echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13478echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6; }
13479if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481else
13482 cat >conftest.$ac_ext <<_ACEOF
13483/* confdefs.h. */
13484_ACEOF
13485cat confdefs.h >>conftest.$ac_ext
13486cat >>conftest.$ac_ext <<_ACEOF
13487/* end confdefs.h. */
4e8d927d
DJ
13488#include <sys/types.h>
13489#include <$i>
13490
13491typedef int_fast32_t ac__type_new_;
bec39cab
AC
13492int
13493main ()
13494{
4e8d927d
DJ
13495if ((ac__type_new_ *) 0)
13496 return 0;
13497if (sizeof (ac__type_new_))
13498 return 0;
bec39cab
AC
13499 ;
13500 return 0;
13501}
13502_ACEOF
13503rm -f conftest.$ac_objext
13504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13505 (eval $ac_compile) 2>conftest.er1
13506 ac_status=$?
13507 grep -v '^ *+' conftest.er1 >conftest.err
13508 rm -f conftest.er1
13509 cat conftest.err >&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
121ce6e5 13512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; } &&
13518 { ac_try='test -s conftest.$ac_objext'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
4e8d927d 13524 ac_cv_type_int_fast32_t=yes
c906108c 13525else
bec39cab
AC
13526 echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
4e8d927d 13529 ac_cv_type_int_fast32_t=no
c906108c 13530fi
4e8d927d 13531
bec39cab 13532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13533fi
4e8d927d
DJ
13534{ echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13535echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6; }
13536if test $ac_cv_type_int_fast32_t = yes; then
13537 :
a3828db0 13538else
4e8d927d 13539 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 13540fi
4e8d927d
DJ
13541
13542 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13543echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13544if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546else
13547 cat >conftest.$ac_ext <<_ACEOF
13548/* confdefs.h. */
13549_ACEOF
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
13552/* end confdefs.h. */
4e8d927d
DJ
13553#include <sys/types.h>
13554#include <$i>
13555
13556typedef uint64_t ac__type_new_;
bec39cab
AC
13557int
13558main ()
13559{
4e8d927d
DJ
13560if ((ac__type_new_ *) 0)
13561 return 0;
13562if (sizeof (ac__type_new_))
13563 return 0;
bec39cab
AC
13564 ;
13565 return 0;
13566}
13567_ACEOF
13568rm -f conftest.$ac_objext
13569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
121ce6e5 13577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest.$ac_objext'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
4e8d927d 13589 ac_cv_type_uint64_t=yes
c906108c 13590else
bec39cab
AC
13591 echo "$as_me: failed program was:" >&5
13592sed 's/^/| /' conftest.$ac_ext >&5
13593
4e8d927d 13594 ac_cv_type_uint64_t=no
c906108c 13595fi
4e8d927d 13596
bec39cab 13597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13598fi
4e8d927d
DJ
13599{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13600echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13601if test $ac_cv_type_uint64_t = yes; then
13602 :
a3828db0 13603else
4e8d927d 13604 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
13605fi
13606
4e8d927d
DJ
13607 break
13608done
13609if test "$acx_cv_header_stdint" = stddef.h; then
13610 acx_cv_header_stdint_kind="(lacks uintptr_t)"
13611 for i in stdint.h $inttype_headers; do
13612 unset ac_cv_type_uint32_t
13613 unset ac_cv_type_uint64_t
13614 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13615 { echo "$as_me:$LINENO: checking for uint32_t" >&5
13616echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
13617if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 13618 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 13619else
bec39cab
AC
13620 cat >conftest.$ac_ext <<_ACEOF
13621/* confdefs.h. */
13622_ACEOF
13623cat confdefs.h >>conftest.$ac_ext
13624cat >>conftest.$ac_ext <<_ACEOF
13625/* end confdefs.h. */
4e8d927d
DJ
13626#include <sys/types.h>
13627#include <$i>
13628
13629typedef uint32_t ac__type_new_;
a3828db0
MK
13630int
13631main ()
13632{
4e8d927d
DJ
13633if ((ac__type_new_ *) 0)
13634 return 0;
13635if (sizeof (ac__type_new_))
13636 return 0;
a3828db0
MK
13637 ;
13638 return 0;
13639}
bec39cab
AC
13640_ACEOF
13641rm -f conftest.$ac_objext
13642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13643 (eval $ac_compile) 2>conftest.er1
13644 ac_status=$?
13645 grep -v '^ *+' conftest.er1 >conftest.err
13646 rm -f conftest.er1
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
121ce6e5 13650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } &&
13656 { ac_try='test -s conftest.$ac_objext'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
4e8d927d 13662 ac_cv_type_uint32_t=yes
bce58c09 13663else
bec39cab
AC
13664 echo "$as_me: failed program was:" >&5
13665sed 's/^/| /' conftest.$ac_ext >&5
13666
4e8d927d 13667 ac_cv_type_uint32_t=no
bce58c09 13668fi
4e8d927d 13669
bec39cab 13670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 13671fi
4e8d927d
DJ
13672{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13673echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
13674if test $ac_cv_type_uint32_t = yes; then
13675 acx_cv_header_stdint=$i
a3828db0 13676else
4e8d927d 13677 continue
e5a7de23 13678fi
4e8d927d
DJ
13679
13680 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13681echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13682if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13684else
13685 cat >conftest.$ac_ext <<_ACEOF
13686/* confdefs.h. */
13687_ACEOF
13688cat confdefs.h >>conftest.$ac_ext
13689cat >>conftest.$ac_ext <<_ACEOF
13690/* end confdefs.h. */
4e8d927d
DJ
13691#include <sys/types.h>
13692#include <$i>
13693
13694typedef uint64_t ac__type_new_;
e5a7de23
EZ
13695int
13696main ()
13697{
4e8d927d
DJ
13698if ((ac__type_new_ *) 0)
13699 return 0;
13700if (sizeof (ac__type_new_))
13701 return 0;
e5a7de23
EZ
13702 ;
13703 return 0;
13704}
13705_ACEOF
13706rm -f conftest.$ac_objext
13707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708 (eval $ac_compile) 2>conftest.er1
13709 ac_status=$?
13710 grep -v '^ *+' conftest.er1 >conftest.err
13711 rm -f conftest.er1
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
121ce6e5 13715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e5a7de23
EZ
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest.$ac_objext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
4e8d927d 13727 ac_cv_type_uint64_t=yes
e5a7de23
EZ
13728else
13729 echo "$as_me: failed program was:" >&5
13730sed 's/^/| /' conftest.$ac_ext >&5
13731
4e8d927d 13732 ac_cv_type_uint64_t=no
e5a7de23 13733fi
4e8d927d 13734
e5a7de23
EZ
13735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13736fi
4e8d927d
DJ
13737{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13738echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13739if test $ac_cv_type_uint64_t = yes; then
13740 :
e5a7de23 13741else
4e8d927d
DJ
13742 acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)"
13743fi
e5a7de23 13744
4e8d927d
DJ
13745 break
13746 done
e5a7de23 13747fi
4e8d927d
DJ
13748if test "$acx_cv_header_stdint" = stddef.h; then
13749 acx_cv_header_stdint_kind="(u_intXX_t style)"
13750 for i in sys/types.h $inttype_headers; do
13751 unset ac_cv_type_u_int32_t
13752 unset ac_cv_type_u_int64_t
13753 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13754 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
13755echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
13756if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13758else
13759 cat >conftest.$ac_ext <<_ACEOF
13760/* confdefs.h. */
13761_ACEOF
13762cat confdefs.h >>conftest.$ac_ext
13763cat >>conftest.$ac_ext <<_ACEOF
13764/* end confdefs.h. */
4e8d927d
DJ
13765#include <sys/types.h>
13766#include <$i>
13767
13768typedef u_int32_t ac__type_new_;
e5a7de23
EZ
13769int
13770main ()
13771{
4e8d927d
DJ
13772if ((ac__type_new_ *) 0)
13773 return 0;
13774if (sizeof (ac__type_new_))
13775 return 0;
e5a7de23
EZ
13776 ;
13777 return 0;
13778}
13779_ACEOF
13780rm -f conftest.$ac_objext
13781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782 (eval $ac_compile) 2>conftest.er1
13783 ac_status=$?
13784 grep -v '^ *+' conftest.er1 >conftest.err
13785 rm -f conftest.er1
13786 cat conftest.err >&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } &&
121ce6e5 13789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e5a7de23
EZ
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; } &&
13795 { ac_try='test -s conftest.$ac_objext'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13798 ac_status=$?
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
4e8d927d 13801 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
13802else
13803 echo "$as_me: failed program was:" >&5
13804sed 's/^/| /' conftest.$ac_ext >&5
13805
4e8d927d 13806 ac_cv_type_u_int32_t=no
e5a7de23 13807fi
4e8d927d 13808
e5a7de23
EZ
13809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13810fi
4e8d927d
DJ
13811{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13812echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
13813if test $ac_cv_type_u_int32_t = yes; then
13814 acx_cv_header_stdint=$i
e5a7de23 13815else
4e8d927d 13816 continue
a3828db0 13817fi
5ee754fc 13818
4e8d927d
DJ
13819 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13820echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13821if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823else
13824 cat >conftest.$ac_ext <<_ACEOF
13825/* confdefs.h. */
13826_ACEOF
13827cat confdefs.h >>conftest.$ac_ext
13828cat >>conftest.$ac_ext <<_ACEOF
13829/* end confdefs.h. */
4e8d927d
DJ
13830#include <sys/types.h>
13831#include <$i>
13832
13833typedef u_int64_t ac__type_new_;
bec39cab
AC
13834int
13835main ()
13836{
4e8d927d
DJ
13837if ((ac__type_new_ *) 0)
13838 return 0;
13839if (sizeof (ac__type_new_))
13840 return 0;
bec39cab
AC
13841 ;
13842 return 0;
13843}
13844_ACEOF
a3828db0
MK
13845rm -f conftest.$ac_objext
13846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13847 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
121ce6e5 13854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
a3828db0 13860 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
4e8d927d 13866 ac_cv_type_u_int64_t=yes
bec39cab
AC
13867else
13868 echo "$as_me: failed program was:" >&5
13869sed 's/^/| /' conftest.$ac_ext >&5
13870
4e8d927d
DJ
13871 ac_cv_type_u_int64_t=no
13872fi
13873
13874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13875fi
13876{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13877echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13878if test $ac_cv_type_u_int64_t = yes; then
13879 :
13880else
13881 acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)"
13882fi
13883
13884 break
13885 done
13886fi
13887if test "$acx_cv_header_stdint" = stddef.h; then
13888 acx_cv_header_stdint_kind="(using manual detection)"
13889fi
13890
13891test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13892test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13893test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13894test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13895test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13896
13897# ----------------- Summarize what we found so far
13898
13899{ echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
13900echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6; }
13901
13902case `$as_basename -- gdb_stdint.h ||
13903$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13904 Xgdb_stdint.h : 'X\(//\)$' \| \
13905 Xgdb_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
13906echo X/gdb_stdint.h |
13907 sed '/^.*\/\([^/][^/]*\)\/*$/{
13908 s//\1/
13909 q
13910 }
13911 /^X\/\(\/\/\)$/{
13912 s//\1/
13913 q
13914 }
13915 /^X\/\(\/\).*/{
13916 s//\1/
13917 q
13918 }
13919 s/.*/./; q'` in
13920 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13921echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13922 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13923echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13924 *) ;;
13925esac
13926
13927{ echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13928echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13929
13930# ----------------- done included file, check C basic types --------
13931
13932# Lacking an uintptr_t? Test size of void *
13933case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13934 stddef.h:* | *:no) { echo "$as_me:$LINENO: checking for void *" >&5
13935echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
13936if test "${ac_cv_type_void_p+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13938else
13939 cat >conftest.$ac_ext <<_ACEOF
a3828db0 13940/* confdefs.h. */
bec39cab
AC
13941_ACEOF
13942cat confdefs.h >>conftest.$ac_ext
13943cat >>conftest.$ac_ext <<_ACEOF
13944/* end confdefs.h. */
a3828db0 13945$ac_includes_default
4e8d927d 13946typedef void * ac__type_new_;
bec39cab
AC
13947int
13948main ()
13949{
4e8d927d
DJ
13950if ((ac__type_new_ *) 0)
13951 return 0;
13952if (sizeof (ac__type_new_))
13953 return 0;
bec39cab
AC
13954 ;
13955 return 0;
13956}
13957_ACEOF
a3828db0
MK
13958rm -f conftest.$ac_objext
13959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13961 ac_status=$?
13962 grep -v '^ *+' conftest.er1 >conftest.err
13963 rm -f conftest.er1
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
121ce6e5 13967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; } &&
a3828db0 13973 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13976 ac_status=$?
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
4e8d927d 13979 ac_cv_type_void_p=yes
46711df8 13980else
bec39cab
AC
13981 echo "$as_me: failed program was:" >&5
13982sed 's/^/| /' conftest.$ac_ext >&5
13983
4e8d927d 13984 ac_cv_type_void_p=no
a3828db0 13985fi
46711df8 13986
4e8d927d 13987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 13988fi
4e8d927d
DJ
13989{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13990echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
d3ea6809 13991
4e8d927d
DJ
13992{ echo "$as_me:$LINENO: checking size of void *" >&5
13993echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
13994if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996else
4e8d927d
DJ
13997 if test "$ac_cv_type_void_p" = yes; then
13998 # The cast to long int works around a bug in the HP C Compiler
13999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14001 # This bug is HP SR number 8606223364.
14002 if test "$cross_compiling" = yes; then
14003 # Depending upon the size, compute the lo and hi bounds.
14004cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
14005/* confdefs.h. */
14006_ACEOF
14007cat confdefs.h >>conftest.$ac_ext
14008cat >>conftest.$ac_ext <<_ACEOF
14009/* end confdefs.h. */
14010$ac_includes_default
4e8d927d 14011 typedef void * ac__type_sizeof_;
d3ea6809
MM
14012int
14013main ()
14014{
4e8d927d
DJ
14015static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14016test_array [0] = 0
14017
d3ea6809
MM
14018 ;
14019 return 0;
14020}
14021_ACEOF
14022rm -f conftest.$ac_objext
14023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024 (eval $ac_compile) 2>conftest.er1
14025 ac_status=$?
14026 grep -v '^ *+' conftest.er1 >conftest.err
14027 rm -f conftest.er1
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
121ce6e5 14031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d3ea6809
MM
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest.$ac_objext'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
4e8d927d
DJ
14043 ac_lo=0 ac_mid=0
14044 while :; do
14045 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
14046/* confdefs.h. */
14047_ACEOF
14048cat confdefs.h >>conftest.$ac_ext
14049cat >>conftest.$ac_ext <<_ACEOF
14050/* end confdefs.h. */
14051$ac_includes_default
4e8d927d 14052 typedef void * ac__type_sizeof_;
d3ea6809
MM
14053int
14054main ()
14055{
4e8d927d
DJ
14056static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14057test_array [0] = 0
14058
d3ea6809
MM
14059 ;
14060 return 0;
14061}
14062_ACEOF
14063rm -f conftest.$ac_objext
14064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14065 (eval $ac_compile) 2>conftest.er1
14066 ac_status=$?
14067 grep -v '^ *+' conftest.er1 >conftest.err
14068 rm -f conftest.er1
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } &&
121ce6e5 14072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d3ea6809
MM
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; } &&
14078 { ac_try='test -s conftest.$ac_objext'
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
4e8d927d 14084 ac_hi=$ac_mid; break
d3ea6809
MM
14085else
14086 echo "$as_me: failed program was:" >&5
14087sed 's/^/| /' conftest.$ac_ext >&5
14088
4e8d927d
DJ
14089 ac_lo=`expr $ac_mid + 1`
14090 if test $ac_lo -le $ac_mid; then
14091 ac_lo= ac_hi=
14092 break
14093 fi
14094 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 14095fi
46711df8 14096
4e8d927d
DJ
14097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14098 done
bec39cab 14099else
4e8d927d
DJ
14100 echo "$as_me: failed program was:" >&5
14101sed 's/^/| /' conftest.$ac_ext >&5
14102
14103 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14104/* confdefs.h. */
14105_ACEOF
14106cat confdefs.h >>conftest.$ac_ext
14107cat >>conftest.$ac_ext <<_ACEOF
14108/* end confdefs.h. */
4e8d927d
DJ
14109$ac_includes_default
14110 typedef void * ac__type_sizeof_;
bec39cab
AC
14111int
14112main ()
14113{
4e8d927d
DJ
14114static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14115test_array [0] = 0
14116
bec39cab
AC
14117 ;
14118 return 0;
14119}
14120_ACEOF
a3828db0
MK
14121rm -f conftest.$ac_objext
14122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
14124 ac_status=$?
14125 grep -v '^ *+' conftest.er1 >conftest.err
14126 rm -f conftest.er1
14127 cat conftest.err >&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); } &&
121ce6e5 14130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
a3828db0 14136 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
4e8d927d
DJ
14142 ac_hi=-1 ac_mid=-1
14143 while :; do
14144 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
14145/* confdefs.h. */
14146_ACEOF
14147cat confdefs.h >>conftest.$ac_ext
14148cat >>conftest.$ac_ext <<_ACEOF
14149/* end confdefs.h. */
4e8d927d
DJ
14150$ac_includes_default
14151 typedef void * ac__type_sizeof_;
f9f87d2c
MK
14152int
14153main ()
14154{
4e8d927d
DJ
14155static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14156test_array [0] = 0
14157
f9f87d2c
MK
14158 ;
14159 return 0;
14160}
14161_ACEOF
14162rm -f conftest.$ac_objext
14163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14164 (eval $ac_compile) 2>conftest.er1
14165 ac_status=$?
14166 grep -v '^ *+' conftest.er1 >conftest.err
14167 rm -f conftest.er1
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } &&
121ce6e5 14171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f9f87d2c
MK
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest.$ac_objext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
4e8d927d 14183 ac_lo=$ac_mid; break
f9f87d2c
MK
14184else
14185 echo "$as_me: failed program was:" >&5
14186sed 's/^/| /' conftest.$ac_ext >&5
14187
4e8d927d
DJ
14188 ac_hi=`expr '(' $ac_mid ')' - 1`
14189 if test $ac_mid -le $ac_hi; then
14190 ac_lo= ac_hi=
14191 break
14192 fi
14193 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 14194fi
f9f87d2c 14195
4e8d927d
DJ
14196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14197 done
14198else
14199 echo "$as_me: failed program was:" >&5
14200sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 14201
4e8d927d
DJ
14202 ac_lo= ac_hi=
14203fi
f9f87d2c 14204
4e8d927d 14205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d
MK
14206fi
14207
4e8d927d
DJ
14208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14209# Binary search between lo and hi bounds.
14210while test "x$ac_lo" != "x$ac_hi"; do
14211 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
14212 cat >conftest.$ac_ext <<_ACEOF
14213/* confdefs.h. */
14214_ACEOF
14215cat confdefs.h >>conftest.$ac_ext
14216cat >>conftest.$ac_ext <<_ACEOF
14217/* end confdefs.h. */
4e8d927d
DJ
14218$ac_includes_default
14219 typedef void * ac__type_sizeof_;
3be60c3d
MK
14220int
14221main ()
14222{
4e8d927d
DJ
14223static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14224test_array [0] = 0
14225
3be60c3d
MK
14226 ;
14227 return 0;
14228}
14229_ACEOF
14230rm -f conftest.$ac_objext
14231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232 (eval $ac_compile) 2>conftest.er1
14233 ac_status=$?
14234 grep -v '^ *+' conftest.er1 >conftest.err
14235 rm -f conftest.er1
14236 cat conftest.err >&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
121ce6e5 14239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3be60c3d
MK
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
4e8d927d 14251 ac_hi=$ac_mid
3be60c3d
MK
14252else
14253 echo "$as_me: failed program was:" >&5
14254sed 's/^/| /' conftest.$ac_ext >&5
14255
4e8d927d 14256 ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 14257fi
3be60c3d 14258
4e8d927d
DJ
14259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14260done
14261case $ac_lo in
14262?*) ac_cv_sizeof_void_p=$ac_lo;;
14263'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
14264See \`config.log' for more details." >&5
14265echo "$as_me: error: cannot compute sizeof (void *)
14266See \`config.log' for more details." >&2;}
14267 { (exit 77); exit 77; }; } ;;
14268esac
14269else
14270 cat >conftest.$ac_ext <<_ACEOF
14271/* confdefs.h. */
3be60c3d 14272_ACEOF
4e8d927d
DJ
14273cat confdefs.h >>conftest.$ac_ext
14274cat >>conftest.$ac_ext <<_ACEOF
14275/* end confdefs.h. */
14276$ac_includes_default
14277 typedef void * ac__type_sizeof_;
14278static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14279static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14280#include <stdio.h>
14281#include <stdlib.h>
14282int
14283main ()
14284{
14285
14286 FILE *f = fopen ("conftest.val", "w");
14287 if (! f)
14288 return 1;
14289 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14290 {
14291 long int i = longval ();
14292 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14293 return 1;
14294 fprintf (f, "%ld\n", i);
14295 }
14296 else
14297 {
14298 unsigned long int i = ulongval ();
14299 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14300 return 1;
14301 fprintf (f, "%lu\n", i);
14302 }
14303 return ferror (f) || fclose (f) != 0;
3be60c3d 14304
4e8d927d
DJ
14305 ;
14306 return 0;
14307}
14308_ACEOF
14309rm -f conftest$ac_exeext
14310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14320 ac_cv_sizeof_void_p=`cat conftest.val`
14321else
14322 echo "$as_me: program exited with status $ac_status" >&5
14323echo "$as_me: failed program was:" >&5
14324sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 14325
4e8d927d
DJ
14326( exit $ac_status )
14327{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
14328See \`config.log' for more details." >&5
14329echo "$as_me: error: cannot compute sizeof (void *)
14330See \`config.log' for more details." >&2;}
14331 { (exit 77); exit 77; }; }
f9f87d2c 14332fi
4e8d927d
DJ
14333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14334fi
14335rm -f conftest.val
14336else
14337 ac_cv_sizeof_void_p=0
14338fi
14339fi
14340{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14341echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
14342cat >>confdefs.h <<_ACEOF
14343#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14344_ACEOF
f9f87d2c 14345
4e8d927d
DJ
14346 ;;
14347esac
46711df8 14348
4e8d927d
DJ
14349# Lacking an uint64_t? Test size of long
14350case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14351 stddef.h:*:* | *:no:no) { echo "$as_me:$LINENO: checking for long" >&5
14352echo $ECHO_N "checking for long... $ECHO_C" >&6; }
14353if test "${ac_cv_type_long+set}" = set; then
bec39cab 14354 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 14355else
bec39cab
AC
14356 cat >conftest.$ac_ext <<_ACEOF
14357/* confdefs.h. */
14358_ACEOF
14359cat confdefs.h >>conftest.$ac_ext
14360cat >>conftest.$ac_ext <<_ACEOF
14361/* end confdefs.h. */
4e8d927d
DJ
14362$ac_includes_default
14363typedef long ac__type_new_;
bec39cab 14364int
46711df8
MK
14365main ()
14366{
4e8d927d
DJ
14367if ((ac__type_new_ *) 0)
14368 return 0;
14369if (sizeof (ac__type_new_))
14370 return 0;
a3828db0
MK
14371 ;
14372 return 0;
46711df8 14373}
bec39cab 14374_ACEOF
a3828db0
MK
14375rm -f conftest.$ac_objext
14376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
121ce6e5 14384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a3828db0
MK
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
bec39cab
AC
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
4e8d927d 14396 ac_cv_type_long=yes
46711df8 14397else
a3828db0 14398 echo "$as_me: failed program was:" >&5
bec39cab
AC
14399sed 's/^/| /' conftest.$ac_ext >&5
14400
4e8d927d 14401 ac_cv_type_long=no
46711df8 14402fi
bec39cab 14403
4e8d927d 14404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 14405fi
4e8d927d
DJ
14406{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14407echo "${ECHO_T}$ac_cv_type_long" >&6; }
46711df8 14408
4e8d927d
DJ
14409{ echo "$as_me:$LINENO: checking size of long" >&5
14410echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
14411if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 14412 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14413else
4e8d927d
DJ
14414 if test "$ac_cv_type_long" = yes; then
14415 # The cast to long int works around a bug in the HP C Compiler
14416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14418 # This bug is HP SR number 8606223364.
14419 if test "$cross_compiling" = yes; then
14420 # Depending upon the size, compute the lo and hi bounds.
14421cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14422/* confdefs.h. */
14423_ACEOF
14424cat confdefs.h >>conftest.$ac_ext
14425cat >>conftest.$ac_ext <<_ACEOF
14426/* end confdefs.h. */
4e8d927d
DJ
14427$ac_includes_default
14428 typedef long ac__type_sizeof_;
14429int
14430main ()
14431{
14432static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14433test_array [0] = 0
a3828db0 14434
4e8d927d
DJ
14435 ;
14436 return 0;
14437}
bec39cab
AC
14438_ACEOF
14439rm -f conftest.$ac_objext
14440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14441 (eval $ac_compile) 2>conftest.er1
14442 ac_status=$?
14443 grep -v '^ *+' conftest.er1 >conftest.err
14444 rm -f conftest.er1
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
121ce6e5 14448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest.$ac_objext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
4e8d927d
DJ
14460 ac_lo=0 ac_mid=0
14461 while :; do
14462 cat >conftest.$ac_ext <<_ACEOF
14463/* confdefs.h. */
14464_ACEOF
14465cat confdefs.h >>conftest.$ac_ext
14466cat >>conftest.$ac_ext <<_ACEOF
14467/* end confdefs.h. */
14468$ac_includes_default
14469 typedef long ac__type_sizeof_;
14470int
14471main ()
14472{
14473static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14474test_array [0] = 0
14475
14476 ;
14477 return 0;
14478}
14479_ACEOF
14480rm -f conftest.$ac_objext
14481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14482 (eval $ac_compile) 2>conftest.er1
14483 ac_status=$?
14484 grep -v '^ *+' conftest.er1 >conftest.err
14485 rm -f conftest.er1
14486 cat conftest.err >&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } &&
14489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491 (eval $ac_try) 2>&5
14492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; } &&
14495 { ac_try='test -s conftest.$ac_objext'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
14501 ac_hi=$ac_mid; break
14502else
14503 echo "$as_me: failed program was:" >&5
14504sed 's/^/| /' conftest.$ac_ext >&5
14505
14506 ac_lo=`expr $ac_mid + 1`
14507 if test $ac_lo -le $ac_mid; then
14508 ac_lo= ac_hi=
14509 break
14510 fi
14511 ac_mid=`expr 2 '*' $ac_mid + 1`
14512fi
14513
14514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14515 done
14516else
14517 echo "$as_me: failed program was:" >&5
14518sed 's/^/| /' conftest.$ac_ext >&5
14519
14520 cat >conftest.$ac_ext <<_ACEOF
14521/* confdefs.h. */
14522_ACEOF
14523cat confdefs.h >>conftest.$ac_ext
14524cat >>conftest.$ac_ext <<_ACEOF
14525/* end confdefs.h. */
14526$ac_includes_default
14527 typedef long ac__type_sizeof_;
14528int
14529main ()
14530{
14531static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14532test_array [0] = 0
14533
14534 ;
14535 return 0;
14536}
14537_ACEOF
14538rm -f conftest.$ac_objext
14539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14540 (eval $ac_compile) 2>conftest.er1
14541 ac_status=$?
14542 grep -v '^ *+' conftest.er1 >conftest.err
14543 rm -f conftest.er1
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } &&
14547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest.$ac_objext'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14556 ac_status=$?
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14559 ac_hi=-1 ac_mid=-1
14560 while :; do
14561 cat >conftest.$ac_ext <<_ACEOF
14562/* confdefs.h. */
14563_ACEOF
14564cat confdefs.h >>conftest.$ac_ext
14565cat >>conftest.$ac_ext <<_ACEOF
14566/* end confdefs.h. */
14567$ac_includes_default
14568 typedef long ac__type_sizeof_;
14569int
14570main ()
14571{
14572static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14573test_array [0] = 0
14574
14575 ;
14576 return 0;
14577}
14578_ACEOF
14579rm -f conftest.$ac_objext
14580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14581 (eval $ac_compile) 2>conftest.er1
14582 ac_status=$?
14583 grep -v '^ *+' conftest.er1 >conftest.err
14584 rm -f conftest.er1
14585 cat conftest.err >&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } &&
14588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; } &&
14594 { ac_try='test -s conftest.$ac_objext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_lo=$ac_mid; break
14601else
14602 echo "$as_me: failed program was:" >&5
14603sed 's/^/| /' conftest.$ac_ext >&5
14604
14605 ac_hi=`expr '(' $ac_mid ')' - 1`
14606 if test $ac_mid -le $ac_hi; then
14607 ac_lo= ac_hi=
14608 break
14609 fi
14610 ac_mid=`expr 2 '*' $ac_mid`
14611fi
14612
14613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14614 done
14615else
14616 echo "$as_me: failed program was:" >&5
14617sed 's/^/| /' conftest.$ac_ext >&5
14618
14619 ac_lo= ac_hi=
14620fi
14621
14622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14623fi
14624
14625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14626# Binary search between lo and hi bounds.
14627while test "x$ac_lo" != "x$ac_hi"; do
14628 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14629 cat >conftest.$ac_ext <<_ACEOF
14630/* confdefs.h. */
14631_ACEOF
14632cat confdefs.h >>conftest.$ac_ext
14633cat >>conftest.$ac_ext <<_ACEOF
14634/* end confdefs.h. */
14635$ac_includes_default
14636 typedef long ac__type_sizeof_;
14637int
14638main ()
14639{
14640static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14641test_array [0] = 0
14642
14643 ;
14644 return 0;
14645}
14646_ACEOF
14647rm -f conftest.$ac_objext
14648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14649 (eval $ac_compile) 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14668 ac_hi=$ac_mid
14669else
14670 echo "$as_me: failed program was:" >&5
14671sed 's/^/| /' conftest.$ac_ext >&5
14672
14673 ac_lo=`expr '(' $ac_mid ')' + 1`
14674fi
14675
14676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14677done
14678case $ac_lo in
14679?*) ac_cv_sizeof_long=$ac_lo;;
14680'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14681See \`config.log' for more details." >&5
14682echo "$as_me: error: cannot compute sizeof (long)
14683See \`config.log' for more details." >&2;}
14684 { (exit 77); exit 77; }; } ;;
14685esac
14686else
14687 cat >conftest.$ac_ext <<_ACEOF
14688/* confdefs.h. */
14689_ACEOF
14690cat confdefs.h >>conftest.$ac_ext
14691cat >>conftest.$ac_ext <<_ACEOF
14692/* end confdefs.h. */
14693$ac_includes_default
14694 typedef long ac__type_sizeof_;
14695static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14696static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14697#include <stdio.h>
14698#include <stdlib.h>
14699int
14700main ()
14701{
14702
14703 FILE *f = fopen ("conftest.val", "w");
14704 if (! f)
14705 return 1;
14706 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14707 {
14708 long int i = longval ();
14709 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14710 return 1;
14711 fprintf (f, "%ld\n", i);
14712 }
14713 else
14714 {
14715 unsigned long int i = ulongval ();
14716 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14717 return 1;
14718 fprintf (f, "%lu\n", i);
14719 }
14720 return ferror (f) || fclose (f) != 0;
14721
14722 ;
14723 return 0;
14724}
14725_ACEOF
14726rm -f conftest$ac_exeext
14727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14728 (eval $ac_link) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }; then
14737 ac_cv_sizeof_long=`cat conftest.val`
14738else
14739 echo "$as_me: program exited with status $ac_status" >&5
14740echo "$as_me: failed program was:" >&5
14741sed 's/^/| /' conftest.$ac_ext >&5
14742
14743( exit $ac_status )
14744{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14745See \`config.log' for more details." >&5
14746echo "$as_me: error: cannot compute sizeof (long)
14747See \`config.log' for more details." >&2;}
14748 { (exit 77); exit 77; }; }
14749fi
14750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14751fi
14752rm -f conftest.val
14753else
14754 ac_cv_sizeof_long=0
14755fi
14756fi
14757{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14758echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
14759cat >>confdefs.h <<_ACEOF
14760#define SIZEOF_LONG $ac_cv_sizeof_long
14761_ACEOF
14762
14763 ;;
14764esac
14765
14766if test $acx_cv_header_stdint = stddef.h; then
14767 # Lacking a good header? Test size of everything and deduce all types.
14768 { echo "$as_me:$LINENO: checking for int" >&5
14769echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14770if test "${ac_cv_type_int+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772else
14773 cat >conftest.$ac_ext <<_ACEOF
14774/* confdefs.h. */
14775_ACEOF
14776cat confdefs.h >>conftest.$ac_ext
14777cat >>conftest.$ac_ext <<_ACEOF
14778/* end confdefs.h. */
14779$ac_includes_default
14780typedef int ac__type_new_;
14781int
14782main ()
14783{
14784if ((ac__type_new_ *) 0)
14785 return 0;
14786if (sizeof (ac__type_new_))
14787 return 0;
14788 ;
14789 return 0;
14790}
14791_ACEOF
14792rm -f conftest.$ac_objext
14793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14794 (eval $ac_compile) 2>conftest.er1
14795 ac_status=$?
14796 grep -v '^ *+' conftest.er1 >conftest.err
14797 rm -f conftest.er1
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 ac_cv_type_int=yes
14814else
14815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818 ac_cv_type_int=no
14819fi
14820
14821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14822fi
14823{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14824echo "${ECHO_T}$ac_cv_type_int" >&6; }
14825
14826{ echo "$as_me:$LINENO: checking size of int" >&5
14827echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14828if test "${ac_cv_sizeof_int+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14830else
14831 if test "$ac_cv_type_int" = yes; then
14832 # The cast to long int works around a bug in the HP C Compiler
14833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14835 # This bug is HP SR number 8606223364.
14836 if test "$cross_compiling" = yes; then
14837 # Depending upon the size, compute the lo and hi bounds.
14838cat >conftest.$ac_ext <<_ACEOF
14839/* confdefs.h. */
14840_ACEOF
14841cat confdefs.h >>conftest.$ac_ext
14842cat >>conftest.$ac_ext <<_ACEOF
14843/* end confdefs.h. */
14844$ac_includes_default
14845 typedef int ac__type_sizeof_;
14846int
14847main ()
14848{
14849static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14850test_array [0] = 0
14851
14852 ;
14853 return 0;
14854}
14855_ACEOF
14856rm -f conftest.$ac_objext
14857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14858 (eval $ac_compile) 2>conftest.er1
14859 ac_status=$?
14860 grep -v '^ *+' conftest.er1 >conftest.err
14861 rm -f conftest.er1
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; } &&
14871 { ac_try='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 ac_lo=0 ac_mid=0
14878 while :; do
14879 cat >conftest.$ac_ext <<_ACEOF
14880/* confdefs.h. */
14881_ACEOF
14882cat confdefs.h >>conftest.$ac_ext
14883cat >>conftest.$ac_ext <<_ACEOF
14884/* end confdefs.h. */
14885$ac_includes_default
14886 typedef int ac__type_sizeof_;
14887int
14888main ()
14889{
14890static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14891test_array [0] = 0
14892
14893 ;
14894 return 0;
14895}
14896_ACEOF
14897rm -f conftest.$ac_objext
14898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14899 (eval $ac_compile) 2>conftest.er1
14900 ac_status=$?
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } &&
14906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try='test -s conftest.$ac_objext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 ac_hi=$ac_mid; break
14919else
14920 echo "$as_me: failed program was:" >&5
14921sed 's/^/| /' conftest.$ac_ext >&5
14922
14923 ac_lo=`expr $ac_mid + 1`
14924 if test $ac_lo -le $ac_mid; then
14925 ac_lo= ac_hi=
14926 break
14927 fi
14928 ac_mid=`expr 2 '*' $ac_mid + 1`
14929fi
14930
14931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14932 done
14933else
14934 echo "$as_me: failed program was:" >&5
14935sed 's/^/| /' conftest.$ac_ext >&5
14936
14937 cat >conftest.$ac_ext <<_ACEOF
14938/* confdefs.h. */
14939_ACEOF
14940cat confdefs.h >>conftest.$ac_ext
14941cat >>conftest.$ac_ext <<_ACEOF
14942/* end confdefs.h. */
14943$ac_includes_default
14944 typedef int ac__type_sizeof_;
14945int
14946main ()
14947{
14948static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14949test_array [0] = 0
14950
14951 ;
14952 return 0;
14953}
14954_ACEOF
14955rm -f conftest.$ac_objext
14956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957 (eval $ac_compile) 2>conftest.er1
14958 ac_status=$?
14959 grep -v '^ *+' conftest.er1 >conftest.err
14960 rm -f conftest.er1
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } &&
14964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; } &&
14970 { ac_try='test -s conftest.$ac_objext'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 ac_hi=-1 ac_mid=-1
14977 while :; do
14978 cat >conftest.$ac_ext <<_ACEOF
14979/* confdefs.h. */
14980_ACEOF
14981cat confdefs.h >>conftest.$ac_ext
14982cat >>conftest.$ac_ext <<_ACEOF
14983/* end confdefs.h. */
14984$ac_includes_default
14985 typedef int ac__type_sizeof_;
14986int
14987main ()
14988{
14989static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14990test_array [0] = 0
14991
14992 ;
14993 return 0;
14994}
14995_ACEOF
14996rm -f conftest.$ac_objext
14997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14998 (eval $ac_compile) 2>conftest.er1
14999 ac_status=$?
15000 grep -v '^ *+' conftest.er1 >conftest.err
15001 rm -f conftest.er1
15002 cat conftest.err >&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); } &&
15005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest.$ac_objext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_lo=$ac_mid; break
15018else
15019 echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 ac_hi=`expr '(' $ac_mid ')' - 1`
15023 if test $ac_mid -le $ac_hi; then
15024 ac_lo= ac_hi=
15025 break
15026 fi
15027 ac_mid=`expr 2 '*' $ac_mid`
15028fi
15029
15030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15031 done
15032else
15033 echo "$as_me: failed program was:" >&5
15034sed 's/^/| /' conftest.$ac_ext >&5
15035
15036 ac_lo= ac_hi=
15037fi
15038
15039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15040fi
15041
15042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15043# Binary search between lo and hi bounds.
15044while test "x$ac_lo" != "x$ac_hi"; do
15045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15046 cat >conftest.$ac_ext <<_ACEOF
15047/* confdefs.h. */
15048_ACEOF
15049cat confdefs.h >>conftest.$ac_ext
15050cat >>conftest.$ac_ext <<_ACEOF
15051/* end confdefs.h. */
15052$ac_includes_default
15053 typedef int ac__type_sizeof_;
15054int
15055main ()
15056{
15057static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15058test_array [0] = 0
15059
15060 ;
15061 return 0;
15062}
15063_ACEOF
15064rm -f conftest.$ac_objext
15065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066 (eval $ac_compile) 2>conftest.er1
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } &&
15073 { ac_try='test -z "$ac_c_werror_flag" || 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_objext'
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 ac_hi=$ac_mid
15086else
15087 echo "$as_me: failed program was:" >&5
15088sed 's/^/| /' conftest.$ac_ext >&5
15089
15090 ac_lo=`expr '(' $ac_mid ')' + 1`
15091fi
15092
15093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15094done
15095case $ac_lo in
15096?*) ac_cv_sizeof_int=$ac_lo;;
15097'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15098See \`config.log' for more details." >&5
15099echo "$as_me: error: cannot compute sizeof (int)
15100See \`config.log' for more details." >&2;}
15101 { (exit 77); exit 77; }; } ;;
15102esac
15103else
15104 cat >conftest.$ac_ext <<_ACEOF
15105/* confdefs.h. */
15106_ACEOF
15107cat confdefs.h >>conftest.$ac_ext
15108cat >>conftest.$ac_ext <<_ACEOF
15109/* end confdefs.h. */
15110$ac_includes_default
15111 typedef int ac__type_sizeof_;
15112static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15113static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15114#include <stdio.h>
15115#include <stdlib.h>
15116int
15117main ()
15118{
15119
15120 FILE *f = fopen ("conftest.val", "w");
15121 if (! f)
15122 return 1;
15123 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15124 {
15125 long int i = longval ();
15126 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15127 return 1;
15128 fprintf (f, "%ld\n", i);
15129 }
15130 else
15131 {
15132 unsigned long int i = ulongval ();
15133 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15134 return 1;
15135 fprintf (f, "%lu\n", i);
15136 }
15137 return ferror (f) || fclose (f) != 0;
15138
15139 ;
15140 return 0;
15141}
15142_ACEOF
15143rm -f conftest$ac_exeext
15144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15145 (eval $ac_link) 2>&5
15146 ac_status=$?
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15154 ac_cv_sizeof_int=`cat conftest.val`
15155else
15156 echo "$as_me: program exited with status $ac_status" >&5
15157echo "$as_me: failed program was:" >&5
15158sed 's/^/| /' conftest.$ac_ext >&5
15159
15160( exit $ac_status )
15161{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15162See \`config.log' for more details." >&5
15163echo "$as_me: error: cannot compute sizeof (int)
15164See \`config.log' for more details." >&2;}
15165 { (exit 77); exit 77; }; }
15166fi
15167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15168fi
15169rm -f conftest.val
15170else
15171 ac_cv_sizeof_int=0
15172fi
15173fi
15174{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15175echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15176cat >>confdefs.h <<_ACEOF
15177#define SIZEOF_INT $ac_cv_sizeof_int
15178_ACEOF
15179
15180
15181 { echo "$as_me:$LINENO: checking for short" >&5
15182echo $ECHO_N "checking for short... $ECHO_C" >&6; }
15183if test "${ac_cv_type_short+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15185else
15186 cat >conftest.$ac_ext <<_ACEOF
15187/* confdefs.h. */
15188_ACEOF
15189cat confdefs.h >>conftest.$ac_ext
15190cat >>conftest.$ac_ext <<_ACEOF
15191/* end confdefs.h. */
15192$ac_includes_default
15193typedef short ac__type_new_;
15194int
15195main ()
15196{
15197if ((ac__type_new_ *) 0)
15198 return 0;
15199if (sizeof (ac__type_new_))
15200 return 0;
15201 ;
15202 return 0;
15203}
15204_ACEOF
15205rm -f conftest.$ac_objext
15206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15207 (eval $ac_compile) 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; } &&
15220 { ac_try='test -s conftest.$ac_objext'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_cv_type_short=yes
15227else
15228 echo "$as_me: failed program was:" >&5
15229sed 's/^/| /' conftest.$ac_ext >&5
15230
15231 ac_cv_type_short=no
15232fi
15233
15234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15235fi
15236{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15237echo "${ECHO_T}$ac_cv_type_short" >&6; }
15238
15239{ echo "$as_me:$LINENO: checking size of short" >&5
15240echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
15241if test "${ac_cv_sizeof_short+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243else
15244 if test "$ac_cv_type_short" = yes; then
15245 # The cast to long int works around a bug in the HP C Compiler
15246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15248 # This bug is HP SR number 8606223364.
15249 if test "$cross_compiling" = yes; then
15250 # Depending upon the size, compute the lo and hi bounds.
15251cat >conftest.$ac_ext <<_ACEOF
15252/* confdefs.h. */
15253_ACEOF
15254cat confdefs.h >>conftest.$ac_ext
15255cat >>conftest.$ac_ext <<_ACEOF
15256/* end confdefs.h. */
15257$ac_includes_default
15258 typedef short ac__type_sizeof_;
15259int
15260main ()
15261{
15262static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15263test_array [0] = 0
15264
15265 ;
15266 return 0;
15267}
15268_ACEOF
15269rm -f conftest.$ac_objext
15270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15271 (eval $ac_compile) 2>conftest.er1
15272 ac_status=$?
15273 grep -v '^ *+' conftest.er1 >conftest.err
15274 rm -f conftest.er1
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; } &&
15284 { ac_try='test -s conftest.$ac_objext'
15285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15287 ac_status=$?
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; }; then
15290 ac_lo=0 ac_mid=0
15291 while :; do
15292 cat >conftest.$ac_ext <<_ACEOF
15293/* confdefs.h. */
15294_ACEOF
15295cat confdefs.h >>conftest.$ac_ext
15296cat >>conftest.$ac_ext <<_ACEOF
15297/* end confdefs.h. */
15298$ac_includes_default
15299 typedef short ac__type_sizeof_;
15300int
15301main ()
15302{
15303static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15304test_array [0] = 0
15305
15306 ;
15307 return 0;
15308}
15309_ACEOF
15310rm -f conftest.$ac_objext
15311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15312 (eval $ac_compile) 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try='test -s conftest.$ac_objext'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_hi=$ac_mid; break
15332else
15333 echo "$as_me: failed program was:" >&5
15334sed 's/^/| /' conftest.$ac_ext >&5
15335
15336 ac_lo=`expr $ac_mid + 1`
15337 if test $ac_lo -le $ac_mid; then
15338 ac_lo= ac_hi=
15339 break
15340 fi
15341 ac_mid=`expr 2 '*' $ac_mid + 1`
15342fi
15343
15344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15345 done
15346else
15347 echo "$as_me: failed program was:" >&5
15348sed 's/^/| /' conftest.$ac_ext >&5
15349
15350 cat >conftest.$ac_ext <<_ACEOF
15351/* confdefs.h. */
15352_ACEOF
15353cat confdefs.h >>conftest.$ac_ext
15354cat >>conftest.$ac_ext <<_ACEOF
15355/* end confdefs.h. */
15356$ac_includes_default
15357 typedef short ac__type_sizeof_;
15358int
15359main ()
15360{
15361static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15362test_array [0] = 0
15363
15364 ;
15365 return 0;
15366}
15367_ACEOF
15368rm -f conftest.$ac_objext
15369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15370 (eval $ac_compile) 2>conftest.er1
15371 ac_status=$?
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
15377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest.$ac_objext'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 ac_hi=-1 ac_mid=-1
15390 while :; do
15391 cat >conftest.$ac_ext <<_ACEOF
15392/* confdefs.h. */
15393_ACEOF
15394cat confdefs.h >>conftest.$ac_ext
15395cat >>conftest.$ac_ext <<_ACEOF
15396/* end confdefs.h. */
15397$ac_includes_default
15398 typedef short ac__type_sizeof_;
15399int
15400main ()
15401{
15402static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15403test_array [0] = 0
15404
15405 ;
15406 return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext
15410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>conftest.er1
15412 ac_status=$?
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest.$ac_objext'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 ac_lo=$ac_mid; break
15431else
15432 echo "$as_me: failed program was:" >&5
15433sed 's/^/| /' conftest.$ac_ext >&5
15434
15435 ac_hi=`expr '(' $ac_mid ')' - 1`
15436 if test $ac_mid -le $ac_hi; then
15437 ac_lo= ac_hi=
15438 break
15439 fi
15440 ac_mid=`expr 2 '*' $ac_mid`
15441fi
15442
15443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15444 done
15445else
15446 echo "$as_me: failed program was:" >&5
15447sed 's/^/| /' conftest.$ac_ext >&5
15448
15449 ac_lo= ac_hi=
15450fi
15451
15452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15453fi
15454
15455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15456# Binary search between lo and hi bounds.
15457while test "x$ac_lo" != "x$ac_hi"; do
15458 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15459 cat >conftest.$ac_ext <<_ACEOF
15460/* confdefs.h. */
15461_ACEOF
15462cat confdefs.h >>conftest.$ac_ext
15463cat >>conftest.$ac_ext <<_ACEOF
15464/* end confdefs.h. */
15465$ac_includes_default
15466 typedef short ac__type_sizeof_;
15467int
15468main ()
15469{
15470static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15471test_array [0] = 0
15472
15473 ;
15474 return 0;
15475}
15476_ACEOF
15477rm -f conftest.$ac_objext
15478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479 (eval $ac_compile) 2>conftest.er1
15480 ac_status=$?
15481 grep -v '^ *+' conftest.er1 >conftest.err
15482 rm -f conftest.er1
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } &&
15486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15498 ac_hi=$ac_mid
15499else
15500 echo "$as_me: failed program was:" >&5
15501sed 's/^/| /' conftest.$ac_ext >&5
15502
15503 ac_lo=`expr '(' $ac_mid ')' + 1`
15504fi
15505
15506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15507done
15508case $ac_lo in
15509?*) ac_cv_sizeof_short=$ac_lo;;
15510'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
15511See \`config.log' for more details." >&5
15512echo "$as_me: error: cannot compute sizeof (short)
15513See \`config.log' for more details." >&2;}
15514 { (exit 77); exit 77; }; } ;;
15515esac
15516else
15517 cat >conftest.$ac_ext <<_ACEOF
15518/* confdefs.h. */
15519_ACEOF
15520cat confdefs.h >>conftest.$ac_ext
15521cat >>conftest.$ac_ext <<_ACEOF
15522/* end confdefs.h. */
15523$ac_includes_default
15524 typedef short ac__type_sizeof_;
15525static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15526static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15527#include <stdio.h>
15528#include <stdlib.h>
15529int
15530main ()
15531{
15532
15533 FILE *f = fopen ("conftest.val", "w");
15534 if (! f)
15535 return 1;
15536 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15537 {
15538 long int i = longval ();
15539 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15540 return 1;
15541 fprintf (f, "%ld\n", i);
15542 }
15543 else
15544 {
15545 unsigned long int i = ulongval ();
15546 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15547 return 1;
15548 fprintf (f, "%lu\n", i);
15549 }
15550 return ferror (f) || fclose (f) != 0;
15551
15552 ;
15553 return 0;
15554}
15555_ACEOF
15556rm -f conftest$ac_exeext
15557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15558 (eval $ac_link) 2>&5
15559 ac_status=$?
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; }; then
15567 ac_cv_sizeof_short=`cat conftest.val`
15568else
15569 echo "$as_me: program exited with status $ac_status" >&5
15570echo "$as_me: failed program was:" >&5
15571sed 's/^/| /' conftest.$ac_ext >&5
15572
15573( exit $ac_status )
15574{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
15575See \`config.log' for more details." >&5
15576echo "$as_me: error: cannot compute sizeof (short)
15577See \`config.log' for more details." >&2;}
15578 { (exit 77); exit 77; }; }
15579fi
15580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15581fi
15582rm -f conftest.val
15583else
15584 ac_cv_sizeof_short=0
15585fi
15586fi
15587{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15588echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
15589cat >>confdefs.h <<_ACEOF
15590#define SIZEOF_SHORT $ac_cv_sizeof_short
15591_ACEOF
15592
15593
15594 { echo "$as_me:$LINENO: checking for char" >&5
15595echo $ECHO_N "checking for char... $ECHO_C" >&6; }
15596if test "${ac_cv_type_char+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15598else
15599 cat >conftest.$ac_ext <<_ACEOF
15600/* confdefs.h. */
15601_ACEOF
15602cat confdefs.h >>conftest.$ac_ext
15603cat >>conftest.$ac_ext <<_ACEOF
15604/* end confdefs.h. */
15605$ac_includes_default
15606typedef char ac__type_new_;
15607int
15608main ()
15609{
15610if ((ac__type_new_ *) 0)
15611 return 0;
15612if (sizeof (ac__type_new_))
15613 return 0;
15614 ;
15615 return 0;
15616}
15617_ACEOF
15618rm -f conftest.$ac_objext
15619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>conftest.er1
15621 ac_status=$?
15622 grep -v '^ *+' conftest.er1 >conftest.err
15623 rm -f conftest.er1
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } &&
15627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; } &&
15633 { ac_try='test -s conftest.$ac_objext'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15636 ac_status=$?
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15639 ac_cv_type_char=yes
15640else
15641 echo "$as_me: failed program was:" >&5
15642sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 ac_cv_type_char=no
15645fi
15646
15647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15648fi
15649{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15650echo "${ECHO_T}$ac_cv_type_char" >&6; }
15651
15652{ echo "$as_me:$LINENO: checking size of char" >&5
15653echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
15654if test "${ac_cv_sizeof_char+set}" = set; then
15655 echo $ECHO_N "(cached) $ECHO_C" >&6
15656else
15657 if test "$ac_cv_type_char" = yes; then
15658 # The cast to long int works around a bug in the HP C Compiler
15659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15661 # This bug is HP SR number 8606223364.
15662 if test "$cross_compiling" = yes; then
15663 # Depending upon the size, compute the lo and hi bounds.
15664cat >conftest.$ac_ext <<_ACEOF
15665/* confdefs.h. */
15666_ACEOF
15667cat confdefs.h >>conftest.$ac_ext
15668cat >>conftest.$ac_ext <<_ACEOF
15669/* end confdefs.h. */
15670$ac_includes_default
15671 typedef char ac__type_sizeof_;
15672int
15673main ()
15674{
15675static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15676test_array [0] = 0
15677
15678 ;
15679 return 0;
15680}
15681_ACEOF
15682rm -f conftest.$ac_objext
15683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15684 (eval $ac_compile) 2>conftest.er1
15685 ac_status=$?
15686 grep -v '^ *+' conftest.er1 >conftest.err
15687 rm -f conftest.er1
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } &&
15691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; } &&
15697 { ac_try='test -s conftest.$ac_objext'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703 ac_lo=0 ac_mid=0
15704 while :; do
15705 cat >conftest.$ac_ext <<_ACEOF
15706/* confdefs.h. */
15707_ACEOF
15708cat confdefs.h >>conftest.$ac_ext
15709cat >>conftest.$ac_ext <<_ACEOF
15710/* end confdefs.h. */
15711$ac_includes_default
15712 typedef char ac__type_sizeof_;
15713int
15714main ()
15715{
15716static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15717test_array [0] = 0
15718
15719 ;
15720 return 0;
15721}
15722_ACEOF
15723rm -f conftest.$ac_objext
15724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725 (eval $ac_compile) 2>conftest.er1
15726 ac_status=$?
15727 grep -v '^ *+' conftest.er1 >conftest.err
15728 rm -f conftest.er1
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest.$ac_objext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_hi=$ac_mid; break
15745else
15746 echo "$as_me: failed program was:" >&5
15747sed 's/^/| /' conftest.$ac_ext >&5
15748
15749 ac_lo=`expr $ac_mid + 1`
15750 if test $ac_lo -le $ac_mid; then
15751 ac_lo= ac_hi=
15752 break
15753 fi
15754 ac_mid=`expr 2 '*' $ac_mid + 1`
15755fi
15756
15757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15758 done
15759else
15760 echo "$as_me: failed program was:" >&5
15761sed 's/^/| /' conftest.$ac_ext >&5
15762
15763 cat >conftest.$ac_ext <<_ACEOF
15764/* confdefs.h. */
15765_ACEOF
15766cat confdefs.h >>conftest.$ac_ext
15767cat >>conftest.$ac_ext <<_ACEOF
15768/* end confdefs.h. */
15769$ac_includes_default
15770 typedef char ac__type_sizeof_;
15771int
15772main ()
15773{
15774static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15775test_array [0] = 0
15776
15777 ;
15778 return 0;
15779}
15780_ACEOF
15781rm -f conftest.$ac_objext
15782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15783 (eval $ac_compile) 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; } &&
15796 { ac_try='test -s conftest.$ac_objext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_hi=-1 ac_mid=-1
15803 while :; do
15804 cat >conftest.$ac_ext <<_ACEOF
15805/* confdefs.h. */
15806_ACEOF
15807cat confdefs.h >>conftest.$ac_ext
15808cat >>conftest.$ac_ext <<_ACEOF
15809/* end confdefs.h. */
15810$ac_includes_default
15811 typedef char ac__type_sizeof_;
15812int
15813main ()
15814{
15815static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15816test_array [0] = 0
15817
15818 ;
15819 return 0;
15820}
15821_ACEOF
15822rm -f conftest.$ac_objext
15823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15824 (eval $ac_compile) 2>conftest.er1
15825 ac_status=$?
15826 grep -v '^ *+' conftest.er1 >conftest.err
15827 rm -f conftest.er1
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest.$ac_objext'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 ac_lo=$ac_mid; break
15844else
15845 echo "$as_me: failed program was:" >&5
15846sed 's/^/| /' conftest.$ac_ext >&5
15847
15848 ac_hi=`expr '(' $ac_mid ')' - 1`
15849 if test $ac_mid -le $ac_hi; then
15850 ac_lo= ac_hi=
15851 break
15852 fi
15853 ac_mid=`expr 2 '*' $ac_mid`
15854fi
15855
15856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15857 done
15858else
15859 echo "$as_me: failed program was:" >&5
15860sed 's/^/| /' conftest.$ac_ext >&5
15861
15862 ac_lo= ac_hi=
15863fi
15864
15865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15866fi
15867
15868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15869# Binary search between lo and hi bounds.
15870while test "x$ac_lo" != "x$ac_hi"; do
15871 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15872 cat >conftest.$ac_ext <<_ACEOF
15873/* confdefs.h. */
15874_ACEOF
15875cat confdefs.h >>conftest.$ac_ext
15876cat >>conftest.$ac_ext <<_ACEOF
15877/* end confdefs.h. */
15878$ac_includes_default
15879 typedef char ac__type_sizeof_;
15880int
15881main ()
15882{
15883static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15884test_array [0] = 0
15885
15886 ;
15887 return 0;
15888}
15889_ACEOF
15890rm -f conftest.$ac_objext
15891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15892 (eval $ac_compile) 2>conftest.er1
15893 ac_status=$?
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; } &&
15905 { ac_try='test -s conftest.$ac_objext'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; }; then
15911 ac_hi=$ac_mid
15912else
15913 echo "$as_me: failed program was:" >&5
15914sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 ac_lo=`expr '(' $ac_mid ')' + 1`
15917fi
15918
15919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15920done
15921case $ac_lo in
15922?*) ac_cv_sizeof_char=$ac_lo;;
15923'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
15924See \`config.log' for more details." >&5
15925echo "$as_me: error: cannot compute sizeof (char)
15926See \`config.log' for more details." >&2;}
15927 { (exit 77); exit 77; }; } ;;
15928esac
15929else
15930 cat >conftest.$ac_ext <<_ACEOF
15931/* confdefs.h. */
15932_ACEOF
15933cat confdefs.h >>conftest.$ac_ext
15934cat >>conftest.$ac_ext <<_ACEOF
15935/* end confdefs.h. */
15936$ac_includes_default
15937 typedef char ac__type_sizeof_;
15938static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15939static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15940#include <stdio.h>
15941#include <stdlib.h>
15942int
15943main ()
15944{
15945
15946 FILE *f = fopen ("conftest.val", "w");
15947 if (! f)
15948 return 1;
15949 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15950 {
15951 long int i = longval ();
15952 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15953 return 1;
15954 fprintf (f, "%ld\n", i);
15955 }
15956 else
15957 {
15958 unsigned long int i = ulongval ();
15959 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15960 return 1;
15961 fprintf (f, "%lu\n", i);
15962 }
15963 return ferror (f) || fclose (f) != 0;
15964
15965 ;
15966 return 0;
15967}
15968_ACEOF
15969rm -f conftest$ac_exeext
15970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15971 (eval $ac_link) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15977 ac_status=$?
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 ac_cv_sizeof_char=`cat conftest.val`
15981else
15982 echo "$as_me: program exited with status $ac_status" >&5
15983echo "$as_me: failed program was:" >&5
15984sed 's/^/| /' conftest.$ac_ext >&5
15985
15986( exit $ac_status )
15987{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
15988See \`config.log' for more details." >&5
15989echo "$as_me: error: cannot compute sizeof (char)
15990See \`config.log' for more details." >&2;}
15991 { (exit 77); exit 77; }; }
15992fi
15993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15994fi
15995rm -f conftest.val
15996else
15997 ac_cv_sizeof_char=0
15998fi
15999fi
16000{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16001echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
16002cat >>confdefs.h <<_ACEOF
16003#define SIZEOF_CHAR $ac_cv_sizeof_char
16004_ACEOF
16005
16006
16007
16008 { echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16009echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6; }
16010 case "$ac_cv_sizeof_char" in
16011 1) acx_cv_type_int8_t=char ;;
16012 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16013echo "$as_me: error: no 8-bit type" >&2;}
16014 { (exit please report a bug); exit please report a bug; }; }
16015 esac
16016 { echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16017echo "${ECHO_T}$acx_cv_type_int8_t" >&6; }
16018
16019 { echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16020echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6; }
16021 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16022 2:*) acx_cv_type_int16_t=int ;;
16023 *:2) acx_cv_type_int16_t=short ;;
16024 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16025echo "$as_me: error: no 16-bit type" >&2;}
16026 { (exit please report a bug); exit please report a bug; }; }
16027 esac
16028 { echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16029echo "${ECHO_T}$acx_cv_type_int16_t" >&6; }
16030
16031 { echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16032echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6; }
16033 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16034 4:*) acx_cv_type_int32_t=int ;;
16035 *:4) acx_cv_type_int32_t=long ;;
16036 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16037echo "$as_me: error: no 32-bit type" >&2;}
16038 { (exit please report a bug); exit please report a bug; }; }
16039 esac
16040 { echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16041echo "${ECHO_T}$acx_cv_type_int32_t" >&6; }
16042fi
16043
16044# These tests are here to make the output prettier
16045
16046if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16047 case "$ac_cv_sizeof_long" in
16048 8) acx_cv_type_int64_t=long ;;
16049 esac
16050 { echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16051echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6; }
16052 { echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16053echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16054fi
16055
16056# Now we can use the above types
16057
16058if test "$ac_cv_type_uintptr_t" != yes; then
16059 { echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16060echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6; }
16061 case $ac_cv_sizeof_void_p in
16062 2) acx_cv_type_intptr_t=int16_t ;;
16063 4) acx_cv_type_intptr_t=int32_t ;;
16064 8) acx_cv_type_intptr_t=int64_t ;;
16065 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16066echo "$as_me: error: no equivalent for intptr_t" >&2;}
16067 { (exit please report a bug); exit please report a bug; }; }
16068 esac
16069 { echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16070echo "${ECHO_T}$acx_cv_type_intptr_t" >&6; }
16071fi
16072
16073# ----------------- done all checks, emit header -------------
16074ac_config_commands="$ac_config_commands gdb_stdint.h"
16075
16076
16077
16078
16079# ------------------------- #
16080# Checks for declarations. #
16081# ------------------------- #
16082
16083{ echo "$as_me:$LINENO: checking whether free is declared" >&5
16084echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
16085if test "${ac_cv_have_decl_free+set}" = set; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16087else
16088 cat >conftest.$ac_ext <<_ACEOF
16089/* confdefs.h. */
16090_ACEOF
16091cat confdefs.h >>conftest.$ac_ext
16092cat >>conftest.$ac_ext <<_ACEOF
16093/* end confdefs.h. */
16094$ac_includes_default
16095int
16096main ()
16097{
16098#ifndef free
16099 char *p = (char *) free;
16100 return !p;
16101#endif
16102
16103 ;
16104 return 0;
16105}
16106_ACEOF
16107rm -f conftest.$ac_objext
16108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>conftest.er1
16110 ac_status=$?
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest.$ac_objext'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_cv_have_decl_free=yes
16129else
16130 echo "$as_me: failed program was:" >&5
16131sed 's/^/| /' conftest.$ac_ext >&5
16132
16133 ac_cv_have_decl_free=no
16134fi
16135
16136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16137fi
16138{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16139echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
16140if test $ac_cv_have_decl_free = yes; then
16141
16142cat >>confdefs.h <<_ACEOF
16143#define HAVE_DECL_FREE 1
16144_ACEOF
16145
16146
16147else
16148 cat >>confdefs.h <<_ACEOF
16149#define HAVE_DECL_FREE 0
16150_ACEOF
16151
16152
16153fi
16154{ echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16155echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; }
16156if test "${ac_cv_have_decl_malloc+set}" = set; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16158else
16159 cat >conftest.$ac_ext <<_ACEOF
16160/* confdefs.h. */
16161_ACEOF
16162cat confdefs.h >>conftest.$ac_ext
16163cat >>conftest.$ac_ext <<_ACEOF
16164/* end confdefs.h. */
16165$ac_includes_default
16166int
16167main ()
16168{
16169#ifndef malloc
16170 char *p = (char *) malloc;
16171 return !p;
16172#endif
16173
16174 ;
16175 return 0;
16176}
16177_ACEOF
16178rm -f conftest.$ac_objext
16179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16180 (eval $ac_compile) 2>conftest.er1
16181 ac_status=$?
16182 grep -v '^ *+' conftest.er1 >conftest.err
16183 rm -f conftest.er1
16184 cat conftest.err >&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest.$ac_objext'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 ac_cv_have_decl_malloc=yes
16200else
16201 echo "$as_me: failed program was:" >&5
16202sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 ac_cv_have_decl_malloc=no
16205fi
16206
16207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16208fi
16209{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16210echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; }
16211if test $ac_cv_have_decl_malloc = yes; then
16212
16213cat >>confdefs.h <<_ACEOF
16214#define HAVE_DECL_MALLOC 1
16215_ACEOF
16216
16217
16218else
16219 cat >>confdefs.h <<_ACEOF
16220#define HAVE_DECL_MALLOC 0
16221_ACEOF
16222
16223
16224fi
16225{ echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16226echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; }
16227if test "${ac_cv_have_decl_realloc+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16229else
16230 cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236$ac_includes_default
16237int
16238main ()
16239{
16240#ifndef realloc
16241 char *p = (char *) realloc;
16242 return !p;
16243#endif
16244
16245 ;
16246 return 0;
16247}
16248_ACEOF
16249rm -f conftest.$ac_objext
16250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16251 (eval $ac_compile) 2>conftest.er1
16252 ac_status=$?
16253 grep -v '^ *+' conftest.er1 >conftest.err
16254 rm -f conftest.er1
16255 cat conftest.err >&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } &&
16258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; } &&
16264 { ac_try='test -s conftest.$ac_objext'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_cv_have_decl_realloc=yes
16271else
16272 echo "$as_me: failed program was:" >&5
16273sed 's/^/| /' conftest.$ac_ext >&5
16274
16275 ac_cv_have_decl_realloc=no
16276fi
16277
16278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16279fi
16280{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16281echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; }
16282if test $ac_cv_have_decl_realloc = yes; then
16283
16284cat >>confdefs.h <<_ACEOF
16285#define HAVE_DECL_REALLOC 1
16286_ACEOF
16287
16288
16289else
16290 cat >>confdefs.h <<_ACEOF
16291#define HAVE_DECL_REALLOC 0
16292_ACEOF
16293
16294
16295fi
16296
16297
16298{ echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16299echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6; }
16300if test "${ac_cv_have_decl_strerror+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302else
16303 cat >conftest.$ac_ext <<_ACEOF
16304/* confdefs.h. */
16305_ACEOF
16306cat confdefs.h >>conftest.$ac_ext
16307cat >>conftest.$ac_ext <<_ACEOF
16308/* end confdefs.h. */
16309$ac_includes_default
16310int
16311main ()
16312{
16313#ifndef strerror
16314 char *p = (char *) strerror;
16315 return !p;
16316#endif
16317
16318 ;
16319 return 0;
16320}
16321_ACEOF
16322rm -f conftest.$ac_objext
16323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16324 (eval $ac_compile) 2>conftest.er1
16325 ac_status=$?
16326 grep -v '^ *+' conftest.er1 >conftest.err
16327 rm -f conftest.er1
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } &&
16331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try='test -s conftest.$ac_objext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 ac_cv_have_decl_strerror=yes
16344else
16345 echo "$as_me: failed program was:" >&5
16346sed 's/^/| /' conftest.$ac_ext >&5
16347
16348 ac_cv_have_decl_strerror=no
16349fi
16350
16351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16352fi
16353{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16354echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6; }
16355if test $ac_cv_have_decl_strerror = yes; then
16356
16357cat >>confdefs.h <<_ACEOF
16358#define HAVE_DECL_STRERROR 1
16359_ACEOF
16360
16361
16362else
16363 cat >>confdefs.h <<_ACEOF
16364#define HAVE_DECL_STRERROR 0
16365_ACEOF
16366
16367
16368fi
16369{ echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16370echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
16371if test "${ac_cv_have_decl_strstr+set}" = set; then
16372 echo $ECHO_N "(cached) $ECHO_C" >&6
16373else
16374 cat >conftest.$ac_ext <<_ACEOF
16375/* confdefs.h. */
16376_ACEOF
16377cat confdefs.h >>conftest.$ac_ext
16378cat >>conftest.$ac_ext <<_ACEOF
16379/* end confdefs.h. */
16380$ac_includes_default
16381int
16382main ()
16383{
16384#ifndef strstr
16385 char *p = (char *) strstr;
16386 return !p;
16387#endif
16388
16389 ;
16390 return 0;
16391}
16392_ACEOF
16393rm -f conftest.$ac_objext
16394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16395 (eval $ac_compile) 2>conftest.er1
16396 ac_status=$?
16397 grep -v '^ *+' conftest.er1 >conftest.err
16398 rm -f conftest.er1
16399 cat conftest.err >&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
16402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; } &&
16408 { ac_try='test -s conftest.$ac_objext'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; }; then
16414 ac_cv_have_decl_strstr=yes
16415else
16416 echo "$as_me: failed program was:" >&5
16417sed 's/^/| /' conftest.$ac_ext >&5
16418
16419 ac_cv_have_decl_strstr=no
16420fi
16421
16422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16423fi
16424{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16425echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
16426if test $ac_cv_have_decl_strstr = yes; then
16427
16428cat >>confdefs.h <<_ACEOF
16429#define HAVE_DECL_STRSTR 1
16430_ACEOF
16431
16432
16433else
16434 cat >>confdefs.h <<_ACEOF
16435#define HAVE_DECL_STRSTR 0
16436_ACEOF
16437
16438
16439fi
16440
16441
16442{ echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16443echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6; }
16444if test "${ac_cv_have_decl_getopt+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446else
16447 cat >conftest.$ac_ext <<_ACEOF
16448/* confdefs.h. */
16449_ACEOF
16450cat confdefs.h >>conftest.$ac_ext
16451cat >>conftest.$ac_ext <<_ACEOF
16452/* end confdefs.h. */
16453$ac_includes_default
16454int
16455main ()
16456{
16457#ifndef getopt
16458 char *p = (char *) getopt;
16459 return !p;
16460#endif
16461
16462 ;
16463 return 0;
16464}
16465_ACEOF
16466rm -f conftest.$ac_objext
16467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16468 (eval $ac_compile) 2>conftest.er1
16469 ac_status=$?
16470 grep -v '^ *+' conftest.er1 >conftest.err
16471 rm -f conftest.er1
16472 cat conftest.err >&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
16475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; } &&
16481 { ac_try='test -s conftest.$ac_objext'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_have_decl_getopt=yes
16488else
16489 echo "$as_me: failed program was:" >&5
16490sed 's/^/| /' conftest.$ac_ext >&5
16491
16492 ac_cv_have_decl_getopt=no
16493fi
16494
16495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16496fi
16497{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16498echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6; }
16499if test $ac_cv_have_decl_getopt = yes; then
16500
16501cat >>confdefs.h <<_ACEOF
16502#define HAVE_DECL_GETOPT 1
16503_ACEOF
16504
16505
16506else
16507 cat >>confdefs.h <<_ACEOF
16508#define HAVE_DECL_GETOPT 0
16509_ACEOF
16510
16511
16512fi
16513{ echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16514echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16515if test "${ac_cv_have_decl_snprintf+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16517else
16518 cat >conftest.$ac_ext <<_ACEOF
16519/* confdefs.h. */
16520_ACEOF
16521cat confdefs.h >>conftest.$ac_ext
16522cat >>conftest.$ac_ext <<_ACEOF
16523/* end confdefs.h. */
16524$ac_includes_default
16525int
16526main ()
16527{
16528#ifndef snprintf
16529 char *p = (char *) snprintf;
16530 return !p;
16531#endif
16532
16533 ;
16534 return 0;
16535}
16536_ACEOF
16537rm -f conftest.$ac_objext
16538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16539 (eval $ac_compile) 2>conftest.er1
16540 ac_status=$?
16541 grep -v '^ *+' conftest.er1 >conftest.err
16542 rm -f conftest.er1
16543 cat conftest.err >&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } &&
16546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548 (eval $ac_try) 2>&5
16549 ac_status=$?
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; } &&
16552 { ac_try='test -s conftest.$ac_objext'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558 ac_cv_have_decl_snprintf=yes
16559else
16560 echo "$as_me: failed program was:" >&5
16561sed 's/^/| /' conftest.$ac_ext >&5
16562
16563 ac_cv_have_decl_snprintf=no
16564fi
16565
16566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16567fi
16568{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16569echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16570if test $ac_cv_have_decl_snprintf = yes; then
16571
16572cat >>confdefs.h <<_ACEOF
16573#define HAVE_DECL_SNPRINTF 1
16574_ACEOF
16575
16576
16577else
16578 cat >>confdefs.h <<_ACEOF
16579#define HAVE_DECL_SNPRINTF 0
16580_ACEOF
16581
16582
16583fi
16584{ echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16585echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16586if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16588else
16589 cat >conftest.$ac_ext <<_ACEOF
16590/* confdefs.h. */
16591_ACEOF
16592cat confdefs.h >>conftest.$ac_ext
16593cat >>conftest.$ac_ext <<_ACEOF
16594/* end confdefs.h. */
16595$ac_includes_default
16596int
16597main ()
16598{
16599#ifndef vsnprintf
16600 char *p = (char *) vsnprintf;
16601 return !p;
16602#endif
16603
16604 ;
16605 return 0;
16606}
16607_ACEOF
16608rm -f conftest.$ac_objext
16609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16610 (eval $ac_compile) 2>conftest.er1
16611 ac_status=$?
16612 grep -v '^ *+' conftest.er1 >conftest.err
16613 rm -f conftest.er1
16614 cat conftest.err >&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } &&
16617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16620 ac_status=$?
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; } &&
16623 { ac_try='test -s conftest.$ac_objext'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16626 ac_status=$?
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; }; then
16629 ac_cv_have_decl_vsnprintf=yes
16630else
16631 echo "$as_me: failed program was:" >&5
16632sed 's/^/| /' conftest.$ac_ext >&5
16633
16634 ac_cv_have_decl_vsnprintf=no
16635fi
16636
16637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16638fi
16639{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16640echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16641if test $ac_cv_have_decl_vsnprintf = yes; then
16642
16643cat >>confdefs.h <<_ACEOF
16644#define HAVE_DECL_VSNPRINTF 1
16645_ACEOF
16646
16647
16648else
16649 cat >>confdefs.h <<_ACEOF
16650#define HAVE_DECL_VSNPRINTF 0
16651_ACEOF
16652
16653
16654fi
16655
16656
16657
16658# ----------------------- #
16659# Checks for structures. #
16660# ----------------------- #
16661
16662{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16663echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
16664if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16666else
16667 cat >conftest.$ac_ext <<_ACEOF
16668/* confdefs.h. */
16669_ACEOF
16670cat confdefs.h >>conftest.$ac_ext
16671cat >>conftest.$ac_ext <<_ACEOF
16672/* end confdefs.h. */
16673$ac_includes_default
16674int
16675main ()
16676{
16677static struct stat ac_aggr;
16678if (ac_aggr.st_blocks)
16679return 0;
16680 ;
16681 return 0;
16682}
16683_ACEOF
16684rm -f conftest.$ac_objext
16685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16686 (eval $ac_compile) 2>conftest.er1
16687 ac_status=$?
16688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
16693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; } &&
16699 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16705 ac_cv_member_struct_stat_st_blocks=yes
16706else
16707 echo "$as_me: failed program was:" >&5
16708sed 's/^/| /' conftest.$ac_ext >&5
16709
16710 cat >conftest.$ac_ext <<_ACEOF
16711/* confdefs.h. */
16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
16715/* end confdefs.h. */
16716$ac_includes_default
16717int
16718main ()
16719{
16720static struct stat ac_aggr;
16721if (sizeof ac_aggr.st_blocks)
16722return 0;
16723 ;
16724 return 0;
16725}
16726_ACEOF
16727rm -f conftest.$ac_objext
16728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16729 (eval $ac_compile) 2>conftest.er1
16730 ac_status=$?
16731 grep -v '^ *+' conftest.er1 >conftest.err
16732 rm -f conftest.er1
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest.$ac_objext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_cv_member_struct_stat_st_blocks=yes
16749else
16750 echo "$as_me: failed program was:" >&5
16751sed 's/^/| /' conftest.$ac_ext >&5
16752
16753 ac_cv_member_struct_stat_st_blocks=no
16754fi
16755
16756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16757fi
16758
16759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16760fi
16761{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16762echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
16763if test $ac_cv_member_struct_stat_st_blocks = yes; then
16764
16765cat >>confdefs.h <<_ACEOF
16766#define HAVE_STRUCT_STAT_ST_BLOCKS 1
16767_ACEOF
16768
16769
16770fi
16771
16772{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16773echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
16774if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16776else
16777 cat >conftest.$ac_ext <<_ACEOF
16778/* confdefs.h. */
16779_ACEOF
16780cat confdefs.h >>conftest.$ac_ext
16781cat >>conftest.$ac_ext <<_ACEOF
16782/* end confdefs.h. */
16783$ac_includes_default
16784int
16785main ()
16786{
16787static struct stat ac_aggr;
16788if (ac_aggr.st_blksize)
16789return 0;
16790 ;
16791 return 0;
16792}
16793_ACEOF
16794rm -f conftest.$ac_objext
16795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16796 (eval $ac_compile) 2>conftest.er1
16797 ac_status=$?
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
16803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest.$ac_objext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 ac_cv_member_struct_stat_st_blksize=yes
16816else
16817 echo "$as_me: failed program was:" >&5
16818sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 cat >conftest.$ac_ext <<_ACEOF
16821/* confdefs.h. */
16822_ACEOF
16823cat confdefs.h >>conftest.$ac_ext
16824cat >>conftest.$ac_ext <<_ACEOF
16825/* end confdefs.h. */
16826$ac_includes_default
16827int
16828main ()
16829{
16830static struct stat ac_aggr;
16831if (sizeof ac_aggr.st_blksize)
16832return 0;
16833 ;
16834 return 0;
16835}
16836_ACEOF
16837rm -f conftest.$ac_objext
16838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>conftest.er1
16840 ac_status=$?
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
16846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_cv_member_struct_stat_st_blksize=yes
16859else
16860 echo "$as_me: failed program was:" >&5
16861sed 's/^/| /' conftest.$ac_ext >&5
16862
16863 ac_cv_member_struct_stat_st_blksize=no
16864fi
16865
16866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16867fi
16868
16869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16870fi
16871{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16872echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
16873if test $ac_cv_member_struct_stat_st_blksize = yes; then
16874
16875cat >>confdefs.h <<_ACEOF
16876#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16877_ACEOF
16878
16879
16880fi
16881
16882
16883# ------------------ #
16884# Checks for types. #
16885# ------------------ #
16886
16887{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16888echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
16889if test "${ac_cv_type_signal+set}" = set; then
16890 echo $ECHO_N "(cached) $ECHO_C" >&6
16891else
16892 cat >conftest.$ac_ext <<_ACEOF
16893/* confdefs.h. */
16894_ACEOF
16895cat confdefs.h >>conftest.$ac_ext
16896cat >>conftest.$ac_ext <<_ACEOF
16897/* end confdefs.h. */
16898#include <sys/types.h>
16899#include <signal.h>
16900
16901int
16902main ()
16903{
16904return *(signal (0, 0)) (0) == 1;
16905 ;
16906 return 0;
16907}
16908_ACEOF
16909rm -f conftest.$ac_objext
16910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911 (eval $ac_compile) 2>conftest.er1
16912 ac_status=$?
16913 grep -v '^ *+' conftest.er1 >conftest.err
16914 rm -f conftest.er1
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; } &&
16924 { ac_try='test -s conftest.$ac_objext'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_type_signal=int
16931else
16932 echo "$as_me: failed program was:" >&5
16933sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 ac_cv_type_signal=void
16936fi
16937
16938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16939fi
16940{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16941echo "${ECHO_T}$ac_cv_type_signal" >&6; }
16942
16943cat >>confdefs.h <<_ACEOF
16944#define RETSIGTYPE $ac_cv_type_signal
16945_ACEOF
16946
16947
16948{ echo "$as_me:$LINENO: checking for socklen_t" >&5
16949echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
16950if test "${ac_cv_type_socklen_t+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16952else
16953 cat >conftest.$ac_ext <<_ACEOF
16954/* confdefs.h. */
16955_ACEOF
16956cat confdefs.h >>conftest.$ac_ext
16957cat >>conftest.$ac_ext <<_ACEOF
16958/* end confdefs.h. */
16959#include <sys/types.h>
16960#include <sys/socket.h>
16961
16962
16963typedef socklen_t ac__type_new_;
16964int
16965main ()
16966{
16967if ((ac__type_new_ *) 0)
16968 return 0;
16969if (sizeof (ac__type_new_))
16970 return 0;
16971 ;
16972 return 0;
16973}
16974_ACEOF
16975rm -f conftest.$ac_objext
16976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16977 (eval $ac_compile) 2>conftest.er1
16978 ac_status=$?
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; } &&
16990 { ac_try='test -s conftest.$ac_objext'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16993 ac_status=$?
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_type_socklen_t=yes
16997else
16998 echo "$as_me: failed program was:" >&5
16999sed 's/^/| /' conftest.$ac_ext >&5
17000
17001 ac_cv_type_socklen_t=no
17002fi
17003
17004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17005fi
17006{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17007echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
17008if test $ac_cv_type_socklen_t = yes; then
17009
17010cat >>confdefs.h <<_ACEOF
17011#define HAVE_SOCKLEN_T 1
17012_ACEOF
17013
17014
17015fi
17016
17017{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
17018echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
17019if test "${ac_cv_type_uintptr_t+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021else
17022 cat >conftest.$ac_ext <<_ACEOF
17023/* confdefs.h. */
17024_ACEOF
17025cat confdefs.h >>conftest.$ac_ext
17026cat >>conftest.$ac_ext <<_ACEOF
17027/* end confdefs.h. */
17028#include <stdint.h>
17029
17030typedef uintptr_t ac__type_new_;
17031int
17032main ()
17033{
17034if ((ac__type_new_ *) 0)
17035 return 0;
17036if (sizeof (ac__type_new_))
17037 return 0;
17038 ;
17039 return 0;
17040}
17041_ACEOF
17042rm -f conftest.$ac_objext
17043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17044 (eval $ac_compile) 2>conftest.er1
17045 ac_status=$?
17046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -f conftest.er1
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
17051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest.$ac_objext'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 ac_cv_type_uintptr_t=yes
17064else
17065 echo "$as_me: failed program was:" >&5
17066sed 's/^/| /' conftest.$ac_ext >&5
17067
17068 ac_cv_type_uintptr_t=no
17069fi
17070
17071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17072fi
17073{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17074echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
17075if test $ac_cv_type_uintptr_t = yes; then
17076
17077cat >>confdefs.h <<_ACEOF
17078#define HAVE_UINTPTR_T 1
17079_ACEOF
17080
17081
17082fi
17083
17084
17085# ------------------------------------- #
17086# Checks for compiler characteristics. #
17087# ------------------------------------- #
17088
17089{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17090echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
17091if test "${ac_cv_c_const+set}" = set; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17093else
17094 cat >conftest.$ac_ext <<_ACEOF
17095/* confdefs.h. */
17096_ACEOF
17097cat confdefs.h >>conftest.$ac_ext
17098cat >>conftest.$ac_ext <<_ACEOF
17099/* end confdefs.h. */
17100
17101int
17102main ()
17103{
17104/* FIXME: Include the comments suggested by Paul. */
17105#ifndef __cplusplus
17106 /* Ultrix mips cc rejects this. */
17107 typedef int charset[2];
17108 const charset x;
17109 /* SunOS 4.1.1 cc rejects this. */
17110 char const *const *ccp;
17111 char **p;
17112 /* NEC SVR4.0.2 mips cc rejects this. */
17113 struct point {int x, y;};
17114 static struct point const zero = {0,0};
17115 /* AIX XL C 1.02.0.0 rejects this.
17116 It does not let you subtract one const X* pointer from another in
17117 an arm of an if-expression whose if-part is not a constant
17118 expression */
17119 const char *g = "string";
17120 ccp = &g + (g ? g-g : 0);
17121 /* HPUX 7.0 cc rejects these. */
17122 ++ccp;
17123 p = (char**) ccp;
17124 ccp = (char const *const *) p;
17125 { /* SCO 3.2v4 cc rejects this. */
17126 char *t;
17127 char const *s = 0 ? (char *) 0 : (char const *) 0;
17128
17129 *t++ = 0;
17130 if (s) return 0;
17131 }
17132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17133 int x[] = {25, 17};
17134 const int *foo = &x[0];
17135 ++foo;
17136 }
17137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17138 typedef const int *iptr;
17139 iptr p = 0;
17140 ++p;
17141 }
17142 { /* AIX XL C 1.02.0.0 rejects this saying
17143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17144 struct s { int j; const int *ap[3]; };
17145 struct s *b; b->j = 5;
17146 }
17147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17148 const int foo = 10;
17149 if (!foo) return 0;
17150 }
17151 return !x[0] && !zero.x;
17152#endif
17153
17154 ;
17155 return 0;
17156}
17157_ACEOF
17158rm -f conftest.$ac_objext
17159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17160 (eval $ac_compile) 2>conftest.er1
17161 ac_status=$?
17162 grep -v '^ *+' conftest.er1 >conftest.err
17163 rm -f conftest.er1
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
17167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; } &&
17173 { ac_try='test -s conftest.$ac_objext'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 ac_cv_c_const=yes
17180else
17181 echo "$as_me: failed program was:" >&5
17182sed 's/^/| /' conftest.$ac_ext >&5
17183
17184 ac_cv_c_const=no
17185fi
17186
17187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17188fi
17189{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17190echo "${ECHO_T}$ac_cv_c_const" >&6; }
17191if test $ac_cv_c_const = no; then
17192
17193cat >>confdefs.h <<\_ACEOF
17194#define const
17195_ACEOF
17196
17197fi
17198
17199{ echo "$as_me:$LINENO: checking for inline" >&5
17200echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
17201if test "${ac_cv_c_inline+set}" = set; then
17202 echo $ECHO_N "(cached) $ECHO_C" >&6
17203else
17204 ac_cv_c_inline=no
17205for ac_kw in inline __inline__ __inline; do
17206 cat >conftest.$ac_ext <<_ACEOF
17207/* confdefs.h. */
17208_ACEOF
17209cat confdefs.h >>conftest.$ac_ext
17210cat >>conftest.$ac_ext <<_ACEOF
17211/* end confdefs.h. */
17212#ifndef __cplusplus
17213typedef int foo_t;
17214static $ac_kw foo_t static_foo () {return 0; }
17215$ac_kw foo_t foo () {return 0; }
17216#endif
17217
17218_ACEOF
17219rm -f conftest.$ac_objext
17220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17221 (eval $ac_compile) 2>conftest.er1
17222 ac_status=$?
17223 grep -v '^ *+' conftest.er1 >conftest.err
17224 rm -f conftest.er1
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
17228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17231 ac_status=$?
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; } &&
17234 { ac_try='test -s conftest.$ac_objext'
17235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17237 ac_status=$?
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17240 ac_cv_c_inline=$ac_kw
17241else
17242 echo "$as_me: failed program was:" >&5
17243sed 's/^/| /' conftest.$ac_ext >&5
17244
17245
17246fi
17247
17248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17249 test "$ac_cv_c_inline" != no && break
17250done
17251
17252fi
17253{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17254echo "${ECHO_T}$ac_cv_c_inline" >&6; }
bec39cab 17255
bec39cab 17256
a3828db0
MK
17257case $ac_cv_c_inline in
17258 inline | yes) ;;
17259 *)
17260 case $ac_cv_c_inline in
17261 no) ac_val=;;
17262 *) ac_val=$ac_cv_c_inline;;
17263 esac
17264 cat >>confdefs.h <<_ACEOF
17265#ifndef __cplusplus
17266#define inline $ac_val
17267#endif
17268_ACEOF
bec39cab
AC
17269 ;;
17270esac
bec39cab 17271
74c1b268 17272
a3828db0
MK
17273# ------------------------------ #
17274# Checks for library functions. #
17275# ------------------------------ #
bec39cab 17276
a3828db0
MK
17277# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17278# for constant arguments. Useless!
4e8d927d
DJ
17279{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
17280echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
a3828db0 17281if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17283else
17284 cat >conftest.$ac_ext <<_ACEOF
17285/* confdefs.h. */
17286_ACEOF
17287cat confdefs.h >>conftest.$ac_ext
17288cat >>conftest.$ac_ext <<_ACEOF
17289/* end confdefs.h. */
a3828db0 17290#include <alloca.h>
bec39cab
AC
17291int
17292main ()
17293{
a3828db0 17294char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
17295 ;
17296 return 0;
17297}
17298_ACEOF
17299rm -f conftest.$ac_objext conftest$ac_exeext
17300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301 (eval $ac_link) 2>conftest.er1
17302 ac_status=$?
17303 grep -v '^ *+' conftest.er1 >conftest.err
17304 rm -f conftest.er1
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
121ce6e5 17308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; } &&
17314 { ac_try='test -s conftest$ac_exeext'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
a3828db0 17320 ac_cv_working_alloca_h=yes
bec39cab
AC
17321else
17322 echo "$as_me: failed program was:" >&5
17323sed 's/^/| /' conftest.$ac_ext >&5
17324
4e8d927d 17325 ac_cv_working_alloca_h=no
bec39cab 17326fi
4e8d927d 17327
bec39cab
AC
17328rm -f conftest.err conftest.$ac_objext \
17329 conftest$ac_exeext conftest.$ac_ext
17330fi
4e8d927d
DJ
17331{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17332echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
a3828db0
MK
17333if test $ac_cv_working_alloca_h = yes; then
17334
17335cat >>confdefs.h <<\_ACEOF
17336#define HAVE_ALLOCA_H 1
bec39cab 17337_ACEOF
74c1b268 17338
74c1b268
AC
17339fi
17340
4e8d927d
DJ
17341{ echo "$as_me:$LINENO: checking for alloca" >&5
17342echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
a3828db0 17343if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 17344 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 17345else
bec39cab
AC
17346 cat >conftest.$ac_ext <<_ACEOF
17347/* confdefs.h. */
17348_ACEOF
17349cat confdefs.h >>conftest.$ac_ext
17350cat >>conftest.$ac_ext <<_ACEOF
17351/* end confdefs.h. */
a3828db0
MK
17352#ifdef __GNUC__
17353# define alloca __builtin_alloca
17354#else
17355# ifdef _MSC_VER
17356# include <malloc.h>
17357# define alloca _alloca
17358# else
17359# if HAVE_ALLOCA_H
17360# include <alloca.h>
17361# else
17362# ifdef _AIX
17363 #pragma alloca
17364# else
17365# ifndef alloca /* predefined by HP cc +Olibcalls */
17366char *alloca ();
17367# endif
17368# endif
17369# endif
97bf5e38 17370# endif
a3828db0 17371#endif
97bf5e38 17372
bec39cab
AC
17373int
17374main ()
17375{
a3828db0 17376char *p = (char *) alloca (1);
bec39cab
AC
17377 ;
17378 return 0;
17379}
17380_ACEOF
a3828db0
MK
17381rm -f conftest.$ac_objext conftest$ac_exeext
17382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17383 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17384 ac_status=$?
17385 grep -v '^ *+' conftest.er1 >conftest.err
17386 rm -f conftest.er1
17387 cat conftest.err >&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } &&
121ce6e5 17390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
a3828db0 17396 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
a3828db0 17402 ac_cv_func_alloca_works=yes
0200359f 17403else
bec39cab
AC
17404 echo "$as_me: failed program was:" >&5
17405sed 's/^/| /' conftest.$ac_ext >&5
0200359f 17406
4e8d927d 17407 ac_cv_func_alloca_works=no
0200359f 17408fi
4e8d927d 17409
a3828db0
MK
17410rm -f conftest.err conftest.$ac_objext \
17411 conftest$ac_exeext conftest.$ac_ext
72473524 17412fi
4e8d927d
DJ
17413{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17414echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
bec39cab 17415
a3828db0
MK
17416if test $ac_cv_func_alloca_works = yes; then
17417
17418cat >>confdefs.h <<\_ACEOF
17419#define HAVE_ALLOCA 1
bec39cab
AC
17420_ACEOF
17421
a3828db0
MK
17422else
17423 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17424# that cause trouble. Some versions do not even contain alloca or
17425# contain a buggy version. If you still want to use their alloca,
17426# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 17427
4e8d927d 17428ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
bec39cab 17429
a3828db0
MK
17430cat >>confdefs.h <<\_ACEOF
17431#define C_ALLOCA 1
17432_ACEOF
bec39cab 17433
a3828db0 17434
4e8d927d
DJ
17435{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17436echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
a3828db0 17437if test "${ac_cv_os_cray+set}" = set; then
bec39cab 17438 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 17439else
a3828db0 17440 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17441/* confdefs.h. */
17442_ACEOF
17443cat confdefs.h >>conftest.$ac_ext
17444cat >>conftest.$ac_ext <<_ACEOF
17445/* end confdefs.h. */
4e8d927d 17446#if defined CRAY && ! defined CRAY2
a3828db0
MK
17447webecray
17448#else
17449wenotbecray
17450#endif
17451
17452_ACEOF
17453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17454 $EGREP "webecray" >/dev/null 2>&1; then
17455 ac_cv_os_cray=yes
17456else
17457 ac_cv_os_cray=no
17458fi
17459rm -f conftest*
17460
17461fi
4e8d927d
DJ
17462{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17463echo "${ECHO_T}$ac_cv_os_cray" >&6; }
a3828db0
MK
17464if test $ac_cv_os_cray = yes; then
17465 for ac_func in _getb67 GETB67 getb67; do
17466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
17467{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17469if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a3828db0
MK
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17471else
17472 cat >conftest.$ac_ext <<_ACEOF
17473/* confdefs.h. */
17474_ACEOF
17475cat confdefs.h >>conftest.$ac_ext
17476cat >>conftest.$ac_ext <<_ACEOF
17477/* end confdefs.h. */
17478/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17480#define $ac_func innocuous_$ac_func
17481
17482/* System header to define __stub macros and hopefully few prototypes,
17483 which can conflict with char $ac_func (); below.
17484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485 <limits.h> exists even on freestanding compilers. */
17486
17487#ifdef __STDC__
17488# include <limits.h>
17489#else
17490# include <assert.h>
17491#endif
17492
17493#undef $ac_func
17494
4e8d927d
DJ
17495/* Override any GCC internal prototype to avoid an error.
17496 Use char because int might match the return type of a GCC
17497 builtin and then its argument prototype would still apply. */
a3828db0
MK
17498#ifdef __cplusplus
17499extern "C"
a3828db0 17500#endif
a3828db0
MK
17501char $ac_func ();
17502/* The GNU C library defines this for functions which it implements
17503 to always fail with ENOSYS. Some functions are actually named
17504 something starting with __ and the normal name is an alias. */
4e8d927d 17505#if defined __stub_$ac_func || defined __stub___$ac_func
a3828db0 17506choke me
a3828db0
MK
17507#endif
17508
17509int
17510main ()
17511{
4e8d927d 17512return $ac_func ();
a3828db0
MK
17513 ;
17514 return 0;
17515}
17516_ACEOF
17517rm -f conftest.$ac_objext conftest$ac_exeext
17518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17519 (eval $ac_link) 2>conftest.er1
17520 ac_status=$?
17521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
121ce6e5 17526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a3828db0
MK
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest$ac_exeext'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 eval "$as_ac_var=yes"
17539else
17540 echo "$as_me: failed program was:" >&5
17541sed 's/^/| /' conftest.$ac_ext >&5
17542
4e8d927d 17543 eval "$as_ac_var=no"
a3828db0 17544fi
4e8d927d 17545
a3828db0
MK
17546rm -f conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548fi
4e8d927d
DJ
17549ac_res=`eval echo '${'$as_ac_var'}'`
17550 { echo "$as_me:$LINENO: result: $ac_res" >&5
17551echo "${ECHO_T}$ac_res" >&6; }
a3828db0
MK
17552if test `eval echo '${'$as_ac_var'}'` = yes; then
17553
17554cat >>confdefs.h <<_ACEOF
17555#define CRAY_STACKSEG_END $ac_func
17556_ACEOF
17557
17558 break
17559fi
17560
17561 done
17562fi
17563
4e8d927d
DJ
17564{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17565echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
a3828db0
MK
17566if test "${ac_cv_c_stack_direction+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17568else
17569 if test "$cross_compiling" = yes; then
17570 ac_cv_c_stack_direction=0
17571else
17572 cat >conftest.$ac_ext <<_ACEOF
17573/* confdefs.h. */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h. */
4e8d927d 17578$ac_includes_default
a3828db0
MK
17579int
17580find_stack_direction ()
17581{
17582 static char *addr = 0;
17583 auto char dummy;
17584 if (addr == 0)
17585 {
17586 addr = &dummy;
17587 return find_stack_direction ();
17588 }
17589 else
17590 return (&dummy > addr) ? 1 : -1;
17591}
17592
17593int
17594main ()
17595{
4e8d927d 17596 return find_stack_direction () < 0;
a3828db0
MK
17597}
17598_ACEOF
17599rm -f conftest$ac_exeext
17600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17601 (eval $ac_link) 2>&5
17602 ac_status=$?
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610 ac_cv_c_stack_direction=1
17611else
17612 echo "$as_me: program exited with status $ac_status" >&5
17613echo "$as_me: failed program was:" >&5
17614sed 's/^/| /' conftest.$ac_ext >&5
17615
17616( exit $ac_status )
17617ac_cv_c_stack_direction=-1
17618fi
4e8d927d 17619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0 17620fi
4e8d927d
DJ
17621
17622
a3828db0 17623fi
4e8d927d
DJ
17624{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17625echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
a3828db0
MK
17626
17627cat >>confdefs.h <<_ACEOF
17628#define STACK_DIRECTION $ac_cv_c_stack_direction
17629_ACEOF
17630
17631
17632fi
17633
17634
17635
17636for ac_header in stdlib.h unistd.h
17637do
17638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
17639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a3828db0
MK
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17644fi
4e8d927d
DJ
17645ac_res=`eval echo '${'$as_ac_Header'}'`
17646 { echo "$as_me:$LINENO: result: $ac_res" >&5
17647echo "${ECHO_T}$ac_res" >&6; }
a3828db0
MK
17648else
17649 # Is the header compilable?
4e8d927d
DJ
17650{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
a3828db0
MK
17652cat >conftest.$ac_ext <<_ACEOF
17653/* confdefs.h. */
17654_ACEOF
17655cat confdefs.h >>conftest.$ac_ext
17656cat >>conftest.$ac_ext <<_ACEOF
17657/* end confdefs.h. */
17658$ac_includes_default
17659#include <$ac_header>
17660_ACEOF
17661rm -f conftest.$ac_objext
17662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17663 (eval $ac_compile) 2>conftest.er1
17664 ac_status=$?
bec39cab
AC
17665 grep -v '^ *+' conftest.er1 >conftest.err
17666 rm -f conftest.er1
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } &&
121ce6e5 17670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest.$ac_objext'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_header_compiler=yes
17683else
17684 echo "$as_me: failed program was:" >&5
17685sed 's/^/| /' conftest.$ac_ext >&5
17686
4e8d927d 17687 ac_header_compiler=no
bec39cab 17688fi
4e8d927d 17689
bec39cab 17690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
17691{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17692echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
17693
17694# Is the header present?
4e8d927d
DJ
17695{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
bec39cab
AC
17697cat >conftest.$ac_ext <<_ACEOF
17698/* confdefs.h. */
17699_ACEOF
17700cat confdefs.h >>conftest.$ac_ext
17701cat >>conftest.$ac_ext <<_ACEOF
17702/* end confdefs.h. */
17703#include <$ac_header>
17704_ACEOF
17705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17707 ac_status=$?
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } >/dev/null; then
17713 if test -s conftest.err; then
17714 ac_cpp_err=$ac_c_preproc_warn_flag
17715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17716 else
17717 ac_cpp_err=
17718 fi
17719else
17720 ac_cpp_err=yes
17721fi
17722if test -z "$ac_cpp_err"; then
17723 ac_header_preproc=yes
97bf5e38 17724else
bec39cab
AC
17725 echo "$as_me: failed program was:" >&5
17726sed 's/^/| /' conftest.$ac_ext >&5
17727
17728 ac_header_preproc=no
72473524 17729fi
4e8d927d 17730
bec39cab 17731rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
17732{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17733echo "${ECHO_T}$ac_header_preproc" >&6; }
c906108c 17734
bec39cab
AC
17735# So? What about this header?
17736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17737 yes:no: )
17738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17739echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17741echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17742 ac_header_preproc=yes
17743 ;;
17744 no:yes:* )
17745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17746echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17748echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17750echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17752echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17754echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17756echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 17757
bec39cab
AC
17758 ;;
17759esac
4e8d927d
DJ
17760{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 17763 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17764else
bec39cab
AC
17765 eval "$as_ac_Header=\$ac_header_preproc"
17766fi
4e8d927d
DJ
17767ac_res=`eval echo '${'$as_ac_Header'}'`
17768 { echo "$as_me:$LINENO: result: $ac_res" >&5
17769echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
17770
17771fi
17772if test `eval echo '${'$as_ac_Header'}'` = yes; then
17773 cat >>confdefs.h <<_ACEOF
17774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17775_ACEOF
17776
17777fi
17778
17779done
17780
17781
a3828db0 17782for ac_func in getpagesize
bec39cab
AC
17783do
17784as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
17785{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17786echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17787if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17789else
17790 cat >conftest.$ac_ext <<_ACEOF
17791/* confdefs.h. */
17792_ACEOF
17793cat confdefs.h >>conftest.$ac_ext
17794cat >>conftest.$ac_ext <<_ACEOF
17795/* end confdefs.h. */
17796/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17798#define $ac_func innocuous_$ac_func
17799
97bf5e38 17800/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17801 which can conflict with char $ac_func (); below.
17802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17803 <limits.h> exists even on freestanding compilers. */
2b2d558c 17804
bec39cab
AC
17805#ifdef __STDC__
17806# include <limits.h>
17807#else
17808# include <assert.h>
17809#endif
97bf5e38 17810
bec39cab
AC
17811#undef $ac_func
17812
4e8d927d
DJ
17813/* Override any GCC internal prototype to avoid an error.
17814 Use char because int might match the return type of a GCC
17815 builtin and then its argument prototype would still apply. */
bec39cab
AC
17816#ifdef __cplusplus
17817extern "C"
bec39cab 17818#endif
bec39cab 17819char $ac_func ();
97bf5e38
MK
17820/* The GNU C library defines this for functions which it implements
17821 to always fail with ENOSYS. Some functions are actually named
17822 something starting with __ and the normal name is an alias. */
4e8d927d 17823#if defined __stub_$ac_func || defined __stub___$ac_func
97bf5e38 17824choke me
97bf5e38
MK
17825#endif
17826
bec39cab
AC
17827int
17828main ()
17829{
4e8d927d 17830return $ac_func ();
bec39cab
AC
17831 ;
17832 return 0;
17833}
17834_ACEOF
17835rm -f conftest.$ac_objext conftest$ac_exeext
17836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17837 (eval $ac_link) 2>conftest.er1
17838 ac_status=$?
17839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
121ce6e5 17844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try='test -s conftest$ac_exeext'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 eval "$as_ac_var=yes"
17857else
17858 echo "$as_me: failed program was:" >&5
17859sed 's/^/| /' conftest.$ac_ext >&5
17860
4e8d927d 17861 eval "$as_ac_var=no"
bec39cab 17862fi
4e8d927d 17863
bec39cab
AC
17864rm -f conftest.err conftest.$ac_objext \
17865 conftest$ac_exeext conftest.$ac_ext
17866fi
4e8d927d
DJ
17867ac_res=`eval echo '${'$as_ac_var'}'`
17868 { echo "$as_me:$LINENO: result: $ac_res" >&5
17869echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
17870if test `eval echo '${'$as_ac_var'}'` = yes; then
17871 cat >>confdefs.h <<_ACEOF
17872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17873_ACEOF
17874
2b2d558c 17875fi
bec39cab 17876done
2b2d558c 17877
4e8d927d
DJ
17878{ echo "$as_me:$LINENO: checking for working mmap" >&5
17879echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
a3828db0 17880if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 17881 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17882else
bec39cab 17883 if test "$cross_compiling" = yes; then
a3828db0 17884 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
17885else
17886 cat >conftest.$ac_ext <<_ACEOF
a3828db0 17887/* confdefs.h. */
bec39cab
AC
17888_ACEOF
17889cat confdefs.h >>conftest.$ac_ext
17890cat >>conftest.$ac_ext <<_ACEOF
17891/* end confdefs.h. */
a3828db0
MK
17892$ac_includes_default
17893/* malloc might have been renamed as rpl_malloc. */
17894#undef malloc
bec39cab 17895
a3828db0
MK
17896/* Thanks to Mike Haertel and Jim Avera for this test.
17897 Here is a matrix of mmap possibilities:
17898 mmap private not fixed
17899 mmap private fixed at somewhere currently unmapped
17900 mmap private fixed at somewhere already mapped
17901 mmap shared not fixed
17902 mmap shared fixed at somewhere currently unmapped
17903 mmap shared fixed at somewhere already mapped
17904 For private mappings, we should verify that changes cannot be read()
17905 back from the file, nor mmap's back from the file at a different
17906 address. (There have been systems where private was not correctly
17907 implemented like the infamous i386 svr4.0, and systems where the
17908 VM page cache was not coherent with the file system buffer cache
17909 like early versions of FreeBSD and possibly contemporary NetBSD.)
17910 For shared mappings, we should conversely verify that changes get
17911 propagated back to all the places they're supposed to be.
7dfa765c 17912
a3828db0
MK
17913 Grep wants private fixed already mapped.
17914 The main things grep needs to know about mmap are:
17915 * does it exist and is it safe to write into the mmap'd area
17916 * how to use it (BSD variants) */
7dfa765c 17917
a3828db0
MK
17918#include <fcntl.h>
17919#include <sys/mman.h>
7dfa765c 17920
a3828db0
MK
17921#if !STDC_HEADERS && !HAVE_STDLIB_H
17922char *malloc ();
17923#endif
7dfa765c 17924
a3828db0
MK
17925/* This mess was copied from the GNU getpagesize.h. */
17926#if !HAVE_GETPAGESIZE
17927/* Assume that all systems that can run configure have sys/param.h. */
17928# if !HAVE_SYS_PARAM_H
17929# define HAVE_SYS_PARAM_H 1
17930# endif
64bb1671 17931
a3828db0
MK
17932# ifdef _SC_PAGESIZE
17933# define getpagesize() sysconf(_SC_PAGESIZE)
17934# else /* no _SC_PAGESIZE */
17935# if HAVE_SYS_PARAM_H
17936# include <sys/param.h>
17937# ifdef EXEC_PAGESIZE
17938# define getpagesize() EXEC_PAGESIZE
17939# else /* no EXEC_PAGESIZE */
17940# ifdef NBPG
17941# define getpagesize() NBPG * CLSIZE
17942# ifndef CLSIZE
17943# define CLSIZE 1
17944# endif /* no CLSIZE */
17945# else /* no NBPG */
17946# ifdef NBPC
17947# define getpagesize() NBPC
17948# else /* no NBPC */
17949# ifdef PAGESIZE
17950# define getpagesize() PAGESIZE
17951# endif /* PAGESIZE */
17952# endif /* no NBPC */
17953# endif /* no NBPG */
17954# endif /* no EXEC_PAGESIZE */
17955# else /* no HAVE_SYS_PARAM_H */
17956# define getpagesize() 8192 /* punt totally */
17957# endif /* no HAVE_SYS_PARAM_H */
17958# endif /* no _SC_PAGESIZE */
64bb1671 17959
a3828db0 17960#endif /* no HAVE_GETPAGESIZE */
64bb1671 17961
a3828db0
MK
17962int
17963main ()
17964{
17965 char *data, *data2, *data3;
17966 int i, pagesize;
17967 int fd;
97bf5e38 17968
a3828db0
MK
17969 pagesize = getpagesize ();
17970
17971 /* First, make a file with some known garbage in it. */
17972 data = (char *) malloc (pagesize);
17973 if (!data)
4e8d927d 17974 return 1;
a3828db0
MK
17975 for (i = 0; i < pagesize; ++i)
17976 *(data + i) = rand ();
17977 umask (0);
17978 fd = creat ("conftest.mmap", 0600);
17979 if (fd < 0)
4e8d927d 17980 return 1;
a3828db0 17981 if (write (fd, data, pagesize) != pagesize)
4e8d927d 17982 return 1;
a3828db0
MK
17983 close (fd);
17984
17985 /* Next, try to mmap the file at a fixed address which already has
17986 something else allocated at it. If we can, also make sure that
17987 we see the same garbage. */
17988 fd = open ("conftest.mmap", O_RDWR);
17989 if (fd < 0)
4e8d927d 17990 return 1;
a3828db0
MK
17991 data2 = (char *) malloc (2 * pagesize);
17992 if (!data2)
4e8d927d
DJ
17993 return 1;
17994 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
17995 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17996 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4e8d927d 17997 return 1;
a3828db0
MK
17998 for (i = 0; i < pagesize; ++i)
17999 if (*(data + i) != *(data2 + i))
4e8d927d 18000 return 1;
a3828db0
MK
18001
18002 /* Finally, make sure that changes to the mapped area do not
18003 percolate back to the file as seen by read(). (This is a bug on
18004 some variants of i386 svr4.0.) */
18005 for (i = 0; i < pagesize; ++i)
18006 *(data2 + i) = *(data2 + i) + 1;
18007 data3 = (char *) malloc (pagesize);
18008 if (!data3)
4e8d927d 18009 return 1;
a3828db0 18010 if (read (fd, data3, pagesize) != pagesize)
4e8d927d 18011 return 1;
a3828db0
MK
18012 for (i = 0; i < pagesize; ++i)
18013 if (*(data + i) != *(data3 + i))
4e8d927d 18014 return 1;
a3828db0 18015 close (fd);
4e8d927d 18016 return 0;
97bf5e38 18017}
bec39cab
AC
18018_ACEOF
18019rm -f conftest$ac_exeext
18020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021 (eval $ac_link) 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
a3828db0 18030 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 18031else
bec39cab
AC
18032 echo "$as_me: program exited with status $ac_status" >&5
18033echo "$as_me: failed program was:" >&5
18034sed 's/^/| /' conftest.$ac_ext >&5
18035
18036( exit $ac_status )
a3828db0 18037ac_cv_func_mmap_fixed_mapped=no
0afdd437 18038fi
4e8d927d 18039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 18040fi
4e8d927d
DJ
18041
18042
a3828db0 18043fi
4e8d927d
DJ
18044{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18045echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
a3828db0 18046if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
18047
18048cat >>confdefs.h <<\_ACEOF
a3828db0 18049#define HAVE_MMAP 1
bec39cab 18050_ACEOF
0afdd437
MK
18051
18052fi
a3828db0 18053rm -f conftest.mmap
0afdd437 18054
4e8d927d
DJ
18055{ echo "$as_me:$LINENO: checking for pid_t" >&5
18056echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
a3828db0 18057if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
18058 echo $ECHO_N "(cached) $ECHO_C" >&6
18059else
18060 cat >conftest.$ac_ext <<_ACEOF
18061/* confdefs.h. */
18062_ACEOF
18063cat confdefs.h >>conftest.$ac_ext
18064cat >>conftest.$ac_ext <<_ACEOF
18065/* end confdefs.h. */
a3828db0 18066$ac_includes_default
4e8d927d 18067typedef pid_t ac__type_new_;
bec39cab
AC
18068int
18069main ()
18070{
4e8d927d 18071if ((ac__type_new_ *) 0)
a3828db0 18072 return 0;
4e8d927d 18073if (sizeof (ac__type_new_))
a3828db0 18074 return 0;
bec39cab
AC
18075 ;
18076 return 0;
18077}
18078_ACEOF
a3828db0
MK
18079rm -f conftest.$ac_objext
18080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
18082 ac_status=$?
18083 grep -v '^ *+' conftest.er1 >conftest.err
18084 rm -f conftest.er1
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
121ce6e5 18088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
a3828db0 18094 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
a3828db0 18100 ac_cv_type_pid_t=yes
bec39cab
AC
18101else
18102 echo "$as_me: failed program was:" >&5
18103sed 's/^/| /' conftest.$ac_ext >&5
18104
4e8d927d 18105 ac_cv_type_pid_t=no
bec39cab 18106fi
4e8d927d 18107
a3828db0 18108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 18109fi
4e8d927d
DJ
18110{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18111echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
a3828db0
MK
18112if test $ac_cv_type_pid_t = yes; then
18113 :
18114else
18115
18116cat >>confdefs.h <<_ACEOF
18117#define pid_t int
bec39cab 18118_ACEOF
7e89e357 18119
7e89e357
JT
18120fi
18121
bec39cab 18122
4e8d927d 18123for ac_header in vfork.h
7be570e7 18124do
a3828db0 18125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4e8d927d
DJ
18126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 18130 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 18131fi
4e8d927d
DJ
18132ac_res=`eval echo '${'$as_ac_Header'}'`
18133 { echo "$as_me:$LINENO: result: $ac_res" >&5
18134echo "${ECHO_T}$ac_res" >&6; }
bec39cab 18135else
a3828db0 18136 # Is the header compilable?
4e8d927d
DJ
18137{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18138echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
a3828db0 18139cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18140/* confdefs.h. */
18141_ACEOF
18142cat confdefs.h >>conftest.$ac_ext
18143cat >>conftest.$ac_ext <<_ACEOF
18144/* end confdefs.h. */
a3828db0
MK
18145$ac_includes_default
18146#include <$ac_header>
bec39cab 18147_ACEOF
a3828db0
MK
18148rm -f conftest.$ac_objext
18149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18150 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
18151 ac_status=$?
18152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } &&
121ce6e5 18157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
a3828db0 18163 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
a3828db0 18169 ac_header_compiler=yes
bec39cab
AC
18170else
18171 echo "$as_me: failed program was:" >&5
18172sed 's/^/| /' conftest.$ac_ext >&5
18173
4e8d927d 18174 ac_header_compiler=no
bec39cab 18175fi
4e8d927d 18176
a3828db0 18177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
18178{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18179echo "${ECHO_T}$ac_header_compiler" >&6; }
a3828db0
MK
18180
18181# Is the header present?
4e8d927d
DJ
18182{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18183echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
a3828db0
MK
18184cat >conftest.$ac_ext <<_ACEOF
18185/* confdefs.h. */
18186_ACEOF
18187cat confdefs.h >>conftest.$ac_ext
18188cat >>conftest.$ac_ext <<_ACEOF
18189/* end confdefs.h. */
18190#include <$ac_header>
18191_ACEOF
18192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18194 ac_status=$?
18195 grep -v '^ *+' conftest.er1 >conftest.err
18196 rm -f conftest.er1
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } >/dev/null; then
18200 if test -s conftest.err; then
18201 ac_cpp_err=$ac_c_preproc_warn_flag
18202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18203 else
18204 ac_cpp_err=
18205 fi
18206else
18207 ac_cpp_err=yes
18208fi
18209if test -z "$ac_cpp_err"; then
18210 ac_header_preproc=yes
18211else
18212 echo "$as_me: failed program was:" >&5
18213sed 's/^/| /' conftest.$ac_ext >&5
18214
18215 ac_header_preproc=no
18216fi
4e8d927d 18217
a3828db0 18218rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
18219{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18220echo "${ECHO_T}$ac_header_preproc" >&6; }
a3828db0
MK
18221
18222# So? What about this header?
18223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18224 yes:no: )
18225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18229 ac_header_preproc=yes
18230 ;;
18231 no:yes:* )
18232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18239echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4e8d927d 18244
a3828db0
MK
18245 ;;
18246esac
4e8d927d
DJ
18247{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a3828db0
MK
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18251else
18252 eval "$as_ac_Header=\$ac_header_preproc"
18253fi
4e8d927d
DJ
18254ac_res=`eval echo '${'$as_ac_Header'}'`
18255 { echo "$as_me:$LINENO: result: $ac_res" >&5
18256echo "${ECHO_T}$ac_res" >&6; }
a3828db0 18257
bec39cab 18258fi
a3828db0 18259if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 18260 cat >>confdefs.h <<_ACEOF
a3828db0 18261#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 18262_ACEOF
14abd0fb 18263
14abd0fb 18264fi
a3828db0 18265
14abd0fb
MK
18266done
18267
bec39cab 18268
a3828db0
MK
18269
18270for ac_func in fork vfork
14abd0fb 18271do
bec39cab 18272as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
18273{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18274echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18275if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18277else
18278 cat >conftest.$ac_ext <<_ACEOF
18279/* confdefs.h. */
18280_ACEOF
18281cat confdefs.h >>conftest.$ac_ext
18282cat >>conftest.$ac_ext <<_ACEOF
18283/* end confdefs.h. */
18284/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18286#define $ac_func innocuous_$ac_func
18287
14abd0fb 18288/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18289 which can conflict with char $ac_func (); below.
18290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18291 <limits.h> exists even on freestanding compilers. */
18292
18293#ifdef __STDC__
18294# include <limits.h>
18295#else
18296# include <assert.h>
18297#endif
14abd0fb 18298
bec39cab 18299#undef $ac_func
14abd0fb 18300
4e8d927d
DJ
18301/* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
bec39cab
AC
18304#ifdef __cplusplus
18305extern "C"
bec39cab 18306#endif
bec39cab 18307char $ac_func ();
14abd0fb
MK
18308/* The GNU C library defines this for functions which it implements
18309 to always fail with ENOSYS. Some functions are actually named
18310 something starting with __ and the normal name is an alias. */
4e8d927d 18311#if defined __stub_$ac_func || defined __stub___$ac_func
14abd0fb 18312choke me
14abd0fb
MK
18313#endif
18314
bec39cab
AC
18315int
18316main ()
18317{
4e8d927d 18318return $ac_func ();
bec39cab
AC
18319 ;
18320 return 0;
18321}
18322_ACEOF
18323rm -f conftest.$ac_objext conftest$ac_exeext
18324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18325 (eval $ac_link) 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
121ce6e5 18332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest$ac_exeext'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 eval "$as_ac_var=yes"
18345else
18346 echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
4e8d927d 18349 eval "$as_ac_var=no"
bec39cab 18350fi
4e8d927d 18351
bec39cab
AC
18352rm -f conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18354fi
4e8d927d
DJ
18355ac_res=`eval echo '${'$as_ac_var'}'`
18356 { echo "$as_me:$LINENO: result: $ac_res" >&5
18357echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
18358if test `eval echo '${'$as_ac_var'}'` = yes; then
18359 cat >>confdefs.h <<_ACEOF
18360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18361_ACEOF
7be570e7 18362
7be570e7
JM
18363fi
18364done
18365
a3828db0 18366if test "x$ac_cv_func_fork" = xyes; then
4e8d927d
DJ
18367 { echo "$as_me:$LINENO: checking for working fork" >&5
18368echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
a3828db0
MK
18369if test "${ac_cv_func_fork_works+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18371else
18372 if test "$cross_compiling" = yes; then
18373 ac_cv_func_fork_works=cross
18374else
18375 cat >conftest.$ac_ext <<_ACEOF
121ce6e5
DJ
18376/* confdefs.h. */
18377_ACEOF
18378cat confdefs.h >>conftest.$ac_ext
18379cat >>conftest.$ac_ext <<_ACEOF
18380/* end confdefs.h. */
18381$ac_includes_default
18382int
18383main ()
18384{
18385
18386 /* By Ruediger Kuhlmann. */
4e8d927d 18387 return fork () < 0;
121ce6e5
DJ
18388
18389 ;
18390 return 0;
18391}
a3828db0
MK
18392_ACEOF
18393rm -f conftest$ac_exeext
18394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18395 (eval $ac_link) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; }; then
18404 ac_cv_func_fork_works=yes
18405else
18406 echo "$as_me: program exited with status $ac_status" >&5
18407echo "$as_me: failed program was:" >&5
18408sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 18409
a3828db0
MK
18410( exit $ac_status )
18411ac_cv_func_fork_works=no
18412fi
4e8d927d 18413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0 18414fi
4e8d927d
DJ
18415
18416
a3828db0 18417fi
4e8d927d
DJ
18418{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18419echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
a3828db0
MK
18420
18421else
18422 ac_cv_func_fork_works=$ac_cv_func_fork
18423fi
18424if test "x$ac_cv_func_fork_works" = xcross; then
18425 case $host in
18426 *-*-amigaos* | *-*-msdosdjgpp*)
18427 # Override, as these systems have only a dummy fork() stub
18428 ac_cv_func_fork_works=no
18429 ;;
18430 *)
18431 ac_cv_func_fork_works=yes
18432 ;;
18433 esac
18434 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18435echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18436fi
18437ac_cv_func_vfork_works=$ac_cv_func_vfork
18438if test "x$ac_cv_func_vfork" = xyes; then
4e8d927d
DJ
18439 { echo "$as_me:$LINENO: checking for working vfork" >&5
18440echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
a3828db0 18441if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 18442 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18443else
18444 if test "$cross_compiling" = yes; then
18445 ac_cv_func_vfork_works=cross
bec39cab
AC
18446else
18447 cat >conftest.$ac_ext <<_ACEOF
18448/* confdefs.h. */
18449_ACEOF
18450cat confdefs.h >>conftest.$ac_ext
18451cat >>conftest.$ac_ext <<_ACEOF
18452/* end confdefs.h. */
a3828db0 18453/* Thanks to Paul Eggert for this test. */
4e8d927d 18454$ac_includes_default
a3828db0 18455#include <sys/wait.h>
a3828db0
MK
18456#if HAVE_VFORK_H
18457# include <vfork.h>
bec39cab 18458#endif
a3828db0
MK
18459/* On some sparc systems, changes by the child to local and incoming
18460 argument registers are propagated back to the parent. The compiler
18461 is told about this with #include <vfork.h>, but some compilers
18462 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18463 static variable whose address is put into a register that is
18464 clobbered by the vfork. */
18465static void
bec39cab 18466#ifdef __cplusplus
a3828db0
MK
18467sparc_address_test (int arg)
18468# else
18469sparc_address_test (arg) int arg;
c906108c 18470#endif
a3828db0
MK
18471{
18472 static pid_t child;
18473 if (!child) {
18474 child = vfork ();
18475 if (child < 0) {
18476 perror ("vfork");
18477 _exit(2);
18478 }
18479 if (!child) {
18480 arg = getpid();
18481 write(-1, "", 0);
18482 _exit (arg);
18483 }
18484 }
18485}
97bf5e38 18486
bec39cab
AC
18487int
18488main ()
18489{
a3828db0
MK
18490 pid_t parent = getpid ();
18491 pid_t child;
18492
18493 sparc_address_test (0);
18494
18495 child = vfork ();
18496
18497 if (child == 0) {
18498 /* Here is another test for sparc vfork register problems. This
18499 test uses lots of local variables, at least as many local
18500 variables as main has allocated so far including compiler
18501 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18502 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18503 reuse the register of parent for one of the local variables,
18504 since it will think that parent can't possibly be used any more
18505 in this routine. Assigning to the local variable will thus
18506 munge parent in the parent process. */
18507 pid_t
18508 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18509 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18510 /* Convince the compiler that p..p7 are live; otherwise, it might
18511 use the same hardware register for all 8 local variables. */
18512 if (p != p1 || p != p2 || p != p3 || p != p4
18513 || p != p5 || p != p6 || p != p7)
18514 _exit(1);
18515
18516 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18517 from child file descriptors. If the child closes a descriptor
18518 before it execs or exits, this munges the parent's descriptor
18519 as well. Test for this by closing stdout in the child. */
18520 _exit(close(fileno(stdout)) != 0);
18521 } else {
18522 int status;
18523 struct stat st;
18524
18525 while (wait(&status) != child)
18526 ;
4e8d927d 18527 return (
a3828db0
MK
18528 /* Was there some problem with vforking? */
18529 child < 0
18530
18531 /* Did the child fail? (This shouldn't happen.) */
18532 || status
18533
18534 /* Did the vfork/compiler bug occur? */
18535 || parent != getpid()
18536
18537 /* Did the file descriptor bug occur? */
18538 || fstat(fileno(stdout), &st) != 0
18539 );
18540 }
bec39cab
AC
18541}
18542_ACEOF
a3828db0 18543rm -f conftest$ac_exeext
bec39cab 18544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 18545 (eval $ac_link) 2>&5
bec39cab
AC
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
a3828db0
MK
18554 ac_cv_func_vfork_works=yes
18555else
18556 echo "$as_me: program exited with status $ac_status" >&5
18557echo "$as_me: failed program was:" >&5
18558sed 's/^/| /' conftest.$ac_ext >&5
18559
18560( exit $ac_status )
18561ac_cv_func_vfork_works=no
18562fi
4e8d927d 18563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0 18564fi
4e8d927d
DJ
18565
18566
a3828db0 18567fi
4e8d927d
DJ
18568{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18569echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
a3828db0
MK
18570
18571fi;
18572if test "x$ac_cv_func_fork_works" = xcross; then
18573 ac_cv_func_vfork_works=$ac_cv_func_vfork
18574 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18575echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18576fi
18577
18578if test "x$ac_cv_func_vfork_works" = xyes; then
18579
18580cat >>confdefs.h <<\_ACEOF
18581#define HAVE_WORKING_VFORK 1
18582_ACEOF
18583
bec39cab 18584else
bec39cab 18585
a3828db0
MK
18586cat >>confdefs.h <<\_ACEOF
18587#define vfork fork
18588_ACEOF
18589
bec39cab 18590fi
a3828db0
MK
18591if test "x$ac_cv_func_fork_works" = xyes; then
18592
18593cat >>confdefs.h <<\_ACEOF
18594#define HAVE_WORKING_FORK 1
bec39cab 18595_ACEOF
c906108c 18596
c906108c
SS
18597fi
18598
bec39cab
AC
18599
18600
a3828db0 18601for ac_func in canonicalize_file_name realpath
97bf5e38 18602do
bec39cab 18603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
18604{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18608else
18609 cat >conftest.$ac_ext <<_ACEOF
18610/* confdefs.h. */
18611_ACEOF
18612cat confdefs.h >>conftest.$ac_ext
18613cat >>conftest.$ac_ext <<_ACEOF
18614/* end confdefs.h. */
18615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18617#define $ac_func innocuous_$ac_func
18618
d3ea6809
MM
18619/* System header to define __stub macros and hopefully few prototypes,
18620 which can conflict with char $ac_func (); below.
18621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18622 <limits.h> exists even on freestanding compilers. */
18623
18624#ifdef __STDC__
18625# include <limits.h>
18626#else
18627# include <assert.h>
18628#endif
18629
18630#undef $ac_func
18631
4e8d927d
DJ
18632/* Override any GCC internal prototype to avoid an error.
18633 Use char because int might match the return type of a GCC
18634 builtin and then its argument prototype would still apply. */
d3ea6809
MM
18635#ifdef __cplusplus
18636extern "C"
d3ea6809 18637#endif
d3ea6809
MM
18638char $ac_func ();
18639/* The GNU C library defines this for functions which it implements
18640 to always fail with ENOSYS. Some functions are actually named
18641 something starting with __ and the normal name is an alias. */
4e8d927d 18642#if defined __stub_$ac_func || defined __stub___$ac_func
d3ea6809 18643choke me
d3ea6809
MM
18644#endif
18645
18646int
18647main ()
18648{
4e8d927d 18649return $ac_func ();
d3ea6809
MM
18650 ;
18651 return 0;
18652}
18653_ACEOF
18654rm -f conftest.$ac_objext conftest$ac_exeext
18655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18656 (eval $ac_link) 2>conftest.er1
18657 ac_status=$?
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
121ce6e5 18663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d3ea6809
MM
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; } &&
18669 { ac_try='test -s conftest$ac_exeext'
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18672 ac_status=$?
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; }; then
18675 eval "$as_ac_var=yes"
18676else
18677 echo "$as_me: failed program was:" >&5
18678sed 's/^/| /' conftest.$ac_ext >&5
18679
4e8d927d 18680 eval "$as_ac_var=no"
d3ea6809 18681fi
4e8d927d 18682
d3ea6809
MM
18683rm -f conftest.err conftest.$ac_objext \
18684 conftest$ac_exeext conftest.$ac_ext
18685fi
4e8d927d
DJ
18686ac_res=`eval echo '${'$as_ac_var'}'`
18687 { echo "$as_me:$LINENO: result: $ac_res" >&5
18688echo "${ECHO_T}$ac_res" >&6; }
d3ea6809
MM
18689if test `eval echo '${'$as_ac_var'}'` = yes; then
18690 cat >>confdefs.h <<_ACEOF
18691#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18692_ACEOF
18693
18694fi
18695done
18696
18697
18698
18699for ac_func in getuid getgid
18700do
18701as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
18702{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18703echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18704if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d3ea6809
MM
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18706else
18707 cat >conftest.$ac_ext <<_ACEOF
18708/* confdefs.h. */
18709_ACEOF
18710cat confdefs.h >>conftest.$ac_ext
18711cat >>conftest.$ac_ext <<_ACEOF
18712/* end confdefs.h. */
18713/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18715#define $ac_func innocuous_$ac_func
18716
97bf5e38 18717/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18718 which can conflict with char $ac_func (); below.
18719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18720 <limits.h> exists even on freestanding compilers. */
c906108c 18721
bec39cab
AC
18722#ifdef __STDC__
18723# include <limits.h>
18724#else
18725# include <assert.h>
18726#endif
97bf5e38 18727
bec39cab
AC
18728#undef $ac_func
18729
4e8d927d
DJ
18730/* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
bec39cab
AC
18733#ifdef __cplusplus
18734extern "C"
bec39cab 18735#endif
bec39cab 18736char $ac_func ();
97bf5e38
MK
18737/* The GNU C library defines this for functions which it implements
18738 to always fail with ENOSYS. Some functions are actually named
18739 something starting with __ and the normal name is an alias. */
4e8d927d 18740#if defined __stub_$ac_func || defined __stub___$ac_func
97bf5e38 18741choke me
c906108c 18742#endif
97bf5e38 18743
bec39cab
AC
18744int
18745main ()
18746{
4e8d927d 18747return $ac_func ();
bec39cab
AC
18748 ;
18749 return 0;
18750}
18751_ACEOF
18752rm -f conftest.$ac_objext conftest$ac_exeext
18753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18754 (eval $ac_link) 2>conftest.er1
18755 ac_status=$?
18756 grep -v '^ *+' conftest.er1 >conftest.err
18757 rm -f conftest.er1
18758 cat conftest.err >&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
121ce6e5 18761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; } &&
18767 { ac_try='test -s conftest$ac_exeext'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773 eval "$as_ac_var=yes"
18774else
18775 echo "$as_me: failed program was:" >&5
18776sed 's/^/| /' conftest.$ac_ext >&5
18777
4e8d927d 18778 eval "$as_ac_var=no"
bec39cab 18779fi
4e8d927d 18780
bec39cab
AC
18781rm -f conftest.err conftest.$ac_objext \
18782 conftest$ac_exeext conftest.$ac_ext
18783fi
4e8d927d
DJ
18784ac_res=`eval echo '${'$as_ac_var'}'`
18785 { echo "$as_me:$LINENO: result: $ac_res" >&5
18786echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
18787if test `eval echo '${'$as_ac_var'}'` = yes; then
18788 cat >>confdefs.h <<_ACEOF
18789#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18790_ACEOF
c906108c 18791
c906108c 18792fi
97bf5e38 18793done
c906108c 18794
bec39cab 18795
a3828db0 18796for ac_func in poll
97bf5e38 18797do
bec39cab 18798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
18799{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18801if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803else
18804 cat >conftest.$ac_ext <<_ACEOF
18805/* confdefs.h. */
18806_ACEOF
18807cat confdefs.h >>conftest.$ac_ext
18808cat >>conftest.$ac_ext <<_ACEOF
18809/* end confdefs.h. */
18810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18812#define $ac_func innocuous_$ac_func
18813
97bf5e38 18814/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18815 which can conflict with char $ac_func (); below.
18816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18817 <limits.h> exists even on freestanding compilers. */
18818
18819#ifdef __STDC__
18820# include <limits.h>
18821#else
18822# include <assert.h>
18823#endif
c906108c 18824
bec39cab 18825#undef $ac_func
97bf5e38 18826
4e8d927d
DJ
18827/* Override any GCC internal prototype to avoid an error.
18828 Use char because int might match the return type of a GCC
18829 builtin and then its argument prototype would still apply. */
bec39cab
AC
18830#ifdef __cplusplus
18831extern "C"
bec39cab 18832#endif
bec39cab 18833char $ac_func ();
97bf5e38
MK
18834/* The GNU C library defines this for functions which it implements
18835 to always fail with ENOSYS. Some functions are actually named
18836 something starting with __ and the normal name is an alias. */
4e8d927d 18837#if defined __stub_$ac_func || defined __stub___$ac_func
97bf5e38 18838choke me
c906108c 18839#endif
97bf5e38 18840
bec39cab
AC
18841int
18842main ()
18843{
4e8d927d 18844return $ac_func ();
bec39cab
AC
18845 ;
18846 return 0;
18847}
18848_ACEOF
18849rm -f conftest.$ac_objext conftest$ac_exeext
18850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18851 (eval $ac_link) 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } &&
121ce6e5 18858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860 (eval $ac_try) 2>&5
18861 ac_status=$?
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; } &&
18864 { ac_try='test -s conftest$ac_exeext'
18865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18866 (eval $ac_try) 2>&5
18867 ac_status=$?
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; }; then
18870 eval "$as_ac_var=yes"
18871else
18872 echo "$as_me: failed program was:" >&5
18873sed 's/^/| /' conftest.$ac_ext >&5
18874
4e8d927d 18875 eval "$as_ac_var=no"
bec39cab 18876fi
4e8d927d 18877
bec39cab
AC
18878rm -f conftest.err conftest.$ac_objext \
18879 conftest$ac_exeext conftest.$ac_ext
18880fi
4e8d927d
DJ
18881ac_res=`eval echo '${'$as_ac_var'}'`
18882 { echo "$as_me:$LINENO: result: $ac_res" >&5
18883echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
18884if test `eval echo '${'$as_ac_var'}'` = yes; then
18885 cat >>confdefs.h <<_ACEOF
18886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18887_ACEOF
c906108c 18888
c906108c 18889fi
97bf5e38 18890done
c906108c 18891
bec39cab 18892
a3828db0 18893for ac_func in pread64
97bf5e38 18894do
bec39cab 18895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
18896{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18898if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18900else
18901 cat >conftest.$ac_ext <<_ACEOF
18902/* confdefs.h. */
18903_ACEOF
18904cat confdefs.h >>conftest.$ac_ext
18905cat >>conftest.$ac_ext <<_ACEOF
18906/* end confdefs.h. */
18907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18909#define $ac_func innocuous_$ac_func
18910
97bf5e38 18911/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18912 which can conflict with char $ac_func (); below.
18913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18914 <limits.h> exists even on freestanding compilers. */
18915
18916#ifdef __STDC__
18917# include <limits.h>
18918#else
18919# include <assert.h>
18920#endif
c906108c 18921
bec39cab 18922#undef $ac_func
97bf5e38 18923
4e8d927d
DJ
18924/* Override any GCC internal prototype to avoid an error.
18925 Use char because int might match the return type of a GCC
18926 builtin and then its argument prototype would still apply. */
bec39cab
AC
18927#ifdef __cplusplus
18928extern "C"
bec39cab 18929#endif
bec39cab 18930char $ac_func ();
97bf5e38
MK
18931/* The GNU C library defines this for functions which it implements
18932 to always fail with ENOSYS. Some functions are actually named
18933 something starting with __ and the normal name is an alias. */
4e8d927d 18934#if defined __stub_$ac_func || defined __stub___$ac_func
97bf5e38 18935choke me
c906108c 18936#endif
97bf5e38 18937
bec39cab
AC
18938int
18939main ()
18940{
4e8d927d 18941return $ac_func ();
bec39cab
AC
18942 ;
18943 return 0;
18944}
18945_ACEOF
18946rm -f conftest.$ac_objext conftest$ac_exeext
18947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18948 (eval $ac_link) 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
121ce6e5 18955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 eval "$as_ac_var=yes"
18968else
18969 echo "$as_me: failed program was:" >&5
18970sed 's/^/| /' conftest.$ac_ext >&5
18971
4e8d927d 18972 eval "$as_ac_var=no"
bec39cab 18973fi
4e8d927d 18974
bec39cab
AC
18975rm -f conftest.err conftest.$ac_objext \
18976 conftest$ac_exeext conftest.$ac_ext
18977fi
4e8d927d
DJ
18978ac_res=`eval echo '${'$as_ac_var'}'`
18979 { echo "$as_me:$LINENO: result: $ac_res" >&5
18980echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
18981if test `eval echo '${'$as_ac_var'}'` = yes; then
18982 cat >>confdefs.h <<_ACEOF
18983#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18984_ACEOF
c906108c 18985
c906108c 18986fi
97bf5e38 18987done
c906108c 18988
bec39cab 18989
a3828db0 18990for ac_func in sbrk
b757528f 18991do
bec39cab 18992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
18993{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18995if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18997else
18998 cat >conftest.$ac_ext <<_ACEOF
18999/* confdefs.h. */
19000_ACEOF
19001cat confdefs.h >>conftest.$ac_ext
19002cat >>conftest.$ac_ext <<_ACEOF
19003/* end confdefs.h. */
19004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19006#define $ac_func innocuous_$ac_func
19007
b757528f 19008/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19009 which can conflict with char $ac_func (); below.
19010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19011 <limits.h> exists even on freestanding compilers. */
19012
19013#ifdef __STDC__
19014# include <limits.h>
19015#else
19016# include <assert.h>
19017#endif
b757528f 19018
bec39cab 19019#undef $ac_func
b757528f 19020
4e8d927d
DJ
19021/* Override any GCC internal prototype to avoid an error.
19022 Use char because int might match the return type of a GCC
19023 builtin and then its argument prototype would still apply. */
bec39cab
AC
19024#ifdef __cplusplus
19025extern "C"
bec39cab 19026#endif
bec39cab 19027char $ac_func ();
b757528f
JJ
19028/* The GNU C library defines this for functions which it implements
19029 to always fail with ENOSYS. Some functions are actually named
19030 something starting with __ and the normal name is an alias. */
4e8d927d 19031#if defined __stub_$ac_func || defined __stub___$ac_func
b757528f 19032choke me
b757528f
JJ
19033#endif
19034
bec39cab
AC
19035int
19036main ()
19037{
4e8d927d 19038return $ac_func ();
bec39cab
AC
19039 ;
19040 return 0;
19041}
19042_ACEOF
19043rm -f conftest.$ac_objext conftest$ac_exeext
19044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19045 (eval $ac_link) 2>conftest.er1
19046 ac_status=$?
19047 grep -v '^ *+' conftest.er1 >conftest.err
19048 rm -f conftest.er1
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
121ce6e5 19052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try='test -s conftest$ac_exeext'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19061 ac_status=$?
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 eval "$as_ac_var=yes"
19065else
19066 echo "$as_me: failed program was:" >&5
19067sed 's/^/| /' conftest.$ac_ext >&5
19068
4e8d927d 19069 eval "$as_ac_var=no"
bec39cab 19070fi
4e8d927d 19071
bec39cab
AC
19072rm -f conftest.err conftest.$ac_objext \
19073 conftest$ac_exeext conftest.$ac_ext
19074fi
4e8d927d
DJ
19075ac_res=`eval echo '${'$as_ac_var'}'`
19076 { echo "$as_me:$LINENO: result: $ac_res" >&5
19077echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
19078if test `eval echo '${'$as_ac_var'}'` = yes; then
19079 cat >>confdefs.h <<_ACEOF
19080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19081_ACEOF
b757528f 19082
b757528f
JJ
19083fi
19084done
19085
bec39cab 19086
a3828db0
MK
19087
19088for ac_func in setpgid setpgrp
bcb3dc3d 19089do
bec39cab 19090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
19091{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19093if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19095else
19096 cat >conftest.$ac_ext <<_ACEOF
19097/* confdefs.h. */
19098_ACEOF
19099cat confdefs.h >>conftest.$ac_ext
19100cat >>conftest.$ac_ext <<_ACEOF
19101/* end confdefs.h. */
19102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19104#define $ac_func innocuous_$ac_func
19105
bcb3dc3d 19106/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19107 which can conflict with char $ac_func (); below.
19108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19109 <limits.h> exists even on freestanding compilers. */
19110
19111#ifdef __STDC__
19112# include <limits.h>
19113#else
19114# include <assert.h>
19115#endif
bcb3dc3d 19116
bec39cab 19117#undef $ac_func
bcb3dc3d 19118
4e8d927d
DJ
19119/* Override any GCC internal prototype to avoid an error.
19120 Use char because int might match the return type of a GCC
19121 builtin and then its argument prototype would still apply. */
bec39cab
AC
19122#ifdef __cplusplus
19123extern "C"
bec39cab 19124#endif
bec39cab 19125char $ac_func ();
bcb3dc3d
MK
19126/* The GNU C library defines this for functions which it implements
19127 to always fail with ENOSYS. Some functions are actually named
19128 something starting with __ and the normal name is an alias. */
4e8d927d 19129#if defined __stub_$ac_func || defined __stub___$ac_func
bcb3dc3d 19130choke me
bcb3dc3d
MK
19131#endif
19132
bec39cab
AC
19133int
19134main ()
19135{
4e8d927d 19136return $ac_func ();
bec39cab
AC
19137 ;
19138 return 0;
19139}
19140_ACEOF
19141rm -f conftest.$ac_objext conftest$ac_exeext
19142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19143 (eval $ac_link) 2>conftest.er1
19144 ac_status=$?
19145 grep -v '^ *+' conftest.er1 >conftest.err
19146 rm -f conftest.er1
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
121ce6e5 19150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; } &&
19156 { ac_try='test -s conftest$ac_exeext'
19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; }; then
19162 eval "$as_ac_var=yes"
19163else
19164 echo "$as_me: failed program was:" >&5
19165sed 's/^/| /' conftest.$ac_ext >&5
19166
4e8d927d 19167 eval "$as_ac_var=no"
bec39cab 19168fi
4e8d927d 19169
bec39cab
AC
19170rm -f conftest.err conftest.$ac_objext \
19171 conftest$ac_exeext conftest.$ac_ext
19172fi
4e8d927d
DJ
19173ac_res=`eval echo '${'$as_ac_var'}'`
19174 { echo "$as_me:$LINENO: result: $ac_res" >&5
19175echo "${ECHO_T}$ac_res" >&6; }
bec39cab
AC
19176if test `eval echo '${'$as_ac_var'}'` = yes; then
19177 cat >>confdefs.h <<_ACEOF
19178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19179_ACEOF
bcb3dc3d 19180
bcb3dc3d
MK
19181fi
19182done
19183
bec39cab 19184
a3828db0
MK
19185
19186
19187for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 19188do
bec39cab 19189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
19190{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19192if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
19193 echo $ECHO_N "(cached) $ECHO_C" >&6
19194else
19195 cat >conftest.$ac_ext <<_ACEOF
19196/* confdefs.h. */
19197_ACEOF
19198cat confdefs.h >>conftest.$ac_ext
19199cat >>conftest.$ac_ext <<_ACEOF
19200/* end confdefs.h. */
19201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19203#define $ac_func innocuous_$ac_func
19204
8b9cf735 19205/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19206 which can conflict with char $ac_func (); below.
19207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19208 <limits.h> exists even on freestanding compilers. */
19209
19210#ifdef __STDC__
19211# include <limits.h>
19212#else
19213# include <assert.h>
19214#endif
8b9cf735 19215
bec39cab 19216#undef $ac_func
8b9cf735 19217
4e8d927d
DJ
19218/* Override any GCC internal prototype to avoid an error.
19219 Use char because int might match the return type of a GCC
19220 builtin and then its argument prototype would still apply. */
a3828db0
MK
19221#ifdef __cplusplus
19222extern "C"
a3828db0 19223#endif
a3828db0
MK
19224char $ac_func ();
19225/* The GNU C library defines this for functions which it implements
19226 to always fail with ENOSYS. Some functions are actually named
19227 something starting with __ and the normal name is an alias. */
4e8d927d 19228#if defined __stub_$ac_func || defined __stub___$ac_func
a3828db0 19229choke me
a3828db0
MK
19230#endif
19231
bec39cab
AC
19232int
19233main ()
19234{
4e8d927d 19235return $ac_func ();
bec39cab
AC
19236 ;
19237 return 0;
19238}
19239_ACEOF
a3828db0
MK
19240rm -f conftest.$ac_objext conftest$ac_exeext
19241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19242 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
121ce6e5 19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
a3828db0 19255 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
a3828db0 19261 eval "$as_ac_var=yes"
086ec9eb 19262else
bec39cab
AC
19263 echo "$as_me: failed program was:" >&5
19264sed 's/^/| /' conftest.$ac_ext >&5
19265
4e8d927d 19266 eval "$as_ac_var=no"
a3828db0 19267fi
4e8d927d 19268
a3828db0
MK
19269rm -f conftest.err conftest.$ac_objext \
19270 conftest$ac_exeext conftest.$ac_ext
19271fi
4e8d927d
DJ
19272ac_res=`eval echo '${'$as_ac_var'}'`
19273 { echo "$as_me:$LINENO: result: $ac_res" >&5
19274echo "${ECHO_T}$ac_res" >&6; }
a3828db0
MK
19275if test `eval echo '${'$as_ac_var'}'` = yes; then
19276 cat >>confdefs.h <<_ACEOF
19277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19278_ACEOF
19279
086ec9eb 19280fi
a3828db0
MK
19281done
19282
19283
19284for ac_func in socketpair
19285do
19286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
19287{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19289if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a3828db0
MK
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19291else
19292 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19293/* confdefs.h. */
19294_ACEOF
19295cat confdefs.h >>conftest.$ac_ext
19296cat >>conftest.$ac_ext <<_ACEOF
19297/* end confdefs.h. */
a3828db0
MK
19298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19300#define $ac_func innocuous_$ac_func
19301
19302/* System header to define __stub macros and hopefully few prototypes,
19303 which can conflict with char $ac_func (); below.
19304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19305 <limits.h> exists even on freestanding compilers. */
19306
19307#ifdef __STDC__
19308# include <limits.h>
19309#else
19310# include <assert.h>
19311#endif
19312
19313#undef $ac_func
19314
4e8d927d
DJ
19315/* Override any GCC internal prototype to avoid an error.
19316 Use char because int might match the return type of a GCC
19317 builtin and then its argument prototype would still apply. */
a3828db0
MK
19318#ifdef __cplusplus
19319extern "C"
a3828db0 19320#endif
a3828db0
MK
19321char $ac_func ();
19322/* The GNU C library defines this for functions which it implements
19323 to always fail with ENOSYS. Some functions are actually named
19324 something starting with __ and the normal name is an alias. */
4e8d927d 19325#if defined __stub_$ac_func || defined __stub___$ac_func
a3828db0 19326choke me
a3828db0
MK
19327#endif
19328
bec39cab
AC
19329int
19330main ()
19331{
4e8d927d 19332return $ac_func ();
bec39cab
AC
19333 ;
19334 return 0;
19335}
19336_ACEOF
a3828db0
MK
19337rm -f conftest.$ac_objext conftest$ac_exeext
19338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19339 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19340 ac_status=$?
19341 grep -v '^ *+' conftest.er1 >conftest.err
19342 rm -f conftest.er1
19343 cat conftest.err >&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } &&
121ce6e5 19346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348 (eval $ac_try) 2>&5
19349 ac_status=$?
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; } &&
a3828db0 19352 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
a3828db0 19358 eval "$as_ac_var=yes"
086ec9eb 19359else
bec39cab
AC
19360 echo "$as_me: failed program was:" >&5
19361sed 's/^/| /' conftest.$ac_ext >&5
19362
4e8d927d 19363 eval "$as_ac_var=no"
086ec9eb 19364fi
4e8d927d 19365
a3828db0
MK
19366rm -f conftest.err conftest.$ac_objext \
19367 conftest$ac_exeext conftest.$ac_ext
086ec9eb 19368fi
4e8d927d
DJ
19369ac_res=`eval echo '${'$as_ac_var'}'`
19370 { echo "$as_me:$LINENO: result: $ac_res" >&5
19371echo "${ECHO_T}$ac_res" >&6; }
a3828db0
MK
19372if test `eval echo '${'$as_ac_var'}'` = yes; then
19373 cat >>confdefs.h <<_ACEOF
19374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19375_ACEOF
086ec9eb
MK
19376
19377fi
a3828db0 19378done
086ec9eb 19379
a3828db0
MK
19380
19381for ac_func in syscall
19382do
19383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
19384{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19386if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 19387 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
19388else
19389 cat >conftest.$ac_ext <<_ACEOF
19390/* confdefs.h. */
19391_ACEOF
19392cat confdefs.h >>conftest.$ac_ext
19393cat >>conftest.$ac_ext <<_ACEOF
19394/* end confdefs.h. */
a3828db0
MK
19395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19397#define $ac_func innocuous_$ac_func
19398
19399/* System header to define __stub macros and hopefully few prototypes,
19400 which can conflict with char $ac_func (); below.
19401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19402 <limits.h> exists even on freestanding compilers. */
19403
19404#ifdef __STDC__
19405# include <limits.h>
19406#else
19407# include <assert.h>
19408#endif
19409
19410#undef $ac_func
19411
4e8d927d
DJ
19412/* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
a3828db0
MK
19415#ifdef __cplusplus
19416extern "C"
a3828db0 19417#endif
a3828db0
MK
19418char $ac_func ();
19419/* The GNU C library defines this for functions which it implements
19420 to always fail with ENOSYS. Some functions are actually named
19421 something starting with __ and the normal name is an alias. */
4e8d927d 19422#if defined __stub_$ac_func || defined __stub___$ac_func
a3828db0 19423choke me
c906108c 19424#endif
97bf5e38 19425
bec39cab
AC
19426int
19427main ()
97bf5e38 19428{
4e8d927d 19429return $ac_func ();
bec39cab
AC
19430 ;
19431 return 0;
97bf5e38 19432}
bec39cab 19433_ACEOF
a3828db0 19434rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 19435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 19436 (eval $ac_link) 2>conftest.er1
bec39cab 19437 ac_status=$?
a3828db0
MK
19438 grep -v '^ *+' conftest.er1 >conftest.err
19439 rm -f conftest.er1
19440 cat conftest.err >&5
bec39cab 19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 19442 (exit $ac_status); } &&
121ce6e5 19443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a3828db0
MK
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; } &&
19449 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; }; then
a3828db0 19455 eval "$as_ac_var=yes"
c906108c 19456else
a3828db0 19457 echo "$as_me: failed program was:" >&5
bec39cab
AC
19458sed 's/^/| /' conftest.$ac_ext >&5
19459
4e8d927d 19460 eval "$as_ac_var=no"
97bf5e38 19461fi
4e8d927d 19462
a3828db0
MK
19463rm -f conftest.err conftest.$ac_objext \
19464 conftest$ac_exeext conftest.$ac_ext
19465fi
4e8d927d
DJ
19466ac_res=`eval echo '${'$as_ac_var'}'`
19467 { echo "$as_me:$LINENO: result: $ac_res" >&5
19468echo "${ECHO_T}$ac_res" >&6; }
a3828db0
MK
19469if test `eval echo '${'$as_ac_var'}'` = yes; then
19470 cat >>confdefs.h <<_ACEOF
19471#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19472_ACEOF
c906108c
SS
19473
19474fi
a3828db0 19475done
c906108c 19476
a3828db0
MK
19477
19478for ac_func in ttrace
19479do
19480as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
19481{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19482echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19483if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab 19484 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 19485else
bec39cab
AC
19486 cat >conftest.$ac_ext <<_ACEOF
19487/* confdefs.h. */
19488_ACEOF
19489cat confdefs.h >>conftest.$ac_ext
19490cat >>conftest.$ac_ext <<_ACEOF
19491/* end confdefs.h. */
a3828db0
MK
19492/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19494#define $ac_func innocuous_$ac_func
b83266a0 19495
a3828db0
MK
19496/* System header to define __stub macros and hopefully few prototypes,
19497 which can conflict with char $ac_func (); below.
19498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19499 <limits.h> exists even on freestanding compilers. */
19500
19501#ifdef __STDC__
19502# include <limits.h>
19503#else
19504# include <assert.h>
19505#endif
19506
19507#undef $ac_func
19508
4e8d927d
DJ
19509/* Override any GCC internal prototype to avoid an error.
19510 Use char because int might match the return type of a GCC
19511 builtin and then its argument prototype would still apply. */
a3828db0
MK
19512#ifdef __cplusplus
19513extern "C"
a3828db0 19514#endif
a3828db0
MK
19515char $ac_func ();
19516/* The GNU C library defines this for functions which it implements
19517 to always fail with ENOSYS. Some functions are actually named
19518 something starting with __ and the normal name is an alias. */
4e8d927d 19519#if defined __stub_$ac_func || defined __stub___$ac_func
a3828db0 19520choke me
a3828db0 19521#endif
97bf5e38 19522
bec39cab
AC
19523int
19524main ()
19525{
4e8d927d 19526return $ac_func ();
bec39cab
AC
19527 ;
19528 return 0;
19529}
19530_ACEOF
a3828db0
MK
19531rm -f conftest.$ac_objext conftest$ac_exeext
19532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19533 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19534 ac_status=$?
19535 grep -v '^ *+' conftest.er1 >conftest.err
19536 rm -f conftest.er1
19537 cat conftest.err >&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } &&
121ce6e5 19540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } &&
a3828db0 19546 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
a3828db0 19552 eval "$as_ac_var=yes"
b83266a0 19553else
bec39cab
AC
19554 echo "$as_me: failed program was:" >&5
19555sed 's/^/| /' conftest.$ac_ext >&5
19556
4e8d927d 19557 eval "$as_ac_var=no"
b83266a0 19558fi
4e8d927d 19559
a3828db0
MK
19560rm -f conftest.err conftest.$ac_objext \
19561 conftest$ac_exeext conftest.$ac_ext
b83266a0 19562fi
4e8d927d
DJ
19563ac_res=`eval echo '${'$as_ac_var'}'`
19564 { echo "$as_me:$LINENO: result: $ac_res" >&5
19565echo "${ECHO_T}$ac_res" >&6; }
a3828db0
MK
19566if test `eval echo '${'$as_ac_var'}'` = yes; then
19567 cat >>confdefs.h <<_ACEOF
19568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19569_ACEOF
b83266a0 19570
97bf5e38 19571fi
a3828db0 19572done
b83266a0 19573
a3828db0
MK
19574
19575for ac_func in wborder
19576do
19577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4e8d927d
DJ
19578{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19580if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
bec39cab
AC
19581 echo $ECHO_N "(cached) $ECHO_C" >&6
19582else
19583 cat >conftest.$ac_ext <<_ACEOF
19584/* confdefs.h. */
19585_ACEOF
19586cat confdefs.h >>conftest.$ac_ext
19587cat >>conftest.$ac_ext <<_ACEOF
19588/* end confdefs.h. */
a3828db0
MK
19589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19591#define $ac_func innocuous_$ac_func
a4db0f07 19592
a3828db0
MK
19593/* System header to define __stub macros and hopefully few prototypes,
19594 which can conflict with char $ac_func (); below.
19595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19596 <limits.h> exists even on freestanding compilers. */
19597
19598#ifdef __STDC__
19599# include <limits.h>
19600#else
19601# include <assert.h>
19602#endif
19603
19604#undef $ac_func
19605
4e8d927d
DJ
19606/* Override any GCC internal prototype to avoid an error.
19607 Use char because int might match the return type of a GCC
19608 builtin and then its argument prototype would still apply. */
a3828db0
MK
19609#ifdef __cplusplus
19610extern "C"
a3828db0 19611#endif
a3828db0
MK
19612char $ac_func ();
19613/* The GNU C library defines this for functions which it implements
19614 to always fail with ENOSYS. Some functions are actually named
19615 something starting with __ and the normal name is an alias. */
4e8d927d 19616#if defined __stub_$ac_func || defined __stub___$ac_func
a3828db0 19617choke me
a3828db0 19618#endif
97bf5e38 19619
bec39cab
AC
19620int
19621main ()
19622{
4e8d927d 19623return $ac_func ();
bec39cab
AC
19624 ;
19625 return 0;
19626}
19627_ACEOF
a3828db0
MK
19628rm -f conftest.$ac_objext conftest$ac_exeext
19629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19630 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19631 ac_status=$?
19632 grep -v '^ *+' conftest.er1 >conftest.err
19633 rm -f conftest.er1
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } &&
121ce6e5 19637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
a3828db0 19643 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
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
a3828db0 19649 eval "$as_ac_var=yes"
a4db0f07 19650else
bec39cab
AC
19651 echo "$as_me: failed program was:" >&5
19652sed 's/^/| /' conftest.$ac_ext >&5
19653
4e8d927d 19654 eval "$as_ac_var=no"
a4db0f07 19655fi
4e8d927d 19656
a3828db0
MK
19657rm -f conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
a4db0f07 19659fi
4e8d927d
DJ
19660ac_res=`eval echo '${'$as_ac_var'}'`
19661 { echo "$as_me:$LINENO: result: $ac_res" >&5
19662echo "${ECHO_T}$ac_res" >&6; }
a3828db0
MK
19663if test `eval echo '${'$as_ac_var'}'` = yes; then
19664 cat >>confdefs.h <<_ACEOF
19665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19666_ACEOF
a4db0f07
RH
19667
19668fi
a3828db0 19669done
c906108c 19670
06825bd1 19671
a3828db0
MK
19672# Check the return and argument types of ptrace. No canned test for
19673# this, so roll our own.
19674gdb_ptrace_headers='
19675#if HAVE_SYS_TYPES_H
19676# include <sys/types.h>
19677#endif
19678#if HAVE_SYS_PTRACE_H
19679# include <sys/ptrace.h>
19680#endif
19681#if HAVE_UNISTD_H
19682# include <unistd.h>
19683#endif
19684'
19685# There is no point in checking if we don't have a prototype.
4e8d927d
DJ
19686{ echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
19687echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6; }
a3828db0 19688if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19690else
19691 cat >conftest.$ac_ext <<_ACEOF
19692/* confdefs.h. */
19693_ACEOF
19694cat confdefs.h >>conftest.$ac_ext
19695cat >>conftest.$ac_ext <<_ACEOF
19696/* end confdefs.h. */
a3828db0
MK
19697$gdb_ptrace_headers
19698
bec39cab
AC
19699int
19700main ()
19701{
a3828db0
MK
19702#ifndef ptrace
19703 char *p = (char *) ptrace;
4e8d927d 19704 return !p;
06825bd1 19705#endif
a3828db0 19706
bec39cab
AC
19707 ;
19708 return 0;
19709}
19710_ACEOF
19711rm -f conftest.$ac_objext
19712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19713 (eval $ac_compile) 2>conftest.er1
19714 ac_status=$?
19715 grep -v '^ *+' conftest.er1 >conftest.err
19716 rm -f conftest.er1
19717 cat conftest.err >&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } &&
121ce6e5 19720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest.$ac_objext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
a3828db0 19732 ac_cv_have_decl_ptrace=yes
06825bd1 19733else
bec39cab
AC
19734 echo "$as_me: failed program was:" >&5
19735sed 's/^/| /' conftest.$ac_ext >&5
19736
4e8d927d 19737 ac_cv_have_decl_ptrace=no
06825bd1 19738fi
4e8d927d 19739
bec39cab 19740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 19741fi
4e8d927d
DJ
19742{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
19743echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6; }
a3828db0 19744if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 19745
a3828db0
MK
19746cat >>confdefs.h <<_ACEOF
19747#define HAVE_DECL_PTRACE 1
19748_ACEOF
bec39cab 19749
bec39cab 19750
a3828db0
MK
19751else
19752 cat >>confdefs.h <<_ACEOF
19753#define HAVE_DECL_PTRACE 0
bec39cab 19754_ACEOF
06825bd1 19755
a3828db0
MK
19756
19757 : ${gdb_cv_func_ptrace_ret='int'}
19758 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
19759
06825bd1
MK
19760fi
19761
a3828db0
MK
19762
19763# Check return type.
4e8d927d
DJ
19764{ echo "$as_me:$LINENO: checking return type of ptrace" >&5
19765echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6; }
a3828db0 19766if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19768else
19769 cat >conftest.$ac_ext <<_ACEOF
19770/* confdefs.h. */
19771_ACEOF
19772cat confdefs.h >>conftest.$ac_ext
19773cat >>conftest.$ac_ext <<_ACEOF
19774/* end confdefs.h. */
a3828db0 19775$gdb_ptrace_headers
bec39cab
AC
19776int
19777main ()
19778{
a3828db0 19779extern int ptrace ();
bec39cab
AC
19780 ;
19781 return 0;
19782}
19783_ACEOF
19784rm -f conftest.$ac_objext
19785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19786 (eval $ac_compile) 2>conftest.er1
19787 ac_status=$?
19788 grep -v '^ *+' conftest.er1 >conftest.err
19789 rm -f conftest.er1
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
121ce6e5 19793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; } &&
19799 { ac_try='test -s conftest.$ac_objext'
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; }; then
a3828db0 19805 gdb_cv_func_ptrace_ret='int'
70f9f479 19806else
bec39cab
AC
19807 echo "$as_me: failed program was:" >&5
19808sed 's/^/| /' conftest.$ac_ext >&5
19809
4e8d927d 19810 gdb_cv_func_ptrace_ret='long'
70f9f479 19811fi
4e8d927d 19812
bec39cab 19813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 19814fi
4e8d927d
DJ
19815{ echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
19816echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6; }
bec39cab 19817
a3828db0
MK
19818cat >>confdefs.h <<_ACEOF
19819#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 19820_ACEOF
70f9f479 19821
a3828db0 19822# Check argument types.
4e8d927d
DJ
19823{ echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
19824echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6; }
a3828db0 19825if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19827else
a3828db0
MK
19828
19829for gdb_arg1 in 'int' 'long'; do
19830 for gdb_arg2 in 'pid_t' 'int' 'long'; do
19831 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
19832 for gdb_arg4 in 'int' 'long'; do
19833 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19834/* confdefs.h. */
19835_ACEOF
19836cat confdefs.h >>conftest.$ac_ext
19837cat >>conftest.$ac_ext <<_ACEOF
19838/* end confdefs.h. */
a3828db0 19839$gdb_ptrace_headers
bec39cab
AC
19840int
19841main ()
19842{
a3828db0
MK
19843
19844extern $gdb_cv_func_ptrace_ret
19845 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
19846
bec39cab
AC
19847 ;
19848 return 0;
19849}
19850_ACEOF
19851rm -f conftest.$ac_objext
19852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19853 (eval $ac_compile) 2>conftest.er1
19854 ac_status=$?
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
121ce6e5 19860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
a3828db0
MK
19872 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
19873 break 4;
5c7f2947 19874else
bec39cab
AC
19875 echo "$as_me: failed program was:" >&5
19876sed 's/^/| /' conftest.$ac_ext >&5
19877
4e8d927d 19878
5c7f2947 19879fi
4e8d927d 19880
bec39cab 19881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
19882 for gdb_arg5 in 'int *' 'int' 'long'; do
19883 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
a3828db0 19889$gdb_ptrace_headers
bec39cab
AC
19890int
19891main ()
19892{
a3828db0
MK
19893
19894extern $gdb_cv_func_ptrace_ret
19895 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
19896
bec39cab
AC
19897 ;
19898 return 0;
19899}
19900_ACEOF
19901rm -f conftest.$ac_objext
19902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19903 (eval $ac_compile) 2>conftest.er1
19904 ac_status=$?
19905 grep -v '^ *+' conftest.er1 >conftest.err
19906 rm -f conftest.er1
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
121ce6e5 19910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
a3828db0
MK
19922
19923gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
19924 break 5;
78434e59 19925else
bec39cab
AC
19926 echo "$as_me: failed program was:" >&5
19927sed 's/^/| /' conftest.$ac_ext >&5
19928
4e8d927d 19929
78434e59 19930fi
4e8d927d 19931
bec39cab 19932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
19933 done
19934 done
19935 done
19936 done
19937done
19938# Provide a safe default value.
19939: ${gdb_cv_func_ptrace_args='int,int,long,long'}
19940
78434e59 19941fi
4e8d927d
DJ
19942{ echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
19943echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6; }
a3828db0
MK
19944ac_save_IFS=$IFS; IFS=','
19945set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
19946IFS=$ac_save_IFS
19947shift
bec39cab 19948
a3828db0
MK
19949cat >>confdefs.h <<_ACEOF
19950#define PTRACE_TYPE_ARG3 $3
19951_ACEOF
19952
19953if test -n "$5"; then
19954
19955cat >>confdefs.h <<_ACEOF
19956#define PTRACE_TYPE_ARG5 $5
bec39cab 19957_ACEOF
78434e59
MK
19958
19959fi
19960
a3828db0 19961if test "$cross_compiling" = no; then
4e8d927d
DJ
19962 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19963echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
a3828db0 19964if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 19965 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
19966else
19967 if test "$cross_compiling" = yes; then
19968 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19969echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19970 { (exit 1); exit 1; }; }
bec39cab
AC
19971else
19972 cat >conftest.$ac_ext <<_ACEOF
19973/* confdefs.h. */
19974_ACEOF
19975cat confdefs.h >>conftest.$ac_ext
19976cat >>conftest.$ac_ext <<_ACEOF
19977/* end confdefs.h. */
4e8d927d 19978$ac_includes_default
bec39cab
AC
19979int
19980main ()
19981{
a3828db0
MK
19982/* If this system has a BSD-style setpgrp which takes arguments,
19983 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19984 exit successfully. */
4e8d927d 19985 return setpgrp (1,1) != -1;
bec39cab
AC
19986 ;
19987 return 0;
19988}
19989_ACEOF
a3828db0
MK
19990rm -f conftest$ac_exeext
19991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19992 (eval $ac_link) 2>&5
bec39cab
AC
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 19995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
a3828db0 20001 ac_cv_func_setpgrp_void=no
c906108c 20002else
a3828db0
MK
20003 echo "$as_me: program exited with status $ac_status" >&5
20004echo "$as_me: failed program was:" >&5
bec39cab
AC
20005sed 's/^/| /' conftest.$ac_ext >&5
20006
a3828db0
MK
20007( exit $ac_status )
20008ac_cv_func_setpgrp_void=yes
c906108c 20009fi
4e8d927d 20010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20011fi
4e8d927d
DJ
20012
20013
a3828db0 20014fi
4e8d927d
DJ
20015{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20016echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
a3828db0
MK
20017if test $ac_cv_func_setpgrp_void = yes; then
20018
20019cat >>confdefs.h <<\_ACEOF
20020#define SETPGRP_VOID 1
bec39cab 20021_ACEOF
97bf5e38
MK
20022
20023fi
a3828db0
MK
20024
20025else
4e8d927d
DJ
20026 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20027echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
a3828db0 20028if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 20029 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20030else
bec39cab
AC
20031 cat >conftest.$ac_ext <<_ACEOF
20032/* confdefs.h. */
20033_ACEOF
20034cat confdefs.h >>conftest.$ac_ext
20035cat >>conftest.$ac_ext <<_ACEOF
20036/* end confdefs.h. */
a3828db0
MK
20037
20038#include <unistd.h>
20039
bec39cab
AC
20040int
20041main ()
20042{
a3828db0
MK
20043
20044 if (setpgrp(1,1) == -1)
20045 exit (0);
20046 else
20047 exit (1);
20048
bec39cab
AC
20049 ;
20050 return 0;
20051}
20052_ACEOF
20053rm -f conftest.$ac_objext
20054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20055 (eval $ac_compile) 2>conftest.er1
20056 ac_status=$?
20057 grep -v '^ *+' conftest.er1 >conftest.err
20058 rm -f conftest.er1
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } &&
121ce6e5 20062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20065 ac_status=$?
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; } &&
20068 { ac_try='test -s conftest.$ac_objext'
20069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
a3828db0 20074 ac_cv_func_setpgrp_void=no
c906108c 20075else
bec39cab
AC
20076 echo "$as_me: failed program was:" >&5
20077sed 's/^/| /' conftest.$ac_ext >&5
20078
4e8d927d 20079 ac_cv_func_setpgrp_void=yes
c906108c 20080fi
4e8d927d 20081
bec39cab 20082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20083fi
4e8d927d
DJ
20084{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20085echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
a3828db0 20086if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 20087 cat >>confdefs.h <<\_ACEOF
a3828db0 20088#define SETPGRP_VOID 1
bec39cab 20089_ACEOF
c3f6f71d 20090
a3828db0 20091fi
c906108c
SS
20092fi
20093
a3828db0
MK
20094# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
20095# since sigsetjmp might only be defined as a macro.
4e8d927d
DJ
20096{ echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20097echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
a3828db0 20098if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
20099 echo $ECHO_N "(cached) $ECHO_C" >&6
20100else
20101 cat >conftest.$ac_ext <<_ACEOF
20102/* confdefs.h. */
20103_ACEOF
20104cat confdefs.h >>conftest.$ac_ext
20105cat >>conftest.$ac_ext <<_ACEOF
20106/* end confdefs.h. */
a3828db0
MK
20107
20108#include <setjmp.h>
20109
bec39cab
AC
20110int
20111main ()
20112{
a3828db0 20113sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
20114 ;
20115 return 0;
20116}
20117_ACEOF
20118rm -f conftest.$ac_objext
20119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20120 (eval $ac_compile) 2>conftest.er1
20121 ac_status=$?
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } &&
121ce6e5 20127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; } &&
20133 { ac_try='test -s conftest.$ac_objext'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
a3828db0 20139 gdb_cv_func_sigsetjmp=yes
c906108c 20140else
bec39cab
AC
20141 echo "$as_me: failed program was:" >&5
20142sed 's/^/| /' conftest.$ac_ext >&5
20143
4e8d927d 20144 gdb_cv_func_sigsetjmp=no
c906108c 20145fi
4e8d927d 20146
bec39cab 20147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20148fi
4e8d927d
DJ
20149{ echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20150echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6; }
a3828db0 20151if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 20152
a3828db0
MK
20153cat >>confdefs.h <<\_ACEOF
20154#define HAVE_SIGSETJMP 1
bec39cab 20155_ACEOF
c906108c 20156
97bf5e38 20157fi
c906108c 20158
a3828db0
MK
20159# Assume we'll default to using the included libiberty regex.
20160gdb_use_included_regex=yes
20161
20162# However, if the system regex is GNU regex, then default to *not*
20163# using the included regex.
4e8d927d
DJ
20164{ echo "$as_me:$LINENO: checking for GNU regex" >&5
20165echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6; }
a3828db0 20166if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20168else
20169 cat >conftest.$ac_ext <<_ACEOF
20170/* confdefs.h. */
20171_ACEOF
20172cat confdefs.h >>conftest.$ac_ext
20173cat >>conftest.$ac_ext <<_ACEOF
20174/* end confdefs.h. */
a3828db0 20175#include <gnu-versions.h>
bec39cab
AC
20176int
20177main ()
20178{
a3828db0
MK
20179#define REGEX_INTERFACE_VERSION 1
20180#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20181# error "Version mismatch"
20182#endif
bec39cab
AC
20183 ;
20184 return 0;
20185}
20186_ACEOF
20187rm -f conftest.$ac_objext
20188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20189 (eval $ac_compile) 2>conftest.er1
20190 ac_status=$?
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
121ce6e5 20196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest.$ac_objext'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
a3828db0 20208 gdb_cv_have_gnu_regex=yes
c906108c 20209else
bec39cab
AC
20210 echo "$as_me: failed program was:" >&5
20211sed 's/^/| /' conftest.$ac_ext >&5
20212
4e8d927d 20213 gdb_cv_have_gnu_regex=no
c906108c 20214fi
4e8d927d 20215
bec39cab 20216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20217fi
4e8d927d
DJ
20218{ echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
20219echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6; }
a3828db0
MK
20220if test $gdb_cv_have_gnu_regex = yes; then
20221 gdb_use_included_regex=no
20222fi
c906108c 20223
a3828db0 20224
4e8d927d 20225# Check whether --with-included-regex was given.
a3828db0 20226if test "${with_included_regex+set}" = set; then
4e8d927d 20227 withval=$with_included_regex; gdb_with_regex=$withval
a3828db0
MK
20228else
20229 gdb_with_regex=$gdb_use_included_regex
4e8d927d
DJ
20230fi
20231
a3828db0
MK
20232if test "$gdb_with_regex" = yes; then
20233
20234cat >>confdefs.h <<\_ACEOF
20235#define USE_INCLUDED_REGEX 1
bec39cab 20236_ACEOF
c906108c 20237
97bf5e38 20238fi
c906108c 20239
5c45e068 20240# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
4e8d927d
DJ
20241{ echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
20242echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6; }
5c45e068 20243if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20245else
20246 cat >conftest.$ac_ext <<_ACEOF
20247/* confdefs.h. */
20248_ACEOF
20249cat confdefs.h >>conftest.$ac_ext
20250cat >>conftest.$ac_ext <<_ACEOF
20251/* end confdefs.h. */
a3828db0
MK
20252#include <sys/param.h>
20253#include <sys/proc.h>
5c45e068
MK
20254
20255
bec39cab
AC
20256int
20257main ()
20258{
5c45e068
MK
20259static struct thread ac_aggr;
20260if (ac_aggr.td_pcb)
20261return 0;
bec39cab
AC
20262 ;
20263 return 0;
20264}
20265_ACEOF
20266rm -f conftest.$ac_objext
20267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20268 (eval $ac_compile) 2>conftest.er1
20269 ac_status=$?
20270 grep -v '^ *+' conftest.er1 >conftest.err
20271 rm -f conftest.er1
20272 cat conftest.err >&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } &&
121ce6e5 20275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20278 ac_status=$?
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; } &&
20281 { ac_try='test -s conftest.$ac_objext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
5c45e068 20287 ac_cv_member_struct_thread_td_pcb=yes
c906108c 20288else
bec39cab
AC
20289 echo "$as_me: failed program was:" >&5
20290sed 's/^/| /' conftest.$ac_ext >&5
20291
4e8d927d 20292 cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20293/* confdefs.h. */
20294_ACEOF
20295cat confdefs.h >>conftest.$ac_ext
20296cat >>conftest.$ac_ext <<_ACEOF
20297/* end confdefs.h. */
20298#include <sys/param.h>
20299#include <sys/proc.h>
20300
20301
20302int
20303main ()
20304{
20305static struct thread ac_aggr;
20306if (sizeof ac_aggr.td_pcb)
20307return 0;
20308 ;
20309 return 0;
20310}
20311_ACEOF
20312rm -f conftest.$ac_objext
20313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20314 (eval $ac_compile) 2>conftest.er1
20315 ac_status=$?
20316 grep -v '^ *+' conftest.er1 >conftest.err
20317 rm -f conftest.er1
20318 cat conftest.err >&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
121ce6e5 20321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5c45e068
MK
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; } &&
20327 { ac_try='test -s conftest.$ac_objext'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 ac_cv_member_struct_thread_td_pcb=yes
20334else
20335 echo "$as_me: failed program was:" >&5
20336sed 's/^/| /' conftest.$ac_ext >&5
20337
4e8d927d 20338 ac_cv_member_struct_thread_td_pcb=no
5c45e068 20339fi
4e8d927d 20340
5c45e068 20341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20342fi
4e8d927d 20343
bec39cab 20344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20345fi
4e8d927d
DJ
20346{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20347echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6; }
5c45e068 20348if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 20349
5c45e068 20350cat >>confdefs.h <<_ACEOF
a3828db0 20351#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 20352_ACEOF
c906108c 20353
5c45e068 20354
97bf5e38 20355fi
c906108c 20356
5c45e068 20357
a3828db0 20358# See if <sys/lwp.h> defines `struct lwp`.
4e8d927d
DJ
20359{ echo "$as_me:$LINENO: checking for struct lwp" >&5
20360echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6; }
a3828db0 20361if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20363else
20364 cat >conftest.$ac_ext <<_ACEOF
20365/* confdefs.h. */
20366_ACEOF
20367cat confdefs.h >>conftest.$ac_ext
20368cat >>conftest.$ac_ext <<_ACEOF
20369/* end confdefs.h. */
a3828db0
MK
20370#include <sys/param.h>
20371#include <sys/lwp.h>
bec39cab
AC
20372int
20373main ()
20374{
a3828db0 20375struct lwp l;
bec39cab
AC
20376 ;
20377 return 0;
20378}
20379_ACEOF
20380rm -f conftest.$ac_objext
20381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20382 (eval $ac_compile) 2>conftest.er1
20383 ac_status=$?
20384 grep -v '^ *+' conftest.er1 >conftest.err
20385 rm -f conftest.er1
20386 cat conftest.err >&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); } &&
121ce6e5 20389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; } &&
20395 { ac_try='test -s conftest.$ac_objext'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; }; then
a3828db0 20401 gdb_cv_struct_lwp=yes
c906108c 20402else
bec39cab
AC
20403 echo "$as_me: failed program was:" >&5
20404sed 's/^/| /' conftest.$ac_ext >&5
20405
4e8d927d 20406 gdb_cv_struct_lwp=no
c906108c 20407fi
4e8d927d 20408
bec39cab 20409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20410fi
4e8d927d
DJ
20411{ echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20412echo "${ECHO_T}$gdb_cv_struct_lwp" >&6; }
a3828db0 20413if test $gdb_cv_struct_lwp = yes; then
c906108c 20414
a3828db0
MK
20415cat >>confdefs.h <<\_ACEOF
20416#define HAVE_STRUCT_LWP 1
bec39cab 20417_ACEOF
c906108c 20418
97bf5e38 20419fi
c906108c 20420
a3828db0 20421# See if <machine/reg.h> degines `struct reg'.
4e8d927d
DJ
20422{ echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20423echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6; }
a3828db0 20424if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20426else
20427 cat >conftest.$ac_ext <<_ACEOF
20428/* confdefs.h. */
20429_ACEOF
20430cat confdefs.h >>conftest.$ac_ext
20431cat >>conftest.$ac_ext <<_ACEOF
20432/* end confdefs.h. */
a3828db0
MK
20433#include <sys/types.h>
20434#include <machine/reg.h>
bec39cab
AC
20435int
20436main ()
20437{
a3828db0 20438struct reg r;
bec39cab
AC
20439 ;
20440 return 0;
20441}
20442_ACEOF
20443rm -f conftest.$ac_objext
20444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20445 (eval $ac_compile) 2>conftest.er1
20446 ac_status=$?
20447 grep -v '^ *+' conftest.er1 >conftest.err
20448 rm -f conftest.er1
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } &&
121ce6e5 20452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; } &&
20458 { ac_try='test -s conftest.$ac_objext'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }; then
a3828db0 20464 gdb_cv_struct_reg=yes
27ca5dad 20465else
bec39cab
AC
20466 echo "$as_me: failed program was:" >&5
20467sed 's/^/| /' conftest.$ac_ext >&5
20468
4e8d927d 20469 gdb_cv_struct_reg=no
27ca5dad 20470fi
4e8d927d 20471
bec39cab 20472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 20473fi
4e8d927d
DJ
20474{ echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20475echo "${ECHO_T}$gdb_cv_struct_reg" >&6; }
a3828db0 20476if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
20477
20478cat >>confdefs.h <<\_ACEOF
a3828db0 20479#define HAVE_STRUCT_REG 1
bec39cab 20480_ACEOF
27ca5dad
MC
20481
20482fi
97bf5e38 20483
a3828db0
MK
20484# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20485# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
4e8d927d
DJ
20486{ echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20487echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6; }
5c45e068 20488if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 20489 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20490else
bec39cab
AC
20491 cat >conftest.$ac_ext <<_ACEOF
20492/* confdefs.h. */
20493_ACEOF
20494cat confdefs.h >>conftest.$ac_ext
20495cat >>conftest.$ac_ext <<_ACEOF
20496/* end confdefs.h. */
a3828db0 20497#include <machine/reg.h>
5c45e068
MK
20498
20499int
20500main ()
20501{
20502static struct reg ac_aggr;
20503if (ac_aggr.r_fs)
20504return 0;
20505 ;
20506 return 0;
20507}
20508_ACEOF
20509rm -f conftest.$ac_objext
20510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20511 (eval $ac_compile) 2>conftest.er1
20512 ac_status=$?
20513 grep -v '^ *+' conftest.er1 >conftest.err
20514 rm -f conftest.er1
20515 cat conftest.err >&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } &&
121ce6e5 20518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5c45e068
MK
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20521 ac_status=$?
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; } &&
20524 { ac_try='test -s conftest.$ac_objext'
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20527 ac_status=$?
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; }; then
20530 ac_cv_member_struct_reg_r_fs=yes
20531else
20532 echo "$as_me: failed program was:" >&5
20533sed 's/^/| /' conftest.$ac_ext >&5
20534
4e8d927d 20535 cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20536/* confdefs.h. */
20537_ACEOF
20538cat confdefs.h >>conftest.$ac_ext
20539cat >>conftest.$ac_ext <<_ACEOF
20540/* end confdefs.h. */
20541#include <machine/reg.h>
20542
bec39cab
AC
20543int
20544main ()
20545{
5c45e068
MK
20546static struct reg ac_aggr;
20547if (sizeof ac_aggr.r_fs)
20548return 0;
bec39cab
AC
20549 ;
20550 return 0;
20551}
20552_ACEOF
20553rm -f conftest.$ac_objext
20554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20555 (eval $ac_compile) 2>conftest.er1
20556 ac_status=$?
20557 grep -v '^ *+' conftest.er1 >conftest.err
20558 rm -f conftest.er1
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } &&
121ce6e5 20562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } &&
20568 { ac_try='test -s conftest.$ac_objext'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
5c45e068 20574 ac_cv_member_struct_reg_r_fs=yes
3862412b 20575else
bec39cab
AC
20576 echo "$as_me: failed program was:" >&5
20577sed 's/^/| /' conftest.$ac_ext >&5
20578
4e8d927d 20579 ac_cv_member_struct_reg_r_fs=no
3862412b 20580fi
4e8d927d 20581
bec39cab 20582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 20583fi
4e8d927d 20584
5c45e068
MK
20585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20586fi
4e8d927d
DJ
20587{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
20588echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6; }
5c45e068
MK
20589if test $ac_cv_member_struct_reg_r_fs = yes; then
20590
20591cat >>confdefs.h <<_ACEOF
a3828db0 20592#define HAVE_STRUCT_REG_R_FS 1
bec39cab 20593_ACEOF
3862412b 20594
5c45e068 20595
97bf5e38 20596fi
4e8d927d
DJ
20597{ echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
20598echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6; }
5c45e068 20599if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 20600 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20601else
bec39cab
AC
20602 cat >conftest.$ac_ext <<_ACEOF
20603/* confdefs.h. */
20604_ACEOF
20605cat confdefs.h >>conftest.$ac_ext
20606cat >>conftest.$ac_ext <<_ACEOF
20607/* end confdefs.h. */
a3828db0 20608#include <machine/reg.h>
5c45e068 20609
bec39cab
AC
20610int
20611main ()
20612{
5c45e068
MK
20613static struct reg ac_aggr;
20614if (ac_aggr.r_gs)
20615return 0;
bec39cab
AC
20616 ;
20617 return 0;
20618}
20619_ACEOF
20620rm -f conftest.$ac_objext
20621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20622 (eval $ac_compile) 2>conftest.er1
20623 ac_status=$?
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
121ce6e5 20629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; } &&
20635 { ac_try='test -s conftest.$ac_objext'
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
5c45e068 20641 ac_cv_member_struct_reg_r_gs=yes
3862412b 20642else
bec39cab
AC
20643 echo "$as_me: failed program was:" >&5
20644sed 's/^/| /' conftest.$ac_ext >&5
20645
4e8d927d 20646 cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20647/* confdefs.h. */
20648_ACEOF
20649cat confdefs.h >>conftest.$ac_ext
20650cat >>conftest.$ac_ext <<_ACEOF
20651/* end confdefs.h. */
20652#include <machine/reg.h>
20653
20654int
20655main ()
20656{
20657static struct reg ac_aggr;
20658if (sizeof ac_aggr.r_gs)
20659return 0;
20660 ;
20661 return 0;
20662}
20663_ACEOF
20664rm -f conftest.$ac_objext
20665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20666 (eval $ac_compile) 2>conftest.er1
20667 ac_status=$?
20668 grep -v '^ *+' conftest.er1 >conftest.err
20669 rm -f conftest.er1
20670 cat conftest.err >&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } &&
121ce6e5 20673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5c45e068
MK
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675 (eval $ac_try) 2>&5
20676 ac_status=$?
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; } &&
20679 { ac_try='test -s conftest.$ac_objext'
20680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681 (eval $ac_try) 2>&5
20682 ac_status=$?
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; }; then
20685 ac_cv_member_struct_reg_r_gs=yes
20686else
20687 echo "$as_me: failed program was:" >&5
20688sed 's/^/| /' conftest.$ac_ext >&5
20689
4e8d927d 20690 ac_cv_member_struct_reg_r_gs=no
3862412b 20691fi
4e8d927d 20692
bec39cab 20693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 20694fi
4e8d927d 20695
5c45e068
MK
20696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20697fi
4e8d927d
DJ
20698{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
20699echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6; }
5c45e068
MK
20700if test $ac_cv_member_struct_reg_r_gs = yes; then
20701
20702cat >>confdefs.h <<_ACEOF
a3828db0 20703#define HAVE_STRUCT_REG_R_GS 1
bec39cab 20704_ACEOF
3862412b 20705
5c45e068 20706
97bf5e38 20707fi
3862412b 20708
5c45e068 20709
a3828db0 20710# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
4e8d927d
DJ
20711{ echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
20712echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6; }
a3828db0 20713if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 20714 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 20715else
bec39cab
AC
20716 cat >conftest.$ac_ext <<_ACEOF
20717/* confdefs.h. */
20718_ACEOF
20719cat confdefs.h >>conftest.$ac_ext
20720cat >>conftest.$ac_ext <<_ACEOF
20721/* end confdefs.h. */
a3828db0 20722#include <sys/ptrace.h>
bec39cab
AC
20723int
20724main ()
20725{
a3828db0 20726PTRACE_GETREGS;
bec39cab
AC
20727 ;
20728 return 0;
20729}
20730_ACEOF
20731rm -f conftest.$ac_objext
20732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20733 (eval $ac_compile) 2>conftest.er1
20734 ac_status=$?
20735 grep -v '^ *+' conftest.er1 >conftest.err
20736 rm -f conftest.er1
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } &&
121ce6e5 20740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest.$ac_objext'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20749 ac_status=$?
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
a3828db0 20752 gdb_cv_have_ptrace_getregs=yes
451928c5 20753else
bec39cab
AC
20754 echo "$as_me: failed program was:" >&5
20755sed 's/^/| /' conftest.$ac_ext >&5
20756
4e8d927d 20757 gdb_cv_have_ptrace_getregs=no
451928c5 20758fi
4e8d927d 20759
bec39cab 20760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
20761fi
20762
4e8d927d
DJ
20763{ echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
20764echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6; }
a3828db0 20765if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
20766
20767cat >>confdefs.h <<\_ACEOF
a3828db0 20768#define HAVE_PTRACE_GETREGS 1
bec39cab 20769_ACEOF
451928c5 20770
97bf5e38 20771fi
451928c5 20772
a3828db0 20773# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
4e8d927d
DJ
20774{ echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
20775echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6; }
a3828db0 20776if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 20777 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 20778else
bec39cab
AC
20779 cat >conftest.$ac_ext <<_ACEOF
20780/* confdefs.h. */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
20784/* end confdefs.h. */
a3828db0 20785#include <sys/ptrace.h>
bec39cab
AC
20786int
20787main ()
20788{
a3828db0 20789PTRACE_GETFPXREGS;
bec39cab
AC
20790 ;
20791 return 0;
20792}
20793_ACEOF
20794rm -f conftest.$ac_objext
20795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20796 (eval $ac_compile) 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } &&
121ce6e5 20803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; } &&
20809 { ac_try='test -s conftest.$ac_objext'
20810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811 (eval $ac_try) 2>&5
20812 ac_status=$?
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; }; then
a3828db0 20815 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 20816else
bec39cab
AC
20817 echo "$as_me: failed program was:" >&5
20818sed 's/^/| /' conftest.$ac_ext >&5
20819
4e8d927d 20820 gdb_cv_have_ptrace_getfpxregs=no
451928c5 20821fi
4e8d927d 20822
bec39cab 20823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
20824fi
20825
4e8d927d
DJ
20826{ echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
20827echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6; }
a3828db0 20828if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
20829
20830cat >>confdefs.h <<\_ACEOF
a3828db0 20831#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 20832_ACEOF
451928c5 20833
97bf5e38 20834fi
451928c5 20835
a3828db0 20836# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
4e8d927d
DJ
20837{ echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
20838echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6; }
a3828db0 20839if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 20840 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20841else
bec39cab
AC
20842 cat >conftest.$ac_ext <<_ACEOF
20843/* confdefs.h. */
20844_ACEOF
20845cat confdefs.h >>conftest.$ac_ext
20846cat >>conftest.$ac_ext <<_ACEOF
20847/* end confdefs.h. */
a3828db0
MK
20848#include <sys/types.h>
20849#include <sys/ptrace.h>
bec39cab
AC
20850int
20851main ()
20852{
a3828db0 20853PT_GETDBREGS;
bec39cab
AC
20854 ;
20855 return 0;
20856}
20857_ACEOF
20858rm -f conftest.$ac_objext
20859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20860 (eval $ac_compile) 2>conftest.er1
20861 ac_status=$?
20862 grep -v '^ *+' conftest.er1 >conftest.err
20863 rm -f conftest.er1
20864 cat conftest.err >&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } &&
121ce6e5 20867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20870 ac_status=$?
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; } &&
20873 { ac_try='test -s conftest.$ac_objext'
20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875 (eval $ac_try) 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; }; then
a3828db0 20879 gdb_cv_have_pt_getdbregs=yes
3862412b 20880else
bec39cab
AC
20881 echo "$as_me: failed program was:" >&5
20882sed 's/^/| /' conftest.$ac_ext >&5
20883
4e8d927d 20884 gdb_cv_have_pt_getdbregs=no
3862412b 20885fi
4e8d927d 20886
bec39cab 20887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
20888fi
20889
4e8d927d
DJ
20890{ echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
20891echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6; }
a3828db0 20892if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
20893
20894cat >>confdefs.h <<\_ACEOF
a3828db0 20895#define HAVE_PT_GETDBREGS 1
bec39cab 20896_ACEOF
3862412b 20897
97bf5e38 20898fi
3862412b 20899
a3828db0 20900# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
4e8d927d
DJ
20901{ echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
20902echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6; }
a3828db0 20903if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 20904 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20905else
bec39cab
AC
20906 cat >conftest.$ac_ext <<_ACEOF
20907/* confdefs.h. */
20908_ACEOF
20909cat confdefs.h >>conftest.$ac_ext
20910cat >>conftest.$ac_ext <<_ACEOF
20911/* end confdefs.h. */
a3828db0
MK
20912#include <sys/types.h>
20913#include <sys/ptrace.h>
bec39cab
AC
20914int
20915main ()
20916{
a3828db0 20917PT_GETXMMREGS;
bec39cab
AC
20918 ;
20919 return 0;
20920}
20921_ACEOF
20922rm -f conftest.$ac_objext
20923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20924 (eval $ac_compile) 2>conftest.er1
20925 ac_status=$?
20926 grep -v '^ *+' conftest.er1 >conftest.err
20927 rm -f conftest.er1
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } &&
121ce6e5 20931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; } &&
20937 { ac_try='test -s conftest.$ac_objext'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
a3828db0 20943 gdb_cv_have_pt_getxmmregs=yes
3862412b 20944else
bec39cab
AC
20945 echo "$as_me: failed program was:" >&5
20946sed 's/^/| /' conftest.$ac_ext >&5
20947
4e8d927d 20948 gdb_cv_have_pt_getxmmregs=no
3862412b 20949fi
4e8d927d 20950
bec39cab 20951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
20952fi
20953
4e8d927d
DJ
20954{ echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
20955echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6; }
a3828db0 20956if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
20957
20958cat >>confdefs.h <<\_ACEOF
a3828db0 20959#define HAVE_PT_GETXMMREGS 1
bec39cab 20960_ACEOF
3862412b 20961
97bf5e38 20962fi
3862412b 20963
97bf5e38
MK
20964# If we are configured native on GNU/Linux, work around problems with
20965# sys/procfs.h
20966# Also detect which type of /proc is in use, such as for Unixware or Solaris.
20967
20968if test "${target}" = "${host}"; then
20969 case "${host}" in
20970 i[3456]86-*-linux*)
60ca704f
SE
20971
20972cat >>confdefs.h <<\_ACEOF
97bf5e38 20973#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 20974_ACEOF
97bf5e38 20975
60ca704f
SE
20976
20977cat >>confdefs.h <<\_ACEOF
97bf5e38 20978#define sys_quotactl 1
bec39cab 20979_ACEOF
97bf5e38
MK
20980
20981 ;;
97bf5e38 20982 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
20983
20984cat >>confdefs.h <<\_ACEOF
97bf5e38 20985#define NEW_PROC_API 1
bec39cab 20986_ACEOF
97bf5e38
MK
20987
20988 ;;
0bbc026e 20989 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
20990
20991cat >>confdefs.h <<\_ACEOF
97bf5e38 20992#define NEW_PROC_API 1
bec39cab 20993_ACEOF
c960c18f
AC
20994
20995 ;;
20996 mips-sgi-irix5*)
20997 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
20998
20999cat >>confdefs.h <<\_ACEOF
c960c18f 21000#define _KMEMUSER 1
bec39cab 21001_ACEOF
97bf5e38
MK
21002
21003 ;;
21004 esac
21005fi
21006
21007if test "$ac_cv_header_sys_procfs_h" = yes; then
4e8d927d
DJ
21008 { echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21009echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21010 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21012else
21013 cat >conftest.$ac_ext <<_ACEOF
21014/* confdefs.h. */
21015_ACEOF
21016cat confdefs.h >>conftest.$ac_ext
21017cat >>conftest.$ac_ext <<_ACEOF
21018/* end confdefs.h. */
596c9d4b
KB
21019
21020#define _SYSCALL32
21021#include <sys/procfs.h>
bec39cab
AC
21022int
21023main ()
21024{
97bf5e38 21025pstatus_t avar
bec39cab
AC
21026 ;
21027 return 0;
21028}
21029_ACEOF
21030rm -f conftest.$ac_objext
21031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21032 (eval $ac_compile) 2>conftest.er1
21033 ac_status=$?
21034 grep -v '^ *+' conftest.er1 >conftest.err
21035 rm -f conftest.er1
21036 cat conftest.err >&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); } &&
121ce6e5 21039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; } &&
21045 { ac_try='test -s conftest.$ac_objext'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21048 ac_status=$?
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; }; then
97bf5e38 21051 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 21052else
bec39cab
AC
21053 echo "$as_me: failed program was:" >&5
21054sed 's/^/| /' conftest.$ac_ext >&5
21055
4e8d927d 21056 bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 21057
596c9d4b 21058fi
4e8d927d 21059
bec39cab 21060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21061fi
21062
97bf5e38 21063 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
21064
21065cat >>confdefs.h <<\_ACEOF
97bf5e38 21066#define HAVE_PSTATUS_T 1
bec39cab 21067_ACEOF
596c9d4b
KB
21068
21069 fi
4e8d927d
DJ
21070 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21071echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
596c9d4b 21072
4e8d927d
DJ
21073 { echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21074echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21075 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 21077else
bec39cab
AC
21078 cat >conftest.$ac_ext <<_ACEOF
21079/* confdefs.h. */
21080_ACEOF
21081cat confdefs.h >>conftest.$ac_ext
21082cat >>conftest.$ac_ext <<_ACEOF
21083/* end confdefs.h. */
596c9d4b
KB
21084
21085#define _SYSCALL32
21086#include <sys/procfs.h>
bec39cab
AC
21087int
21088main ()
21089{
97bf5e38 21090prrun_t avar
bec39cab
AC
21091 ;
21092 return 0;
21093}
21094_ACEOF
21095rm -f conftest.$ac_objext
21096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21097 (eval $ac_compile) 2>conftest.er1
21098 ac_status=$?
21099 grep -v '^ *+' conftest.er1 >conftest.err
21100 rm -f conftest.er1
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } &&
121ce6e5 21104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21107 ac_status=$?
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; } &&
21110 { ac_try='test -s conftest.$ac_objext'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
97bf5e38 21116 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 21117else
bec39cab
AC
21118 echo "$as_me: failed program was:" >&5
21119sed 's/^/| /' conftest.$ac_ext >&5
21120
4e8d927d 21121 bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 21122
596c9d4b 21123fi
4e8d927d 21124
bec39cab 21125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21126fi
21127
97bf5e38 21128 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
21129
21130cat >>confdefs.h <<\_ACEOF
97bf5e38 21131#define HAVE_PRRUN_T 1
bec39cab 21132_ACEOF
596c9d4b
KB
21133
21134 fi
4e8d927d
DJ
21135 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21136echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
596c9d4b 21137
4e8d927d
DJ
21138 { echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21139echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21140 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 21142else
bec39cab
AC
21143 cat >conftest.$ac_ext <<_ACEOF
21144/* confdefs.h. */
21145_ACEOF
21146cat confdefs.h >>conftest.$ac_ext
21147cat >>conftest.$ac_ext <<_ACEOF
21148/* end confdefs.h. */
596c9d4b
KB
21149
21150#define _SYSCALL32
21151#include <sys/procfs.h>
bec39cab
AC
21152int
21153main ()
21154{
97bf5e38 21155gregset_t avar
bec39cab
AC
21156 ;
21157 return 0;
21158}
21159_ACEOF
21160rm -f conftest.$ac_objext
21161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21162 (eval $ac_compile) 2>conftest.er1
21163 ac_status=$?
21164 grep -v '^ *+' conftest.er1 >conftest.err
21165 rm -f conftest.er1
21166 cat conftest.err >&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } &&
121ce6e5 21169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171 (eval $ac_try) 2>&5
21172 ac_status=$?
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; } &&
21175 { ac_try='test -s conftest.$ac_objext'
21176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21177 (eval $ac_try) 2>&5
21178 ac_status=$?
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; }; then
97bf5e38 21181 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 21182else
bec39cab
AC
21183 echo "$as_me: failed program was:" >&5
21184sed 's/^/| /' conftest.$ac_ext >&5
21185
4e8d927d 21186 bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 21187
596c9d4b 21188fi
4e8d927d 21189
bec39cab 21190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21191fi
21192
97bf5e38 21193 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
21194
21195cat >>confdefs.h <<\_ACEOF
97bf5e38 21196#define HAVE_GREGSET_T 1
bec39cab 21197_ACEOF
596c9d4b
KB
21198
21199 fi
4e8d927d
DJ
21200 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21201echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
451928c5 21202
4e8d927d
DJ
21203 { echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21204echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21205 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 21207else
bec39cab
AC
21208 cat >conftest.$ac_ext <<_ACEOF
21209/* confdefs.h. */
21210_ACEOF
21211cat confdefs.h >>conftest.$ac_ext
21212cat >>conftest.$ac_ext <<_ACEOF
21213/* end confdefs.h. */
97bf5e38
MK
21214
21215#define _SYSCALL32
d84dd0c5 21216#include <sys/procfs.h>
bec39cab
AC
21217int
21218main ()
21219{
97bf5e38 21220fpregset_t avar
bec39cab
AC
21221 ;
21222 return 0;
21223}
21224_ACEOF
21225rm -f conftest.$ac_objext
21226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21227 (eval $ac_compile) 2>conftest.er1
21228 ac_status=$?
21229 grep -v '^ *+' conftest.er1 >conftest.err
21230 rm -f conftest.er1
21231 cat conftest.err >&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } &&
121ce6e5 21234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21237 ac_status=$?
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; } &&
21240 { ac_try='test -s conftest.$ac_objext'
21241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242 (eval $ac_try) 2>&5
21243 ac_status=$?
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); }; }; then
97bf5e38 21246 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 21247else
bec39cab
AC
21248 echo "$as_me: failed program was:" >&5
21249sed 's/^/| /' conftest.$ac_ext >&5
21250
4e8d927d 21251 bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 21252
d84dd0c5 21253fi
4e8d927d 21254
bec39cab 21255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
21256fi
21257
97bf5e38 21258 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
21259
21260cat >>confdefs.h <<\_ACEOF
97bf5e38 21261#define HAVE_FPREGSET_T 1
bec39cab 21262_ACEOF
d84dd0c5 21263
97bf5e38 21264 fi
4e8d927d
DJ
21265 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21266echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
d84dd0c5 21267
4e8d927d
DJ
21268 { echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
21269echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21270 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21272else
bec39cab
AC
21273 cat >conftest.$ac_ext <<_ACEOF
21274/* confdefs.h. */
21275_ACEOF
21276cat confdefs.h >>conftest.$ac_ext
21277cat >>conftest.$ac_ext <<_ACEOF
21278/* end confdefs.h. */
c906108c 21279
97bf5e38
MK
21280#define _SYSCALL32
21281#include <sys/procfs.h>
bec39cab
AC
21282int
21283main ()
21284{
97bf5e38 21285prgregset_t avar
bec39cab
AC
21286 ;
21287 return 0;
21288}
21289_ACEOF
21290rm -f conftest.$ac_objext
21291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21292 (eval $ac_compile) 2>conftest.er1
21293 ac_status=$?
21294 grep -v '^ *+' conftest.er1 >conftest.err
21295 rm -f conftest.er1
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } &&
121ce6e5 21299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; } &&
21305 { ac_try='test -s conftest.$ac_objext'
21306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21308 ac_status=$?
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; }; then
97bf5e38 21311 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 21312else
bec39cab
AC
21313 echo "$as_me: failed program was:" >&5
21314sed 's/^/| /' conftest.$ac_ext >&5
21315
4e8d927d 21316 bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 21317
c906108c 21318fi
4e8d927d 21319
bec39cab 21320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21321fi
21322
97bf5e38 21323 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
21324
21325cat >>confdefs.h <<\_ACEOF
97bf5e38 21326#define HAVE_PRGREGSET_T 1
bec39cab 21327_ACEOF
c906108c 21328
97bf5e38 21329 fi
4e8d927d
DJ
21330 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21331echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
c906108c 21332
4e8d927d
DJ
21333 { echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21334echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21335 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21337else
bec39cab
AC
21338 cat >conftest.$ac_ext <<_ACEOF
21339/* confdefs.h. */
21340_ACEOF
21341cat confdefs.h >>conftest.$ac_ext
21342cat >>conftest.$ac_ext <<_ACEOF
21343/* end confdefs.h. */
97bf5e38
MK
21344
21345#define _SYSCALL32
21346#include <sys/procfs.h>
bec39cab
AC
21347int
21348main ()
21349{
97bf5e38 21350prfpregset_t avar
bec39cab
AC
21351 ;
21352 return 0;
21353}
21354_ACEOF
21355rm -f conftest.$ac_objext
21356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21357 (eval $ac_compile) 2>conftest.er1
21358 ac_status=$?
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } &&
121ce6e5 21364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21367 ac_status=$?
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; } &&
21370 { ac_try='test -s conftest.$ac_objext'
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; }; then
97bf5e38 21376 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 21377else
bec39cab
AC
21378 echo "$as_me: failed program was:" >&5
21379sed 's/^/| /' conftest.$ac_ext >&5
21380
4e8d927d 21381 bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 21382
d45fe813 21383fi
4e8d927d 21384
bec39cab 21385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21386fi
21387
97bf5e38 21388 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
21389
21390cat >>confdefs.h <<\_ACEOF
97bf5e38 21391#define HAVE_PRFPREGSET_T 1
bec39cab 21392_ACEOF
d45fe813 21393
97bf5e38 21394 fi
4e8d927d
DJ
21395 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21396echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
d45fe813 21397
4e8d927d
DJ
21398 { echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21399echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21400 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21402else
bec39cab
AC
21403 cat >conftest.$ac_ext <<_ACEOF
21404/* confdefs.h. */
21405_ACEOF
21406cat confdefs.h >>conftest.$ac_ext
21407cat >>conftest.$ac_ext <<_ACEOF
21408/* end confdefs.h. */
97bf5e38
MK
21409
21410#define _SYSCALL32
21411#include <sys/procfs.h>
bec39cab
AC
21412int
21413main ()
21414{
97bf5e38 21415prgregset32_t avar
bec39cab
AC
21416 ;
21417 return 0;
21418}
21419_ACEOF
21420rm -f conftest.$ac_objext
21421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21422 (eval $ac_compile) 2>conftest.er1
21423 ac_status=$?
21424 grep -v '^ *+' conftest.er1 >conftest.err
21425 rm -f conftest.er1
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
121ce6e5 21429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; } &&
21435 { ac_try='test -s conftest.$ac_objext'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
97bf5e38 21441 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 21442else
bec39cab
AC
21443 echo "$as_me: failed program was:" >&5
21444sed 's/^/| /' conftest.$ac_ext >&5
21445
4e8d927d 21446 bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 21447
d45fe813 21448fi
4e8d927d 21449
bec39cab 21450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21451fi
21452
97bf5e38 21453 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
21454
21455cat >>confdefs.h <<\_ACEOF
97bf5e38 21456#define HAVE_PRGREGSET32_T 1
bec39cab 21457_ACEOF
d45fe813 21458
97bf5e38 21459 fi
4e8d927d
DJ
21460 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21461echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
d45fe813 21462
4e8d927d
DJ
21463 { echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21464echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21465 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21466 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21467else
bec39cab
AC
21468 cat >conftest.$ac_ext <<_ACEOF
21469/* confdefs.h. */
21470_ACEOF
21471cat confdefs.h >>conftest.$ac_ext
21472cat >>conftest.$ac_ext <<_ACEOF
21473/* end confdefs.h. */
97bf5e38
MK
21474
21475#define _SYSCALL32
21476#include <sys/procfs.h>
bec39cab
AC
21477int
21478main ()
21479{
97bf5e38 21480prfpregset32_t avar
bec39cab
AC
21481 ;
21482 return 0;
21483}
21484_ACEOF
21485rm -f conftest.$ac_objext
21486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21487 (eval $ac_compile) 2>conftest.er1
21488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } &&
121ce6e5 21494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; } &&
21500 { ac_try='test -s conftest.$ac_objext'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
97bf5e38 21506 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 21507else
bec39cab
AC
21508 echo "$as_me: failed program was:" >&5
21509sed 's/^/| /' conftest.$ac_ext >&5
21510
4e8d927d 21511 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 21512
d45fe813 21513fi
4e8d927d 21514
bec39cab 21515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21516fi
21517
97bf5e38 21518 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
21519
21520cat >>confdefs.h <<\_ACEOF
97bf5e38 21521#define HAVE_PRFPREGSET32_T 1
bec39cab 21522_ACEOF
d45fe813 21523
97bf5e38 21524 fi
4e8d927d
DJ
21525 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21526echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
d45fe813 21527
4e8d927d
DJ
21528 { echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21529echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21530 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21532else
bec39cab
AC
21533 cat >conftest.$ac_ext <<_ACEOF
21534/* confdefs.h. */
21535_ACEOF
21536cat confdefs.h >>conftest.$ac_ext
21537cat >>conftest.$ac_ext <<_ACEOF
21538/* end confdefs.h. */
97bf5e38 21539
d45fe813 21540#define _SYSCALL32
97bf5e38 21541#include <sys/procfs.h>
bec39cab
AC
21542int
21543main ()
21544{
97bf5e38 21545lwpid_t avar
bec39cab
AC
21546 ;
21547 return 0;
21548}
21549_ACEOF
21550rm -f conftest.$ac_objext
21551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21552 (eval $ac_compile) 2>conftest.er1
21553 ac_status=$?
21554 grep -v '^ *+' conftest.er1 >conftest.err
21555 rm -f conftest.er1
21556 cat conftest.err >&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } &&
121ce6e5 21559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; } &&
21565 { ac_try='test -s conftest.$ac_objext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
97bf5e38 21571 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 21572else
bec39cab
AC
21573 echo "$as_me: failed program was:" >&5
21574sed 's/^/| /' conftest.$ac_ext >&5
21575
4e8d927d 21576 bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 21577
d45fe813 21578fi
4e8d927d 21579
bec39cab 21580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21581fi
21582
97bf5e38 21583 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
21584
21585cat >>confdefs.h <<\_ACEOF
97bf5e38 21586#define HAVE_LWPID_T 1
bec39cab 21587_ACEOF
d45fe813 21588
97bf5e38 21589 fi
4e8d927d
DJ
21590 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21591echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
c906108c 21592
4e8d927d
DJ
21593 { echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
21594echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21595 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21597else
bec39cab
AC
21598 cat >conftest.$ac_ext <<_ACEOF
21599/* confdefs.h. */
21600_ACEOF
21601cat confdefs.h >>conftest.$ac_ext
21602cat >>conftest.$ac_ext <<_ACEOF
21603/* end confdefs.h. */
c906108c 21604
97bf5e38
MK
21605#define _SYSCALL32
21606#include <sys/procfs.h>
bec39cab
AC
21607int
21608main ()
21609{
97bf5e38 21610psaddr_t avar
bec39cab
AC
21611 ;
21612 return 0;
21613}
21614_ACEOF
21615rm -f conftest.$ac_objext
21616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21617 (eval $ac_compile) 2>conftest.er1
21618 ac_status=$?
21619 grep -v '^ *+' conftest.er1 >conftest.err
21620 rm -f conftest.er1
21621 cat conftest.err >&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } &&
121ce6e5 21624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626 (eval $ac_try) 2>&5
21627 ac_status=$?
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; } &&
21630 { ac_try='test -s conftest.$ac_objext'
21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21633 ac_status=$?
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; }; then
97bf5e38 21636 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 21637else
bec39cab
AC
21638 echo "$as_me: failed program was:" >&5
21639sed 's/^/| /' conftest.$ac_ext >&5
21640
4e8d927d 21641 bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 21642
c906108c 21643fi
4e8d927d 21644
bec39cab 21645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21646fi
21647
97bf5e38 21648 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
21649
21650cat >>confdefs.h <<\_ACEOF
97bf5e38 21651#define HAVE_PSADDR_T 1
bec39cab 21652_ACEOF
c906108c 21653
97bf5e38 21654 fi
4e8d927d
DJ
21655 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21656echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
c906108c 21657
4e8d927d
DJ
21658 { echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
21659echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21660 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21662else
bec39cab
AC
21663 cat >conftest.$ac_ext <<_ACEOF
21664/* confdefs.h. */
21665_ACEOF
21666cat confdefs.h >>conftest.$ac_ext
21667cat >>conftest.$ac_ext <<_ACEOF
21668/* end confdefs.h. */
c906108c 21669
97bf5e38
MK
21670#define _SYSCALL32
21671#include <sys/procfs.h>
bec39cab
AC
21672int
21673main ()
21674{
97bf5e38 21675prsysent_t avar
bec39cab
AC
21676 ;
21677 return 0;
21678}
21679_ACEOF
21680rm -f conftest.$ac_objext
21681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21682 (eval $ac_compile) 2>conftest.er1
21683 ac_status=$?
21684 grep -v '^ *+' conftest.er1 >conftest.err
21685 rm -f conftest.er1
21686 cat conftest.err >&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } &&
121ce6e5 21689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21692 ac_status=$?
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; } &&
21695 { ac_try='test -s conftest.$ac_objext'
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697 (eval $ac_try) 2>&5
21698 ac_status=$?
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
97bf5e38 21701 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 21702else
bec39cab
AC
21703 echo "$as_me: failed program was:" >&5
21704sed 's/^/| /' conftest.$ac_ext >&5
21705
4e8d927d 21706 bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 21707
c906108c 21708fi
4e8d927d 21709
bec39cab 21710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21711fi
21712
97bf5e38 21713 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
21714
21715cat >>confdefs.h <<\_ACEOF
97bf5e38 21716#define HAVE_PRSYSENT_T 1
bec39cab 21717_ACEOF
c906108c 21718
97bf5e38 21719 fi
4e8d927d
DJ
21720 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
21721echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
c906108c 21722
4e8d927d
DJ
21723 { echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
21724echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21725 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
21726 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21727else
bec39cab
AC
21728 cat >conftest.$ac_ext <<_ACEOF
21729/* confdefs.h. */
21730_ACEOF
21731cat confdefs.h >>conftest.$ac_ext
21732cat >>conftest.$ac_ext <<_ACEOF
21733/* end confdefs.h. */
c906108c 21734
97bf5e38
MK
21735#define _SYSCALL32
21736#include <sys/procfs.h>
bec39cab
AC
21737int
21738main ()
21739{
97bf5e38 21740pr_sigset_t avar
bec39cab
AC
21741 ;
21742 return 0;
21743}
21744_ACEOF
21745rm -f conftest.$ac_objext
21746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21747 (eval $ac_compile) 2>conftest.er1
21748 ac_status=$?
21749 grep -v '^ *+' conftest.er1 >conftest.err
21750 rm -f conftest.er1
21751 cat conftest.err >&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } &&
121ce6e5 21754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; } &&
21760 { ac_try='test -s conftest.$ac_objext'
21761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762 (eval $ac_try) 2>&5
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
97bf5e38 21766 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 21767else
bec39cab
AC
21768 echo "$as_me: failed program was:" >&5
21769sed 's/^/| /' conftest.$ac_ext >&5
21770
4e8d927d 21771 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 21772
c906108c 21773fi
4e8d927d 21774
bec39cab 21775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21776fi
21777
97bf5e38 21778 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
21779
21780cat >>confdefs.h <<\_ACEOF
97bf5e38 21781#define HAVE_PR_SIGSET_T 1
bec39cab 21782_ACEOF
c906108c 21783
97bf5e38 21784 fi
4e8d927d
DJ
21785 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
21786echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
c906108c 21787
4e8d927d
DJ
21788 { echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
21789echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21790 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21792else
bec39cab
AC
21793 cat >conftest.$ac_ext <<_ACEOF
21794/* confdefs.h. */
21795_ACEOF
21796cat confdefs.h >>conftest.$ac_ext
21797cat >>conftest.$ac_ext <<_ACEOF
21798/* end confdefs.h. */
c906108c 21799
97bf5e38
MK
21800#define _SYSCALL32
21801#include <sys/procfs.h>
bec39cab
AC
21802int
21803main ()
21804{
97bf5e38 21805pr_sigaction64_t avar
bec39cab
AC
21806 ;
21807 return 0;
21808}
21809_ACEOF
21810rm -f conftest.$ac_objext
21811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21812 (eval $ac_compile) 2>conftest.er1
21813 ac_status=$?
21814 grep -v '^ *+' conftest.er1 >conftest.err
21815 rm -f conftest.er1
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } &&
121ce6e5 21819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821 (eval $ac_try) 2>&5
21822 ac_status=$?
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; } &&
21825 { ac_try='test -s conftest.$ac_objext'
21826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827 (eval $ac_try) 2>&5
21828 ac_status=$?
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
97bf5e38 21831 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 21832else
bec39cab
AC
21833 echo "$as_me: failed program was:" >&5
21834sed 's/^/| /' conftest.$ac_ext >&5
21835
4e8d927d 21836 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 21837
c906108c 21838fi
4e8d927d 21839
bec39cab 21840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21841fi
21842
97bf5e38 21843 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
21844
21845cat >>confdefs.h <<\_ACEOF
97bf5e38 21846#define HAVE_PR_SIGACTION64_T 1
bec39cab 21847_ACEOF
c906108c 21848
97bf5e38 21849 fi
4e8d927d
DJ
21850 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
21851echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
97bf5e38 21852
4e8d927d
DJ
21853 { echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
21854echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21855 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21857else
bec39cab
AC
21858 cat >conftest.$ac_ext <<_ACEOF
21859/* confdefs.h. */
21860_ACEOF
21861cat confdefs.h >>conftest.$ac_ext
21862cat >>conftest.$ac_ext <<_ACEOF
21863/* end confdefs.h. */
97bf5e38
MK
21864
21865#define _SYSCALL32
21866#include <sys/procfs.h>
bec39cab
AC
21867int
21868main ()
21869{
97bf5e38 21870pr_siginfo64_t avar
bec39cab
AC
21871 ;
21872 return 0;
21873}
21874_ACEOF
21875rm -f conftest.$ac_objext
21876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21877 (eval $ac_compile) 2>conftest.er1
21878 ac_status=$?
21879 grep -v '^ *+' conftest.er1 >conftest.err
21880 rm -f conftest.er1
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } &&
121ce6e5 21884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try='test -s conftest.$ac_objext'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21893 ac_status=$?
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
97bf5e38
MK
21896 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
21897else
bec39cab
AC
21898 echo "$as_me: failed program was:" >&5
21899sed 's/^/| /' conftest.$ac_ext >&5
21900
4e8d927d 21901 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 21902
97bf5e38 21903fi
4e8d927d 21904
bec39cab 21905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21906fi
c906108c 21907
97bf5e38 21908 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
21909
21910cat >>confdefs.h <<\_ACEOF
97bf5e38 21911#define HAVE_PR_SIGINFO64_T 1
bec39cab 21912_ACEOF
c906108c 21913
97bf5e38 21914 fi
4e8d927d
DJ
21915 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
21916echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
bec39cab
AC
21917
21918
97bf5e38
MK
21919
21920
21921
97bf5e38 21922 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4e8d927d
DJ
21923 { echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
21924echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6; }
bec39cab
AC
21925 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
21927else
21928 if test "$cross_compiling" = yes; then
97bf5e38 21929 gdb_cv_prfpregset_t_broken=yes
c906108c 21930else
bec39cab
AC
21931 cat >conftest.$ac_ext <<_ACEOF
21932/* confdefs.h. */
21933_ACEOF
21934cat confdefs.h >>conftest.$ac_ext
21935cat >>conftest.$ac_ext <<_ACEOF
21936/* end confdefs.h. */
97bf5e38
MK
21937#include <sys/procfs.h>
21938 int main ()
21939 {
21940 if (sizeof (prfpregset_t) == sizeof (void *))
21941 return 1;
21942 return 0;
21943 }
bec39cab
AC
21944_ACEOF
21945rm -f conftest$ac_exeext
21946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21947 (eval $ac_link) 2>&5
21948 ac_status=$?
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21953 ac_status=$?
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; }; then
97bf5e38 21956 gdb_cv_prfpregset_t_broken=no
c906108c 21957else
bec39cab
AC
21958 echo "$as_me: program exited with status $ac_status" >&5
21959echo "$as_me: failed program was:" >&5
21960sed 's/^/| /' conftest.$ac_ext >&5
21961
21962( exit $ac_status )
21963gdb_cv_prfpregset_t_broken=yes
c906108c 21964fi
4e8d927d 21965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 21966fi
4e8d927d
DJ
21967
21968
c906108c
SS
21969fi
21970
4e8d927d
DJ
21971 { echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
21972echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6; }
97bf5e38 21973 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
21974
21975cat >>confdefs.h <<\_ACEOF
97bf5e38 21976#define PRFPREGSET_T_BROKEN 1
bec39cab 21977_ACEOF
c906108c 21978
97bf5e38
MK
21979 fi
21980 fi
c906108c 21981
bec39cab 21982
4e8d927d
DJ
21983 { echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
21984echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6; }
bec39cab
AC
21985 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21987else
bec39cab
AC
21988 cat >conftest.$ac_ext <<_ACEOF
21989/* confdefs.h. */
21990_ACEOF
21991cat confdefs.h >>conftest.$ac_ext
21992cat >>conftest.$ac_ext <<_ACEOF
21993/* end confdefs.h. */
97bf5e38
MK
21994#include <unistd.h>
21995#include <sys/types.h>
21996#include <sys/procfs.h>
21997
bec39cab
AC
21998int
21999main ()
22000{
97bf5e38
MK
22001
22002 int dummy;;
22003 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
22004
22005 ;
22006 return 0;
22007}
22008_ACEOF
22009rm -f conftest.$ac_objext
22010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22011 (eval $ac_compile) 2>conftest.er1
22012 ac_status=$?
22013 grep -v '^ *+' conftest.er1 >conftest.err
22014 rm -f conftest.er1
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } &&
121ce6e5 22018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020 (eval $ac_try) 2>&5
22021 ac_status=$?
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; } &&
22024 { ac_try='test -s conftest.$ac_objext'
22025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026 (eval $ac_try) 2>&5
22027 ac_status=$?
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); }; }; then
97bf5e38 22030 gdb_cv_have_procfs_piocset=yes
c906108c 22031else
bec39cab
AC
22032 echo "$as_me: failed program was:" >&5
22033sed 's/^/| /' conftest.$ac_ext >&5
22034
4e8d927d 22035 gdb_cv_have_procfs_piocset=no
c906108c 22036fi
4e8d927d 22037
bec39cab 22038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22039fi
97bf5e38 22040
4e8d927d
DJ
22041 { echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22042echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6; }
97bf5e38 22043 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
22044
22045cat >>confdefs.h <<\_ACEOF
97bf5e38 22046#define HAVE_PROCFS_PIOCSET 1
bec39cab 22047_ACEOF
97bf5e38
MK
22048
22049 fi
c906108c 22050fi
c906108c 22051
97bf5e38 22052if test ${host} = ${target} ; then
bec39cab 22053
4e8d927d
DJ
22054 { echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22055echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6; }
bec39cab
AC
22056 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22058else
22059 cat >conftest.$ac_ext <<_ACEOF
22060/* confdefs.h. */
22061_ACEOF
22062cat confdefs.h >>conftest.$ac_ext
22063cat >>conftest.$ac_ext <<_ACEOF
22064/* end confdefs.h. */
97bf5e38 22065#include <link.h>
bec39cab
AC
22066int
22067main ()
22068{
97bf5e38 22069struct link_map lm; (void) lm.l_addr;
bec39cab
AC
22070 ;
22071 return 0;
22072}
22073_ACEOF
22074rm -f conftest.$ac_objext
22075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22076 (eval $ac_compile) 2>conftest.er1
22077 ac_status=$?
22078 grep -v '^ *+' conftest.er1 >conftest.err
22079 rm -f conftest.er1
22080 cat conftest.err >&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); } &&
121ce6e5 22083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
22084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22085 (eval $ac_try) 2>&5
22086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; } &&
22089 { ac_try='test -s conftest.$ac_objext'
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22092 ac_status=$?
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; }; then
97bf5e38 22095 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 22096else
bec39cab
AC
22097 echo "$as_me: failed program was:" >&5
22098sed 's/^/| /' conftest.$ac_ext >&5
22099
4e8d927d 22100 gdb_cv_have_struct_link_map_with_l_members=no
c906108c 22101fi
4e8d927d 22102
bec39cab 22103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22104fi
22105
4e8d927d
DJ
22106 { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22107echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6; }
97bf5e38 22108 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
22109
22110cat >>confdefs.h <<\_ACEOF
97bf5e38 22111#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 22112_ACEOF
97bf5e38
MK
22113
22114 fi
22115
bec39cab 22116
4e8d927d
DJ
22117 { echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22118echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6; }
bec39cab
AC
22119 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22121else
bec39cab
AC
22122 cat >conftest.$ac_ext <<_ACEOF
22123/* confdefs.h. */
22124_ACEOF
22125cat confdefs.h >>conftest.$ac_ext
22126cat >>conftest.$ac_ext <<_ACEOF
22127/* end confdefs.h. */
97bf5e38
MK
22128#include <sys/types.h>
22129#include <link.h>
bec39cab
AC
22130int
22131main ()
22132{
97bf5e38 22133struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
22134 ;
22135 return 0;
22136}
22137_ACEOF
22138rm -f conftest.$ac_objext
22139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22140 (eval $ac_compile) 2>conftest.er1
22141 ac_status=$?
22142 grep -v '^ *+' conftest.er1 >conftest.err
22143 rm -f conftest.er1
22144 cat conftest.err >&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } &&
121ce6e5 22147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; } &&
22153 { ac_try='test -s conftest.$ac_objext'
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; }; then
97bf5e38
MK
22159 gdb_cv_have_struct_link_map_with_lm_members=yes
22160else
bec39cab
AC
22161 echo "$as_me: failed program was:" >&5
22162sed 's/^/| /' conftest.$ac_ext >&5
22163
4e8d927d 22164 gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 22165fi
4e8d927d 22166
bec39cab 22167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22168fi
c906108c 22169
4e8d927d
DJ
22170 { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22171echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
97bf5e38 22172 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
22173
22174cat >>confdefs.h <<\_ACEOF
97bf5e38 22175#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 22176_ACEOF
97bf5e38
MK
22177
22178 fi
22179
bec39cab 22180
4e8d927d
DJ
22181 { echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22182echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6; }
bec39cab
AC
22183 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22185else
bec39cab
AC
22186 cat >conftest.$ac_ext <<_ACEOF
22187/* confdefs.h. */
22188_ACEOF
22189cat confdefs.h >>conftest.$ac_ext
22190cat >>conftest.$ac_ext <<_ACEOF
22191/* end confdefs.h. */
97bf5e38
MK
22192#include <sys/types.h>
22193#ifdef HAVE_NLIST_H
22194#include <nlist.h>
22195#endif
22196#include <link.h>
bec39cab
AC
22197int
22198main ()
22199{
97bf5e38 22200struct so_map lm; (void) lm.som_addr;
bec39cab
AC
22201 ;
22202 return 0;
22203}
22204_ACEOF
22205rm -f conftest.$ac_objext
22206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22207 (eval $ac_compile) 2>conftest.er1
22208 ac_status=$?
22209 grep -v '^ *+' conftest.er1 >conftest.err
22210 rm -f conftest.er1
22211 cat conftest.err >&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } &&
121ce6e5 22214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
22215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22217 ac_status=$?
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; } &&
22220 { ac_try='test -s conftest.$ac_objext'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22223 ac_status=$?
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }; then
97bf5e38
MK
22226 gdb_cv_have_struct_so_map_with_som_members=yes
22227else
bec39cab
AC
22228 echo "$as_me: failed program was:" >&5
22229sed 's/^/| /' conftest.$ac_ext >&5
22230
4e8d927d 22231 gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 22232fi
4e8d927d 22233
bec39cab 22234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22235fi
c906108c 22236
4e8d927d
DJ
22237 { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
22238echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6; }
97bf5e38 22239 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
22240
22241cat >>confdefs.h <<\_ACEOF
97bf5e38 22242#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 22243_ACEOF
c906108c 22244
97bf5e38 22245 fi
c906108c 22246
bec39cab 22247
4e8d927d
DJ
22248 { echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
22249echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6; }
bec39cab
AC
22250 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22252else
bec39cab
AC
22253 cat >conftest.$ac_ext <<_ACEOF
22254/* confdefs.h. */
22255_ACEOF
22256cat confdefs.h >>conftest.$ac_ext
22257cat >>conftest.$ac_ext <<_ACEOF
22258/* end confdefs.h. */
97bf5e38
MK
22259#define _SYSCALL32
22260#include <sys/link.h>
bec39cab
AC
22261int
22262main ()
22263{
97bf5e38 22264struct link_map32 l;
bec39cab
AC
22265 ;
22266 return 0;
22267}
22268_ACEOF
22269rm -f conftest.$ac_objext
22270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22271 (eval $ac_compile) 2>conftest.er1
22272 ac_status=$?
22273 grep -v '^ *+' conftest.er1 >conftest.err
22274 rm -f conftest.er1
22275 cat conftest.err >&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } &&
121ce6e5 22278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22281 ac_status=$?
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; } &&
22284 { ac_try='test -s conftest.$ac_objext'
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22287 ac_status=$?
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; }; then
97bf5e38
MK
22290 gdb_cv_have_struct_link_map32=yes
22291else
bec39cab
AC
22292 echo "$as_me: failed program was:" >&5
22293sed 's/^/| /' conftest.$ac_ext >&5
22294
4e8d927d 22295 gdb_cv_have_struct_link_map32=no
97bf5e38 22296fi
4e8d927d 22297
bec39cab 22298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22299fi
c906108c 22300
4e8d927d
DJ
22301 { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22302echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6; }
97bf5e38 22303 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
22304
22305cat >>confdefs.h <<\_ACEOF
97bf5e38 22306#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 22307_ACEOF
c906108c 22308
60ca704f
SE
22309
22310cat >>confdefs.h <<\_ACEOF
97bf5e38 22311#define _SYSCALL32 1
bec39cab 22312_ACEOF
c906108c 22313
97bf5e38
MK
22314 fi
22315fi
c906108c 22316
bc8bcb4b 22317# Check if the compiler supports the `long long' type.
c906108c 22318
4e8d927d
DJ
22319{ echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22320echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6; }
bec39cab
AC
22321if test "${gdb_cv_c_long_long+set}" = set; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22323else
bec39cab
AC
22324 cat >conftest.$ac_ext <<_ACEOF
22325/* confdefs.h. */
22326_ACEOF
22327cat confdefs.h >>conftest.$ac_ext
22328cat >>conftest.$ac_ext <<_ACEOF
22329/* end confdefs.h. */
bc8bcb4b 22330extern long long foo;
bec39cab
AC
22331int
22332main ()
22333{
bc8bcb4b 22334switch (foo & 2) { case 0: return 1; }
bec39cab
AC
22335 ;
22336 return 0;
22337}
22338_ACEOF
22339rm -f conftest.$ac_objext
22340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22341 (eval $ac_compile) 2>conftest.er1
22342 ac_status=$?
22343 grep -v '^ *+' conftest.er1 >conftest.err
22344 rm -f conftest.er1
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } &&
121ce6e5 22348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
22349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22350 (eval $ac_try) 2>&5
22351 ac_status=$?
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); }; } &&
22354 { ac_try='test -s conftest.$ac_objext'
22355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356 (eval $ac_try) 2>&5
22357 ac_status=$?
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); }; }; then
97bf5e38
MK
22360 gdb_cv_c_long_long=yes
22361else
bec39cab
AC
22362 echo "$as_me: failed program was:" >&5
22363sed 's/^/| /' conftest.$ac_ext >&5
22364
4e8d927d 22365 gdb_cv_c_long_long=no
97bf5e38 22366fi
4e8d927d 22367
bec39cab 22368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22369fi
4e8d927d
DJ
22370{ echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22371echo "${ECHO_T}$gdb_cv_c_long_long" >&6; }
97bf5e38 22372if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
22373
22374cat >>confdefs.h <<\_ACEOF
97bf5e38 22375#define CC_HAS_LONG_LONG 1
bec39cab 22376_ACEOF
97bf5e38
MK
22377
22378fi
22379
bc8bcb4b 22380# Check if the compiler and runtime support printing long longs.
97bf5e38 22381
4e8d927d
DJ
22382{ echo "$as_me:$LINENO: checking for long long support in printf" >&5
22383echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6; }
bec39cab
AC
22384if test "${gdb_cv_printf_has_long_long+set}" = set; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22386else
22387 if test "$cross_compiling" = yes; then
22388 gdb_cv_printf_has_long_long=no
22389else
bec39cab
AC
22390 cat >conftest.$ac_ext <<_ACEOF
22391/* confdefs.h. */
22392_ACEOF
22393cat confdefs.h >>conftest.$ac_ext
22394cat >>conftest.$ac_ext <<_ACEOF
22395/* end confdefs.h. */
bc8bcb4b
MK
22396$ac_includes_default
22397int
22398main ()
22399{
22400char buf[32];
97bf5e38
MK
22401 long long l = 0;
22402 l = (l << 16) + 0x0123;
22403 l = (l << 16) + 0x4567;
22404 l = (l << 16) + 0x89ab;
22405 l = (l << 16) + 0xcdef;
22406 sprintf (buf, "0x%016llx", l);
22407 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
22408 ;
22409 return 0;
c906108c 22410}
bec39cab
AC
22411_ACEOF
22412rm -f conftest$ac_exeext
22413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22414 (eval $ac_link) 2>&5
22415 ac_status=$?
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22419 (eval $ac_try) 2>&5
22420 ac_status=$?
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); }; }; then
97bf5e38
MK
22423 gdb_cv_printf_has_long_long=yes
22424else
bec39cab
AC
22425 echo "$as_me: program exited with status $ac_status" >&5
22426echo "$as_me: failed program was:" >&5
22427sed 's/^/| /' conftest.$ac_ext >&5
22428
22429( exit $ac_status )
22430gdb_cv_printf_has_long_long=no
97bf5e38 22431fi
4e8d927d 22432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 22433fi
4e8d927d
DJ
22434
22435
97bf5e38 22436fi
4e8d927d
DJ
22437{ echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22438echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6; }
97bf5e38 22439if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
22440
22441cat >>confdefs.h <<\_ACEOF
97bf5e38 22442#define PRINTF_HAS_LONG_LONG 1
bec39cab 22443_ACEOF
97bf5e38
MK
22444
22445fi
97bf5e38 22446
bc8bcb4b
MK
22447# Check if the compiler supports the `long double' type. We can't use
22448# AC_C_LONG_DOUBLE because that one does additional checks on the
22449# constants defined in <float.h> that fail on some systems,
22450# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 22451
4e8d927d
DJ
22452{ echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22453echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6; }
bc8bcb4b 22454if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 22455 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22456else
bec39cab
AC
22457 cat >conftest.$ac_ext <<_ACEOF
22458/* confdefs.h. */
22459_ACEOF
22460cat confdefs.h >>conftest.$ac_ext
22461cat >>conftest.$ac_ext <<_ACEOF
22462/* end confdefs.h. */
97bf5e38 22463long double foo;
bec39cab
AC
22464_ACEOF
22465rm -f conftest.$ac_objext
22466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22467 (eval $ac_compile) 2>conftest.er1
22468 ac_status=$?
22469 grep -v '^ *+' conftest.er1 >conftest.err
22470 rm -f conftest.er1
22471 cat conftest.err >&5
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); } &&
121ce6e5 22474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22477 ac_status=$?
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; } &&
22480 { ac_try='test -s conftest.$ac_objext'
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22483 ac_status=$?
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; }; then
bc8bcb4b 22486 gdb_cv_c_long_double=yes
97bf5e38 22487else
bec39cab
AC
22488 echo "$as_me: failed program was:" >&5
22489sed 's/^/| /' conftest.$ac_ext >&5
22490
4e8d927d 22491 gdb_cv_c_long_double=no
97bf5e38 22492fi
4e8d927d 22493
bec39cab 22494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22495fi
4e8d927d
DJ
22496{ echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22497echo "${ECHO_T}$gdb_cv_c_long_double" >&6; }
bc8bcb4b 22498if test $gdb_cv_c_long_double = yes; then
c906108c 22499
bc8bcb4b 22500cat >>confdefs.h <<\_ACEOF
97bf5e38 22501#define HAVE_LONG_DOUBLE 1
bec39cab 22502_ACEOF
97bf5e38
MK
22503
22504fi
22505
bc8bcb4b 22506# Check if the compiler and runtime support printing long doubles.
97bf5e38 22507
4e8d927d
DJ
22508{ echo "$as_me:$LINENO: checking for long double support in printf" >&5
22509echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6; }
bec39cab
AC
22510if test "${gdb_cv_printf_has_long_double+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22512else
22513 if test "$cross_compiling" = yes; then
22514 gdb_cv_printf_has_long_double=no
22515else
bec39cab
AC
22516 cat >conftest.$ac_ext <<_ACEOF
22517/* confdefs.h. */
22518_ACEOF
22519cat confdefs.h >>conftest.$ac_ext
22520cat >>conftest.$ac_ext <<_ACEOF
22521/* end confdefs.h. */
bc8bcb4b
MK
22522$ac_includes_default
22523int
22524main ()
22525{
22526char buf[16];
97bf5e38
MK
22527 long double f = 3.141592653;
22528 sprintf (buf, "%Lg", f);
22529 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
22530 ;
22531 return 0;
97bf5e38 22532}
bec39cab
AC
22533_ACEOF
22534rm -f conftest$ac_exeext
22535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22536 (eval $ac_link) 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541 (eval $ac_try) 2>&5
22542 ac_status=$?
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }; }; then
97bf5e38 22545 gdb_cv_printf_has_long_double=yes
c906108c 22546else
bec39cab
AC
22547 echo "$as_me: program exited with status $ac_status" >&5
22548echo "$as_me: failed program was:" >&5
22549sed 's/^/| /' conftest.$ac_ext >&5
22550
22551( exit $ac_status )
22552gdb_cv_printf_has_long_double=no
c906108c 22553fi
4e8d927d 22554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 22555fi
4e8d927d
DJ
22556
22557
c906108c 22558fi
4e8d927d
DJ
22559{ echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
22560echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6; }
97bf5e38 22561if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
22562
22563cat >>confdefs.h <<\_ACEOF
97bf5e38 22564#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 22565_ACEOF
97bf5e38
MK
22566
22567fi
97bf5e38 22568
bc8bcb4b 22569# Check if the compiler and runtime support scanning long doubles.
97bf5e38 22570
4e8d927d
DJ
22571{ echo "$as_me:$LINENO: checking for long double support in scanf" >&5
22572echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6; }
bec39cab
AC
22573if test "${gdb_cv_scanf_has_long_double+set}" = set; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22575else
22576 if test "$cross_compiling" = yes; then
22577 gdb_cv_scanf_has_long_double=no
22578else
bec39cab
AC
22579 cat >conftest.$ac_ext <<_ACEOF
22580/* confdefs.h. */
22581_ACEOF
22582cat confdefs.h >>conftest.$ac_ext
22583cat >>conftest.$ac_ext <<_ACEOF
22584/* end confdefs.h. */
bc8bcb4b
MK
22585#include <stdio.h>
22586int
22587main ()
22588{
22589char *buf = "3.141592653";
97bf5e38
MK
22590 long double f = 0;
22591 sscanf (buf, "%Lg", &f);
22592 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
22593 ;
22594 return 0;
97bf5e38 22595}
bec39cab
AC
22596_ACEOF
22597rm -f conftest$ac_exeext
22598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22599 (eval $ac_link) 2>&5
22600 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22605 ac_status=$?
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; }; then
97bf5e38
MK
22608 gdb_cv_scanf_has_long_double=yes
22609else
bec39cab
AC
22610 echo "$as_me: program exited with status $ac_status" >&5
22611echo "$as_me: failed program was:" >&5
22612sed 's/^/| /' conftest.$ac_ext >&5
22613
22614( exit $ac_status )
22615gdb_cv_scanf_has_long_double=no
97bf5e38 22616fi
4e8d927d 22617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 22618fi
4e8d927d
DJ
22619
22620
c906108c 22621fi
4e8d927d
DJ
22622{ echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
22623echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6; }
97bf5e38 22624if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
22625
22626cat >>confdefs.h <<\_ACEOF
97bf5e38 22627#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 22628_ACEOF
97bf5e38
MK
22629
22630fi
c906108c 22631
438013df
AO
22632case ${host_os} in
22633aix*)
4e8d927d
DJ
22634 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
22635echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
bec39cab
AC
22636if test "${gdb_cv_bigtoc+set}" = set; then
22637 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 22638else
bec39cab 22639
438013df
AO
22640 SAVE_LDFLAGS=$LDFLAGS
22641
22642 case $GCC in
22643 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
22644 *) gdb_cv_bigtoc=-bbigtoc ;;
22645 esac
22646
22647 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
22648 cat >conftest.$ac_ext <<_ACEOF
22649/* confdefs.h. */
22650_ACEOF
22651cat confdefs.h >>conftest.$ac_ext
22652cat >>conftest.$ac_ext <<_ACEOF
22653/* end confdefs.h. */
438013df 22654
bec39cab
AC
22655int
22656main ()
22657{
438013df 22658int i;
bec39cab
AC
22659 ;
22660 return 0;
22661}
22662_ACEOF
22663rm -f conftest.$ac_objext conftest$ac_exeext
22664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22665 (eval $ac_link) 2>conftest.er1
22666 ac_status=$?
22667 grep -v '^ *+' conftest.er1 >conftest.err
22668 rm -f conftest.er1
22669 cat conftest.err >&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } &&
121ce6e5 22672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; } &&
22678 { ac_try='test -s conftest$ac_exeext'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22681 ac_status=$?
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; }; then
438013df
AO
22684 :
22685else
bec39cab
AC
22686 echo "$as_me: failed program was:" >&5
22687sed 's/^/| /' conftest.$ac_ext >&5
22688
4e8d927d 22689 gdb_cv_bigtoc=
438013df 22690fi
4e8d927d 22691
bec39cab
AC
22692rm -f conftest.err conftest.$ac_objext \
22693 conftest$ac_exeext conftest.$ac_ext
ec76baa5 22694 LDFLAGS="${SAVE_LDFLAGS}"
438013df 22695
bec39cab 22696fi
4e8d927d
DJ
22697{ echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
22698echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
438013df
AO
22699 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
22700 ;;
22701esac
22702
c906108c
SS
22703
22704
22705if test ${build} = ${host} -a ${host} = ${target} ; then
22706 case ${host_os} in
22707 hpux*)
4e8d927d
DJ
22708 { echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
22709echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6; }
c906108c
SS
22710 if test -f /usr/include/dce/cma_config.h ; then
22711 if test "$GCC" = "yes" ; then
4e8d927d
DJ
22712 { echo "$as_me:$LINENO: result: yes" >&5
22713echo "${ECHO_T}yes" >&6; }
60ca704f
SE
22714
22715cat >>confdefs.h <<\_ACEOF
c906108c 22716#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 22717_ACEOF
c906108c 22718
3483b318 22719 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
22720 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
22721 else
4e8d927d
DJ
22722 { echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
22723echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6; }
c906108c
SS
22724 fi
22725 else
4e8d927d
DJ
22726 { echo "$as_me:$LINENO: result: no" >&5
22727echo "${ECHO_T}no" >&6; }
c906108c
SS
22728 fi
22729 ;;
22730 solaris*)
d92419e5
JB
22731 # See if thread_db library is around for Solaris thread debugging.
22732 # Note that we must explicitly test for version 1 of the library
22733 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
22734 # the same API.
4e8d927d
DJ
22735 { echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
22736echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6; }
c906108c 22737 if test -f /usr/lib/libthread_db.so.1 ; then
4e8d927d
DJ
22738 { echo "$as_me:$LINENO: result: yes" >&5
22739echo "${ECHO_T}yes" >&6; }
60ca704f
SE
22740
22741cat >>confdefs.h <<\_ACEOF
c906108c 22742#define HAVE_THREAD_DB_LIB 1
bec39cab 22743_ACEOF
c906108c 22744
3483b318 22745 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 22746 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 22747
4e8d927d
DJ
22748{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22749echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
bec39cab
AC
22750if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22752else
bec39cab 22753 ac_check_lib_save_LIBS=$LIBS
c906108c 22754LIBS="-ldl $LIBS"
bec39cab
AC
22755cat >conftest.$ac_ext <<_ACEOF
22756/* confdefs.h. */
22757_ACEOF
22758cat confdefs.h >>conftest.$ac_ext
22759cat >>conftest.$ac_ext <<_ACEOF
22760/* end confdefs.h. */
22761
4e8d927d
DJ
22762/* Override any GCC internal prototype to avoid an error.
22763 Use char because int might match the return type of a GCC
22764 builtin and then its argument prototype would still apply. */
bec39cab
AC
22765#ifdef __cplusplus
22766extern "C"
22767#endif
bec39cab
AC
22768char dlopen ();
22769int
22770main ()
22771{
4e8d927d 22772return dlopen ();
bec39cab
AC
22773 ;
22774 return 0;
22775}
22776_ACEOF
22777rm -f conftest.$ac_objext conftest$ac_exeext
22778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22779 (eval $ac_link) 2>conftest.er1
22780 ac_status=$?
22781 grep -v '^ *+' conftest.er1 >conftest.err
22782 rm -f conftest.er1
22783 cat conftest.err >&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } &&
121ce6e5 22786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788 (eval $ac_try) 2>&5
22789 ac_status=$?
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; } &&
22792 { ac_try='test -s conftest$ac_exeext'
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22795 ac_status=$?
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }; then
22798 ac_cv_lib_dl_dlopen=yes
22799else
22800 echo "$as_me: failed program was:" >&5
22801sed 's/^/| /' conftest.$ac_ext >&5
22802
4e8d927d 22803 ac_cv_lib_dl_dlopen=no
bec39cab 22804fi
4e8d927d 22805
bec39cab
AC
22806rm -f conftest.err conftest.$ac_objext \
22807 conftest$ac_exeext conftest.$ac_ext
22808LIBS=$ac_check_lib_save_LIBS
22809fi
4e8d927d
DJ
22810{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22811echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
bec39cab
AC
22812if test $ac_cv_lib_dl_dlopen = yes; then
22813 cat >>confdefs.h <<_ACEOF
22814#define HAVE_LIBDL 1
22815_ACEOF
c906108c
SS
22816
22817 LIBS="-ldl $LIBS"
22818
c906108c
SS
22819fi
22820
22821 if test "$GCC" = "yes" ; then
22822 # The GNU linker requires the -export-dynamic option to make
22823 # all symbols visible in the dynamic symbol table.
22824 hold_ldflags=$LDFLAGS
4e8d927d
DJ
22825 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
22826echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
c906108c 22827 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
22828 cat >conftest.$ac_ext <<_ACEOF
22829/* confdefs.h. */
22830_ACEOF
22831cat confdefs.h >>conftest.$ac_ext
22832cat >>conftest.$ac_ext <<_ACEOF
22833/* end confdefs.h. */
c906108c 22834
bec39cab
AC
22835int
22836main ()
22837{
c906108c 22838int i;
bec39cab
AC
22839 ;
22840 return 0;
22841}
22842_ACEOF
22843rm -f conftest.$ac_objext conftest$ac_exeext
22844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22845 (eval $ac_link) 2>conftest.er1
22846 ac_status=$?
22847 grep -v '^ *+' conftest.er1 >conftest.err
22848 rm -f conftest.er1
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } &&
121ce6e5 22852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
22853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854 (eval $ac_try) 2>&5
22855 ac_status=$?
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; } &&
22858 { ac_try='test -s conftest$ac_exeext'
22859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860 (eval $ac_try) 2>&5
22861 ac_status=$?
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; }; then
c906108c
SS
22864 found=yes
22865else
bec39cab
AC
22866 echo "$as_me: failed program was:" >&5
22867sed 's/^/| /' conftest.$ac_ext >&5
22868
4e8d927d 22869 found=no
c906108c 22870fi
4e8d927d 22871
bec39cab
AC
22872rm -f conftest.err conftest.$ac_objext \
22873 conftest$ac_exeext conftest.$ac_ext
c906108c 22874 LDFLAGS=$hold_ldflags
4e8d927d
DJ
22875 { echo "$as_me:$LINENO: result: $found" >&5
22876echo "${ECHO_T}$found" >&6; }
c906108c
SS
22877 if test $found = yes; then
22878 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
22879 fi
22880 fi
22881 # Sun randomly tweaked the prototypes in <proc_service.h>
22882 # at one point.
4e8d927d
DJ
22883 { echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
22884echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6; }
bec39cab
AC
22885 if test "${gdb_cv_proc_service_is_old+set}" = set; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22887else
bec39cab
AC
22888
22889 cat >conftest.$ac_ext <<_ACEOF
22890/* confdefs.h. */
22891_ACEOF
22892cat confdefs.h >>conftest.$ac_ext
22893cat >>conftest.$ac_ext <<_ACEOF
22894/* end confdefs.h. */
c906108c
SS
22895
22896 #include <proc_service.h>
22897 ps_err_e ps_pdwrite
22898 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 22899
bec39cab
AC
22900int
22901main ()
22902{
22903
22904 ;
22905 return 0;
22906}
22907_ACEOF
22908rm -f conftest.$ac_objext
22909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22910 (eval $ac_compile) 2>conftest.er1
22911 ac_status=$?
22912 grep -v '^ *+' conftest.er1 >conftest.err
22913 rm -f conftest.er1
22914 cat conftest.err >&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); } &&
121ce6e5 22917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22920 ac_status=$?
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; } &&
22923 { ac_try='test -s conftest.$ac_objext'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; }; then
c906108c
SS
22929 gdb_cv_proc_service_is_old=no
22930else
bec39cab
AC
22931 echo "$as_me: failed program was:" >&5
22932sed 's/^/| /' conftest.$ac_ext >&5
22933
4e8d927d 22934 gdb_cv_proc_service_is_old=yes
c906108c 22935fi
4e8d927d 22936
bec39cab
AC
22937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22938
c906108c
SS
22939fi
22940
4e8d927d
DJ
22941 { echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
22942echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6; }
c906108c 22943 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
22944
22945cat >>confdefs.h <<\_ACEOF
c906108c 22946#define PROC_SERVICE_IS_OLD 1
bec39cab 22947_ACEOF
c906108c
SS
22948
22949 fi
22950 else
4e8d927d
DJ
22951 { echo "$as_me:$LINENO: result: no" >&5
22952echo "${ECHO_T}no" >&6; }
c906108c
SS
22953 fi
22954 ;;
d92419e5 22955 aix*)
4e8d927d
DJ
22956 { echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
22957echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6; }
bec39cab
AC
22958 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22960else
22961 cat >conftest.$ac_ext <<_ACEOF
22962/* confdefs.h. */
22963_ACEOF
22964cat confdefs.h >>conftest.$ac_ext
22965cat >>conftest.$ac_ext <<_ACEOF
22966/* end confdefs.h. */
d92419e5 22967#include <sys/pthdebug.h>
bec39cab
AC
22968int
22969main ()
22970{
d92419e5
JB
22971#ifndef PTHDB_VERSION_3
22972 #error
22973 #endif
bec39cab
AC
22974 ;
22975 return 0;
22976}
22977_ACEOF
22978rm -f conftest.$ac_objext
22979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22980 (eval $ac_compile) 2>conftest.er1
22981 ac_status=$?
22982 grep -v '^ *+' conftest.er1 >conftest.err
22983 rm -f conftest.er1
22984 cat conftest.err >&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } &&
121ce6e5 22987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
22988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989 (eval $ac_try) 2>&5
22990 ac_status=$?
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; } &&
22993 { ac_try='test -s conftest.$ac_objext'
22994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995 (eval $ac_try) 2>&5
22996 ac_status=$?
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); }; }; then
d92419e5
JB
22999 gdb_cv_have_aix_thread_debug=yes
23000else
bec39cab
AC
23001 echo "$as_me: failed program was:" >&5
23002sed 's/^/| /' conftest.$ac_ext >&5
23003
4e8d927d 23004 gdb_cv_have_aix_thread_debug=no
d92419e5 23005fi
4e8d927d 23006
bec39cab 23007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
23008fi
23009
4e8d927d
DJ
23010 { echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23011echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6; }
d92419e5
JB
23012 if test $gdb_cv_have_aix_thread_debug = yes; then
23013 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 23014 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
23015 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23016 fi
23017 ;;
c906108c 23018 esac
bec39cab 23019
c906108c
SS
23020fi
23021
3f47be5c 23022if test "x$ac_cv_header_thread_db_h" = "xyes"; then
4e8d927d
DJ
23023 { echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23024echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6; }
bec39cab
AC
23025if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23026 echo $ECHO_N "(cached) $ECHO_C" >&6
23027else
23028 cat >conftest.$ac_ext <<_ACEOF
23029/* confdefs.h. */
23030_ACEOF
23031cat confdefs.h >>conftest.$ac_ext
23032cat >>conftest.$ac_ext <<_ACEOF
23033/* end confdefs.h. */
3f47be5c 23034#include <thread_db.h>
bec39cab
AC
23035int
23036main ()
23037{
3f47be5c 23038int i = TD_NOTALLOC;
bec39cab
AC
23039 ;
23040 return 0;
23041}
23042_ACEOF
23043rm -f conftest.$ac_objext
23044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23045 (eval $ac_compile) 2>conftest.er1
23046 ac_status=$?
23047 grep -v '^ *+' conftest.er1 >conftest.err
23048 rm -f conftest.er1
23049 cat conftest.err >&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } &&
121ce6e5 23052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; } &&
23058 { ac_try='test -s conftest.$ac_objext'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
3f47be5c
EZ
23064 gdb_cv_thread_db_h_has_td_notalloc=yes
23065else
bec39cab
AC
23066 echo "$as_me: failed program was:" >&5
23067sed 's/^/| /' conftest.$ac_ext >&5
23068
4e8d927d 23069 gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 23070
3f47be5c 23071fi
4e8d927d 23072
bec39cab 23073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 23074
bec39cab 23075fi
4e8d927d
DJ
23076{ echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23077echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
3f47be5c
EZ
23078fi
23079if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
23080
23081cat >>confdefs.h <<\_ACEOF
3f47be5c 23082#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 23083_ACEOF
3f47be5c
EZ
23084
23085fi
23086
b757528f 23087if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
4e8d927d
DJ
23088 { echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
23089echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6; }
bec39cab
AC
23090if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
23091 echo $ECHO_N "(cached) $ECHO_C" >&6
23092else
23093 cat >conftest.$ac_ext <<_ACEOF
23094/* confdefs.h. */
23095_ACEOF
23096cat confdefs.h >>conftest.$ac_ext
23097cat >>conftest.$ac_ext <<_ACEOF
23098/* end confdefs.h. */
b757528f 23099#include <sys/syscall.h>
bec39cab
AC
23100int
23101main ()
23102{
b757528f 23103int i = __NR_tkill;
bec39cab
AC
23104 ;
23105 return 0;
23106}
23107_ACEOF
23108rm -f conftest.$ac_objext
23109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23110 (eval $ac_compile) 2>conftest.er1
23111 ac_status=$?
23112 grep -v '^ *+' conftest.er1 >conftest.err
23113 rm -f conftest.er1
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } &&
121ce6e5 23117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
23118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119 (eval $ac_try) 2>&5
23120 ac_status=$?
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); }; } &&
23123 { ac_try='test -s conftest.$ac_objext'
23124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125 (eval $ac_try) 2>&5
23126 ac_status=$?
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); }; }; then
b757528f
JJ
23129 gdb_cv_sys_syscall_h_has_tkill=yes
23130else
bec39cab
AC
23131 echo "$as_me: failed program was:" >&5
23132sed 's/^/| /' conftest.$ac_ext >&5
23133
4e8d927d 23134 gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 23135
b757528f 23136fi
4e8d927d 23137
bec39cab 23138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 23139
bec39cab 23140fi
4e8d927d
DJ
23141{ echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
23142echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6; }
b757528f
JJ
23143fi
23144if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
23145
23146cat >>confdefs.h <<\_ACEOF
b757528f 23147#define HAVE_TKILL_SYSCALL 1
bec39cab 23148_ACEOF
b757528f
JJ
23149
23150fi
23151
fb40c209 23152
bec39cab 23153
4e8d927d 23154# Check whether --with-sysroot was given.
030292b7 23155if test "${with_sysroot+set}" = set; then
4e8d927d 23156 withval=$with_sysroot;
030292b7 23157 case ${with_sysroot} in
715d1656 23158 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
23159 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
23160 esac
23161
23162 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
23163
23164 if test "x$exec_prefix" = xNONE; then
23165 if test "x$prefix" = xNONE; then
23166 test_prefix=/usr/local
23167 else
23168 test_prefix=$prefix
23169 fi
23170 else
23171 test_prefix=$exec_prefix
23172 fi
23173 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
23174 "${test_prefix}"|"${test_prefix}/"*|\
23175 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
23176 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
23177 TARGET_SYSTEM_ROOT_DEFINE="$t"
23178 ;;
23179 esac
23180
23181else
bec39cab 23182
030292b7
DJ
23183 TARGET_SYSTEM_ROOT=
23184 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
23185
4e8d927d
DJ
23186fi
23187
030292b7
DJ
23188
23189
23190
4e8d927d 23191# Check whether --enable-werror was given.
094a342e 23192if test "${enable_werror+set}" = set; then
4e8d927d 23193 enableval=$enable_werror; case "${enableval}" in
094a342e
MK
23194 yes | y) ERROR_ON_WARNING="yes" ;;
23195 no | n) ERROR_ON_WARNING="no" ;;
23196 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
23197echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
23198 { (exit 1); exit 1; }; } ;;
23199 esac
4e8d927d
DJ
23200fi
23201
094a342e
MK
23202
23203# Enable -Werror by default when using gcc
23204if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
23205 ERROR_ON_WARNING=yes
23206fi
23207
23208WERROR_CFLAGS=""
23209if test "${ERROR_ON_WARNING}" = yes ; then
23210 WERROR_CFLAGS="-Werror"
23211fi
23212
3b851bce
AC
23213# NOTE: Don't add -Wall or -Wunused, they both include
23214# -Wunused-parameter which reports bogus warnings.
23215# NOTE: If you add to this list, remember to update
23216# gdb/doc/gdbint.texinfo.
1decb323 23217build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
a3b362c4 23218-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
7be93b9e 23219-Wunused-label -Wunused-function -Wno-pointer-sign"
a3b362c4
JB
23220
23221# GCC supports -Wuninitialized only with -O or -On, n != 0.
ca231fcc 23222if test x${CFLAGS+set} = xset; then
a3b362c4
JB
23223 case "${CFLAGS}" in
23224 *"-O0"* ) ;;
23225 *"-O"* )
23226 build_warnings="${build_warnings} -Wuninitialized"
23227 ;;
23228 esac
23229else
23230 build_warnings="${build_warnings} -Wuninitialized"
23231fi
23232
d8038014 23233# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 23234# -Wunused-function -Wunused-variable -Wunused-value
93d56215 23235# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
23236# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
23237# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
23238# -Woverloaded-virtual -Winline -Werror"
4e8d927d 23239# Check whether --enable-build-warnings was given.
c906108c 23240if test "${enable_build_warnings+set}" = set; then
4e8d927d 23241 enableval=$enable_build_warnings; case "${enableval}" in
c906108c
SS
23242 yes) ;;
23243 no) build_warnings="-w";;
23244 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23245 build_warnings="${build_warnings} ${t}";;
23246 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23247 build_warnings="${t} ${build_warnings}";;
23248 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23249esac
d4f3574e 23250if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 23251 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 23252fi
4e8d927d
DJ
23253fi
23254# Check whether --enable-gdb-build-warnings was given.
3b851bce 23255if test "${enable_gdb_build_warnings+set}" = set; then
4e8d927d 23256 enableval=$enable_gdb_build_warnings; case "${enableval}" in
3b851bce
AC
23257 yes) ;;
23258 no) build_warnings="-w";;
23259 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23260 build_warnings="${build_warnings} ${t}";;
23261 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23262 build_warnings="${t} ${build_warnings}";;
23263 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23264esac
23265if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23266 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
23267fi
4e8d927d
DJ
23268fi
23269WARN_CFLAGS=""
c906108c
SS
23270if test "x${build_warnings}" != x -a "x$GCC" = xyes
23271then
4e8d927d
DJ
23272 { echo "$as_me:$LINENO: checking compiler warning flags" >&5
23273echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6; }
746a987d
AC
23274 # Separate out the -Werror flag as some files just cannot be
23275 # compiled with it enabled.
23276 for w in ${build_warnings}; do
23277 case $w in
23278 -Werr*) WERROR_CFLAGS=-Werror ;;
23279 *) # Check that GCC accepts it
4536bbc6
AC
23280 saved_CFLAGS="$CFLAGS"
23281 CFLAGS="$CFLAGS $w"
bec39cab
AC
23282 cat >conftest.$ac_ext <<_ACEOF
23283/* confdefs.h. */
23284_ACEOF
23285cat confdefs.h >>conftest.$ac_ext
23286cat >>conftest.$ac_ext <<_ACEOF
23287/* end confdefs.h. */
4536bbc6 23288
bec39cab
AC
23289int
23290main ()
23291{
4536bbc6 23292
bec39cab
AC
23293 ;
23294 return 0;
23295}
23296_ACEOF
23297rm -f conftest.$ac_objext
23298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23299 (eval $ac_compile) 2>conftest.er1
23300 ac_status=$?
23301 grep -v '^ *+' conftest.er1 >conftest.err
23302 rm -f conftest.er1
23303 cat conftest.err >&5
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); } &&
121ce6e5 23306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
23307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23308 (eval $ac_try) 2>&5
23309 ac_status=$?
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }; } &&
23312 { ac_try='test -s conftest.$ac_objext'
23313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23314 (eval $ac_try) 2>&5
23315 ac_status=$?
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); }; }; then
4536bbc6
AC
23318 WARN_CFLAGS="${WARN_CFLAGS} $w"
23319else
bec39cab
AC
23320 echo "$as_me: failed program was:" >&5
23321sed 's/^/| /' conftest.$ac_ext >&5
23322
4e8d927d 23323
4536bbc6 23324fi
4e8d927d 23325
bec39cab 23326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 23327 CFLAGS="$saved_CFLAGS"
746a987d
AC
23328 esac
23329 done
4e8d927d
DJ
23330 { echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
23331echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6; }
c906108c
SS
23332fi
23333
23334
104c1213 23335
7a292a7a 23336# In the Cygwin environment, we need some additional flags.
4e8d927d
DJ
23337{ echo "$as_me:$LINENO: checking for cygwin" >&5
23338echo $ECHO_N "checking for cygwin... $ECHO_C" >&6; }
bec39cab
AC
23339if test "${gdb_cv_os_cygwin+set}" = set; then
23340 echo $ECHO_N "(cached) $ECHO_C" >&6
23341else
23342 cat >conftest.$ac_ext <<_ACEOF
23343/* confdefs.h. */
23344_ACEOF
23345cat confdefs.h >>conftest.$ac_ext
23346cat >>conftest.$ac_ext <<_ACEOF
23347/* end confdefs.h. */
7a292a7a
SS
23348
23349#if defined (__CYGWIN__) || defined (__CYGWIN32__)
23350lose
23351#endif
bec39cab 23352_ACEOF
7a292a7a 23353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 23354 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
23355 gdb_cv_os_cygwin=yes
23356else
7a292a7a
SS
23357 gdb_cv_os_cygwin=no
23358fi
23359rm -f conftest*
23360
23361fi
4e8d927d
DJ
23362{ echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
23363echo "${ECHO_T}$gdb_cv_os_cygwin" >&6; }
7a292a7a 23364
aff38e61 23365
3eb25fda 23366SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 23367case ${host} in
95cbc983
AC
23368 *go32* ) SER_HARDWIRE=ser-go32.o ;;
23369 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 23370 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
23371esac
23372
23373
cd0fc7c3
SS
23374# libreadline needs libuser32.a in a cygwin environment
23375WIN32LIBS=
23376if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
23377 WIN32LIBS="-luser32"
23378 case "${target}" in
23379 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
23380 ;;
23381 esac
cd0fc7c3 23382fi
c906108c 23383
b4505029
MM
23384# The ser-tcp.c module requires sockets.
23385case ${host} in
23386 *mingw32*)
23387
23388cat >>confdefs.h <<\_ACEOF
23389#define USE_WIN32API 1
23390_ACEOF
23391
23392 WIN32LIBS="$WIN32LIBS -lws2_32"
23393 ;;
23394esac
23395
7a292a7a 23396
121ce6e5
DJ
23397# Add any host-specific objects to GDB.
23398CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
23399
3fc11d3e
JM
23400LIBGUI="../libgui/src/libgui.a"
23401GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
23402
23403
7a292a7a 23404
3fc11d3e
JM
23405WIN32LDAPP=
23406
23407
23408
d91670b9
CV
23409case "${host}" in
23410*-*-cygwin*)
23411 configdir="win"
23412 ;;
23413*)
23414 configdir="unix"
23415 ;;
23416esac
3fc11d3e
JM
23417
23418GDBTKLIBS=
23419if test "${enable_gdbtk}" = "yes"; then
23420
d1c3b63a
KS
23421 # Gdbtk must have an absolute path to srcdir in order to run
23422 # properly when not installed.
23423 here=`pwd`
23424 cd ${srcdir}
23425 GDBTK_SRC_DIR=`pwd`
23426 cd $here
23427
bec39cab 23428
3fc11d3e
JM
23429#
23430# Ok, lets find the tcl configuration
bec39cab 23431# First, look for one uninstalled.
3fc11d3e
JM
23432# the alternative search directory is invoked by --with-tclconfig
23433#
23434
23435if test x"${no_tcl}" = x ; then
23436 # we reset no_tcl in case something fails here
23437 no_tcl=true
bec39cab 23438
4e8d927d 23439# Check whether --with-tclconfig was given.
3fc11d3e 23440if test "${with_tclconfig+set}" = set; then
4e8d927d
DJ
23441 withval=$with_tclconfig; with_tclconfig=${withval}
23442fi
23443
23444 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5
23445echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
bec39cab
AC
23446 if test "${ac_cv_c_tclconfig+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23448else
bec39cab 23449
3fc11d3e
JM
23450
23451 # First check to see if --with-tclconfig was specified.
23452 if test x"${with_tclconfig}" != x ; then
23453 if test -f "${with_tclconfig}/tclConfig.sh" ; then
23454 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
23455 else
bec39cab
AC
23456 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
23457echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
23458 { (exit 1); exit 1; }; }
3fc11d3e
JM
23459 fi
23460 fi
23461
23462 # then check for a private Tcl installation
23463 if test x"${ac_cv_c_tclconfig}" = x ; then
23464 for i in \
23465 ../tcl \
23466 `ls -dr ../tcl[7-9]* 2>/dev/null` \
23467 ../../tcl \
23468 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
23469 ../../../tcl \
23470 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
23471 if test -f "$i/${configdir}/tclConfig.sh" ; then
23472 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23473 break
23474 fi
23475 done
23476 fi
23477 # check in a few common install locations
23478 if test x"${ac_cv_c_tclconfig}" = x ; then
23479 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23480 if test -f "$i/tclConfig.sh" ; then
23481 ac_cv_c_tclconfig=`(cd $i; pwd)`
23482 break
23483 fi
23484 done
23485 fi
23486 # check in a few other private locations
23487 if test x"${ac_cv_c_tclconfig}" = x ; then
23488 for i in \
23489 ${srcdir}/../tcl \
23490 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
23491 if test -f "$i/${configdir}/tclConfig.sh" ; then
23492 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23493 break
23494 fi
23495 done
23496 fi
bec39cab 23497
3fc11d3e
JM
23498fi
23499
23500 if test x"${ac_cv_c_tclconfig}" = x ; then
23501 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
23502 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
23503echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
23504 else
23505 no_tcl=
23506 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
4e8d927d
DJ
23507 { echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
23508echo "${ECHO_T}found $TCLCONFIG" >&6; }
3fc11d3e
JM
23509 fi
23510fi
23511
23512 if test -z "${no_tcl}"; then
bec39cab 23513
3fc11d3e
JM
23514 . $TCLCONFIG
23515
3fc11d3e
JM
23516
23517
23518
23519
3fc11d3e
JM
23520
23521
23522
bec39cab
AC
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
3fc11d3e
JM
23542#
23543# Ok, lets find the tk configuration
bec39cab 23544# First, look for one uninstalled.
3fc11d3e
JM
23545# the alternative search directory is invoked by --with-tkconfig
23546#
23547
23548if test x"${no_tk}" = x ; then
23549 # we reset no_tk in case something fails here
23550 no_tk=true
bec39cab 23551
4e8d927d 23552# Check whether --with-tkconfig was given.
3fc11d3e 23553if test "${with_tkconfig+set}" = set; then
4e8d927d
DJ
23554 withval=$with_tkconfig; with_tkconfig=${withval}
23555fi
23556
23557 { echo "$as_me:$LINENO: checking for Tk configuration" >&5
23558echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; }
bec39cab
AC
23559 if test "${ac_cv_c_tkconfig+set}" = set; then
23560 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23561else
bec39cab 23562
3fc11d3e
JM
23563
23564 # First check to see if --with-tkconfig was specified.
23565 if test x"${with_tkconfig}" != x ; then
23566 if test -f "${with_tkconfig}/tkConfig.sh" ; then
23567 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
23568 else
bec39cab
AC
23569 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
23570echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
23571 { (exit 1); exit 1; }; }
3fc11d3e
JM
23572 fi
23573 fi
23574
23575 # then check for a private Tk library
23576 if test x"${ac_cv_c_tkconfig}" = x ; then
23577 for i in \
23578 ../tk \
23579 `ls -dr ../tk[4-9]* 2>/dev/null` \
23580 ../../tk \
23581 `ls -dr ../../tk[4-9]* 2>/dev/null` \
23582 ../../../tk \
23583 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
23584 if test -f "$i/${configdir}/tkConfig.sh" ; then
23585 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23586 break
23587 fi
23588 done
23589 fi
23590 # check in a few common install locations
23591 if test x"${ac_cv_c_tkconfig}" = x ; then
23592 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23593 if test -f "$i/tkConfig.sh" ; then
23594 ac_cv_c_tkconfig=`(cd $i; pwd)`
23595 break
23596 fi
23597 done
23598 fi
23599 # check in a few other private locations
23600 if test x"${ac_cv_c_tkconfig}" = x ; then
23601 for i in \
23602 ${srcdir}/../tk \
23603 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
23604 if test -f "$i/${configdir}/tkConfig.sh" ; then
23605 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23606 break
23607 fi
23608 done
23609 fi
bec39cab 23610
3fc11d3e
JM
23611fi
23612
23613 if test x"${ac_cv_c_tkconfig}" = x ; then
23614 TKCONFIG="# no Tk configs found"
bec39cab
AC
23615 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
23616echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
23617 else
23618 no_tk=
23619 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
4e8d927d
DJ
23620 { echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
23621echo "${ECHO_T}found $TKCONFIG" >&6; }
3fc11d3e
JM
23622 fi
23623fi
23624
23625
23626
dd2504ab
JM
23627 # now look for Tcl library stuff
23628
d91670b9 23629 tcldir="../tcl/${configdir}/"
dd2504ab
JM
23630
23631 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
23632
3fc11d3e
JM
23633 # If $no_tk is nonempty, then we can't do Tk, and there is no
23634 # point to doing Tcl.
23635 if test -z "${no_tk}"; then
bec39cab 23636
3fc11d3e
JM
23637 if test -f "$TKCONFIG" ; then
23638 . $TKCONFIG
23639 fi
23640
3fc11d3e 23641
3fc11d3e
JM
23642
23643
3fc11d3e 23644
bec39cab
AC
23645
23646
23647
23648
23649
23650
23651
23652
23653
3fc11d3e
JM
23654#
23655# Ok, lets find the tcl source trees so we can use the headers
23656# Warning: transition of version 9 to 10 will break this algorithm
23657# because 10 sorts before 9. We also look for just tcl. We have to
23658# be careful that we don't match stuff like tclX by accident.
23659# the alternative search directory is involked by --with-tclinclude
23660#
23661
23662no_tcl=true
4e8d927d
DJ
23663{ echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
23664echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6; }
bec39cab 23665
4e8d927d 23666# Check whether --with-tclinclude was given.
3fc11d3e 23667if test "${with_tclinclude+set}" = set; then
4e8d927d
DJ
23668 withval=$with_tclinclude; with_tclinclude=${withval}
23669fi
23670
bec39cab
AC
23671if test "${ac_cv_c_tclh+set}" = set; then
23672 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23673else
bec39cab 23674
3fc11d3e
JM
23675# first check to see if --with-tclinclude was specified
23676if test x"${with_tclinclude}" != x ; then
23677 if test -f ${with_tclinclude}/tclInt.h ; then
23678 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
23679 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
23680 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
23681 else
bec39cab
AC
23682 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
23683echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
23684 { (exit 1); exit 1; }; }
3fc11d3e
JM
23685 fi
23686fi
23687
23688# next check if it came with Tcl configuration file
23689if test x"${ac_cv_c_tclconfig}" = x ; then
23690 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
23691 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
23692 fi
23693fi
23694
23695# next check in private source directory
23696#
23697# since ls returns lowest version numbers first, reverse its output
23698if test x"${ac_cv_c_tclh}" = x ; then
23699 for i in \
23700 ${srcdir}/../tcl \
23701 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
23702 ${srcdir}/../../tcl \
23703 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
23704 ${srcdir}/../../../tcl \
23705 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
23706 if test -f $i/generic/tclInt.h ; then
23707 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23708 break
23709 fi
23710 done
23711fi
23712# finally check in a few common install locations
23713#
23714# since ls returns lowest version numbers first, reverse its output
23715if test x"${ac_cv_c_tclh}" = x ; then
23716 for i in \
23717 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
23718 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
23719 /usr/local/src/tcl \
23720 /usr/local/lib/tcl \
23721 ${prefix}/include ; do
23722 if test -f $i/generic/tclInt.h ; then
23723 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23724 break
23725 fi
23726 done
23727fi
23728# see if one is installed
23729if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 23730 if test "${ac_cv_header_tclInt_h+set}" = set; then
4e8d927d
DJ
23731 { echo "$as_me:$LINENO: checking for tclInt.h" >&5
23732echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6; }
bec39cab
AC
23733if test "${ac_cv_header_tclInt_h+set}" = set; then
23734 echo $ECHO_N "(cached) $ECHO_C" >&6
23735fi
4e8d927d
DJ
23736{ echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23737echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6; }
bec39cab
AC
23738else
23739 # Is the header compilable?
4e8d927d
DJ
23740{ echo "$as_me:$LINENO: checking tclInt.h usability" >&5
23741echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6; }
bec39cab
AC
23742cat >conftest.$ac_ext <<_ACEOF
23743/* confdefs.h. */
23744_ACEOF
23745cat confdefs.h >>conftest.$ac_ext
23746cat >>conftest.$ac_ext <<_ACEOF
23747/* end confdefs.h. */
23748$ac_includes_default
23749#include <tclInt.h>
23750_ACEOF
23751rm -f conftest.$ac_objext
23752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23753 (eval $ac_compile) 2>conftest.er1
23754 ac_status=$?
23755 grep -v '^ *+' conftest.er1 >conftest.err
23756 rm -f conftest.er1
23757 cat conftest.err >&5
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); } &&
121ce6e5 23760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; } &&
23766 { ac_try='test -s conftest.$ac_objext'
23767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23768 (eval $ac_try) 2>&5
23769 ac_status=$?
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); }; }; then
23772 ac_header_compiler=yes
23773else
23774 echo "$as_me: failed program was:" >&5
23775sed 's/^/| /' conftest.$ac_ext >&5
23776
4e8d927d 23777 ac_header_compiler=no
bec39cab 23778fi
4e8d927d 23779
bec39cab 23780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
23781{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23782echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
23783
23784# Is the header present?
4e8d927d
DJ
23785{ echo "$as_me:$LINENO: checking tclInt.h presence" >&5
23786echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6; }
bec39cab
AC
23787cat >conftest.$ac_ext <<_ACEOF
23788/* confdefs.h. */
23789_ACEOF
23790cat confdefs.h >>conftest.$ac_ext
23791cat >>conftest.$ac_ext <<_ACEOF
23792/* end confdefs.h. */
3fc11d3e 23793#include <tclInt.h>
bec39cab
AC
23794_ACEOF
23795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23797 ac_status=$?
23798 grep -v '^ *+' conftest.er1 >conftest.err
23799 rm -f conftest.er1
23800 cat conftest.err >&5
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); } >/dev/null; then
23803 if test -s conftest.err; then
23804 ac_cpp_err=$ac_c_preproc_warn_flag
23805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23806 else
23807 ac_cpp_err=
23808 fi
23809else
23810 ac_cpp_err=yes
3fc11d3e 23811fi
bec39cab
AC
23812if test -z "$ac_cpp_err"; then
23813 ac_header_preproc=yes
23814else
23815 echo "$as_me: failed program was:" >&5
23816sed 's/^/| /' conftest.$ac_ext >&5
23817
23818 ac_header_preproc=no
3fc11d3e 23819fi
4e8d927d 23820
bec39cab 23821rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
23822{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23823echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
23824
23825# So? What about this header?
23826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23827 yes:no: )
23828 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23829echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23830 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
23831echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
23832 ac_header_preproc=yes
23833 ;;
23834 no:yes:* )
23835 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
23836echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
23837 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
23838echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
23839 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
23840echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
23841 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
23842echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23843 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
23844echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
23845 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
23846echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
4e8d927d 23847
bec39cab
AC
23848 ;;
23849esac
4e8d927d
DJ
23850{ echo "$as_me:$LINENO: checking for tclInt.h" >&5
23851echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6; }
bec39cab
AC
23852if test "${ac_cv_header_tclInt_h+set}" = set; then
23853 echo $ECHO_N "(cached) $ECHO_C" >&6
23854else
23855 ac_cv_header_tclInt_h=$ac_header_preproc
23856fi
4e8d927d
DJ
23857{ echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23858echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6; }
bec39cab
AC
23859
23860fi
23861if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
23862 ac_cv_c_tclh=installed
23863else
bec39cab 23864 ac_cv_c_tclh=""
3fc11d3e
JM
23865fi
23866
bec39cab 23867
3fc11d3e
JM
23868fi
23869
23870fi
23871
23872if test x"${ac_cv_c_tclh}" = x ; then
23873 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
23874 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
23875echo "$as_me: error: Can't find Tcl private headers" >&2;}
23876 { (exit 1); exit 1; }; }
3fc11d3e
JM
23877fi
23878if test x"${ac_cv_c_tclh}" != x ; then
23879 no_tcl=""
23880 if test x"${ac_cv_c_tclh}" = x"installed" ; then
4e8d927d
DJ
23881 { echo "$as_me:$LINENO: result: is installed" >&5
23882echo "${ECHO_T}is installed" >&6; }
3fc11d3e
JM
23883 TCLHDIR=""
23884 else
4e8d927d
DJ
23885 { echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
23886echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6; }
3fc11d3e
JM
23887 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
23888 TCLHDIR="-I${ac_cv_c_tclh}"
23889 fi
23890fi
23891
23892
23893
bec39cab 23894
3fc11d3e
JM
23895#
23896# Ok, lets find the tk source trees so we can use the headers
23897# If the directory (presumably symlink) named "tk" exists, use that one
23898# in preference to any others. Same logic is used when choosing library
23899# and again with Tcl. The search order is the best place to look first, then in
23900# decreasing significance. The loop breaks if the trigger file is found.
23901# Note the gross little conversion here of srcdir by cd'ing to the found
23902# directory. This converts the path from a relative to an absolute, so
23903# recursive cache variables for the path will work right. We check all
23904# the possible paths in one loop rather than many seperate loops to speed
23905# things up.
23906# the alternative search directory is involked by --with-tkinclude
23907#
23908no_tk=true
4e8d927d
DJ
23909{ echo "$as_me:$LINENO: checking for Tk private headers" >&5
23910echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6; }
bec39cab 23911
4e8d927d 23912# Check whether --with-tkinclude was given.
3fc11d3e 23913if test "${with_tkinclude+set}" = set; then
4e8d927d
DJ
23914 withval=$with_tkinclude; with_tkinclude=${withval}
23915fi
23916
bec39cab
AC
23917if test "${ac_cv_c_tkh+set}" = set; then
23918 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23919else
bec39cab 23920
3fc11d3e
JM
23921# first check to see if --with-tkinclude was specified
23922if test x"${with_tkinclude}" != x ; then
23923 if test -f ${with_tkinclude}/tk.h ; then
23924 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
23925 elif test -f ${with_tkinclude}/generic/tk.h ; then
23926 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
23927 else
bec39cab
AC
23928 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
23929echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
23930 { (exit 1); exit 1; }; }
3fc11d3e
JM
23931 fi
23932fi
23933
23934# next check if it came with Tk configuration file
23935if test x"${ac_cv_c_tkconfig}" = x ; then
23936 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
23937 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
23938 fi
23939fi
23940
23941# next check in private source directory
23942#
23943# since ls returns lowest version numbers first, reverse its output
23944if test x"${ac_cv_c_tkh}" = x ; then
23945 for i in \
23946 ${srcdir}/../tk \
23947 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
23948 ${srcdir}/../../tk \
23949 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
23950 ${srcdir}/../../../tk \
23951 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
23952 if test -f $i/generic/tk.h ; then
23953 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23954 break
23955 fi
23956 done
23957fi
23958# finally check in a few common install locations
23959#
23960# since ls returns lowest version numbers first, reverse its output
23961if test x"${ac_cv_c_tkh}" = x ; then
23962 for i in \
23963 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
23964 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
23965 /usr/local/src/tk \
23966 /usr/local/lib/tk \
23967 ${prefix}/include ; do
23968 if test -f $i/generic/tk.h ; then
23969 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23970 break
23971 fi
23972 done
23973fi
23974# see if one is installed
23975if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 23976 if test "${ac_cv_header_tk_h+set}" = set; then
4e8d927d
DJ
23977 { echo "$as_me:$LINENO: checking for tk.h" >&5
23978echo $ECHO_N "checking for tk.h... $ECHO_C" >&6; }
bec39cab
AC
23979if test "${ac_cv_header_tk_h+set}" = set; then
23980 echo $ECHO_N "(cached) $ECHO_C" >&6
23981fi
4e8d927d
DJ
23982{ echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23983echo "${ECHO_T}$ac_cv_header_tk_h" >&6; }
bec39cab
AC
23984else
23985 # Is the header compilable?
4e8d927d
DJ
23986{ echo "$as_me:$LINENO: checking tk.h usability" >&5
23987echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6; }
bec39cab
AC
23988cat >conftest.$ac_ext <<_ACEOF
23989/* confdefs.h. */
23990_ACEOF
23991cat confdefs.h >>conftest.$ac_ext
23992cat >>conftest.$ac_ext <<_ACEOF
23993/* end confdefs.h. */
23994$ac_includes_default
3fc11d3e 23995#include <tk.h>
bec39cab
AC
23996_ACEOF
23997rm -f conftest.$ac_objext
23998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23999 (eval $ac_compile) 2>conftest.er1
24000 ac_status=$?
24001 grep -v '^ *+' conftest.er1 >conftest.err
24002 rm -f conftest.er1
24003 cat conftest.err >&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } &&
121ce6e5 24006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; } &&
24012 { ac_try='test -s conftest.$ac_objext'
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 ac_header_compiler=yes
24019else
24020 echo "$as_me: failed program was:" >&5
24021sed 's/^/| /' conftest.$ac_ext >&5
24022
4e8d927d 24023 ac_header_compiler=no
bec39cab 24024fi
4e8d927d 24025
bec39cab 24026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
24027{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24028echo "${ECHO_T}$ac_header_compiler" >&6; }
bec39cab
AC
24029
24030# Is the header present?
4e8d927d
DJ
24031{ echo "$as_me:$LINENO: checking tk.h presence" >&5
24032echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6; }
bec39cab
AC
24033cat >conftest.$ac_ext <<_ACEOF
24034/* confdefs.h. */
24035_ACEOF
24036cat confdefs.h >>conftest.$ac_ext
24037cat >>conftest.$ac_ext <<_ACEOF
24038/* end confdefs.h. */
24039#include <tk.h>
24040_ACEOF
24041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24043 ac_status=$?
24044 grep -v '^ *+' conftest.er1 >conftest.err
24045 rm -f conftest.er1
24046 cat conftest.err >&5
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); } >/dev/null; then
24049 if test -s conftest.err; then
24050 ac_cpp_err=$ac_c_preproc_warn_flag
24051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24052 else
24053 ac_cpp_err=
24054 fi
24055else
24056 ac_cpp_err=yes
3fc11d3e 24057fi
bec39cab
AC
24058if test -z "$ac_cpp_err"; then
24059 ac_header_preproc=yes
24060else
24061 echo "$as_me: failed program was:" >&5
24062sed 's/^/| /' conftest.$ac_ext >&5
24063
24064 ac_header_preproc=no
24065fi
4e8d927d 24066
bec39cab 24067rm -f conftest.err conftest.$ac_ext
4e8d927d
DJ
24068{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24069echo "${ECHO_T}$ac_header_preproc" >&6; }
bec39cab
AC
24070
24071# So? What about this header?
24072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24073 yes:no: )
24074 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
24075echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24076 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
24077echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
24078 ac_header_preproc=yes
24079 ;;
24080 no:yes:* )
24081 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
24082echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
24083 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
24084echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
24085 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
24086echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
24087 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
24088echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
24089 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
24090echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
24091 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
24092echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
4e8d927d 24093
bec39cab
AC
24094 ;;
24095esac
4e8d927d
DJ
24096{ echo "$as_me:$LINENO: checking for tk.h" >&5
24097echo $ECHO_N "checking for tk.h... $ECHO_C" >&6; }
bec39cab
AC
24098if test "${ac_cv_header_tk_h+set}" = set; then
24099 echo $ECHO_N "(cached) $ECHO_C" >&6
24100else
24101 ac_cv_header_tk_h=$ac_header_preproc
24102fi
4e8d927d
DJ
24103{ echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24104echo "${ECHO_T}$ac_cv_header_tk_h" >&6; }
bec39cab 24105
3fc11d3e 24106fi
bec39cab 24107if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
24108 ac_cv_c_tkh=installed
24109else
bec39cab 24110 ac_cv_c_tkh=""
3fc11d3e
JM
24111fi
24112
bec39cab 24113
3fc11d3e
JM
24114fi
24115
24116fi
24117
24118if test x"${ac_cv_c_tkh}" != x ; then
24119 no_tk=""
24120 if test x"${ac_cv_c_tkh}" = x"installed" ; then
4e8d927d
DJ
24121 { echo "$as_me:$LINENO: result: is installed" >&5
24122echo "${ECHO_T}is installed" >&6; }
3fc11d3e
JM
24123 TKHDIR=""
24124 else
4e8d927d
DJ
24125 { echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
24126echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6; }
3fc11d3e
JM
24127 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
24128 TKHDIR="-I${ac_cv_c_tkh}"
24129 fi
24130else
24131 TKHDIR="# no Tk directory found"
bec39cab
AC
24132 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
24133echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
24134 no_tk=true
24135fi
24136
24137
24138
bec39cab 24139
4e8d927d
DJ
24140{ echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
24141echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6; }
3fc11d3e
JM
24142if test x"${ac_cv_c_itclh}" = x ; then
24143 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
24144 if test -f $i/generic/itcl.h ; then
24145 ac_cv_c_itclh=`(cd $i/generic; pwd)`
24146 break
24147 fi
24148 done
24149fi
24150if test x"${ac_cv_c_itclh}" = x ; then
24151 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
24152 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
24153echo "$as_me: error: Can't find Itcl private headers" >&2;}
24154 { (exit 1); exit 1; }; }
3fc11d3e
JM
24155fi
24156if test x"${ac_cv_c_itclh}" != x ; then
24157 ITCLHDIR="-I${ac_cv_c_itclh}"
24158fi
24159# should always be here
24160# ITCLLIB="../itcl/itcl/unix/libitcl.a"
24161
24162#AC_SUBST(ITCLLIB)
24163
bec39cab 24164
4e8d927d
DJ
24165{ echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
24166echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6; }
3fc11d3e
JM
24167if test x"${ac_cv_c_itkh}" = x ; then
24168 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
24169 if test -f $i/generic/itk.h ; then
24170 ac_cv_c_itkh=`(cd $i/generic; pwd)`
24171 break
24172 fi
24173 done
24174fi
24175if test x"${ac_cv_c_itkh}" = x ; then
24176 ITKHDIR="# no Itk private headers found"
bec39cab
AC
24177 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
24178echo "$as_me: error: Can't find Itk private headers" >&2;}
24179 { (exit 1); exit 1; }; }
3fc11d3e
JM
24180fi
24181if test x"${ac_cv_c_itkh}" != x ; then
24182 ITKHDIR="-I${ac_cv_c_itkh}"
24183fi
24184# should always be here
24185# ITKLIB="../itcl/itk/unix/libitk.a"
24186
24187#AC_SUBST(ITKLIB)
24188
3fc11d3e 24189
dd2504ab
JM
24190
24191 # now look for Tk library stuff
24192
d91670b9 24193 tkdir="../tk/${configdir}/"
dd2504ab
JM
24194
24195 TK_DEPS="${tkdir}${TK_LIB_FILE}"
24196
3fc11d3e
JM
24197 # now look for Itcl library stuff
24198
bec39cab 24199
3fc11d3e
JM
24200#
24201# Ok, lets find the itcl configuration
bec39cab 24202# First, look for one uninstalled.
3fc11d3e
JM
24203# the alternative search directory is invoked by --with-itclconfig
24204#
24205
24206if test x"${no_itcl}" = x ; then
24207 # we reset no_itcl in case something fails here
24208 no_itcl=true
bec39cab 24209
4e8d927d 24210# Check whether --with-itclconfig was given.
3fc11d3e 24211if test "${with_itclconfig+set}" = set; then
4e8d927d
DJ
24212 withval=$with_itclconfig; with_itclconfig=${withval}
24213fi
24214
24215 { echo "$as_me:$LINENO: checking for Itcl configuration" >&5
24216echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6; }
bec39cab
AC
24217 if test "${ac_cv_c_itclconfig+set}" = set; then
24218 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24219else
bec39cab 24220
3fc11d3e
JM
24221
24222 # First check to see if --with-itclconfig was specified.
24223 if test x"${with_itclconfig}" != x ; then
24224 if test -f "${with_itclconfig}/itclConfig.sh" ; then
24225 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
24226 else
bec39cab
AC
24227 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
24228echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
24229 { (exit 1); exit 1; }; }
3fc11d3e
JM
24230 fi
24231 fi
24232
24233 # then check for a private Itcl library
24234 if test x"${ac_cv_c_itclconfig}" = x ; then
24235 for i in \
24236 ../itcl/itcl \
24237 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
24238 ../../itcl \
24239 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
24240 ../../../itcl \
24241 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
24242 if test -f "$i/itclConfig.sh" ; then
24243 ac_cv_c_itclconfig=`(cd $i; pwd)`
24244 break
24245 fi
24246 done
24247 fi
24248 # check in a few common install locations
24249 if test x"${ac_cv_c_itclconfig}" = x ; then
24250 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24251 if test -f "$i/itclConfig.sh" ; then
24252 ac_cv_c_itclconfig=`(cd $i; pwd)`
24253 break
24254 fi
24255 done
24256 fi
24257 # check in a few other private locations
24258 if test x"${ac_cv_c_itclconfig}" = x ; then
24259 for i in \
24260 ${srcdir}/../itcl/itcl \
24261 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
24262 if test -f "$i/itclConfig.sh" ; then
24263 ac_cv_c_itclconfig=`(cd $i; pwd)`
24264 break
24265 fi
24266 done
24267 fi
bec39cab 24268
3fc11d3e
JM
24269fi
24270
24271 if test x"${ac_cv_c_itclconfig}" = x ; then
24272 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
24273 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
24274echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
24275 else
24276 no_itcl=
24277 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
4e8d927d
DJ
24278 { echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
24279echo "${ECHO_T}found $ITCLCONFIG" >&6; }
3fc11d3e
JM
24280 fi
24281fi
24282
24283 if test -z "${no_itcl}"; then
bec39cab 24284
3fc11d3e
JM
24285 if test -f "$ITCLCONFIG" ; then
24286 . $ITCLCONFIG
24287 fi
24288
3fc11d3e 24289
3fc11d3e
JM
24290
24291
bec39cab
AC
24292
24293
24294
24295
24296
24297
24298
3fc11d3e
JM
24299
24300 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 24301 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
24302 fi
24303
bec39cab 24304
3fc11d3e 24305 # now look for Itk library stuff
bec39cab 24306
3fc11d3e
JM
24307#
24308# Ok, lets find the itk configuration
bec39cab 24309# First, look for one uninstalled.
3fc11d3e
JM
24310# the alternative search directory is invoked by --with-itkconfig
24311#
24312
24313if test x"${no_itk}" = x ; then
24314 # we reset no_itk in case something fails here
24315 no_itk=true
bec39cab 24316
4e8d927d 24317# Check whether --with-itkconfig was given.
3fc11d3e 24318if test "${with_itkconfig+set}" = set; then
4e8d927d
DJ
24319 withval=$with_itkconfig; with_itkconfig=${withval}
24320fi
24321
24322 { echo "$as_me:$LINENO: checking for Itk configuration" >&5
24323echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6; }
bec39cab
AC
24324 if test "${ac_cv_c_itkconfig+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24326else
bec39cab 24327
3fc11d3e
JM
24328
24329 # First check to see if --with-itkconfig was specified.
24330 if test x"${with_itkconfig}" != x ; then
24331 if test -f "${with_itkconfig}/itkConfig.sh" ; then
24332 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
24333 else
bec39cab
AC
24334 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
24335echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
24336 { (exit 1); exit 1; }; }
3fc11d3e
JM
24337 fi
24338 fi
24339
24340 # then check for a private Itk library
24341 if test x"${ac_cv_c_itkconfig}" = x ; then
24342 for i in \
24343 ../itcl/itk \
24344 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
24345 ../../itk \
24346 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
24347 ../../../itk \
24348 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
24349 if test -f "$i/itkConfig.sh" ; then
24350 ac_cv_c_itkconfig=`(cd $i; pwd)`
24351 break
24352 fi
24353 done
24354 fi
24355 # check in a few common install locations
24356 if test x"${ac_cv_c_itkconfig}" = x ; then
24357 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24358 if test -f "$i/itkConfig.sh" ; then
24359 ac_cv_c_itkconfig=`(cd $i; pwd)`
24360 break
24361 fi
24362 done
24363 fi
24364 # check in a few other private locations
24365 if test x"${ac_cv_c_itkconfig}" = x ; then
24366 for i in \
24367 ${srcdir}/../itcl/itk \
24368 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
24369 if test -f "$i/itkConfig.sh" ; then
24370 ac_cv_c_itkconfig=`(cd $i; pwd)`
24371 break
24372 fi
24373 done
24374 fi
bec39cab 24375
3fc11d3e
JM
24376fi
24377
24378 if test x"${ac_cv_c_itkconfig}" = x ; then
24379 ITKCONFIG="# no Itk configs found"
bec39cab
AC
24380 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
24381echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
24382 else
24383 no_itk=
24384 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
4e8d927d
DJ
24385 { echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
24386echo "${ECHO_T}found $ITKCONFIG" >&6; }
3fc11d3e
JM
24387 fi
24388fi
24389
24390
bec39cab
AC
24391 if test -z "${no_itcl}"; then
24392
24393 if test -f "$ITKCONFIG" ; then
24394 . $ITKCONFIG
24395 fi
24396
24397
24398
24399
24400
24401
3fc11d3e 24402
3fc11d3e 24403
3fc11d3e
JM
24404
24405
3fc11d3e
JM
24406
24407
3fc11d3e 24408 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 24409 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
24410 fi
24411
4226a5a5 24412 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
24413
24414 # Include some libraries that Tcl and Tk want.
b2a1bd4f 24415 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
24416 # Yes, the ordering seems wrong here. But it isn't.
24417 # TK_LIBS is the list of libraries that need to be linked
24418 # after Tcl/Tk. Note that this isn't put into LIBS. If it
24419 # were in LIBS then any link tests after this point would
24420 # try to include things like `$(LIBGUI)', which wouldn't work.
24421 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
24422
24423 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
24424 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
24425 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
24426 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
24427 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
24428 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
24429 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
24430
24431 if test x$gdb_cv_os_cygwin = xyes; then
24432 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
24433 WIN32LDAPP="-Wl,--subsystem,console"
24434 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
24435 fi
24436 fi
24437 fi
ffc6a242 24438
4e8d927d 24439 subdirs="$subdirs gdbtk"
3ace7edb 24440
3fc11d3e
JM
24441fi
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
dd2504ab 24455
4e8d927d
DJ
24456{ echo "$as_me:$LINENO: checking for X" >&5
24457echo $ECHO_N "checking for X... $ECHO_C" >&6; }
bec39cab 24458
121ce6e5 24459ac_path_x_has_been_run=yes
c906108c 24460
4e8d927d 24461# Check whether --with-x was given.
c906108c 24462if test "${with_x+set}" = set; then
4e8d927d
DJ
24463 withval=$with_x;
24464fi
c906108c
SS
24465
24466# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24467if test "x$with_x" = xno; then
24468 # The user explicitly disabled X.
24469 have_x=disabled
24470else
24471 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24472 # Both variables are already set.
24473 have_x=yes
24474 else
bec39cab
AC
24475 if test "${ac_cv_have_x+set}" = set; then
24476 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
24477else
24478 # One or both of the vars are not set, and there is no cached value.
bec39cab 24479ac_x_includes=no ac_x_libraries=no
4e8d927d 24480rm -f -r conftest.dir
bec39cab
AC
24481if mkdir conftest.dir; then
24482 cd conftest.dir
c906108c 24483 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 24484 cat >Imakefile <<'_ACEOF'
c906108c
SS
24485acfindx:
24486 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 24487_ACEOF
4e8d927d 24488 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
24489 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24490 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24491 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24492 for ac_extension in a so sl; do
24493 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
24494 test -f $ac_im_libdir/libX11.$ac_extension; then
24495 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
24496 fi
24497 done
24498 # Screen out bogus values from the imake configuration. They are
24499 # bogus both because they are the default anyway, and because
24500 # using them would break gcc on systems where it needs fixed includes.
bec39cab 24501 case $ac_im_incroot in
4e8d927d 24502 /usr/include) ac_x_includes= ;;
bec39cab 24503 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 24504 esac
bec39cab 24505 case $ac_im_usrlibdir in
c906108c 24506 /usr/lib | /lib) ;;
bec39cab 24507 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
24508 esac
24509 fi
24510 cd ..
4e8d927d 24511 rm -f -r conftest.dir
c906108c
SS
24512fi
24513
bec39cab
AC
24514# Standard set of common directories for X headers.
24515# Check X11 before X11Rn because it is often a symlink to the current release.
24516ac_x_header_dirs='
24517/usr/X11/include
24518/usr/X11R6/include
24519/usr/X11R5/include
24520/usr/X11R4/include
24521
24522/usr/include/X11
24523/usr/include/X11R6
24524/usr/include/X11R5
24525/usr/include/X11R4
24526
24527/usr/local/X11/include
24528/usr/local/X11R6/include
24529/usr/local/X11R5/include
24530/usr/local/X11R4/include
24531
24532/usr/local/include/X11
24533/usr/local/include/X11R6
24534/usr/local/include/X11R5
24535/usr/local/include/X11R4
24536
24537/usr/X386/include
24538/usr/x386/include
24539/usr/XFree86/include/X11
24540
24541/usr/include
24542/usr/local/include
24543/usr/unsupported/include
24544/usr/athena/include
24545/usr/local/x11r5/include
24546/usr/lpp/Xamples/include
24547
24548/usr/openwin/include
24549/usr/openwin/share/include'
24550
24551if test "$ac_x_includes" = no; then
4e8d927d 24552 # Guess where to find include files, by looking for Xlib.h.
c906108c 24553 # First, try using that file with no special directory specified.
bec39cab
AC
24554 cat >conftest.$ac_ext <<_ACEOF
24555/* confdefs.h. */
24556_ACEOF
24557cat confdefs.h >>conftest.$ac_ext
24558cat >>conftest.$ac_ext <<_ACEOF
24559/* end confdefs.h. */
4e8d927d 24560#include <X11/Xlib.h.h>
bec39cab
AC
24561_ACEOF
24562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24564 ac_status=$?
24565 grep -v '^ *+' conftest.er1 >conftest.err
24566 rm -f conftest.er1
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } >/dev/null; then
24570 if test -s conftest.err; then
24571 ac_cpp_err=$ac_c_preproc_warn_flag
24572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24573 else
24574 ac_cpp_err=
24575 fi
24576else
24577 ac_cpp_err=yes
24578fi
24579if test -z "$ac_cpp_err"; then
c906108c
SS
24580 # We can compile using X headers with no special include directory.
24581ac_x_includes=
24582else
bec39cab
AC
24583 echo "$as_me: failed program was:" >&5
24584sed 's/^/| /' conftest.$ac_ext >&5
24585
24586 for ac_dir in $ac_x_header_dirs; do
121ce6e5 24587 if test -r "$ac_dir/X11/Xlib.h"; then
bec39cab
AC
24588 ac_x_includes=$ac_dir
24589 break
24590 fi
24591done
c906108c 24592fi
4e8d927d 24593
bec39cab
AC
24594rm -f conftest.err conftest.$ac_ext
24595fi # $ac_x_includes = no
c906108c 24596
bec39cab 24597if test "$ac_x_libraries" = no; then
c906108c 24598 # Check for the libraries.
c906108c
SS
24599 # See if we find them without any special options.
24600 # Don't add to $LIBS permanently.
bec39cab 24601 ac_save_LIBS=$LIBS
4e8d927d 24602 LIBS="-lXt $LIBS"
bec39cab
AC
24603 cat >conftest.$ac_ext <<_ACEOF
24604/* confdefs.h. */
24605_ACEOF
24606cat confdefs.h >>conftest.$ac_ext
24607cat >>conftest.$ac_ext <<_ACEOF
24608/* end confdefs.h. */
121ce6e5 24609#include <X11/Xlib.h>
bec39cab
AC
24610int
24611main ()
24612{
121ce6e5 24613XrmInitialize ()
bec39cab
AC
24614 ;
24615 return 0;
24616}
24617_ACEOF
24618rm -f conftest.$ac_objext conftest$ac_exeext
24619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24620 (eval $ac_link) 2>conftest.er1
24621 ac_status=$?
24622 grep -v '^ *+' conftest.er1 >conftest.err
24623 rm -f conftest.er1
24624 cat conftest.err >&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); } &&
121ce6e5 24627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
24628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24629 (eval $ac_try) 2>&5
24630 ac_status=$?
24631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); }; } &&
24633 { ac_try='test -s conftest$ac_exeext'
24634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24635 (eval $ac_try) 2>&5
24636 ac_status=$?
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); }; }; then
24639 LIBS=$ac_save_LIBS
c906108c
SS
24640# We can link X programs with no special library path.
24641ac_x_libraries=
24642else
bec39cab
AC
24643 echo "$as_me: failed program was:" >&5
24644sed 's/^/| /' conftest.$ac_ext >&5
24645
4e8d927d 24646 LIBS=$ac_save_LIBS
bec39cab 24647for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 24648do
bec39cab 24649 # Don't even attempt the hair of trying to link an X program!
c906108c 24650 for ac_extension in a so sl; do
121ce6e5 24651 if test -r $ac_dir/libX11.$ac_extension; then
c906108c
SS
24652 ac_x_libraries=$ac_dir
24653 break 2
24654 fi
24655 done
24656done
24657fi
4e8d927d 24658
bec39cab
AC
24659rm -f conftest.err conftest.$ac_objext \
24660 conftest$ac_exeext conftest.$ac_ext
24661fi # $ac_x_libraries = no
c906108c 24662
bec39cab 24663if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
24664 # Didn't find X anywhere. Cache the known absence of X.
24665 ac_cv_have_x="have_x=no"
24666else
24667 # Record where we found X for the cache.
24668 ac_cv_have_x="have_x=yes \
bec39cab 24669 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
24670fi
24671fi
bec39cab 24672
c906108c
SS
24673 fi
24674 eval "$ac_cv_have_x"
24675fi # $with_x != no
24676
24677if test "$have_x" != yes; then
4e8d927d
DJ
24678 { echo "$as_me:$LINENO: result: $have_x" >&5
24679echo "${ECHO_T}$have_x" >&6; }
c906108c
SS
24680 no_x=yes
24681else
24682 # If each of the values was on the command line, it overrides each guess.
24683 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24684 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24685 # Update the cache value to reflect the command line values.
24686 ac_cv_have_x="have_x=yes \
24687 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
121ce6e5
DJ
24688 # It might be that x_includes is empty (headers are found in the
24689 # standard search path. Then output the corresponding message
24690 ac_out_x_includes=$x_includes
24691 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
4e8d927d
DJ
24692 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24693echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6; }
c906108c
SS
24694fi
24695
24696
9cc52bde
MK
24697# Check whether we should enable the TUI, but only do so if we really
24698# can.
24699if test x"$enable_tui" = xyes; then
24700 if test -d $srcdir/tui; then
24701 if test "$ac_cv_search_waddstr" != no; then
24702 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
24703 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
24704 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
24705 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
24706 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
24707 CONFIG_ALL="${CONFIG_ALL} all-tui"
24708 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
24709 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
24710 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
24711 else
bec39cab
AC
24712 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
24713echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
24714 fi
24715 fi
24716fi
24717
bec39cab
AC
24718# Unlike the sim directory, whether a simulator is linked is controlled by
24719# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
24720# This code just checks for a few cases where we'd like to ignore those
24721# definitions, even when they're present in the '.mt' file. These cases
24722# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 24723# not part of the source tree.
7a292a7a 24724#
4e8d927d 24725# Check whether --enable-sim was given.
7a292a7a 24726if test "${enable_sim+set}" = set; then
4e8d927d 24727 enableval=$enable_sim; echo "enable_sim = $enable_sim";
7a292a7a
SS
24728 echo "enableval = ${enableval}";
24729 case "${enableval}" in
24730 yes) ignore_sim=false ;;
24731 no) ignore_sim=true ;;
24732 *) ignore_sim=false ;;
24733 esac
24734else
24735 ignore_sim=false
4e8d927d
DJ
24736fi
24737
7a292a7a
SS
24738
24739if test ! -d "${srcdir}/../sim"; then
24740 ignore_sim=true
24741fi
24742
24743if test "${ignore_sim}" = "true"; then
24744 IGNORE_SIM="SIM="
24745 IGNORE_SIM_OBS="SIM_OBS="
24746else
24747 IGNORE_SIM=""
24748 IGNORE_SIM_OBS=""
60ca704f
SE
24749
24750cat >>confdefs.h <<\_ACEOF
7a292a7a 24751#define WITH_SIM 1
bec39cab 24752_ACEOF
7a292a7a
SS
24753
24754fi
24755
24756
24757
c906108c
SS
24758
24759
24760
24761
24762
24763
dfcd3bfb 24764
e56ac5c3
AC
24765
24766
b3a90332
AC
24767
24768
c35f4ffc 24769# List of host floatformats.
bec39cab
AC
24770
24771cat >>confdefs.h <<_ACEOF
c35f4ffc 24772#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 24773_ACEOF
c35f4ffc 24774
bec39cab
AC
24775
24776cat >>confdefs.h <<_ACEOF
c35f4ffc 24777#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
24778_ACEOF
24779
c35f4ffc 24780
bec39cab 24781cat >>confdefs.h <<_ACEOF
c35f4ffc 24782#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 24783_ACEOF
c35f4ffc
AC
24784
24785
c906108c
SS
24786# target_subdir is used by the testsuite to find the target libraries.
24787target_subdir=
24788if test "${host}" != "${target}"; then
24789 target_subdir="${target_alias}/"
24790fi
24791
24792
24793frags=
0dad8a66
MK
24794if test "${target}" = "${host}"; then
24795 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
24796 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
24797 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
24798echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
24799 { (exit 1); exit 1; }; }
0dad8a66
MK
24800 fi
24801 frags="$frags $host_makefile_frag"
24802else
24803 host_makefile_frag=/dev/null
c906108c 24804fi
c906108c
SS
24805
24806target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
24807if test ! -f ${target_makefile_frag}; then
bec39cab
AC
24808 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
24809echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
24810 { (exit 1); exit 1; }; }
c906108c
SS
24811fi
24812frags="$frags $target_makefile_frag"
24813
24814
24815
24816
24817
24818hostfile=`sed -n '
24819s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24820' ${host_makefile_frag}`
24821
24822targetfile=`sed -n '
2c0fc042 24823s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
24824' ${target_makefile_frag}`
24825
c906108c 24826if test "${target}" = "${host}"; then
a85f51e7
DJ
24827# We pick this up from the host configuration file (.mh) because we
24828# do not have a native configuration Makefile fragment.
c906108c
SS
24829nativefile=`sed -n '
24830s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24831' ${host_makefile_frag}`
c906108c
SS
24832fi
24833
24834
b00a8037 24835if test x"${gdb_osabi}" != x ; then
bec39cab
AC
24836
24837cat >>confdefs.h <<_ACEOF
b00a8037 24838#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 24839_ACEOF
b00a8037
DJ
24840
24841fi
24842
8dcde887 24843# Enable multi-ice-gdb-server.
4e8d927d 24844# Check whether --enable-multi-ice was given.
8dcde887 24845if test "${enable_multi_ice+set}" = set; then
4e8d927d 24846 enableval=$enable_multi_ice; case $enableval in
8dcde887
MK
24847 yes | no)
24848 ;;
bec39cab
AC
24849 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
24850echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
24851 { (exit 1); exit 1; }; } ;;
8dcde887 24852 esac
4e8d927d 24853fi
bec39cab 24854
4e8d927d
DJ
24855if test "x$enable_multi_ice" = xyes; then
24856 subdirs="$subdirs multi-ice"
3ace7edb 24857
a85f51e7
DJ
24858fi
24859
8dcde887
MK
24860# We only build gdbserver automatically if host and target are the same.
24861if test "x$target" = "x$host"; then
4e8d927d
DJ
24862 { echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
24863echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6; }
8dcde887 24864 if test "x$build_gdbserver" = xyes; then
4e8d927d
DJ
24865 { echo "$as_me:$LINENO: result: yes" >&5
24866echo "${ECHO_T}yes" >&6; }
24867 subdirs="$subdirs gdbserver"
3ace7edb 24868
8dcde887 24869 else
4e8d927d
DJ
24870 { echo "$as_me:$LINENO: result: no" >&5
24871echo "${ECHO_T}no" >&6; }
8dcde887
MK
24872 fi
24873fi
24874
2c0fc042
AC
24875# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
24876# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
24877# to an empty version.
c906108c
SS
24878
24879files=
24880links=
5a2402b8 24881
c906108c 24882rm -f xm.h
5a2402b8 24883xm_h=""
c906108c 24884if test "${hostfile}" != ""; then
5a2402b8 24885 xm_h=xm.h
0f475e27
AC
24886 case "${hostfile}" in
24887 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
24888 * ) GDB_XM_FILE="${hostfile}"
24889 esac
5a2402b8
AC
24890 files="${files} ${GDB_XM_FILE}"
24891 links="${links} xm.h"
60ca704f
SE
24892
24893cat >>confdefs.h <<_ACEOF
b78960be 24894#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 24895_ACEOF
5a2402b8 24896
c906108c 24897fi
5a2402b8
AC
24898
24899
c906108c 24900rm -f tm.h
5a2402b8 24901tm_h=""
c906108c 24902if test "${targetfile}" != ""; then
5a2402b8 24903 tm_h=tm.h
0f475e27 24904 case "${targetfile}" in
b8c4aece 24905 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
24906 * ) GDB_TM_FILE="${targetfile}"
24907 esac
5a2402b8
AC
24908 files="${files} ${GDB_TM_FILE}"
24909 links="${links} tm.h"
60ca704f
SE
24910
24911cat >>confdefs.h <<_ACEOF
b78960be 24912#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 24913_ACEOF
5a2402b8 24914
c906108c 24915fi
5a2402b8
AC
24916
24917
c906108c 24918rm -f nm.h
5a2402b8 24919nm_h=""
c906108c 24920if test "${nativefile}" != ""; then
5a2402b8 24921 nm_h=nm.h
0f475e27
AC
24922 case "${nativefile}" in
24923 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
24924 * ) GDB_NM_FILE="${nativefile}"
24925 esac
5a2402b8
AC
24926 files="${files} ${GDB_NM_FILE}"
24927 links="${links} nm.h"
60ca704f
SE
24928
24929cat >>confdefs.h <<_ACEOF
b78960be 24930#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 24931_ACEOF
5a2402b8 24932
c906108c 24933fi
5a2402b8
AC
24934
24935
bec39cab
AC
24936ac_sources="$files"
24937ac_dests="$links"
24938while test -n "$ac_sources"; do
24939 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24940 set $ac_sources; ac_source=$1; shift; ac_sources=$*
24941 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
24942done
4e8d927d 24943ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
24944
24945
c906108c
SS
24946
24947
c906108c 24948
c906108c 24949
bec39cab
AC
24950cat >>confdefs.h <<\_ACEOF
24951#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
24952_ACEOF
c906108c 24953
234b45d4 24954
234b45d4
KB
24955
24956
24957
4e8d927d 24958# Check whether --with-libiconv-prefix was given.
234b45d4 24959if test "${with_libiconv_prefix+set}" = set; then
4e8d927d 24960 withval=$with_libiconv_prefix;
234b45d4
KB
24961 for dir in `echo "$withval" | tr : ' '`; do
24962 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
24963 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
24964 done
234b45d4 24965
4e8d927d
DJ
24966fi
24967
234b45d4 24968
4e8d927d
DJ
24969 { echo "$as_me:$LINENO: checking for iconv" >&5
24970echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
bec39cab
AC
24971if test "${am_cv_func_iconv+set}" = set; then
24972 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 24973else
bec39cab 24974
234b45d4
KB
24975 am_cv_func_iconv="no, consider installing GNU libiconv"
24976 am_cv_lib_iconv=no
bec39cab
AC
24977 cat >conftest.$ac_ext <<_ACEOF
24978/* confdefs.h. */
24979_ACEOF
24980cat confdefs.h >>conftest.$ac_ext
24981cat >>conftest.$ac_ext <<_ACEOF
24982/* end confdefs.h. */
234b45d4
KB
24983#include <stdlib.h>
24984#include <iconv.h>
bec39cab
AC
24985int
24986main ()
24987{
234b45d4
KB
24988iconv_t cd = iconv_open("","");
24989 iconv(cd,NULL,NULL,NULL,NULL);
24990 iconv_close(cd);
bec39cab
AC
24991 ;
24992 return 0;
24993}
24994_ACEOF
24995rm -f conftest.$ac_objext conftest$ac_exeext
24996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24997 (eval $ac_link) 2>conftest.er1
24998 ac_status=$?
24999 grep -v '^ *+' conftest.er1 >conftest.err
25000 rm -f conftest.er1
25001 cat conftest.err >&5
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); } &&
121ce6e5 25004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
25005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25006 (eval $ac_try) 2>&5
25007 ac_status=$?
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; } &&
25010 { ac_try='test -s conftest$ac_exeext'
25011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25012 (eval $ac_try) 2>&5
25013 ac_status=$?
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; }; then
234b45d4
KB
25016 am_cv_func_iconv=yes
25017else
bec39cab
AC
25018 echo "$as_me: failed program was:" >&5
25019sed 's/^/| /' conftest.$ac_ext >&5
25020
4e8d927d 25021
234b45d4 25022fi
4e8d927d 25023
bec39cab
AC
25024rm -f conftest.err conftest.$ac_objext \
25025 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25026 if test "$am_cv_func_iconv" != yes; then
25027 am_save_LIBS="$LIBS"
25028 LIBS="$LIBS -liconv"
bec39cab
AC
25029 cat >conftest.$ac_ext <<_ACEOF
25030/* confdefs.h. */
25031_ACEOF
25032cat confdefs.h >>conftest.$ac_ext
25033cat >>conftest.$ac_ext <<_ACEOF
25034/* end confdefs.h. */
234b45d4
KB
25035#include <stdlib.h>
25036#include <iconv.h>
bec39cab
AC
25037int
25038main ()
25039{
234b45d4
KB
25040iconv_t cd = iconv_open("","");
25041 iconv(cd,NULL,NULL,NULL,NULL);
25042 iconv_close(cd);
bec39cab
AC
25043 ;
25044 return 0;
25045}
25046_ACEOF
25047rm -f conftest.$ac_objext conftest$ac_exeext
25048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25049 (eval $ac_link) 2>conftest.er1
25050 ac_status=$?
25051 grep -v '^ *+' conftest.er1 >conftest.err
25052 rm -f conftest.er1
25053 cat conftest.err >&5
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); } &&
121ce6e5 25056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
25057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058 (eval $ac_try) 2>&5
25059 ac_status=$?
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); }; } &&
25062 { ac_try='test -s conftest$ac_exeext'
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25065 ac_status=$?
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; }; then
234b45d4
KB
25068 am_cv_lib_iconv=yes
25069 am_cv_func_iconv=yes
25070else
bec39cab
AC
25071 echo "$as_me: failed program was:" >&5
25072sed 's/^/| /' conftest.$ac_ext >&5
25073
4e8d927d 25074
234b45d4 25075fi
4e8d927d 25076
bec39cab
AC
25077rm -f conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25079 LIBS="$am_save_LIBS"
25080 fi
bec39cab
AC
25081
25082fi
4e8d927d
DJ
25083{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25084echo "${ECHO_T}$am_cv_func_iconv" >&6; }
bec39cab
AC
25085 if test "$am_cv_func_iconv" = yes; then
25086
25087cat >>confdefs.h <<\_ACEOF
25088#define HAVE_ICONV 1
25089_ACEOF
25090
4e8d927d
DJ
25091 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
25092echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
bec39cab
AC
25093 if test "${am_cv_proto_iconv+set}" = set; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
25095else
25096
25097 cat >conftest.$ac_ext <<_ACEOF
25098/* confdefs.h. */
25099_ACEOF
25100cat confdefs.h >>conftest.$ac_ext
25101cat >>conftest.$ac_ext <<_ACEOF
25102/* end confdefs.h. */
25103
25104#include <stdlib.h>
25105#include <iconv.h>
25106extern
25107#ifdef __cplusplus
25108"C"
25109#endif
25110#if defined(__STDC__) || defined(__cplusplus)
25111size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25112#else
25113size_t iconv();
25114#endif
25115
25116int
25117main ()
25118{
25119
25120 ;
25121 return 0;
25122}
25123_ACEOF
25124rm -f conftest.$ac_objext
25125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25126 (eval $ac_compile) 2>conftest.er1
25127 ac_status=$?
25128 grep -v '^ *+' conftest.er1 >conftest.err
25129 rm -f conftest.er1
25130 cat conftest.err >&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } &&
121ce6e5 25133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
25134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135 (eval $ac_try) 2>&5
25136 ac_status=$?
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); }; } &&
25139 { ac_try='test -s conftest.$ac_objext'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25142 ac_status=$?
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; }; then
25145 am_cv_proto_iconv_arg1=""
25146else
25147 echo "$as_me: failed program was:" >&5
25148sed 's/^/| /' conftest.$ac_ext >&5
25149
4e8d927d 25150 am_cv_proto_iconv_arg1="const"
bec39cab 25151fi
4e8d927d 25152
bec39cab
AC
25153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25154 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);"
25155fi
25156
25157 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4e8d927d 25158 { echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
25159 }$am_cv_proto_iconv" >&5
25160echo "${ECHO_T}${ac_t:-
4e8d927d 25161 }$am_cv_proto_iconv" >&6; }
bec39cab
AC
25162
25163cat >>confdefs.h <<_ACEOF
25164#define ICONV_CONST $am_cv_proto_iconv_arg1
25165_ACEOF
25166
25167 fi
25168 LIBICONV=
25169 if test "$am_cv_lib_iconv" = yes; then
25170 LIBICONV="-liconv"
25171 fi
25172
25173
25174
4e8d927d
DJ
25175ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
25176
25177ac_config_commands="$ac_config_commands default"
25178
bec39cab
AC
25179cat >confcache <<\_ACEOF
25180# This file is a shell script that caches the results of configure
25181# tests run on this system so they can be shared between configure
25182# scripts and configure runs, see configure's option --config-cache.
25183# It is not useful on other systems. If it contains results you don't
25184# want to keep, you may remove or edit it.
25185#
25186# config.status only pays attention to the cache file if you give it
25187# the --recheck option to rerun configure.
25188#
25189# `ac_cv_env_foo' variables (set or unset) will be overridden when
25190# loading this file, other *unset* `ac_cv_foo' will be assigned the
25191# following values.
25192
25193_ACEOF
25194
25195# The following way of writing the cache mishandles newlines in values,
25196# but we know of no workaround that is simple, portable, and efficient.
4e8d927d 25197# So, we kill variables containing newlines.
bec39cab
AC
25198# Ultrix sh set writes to stderr and can't be redirected directly,
25199# and sets the high bit in the cache file unless we assign to the vars.
4e8d927d
DJ
25200(
25201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25202 eval ac_val=\$$ac_var
25203 case $ac_val in #(
25204 *${as_nl}*)
25205 case $ac_var in #(
25206 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25207echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25208 esac
25209 case $ac_var in #(
25210 _ | IFS | as_nl) ;; #(
25211 *) $as_unset $ac_var ;;
25212 esac ;;
25213 esac
25214 done
25215
bec39cab 25216 (set) 2>&1 |
4e8d927d
DJ
25217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25218 *${as_nl}ac_space=\ *)
bec39cab
AC
25219 # `set' does not quote correctly, so add quotes (double-quote
25220 # substitution turns \\\\ into \\, and sed turns \\ into \).
25221 sed -n \
25222 "s/'/'\\\\''/g;
25223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4e8d927d 25224 ;; #(
bec39cab
AC
25225 *)
25226 # `set' quotes correctly as required by POSIX, so do not add quotes.
4e8d927d 25227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 25228 ;;
4e8d927d
DJ
25229 esac |
25230 sort
25231) |
bec39cab 25232 sed '
4e8d927d 25233 /^ac_cv_env_/b end
bec39cab 25234 t clear
4e8d927d 25235 :clear
bec39cab
AC
25236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25237 t end
4e8d927d
DJ
25238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25239 :end' >>confcache
bec39cab
AC
25240if diff $cache_file confcache >/dev/null 2>&1; then :; else
25241 if test -w $cache_file; then
4e8d927d
DJ
25242 test "x$cache_file" != "x/dev/null" &&
25243 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25244echo "$as_me: updating cache $cache_file" >&6;}
bec39cab
AC
25245 cat confcache >$cache_file
25246 else
4e8d927d
DJ
25247 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25248echo "$as_me: not updating unwritable cache $cache_file" >&6;}
bec39cab
AC
25249 fi
25250fi
25251rm -f confcache
25252
25253test "x$prefix" = xNONE && prefix=$ac_default_prefix
25254# Let make expand exec_prefix.
25255test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25256
bec39cab
AC
25257DEFS=-DHAVE_CONFIG_H
25258
25259ac_libobjs=
25260ac_ltlibobjs=
25261for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25262 # 1. Remove the extension, and $U if already installed.
4e8d927d
DJ
25263 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25264 ac_i=`echo "$ac_i" | sed "$ac_script"`
25265 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25266 # will be set to the directory where LIBOBJS objects are built.
25267 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25268 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
bec39cab
AC
25269done
25270LIBOBJS=$ac_libobjs
25271
25272LTLIBOBJS=$ac_ltlibobjs
25273
25274
85981d60
AC
25275if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25276 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25277Usually this means the macro was only invoked conditionally." >&5
25278echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25279Usually this means the macro was only invoked conditionally." >&2;}
25280 { (exit 1); exit 1; }; }
25281fi
bec39cab
AC
25282
25283: ${CONFIG_STATUS=./config.status}
25284ac_clean_files_save=$ac_clean_files
25285ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25286{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25287echo "$as_me: creating $CONFIG_STATUS" >&6;}
25288cat >$CONFIG_STATUS <<_ACEOF
25289#! $SHELL
25290# Generated by $as_me.
25291# Run this file to recreate the current configuration.
25292# Compiler output produced by configure, useful for debugging
25293# configure, is in config.log if it exists.
25294
25295debug=false
25296ac_cs_recheck=false
25297ac_cs_silent=false
25298SHELL=\${CONFIG_SHELL-$SHELL}
25299_ACEOF
25300
25301cat >>$CONFIG_STATUS <<\_ACEOF
25302## --------------------- ##
25303## M4sh Initialization. ##
25304## --------------------- ##
25305
25306# Be Bourne compatible
25307if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25308 emulate sh
25309 NULLCMD=:
25310 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25311 # is contrary to our usage. Disable this feature.
25312 alias -g '${1+"$@"}'='"$@"'
4e8d927d
DJ
25313 setopt NO_GLOB_SUBST
25314else
25315 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
bec39cab 25316fi
4e8d927d 25317BIN_SH=xpg4; export BIN_SH # for Tru64
bec39cab
AC
25318DUALCASE=1; export DUALCASE # for MKS sh
25319
4e8d927d
DJ
25320
25321# PATH needs CR
25322# Avoid depending upon Character Ranges.
25323as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25324as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25325as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25326as_cr_digits='0123456789'
25327as_cr_alnum=$as_cr_Letters$as_cr_digits
25328
25329# The user is always right.
25330if test "${PATH_SEPARATOR+set}" != set; then
25331 echo "#! /bin/sh" >conf$$.sh
25332 echo "exit 0" >>conf$$.sh
25333 chmod +x conf$$.sh
25334 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25335 PATH_SEPARATOR=';'
25336 else
25337 PATH_SEPARATOR=:
25338 fi
25339 rm -f conf$$.sh
25340fi
25341
bec39cab
AC
25342# Support unset when possible.
25343if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25344 as_unset=unset
25345else
25346 as_unset=false
25347fi
25348
25349
4e8d927d
DJ
25350# IFS
25351# We need space, tab and new line, in precisely that order. Quoting is
25352# there to prevent editors from complaining about space-tab.
25353# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25354# splitting by setting IFS to empty value.)
25355as_nl='
25356'
25357IFS=" "" $as_nl"
25358
25359# Find who we are. Look in the path if we contain no directory separator.
25360case $0 in
25361 *[\\/]* ) as_myself=$0 ;;
25362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25363for as_dir in $PATH
25364do
25365 IFS=$as_save_IFS
25366 test -z "$as_dir" && as_dir=.
25367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25368done
25369IFS=$as_save_IFS
25370
25371 ;;
25372esac
25373# We did not find ourselves, most probably we were run as `sh COMMAND'
25374# in which case we are not to be found in the path.
25375if test "x$as_myself" = x; then
25376 as_myself=$0
25377fi
25378if test ! -f "$as_myself"; then
25379 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25380 { (exit 1); exit 1; }
25381fi
25382
bec39cab 25383# Work around bugs in pre-3.0 UWIN ksh.
4e8d927d
DJ
25384for as_var in ENV MAIL MAILPATH
25385do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25386done
bec39cab
AC
25387PS1='$ '
25388PS2='> '
25389PS4='+ '
25390
25391# NLS nuisances.
25392for as_var in \
25393 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25394 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25395 LC_TELEPHONE LC_TIME
25396do
25397 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25398 eval $as_var=C; export $as_var
25399 else
4e8d927d 25400 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
bec39cab
AC
25401 fi
25402done
25403
25404# Required to use basename.
4e8d927d
DJ
25405if expr a : '\(a\)' >/dev/null 2>&1 &&
25406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
25407 as_expr=expr
25408else
25409 as_expr=false
25410fi
25411
4e8d927d 25412if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
25413 as_basename=basename
25414else
25415 as_basename=false
25416fi
25417
25418
25419# Name of the executable.
4e8d927d 25420as_me=`$as_basename -- "$0" ||
bec39cab
AC
25421$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25422 X"$0" : 'X\(//\)$' \| \
4e8d927d 25423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
bec39cab 25424echo X/"$0" |
4e8d927d
DJ
25425 sed '/^.*\/\([^/][^/]*\)\/*$/{
25426 s//\1/
25427 q
25428 }
25429 /^X\/\(\/\/\)$/{
25430 s//\1/
25431 q
25432 }
25433 /^X\/\(\/\).*/{
25434 s//\1/
25435 q
25436 }
25437 s/.*/./; q'`
bec39cab 25438
4e8d927d
DJ
25439# CDPATH.
25440$as_unset CDPATH
bec39cab
AC
25441
25442
bec39cab 25443
bec39cab
AC
25444 as_lineno_1=$LINENO
25445 as_lineno_2=$LINENO
bec39cab 25446 test "x$as_lineno_1" != "x$as_lineno_2" &&
4e8d927d 25447 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
bec39cab
AC
25448
25449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25450 # uniformly replaced by the line number. The first 'sed' inserts a
4e8d927d
DJ
25451 # line-number line after each line using $LINENO; the second 'sed'
25452 # does the real work. The second script uses 'N' to pair each
25453 # line-number line with the line containing $LINENO, and appends
25454 # trailing '-' during substitution so that $LINENO is not a special
25455 # case at line end.
bec39cab 25456 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4e8d927d
DJ
25457 # scripts with optimization help from Paolo Bonzini. Blame Lee
25458 # E. McMahon (1931-1989) for sed's syntax. :-)
25459 sed -n '
25460 p
25461 /[$]LINENO/=
25462 ' <$as_myself |
bec39cab 25463 sed '
4e8d927d
DJ
25464 s/[$]LINENO.*/&-/
25465 t lineno
25466 b
25467 :lineno
bec39cab 25468 N
4e8d927d
DJ
25469 :loop
25470 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bec39cab 25471 t loop
4e8d927d 25472 s/-\n.*//
bec39cab 25473 ' >$as_me.lineno &&
4e8d927d
DJ
25474 chmod +x "$as_me.lineno" ||
25475 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
bec39cab
AC
25476 { (exit 1); exit 1; }; }
25477
25478 # Don't try to exec as it changes $[0], causing all sort of problems
25479 # (the dirname of $[0] is not the place where we might find the
4e8d927d
DJ
25480 # original and so on. Autoconf is especially sensitive to this).
25481 . "./$as_me.lineno"
bec39cab
AC
25482 # Exit status is that of the last command.
25483 exit
25484}
25485
25486
4e8d927d
DJ
25487if (dirname -- /) >/dev/null 2>&1; then
25488 as_dirname=dirname
25489else
25490 as_dirname=false
25491fi
25492
25493ECHO_C= ECHO_N= ECHO_T=
25494case `echo -n x` in
25495-n*)
25496 case `echo 'x\c'` in
25497 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25498 *) ECHO_C='\c';;
25499 esac;;
25500*)
25501 ECHO_N='-n';;
bec39cab
AC
25502esac
25503
4e8d927d
DJ
25504if expr a : '\(a\)' >/dev/null 2>&1 &&
25505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
25506 as_expr=expr
25507else
25508 as_expr=false
25509fi
25510
25511rm -f conf$$ conf$$.exe conf$$.file
4e8d927d
DJ
25512if test -d conf$$.dir; then
25513 rm -f conf$$.dir/conf$$.file
25514else
25515 rm -f conf$$.dir
25516 mkdir conf$$.dir
25517fi
bec39cab
AC
25518echo >conf$$.file
25519if ln -s conf$$.file conf$$ 2>/dev/null; then
4e8d927d
DJ
25520 as_ln_s='ln -s'
25521 # ... but there are two gotchas:
25522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25524 # In both cases, we have to default to `cp -p'.
25525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
bec39cab 25526 as_ln_s='cp -p'
bec39cab
AC
25527elif ln conf$$.file conf$$ 2>/dev/null; then
25528 as_ln_s=ln
25529else
25530 as_ln_s='cp -p'
25531fi
4e8d927d
DJ
25532rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25533rmdir conf$$.dir 2>/dev/null
bec39cab
AC
25534
25535if mkdir -p . 2>/dev/null; then
25536 as_mkdir_p=:
25537else
25538 test -d ./-p && rmdir ./-p
25539 as_mkdir_p=false
25540fi
25541
4e8d927d
DJ
25542# Find out whether ``test -x'' works. Don't use a zero-byte file, as
25543# systems may use methods other than mode bits to determine executability.
25544cat >conf$$.file <<_ASEOF
25545#! /bin/sh
25546exit 0
25547_ASEOF
25548chmod +x conf$$.file
25549if test -x conf$$.file >/dev/null 2>&1; then
25550 as_executable_p="test -x"
25551else
25552 as_executable_p=:
25553fi
25554rm -f conf$$.file
bec39cab
AC
25555
25556# Sed expression to map a string onto a valid CPP name.
25557as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25558
25559# Sed expression to map a string onto a valid variable name.
25560as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25561
25562
bec39cab
AC
25563exec 6>&1
25564
4e8d927d 25565# Save the log message, to keep $[0] and so on meaningful, and to
bec39cab 25566# report actual input values of CONFIG_FILES etc. instead of their
4e8d927d
DJ
25567# values after options handling.
25568ac_log="
bec39cab 25569This file was extended by $as_me, which was
4e8d927d 25570generated by GNU Autoconf 2.59d. Invocation command line was
bec39cab
AC
25571
25572 CONFIG_FILES = $CONFIG_FILES
25573 CONFIG_HEADERS = $CONFIG_HEADERS
25574 CONFIG_LINKS = $CONFIG_LINKS
25575 CONFIG_COMMANDS = $CONFIG_COMMANDS
25576 $ $0 $@
25577
4e8d927d
DJ
25578on `(hostname || uname -n) 2>/dev/null | sed 1q`
25579"
25580
bec39cab
AC
25581_ACEOF
25582
4e8d927d 25583cat >>$CONFIG_STATUS <<_ACEOF
bec39cab 25584# Files that config.status was made for.
4e8d927d
DJ
25585config_files="$ac_config_files"
25586config_headers="$ac_config_headers"
25587config_links="$ac_config_links"
25588config_commands="$ac_config_commands"
234b45d4 25589
4e8d927d 25590_ACEOF
234b45d4 25591
bec39cab 25592cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
25593ac_cs_usage="\
25594\`$as_me' instantiates files from templates according to the
25595current configuration.
234b45d4 25596
bec39cab 25597Usage: $0 [OPTIONS] [FILE]...
234b45d4 25598
bec39cab
AC
25599 -h, --help print this help, then exit
25600 -V, --version print version number, then exit
25601 -q, --quiet do not print progress messages
25602 -d, --debug don't remove temporary files
25603 --recheck update $as_me by reconfiguring in the same conditions
25604 --file=FILE[:TEMPLATE]
25605 instantiate the configuration file FILE
25606 --header=FILE[:TEMPLATE]
25607 instantiate the configuration header FILE
234b45d4 25608
bec39cab
AC
25609Configuration files:
25610$config_files
234b45d4 25611
bec39cab
AC
25612Configuration headers:
25613$config_headers
234b45d4 25614
bec39cab
AC
25615Configuration links:
25616$config_links
234b45d4 25617
bec39cab
AC
25618Configuration commands:
25619$config_commands
25620
25621Report bugs to <bug-autoconf@gnu.org>."
bec39cab 25622
4e8d927d 25623_ACEOF
bec39cab
AC
25624cat >>$CONFIG_STATUS <<_ACEOF
25625ac_cs_version="\\
25626config.status
4e8d927d 25627configured by $0, generated by GNU Autoconf 2.59d,
bec39cab
AC
25628 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25629
4e8d927d 25630Copyright (C) 2006 Free Software Foundation, Inc.
bec39cab
AC
25631This config.status script is free software; the Free Software Foundation
25632gives unlimited permission to copy, distribute and modify it."
4e8d927d
DJ
25633
25634ac_pwd='$ac_pwd'
25635srcdir='$srcdir'
25636INSTALL='$INSTALL'
bec39cab
AC
25637_ACEOF
25638
25639cat >>$CONFIG_STATUS <<\_ACEOF
25640# If no file are specified by the user, then we need to provide default
25641# value. By we need to know if files were specified by the user.
25642ac_need_defaults=:
25643while test $# != 0
25644do
25645 case $1 in
25646 --*=*)
4e8d927d
DJ
25647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25648 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bec39cab 25649 ac_shift=:
c906108c 25650 ;;
4e8d927d 25651 *)
bec39cab
AC
25652 ac_option=$1
25653 ac_optarg=$2
25654 ac_shift=shift
c906108c 25655 ;;
bec39cab 25656 esac
c906108c 25657
bec39cab
AC
25658 case $ac_option in
25659 # Handling of the options.
bec39cab
AC
25660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25661 ac_cs_recheck=: ;;
4e8d927d
DJ
25662 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25663 echo "$ac_cs_version"; exit ;;
25664 --debug | --debu | --deb | --de | --d | -d )
bec39cab
AC
25665 debug=: ;;
25666 --file | --fil | --fi | --f )
25667 $ac_shift
25668 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25669 ac_need_defaults=false;;
25670 --header | --heade | --head | --hea )
25671 $ac_shift
25672 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25673 ac_need_defaults=false;;
4e8d927d
DJ
25674 --he | --h)
25675 # Conflict between --help and --header
25676 { echo "$as_me: error: ambiguous option: $1
25677Try \`$0 --help' for more information." >&2
25678 { (exit 1); exit 1; }; };;
25679 --help | --hel | -h )
25680 echo "$ac_cs_usage"; exit ;;
bec39cab
AC
25681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25683 ac_cs_silent=: ;;
c906108c 25684
bec39cab 25685 # This is an error.
4e8d927d
DJ
25686 -*) { echo "$as_me: error: unrecognized option: $1
25687Try \`$0 --help' for more information." >&2
bec39cab 25688 { (exit 1); exit 1; }; } ;;
c906108c 25689
4e8d927d
DJ
25690 *) ac_config_targets="$ac_config_targets $1"
25691 ac_need_defaults=false ;;
c906108c 25692
bec39cab
AC
25693 esac
25694 shift
25695done
c906108c 25696
bec39cab 25697ac_configure_extra_args=
c906108c 25698
bec39cab
AC
25699if $ac_cs_silent; then
25700 exec 6>/dev/null
25701 ac_configure_extra_args="$ac_configure_extra_args --silent"
25702fi
c906108c 25703
bec39cab
AC
25704_ACEOF
25705cat >>$CONFIG_STATUS <<_ACEOF
25706if \$ac_cs_recheck; then
4e8d927d
DJ
25707 echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25708 CONFIG_SHELL=$SHELL
25709 export CONFIG_SHELL
25710 exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
25711fi
25712
25713_ACEOF
4e8d927d
DJ
25714cat >>$CONFIG_STATUS <<\_ACEOF
25715exec 5>>config.log
25716{
25717 echo
25718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25719## Running $as_me. ##
25720_ASBOX
25721 echo "$ac_log"
25722} >&5
bec39cab 25723
4e8d927d 25724_ACEOF
bec39cab 25725cat >>$CONFIG_STATUS <<_ACEOF
c906108c 25726#
4e8d927d 25727# INIT-COMMANDS
c906108c 25728#
c906108c 25729
4e8d927d
DJ
25730GCC="$GCC"
25731CC="$CC"
25732acx_cv_header_stdint="$acx_cv_header_stdint"
25733acx_cv_type_int8_t="$acx_cv_type_int8_t"
25734acx_cv_type_int16_t="$acx_cv_type_int16_t"
25735acx_cv_type_int32_t="$acx_cv_type_int32_t"
25736acx_cv_type_int64_t="$acx_cv_type_int64_t"
25737acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
25738ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
25739ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
25740ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25741ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25742ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
25743ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25744ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25745ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
25746
bec39cab
AC
25747
25748gdb_host_cpu=$gdb_host_cpu
25749gdb_target_cpu=$gdb_target_cpu
25750nativefile=$nativefile
25751
25752
25753_ACEOF
25754
bec39cab 25755cat >>$CONFIG_STATUS <<\_ACEOF
4e8d927d
DJ
25756
25757# Handling of arguments.
bec39cab 25758for ac_config_target in $ac_config_targets
c906108c 25759do
4e8d927d
DJ
25760 case $ac_config_target in
25761 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
25762 "gdb_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
25763 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25764 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25765 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
25766 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25767
bec39cab
AC
25768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25769echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25770 { (exit 1); exit 1; }; };;
c906108c
SS
25771 esac
25772done
25773
4e8d927d 25774
bec39cab
AC
25775# If the user did not use the arguments to specify the items to instantiate,
25776# then the envvar interface is used. Set only those that are not.
25777# We use the long form for the default assignment because of an extremely
25778# bizarre bug on SunOS 4.1.3.
25779if $ac_need_defaults; then
25780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25782 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25783 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25784fi
25785
25786# Have a temporary directory for convenience. Make it in the build tree
4e8d927d 25787# simply because there is no reason against having it here, and in addition,
bec39cab 25788# creating and moving files from /tmp can sometimes cause problems.
4e8d927d
DJ
25789# Hook for its removal unless debugging.
25790# Note that there is a small window in which the directory will not be cleaned:
25791# after its creation but before its name has been assigned to `$tmp'.
bec39cab
AC
25792$debug ||
25793{
4e8d927d
DJ
25794 tmp=
25795 trap 'exit_status=$?
25796 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25797' 0
bec39cab
AC
25798 trap '{ (exit 1); exit 1; }' 1 2 13 15
25799}
bec39cab 25800# Create a (secure) tmp directory for tmp files.
c906108c 25801
bec39cab 25802{
4e8d927d 25803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
bec39cab
AC
25804 test -n "$tmp" && test -d "$tmp"
25805} ||
25806{
4e8d927d
DJ
25807 tmp=./conf$$-$RANDOM
25808 (umask 077 && mkdir "$tmp")
bec39cab
AC
25809} ||
25810{
25811 echo "$me: cannot create a temporary directory in ." >&2
25812 { (exit 1); exit 1; }
25813}
25814
bec39cab 25815#
4e8d927d 25816# Set up the sed scripts for CONFIG_FILES section.
bec39cab
AC
25817#
25818
25819# No need to generate the scripts if there are no CONFIG_FILES.
25820# This happens for instance when ./config.status config.h
4e8d927d
DJ
25821if test -n "$CONFIG_FILES"; then
25822
25823_ACEOF
25824
25825# Create sed commands to just substitute file output variables.
25826
25827# Remaining file output variables are in a fragment that also has non-file
25828# output varibles.
25829
25830
25831
25832ac_delim='%!_!# '
25833for ac_last_try in false false false false false :; do
25834 cat >conf$$subs.sed <<_ACEOF
25835SHELL!$SHELL$ac_delim
25836PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25837PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25838PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25839PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25840PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25841PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25842exec_prefix!$exec_prefix$ac_delim
25843prefix!$prefix$ac_delim
25844program_transform_name!$program_transform_name$ac_delim
25845bindir!$bindir$ac_delim
25846sbindir!$sbindir$ac_delim
25847libexecdir!$libexecdir$ac_delim
25848datarootdir!$datarootdir$ac_delim
25849datadir!$datadir$ac_delim
25850sysconfdir!$sysconfdir$ac_delim
25851sharedstatedir!$sharedstatedir$ac_delim
25852localstatedir!$localstatedir$ac_delim
25853includedir!$includedir$ac_delim
25854oldincludedir!$oldincludedir$ac_delim
25855docdir!$docdir$ac_delim
25856infodir!$infodir$ac_delim
25857htmldir!$htmldir$ac_delim
25858dvidir!$dvidir$ac_delim
25859pdfdir!$pdfdir$ac_delim
25860psdir!$psdir$ac_delim
25861libdir!$libdir$ac_delim
25862localedir!$localedir$ac_delim
25863mandir!$mandir$ac_delim
25864DEFS!$DEFS$ac_delim
25865ECHO_C!$ECHO_C$ac_delim
25866ECHO_N!$ECHO_N$ac_delim
25867ECHO_T!$ECHO_T$ac_delim
25868LIBS!$LIBS$ac_delim
25869build_alias!$build_alias$ac_delim
25870host_alias!$host_alias$ac_delim
25871target_alias!$target_alias$ac_delim
25872MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
25873MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
25874MAINT!$MAINT$ac_delim
25875CC!$CC$ac_delim
25876CFLAGS!$CFLAGS$ac_delim
25877LDFLAGS!$LDFLAGS$ac_delim
25878CPPFLAGS!$CPPFLAGS$ac_delim
25879ac_ct_CC!$ac_ct_CC$ac_delim
25880EXEEXT!$EXEEXT$ac_delim
25881OBJEXT!$OBJEXT$ac_delim
25882CPP!$CPP$ac_delim
25883GREP!$GREP$ac_delim
25884EGREP!$EGREP$ac_delim
25885build!$build$ac_delim
25886build_cpu!$build_cpu$ac_delim
25887build_vendor!$build_vendor$ac_delim
25888build_os!$build_os$ac_delim
25889host!$host$ac_delim
25890host_cpu!$host_cpu$ac_delim
25891host_vendor!$host_vendor$ac_delim
25892host_os!$host_os$ac_delim
25893target!$target$ac_delim
25894target_cpu!$target_cpu$ac_delim
25895target_vendor!$target_vendor$ac_delim
25896target_os!$target_os$ac_delim
25897SET_MAKE!$SET_MAKE$ac_delim
25898RANLIB!$RANLIB$ac_delim
25899ALLOCA!$ALLOCA$ac_delim
25900USE_NLS!$USE_NLS$ac_delim
25901MSGFMT!$MSGFMT$ac_delim
25902GMSGFMT!$GMSGFMT$ac_delim
25903XGETTEXT!$XGETTEXT$ac_delim
25904USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
25905CATALOGS!$CATALOGS$ac_delim
25906CATOBJEXT!$CATOBJEXT$ac_delim
25907DATADIRNAME!$DATADIRNAME$ac_delim
25908GMOFILES!$GMOFILES$ac_delim
25909INSTOBJEXT!$INSTOBJEXT$ac_delim
25910INTLDEPS!$INTLDEPS$ac_delim
25911INTLLIBS!$INTLLIBS$ac_delim
25912INTLOBJS!$INTLOBJS$ac_delim
25913POFILES!$POFILES$ac_delim
25914POSUB!$POSUB$ac_delim
25915INCLUDE_LOCALE_H!$INCLUDE_LOCALE_H$ac_delim
25916GT_NO!$GT_NO$ac_delim
25917GT_YES!$GT_YES$ac_delim
25918MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
25919l!$l$ac_delim
25920PACKAGE!$PACKAGE$ac_delim
25921subdirs!$subdirs$ac_delim
25922AWK!$AWK$ac_delim
25923INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25924INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25925INSTALL_DATA!$INSTALL_DATA$ac_delim
25926_ACEOF
25927
25928 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 91; then
25929 break
25930 elif $ac_last_try; then
25931 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25932echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25933 { (exit 1); exit 1; }; }
25934 else
25935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 25936 fi
4e8d927d
DJ
25937done
25938
25939ac_eof=
25940if grep '^CEOF$' conf$$subs.sed >/dev/null; then
25941 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
25942 ac_eof=`expr 0$ac_eof + 1`
25943fi
25944
25945cat >>$CONFIG_STATUS <<_ACEOF
25946cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25947/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25948/^[ ]*@host_makefile_frag@[ ]*$/{
25949r $host_makefile_frag
25950d
25951}
25952/^[ ]*@target_makefile_frag@[ ]*$/{
25953r $target_makefile_frag
25954d
25955}
25956_ACEOF
25957sed '
25958s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25959s/^/s,@/; s/!/@,|#_!!_#|/
25960:n
25961t n
25962s/'"$ac_delim"'$/,g/; t
25963s/$/\\/; p
25964N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25965' >>$CONFIG_STATUS <conf$$subs.sed
25966rm -f conf$$subs.sed
25967cat >>$CONFIG_STATUS <<_ACEOF
25968CEOF$ac_eof
25969_ACEOF
25970
25971
25972ac_delim='%!_!# '
25973for ac_last_try in false false false false false :; do
25974 cat >conf$$subs.sed <<_ACEOF
25975LN_S!$LN_S$ac_delim
25976YACC!$YACC$ac_delim
25977YFLAGS!$YFLAGS$ac_delim
25978AR!$AR$ac_delim
25979DLLTOOL!$DLLTOOL$ac_delim
25980WINDRES!$WINDRES$ac_delim
25981MIG!$MIG$ac_delim
25982CONFIG_LDFLAGS!$CONFIG_LDFLAGS$ac_delim
25983TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
25984TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
25985WARN_CFLAGS!$WARN_CFLAGS$ac_delim
25986WERROR_CFLAGS!$WERROR_CFLAGS$ac_delim
25987SER_HARDWIRE!$SER_HARDWIRE$ac_delim
25988WIN32LIBS!$WIN32LIBS$ac_delim
25989LIBGUI!$LIBGUI$ac_delim
25990GUI_CFLAGS_X!$GUI_CFLAGS_X$ac_delim
25991WIN32LDAPP!$WIN32LDAPP$ac_delim
25992TCL_VERSION!$TCL_VERSION$ac_delim
25993TCL_MAJOR_VERSION!$TCL_MAJOR_VERSION$ac_delim
25994TCL_MINOR_VERSION!$TCL_MINOR_VERSION$ac_delim
25995TCL_CC!$TCL_CC$ac_delim
25996TCL_DEFS!$TCL_DEFS$ac_delim
25997TCL_SHLIB_CFLAGS!$TCL_SHLIB_CFLAGS$ac_delim
25998TCL_SHLIB_LD!$TCL_SHLIB_LD$ac_delim
25999TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26000TCL_SHLIB_SUFFIX!$TCL_SHLIB_SUFFIX$ac_delim
26001TCL_DL_LIBS!$TCL_DL_LIBS$ac_delim
26002TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim
26003TCL_LD_SEARCH_FLAGS!$TCL_LD_SEARCH_FLAGS$ac_delim
26004TCL_CC_SEARCH_FLAGS!$TCL_CC_SEARCH_FLAGS$ac_delim
26005TCL_COMPAT_OBJS!$TCL_COMPAT_OBJS$ac_delim
26006TCL_RANLIB!$TCL_RANLIB$ac_delim
26007TCL_BUILD_LIB_SPEC!$TCL_BUILD_LIB_SPEC$ac_delim
26008TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26009TCL_LIB_VERSIONS_OK!$TCL_LIB_VERSIONS_OK$ac_delim
26010TK_VERSION!$TK_VERSION$ac_delim
26011TK_DEFS!$TK_DEFS$ac_delim
26012TK_BUILD_INCLUDES!$TK_BUILD_INCLUDES$ac_delim
26013TK_XINCLUDES!$TK_XINCLUDES$ac_delim
26014TK_XLIBSW!$TK_XLIBSW$ac_delim
26015TK_BUILD_LIB_SPEC!$TK_BUILD_LIB_SPEC$ac_delim
26016TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim
26017TCLHDIR!$TCLHDIR$ac_delim
26018TKHDIR!$TKHDIR$ac_delim
26019ITCLHDIR!$ITCLHDIR$ac_delim
26020ITKHDIR!$ITKHDIR$ac_delim
26021ITCL_VERSION!$ITCL_VERSION$ac_delim
26022ITCL_DEFS!$ITCL_DEFS$ac_delim
26023ITCL_BUILD_INCLUDES!$ITCL_BUILD_INCLUDES$ac_delim
26024ITCL_BUILD_LIB_SPEC!$ITCL_BUILD_LIB_SPEC$ac_delim
26025ITCL_LIB_SPEC!$ITCL_LIB_SPEC$ac_delim
26026ITK_VERSION!$ITK_VERSION$ac_delim
26027ITK_DEFS!$ITK_DEFS$ac_delim
26028ITK_BUILD_INCLUDES!$ITK_BUILD_INCLUDES$ac_delim
26029ITK_BUILD_LIB_SPEC!$ITK_BUILD_LIB_SPEC$ac_delim
26030ITK_LIB_SPEC!$ITK_LIB_SPEC$ac_delim
26031X_CFLAGS!$X_CFLAGS$ac_delim
26032X_LDFLAGS!$X_LDFLAGS$ac_delim
26033X_LIBS!$X_LIBS$ac_delim
26034TCL_DEPS!$TCL_DEPS$ac_delim
26035TK_DEPS!$TK_DEPS$ac_delim
26036ITCLLIB!$ITCLLIB$ac_delim
26037ITCL_DEPS!$ITCL_DEPS$ac_delim
26038ITKLIB!$ITKLIB$ac_delim
26039ITK_DEPS!$ITK_DEPS$ac_delim
26040GDBTKLIBS!$GDBTKLIBS$ac_delim
26041GDBTK_CFLAGS!$GDBTK_CFLAGS$ac_delim
26042GDBTK_SRC_DIR!$GDBTK_SRC_DIR$ac_delim
26043XMKMF!$XMKMF$ac_delim
26044IGNORE_SIM!$IGNORE_SIM$ac_delim
26045IGNORE_SIM_OBS!$IGNORE_SIM_OBS$ac_delim
26046ENABLE_CFLAGS!$ENABLE_CFLAGS$ac_delim
26047PROFILE_CFLAGS!$PROFILE_CFLAGS$ac_delim
26048CONFIG_OBS!$CONFIG_OBS$ac_delim
26049CONFIG_DEPS!$CONFIG_DEPS$ac_delim
26050CONFIG_SRCS!$CONFIG_SRCS$ac_delim
26051CONFIG_ALL!$CONFIG_ALL$ac_delim
26052CONFIG_CLEAN!$CONFIG_CLEAN$ac_delim
26053CONFIG_INSTALL!$CONFIG_INSTALL$ac_delim
26054CONFIG_UNINSTALL!$CONFIG_UNINSTALL$ac_delim
26055target_subdir!$target_subdir$ac_delim
26056frags!$frags$ac_delim
26057xm_h!$xm_h$ac_delim
26058tm_h!$tm_h$ac_delim
26059nm_h!$nm_h$ac_delim
26060LIBICONV!$LIBICONV$ac_delim
26061LIBOBJS!$LIBOBJS$ac_delim
26062LTLIBOBJS!$LTLIBOBJS$ac_delim
26063_ACEOF
26064
26065 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 88; then
26066 break
26067 elif $ac_last_try; then
26068 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26069echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26070 { (exit 1); exit 1; }; }
26071 else
26072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26073 fi
26074done
26075
26076ac_eof=
26077if grep '^CEOF$' conf$$subs.sed >/dev/null; then
26078 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
26079 ac_eof=`expr 0$ac_eof + 1`
26080fi
c906108c 26081
4e8d927d
DJ
26082cat >>$CONFIG_STATUS <<_ACEOF
26083cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26084/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26085_ACEOF
26086sed '
26087s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26088s/^/s,@/; s/!/@,|#_!!_#|/
26089:n
26090t n
26091s/'"$ac_delim"'$/,g/; t
26092s/$/\\/; p
26093N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26094' >>$CONFIG_STATUS <conf$$subs.sed
26095rm -f conf$$subs.sed
26096cat >>$CONFIG_STATUS <<_ACEOF
26097:end
26098s/|#_!!_#|//g
26099CEOF$ac_eof
bec39cab 26100_ACEOF
4e8d927d
DJ
26101
26102
26103# VPATH may cause trouble with some makes, so we remove $(srcdir),
26104# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26105# trailing colons and then remove the whole line if VPATH becomes empty
26106# (actually we leave an empty line to preserve line numbers).
26107if test "x$srcdir" = x.; then
26108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26109s/:*\$(srcdir):*/:/
26110s/:*\${srcdir}:*/:/
26111s/:*@srcdir@:*/:/
26112s/^\([^=]*=[ ]*\):*/\1/
26113s/:*$//
26114s/^[^=]*=[ ]*$//
26115}'
26116fi
26117
bec39cab 26118cat >>$CONFIG_STATUS <<\_ACEOF
4e8d927d
DJ
26119fi # test -n "$CONFIG_FILES"
26120
26121
26122for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
26123do
26124 case $ac_tag in
26125 :[FHLC]) ac_mode=$ac_tag; continue;;
26126 esac
26127 case $ac_mode$ac_tag in
26128 :[FHL]*:*);;
26129 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26130echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26131 { (exit 1); exit 1; }; };;
26132 :[FH]-) ac_tag=-:-;;
26133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26134 esac
26135 ac_save_IFS=$IFS
26136 IFS=:
26137 set x $ac_tag
26138 IFS=$ac_save_IFS
26139 shift
26140 ac_file=$1
26141 shift
26142
26143 case $ac_mode in
26144 :L) ac_source=$1;;
26145 :[FH])
26146 ac_file_inputs=
26147 for ac_f
26148 do
26149 case $ac_f in
26150 -) ac_f="$tmp/stdin";;
26151 *) # Look for the file first in the build tree, then in the source tree
26152 # (if the path is not absolute). The absolute path cannot be DOS-style,
26153 # because $ac_f cannot contain `:'.
26154 test -f "$ac_f" ||
26155 case $ac_f in
26156 [\\/$]*) false;;
26157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26158 esac ||
26159 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26160echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26161 { (exit 1); exit 1; }; };;
26162 esac
26163 ac_file_inputs="$ac_file_inputs $ac_f"
26164 done
26165
26166 # Let's still pretend it is `configure' which instantiates (i.e., don't
26167 # use $as_me), people would be surprised to read:
26168 # /* config.h. Generated by config.status. */
26169 configure_input="Generated from "`IFS=:
26170 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26171 if test x"$ac_file" != x-; then
26172 configure_input="$ac_file. $configure_input"
26173 { echo "$as_me:$LINENO: creating $ac_file" >&5
26174echo "$as_me: creating $ac_file" >&6;}
26175 fi
26176
26177 case $ac_tag in
26178 *:-:* | *:-) cat >"$tmp/stdin";;
26179 esac
26180 ;;
c906108c
SS
26181 esac
26182
4e8d927d 26183 ac_dir=`$as_dirname -- "$ac_file" ||
bec39cab
AC
26184$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26185 X"$ac_file" : 'X\(//\)[^/]' \| \
26186 X"$ac_file" : 'X\(//\)$' \| \
4e8d927d 26187 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
bec39cab 26188echo X"$ac_file" |
4e8d927d
DJ
26189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26190 s//\1/
26191 q
26192 }
26193 /^X\(\/\/\)[^/].*/{
26194 s//\1/
26195 q
26196 }
26197 /^X\(\/\/\)$/{
26198 s//\1/
26199 q
26200 }
26201 /^X\(\/\).*/{
26202 s//\1/
26203 q
26204 }
26205 s/.*/./; q'`
26206 { as_dir="$ac_dir"
26207 case $as_dir in #(
26208 -*) as_dir=./$as_dir;;
26209 esac
26210 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
bec39cab 26211 as_dirs=
4e8d927d
DJ
26212 while :; do
26213 case $as_dir in #(
26214 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26215 *) as_qdir=$as_dir;;
26216 esac
26217 as_dirs="'$as_qdir' $as_dirs"
26218 as_dir=`$as_dirname -- "$as_dir" ||
bec39cab
AC
26219$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26220 X"$as_dir" : 'X\(//\)[^/]' \| \
26221 X"$as_dir" : 'X\(//\)$' \| \
4e8d927d 26222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
bec39cab 26223echo X"$as_dir" |
4e8d927d
DJ
26224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26225 s//\1/
26226 q
26227 }
26228 /^X\(\/\/\)[^/].*/{
26229 s//\1/
26230 q
26231 }
26232 /^X\(\/\/\)$/{
26233 s//\1/
26234 q
26235 }
26236 /^X\(\/\).*/{
26237 s//\1/
26238 q
26239 }
26240 s/.*/./; q'`
26241 test -d "$as_dir" && break
bec39cab 26242 done
4e8d927d
DJ
26243 test -z "$as_dirs" || eval "mkdir $as_dirs"
26244 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26245echo "$as_me: error: cannot create directory $as_dir" >&2;}
bec39cab 26246 { (exit 1); exit 1; }; }; }
bec39cab
AC
26247 ac_builddir=.
26248
4e8d927d
DJ
26249case "$ac_dir" in
26250.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26251*)
bec39cab 26252 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4e8d927d
DJ
26253 # A ".." for each directory in $ac_dir_suffix.
26254 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26255 case $ac_top_builddir_sub in
26256 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26257 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26258 esac ;;
26259esac
26260ac_abs_top_builddir=$ac_pwd
26261ac_abs_builddir=$ac_pwd$ac_dir_suffix
26262# for backward compatibility:
26263ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
26264
26265case $srcdir in
4e8d927d 26266 .) # We are building in place.
bec39cab 26267 ac_srcdir=.
4e8d927d
DJ
26268 ac_top_srcdir=$ac_top_builddir_sub
26269 ac_abs_top_srcdir=$ac_pwd ;;
26270 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 26271 ac_srcdir=$srcdir$ac_dir_suffix;
4e8d927d
DJ
26272 ac_top_srcdir=$srcdir
26273 ac_abs_top_srcdir=$srcdir ;;
26274 *) # Relative name.
26275 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26276 ac_top_srcdir=$ac_top_build_prefix$srcdir
26277 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 26278esac
4e8d927d 26279ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 26280
c906108c 26281
4e8d927d
DJ
26282 case $ac_mode in
26283 :F)
26284 #
26285 # CONFIG_FILE
26286 #
c906108c 26287
bec39cab
AC
26288 case $INSTALL in
26289 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4e8d927d 26290 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 26291 esac
4e8d927d 26292_ACEOF
c906108c 26293
4e8d927d
DJ
26294cat >>$CONFIG_STATUS <<\_ACEOF
26295# If the template does not know about datarootdir, expand it.
26296# FIXME: This hack should be removed a few years after 2.60.
26297ac_datarootdir_hack=
121ce6e5 26298
4e8d927d
DJ
26299case `sed -n '/datarootdir/ {
26300 p
26301 q
26302}
26303/@datadir@/p
26304/@docdir@/p
26305/@infodir@/p
26306/@localedir@/p
26307/@mandir@/p
26308' $ac_file_inputs` in
26309*datarootdir*) ;;
26310*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26311 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26312echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
bec39cab 26313_ACEOF
4e8d927d
DJ
26314cat >>$CONFIG_STATUS <<_ACEOF
26315 ac_datarootdir_hack='
26316 s&@datadir@&$datadir&g
26317 s&@docdir@&$docdir&g
26318 s&@infodir@&$infodir&g
26319 s&@localedir@&$localedir&g
26320 s&@mandir@&$mandir&g
26321 s&\\\${datarootdir}&$datarootdir&g' ;;
26322esac
26323_ACEOF
26324
26325# Neutralize VPATH when `$srcdir' = `.'.
26326# Shell code in configure.ac might set extrasub.
26327# FIXME: do we really want to maintain this feature?
bec39cab
AC
26328cat >>$CONFIG_STATUS <<_ACEOF
26329 sed "$ac_vpsub
26330$extrasub
26331_ACEOF
26332cat >>$CONFIG_STATUS <<\_ACEOF
26333:t
26334/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4e8d927d
DJ
26335s&@configure_input@&$configure_input&;t t
26336s&@top_builddir@&$ac_top_builddir_sub&;t t
26337s&@srcdir@&$ac_srcdir&;t t
26338s&@abs_srcdir@&$ac_abs_srcdir&;t t
26339s&@top_srcdir@&$ac_top_srcdir&;t t
26340s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26341s&@builddir@&$ac_builddir&;t t
26342s&@abs_builddir@&$ac_abs_builddir&;t t
26343s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26344s&@INSTALL@&$ac_INSTALL&;t t
26345$ac_datarootdir_hack
26346" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26347
26348 rm -f "$tmp/stdin"
bec39cab 26349 case $ac_file in
4e8d927d
DJ
26350 -) cat "$tmp/out"; rm -f "$tmp/out";;
26351 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
c906108c 26352 esac
4e8d927d
DJ
26353 ;;
26354 :H)
26355 #
26356 # CONFIG_HEADER
26357 #
26358
26359 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26360 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26361 # PARAMS is the parameter list in the macro definition--in most cases, it's
26362 # just an empty string.
26363 #
26364 ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*'
26365 ac_dB='\)[ (].*$,\1define\2'
26366 ac_dC=' '
26367 ac_dD=' ,'
26368
26369 ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
26370_ACEOF
26371
26372# Transform confdefs.h into a sed script `conftest.defines', that
26373# substitutes the proper values into config.h.in to produce config.h.
26374rm -f conftest.defines conftest.tail
26375# First, append a space to every undef/define line, to ease matching.
26376echo 's/$/ /' >conftest.defines
26377# Then, protect against being on the right side of a sed subst, or in
26378# an unquoted here document, in config.status. If some macros were
26379# called several times there might be several #defines for the same
26380# symbol, which is useless. But do not sort them, since the last
26381# AC_DEFINE must be honored.
26382ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26383uniq confdefs.h |
26384 sed -n '
26385 t rset
26386 :rset
26387 s/^[ ]*#[ ]*define[ ][ ]*//
26388 t ok
26389 d
26390 :ok
26391 s/[\\&,]/\\&/g
26392 s/[\\$`]/\\&/g
26393 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
26394 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
26395 ' >>conftest.defines
26396
26397# Remove the space that was appended to ease matching.
26398# Then replace #undef with comments. This is necessary, for
c906108c
SS
26399# example, in the case of _POSIX_SOURCE, which is predefined and required
26400# on some systems where configure will not decide to define it.
4e8d927d
DJ
26401# (The regexp can be short, since the line contains either #define or #undef.)
26402echo 's/ $//
26403s,^[ #]*u.*,/* & */,' >>conftest.defines
26404
26405# Break up conftest.defines:
26406ac_max_sed_lines=96
26407
26408# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26409# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26410# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26411# et cetera.
26412ac_in='$ac_file_inputs'
26413ac_out='"$tmp/out1"'
26414ac_nxt='"$tmp/out2"'
26415
26416while :
bec39cab 26417do
4e8d927d
DJ
26418 # Write a here document:
26419 echo ' # First, check the format of the line:
26420 cat >"$tmp/defines.sed" <<CEOF
26421/^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/b def
26422/^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/b def
26423b
26424:def' >>$CONFIG_STATUS
26425 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 26426 echo 'CEOF
4e8d927d
DJ
26427 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26428 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26429 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26430 grep . conftest.tail >/dev/null || break
bec39cab
AC
26431 rm -f conftest.defines
26432 mv conftest.tail conftest.defines
26433done
4e8d927d 26434rm -f conftest.defines conftest.tail
bec39cab 26435
4e8d927d 26436echo "ac_result=$ac_in" >>$CONFIG_STATUS
bec39cab 26437cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 26438 if test x"$ac_file" != x-; then
4e8d927d
DJ
26439 echo "/* $configure_input */" >"$tmp/config.h"
26440 cat "$ac_result" >>"$tmp/config.h"
26441 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
bec39cab
AC
26442 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26443echo "$as_me: $ac_file is unchanged" >&6;}
26444 else
bec39cab 26445 rm -f $ac_file
4e8d927d 26446 mv "$tmp/config.h" $ac_file
bec39cab
AC
26447 fi
26448 else
4e8d927d
DJ
26449 echo "/* $configure_input */"
26450 cat "$ac_result"
bec39cab 26451 fi
4e8d927d
DJ
26452 rm -f "$tmp/out12"
26453 ;;
26454 :L)
26455 #
26456 # CONFIG_LINK
26457 #
c906108c 26458
4e8d927d
DJ
26459 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
26460echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
c906108c
SS
26461
26462 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
26463 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26464echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26465 { (exit 1); exit 1; }; }
c906108c 26466 fi
4e8d927d 26467 rm -f $ac_file
bec39cab 26468
4e8d927d 26469 # Try a relative symlink, then a hard link, then a copy.
bec39cab
AC
26470 case $srcdir in
26471 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
4e8d927d 26472 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
c906108c 26473 esac
4e8d927d
DJ
26474 ln -s $ac_rel_source $ac_file 2>/dev/null ||
26475 ln $srcdir/$ac_source $ac_file 2>/dev/null ||
26476 cp -p $srcdir/$ac_source $ac_file ||
26477 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
26478echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
bec39cab 26479 { (exit 1); exit 1; }; }
4e8d927d
DJ
26480 ;;
26481 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26482echo "$as_me: executing $ac_file commands" >&6;}
26483 ;;
26484 esac
bec39cab 26485
bec39cab 26486
4e8d927d
DJ
26487 case $ac_file$ac_mode in
26488 "gdb_stdint.h":C)
26489if test "$GCC" = yes; then
26490 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
26491else
26492 echo "/* generated for $CC */" > tmp-stdint.h
26493fi
26494
26495sed 's/^ *//' >> tmp-stdint.h <<EOF
26496
26497 #ifndef GCC_GENERATED_STDINT_H
26498 #define GCC_GENERATED_STDINT_H 1
26499
26500 #include <sys/types.h>
26501EOF
26502
26503if test "$acx_cv_header_stdint" != stdint.h; then
26504 echo "#include <stddef.h>" >> tmp-stdint.h
26505fi
26506if test "$acx_cv_header_stdint" != stddef.h; then
26507 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
26508fi
26509
26510sed 's/^ *//' >> tmp-stdint.h <<EOF
26511 /* glibc uses these symbols as guards to prevent redefinitions. */
26512 #ifdef __int8_t_defined
26513 #define _INT8_T
26514 #define _INT16_T
26515 #define _INT32_T
26516 #endif
26517 #ifdef __uint32_t_defined
26518 #define _UINT32_T
26519 #endif
26520
26521EOF
26522
26523# ----------------- done header, emit basic int types -------------
26524if test "$acx_cv_header_stdint" = stddef.h; then
26525 sed 's/^ *//' >> tmp-stdint.h <<EOF
26526
26527 #ifndef _UINT8_T
26528 #define _UINT8_T
26529 typedef unsigned $acx_cv_type_int8_t uint8_t;
26530 #endif
26531
26532 #ifndef _UINT16_T
26533 #define _UINT16_T
26534 typedef unsigned $acx_cv_type_int16_t uint16_t;
26535 #endif
26536
26537 #ifndef _UINT32_T
26538 #define _UINT32_T
26539 typedef unsigned $acx_cv_type_int32_t uint32_t;
26540 #endif
26541
26542 #ifndef _INT8_T
26543 #define _INT8_T
26544 typedef $acx_cv_type_int8_t int8_t;
26545 #endif
26546
26547 #ifndef _INT16_T
26548 #define _INT16_T
26549 typedef $acx_cv_type_int16_t int16_t;
26550 #endif
26551
26552 #ifndef _INT32_T
26553 #define _INT32_T
26554 typedef $acx_cv_type_int32_t int32_t;
26555 #endif
26556EOF
26557elif test "$ac_cv_type_u_int32_t" = yes; then
26558 sed 's/^ *//' >> tmp-stdint.h <<EOF
26559
26560 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
26561 #ifndef _INT8_T
26562 #define _INT8_T
26563 #endif
26564 #ifndef _INT16_T
26565 #define _INT16_T
26566 #endif
26567 #ifndef _INT32_T
26568 #define _INT32_T
26569 #endif
26570
26571 #ifndef _UINT8_T
26572 #define _UINT8_T
26573 typedef u_int8_t uint8_t;
26574 #endif
26575
26576 #ifndef _UINT16_T
26577 #define _UINT16_T
26578 typedef u_int16_t uint16_t;
26579 #endif
26580
26581 #ifndef _UINT32_T
26582 #define _UINT32_T
26583 typedef u_int32_t uint32_t;
26584 #endif
26585EOF
26586else
26587 sed 's/^ *//' >> tmp-stdint.h <<EOF
26588
26589 /* Some systems have guard macros to prevent redefinitions, define them. */
26590 #ifndef _INT8_T
26591 #define _INT8_T
26592 #endif
26593 #ifndef _INT16_T
26594 #define _INT16_T
26595 #endif
26596 #ifndef _INT32_T
26597 #define _INT32_T
26598 #endif
26599 #ifndef _UINT8_T
26600 #define _UINT8_T
26601 #endif
26602 #ifndef _UINT16_T
26603 #define _UINT16_T
26604 #endif
26605 #ifndef _UINT32_T
26606 #define _UINT32_T
26607 #endif
26608EOF
26609fi
26610
26611# ------------- done basic int types, emit int64_t types ------------
26612if test "$ac_cv_type_uint64_t" = yes; then
26613 sed 's/^ *//' >> tmp-stdint.h <<EOF
26614
26615 /* system headers have good uint64_t and int64_t */
26616 #ifndef _INT64_T
26617 #define _INT64_T
26618 #endif
26619 #ifndef _UINT64_T
26620 #define _UINT64_T
26621 #endif
26622EOF
26623elif test "$ac_cv_type_u_int64_t" = yes; then
26624 sed 's/^ *//' >> tmp-stdint.h <<EOF
26625
26626 /* system headers have an u_int64_t (and int64_t) */
26627 #ifndef _INT64_T
26628 #define _INT64_T
26629 #endif
26630 #ifndef _UINT64_T
26631 #define _UINT64_T
26632 typedef u_int64_t uint64_t;
26633 #endif
26634EOF
26635elif test -n "$acx_cv_type_int64_t"; then
26636 sed 's/^ *//' >> tmp-stdint.h <<EOF
26637
26638 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
26639 #ifndef _INT64_T
26640 #define _INT64_T
26641 typedef $acx_cv_type_int64_t int64_t;
26642 #endif
26643 #ifndef _UINT64_T
26644 #define _UINT64_T
26645 typedef unsigned $acx_cv_type_int64_t uint64_t;
26646 #endif
26647EOF
26648else
26649 sed 's/^ *//' >> tmp-stdint.h <<EOF
26650
26651 /* some common heuristics for int64_t, using compiler-specific tests */
26652 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
26653 #ifndef _INT64_T
26654 #define _INT64_T
26655 typedef long long int64_t;
26656 #endif
26657 #ifndef _UINT64_T
26658 #define _UINT64_T
26659 typedef unsigned long long uint64_t;
26660 #endif
26661
26662 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
26663 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
26664 does not implement __extension__. But that compiler doesn't define
26665 __GNUC_MINOR__. */
26666 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
26667 # define __extension__
26668 # endif
26669
26670 # ifndef _INT64_T
26671 # define _INT64_T
26672 __extension__ typedef long long int64_t;
26673 # endif
26674 # ifndef _UINT64_T
26675 # define _UINT64_T
26676 __extension__ typedef unsigned long long uint64_t;
26677 # endif
26678
26679 #elif !defined __STRICT_ANSI__
26680 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
26681
26682 # ifndef _INT64_T
26683 # define _INT64_T
26684 typedef __int64 int64_t;
26685 # endif
26686 # ifndef _UINT64_T
26687 # define _UINT64_T
26688 typedef unsigned __int64 uint64_t;
26689 # endif
26690 # endif /* compiler */
26691
26692 #endif /* ANSI version */
26693EOF
26694fi
26695
26696# ------------- done int64_t types, emit intptr types ------------
26697if test "$ac_cv_type_uintptr_t" != yes; then
26698 sed 's/^ *//' >> tmp-stdint.h <<EOF
26699
26700 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
26701 typedef u$acx_cv_type_intptr_t uintptr_t;
26702 typedef $acx_cv_type_intptr_t intptr_t;
26703EOF
26704fi
26705
26706# ------------- done intptr types, emit int_least types ------------
26707if test "$ac_cv_type_int_least32_t" != yes; then
26708 sed 's/^ *//' >> tmp-stdint.h <<EOF
26709
26710 /* Define int_least types */
26711 typedef int8_t int_least8_t;
26712 typedef int16_t int_least16_t;
26713 typedef int32_t int_least32_t;
26714 #ifdef _INT64_T
26715 typedef int64_t int_least64_t;
26716 #endif
26717
26718 typedef uint8_t uint_least8_t;
26719 typedef uint16_t uint_least16_t;
26720 typedef uint32_t uint_least32_t;
26721 #ifdef _UINT64_T
26722 typedef uint64_t uint_least64_t;
26723 #endif
26724EOF
26725fi
26726
26727# ------------- done intptr types, emit int_fast types ------------
26728if test "$ac_cv_type_int_fast32_t" != yes; then
26729 sed 's/^ *//' >> tmp-stdint.h <<EOF
26730
26731 /* Define int_fast types. short is often slow */
26732 typedef int8_t int_fast8_t;
26733 typedef int int_fast16_t;
26734 typedef int32_t int_fast32_t;
26735 #ifdef _INT64_T
26736 typedef int64_t int_fast64_t;
26737 #endif
26738
26739 typedef uint8_t uint_fast8_t;
26740 typedef unsigned int uint_fast16_t;
26741 typedef uint32_t uint_fast32_t;
26742 #ifdef _UINT64_T
26743 typedef uint64_t uint_fast64_t;
26744 #endif
26745EOF
26746fi
26747
26748if test "$ac_cv_type_uintmax_t" != yes; then
26749 sed 's/^ *//' >> tmp-stdint.h <<EOF
26750
26751 /* Define intmax based on what we found */
26752 #ifdef _INT64_T
26753 typedef int64_t intmax_t;
26754 #else
26755 typedef long intmax_t;
26756 #endif
26757 #ifdef _UINT64_T
26758 typedef uint64_t uintmax_t;
26759 #else
26760 typedef unsigned long uintmax_t;
26761 #endif
26762EOF
26763fi
26764
26765sed 's/^ *//' >> tmp-stdint.h <<EOF
26766
26767 #endif /* GCC_GENERATED_STDINT_H */
26768EOF
26769
26770if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
26771 rm -f tmp-stdint.h
26772else
26773 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
26774fi
26775
4e8d927d
DJ
26776 ;;
26777 "default":C)
c906108c 26778
2c0fc042 26779sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
26780/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
26781/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
26782mv -f Makefile.tmp Makefile
26783
2acceee2 26784
c906108c
SS
26785case x$CONFIG_HEADERS in
26786xconfig.h:config.in)
26787echo > stamp-h ;;
26788esac
bec39cab 26789 ;;
4e8d927d 26790
bec39cab 26791 esac
4e8d927d 26792done # for ac_tag
c906108c 26793
bec39cab
AC
26794
26795{ (exit 0); exit 0; }
26796_ACEOF
c906108c 26797chmod +x $CONFIG_STATUS
bec39cab
AC
26798ac_clean_files=$ac_clean_files_save
26799
26800
26801# configure is writing to config.log, and then calls config.status.
26802# config.status does its own redirection, appending to config.log.
26803# Unfortunately, on DOS this fails, as config.log is still kept open
26804# by configure, so config.status won't be able to write to it; its
26805# output is simply discarded. So we exec the FD to /dev/null,
26806# effectively closing config.log, so it can be properly (re)opened and
26807# appended to by config.status. When coming back to configure, we
26808# need to make the FD available again.
26809if test "$no_create" != yes; then
26810 ac_cs_success=:
26811 ac_config_status_args=
26812 test "$silent" = yes &&
26813 ac_config_status_args="$ac_config_status_args --quiet"
26814 exec 5>/dev/null
26815 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26816 exec 5>>config.log
26817 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26818 # would make configure fail if this is the last instruction.
26819 $ac_cs_success || { (exit 1); exit 1; }
26820fi
c906108c 26821
bec39cab
AC
26822#
26823# CONFIG_SUBDIRS section.
26824#
c906108c
SS
26825if test "$no_recursion" != yes; then
26826
26827 # Remove --cache-file and --srcdir arguments so they do not pile up.
26828 ac_sub_configure_args=
26829 ac_prev=
4e8d927d
DJ
26830 eval set x "$ac_configure_args"
26831 shift
26832 for ac_arg
26833 do
c906108c
SS
26834 if test -n "$ac_prev"; then
26835 ac_prev=
26836 continue
26837 fi
bec39cab 26838 case $ac_arg in
c906108c
SS
26839 -cache-file | --cache-file | --cache-fil | --cache-fi \
26840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26841 ac_prev=cache_file ;;
26842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
26843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26844 | --c=*)
26845 ;;
26846 --config-cache | -C)
c906108c
SS
26847 ;;
26848 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26849 ac_prev=srcdir ;;
26850 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26851 ;;
bec39cab
AC
26852 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26853 ac_prev=prefix ;;
26854 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26855 ;;
4e8d927d
DJ
26856 *)
26857 case $ac_arg in
26858 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26859 esac
26860 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
c906108c
SS
26861 esac
26862 done
26863
bec39cab
AC
26864 # Always prepend --prefix to ensure using the same prefix
26865 # in subdir configurations.
26866 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26867
4e8d927d 26868 ac_popdir="`pwd`"
bec39cab 26869 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
26870
26871 # Do not complain, so a configure script can configure whichever
26872 # parts of a large source tree are present.
bec39cab 26873 test -d $srcdir/$ac_dir || continue
c906108c 26874
4e8d927d
DJ
26875 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26876 echo "$as_me:$LINENO: $ac_msg" >&5
26877 echo "$ac_msg" >&6
26878 { as_dir="$ac_dir"
26879 case $as_dir in #(
26880 -*) as_dir=./$as_dir;;
26881 esac
26882 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
bec39cab 26883 as_dirs=
4e8d927d
DJ
26884 while :; do
26885 case $as_dir in #(
26886 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26887 *) as_qdir=$as_dir;;
26888 esac
26889 as_dirs="'$as_qdir' $as_dirs"
26890 as_dir=`$as_dirname -- "$as_dir" ||
bec39cab
AC
26891$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26892 X"$as_dir" : 'X\(//\)[^/]' \| \
26893 X"$as_dir" : 'X\(//\)$' \| \
4e8d927d 26894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
bec39cab 26895echo X"$as_dir" |
4e8d927d
DJ
26896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26897 s//\1/
26898 q
26899 }
26900 /^X\(\/\/\)[^/].*/{
26901 s//\1/
26902 q
26903 }
26904 /^X\(\/\/\)$/{
26905 s//\1/
26906 q
26907 }
26908 /^X\(\/\).*/{
26909 s//\1/
26910 q
26911 }
26912 s/.*/./; q'`
26913 test -d "$as_dir" && break
bec39cab 26914 done
4e8d927d
DJ
26915 test -z "$as_dirs" || eval "mkdir $as_dirs"
26916 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26917echo "$as_me: error: cannot create directory $as_dir" >&2;}
bec39cab 26918 { (exit 1); exit 1; }; }; }
bec39cab
AC
26919 ac_builddir=.
26920
4e8d927d
DJ
26921case "$ac_dir" in
26922.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26923*)
bec39cab 26924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4e8d927d
DJ
26925 # A ".." for each directory in $ac_dir_suffix.
26926 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26927 case $ac_top_builddir_sub in
26928 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26929 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26930 esac ;;
26931esac
26932ac_abs_top_builddir=$ac_pwd
26933ac_abs_builddir=$ac_pwd$ac_dir_suffix
26934# for backward compatibility:
26935ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
26936
26937case $srcdir in
4e8d927d 26938 .) # We are building in place.
bec39cab 26939 ac_srcdir=.
4e8d927d
DJ
26940 ac_top_srcdir=$ac_top_builddir_sub
26941 ac_abs_top_srcdir=$ac_pwd ;;
26942 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 26943 ac_srcdir=$srcdir$ac_dir_suffix;
4e8d927d
DJ
26944 ac_top_srcdir=$srcdir
26945 ac_abs_top_srcdir=$srcdir ;;
26946 *) # Relative name.
26947 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26948 ac_top_srcdir=$ac_top_build_prefix$srcdir
26949 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 26950esac
4e8d927d 26951ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
c906108c 26952
c906108c 26953
4e8d927d 26954 cd "$ac_dir"
c906108c
SS
26955
26956 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
26957 if test -f $ac_srcdir/configure.gnu; then
26958 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26959 elif test -f $ac_srcdir/configure; then
26960 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26961 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
26962 ac_sub_configure=$ac_configure
26963 else
bec39cab
AC
26964 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26965echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
26966 ac_sub_configure=
26967 fi
26968
26969 # The recursion is here.
26970 if test -n "$ac_sub_configure"; then
c906108c 26971 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
26972 case $cache_file in
26973 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4e8d927d
DJ
26974 *) # Relative name.
26975 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
c906108c 26976 esac
c906108c 26977
bec39cab
AC
26978 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26979echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 26980 # The eval makes quoting arguments work.
4e8d927d
DJ
26981 eval "$ac_sub_configure $ac_sub_configure_args \
26982 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" ||
bec39cab
AC
26983 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26984echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26985 { (exit 1); exit 1; }; }
c906108c
SS
26986 fi
26987
121ce6e5 26988 cd "$ac_popdir"
c906108c
SS
26989 done
26990fi
26991
26992
26993exit 0
This page took 2.009656 seconds and 4 git commands to generate.