* configure.ac (--enable-targets): New configure option.
[deliverable/binutils-gdb.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 ac_subdirs_all="$ac_subdirs_all doc testsuite"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subdirs_all="$ac_subdirs_all gdbtk"
314 ac_subdirs_all="$ac_subdirs_all multi-ice"
315 ac_subdirs_all="$ac_subdirs_all gdbserver"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs TARGET_OBS AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS'
317 ac_subst_files='host_makefile_frag'
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
338
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654 done
655
656 if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676 do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683 done
684
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729 else
730 ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777
778 #
779 # Report the --help message.
780 #
781 if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785 \`configure' configures this package to adapt to many kinds of systems.
786
787 Usage: $0 [OPTION]... [VAR=VALUE]...
788
789 To assign environment variables (e.g., CC, CFLAGS...), specify them as
790 VAR=VALUE. See below for descriptions of some of the useful variables.
791
792 Defaults for the options are specified in brackets.
793
794 Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804
805 _ACEOF
806
807 cat <<_ACEOF
808 Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
813
814 By default, \`make install' will install all the files in
815 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817 for instance \`--prefix=\$HOME'.
818
819 For better control, use the options below.
820
821 Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
834 _ACEOF
835
836 cat <<\_ACEOF
837
838 Program names:
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
843 X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
846
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --enable-targets alternative target configurations
864 --disable-gdbcli disable command-line interface (CLI)
865 --disable-gdbmi disable machine-interface (MI)
866 --enable-tui enable full-screen terminal user interface (TUI)
867 --enable-gdbtk enable gdbtk graphical user interface (GUI)
868 --enable-profiling enable profiling of GDB
869 --disable-rpath do not hardcode runtime library paths
870 --enable-werror treat compile warnings as errors
871 --enable-build-warnings Enable build-time compiler warnings if gcc is used
872 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
873 --enable-sim Link gdb with simulator
874 --enable-multi-ice build the multi-ice-gdb-server
875
876 Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
880 --with-libunwind Use libunwind frame unwinding support
881 --with-system-readline use installed readline library
882 --with-expat include expat support (auto/yes/no)
883 --with-gnu-ld assume the C compiler uses GNU ld default=no
884 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
885 --without-libexpat-prefix don't search for libexpat in includedir and libdir
886 --without-included-regex don't use included regex; this is the default
887 on systems with version 2 of the GNU C library
888 (use with caution on other system)
889 --with-sysroot=DIR Search for usr/lib et al within DIR.
890 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
891 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
892 --with-tclinclude=DIR Directory where tcl private headers are
893 --with-tkinclude=DIR Directory where tk private headers are
894 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
895 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
896 --with-x use the X Window System
897 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
898
899 Some influential environment variables:
900 CC C compiler command
901 CFLAGS C compiler flags
902 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903 nonstandard directory <lib dir>
904 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905 headers in a nonstandard directory <include dir>
906 CPP C preprocessor
907
908 Use these variables to override the choices made by `configure' or to help
909 it to find libraries and programs with nonstandard names/locations.
910
911 _ACEOF
912 fi
913
914 if test "$ac_init_help" = "recursive"; then
915 # If there are subdirs, report their specific --help.
916 ac_popdir=`pwd`
917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
918 test -d $ac_dir || continue
919 ac_builddir=.
920
921 if test "$ac_dir" != .; then
922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
923 # A "../" for each directory in $ac_dir_suffix.
924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925 else
926 ac_dir_suffix= ac_top_builddir=
927 fi
928
929 case $srcdir in
930 .) # No --srcdir option. We are building in place.
931 ac_srcdir=.
932 if test -z "$ac_top_builddir"; then
933 ac_top_srcdir=.
934 else
935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936 fi ;;
937 [\\/]* | ?:[\\/]* ) # Absolute path.
938 ac_srcdir=$srcdir$ac_dir_suffix;
939 ac_top_srcdir=$srcdir ;;
940 *) # Relative path.
941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
943 esac
944
945 # Do not use `cd foo && pwd` to compute absolute paths, because
946 # the directories may not exist.
947 case `pwd` in
948 .) ac_abs_builddir="$ac_dir";;
949 *)
950 case "$ac_dir" in
951 .) ac_abs_builddir=`pwd`;;
952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
954 esac;;
955 esac
956 case $ac_abs_builddir in
957 .) ac_abs_top_builddir=${ac_top_builddir}.;;
958 *)
959 case ${ac_top_builddir}. in
960 .) ac_abs_top_builddir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
963 esac;;
964 esac
965 case $ac_abs_builddir in
966 .) ac_abs_srcdir=$ac_srcdir;;
967 *)
968 case $ac_srcdir in
969 .) ac_abs_srcdir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
972 esac;;
973 esac
974 case $ac_abs_builddir in
975 .) ac_abs_top_srcdir=$ac_top_srcdir;;
976 *)
977 case $ac_top_srcdir in
978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
981 esac;;
982 esac
983
984 cd $ac_dir
985 # Check for guested configure; otherwise get Cygnus style configure.
986 if test -f $ac_srcdir/configure.gnu; then
987 echo
988 $SHELL $ac_srcdir/configure.gnu --help=recursive
989 elif test -f $ac_srcdir/configure; then
990 echo
991 $SHELL $ac_srcdir/configure --help=recursive
992 elif test -f $ac_srcdir/configure.ac ||
993 test -f $ac_srcdir/configure.in; then
994 echo
995 $ac_configure --help
996 else
997 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998 fi
999 cd $ac_popdir
1000 done
1001 fi
1002
1003 test -n "$ac_init_help" && exit 0
1004 if $ac_init_version; then
1005 cat <<\_ACEOF
1006
1007 Copyright (C) 2003 Free Software Foundation, Inc.
1008 This configure script is free software; the Free Software Foundation
1009 gives unlimited permission to copy, distribute and modify it.
1010 _ACEOF
1011 exit 0
1012 fi
1013 exec 5>config.log
1014 cat >&5 <<_ACEOF
1015 This file contains any messages produced by compilers while
1016 running configure, to aid debugging if configure makes a mistake.
1017
1018 It was created by $as_me, which was
1019 generated by GNU Autoconf 2.59. Invocation command line was
1020
1021 $ $0 $@
1022
1023 _ACEOF
1024 {
1025 cat <<_ASUNAME
1026 ## --------- ##
1027 ## Platform. ##
1028 ## --------- ##
1029
1030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1035
1036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1038
1039 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1040 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1043 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1044 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1045 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1046
1047 _ASUNAME
1048
1049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050 for as_dir in $PATH
1051 do
1052 IFS=$as_save_IFS
1053 test -z "$as_dir" && as_dir=.
1054 echo "PATH: $as_dir"
1055 done
1056
1057 } >&5
1058
1059 cat >&5 <<_ACEOF
1060
1061
1062 ## ----------- ##
1063 ## Core tests. ##
1064 ## ----------- ##
1065
1066 _ACEOF
1067
1068
1069 # Keep a trace of the command line.
1070 # Strip out --no-create and --no-recursion so they do not pile up.
1071 # Strip out --silent because we don't want to record it for future runs.
1072 # Also quote any args containing shell meta-characters.
1073 # Make two passes to allow for proper duplicate-argument suppression.
1074 ac_configure_args=
1075 ac_configure_args0=
1076 ac_configure_args1=
1077 ac_sep=
1078 ac_must_keep_next=false
1079 for ac_pass in 1 2
1080 do
1081 for ac_arg
1082 do
1083 case $ac_arg in
1084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 continue ;;
1088 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1090 esac
1091 case $ac_pass in
1092 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093 2)
1094 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095 if test $ac_must_keep_next = true; then
1096 ac_must_keep_next=false # Got value, back to normal.
1097 else
1098 case $ac_arg in
1099 *=* | --config-cache | -C | -disable-* | --disable-* \
1100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102 | -with-* | --with-* | -without-* | --without-* | --x)
1103 case "$ac_configure_args0 " in
1104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1105 esac
1106 ;;
1107 -* ) ac_must_keep_next=true ;;
1108 esac
1109 fi
1110 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111 # Get rid of the leading space.
1112 ac_sep=" "
1113 ;;
1114 esac
1115 done
1116 done
1117 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119
1120 # When interrupted or exit'd, cleanup temporary files, and complete
1121 # config.log. We remove comments because anyway the quotes in there
1122 # would cause problems or look ugly.
1123 # WARNING: Be sure not to use single quotes in there, as some shells,
1124 # such as our DU 5.0 friend, will then `close' the trap.
1125 trap 'exit_status=$?
1126 # Save into config.log some information that might help in debugging.
1127 {
1128 echo
1129
1130 cat <<\_ASBOX
1131 ## ---------------- ##
1132 ## Cache variables. ##
1133 ## ---------------- ##
1134 _ASBOX
1135 echo
1136 # The following way of writing the cache mishandles newlines in values,
1137 {
1138 (set) 2>&1 |
1139 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1140 *ac_space=\ *)
1141 sed -n \
1142 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144 ;;
1145 *)
1146 sed -n \
1147 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148 ;;
1149 esac;
1150 }
1151 echo
1152
1153 cat <<\_ASBOX
1154 ## ----------------- ##
1155 ## Output variables. ##
1156 ## ----------------- ##
1157 _ASBOX
1158 echo
1159 for ac_var in $ac_subst_vars
1160 do
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1163 done | sort
1164 echo
1165
1166 if test -n "$ac_subst_files"; then
1167 cat <<\_ASBOX
1168 ## ------------- ##
1169 ## Output files. ##
1170 ## ------------- ##
1171 _ASBOX
1172 echo
1173 for ac_var in $ac_subst_files
1174 do
1175 eval ac_val=$`echo $ac_var`
1176 echo "$ac_var='"'"'$ac_val'"'"'"
1177 done | sort
1178 echo
1179 fi
1180
1181 if test -s confdefs.h; then
1182 cat <<\_ASBOX
1183 ## ----------- ##
1184 ## confdefs.h. ##
1185 ## ----------- ##
1186 _ASBOX
1187 echo
1188 sed "/^$/d" confdefs.h | sort
1189 echo
1190 fi
1191 test "$ac_signal" != 0 &&
1192 echo "$as_me: caught signal $ac_signal"
1193 echo "$as_me: exit $exit_status"
1194 } >&5
1195 rm -f core *.core &&
1196 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1197 exit $exit_status
1198 ' 0
1199 for ac_signal in 1 2 13 15; do
1200 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201 done
1202 ac_signal=0
1203
1204 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1205 rm -rf conftest* confdefs.h
1206 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1207 echo >confdefs.h
1208
1209 # Predefined preprocessor variables.
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_NAME "$PACKAGE_NAME"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_STRING "$PACKAGE_STRING"
1228 _ACEOF
1229
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233 _ACEOF
1234
1235
1236 # Let the site file select an alternate cache file if it wants to.
1237 # Prefer explicitly selected file to automatically selected ones.
1238 if test -z "$CONFIG_SITE"; then
1239 if test "x$prefix" != xNONE; then
1240 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241 else
1242 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1243 fi
1244 fi
1245 for ac_site_file in $CONFIG_SITE; do
1246 if test -r "$ac_site_file"; then
1247 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248 echo "$as_me: loading site script $ac_site_file" >&6;}
1249 sed 's/^/| /' "$ac_site_file" >&5
1250 . "$ac_site_file"
1251 fi
1252 done
1253
1254 if test -r "$cache_file"; then
1255 # Some versions of bash will fail to source /dev/null (special
1256 # files actually), so we avoid doing that.
1257 if test -f "$cache_file"; then
1258 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259 echo "$as_me: loading cache $cache_file" >&6;}
1260 case $cache_file in
1261 [\\/]* | ?:[\\/]* ) . $cache_file;;
1262 *) . ./$cache_file;;
1263 esac
1264 fi
1265 else
1266 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267 echo "$as_me: creating cache $cache_file" >&6;}
1268 >$cache_file
1269 fi
1270
1271 # Check that the precious variables saved in the cache have kept the same
1272 # value.
1273 ac_cache_corrupted=false
1274 for ac_var in `(set) 2>&1 |
1275 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277 eval ac_new_set=\$ac_env_${ac_var}_set
1278 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279 eval ac_new_val="\$ac_env_${ac_var}_value"
1280 case $ac_old_set,$ac_new_set in
1281 set,)
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1285 ,set)
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1289 ,);;
1290 *)
1291 if test "x$ac_old_val" != "x$ac_new_val"; then
1292 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1295 echo "$as_me: former value: $ac_old_val" >&2;}
1296 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1297 echo "$as_me: current value: $ac_new_val" >&2;}
1298 ac_cache_corrupted=:
1299 fi;;
1300 esac
1301 # Pass precious variables to config.status.
1302 if test "$ac_new_set" = set; then
1303 case $ac_new_val in
1304 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306 *) ac_arg=$ac_var=$ac_new_val ;;
1307 esac
1308 case " $ac_configure_args " in
1309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1310 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311 esac
1312 fi
1313 done
1314 if $ac_cache_corrupted; then
1315 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319 { (exit 1); exit 1; }; }
1320 fi
1321
1322 ac_ext=c
1323 ac_cpp='$CPP $CPPFLAGS'
1324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346 ac_config_headers="$ac_config_headers config.h:config.in"
1347
1348 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1349 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1350 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1351 if test "${enable_maintainer_mode+set}" = set; then
1352 enableval="$enable_maintainer_mode"
1353 USE_MAINTAINER_MODE=$enableval
1354 else
1355 USE_MAINTAINER_MODE=no
1356 fi;
1357 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1358 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1359
1360
1361 if test $USE_MAINTAINER_MODE = yes; then
1362 MAINTAINER_MODE_TRUE=
1363 MAINTAINER_MODE_FALSE='#'
1364 else
1365 MAINTAINER_MODE_TRUE='#'
1366 MAINTAINER_MODE_FALSE=
1367 fi
1368
1369 MAINT=$MAINTAINER_MODE_TRUE
1370
1371
1372
1373 ac_ext=c
1374 ac_cpp='$CPP $CPPFLAGS'
1375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1378 if test -n "$ac_tool_prefix"; then
1379 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1380 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1381 echo "$as_me:$LINENO: checking for $ac_word" >&5
1382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1383 if test "${ac_cv_prog_CC+set}" = set; then
1384 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 else
1386 if test -n "$CC"; then
1387 ac_cv_prog_CC="$CC" # Let the user override the test.
1388 else
1389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390 for as_dir in $PATH
1391 do
1392 IFS=$as_save_IFS
1393 test -z "$as_dir" && as_dir=.
1394 for ac_exec_ext in '' $ac_executable_extensions; do
1395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1396 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1398 break 2
1399 fi
1400 done
1401 done
1402
1403 fi
1404 fi
1405 CC=$ac_cv_prog_CC
1406 if test -n "$CC"; then
1407 echo "$as_me:$LINENO: result: $CC" >&5
1408 echo "${ECHO_T}$CC" >&6
1409 else
1410 echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1412 fi
1413
1414 fi
1415 if test -z "$ac_cv_prog_CC"; then
1416 ac_ct_CC=$CC
1417 # Extract the first word of "gcc", so it can be a program name with args.
1418 set dummy gcc; ac_word=$2
1419 echo "$as_me:$LINENO: checking for $ac_word" >&5
1420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424 if test -n "$ac_ct_CC"; then
1425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1426 else
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430 IFS=$as_save_IFS
1431 test -z "$as_dir" && as_dir=.
1432 for ac_exec_ext in '' $ac_executable_extensions; do
1433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434 ac_cv_prog_ac_ct_CC="gcc"
1435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436 break 2
1437 fi
1438 done
1439 done
1440
1441 fi
1442 fi
1443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1444 if test -n "$ac_ct_CC"; then
1445 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1446 echo "${ECHO_T}$ac_ct_CC" >&6
1447 else
1448 echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1450 fi
1451
1452 CC=$ac_ct_CC
1453 else
1454 CC="$ac_cv_prog_CC"
1455 fi
1456
1457 if test -z "$CC"; then
1458 if test -n "$ac_tool_prefix"; then
1459 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1460 set dummy ${ac_tool_prefix}cc; ac_word=$2
1461 echo "$as_me:$LINENO: checking for $ac_word" >&5
1462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463 if test "${ac_cv_prog_CC+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466 if test -n "$CC"; then
1467 ac_cv_prog_CC="$CC" # Let the user override the test.
1468 else
1469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 for as_dir in $PATH
1471 do
1472 IFS=$as_save_IFS
1473 test -z "$as_dir" && as_dir=.
1474 for ac_exec_ext in '' $ac_executable_extensions; do
1475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1476 ac_cv_prog_CC="${ac_tool_prefix}cc"
1477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1478 break 2
1479 fi
1480 done
1481 done
1482
1483 fi
1484 fi
1485 CC=$ac_cv_prog_CC
1486 if test -n "$CC"; then
1487 echo "$as_me:$LINENO: result: $CC" >&5
1488 echo "${ECHO_T}$CC" >&6
1489 else
1490 echo "$as_me:$LINENO: result: no" >&5
1491 echo "${ECHO_T}no" >&6
1492 fi
1493
1494 fi
1495 if test -z "$ac_cv_prog_CC"; then
1496 ac_ct_CC=$CC
1497 # Extract the first word of "cc", so it can be a program name with args.
1498 set dummy cc; ac_word=$2
1499 echo "$as_me:$LINENO: checking for $ac_word" >&5
1500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1503 else
1504 if test -n "$ac_ct_CC"; then
1505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1506 else
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 for as_dir in $PATH
1509 do
1510 IFS=$as_save_IFS
1511 test -z "$as_dir" && as_dir=.
1512 for ac_exec_ext in '' $ac_executable_extensions; do
1513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514 ac_cv_prog_ac_ct_CC="cc"
1515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1516 break 2
1517 fi
1518 done
1519 done
1520
1521 fi
1522 fi
1523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1524 if test -n "$ac_ct_CC"; then
1525 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1526 echo "${ECHO_T}$ac_ct_CC" >&6
1527 else
1528 echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1530 fi
1531
1532 CC=$ac_ct_CC
1533 else
1534 CC="$ac_cv_prog_CC"
1535 fi
1536
1537 fi
1538 if test -z "$CC"; then
1539 # Extract the first word of "cc", so it can be a program name with args.
1540 set dummy cc; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_CC+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546 if test -n "$CC"; then
1547 ac_cv_prog_CC="$CC" # Let the user override the test.
1548 else
1549 ac_prog_rejected=no
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1552 do
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1558 ac_prog_rejected=yes
1559 continue
1560 fi
1561 ac_cv_prog_CC="cc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 break 2
1564 fi
1565 done
1566 done
1567
1568 if test $ac_prog_rejected = yes; then
1569 # We found a bogon in the path, so make sure we never use it.
1570 set dummy $ac_cv_prog_CC
1571 shift
1572 if test $# != 0; then
1573 # We chose a different compiler from the bogus one.
1574 # However, it has the same basename, so the bogon will be chosen
1575 # first if we set CC to just the basename; use the full file name.
1576 shift
1577 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1578 fi
1579 fi
1580 fi
1581 fi
1582 CC=$ac_cv_prog_CC
1583 if test -n "$CC"; then
1584 echo "$as_me:$LINENO: result: $CC" >&5
1585 echo "${ECHO_T}$CC" >&6
1586 else
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1589 fi
1590
1591 fi
1592 if test -z "$CC"; then
1593 if test -n "$ac_tool_prefix"; then
1594 for ac_prog in cl
1595 do
1596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1616 fi
1617 done
1618 done
1619
1620 fi
1621 fi
1622 CC=$ac_cv_prog_CC
1623 if test -n "$CC"; then
1624 echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1626 else
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631 test -n "$CC" && break
1632 done
1633 fi
1634 if test -z "$CC"; then
1635 ac_ct_CC=$CC
1636 for ac_prog in cl
1637 do
1638 # Extract the first word of "$ac_prog", so it can be a program name with args.
1639 set dummy $ac_prog; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645 if test -n "$ac_ct_CC"; then
1646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1647 else
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 for as_dir in $PATH
1650 do
1651 IFS=$as_save_IFS
1652 test -z "$as_dir" && as_dir=.
1653 for ac_exec_ext in '' $ac_executable_extensions; do
1654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655 ac_cv_prog_ac_ct_CC="$ac_prog"
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 break 2
1658 fi
1659 done
1660 done
1661
1662 fi
1663 fi
1664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1665 if test -n "$ac_ct_CC"; then
1666 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1667 echo "${ECHO_T}$ac_ct_CC" >&6
1668 else
1669 echo "$as_me:$LINENO: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1671 fi
1672
1673 test -n "$ac_ct_CC" && break
1674 done
1675
1676 CC=$ac_ct_CC
1677 fi
1678
1679 fi
1680
1681
1682 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1683 See \`config.log' for more details." >&5
1684 echo "$as_me: error: no acceptable C compiler found in \$PATH
1685 See \`config.log' for more details." >&2;}
1686 { (exit 1); exit 1; }; }
1687
1688 # Provide some information about the compiler.
1689 echo "$as_me:$LINENO:" \
1690 "checking for C compiler version" >&5
1691 ac_compiler=`set X $ac_compile; echo $2`
1692 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1693 (eval $ac_compiler --version </dev/null >&5) 2>&5
1694 ac_status=$?
1695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1696 (exit $ac_status); }
1697 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1698 (eval $ac_compiler -v </dev/null >&5) 2>&5
1699 ac_status=$?
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1702 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1703 (eval $ac_compiler -V </dev/null >&5) 2>&5
1704 ac_status=$?
1705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1706 (exit $ac_status); }
1707
1708 cat >conftest.$ac_ext <<_ACEOF
1709 /* confdefs.h. */
1710 _ACEOF
1711 cat confdefs.h >>conftest.$ac_ext
1712 cat >>conftest.$ac_ext <<_ACEOF
1713 /* end confdefs.h. */
1714
1715 int
1716 main ()
1717 {
1718
1719 ;
1720 return 0;
1721 }
1722 _ACEOF
1723 ac_clean_files_save=$ac_clean_files
1724 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1725 # Try to create an executable without -o first, disregard a.out.
1726 # It will help us diagnose broken compilers, and finding out an intuition
1727 # of exeext.
1728 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1729 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1730 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1731 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1732 (eval $ac_link_default) 2>&5
1733 ac_status=$?
1734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1735 (exit $ac_status); }; then
1736 # Find the output, starting from the most likely. This scheme is
1737 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1738 # resort.
1739
1740 # Be careful to initialize this variable, since it used to be cached.
1741 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1742 ac_cv_exeext=
1743 # b.out is created by i960 compilers.
1744 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1745 do
1746 test -f "$ac_file" || continue
1747 case $ac_file in
1748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1749 ;;
1750 conftest.$ac_ext )
1751 # This is the source file.
1752 ;;
1753 [ab].out )
1754 # We found the default executable, but exeext='' is most
1755 # certainly right.
1756 break;;
1757 *.* )
1758 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1759 # FIXME: I believe we export ac_cv_exeext for Libtool,
1760 # but it would be cool to find out if it's true. Does anybody
1761 # maintain Libtool? --akim.
1762 export ac_cv_exeext
1763 break;;
1764 * )
1765 break;;
1766 esac
1767 done
1768 else
1769 echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1773 See \`config.log' for more details." >&5
1774 echo "$as_me: error: C compiler cannot create executables
1775 See \`config.log' for more details." >&2;}
1776 { (exit 77); exit 77; }; }
1777 fi
1778
1779 ac_exeext=$ac_cv_exeext
1780 echo "$as_me:$LINENO: result: $ac_file" >&5
1781 echo "${ECHO_T}$ac_file" >&6
1782
1783 # Check the compiler produces executables we can run. If not, either
1784 # the compiler is broken, or we cross compile.
1785 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1786 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1787 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1788 # If not cross compiling, check that we can run a simple program.
1789 if test "$cross_compiling" != yes; then
1790 if { ac_try='./$ac_file'
1791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1792 (eval $ac_try) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; }; then
1796 cross_compiling=no
1797 else
1798 if test "$cross_compiling" = maybe; then
1799 cross_compiling=yes
1800 else
1801 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1802 If you meant to cross compile, use \`--host'.
1803 See \`config.log' for more details." >&5
1804 echo "$as_me: error: cannot run C compiled programs.
1805 If you meant to cross compile, use \`--host'.
1806 See \`config.log' for more details." >&2;}
1807 { (exit 1); exit 1; }; }
1808 fi
1809 fi
1810 fi
1811 echo "$as_me:$LINENO: result: yes" >&5
1812 echo "${ECHO_T}yes" >&6
1813
1814 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1815 ac_clean_files=$ac_clean_files_save
1816 # Check the compiler produces executables we can run. If not, either
1817 # the compiler is broken, or we cross compile.
1818 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1819 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1820 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1821 echo "${ECHO_T}$cross_compiling" >&6
1822
1823 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1824 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1826 (eval $ac_link) 2>&5
1827 ac_status=$?
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); }; then
1830 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1831 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1832 # work properly (i.e., refer to `conftest.exe'), while it won't with
1833 # `rm'.
1834 for ac_file in conftest.exe conftest conftest.*; do
1835 test -f "$ac_file" || continue
1836 case $ac_file in
1837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1838 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1839 export ac_cv_exeext
1840 break;;
1841 * ) break;;
1842 esac
1843 done
1844 else
1845 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1846 See \`config.log' for more details." >&5
1847 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1848 See \`config.log' for more details." >&2;}
1849 { (exit 1); exit 1; }; }
1850 fi
1851
1852 rm -f conftest$ac_cv_exeext
1853 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1854 echo "${ECHO_T}$ac_cv_exeext" >&6
1855
1856 rm -f conftest.$ac_ext
1857 EXEEXT=$ac_cv_exeext
1858 ac_exeext=$EXEEXT
1859 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1860 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1861 if test "${ac_cv_objext+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 cat >conftest.$ac_ext <<_ACEOF
1865 /* confdefs.h. */
1866 _ACEOF
1867 cat confdefs.h >>conftest.$ac_ext
1868 cat >>conftest.$ac_ext <<_ACEOF
1869 /* end confdefs.h. */
1870
1871 int
1872 main ()
1873 {
1874
1875 ;
1876 return 0;
1877 }
1878 _ACEOF
1879 rm -f conftest.o conftest.obj
1880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1881 (eval $ac_compile) 2>&5
1882 ac_status=$?
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; then
1885 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1886 case $ac_file in
1887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1888 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1889 break;;
1890 esac
1891 done
1892 else
1893 echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1897 See \`config.log' for more details." >&5
1898 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1899 See \`config.log' for more details." >&2;}
1900 { (exit 1); exit 1; }; }
1901 fi
1902
1903 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1904 fi
1905 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1906 echo "${ECHO_T}$ac_cv_objext" >&6
1907 OBJEXT=$ac_cv_objext
1908 ac_objext=$OBJEXT
1909 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1910 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1911 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 else
1914 cat >conftest.$ac_ext <<_ACEOF
1915 /* confdefs.h. */
1916 _ACEOF
1917 cat confdefs.h >>conftest.$ac_ext
1918 cat >>conftest.$ac_ext <<_ACEOF
1919 /* end confdefs.h. */
1920
1921 int
1922 main ()
1923 {
1924 #ifndef __GNUC__
1925 choke me
1926 #endif
1927
1928 ;
1929 return 0;
1930 }
1931 _ACEOF
1932 rm -f conftest.$ac_objext
1933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1934 (eval $ac_compile) 2>conftest.er1
1935 ac_status=$?
1936 grep -v '^ *+' conftest.er1 >conftest.err
1937 rm -f conftest.er1
1938 cat conftest.err >&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); } &&
1941 { ac_try='test -z "$ac_c_werror_flag"
1942 || test ! -s conftest.err'
1943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 (eval $ac_try) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; } &&
1948 { ac_try='test -s conftest.$ac_objext'
1949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1950 (eval $ac_try) 2>&5
1951 ac_status=$?
1952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953 (exit $ac_status); }; }; then
1954 ac_compiler_gnu=yes
1955 else
1956 echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959 ac_compiler_gnu=no
1960 fi
1961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1962 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1963
1964 fi
1965 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1966 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1967 GCC=`test $ac_compiler_gnu = yes && echo yes`
1968 ac_test_CFLAGS=${CFLAGS+set}
1969 ac_save_CFLAGS=$CFLAGS
1970 CFLAGS="-g"
1971 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1972 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1973 if test "${ac_cv_prog_cc_g+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976 cat >conftest.$ac_ext <<_ACEOF
1977 /* confdefs.h. */
1978 _ACEOF
1979 cat confdefs.h >>conftest.$ac_ext
1980 cat >>conftest.$ac_ext <<_ACEOF
1981 /* end confdefs.h. */
1982
1983 int
1984 main ()
1985 {
1986
1987 ;
1988 return 0;
1989 }
1990 _ACEOF
1991 rm -f conftest.$ac_objext
1992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993 (eval $ac_compile) 2>conftest.er1
1994 ac_status=$?
1995 grep -v '^ *+' conftest.er1 >conftest.err
1996 rm -f conftest.er1
1997 cat conftest.err >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
2000 { ac_try='test -z "$ac_c_werror_flag"
2001 || test ! -s conftest.err'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 (eval $ac_try) 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 ac_cv_prog_cc_g=yes
2014 else
2015 echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 ac_cv_prog_cc_g=no
2019 fi
2020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2021 fi
2022 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2023 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2024 if test "$ac_test_CFLAGS" = set; then
2025 CFLAGS=$ac_save_CFLAGS
2026 elif test $ac_cv_prog_cc_g = yes; then
2027 if test "$GCC" = yes; then
2028 CFLAGS="-g -O2"
2029 else
2030 CFLAGS="-g"
2031 fi
2032 else
2033 if test "$GCC" = yes; then
2034 CFLAGS="-O2"
2035 else
2036 CFLAGS=
2037 fi
2038 fi
2039 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2040 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2041 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044 ac_cv_prog_cc_stdc=no
2045 ac_save_CC=$CC
2046 cat >conftest.$ac_ext <<_ACEOF
2047 /* confdefs.h. */
2048 _ACEOF
2049 cat confdefs.h >>conftest.$ac_ext
2050 cat >>conftest.$ac_ext <<_ACEOF
2051 /* end confdefs.h. */
2052 #include <stdarg.h>
2053 #include <stdio.h>
2054 #include <sys/types.h>
2055 #include <sys/stat.h>
2056 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2057 struct buf { int x; };
2058 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2059 static char *e (p, i)
2060 char **p;
2061 int i;
2062 {
2063 return p[i];
2064 }
2065 static char *f (char * (*g) (char **, int), char **p, ...)
2066 {
2067 char *s;
2068 va_list v;
2069 va_start (v,p);
2070 s = g (p, va_arg (v,int));
2071 va_end (v);
2072 return s;
2073 }
2074
2075 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2076 function prototypes and stuff, but not '\xHH' hex character constants.
2077 These don't provoke an error unfortunately, instead are silently treated
2078 as 'x'. The following induces an error, until -std1 is added to get
2079 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2080 array size at least. It's necessary to write '\x00'==0 to get something
2081 that's true only with -std1. */
2082 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2083
2084 int test (int i, double x);
2085 struct s1 {int (*f) (int a);};
2086 struct s2 {int (*f) (double a);};
2087 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2088 int argc;
2089 char **argv;
2090 int
2091 main ()
2092 {
2093 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2094 ;
2095 return 0;
2096 }
2097 _ACEOF
2098 # Don't try gcc -ansi; that turns off useful extensions and
2099 # breaks some systems' header files.
2100 # AIX -qlanglvl=ansi
2101 # Ultrix and OSF/1 -std1
2102 # HP-UX 10.20 and later -Ae
2103 # HP-UX older versions -Aa -D_HPUX_SOURCE
2104 # SVR4 -Xc -D__EXTENSIONS__
2105 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2106 do
2107 CC="$ac_save_CC $ac_arg"
2108 rm -f conftest.$ac_objext
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>conftest.er1
2111 ac_status=$?
2112 grep -v '^ *+' conftest.er1 >conftest.err
2113 rm -f conftest.er1
2114 cat conftest.err >&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); } &&
2117 { ac_try='test -z "$ac_c_werror_flag"
2118 || test ! -s conftest.err'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 (eval $ac_try) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; } &&
2124 { ac_try='test -s conftest.$ac_objext'
2125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2126 (eval $ac_try) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }; }; then
2130 ac_cv_prog_cc_stdc=$ac_arg
2131 break
2132 else
2133 echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
2136 fi
2137 rm -f conftest.err conftest.$ac_objext
2138 done
2139 rm -f conftest.$ac_ext conftest.$ac_objext
2140 CC=$ac_save_CC
2141
2142 fi
2143
2144 case "x$ac_cv_prog_cc_stdc" in
2145 x|xno)
2146 echo "$as_me:$LINENO: result: none needed" >&5
2147 echo "${ECHO_T}none needed" >&6 ;;
2148 *)
2149 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2150 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2151 CC="$CC $ac_cv_prog_cc_stdc" ;;
2152 esac
2153
2154 # Some people use a C++ compiler to compile C. Since we use `exit',
2155 # in C++ we need to declare it. In case someone uses the same compiler
2156 # for both compiling C and C++ we need to have the C++ compiler decide
2157 # the declaration of exit, since it's the most demanding environment.
2158 cat >conftest.$ac_ext <<_ACEOF
2159 #ifndef __cplusplus
2160 choke me
2161 #endif
2162 _ACEOF
2163 rm -f conftest.$ac_objext
2164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165 (eval $ac_compile) 2>conftest.er1
2166 ac_status=$?
2167 grep -v '^ *+' conftest.er1 >conftest.err
2168 rm -f conftest.er1
2169 cat conftest.err >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
2172 { ac_try='test -z "$ac_c_werror_flag"
2173 || test ! -s conftest.err'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; } &&
2179 { ac_try='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 for ac_declaration in \
2186 '' \
2187 'extern "C" void std::exit (int) throw (); using std::exit;' \
2188 'extern "C" void std::exit (int); using std::exit;' \
2189 'extern "C" void exit (int) throw ();' \
2190 'extern "C" void exit (int);' \
2191 'void exit (int);'
2192 do
2193 cat >conftest.$ac_ext <<_ACEOF
2194 /* confdefs.h. */
2195 _ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h. */
2199 $ac_declaration
2200 #include <stdlib.h>
2201 int
2202 main ()
2203 {
2204 exit (42);
2205 ;
2206 return 0;
2207 }
2208 _ACEOF
2209 rm -f conftest.$ac_objext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 (eval $ac_compile) 2>conftest.er1
2212 ac_status=$?
2213 grep -v '^ *+' conftest.er1 >conftest.err
2214 rm -f conftest.er1
2215 cat conftest.err >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); } &&
2218 { ac_try='test -z "$ac_c_werror_flag"
2219 || test ! -s conftest.err'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 (eval $ac_try) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; } &&
2225 { ac_try='test -s conftest.$ac_objext'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2231 :
2232 else
2233 echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2235
2236 continue
2237 fi
2238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2239 cat >conftest.$ac_ext <<_ACEOF
2240 /* confdefs.h. */
2241 _ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h. */
2245 $ac_declaration
2246 int
2247 main ()
2248 {
2249 exit (42);
2250 ;
2251 return 0;
2252 }
2253 _ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2257 ac_status=$?
2258 grep -v '^ *+' conftest.er1 >conftest.err
2259 rm -f conftest.er1
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag"
2264 || test ! -s conftest.err'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; } &&
2270 { ac_try='test -s conftest.$ac_objext'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 break
2277 else
2278 echo "$as_me: failed program was:" >&5
2279 sed 's/^/| /' conftest.$ac_ext >&5
2280
2281 fi
2282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2283 done
2284 rm -f conftest*
2285 if test -n "$ac_declaration"; then
2286 echo '#ifdef __cplusplus' >>confdefs.h
2287 echo $ac_declaration >>confdefs.h
2288 echo '#endif' >>confdefs.h
2289 fi
2290
2291 else
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 fi
2296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2297 ac_ext=c
2298 ac_cpp='$CPP $CPPFLAGS'
2299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302
2303
2304 cat >>confdefs.h <<\_ACEOF
2305 #define _GNU_SOURCE 1
2306 _ACEOF
2307
2308
2309
2310 ac_ext=c
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2316 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2317 # On Suns, sometimes $CPP names a directory.
2318 if test -n "$CPP" && test -d "$CPP"; then
2319 CPP=
2320 fi
2321 if test -z "$CPP"; then
2322 if test "${ac_cv_prog_CPP+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325 # Double quotes because CPP needs to be expanded
2326 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2327 do
2328 ac_preproc_ok=false
2329 for ac_c_preproc_warn_flag in '' yes
2330 do
2331 # Use a header file that comes with gcc, so configuring glibc
2332 # with a fresh cross-compiler works.
2333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2334 # <limits.h> exists even on freestanding compilers.
2335 # On the NeXT, cc -E runs the code through the compiler's parser,
2336 # not just through cpp. "Syntax error" is here to catch this case.
2337 cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h. */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2343 #ifdef __STDC__
2344 # include <limits.h>
2345 #else
2346 # include <assert.h>
2347 #endif
2348 Syntax error
2349 _ACEOF
2350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2352 ac_status=$?
2353 grep -v '^ *+' conftest.er1 >conftest.err
2354 rm -f conftest.er1
2355 cat conftest.err >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } >/dev/null; then
2358 if test -s conftest.err; then
2359 ac_cpp_err=$ac_c_preproc_warn_flag
2360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2361 else
2362 ac_cpp_err=
2363 fi
2364 else
2365 ac_cpp_err=yes
2366 fi
2367 if test -z "$ac_cpp_err"; then
2368 :
2369 else
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2372
2373 # Broken: fails on valid input.
2374 continue
2375 fi
2376 rm -f conftest.err conftest.$ac_ext
2377
2378 # OK, works on sane cases. Now check whether non-existent headers
2379 # can be detected and how.
2380 cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h. */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h. */
2386 #include <ac_nonexistent.h>
2387 _ACEOF
2388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } >/dev/null; then
2396 if test -s conftest.err; then
2397 ac_cpp_err=$ac_c_preproc_warn_flag
2398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2399 else
2400 ac_cpp_err=
2401 fi
2402 else
2403 ac_cpp_err=yes
2404 fi
2405 if test -z "$ac_cpp_err"; then
2406 # Broken: success on invalid input.
2407 continue
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 # Passes both tests.
2413 ac_preproc_ok=:
2414 break
2415 fi
2416 rm -f conftest.err conftest.$ac_ext
2417
2418 done
2419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2420 rm -f conftest.err conftest.$ac_ext
2421 if $ac_preproc_ok; then
2422 break
2423 fi
2424
2425 done
2426 ac_cv_prog_CPP=$CPP
2427
2428 fi
2429 CPP=$ac_cv_prog_CPP
2430 else
2431 ac_cv_prog_CPP=$CPP
2432 fi
2433 echo "$as_me:$LINENO: result: $CPP" >&5
2434 echo "${ECHO_T}$CPP" >&6
2435 ac_preproc_ok=false
2436 for ac_c_preproc_warn_flag in '' yes
2437 do
2438 # Use a header file that comes with gcc, so configuring glibc
2439 # with a fresh cross-compiler works.
2440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2441 # <limits.h> exists even on freestanding compilers.
2442 # On the NeXT, cc -E runs the code through the compiler's parser,
2443 # not just through cpp. "Syntax error" is here to catch this case.
2444 cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h. */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2450 #ifdef __STDC__
2451 # include <limits.h>
2452 #else
2453 # include <assert.h>
2454 #endif
2455 Syntax error
2456 _ACEOF
2457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2459 ac_status=$?
2460 grep -v '^ *+' conftest.er1 >conftest.err
2461 rm -f conftest.er1
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } >/dev/null; then
2465 if test -s conftest.err; then
2466 ac_cpp_err=$ac_c_preproc_warn_flag
2467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2468 else
2469 ac_cpp_err=
2470 fi
2471 else
2472 ac_cpp_err=yes
2473 fi
2474 if test -z "$ac_cpp_err"; then
2475 :
2476 else
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 # Broken: fails on valid input.
2481 continue
2482 fi
2483 rm -f conftest.err conftest.$ac_ext
2484
2485 # OK, works on sane cases. Now check whether non-existent headers
2486 # can be detected and how.
2487 cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h. */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2493 #include <ac_nonexistent.h>
2494 _ACEOF
2495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2497 ac_status=$?
2498 grep -v '^ *+' conftest.er1 >conftest.err
2499 rm -f conftest.er1
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } >/dev/null; then
2503 if test -s conftest.err; then
2504 ac_cpp_err=$ac_c_preproc_warn_flag
2505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2506 else
2507 ac_cpp_err=
2508 fi
2509 else
2510 ac_cpp_err=yes
2511 fi
2512 if test -z "$ac_cpp_err"; then
2513 # Broken: success on invalid input.
2514 continue
2515 else
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519 # Passes both tests.
2520 ac_preproc_ok=:
2521 break
2522 fi
2523 rm -f conftest.err conftest.$ac_ext
2524
2525 done
2526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2527 rm -f conftest.err conftest.$ac_ext
2528 if $ac_preproc_ok; then
2529 :
2530 else
2531 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2532 See \`config.log' for more details." >&5
2533 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2534 See \`config.log' for more details." >&2;}
2535 { (exit 1); exit 1; }; }
2536 fi
2537
2538 ac_ext=c
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2543
2544
2545 echo "$as_me:$LINENO: checking for egrep" >&5
2546 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2547 if test "${ac_cv_prog_egrep+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2551 then ac_cv_prog_egrep='grep -E'
2552 else ac_cv_prog_egrep='egrep'
2553 fi
2554 fi
2555 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2556 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2557 EGREP=$ac_cv_prog_egrep
2558
2559
2560
2561 echo "$as_me:$LINENO: checking for AIX" >&5
2562 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2563 cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569 #ifdef _AIX
2570 yes
2571 #endif
2572
2573 _ACEOF
2574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2575 $EGREP "yes" >/dev/null 2>&1; then
2576 echo "$as_me:$LINENO: result: yes" >&5
2577 echo "${ECHO_T}yes" >&6
2578 cat >>confdefs.h <<\_ACEOF
2579 #define _ALL_SOURCE 1
2580 _ACEOF
2581
2582 else
2583 echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6
2585 fi
2586 rm -f conftest*
2587
2588
2589 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2590 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2591 if test "${ac_cv_search_strerror+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594 ac_func_search_save_LIBS=$LIBS
2595 ac_cv_search_strerror=no
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2602
2603 /* Override any gcc2 internal prototype to avoid an error. */
2604 #ifdef __cplusplus
2605 extern "C"
2606 #endif
2607 /* We use char because int might match the return type of a gcc2
2608 builtin and then its argument prototype would still apply. */
2609 char strerror ();
2610 int
2611 main ()
2612 {
2613 strerror ();
2614 ;
2615 return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext conftest$ac_exeext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620 (eval $ac_link) 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag"
2628 || test ! -s conftest.err'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; } &&
2634 { ac_try='test -s conftest$ac_exeext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2640 ac_cv_search_strerror="none required"
2641 else
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 fi
2646 rm -f conftest.err conftest.$ac_objext \
2647 conftest$ac_exeext conftest.$ac_ext
2648 if test "$ac_cv_search_strerror" = no; then
2649 for ac_lib in cposix; do
2650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2651 cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h. */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2657
2658 /* Override any gcc2 internal prototype to avoid an error. */
2659 #ifdef __cplusplus
2660 extern "C"
2661 #endif
2662 /* We use char because int might match the return type of a gcc2
2663 builtin and then its argument prototype would still apply. */
2664 char strerror ();
2665 int
2666 main ()
2667 {
2668 strerror ();
2669 ;
2670 return 0;
2671 }
2672 _ACEOF
2673 rm -f conftest.$ac_objext conftest$ac_exeext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2675 (eval $ac_link) 2>conftest.er1
2676 ac_status=$?
2677 grep -v '^ *+' conftest.er1 >conftest.err
2678 rm -f conftest.er1
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try='test -z "$ac_c_werror_flag"
2683 || test ! -s conftest.err'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 (eval $ac_try) 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; } &&
2689 { ac_try='test -s conftest$ac_exeext'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 (eval $ac_try) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2695 ac_cv_search_strerror="-l$ac_lib"
2696 break
2697 else
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2700
2701 fi
2702 rm -f conftest.err conftest.$ac_objext \
2703 conftest$ac_exeext conftest.$ac_ext
2704 done
2705 fi
2706 LIBS=$ac_func_search_save_LIBS
2707 fi
2708 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2709 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2710 if test "$ac_cv_search_strerror" != no; then
2711 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2712
2713 fi
2714
2715
2716
2717
2718 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2719 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2720 if test "${am_cv_prog_cc_stdc+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 am_cv_prog_cc_stdc=no
2724 ac_save_CC="$CC"
2725 # Don't try gcc -ansi; that turns off useful extensions and
2726 # breaks some systems' header files.
2727 # AIX -qlanglvl=ansi
2728 # Ultrix and OSF/1 -std1
2729 # HP-UX 10.20 and later -Ae
2730 # HP-UX older versions -Aa -D_HPUX_SOURCE
2731 # SVR4 -Xc -D__EXTENSIONS__
2732 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2733 do
2734 CC="$ac_save_CC $ac_arg"
2735 cat >conftest.$ac_ext <<_ACEOF
2736 /* confdefs.h. */
2737 _ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2741 #include <stdarg.h>
2742 #include <stdio.h>
2743 #include <sys/types.h>
2744 #include <sys/stat.h>
2745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2746 struct buf { int x; };
2747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2748 static char *e (p, i)
2749 char **p;
2750 int i;
2751 {
2752 return p[i];
2753 }
2754 static char *f (char * (*g) (char **, int), char **p, ...)
2755 {
2756 char *s;
2757 va_list v;
2758 va_start (v,p);
2759 s = g (p, va_arg (v,int));
2760 va_end (v);
2761 return s;
2762 }
2763 int test (int i, double x);
2764 struct s1 {int (*f) (int a);};
2765 struct s2 {int (*f) (double a);};
2766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2767 int argc;
2768 char **argv;
2769
2770 int
2771 main ()
2772 {
2773
2774 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2775
2776 ;
2777 return 0;
2778 }
2779 _ACEOF
2780 rm -f conftest.$ac_objext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try='test -z "$ac_c_werror_flag"
2790 || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 am_cv_prog_cc_stdc="$ac_arg"; break
2803 else
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2806
2807 fi
2808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 done
2810 CC="$ac_save_CC"
2811
2812 fi
2813
2814 if test -z "$am_cv_prog_cc_stdc"; then
2815 echo "$as_me:$LINENO: result: none needed" >&5
2816 echo "${ECHO_T}none needed" >&6
2817 else
2818 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2819 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2820 fi
2821 case "x$am_cv_prog_cc_stdc" in
2822 x|xno) ;;
2823 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2824 esac
2825
2826
2827 ac_aux_dir=
2828 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2829 if test -f $ac_dir/install-sh; then
2830 ac_aux_dir=$ac_dir
2831 ac_install_sh="$ac_aux_dir/install-sh -c"
2832 break
2833 elif test -f $ac_dir/install.sh; then
2834 ac_aux_dir=$ac_dir
2835 ac_install_sh="$ac_aux_dir/install.sh -c"
2836 break
2837 elif test -f $ac_dir/shtool; then
2838 ac_aux_dir=$ac_dir
2839 ac_install_sh="$ac_aux_dir/shtool install -c"
2840 break
2841 fi
2842 done
2843 if test -z "$ac_aux_dir"; then
2844 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2845 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2846 { (exit 1); exit 1; }; }
2847 fi
2848 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2849 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2850 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2851
2852 # Make sure we can run config.sub.
2853 $ac_config_sub sun4 >/dev/null 2>&1 ||
2854 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2855 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2856 { (exit 1); exit 1; }; }
2857
2858 echo "$as_me:$LINENO: checking build system type" >&5
2859 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2860 if test "${ac_cv_build+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 ac_cv_build_alias=$build_alias
2864 test -z "$ac_cv_build_alias" &&
2865 ac_cv_build_alias=`$ac_config_guess`
2866 test -z "$ac_cv_build_alias" &&
2867 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2868 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2869 { (exit 1); exit 1; }; }
2870 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2871 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2872 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2873 { (exit 1); exit 1; }; }
2874
2875 fi
2876 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2877 echo "${ECHO_T}$ac_cv_build" >&6
2878 build=$ac_cv_build
2879 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2880 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2881 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2882
2883
2884 echo "$as_me:$LINENO: checking host system type" >&5
2885 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2886 if test "${ac_cv_host+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889 ac_cv_host_alias=$host_alias
2890 test -z "$ac_cv_host_alias" &&
2891 ac_cv_host_alias=$ac_cv_build_alias
2892 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2893 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2894 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2895 { (exit 1); exit 1; }; }
2896
2897 fi
2898 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2899 echo "${ECHO_T}$ac_cv_host" >&6
2900 host=$ac_cv_host
2901 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2902 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2903 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2904
2905
2906 echo "$as_me:$LINENO: checking target system type" >&5
2907 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2908 if test "${ac_cv_target+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 ac_cv_target_alias=$target_alias
2912 test "x$ac_cv_target_alias" = "x" &&
2913 ac_cv_target_alias=$ac_cv_host_alias
2914 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2915 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2916 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2917 { (exit 1); exit 1; }; }
2918
2919 fi
2920 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2921 echo "${ECHO_T}$ac_cv_target" >&6
2922 target=$ac_cv_target
2923 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2924 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2925 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2926
2927
2928 # The aliases save the names the user supplied, while $host etc.
2929 # will get canonicalized.
2930 test -n "$target_alias" &&
2931 test "$program_prefix$program_suffix$program_transform_name" = \
2932 NONENONEs,x,x, &&
2933 program_prefix=${target_alias}-
2934
2935
2936 CONFIG_OBS=
2937 CONFIG_DEPS=
2938 CONFIG_SRCS=
2939 ENABLE_CFLAGS=
2940
2941 CONFIG_ALL=
2942 CONFIG_CLEAN=
2943 CONFIG_INSTALL=
2944 CONFIG_UNINSTALL=
2945
2946 # If we haven't got the data from the intl directory,
2947 # assume NLS is disabled.
2948 USE_NLS=no
2949 LIBINTL=
2950 LIBINTL_DEP=
2951 INCINTL=
2952 XGETTEXT=
2953 GMSGFMT=
2954 POSUB=
2955
2956 if test -f ../intl/config.intl; then
2957 . ../intl/config.intl
2958 fi
2959 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2960 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2961 if test x"$USE_NLS" != xyes; then
2962 echo "$as_me:$LINENO: result: no" >&5
2963 echo "${ECHO_T}no" >&6
2964 else
2965 echo "$as_me:$LINENO: result: yes" >&5
2966 echo "${ECHO_T}yes" >&6
2967
2968 cat >>confdefs.h <<\_ACEOF
2969 #define ENABLE_NLS 1
2970 _ACEOF
2971
2972
2973 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2974 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2975 # Look for .po and .gmo files in the source directory.
2976 CATALOGS=
2977 XLINGUAS=
2978 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2979 # If there aren't any .gmo files the shell will give us the
2980 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2981 # weeded out.
2982 case "$cat" in *\**)
2983 continue;;
2984 esac
2985 # The quadruple backslash is collapsed to a double backslash
2986 # by the backticks, then collapsed again by the double quotes,
2987 # leaving us with one backslash in the sed expression (right
2988 # before the dot that mustn't act as a wildcard).
2989 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2990 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2991 # The user is allowed to set LINGUAS to a list of languages to
2992 # install catalogs for. If it's empty that means "all of them."
2993 if test "x$LINGUAS" = x; then
2994 CATALOGS="$CATALOGS $cat"
2995 XLINGUAS="$XLINGUAS $lang"
2996 else
2997 case "$LINGUAS" in *$lang*)
2998 CATALOGS="$CATALOGS $cat"
2999 XLINGUAS="$XLINGUAS $lang"
3000 ;;
3001 esac
3002 fi
3003 done
3004 LINGUAS="$XLINGUAS"
3005 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3006 echo "${ECHO_T}$LINGUAS" >&6
3007
3008
3009 DATADIRNAME=share
3010
3011 INSTOBJEXT=.mo
3012
3013 GENCAT=gencat
3014
3015 CATOBJEXT=.gmo
3016
3017 fi
3018
3019 localedir='${datadir}/locale'
3020
3021
3022 if test x"$USE_NLS" = xyes; then
3023 CONFIG_ALL="$CONFIG_ALL all-po"
3024 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3025 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3026 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3027 fi
3028
3029 PACKAGE=gdb
3030
3031 cat >>confdefs.h <<_ACEOF
3032 #define PACKAGE "$PACKAGE"
3033 _ACEOF
3034
3035
3036
3037 debugdir=${libdir}/debug
3038
3039
3040 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
3041 if test "${with_separate_debug_dir+set}" = set; then
3042 withval="$with_separate_debug_dir"
3043 debugdir="${withval}"
3044 fi;
3045
3046
3047 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3049 ac_define_dir=`eval echo $debugdir`
3050 ac_define_dir=`eval echo $ac_define_dir`
3051
3052 cat >>confdefs.h <<_ACEOF
3053 #define DEBUGDIR "$ac_define_dir"
3054 _ACEOF
3055
3056
3057 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3058
3059 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3060 if test "x$prefix" = xNONE; then
3061 test_prefix=/usr/local
3062 else
3063 test_prefix=$prefix
3064 fi
3065 else
3066 test_prefix=$exec_prefix
3067 fi
3068 case ${debugdir} in
3069 "${test_prefix}"|"${test_prefix}/"*|\
3070 '${exec_prefix}'|'${exec_prefix}/'*)
3071
3072 cat >>confdefs.h <<\_ACEOF
3073 #define DEBUGDIR_RELOCATABLE 1
3074 _ACEOF
3075
3076 ;;
3077 esac
3078
3079
3080
3081 subdirs="$subdirs doc testsuite"
3082
3083
3084 # Check whether to support alternative target configurations
3085 # Check whether --enable-targets or --disable-targets was given.
3086 if test "${enable_targets+set}" = set; then
3087 enableval="$enable_targets"
3088 case "${enableval}" in
3089 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3090 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3091 { (exit 1); exit 1; }; }
3092 ;;
3093 no) enable_targets= ;;
3094 *) enable_targets=$enableval ;;
3095 esac
3096 fi;
3097
3098 # Provide defaults for some variables set by the per-host and per-target
3099 # configuration.
3100 gdb_host_obs=posix-hdep.o
3101
3102 if test "${target}" = "${host}"; then
3103 gdb_native=yes
3104 else
3105 gdb_native=no
3106 fi
3107
3108 . $srcdir/configure.host
3109
3110 # Accumulate some settings from configure.tgt over all enabled targets
3111
3112 TARGET_OBS=
3113 all_targets=
3114
3115 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
3116 do
3117 if test "$targ_alias" = "all"; then
3118 all_targets=true
3119 else
3120 # Canonicalize the secondary target names.
3121 result=`$ac_config_sub $targ_alias 2>/dev/null`
3122 if test -n "$result"; then
3123 targ=$result
3124 else
3125 targ=$targ_alias
3126 fi
3127
3128 . ${srcdir}/configure.tgt
3129
3130 # Target-specific object files
3131 for i in ${gdb_target_obs}; do
3132 case " $TARGET_OBS " in
3133 *" ${i} "*) ;;
3134 *)
3135 TARGET_OBS="$TARGET_OBS ${i}"
3136 ;;
3137 esac
3138 done
3139 fi
3140 done
3141
3142 if test x${all_targets} = xtrue; then
3143 TARGET_OBS='$(ALL_TARGET_OBS)'
3144 fi
3145
3146
3147
3148 # For other settings, only the main target counts.
3149 gdb_sim=
3150 gdb_osabi=
3151 build_gdbserver=
3152 targ=$target; . ${srcdir}/configure.tgt
3153
3154 # Fetch the default architecture and default target vector from BFD.
3155 targ=$target; . $srcdir/../bfd/config.bfd
3156
3157 # We only want the first architecture, so strip off the others if
3158 # there is more than one.
3159 targ_archs=`echo $targ_archs | sed 's/ .*//'`
3160
3161 if test "x$targ_archs" != x; then
3162
3163 cat >>confdefs.h <<_ACEOF
3164 #define DEFAULT_BFD_ARCH $targ_archs
3165 _ACEOF
3166
3167 fi
3168 if test "x$targ_defvec" != x; then
3169
3170 cat >>confdefs.h <<_ACEOF
3171 #define DEFAULT_BFD_VEC $targ_defvec
3172 _ACEOF
3173
3174 fi
3175
3176 test "$program_prefix" != NONE &&
3177 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3178 # Use a double $ so make ignores it.
3179 test "$program_suffix" != NONE &&
3180 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3181 # Double any \ or $. echo might interpret backslashes.
3182 # By default was `s,x,x', remove it if useless.
3183 cat <<\_ACEOF >conftest.sed
3184 s/[\\$]/&&/g;s/;s,x,x,$//
3185 _ACEOF
3186 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3187 rm conftest.sed
3188
3189
3190 # The CLI cannot be disabled yet, but may be in the future.
3191
3192 # Enable CLI.
3193 # Check whether --enable-gdbcli or --disable-gdbcli was given.
3194 if test "${enable_gdbcli+set}" = set; then
3195 enableval="$enable_gdbcli"
3196 case $enableval in
3197 yes)
3198 ;;
3199 no)
3200 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3201 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3202 { (exit 1); exit 1; }; } ;;
3203 *)
3204 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3205 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3206 { (exit 1); exit 1; }; } ;;
3207 esac
3208 else
3209 enable_gdbcli=yes
3210 fi;
3211 if test x"$enable_gdbcli" = xyes; then
3212 if test -d $srcdir/cli; then
3213 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3214 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3215 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3216 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3217 fi
3218 fi
3219
3220 # Enable MI.
3221 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3222 if test "${enable_gdbmi+set}" = set; then
3223 enableval="$enable_gdbmi"
3224 case $enableval in
3225 yes | no)
3226 ;;
3227 *)
3228 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3229 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3230 { (exit 1); exit 1; }; } ;;
3231 esac
3232 else
3233 enable_gdbmi=yes
3234 fi;
3235 if test x"$enable_gdbmi" = xyes; then
3236 if test -d $srcdir/mi; then
3237 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3238 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3239 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3240 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3241 fi
3242 fi
3243
3244 # Enable TUI.
3245 # Check whether --enable-tui or --disable-tui was given.
3246 if test "${enable_tui+set}" = set; then
3247 enableval="$enable_tui"
3248 case $enableval in
3249 yes | no)
3250 ;;
3251 *)
3252 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3253 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3254 { (exit 1); exit 1; }; } ;;
3255 esac
3256 else
3257 enable_tui=yes
3258 fi;
3259
3260 # Enable gdbtk.
3261 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3262 if test "${enable_gdbtk+set}" = set; then
3263 enableval="$enable_gdbtk"
3264 case $enableval in
3265 yes | no)
3266 ;;
3267 *)
3268 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3269 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3270 { (exit 1); exit 1; }; } ;;
3271 esac
3272 else
3273 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
3274 enable_gdbtk=yes
3275 else
3276 enable_gdbtk=no
3277 fi
3278 fi;
3279 # We unconditionally disable gdbtk tests on selected platforms.
3280 case $host_os in
3281 go32* | windows*)
3282 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3283 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3284 enable_gdbtk=no ;;
3285 esac
3286
3287 # Libunwind support.
3288 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3289 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3290 if test "${ac_cv_header_stdc+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293 cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h. */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299 #include <stdlib.h>
3300 #include <stdarg.h>
3301 #include <string.h>
3302 #include <float.h>
3303
3304 int
3305 main ()
3306 {
3307
3308 ;
3309 return 0;
3310 }
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_header_stdc=yes
3335 else
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 ac_cv_header_stdc=no
3340 fi
3341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3342
3343 if test $ac_cv_header_stdc = yes; then
3344 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3345 cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h. */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3351 #include <string.h>
3352
3353 _ACEOF
3354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3355 $EGREP "memchr" >/dev/null 2>&1; then
3356 :
3357 else
3358 ac_cv_header_stdc=no
3359 fi
3360 rm -f conftest*
3361
3362 fi
3363
3364 if test $ac_cv_header_stdc = yes; then
3365 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #include <stdlib.h>
3373
3374 _ACEOF
3375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3376 $EGREP "free" >/dev/null 2>&1; then
3377 :
3378 else
3379 ac_cv_header_stdc=no
3380 fi
3381 rm -f conftest*
3382
3383 fi
3384
3385 if test $ac_cv_header_stdc = yes; then
3386 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3387 if test "$cross_compiling" = yes; then
3388 :
3389 else
3390 cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h. */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ctype.h>
3397 #if ((' ' & 0x0FF) == 0x020)
3398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3400 #else
3401 # define ISLOWER(c) \
3402 (('a' <= (c) && (c) <= 'i') \
3403 || ('j' <= (c) && (c) <= 'r') \
3404 || ('s' <= (c) && (c) <= 'z'))
3405 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3406 #endif
3407
3408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3409 int
3410 main ()
3411 {
3412 int i;
3413 for (i = 0; i < 256; i++)
3414 if (XOR (islower (i), ISLOWER (i))
3415 || toupper (i) != TOUPPER (i))
3416 exit(2);
3417 exit (0);
3418 }
3419 _ACEOF
3420 rm -f conftest$ac_exeext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3422 (eval $ac_link) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 :
3432 else
3433 echo "$as_me: program exited with status $ac_status" >&5
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437 ( exit $ac_status )
3438 ac_cv_header_stdc=no
3439 fi
3440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3441 fi
3442 fi
3443 fi
3444 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3445 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3446 if test $ac_cv_header_stdc = yes; then
3447
3448 cat >>confdefs.h <<\_ACEOF
3449 #define STDC_HEADERS 1
3450 _ACEOF
3451
3452 fi
3453
3454 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3465 inttypes.h stdint.h unistd.h
3466 do
3467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3468 echo "$as_me:$LINENO: checking for $ac_header" >&5
3469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h. */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 $ac_includes_default
3480
3481 #include <$ac_header>
3482 _ACEOF
3483 rm -f conftest.$ac_objext
3484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485 (eval $ac_compile) 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } &&
3492 { ac_try='test -z "$ac_c_werror_flag"
3493 || test ! -s conftest.err'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 (eval $ac_try) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; } &&
3499 { ac_try='test -s conftest.$ac_objext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 eval "$as_ac_Header=yes"
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 eval "$as_ac_Header=no"
3511 fi
3512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513 fi
3514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3517 cat >>confdefs.h <<_ACEOF
3518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3519 _ACEOF
3520
3521 fi
3522
3523 done
3524
3525
3526
3527 # Check whether --with-libunwind or --without-libunwind was given.
3528 if test "${with_libunwind+set}" = set; then
3529 withval="$with_libunwind"
3530 case "${withval}" in
3531 yes) enable_libunwind=yes ;;
3532 no) enable_libunwind=no ;;
3533 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3534 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3535 { (exit 1); exit 1; }; } ;;
3536 esac
3537 else
3538
3539
3540 for ac_header in libunwind.h
3541 do
3542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3544 echo "$as_me:$LINENO: checking for $ac_header" >&5
3545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 fi
3549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3551 else
3552 # Is the header compilable?
3553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 $ac_includes_default
3562 #include <$ac_header>
3563 _ACEOF
3564 rm -f conftest.$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_c_werror_flag"
3574 || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_header_compiler=yes
3587 else
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 ac_header_compiler=no
3592 fi
3593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3595 echo "${ECHO_T}$ac_header_compiler" >&6
3596
3597 # Is the header present?
3598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <$ac_header>
3607 _ACEOF
3608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } >/dev/null; then
3616 if test -s conftest.err; then
3617 ac_cpp_err=$ac_c_preproc_warn_flag
3618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3619 else
3620 ac_cpp_err=
3621 fi
3622 else
3623 ac_cpp_err=yes
3624 fi
3625 if test -z "$ac_cpp_err"; then
3626 ac_header_preproc=yes
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 ac_header_preproc=no
3632 fi
3633 rm -f conftest.err conftest.$ac_ext
3634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3635 echo "${ECHO_T}$ac_header_preproc" >&6
3636
3637 # So? What about this header?
3638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3639 yes:no: )
3640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3644 ac_header_preproc=yes
3645 ;;
3646 no:yes:* )
3647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3659 (
3660 cat <<\_ASBOX
3661 ## ------------------------------------------ ##
3662 ## Report this to the AC_PACKAGE_NAME lists. ##
3663 ## ------------------------------------------ ##
3664 _ASBOX
3665 ) |
3666 sed "s/^/$as_me: WARNING: /" >&2
3667 ;;
3668 esac
3669 echo "$as_me:$LINENO: checking for $ac_header" >&5
3670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674 eval "$as_ac_Header=\$ac_header_preproc"
3675 fi
3676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3678
3679 fi
3680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3681 cat >>confdefs.h <<_ACEOF
3682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3683 _ACEOF
3684
3685 fi
3686
3687 done
3688
3689
3690 for ac_header in libunwind-ia64.h
3691 do
3692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3694 echo "$as_me:$LINENO: checking for $ac_header" >&5
3695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 fi
3699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3701 else
3702 # Is the header compilable?
3703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3705 cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h. */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3711 $ac_includes_default
3712 #include <$ac_header>
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -z "$ac_c_werror_flag"
3724 || test ! -s conftest.err'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; } &&
3730 { ac_try='test -s conftest.$ac_objext'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3736 ac_header_compiler=yes
3737 else
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 ac_header_compiler=no
3742 fi
3743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3745 echo "${ECHO_T}$ac_header_compiler" >&6
3746
3747 # Is the header present?
3748 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3750 cat >conftest.$ac_ext <<_ACEOF
3751 /* confdefs.h. */
3752 _ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3756 #include <$ac_header>
3757 _ACEOF
3758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3760 ac_status=$?
3761 grep -v '^ *+' conftest.er1 >conftest.err
3762 rm -f conftest.er1
3763 cat conftest.err >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } >/dev/null; then
3766 if test -s conftest.err; then
3767 ac_cpp_err=$ac_c_preproc_warn_flag
3768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3769 else
3770 ac_cpp_err=
3771 fi
3772 else
3773 ac_cpp_err=yes
3774 fi
3775 if test -z "$ac_cpp_err"; then
3776 ac_header_preproc=yes
3777 else
3778 echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3780
3781 ac_header_preproc=no
3782 fi
3783 rm -f conftest.err conftest.$ac_ext
3784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3785 echo "${ECHO_T}$ac_header_preproc" >&6
3786
3787 # So? What about this header?
3788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3789 yes:no: )
3790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3794 ac_header_preproc=yes
3795 ;;
3796 no:yes:* )
3797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3809 (
3810 cat <<\_ASBOX
3811 ## ------------------------------------------ ##
3812 ## Report this to the AC_PACKAGE_NAME lists. ##
3813 ## ------------------------------------------ ##
3814 _ASBOX
3815 ) |
3816 sed "s/^/$as_me: WARNING: /" >&2
3817 ;;
3818 esac
3819 echo "$as_me:$LINENO: checking for $ac_header" >&5
3820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 eval "$as_ac_Header=\$ac_header_preproc"
3825 fi
3826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3828
3829 fi
3830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3831 cat >>confdefs.h <<_ACEOF
3832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3833 _ACEOF
3834
3835 fi
3836
3837 done
3838
3839 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3840 enable_libunwind=yes;
3841 fi
3842
3843 fi;
3844
3845 if test x"$enable_libunwind" = xyes; then
3846
3847 for ac_header in libunwind.h
3848 do
3849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3851 echo "$as_me:$LINENO: checking for $ac_header" >&5
3852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 fi
3856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3858 else
3859 # Is the header compilable?
3860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 $ac_includes_default
3869 #include <$ac_header>
3870 _ACEOF
3871 rm -f conftest.$ac_objext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -z "$ac_c_werror_flag"
3881 || test ! -s conftest.err'
3882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883 (eval $ac_try) 2>&5
3884 ac_status=$?
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; } &&
3887 { ac_try='test -s conftest.$ac_objext'
3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 (eval $ac_try) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3893 ac_header_compiler=yes
3894 else
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898 ac_header_compiler=no
3899 fi
3900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3902 echo "${ECHO_T}$ac_header_compiler" >&6
3903
3904 # Is the header present?
3905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3907 cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 #include <$ac_header>
3914 _ACEOF
3915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null; then
3923 if test -s conftest.err; then
3924 ac_cpp_err=$ac_c_preproc_warn_flag
3925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3926 else
3927 ac_cpp_err=
3928 fi
3929 else
3930 ac_cpp_err=yes
3931 fi
3932 if test -z "$ac_cpp_err"; then
3933 ac_header_preproc=yes
3934 else
3935 echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3937
3938 ac_header_preproc=no
3939 fi
3940 rm -f conftest.err conftest.$ac_ext
3941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3942 echo "${ECHO_T}$ac_header_preproc" >&6
3943
3944 # So? What about this header?
3945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3946 yes:no: )
3947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3951 ac_header_preproc=yes
3952 ;;
3953 no:yes:* )
3954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3966 (
3967 cat <<\_ASBOX
3968 ## ------------------------------------------ ##
3969 ## Report this to the AC_PACKAGE_NAME lists. ##
3970 ## ------------------------------------------ ##
3971 _ASBOX
3972 ) |
3973 sed "s/^/$as_me: WARNING: /" >&2
3974 ;;
3975 esac
3976 echo "$as_me:$LINENO: checking for $ac_header" >&5
3977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981 eval "$as_ac_Header=\$ac_header_preproc"
3982 fi
3983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3985
3986 fi
3987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3988 cat >>confdefs.h <<_ACEOF
3989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3990 _ACEOF
3991
3992 fi
3993
3994 done
3995
3996
3997 for ac_header in libunwind-ia64.h
3998 do
3999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4001 echo "$as_me:$LINENO: checking for $ac_header" >&5
4002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 fi
4006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4008 else
4009 # Is the header compilable?
4010 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4012 cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h. */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 $ac_includes_default
4019 #include <$ac_header>
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_c_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 ac_header_compiler=yes
4044 else
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4047
4048 ac_header_compiler=no
4049 fi
4050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4052 echo "${ECHO_T}$ac_header_compiler" >&6
4053
4054 # Is the header present?
4055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 #include <$ac_header>
4064 _ACEOF
4065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } >/dev/null; then
4073 if test -s conftest.err; then
4074 ac_cpp_err=$ac_c_preproc_warn_flag
4075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4076 else
4077 ac_cpp_err=
4078 fi
4079 else
4080 ac_cpp_err=yes
4081 fi
4082 if test -z "$ac_cpp_err"; then
4083 ac_header_preproc=yes
4084 else
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4087
4088 ac_header_preproc=no
4089 fi
4090 rm -f conftest.err conftest.$ac_ext
4091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4092 echo "${ECHO_T}$ac_header_preproc" >&6
4093
4094 # So? What about this header?
4095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4096 yes:no: )
4097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4101 ac_header_preproc=yes
4102 ;;
4103 no:yes:* )
4104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4116 (
4117 cat <<\_ASBOX
4118 ## ------------------------------------------ ##
4119 ## Report this to the AC_PACKAGE_NAME lists. ##
4120 ## ------------------------------------------ ##
4121 _ASBOX
4122 ) |
4123 sed "s/^/$as_me: WARNING: /" >&2
4124 ;;
4125 esac
4126 echo "$as_me:$LINENO: checking for $ac_header" >&5
4127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131 eval "$as_ac_Header=\$ac_header_preproc"
4132 fi
4133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4135
4136 fi
4137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4138 cat >>confdefs.h <<_ACEOF
4139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4140 _ACEOF
4141
4142 fi
4143
4144 done
4145
4146
4147 cat >>confdefs.h <<\_ACEOF
4148 #define HAVE_LIBUNWIND 1
4149 _ACEOF
4150
4151 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4152 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4153 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4154 fi
4155
4156 # Profiling support.
4157 # Check whether --enable-profiling or --disable-profiling was given.
4158 if test "${enable_profiling+set}" = set; then
4159 enableval="$enable_profiling"
4160 case $enableval in
4161 yes | no)
4162 ;;
4163 *)
4164 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4165 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4166 { (exit 1); exit 1; }; } ;;
4167 esac
4168 else
4169 enable_profiling=no
4170 fi;
4171
4172
4173
4174 for ac_func in monstartup _mcleanup
4175 do
4176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4177 echo "$as_me:$LINENO: checking for $ac_func" >&5
4178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4179 if eval "test \"\${$as_ac_var+set}\" = set"; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h. */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4190 #define $ac_func innocuous_$ac_func
4191
4192 /* System header to define __stub macros and hopefully few prototypes,
4193 which can conflict with char $ac_func (); below.
4194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 <limits.h> exists even on freestanding compilers. */
4196
4197 #ifdef __STDC__
4198 # include <limits.h>
4199 #else
4200 # include <assert.h>
4201 #endif
4202
4203 #undef $ac_func
4204
4205 /* Override any gcc2 internal prototype to avoid an error. */
4206 #ifdef __cplusplus
4207 extern "C"
4208 {
4209 #endif
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212 char $ac_func ();
4213 /* The GNU C library defines this for functions which it implements
4214 to always fail with ENOSYS. Some functions are actually named
4215 something starting with __ and the normal name is an alias. */
4216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4217 choke me
4218 #else
4219 char (*f) () = $ac_func;
4220 #endif
4221 #ifdef __cplusplus
4222 }
4223 #endif
4224
4225 int
4226 main ()
4227 {
4228 return f != $ac_func;
4229 ;
4230 return 0;
4231 }
4232 _ACEOF
4233 rm -f conftest.$ac_objext conftest$ac_exeext
4234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4235 (eval $ac_link) 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try='test -z "$ac_c_werror_flag"
4243 || test ! -s conftest.err'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 (eval $ac_try) 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try='test -s conftest$ac_exeext'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 (eval $ac_try) 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 eval "$as_ac_var=yes"
4256 else
4257 echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4259
4260 eval "$as_ac_var=no"
4261 fi
4262 rm -f conftest.err conftest.$ac_objext \
4263 conftest$ac_exeext conftest.$ac_ext
4264 fi
4265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4267 if test `eval echo '${'$as_ac_var'}'` = yes; then
4268 cat >>confdefs.h <<_ACEOF
4269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4270 _ACEOF
4271
4272 fi
4273 done
4274
4275 echo "$as_me:$LINENO: checking for _etext" >&5
4276 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
4277 if test "${ac_cv_var__etext+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h. */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 #include <stdlib.h>
4287 extern char _etext;
4288
4289 int
4290 main ()
4291 {
4292 free (&_etext);
4293 ;
4294 return 0;
4295 }
4296 _ACEOF
4297 rm -f conftest.$ac_objext conftest$ac_exeext
4298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4299 (eval $ac_link) 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_c_werror_flag"
4307 || test ! -s conftest.err'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 (eval $ac_try) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest$ac_exeext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_cv_var__etext=yes
4320 else
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 ac_cv_var__etext=no
4325 fi
4326 rm -f conftest.err conftest.$ac_objext \
4327 conftest$ac_exeext conftest.$ac_ext
4328 fi
4329 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4330 echo "${ECHO_T}$ac_cv_var__etext" >&6
4331 if test $ac_cv_var__etext = yes; then
4332
4333 cat >>confdefs.h <<\_ACEOF
4334 #define HAVE__ETEXT 1
4335 _ACEOF
4336
4337 fi
4338 echo "$as_me:$LINENO: checking for etext" >&5
4339 echo $ECHO_N "checking for etext... $ECHO_C" >&6
4340 if test "${ac_cv_var_etext+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343 cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h. */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 #include <stdlib.h>
4350 extern char etext;
4351
4352 int
4353 main ()
4354 {
4355 free (&etext);
4356 ;
4357 return 0;
4358 }
4359 _ACEOF
4360 rm -f conftest.$ac_objext conftest$ac_exeext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4362 (eval $ac_link) 2>conftest.er1
4363 ac_status=$?
4364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try='test -s conftest$ac_exeext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_var_etext=yes
4383 else
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4386
4387 ac_cv_var_etext=no
4388 fi
4389 rm -f conftest.err conftest.$ac_objext \
4390 conftest$ac_exeext conftest.$ac_ext
4391 fi
4392 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
4393 echo "${ECHO_T}$ac_cv_var_etext" >&6
4394 if test $ac_cv_var_etext = yes; then
4395
4396 cat >>confdefs.h <<\_ACEOF
4397 #define HAVE_ETEXT 1
4398 _ACEOF
4399
4400 fi
4401 if test "$enable_profiling" = yes ; then
4402 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4403 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4404 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4405 { (exit 1); exit 1; }; }
4406 fi
4407 PROFILE_CFLAGS=-pg
4408 OLD_CFLAGS="$CFLAGS"
4409 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4410
4411 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4412 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
4413 if test "${ac_cv_cc_supports_pg+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416 cat >conftest.$ac_ext <<_ACEOF
4417 /* confdefs.h. */
4418 _ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4422
4423 int
4424 main ()
4425 {
4426 int x;
4427 ;
4428 return 0;
4429 }
4430 _ACEOF
4431 rm -f conftest.$ac_objext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 ac_cv_cc_supports_pg=yes
4454 else
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4457
4458 ac_cv_cc_supports_pg=no
4459 fi
4460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4461 fi
4462 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4463 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
4464
4465 if test $ac_cv_cc_supports_pg = no; then
4466 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4467 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4468 { (exit 1); exit 1; }; }
4469 fi
4470
4471 CFLAGS="$OLD_CFLAGS"
4472 fi
4473
4474 # --------------------- #
4475 # Checks for programs. #
4476 # --------------------- #
4477
4478 for ac_prog in gawk mawk nawk awk
4479 do
4480 # Extract the first word of "$ac_prog", so it can be a program name with args.
4481 set dummy $ac_prog; ac_word=$2
4482 echo "$as_me:$LINENO: checking for $ac_word" >&5
4483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4484 if test "${ac_cv_prog_AWK+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487 if test -n "$AWK"; then
4488 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4492 do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497 ac_cv_prog_AWK="$ac_prog"
4498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4500 fi
4501 done
4502 done
4503
4504 fi
4505 fi
4506 AWK=$ac_cv_prog_AWK
4507 if test -n "$AWK"; then
4508 echo "$as_me:$LINENO: result: $AWK" >&5
4509 echo "${ECHO_T}$AWK" >&6
4510 else
4511 echo "$as_me:$LINENO: result: no" >&5
4512 echo "${ECHO_T}no" >&6
4513 fi
4514
4515 test -n "$AWK" && break
4516 done
4517
4518 # Find a good install program. We prefer a C program (faster),
4519 # so one script is as good as another. But avoid the broken or
4520 # incompatible versions:
4521 # SysV /etc/install, /usr/sbin/install
4522 # SunOS /usr/etc/install
4523 # IRIX /sbin/install
4524 # AIX /bin/install
4525 # AmigaOS /C/install, which installs bootblocks on floppy discs
4526 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4527 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4528 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4529 # OS/2's system install, which has a completely different semantic
4530 # ./install, which can be erroneously created by make from ./install.sh.
4531 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4532 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4533 if test -z "$INSTALL"; then
4534 if test "${ac_cv_path_install+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 # Account for people who put trailing slashes in PATH elements.
4543 case $as_dir/ in
4544 ./ | .// | /cC/* | \
4545 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4546 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4547 /usr/ucb/* ) ;;
4548 *)
4549 # OSF1 and SCO ODT 3.0 have their own names for install.
4550 # Don't use installbsd from OSF since it installs stuff as root
4551 # by default.
4552 for ac_prog in ginstall scoinst install; do
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4555 if test $ac_prog = install &&
4556 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4557 # AIX install. It has an incompatible calling convention.
4558 :
4559 elif test $ac_prog = install &&
4560 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4561 # program-specific install script used by HP pwplus--don't use.
4562 :
4563 else
4564 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4565 break 3
4566 fi
4567 fi
4568 done
4569 done
4570 ;;
4571 esac
4572 done
4573
4574
4575 fi
4576 if test "${ac_cv_path_install+set}" = set; then
4577 INSTALL=$ac_cv_path_install
4578 else
4579 # As a last resort, use the slow shell script. We don't cache a
4580 # path for INSTALL within a source directory, because that will
4581 # break other packages using the cache if that directory is
4582 # removed, or if the path is relative.
4583 INSTALL=$ac_install_sh
4584 fi
4585 fi
4586 echo "$as_me:$LINENO: result: $INSTALL" >&5
4587 echo "${ECHO_T}$INSTALL" >&6
4588
4589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4590 # It thinks the first close brace ends the variable substitution.
4591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4592
4593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4594
4595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4596
4597 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4598 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4599 LN_S=$as_ln_s
4600 if test "$LN_S" = "ln -s"; then
4601 echo "$as_me:$LINENO: result: yes" >&5
4602 echo "${ECHO_T}yes" >&6
4603 else
4604 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4605 echo "${ECHO_T}no, using $LN_S" >&6
4606 fi
4607
4608 if test -n "$ac_tool_prefix"; then
4609 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4610 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4611 echo "$as_me:$LINENO: checking for $ac_word" >&5
4612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4613 if test "${ac_cv_prog_RANLIB+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616 if test -n "$RANLIB"; then
4617 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4629 fi
4630 done
4631 done
4632
4633 fi
4634 fi
4635 RANLIB=$ac_cv_prog_RANLIB
4636 if test -n "$RANLIB"; then
4637 echo "$as_me:$LINENO: result: $RANLIB" >&5
4638 echo "${ECHO_T}$RANLIB" >&6
4639 else
4640 echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6
4642 fi
4643
4644 fi
4645 if test -z "$ac_cv_prog_RANLIB"; then
4646 ac_ct_RANLIB=$RANLIB
4647 # Extract the first word of "ranlib", so it can be a program name with args.
4648 set dummy ranlib; ac_word=$2
4649 echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4651 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654 if test -n "$ac_ct_RANLIB"; then
4655 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_ac_ct_RANLIB="ranlib"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668 done
4669 done
4670
4671 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4672 fi
4673 fi
4674 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4675 if test -n "$ac_ct_RANLIB"; then
4676 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4677 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4678 else
4679 echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6
4681 fi
4682
4683 RANLIB=$ac_ct_RANLIB
4684 else
4685 RANLIB="$ac_cv_prog_RANLIB"
4686 fi
4687
4688 for ac_prog in 'bison -y' byacc
4689 do
4690 # Extract the first word of "$ac_prog", so it can be a program name with args.
4691 set dummy $ac_prog; ac_word=$2
4692 echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4694 if test "${ac_cv_prog_YACC+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 if test -n "$YACC"; then
4698 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_YACC="$ac_prog"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711 done
4712 done
4713
4714 fi
4715 fi
4716 YACC=$ac_cv_prog_YACC
4717 if test -n "$YACC"; then
4718 echo "$as_me:$LINENO: result: $YACC" >&5
4719 echo "${ECHO_T}$YACC" >&6
4720 else
4721 echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6
4723 fi
4724
4725 test -n "$YACC" && break
4726 done
4727 test -n "$YACC" || YACC="yacc"
4728
4729
4730 if test -n "$ac_tool_prefix"; then
4731 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4732 set dummy ${ac_tool_prefix}ar; ac_word=$2
4733 echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4735 if test "${ac_cv_prog_AR+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 if test -n "$AR"; then
4739 ac_cv_prog_AR="$AR" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_prog_AR="${ac_tool_prefix}ar"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4751 fi
4752 done
4753 done
4754
4755 fi
4756 fi
4757 AR=$ac_cv_prog_AR
4758 if test -n "$AR"; then
4759 echo "$as_me:$LINENO: result: $AR" >&5
4760 echo "${ECHO_T}$AR" >&6
4761 else
4762 echo "$as_me:$LINENO: result: no" >&5
4763 echo "${ECHO_T}no" >&6
4764 fi
4765
4766 fi
4767 if test -z "$ac_cv_prog_AR"; then
4768 ac_ct_AR=$AR
4769 # Extract the first word of "ar", so it can be a program name with args.
4770 set dummy ar; ac_word=$2
4771 echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776 if test -n "$ac_ct_AR"; then
4777 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786 ac_cv_prog_ac_ct_AR="ar"
4787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4789 fi
4790 done
4791 done
4792
4793 fi
4794 fi
4795 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4796 if test -n "$ac_ct_AR"; then
4797 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4798 echo "${ECHO_T}$ac_ct_AR" >&6
4799 else
4800 echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6
4802 fi
4803
4804 AR=$ac_ct_AR
4805 else
4806 AR="$ac_cv_prog_AR"
4807 fi
4808
4809 if test -n "$ac_tool_prefix"; then
4810 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4811 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4812 echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4814 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817 if test -n "$DLLTOOL"; then
4818 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831 done
4832 done
4833
4834 fi
4835 fi
4836 DLLTOOL=$ac_cv_prog_DLLTOOL
4837 if test -n "$DLLTOOL"; then
4838 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4839 echo "${ECHO_T}$DLLTOOL" >&6
4840 else
4841 echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6
4843 fi
4844
4845 fi
4846 if test -z "$ac_cv_prog_DLLTOOL"; then
4847 ac_ct_DLLTOOL=$DLLTOOL
4848 # Extract the first word of "dlltool", so it can be a program name with args.
4849 set dummy dlltool; ac_word=$2
4850 echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4852 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855 if test -n "$ac_ct_DLLTOOL"; then
4856 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869 done
4870 done
4871
4872 fi
4873 fi
4874 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4875 if test -n "$ac_ct_DLLTOOL"; then
4876 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4877 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4878 else
4879 echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6
4881 fi
4882
4883 DLLTOOL=$ac_ct_DLLTOOL
4884 else
4885 DLLTOOL="$ac_cv_prog_DLLTOOL"
4886 fi
4887
4888 if test -n "$ac_tool_prefix"; then
4889 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4890 set dummy ${ac_tool_prefix}windres; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_prog_WINDRES+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896 if test -n "$WINDRES"; then
4897 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910 done
4911 done
4912
4913 fi
4914 fi
4915 WINDRES=$ac_cv_prog_WINDRES
4916 if test -n "$WINDRES"; then
4917 echo "$as_me:$LINENO: result: $WINDRES" >&5
4918 echo "${ECHO_T}$WINDRES" >&6
4919 else
4920 echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6
4922 fi
4923
4924 fi
4925 if test -z "$ac_cv_prog_WINDRES"; then
4926 ac_ct_WINDRES=$WINDRES
4927 # Extract the first word of "windres", so it can be a program name with args.
4928 set dummy windres; ac_word=$2
4929 echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4931 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 if test -n "$ac_ct_WINDRES"; then
4935 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4939 do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_ac_ct_WINDRES="windres"
4945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4947 fi
4948 done
4949 done
4950
4951 fi
4952 fi
4953 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4954 if test -n "$ac_ct_WINDRES"; then
4955 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4956 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4957 else
4958 echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6
4960 fi
4961
4962 WINDRES=$ac_ct_WINDRES
4963 else
4964 WINDRES="$ac_cv_prog_WINDRES"
4965 fi
4966
4967
4968 # Needed for GNU/Hurd.
4969 if test -n "$ac_tool_prefix"; then
4970 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4971 set dummy ${ac_tool_prefix}mig; ac_word=$2
4972 echo "$as_me:$LINENO: checking for $ac_word" >&5
4973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4974 if test "${ac_cv_prog_MIG+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977 if test -n "$MIG"; then
4978 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4979 else
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4990 fi
4991 done
4992 done
4993
4994 fi
4995 fi
4996 MIG=$ac_cv_prog_MIG
4997 if test -n "$MIG"; then
4998 echo "$as_me:$LINENO: result: $MIG" >&5
4999 echo "${ECHO_T}$MIG" >&6
5000 else
5001 echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6
5003 fi
5004
5005 fi
5006 if test -z "$ac_cv_prog_MIG"; then
5007 ac_ct_MIG=$MIG
5008 # Extract the first word of "mig", so it can be a program name with args.
5009 set dummy mig; ac_word=$2
5010 echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015 if test -n "$ac_ct_MIG"; then
5016 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_ac_ct_MIG="mig"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029 done
5030 done
5031
5032 fi
5033 fi
5034 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
5035 if test -n "$ac_ct_MIG"; then
5036 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
5037 echo "${ECHO_T}$ac_ct_MIG" >&6
5038 else
5039 echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6
5041 fi
5042
5043 MIG=$ac_ct_MIG
5044 else
5045 MIG="$ac_cv_prog_MIG"
5046 fi
5047
5048
5049 # ---------------------- #
5050 # Checks for libraries. #
5051 # ---------------------- #
5052
5053 # We might need to link with -lm; most simulators need it.
5054
5055 echo "$as_me:$LINENO: checking for main in -lm" >&5
5056 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5057 if test "${ac_cv_lib_m_main+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060 ac_check_lib_save_LIBS=$LIBS
5061 LIBS="-lm $LIBS"
5062 cat >conftest.$ac_ext <<_ACEOF
5063 /* confdefs.h. */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5068
5069
5070 int
5071 main ()
5072 {
5073 main ();
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 rm -f conftest.$ac_objext conftest$ac_exeext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5080 (eval $ac_link) 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -z "$ac_c_werror_flag"
5088 || test ! -s conftest.err'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 (eval $ac_try) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; } &&
5094 { ac_try='test -s conftest$ac_exeext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_cv_lib_m_main=yes
5101 else
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 ac_cv_lib_m_main=no
5106 fi
5107 rm -f conftest.err conftest.$ac_objext \
5108 conftest$ac_exeext conftest.$ac_ext
5109 LIBS=$ac_check_lib_save_LIBS
5110 fi
5111 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5112 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5113 if test $ac_cv_lib_m_main = yes; then
5114 cat >>confdefs.h <<_ACEOF
5115 #define HAVE_LIBM 1
5116 _ACEOF
5117
5118 LIBS="-lm $LIBS"
5119
5120 fi
5121
5122
5123 # We need to link with -lw to get `wctype' on Solaris before Solaris
5124 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5125 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5126 # is known to have this problem). Therefore we avoid libw if we can.
5127 echo "$as_me:$LINENO: checking for wctype" >&5
5128 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
5129 if test "${ac_cv_func_wctype+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h. */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5140 #define wctype innocuous_wctype
5141
5142 /* System header to define __stub macros and hopefully few prototypes,
5143 which can conflict with char wctype (); below.
5144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5145 <limits.h> exists even on freestanding compilers. */
5146
5147 #ifdef __STDC__
5148 # include <limits.h>
5149 #else
5150 # include <assert.h>
5151 #endif
5152
5153 #undef wctype
5154
5155 /* Override any gcc2 internal prototype to avoid an error. */
5156 #ifdef __cplusplus
5157 extern "C"
5158 {
5159 #endif
5160 /* We use char because int might match the return type of a gcc2
5161 builtin and then its argument prototype would still apply. */
5162 char wctype ();
5163 /* The GNU C library defines this for functions which it implements
5164 to always fail with ENOSYS. Some functions are actually named
5165 something starting with __ and the normal name is an alias. */
5166 #if defined (__stub_wctype) || defined (__stub___wctype)
5167 choke me
5168 #else
5169 char (*f) () = wctype;
5170 #endif
5171 #ifdef __cplusplus
5172 }
5173 #endif
5174
5175 int
5176 main ()
5177 {
5178 return f != wctype;
5179 ;
5180 return 0;
5181 }
5182 _ACEOF
5183 rm -f conftest.$ac_objext conftest$ac_exeext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185 (eval $ac_link) 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -z "$ac_c_werror_flag"
5193 || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest$ac_exeext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_func_wctype=yes
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 ac_cv_func_wctype=no
5211 fi
5212 rm -f conftest.err conftest.$ac_objext \
5213 conftest$ac_exeext conftest.$ac_ext
5214 fi
5215 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5216 echo "${ECHO_T}$ac_cv_func_wctype" >&6
5217 if test $ac_cv_func_wctype = yes; then
5218 :
5219 else
5220
5221 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5222 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
5223 if test "${ac_cv_lib_w_wctype+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226 ac_check_lib_save_LIBS=$LIBS
5227 LIBS="-lw $LIBS"
5228 cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h. */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5234
5235 /* Override any gcc2 internal prototype to avoid an error. */
5236 #ifdef __cplusplus
5237 extern "C"
5238 #endif
5239 /* We use char because int might match the return type of a gcc2
5240 builtin and then its argument prototype would still apply. */
5241 char wctype ();
5242 int
5243 main ()
5244 {
5245 wctype ();
5246 ;
5247 return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5252 (eval $ac_link) 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } &&
5259 { ac_try='test -z "$ac_c_werror_flag"
5260 || test ! -s conftest.err'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 (eval $ac_try) 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; } &&
5266 { ac_try='test -s conftest$ac_exeext'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 (eval $ac_try) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5272 ac_cv_lib_w_wctype=yes
5273 else
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5276
5277 ac_cv_lib_w_wctype=no
5278 fi
5279 rm -f conftest.err conftest.$ac_objext \
5280 conftest$ac_exeext conftest.$ac_ext
5281 LIBS=$ac_check_lib_save_LIBS
5282 fi
5283 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5284 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
5285 if test $ac_cv_lib_w_wctype = yes; then
5286 cat >>confdefs.h <<_ACEOF
5287 #define HAVE_LIBW 1
5288 _ACEOF
5289
5290 LIBS="-lw $LIBS"
5291
5292 fi
5293
5294 fi
5295
5296
5297 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
5298 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5299 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5300 if test "${ac_cv_search_gethostbyname+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303 ac_func_search_save_LIBS=$LIBS
5304 ac_cv_search_gethostbyname=no
5305 cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h. */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311
5312 /* Override any gcc2 internal prototype to avoid an error. */
5313 #ifdef __cplusplus
5314 extern "C"
5315 #endif
5316 /* We use char because int might match the return type of a gcc2
5317 builtin and then its argument prototype would still apply. */
5318 char gethostbyname ();
5319 int
5320 main ()
5321 {
5322 gethostbyname ();
5323 ;
5324 return 0;
5325 }
5326 _ACEOF
5327 rm -f conftest.$ac_objext conftest$ac_exeext
5328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5329 (eval $ac_link) 2>conftest.er1
5330 ac_status=$?
5331 grep -v '^ *+' conftest.er1 >conftest.err
5332 rm -f conftest.er1
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } &&
5336 { ac_try='test -z "$ac_c_werror_flag"
5337 || test ! -s conftest.err'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; } &&
5343 { ac_try='test -s conftest$ac_exeext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_cv_search_gethostbyname="none required"
5350 else
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 fi
5355 rm -f conftest.err conftest.$ac_objext \
5356 conftest$ac_exeext conftest.$ac_ext
5357 if test "$ac_cv_search_gethostbyname" = no; then
5358 for ac_lib in nsl; do
5359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5360 cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h. */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366
5367 /* Override any gcc2 internal prototype to avoid an error. */
5368 #ifdef __cplusplus
5369 extern "C"
5370 #endif
5371 /* We use char because int might match the return type of a gcc2
5372 builtin and then its argument prototype would still apply. */
5373 char gethostbyname ();
5374 int
5375 main ()
5376 {
5377 gethostbyname ();
5378 ;
5379 return 0;
5380 }
5381 _ACEOF
5382 rm -f conftest.$ac_objext conftest$ac_exeext
5383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5384 (eval $ac_link) 2>conftest.er1
5385 ac_status=$?
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try='test -z "$ac_c_werror_flag"
5392 || test ! -s conftest.err'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 (eval $ac_try) 2>&5
5395 ac_status=$?
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; } &&
5398 { ac_try='test -s conftest$ac_exeext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 ac_cv_search_gethostbyname="-l$ac_lib"
5405 break
5406 else
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5409
5410 fi
5411 rm -f conftest.err conftest.$ac_objext \
5412 conftest$ac_exeext conftest.$ac_ext
5413 done
5414 fi
5415 LIBS=$ac_func_search_save_LIBS
5416 fi
5417 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5418 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5419 if test "$ac_cv_search_gethostbyname" != no; then
5420 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5421
5422 fi
5423
5424
5425 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
5426 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5427 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5428 if test "${ac_cv_search_socketpair+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431 ac_func_search_save_LIBS=$LIBS
5432 ac_cv_search_socketpair=no
5433 cat >conftest.$ac_ext <<_ACEOF
5434 /* confdefs.h. */
5435 _ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5439
5440 /* Override any gcc2 internal prototype to avoid an error. */
5441 #ifdef __cplusplus
5442 extern "C"
5443 #endif
5444 /* We use char because int might match the return type of a gcc2
5445 builtin and then its argument prototype would still apply. */
5446 char socketpair ();
5447 int
5448 main ()
5449 {
5450 socketpair ();
5451 ;
5452 return 0;
5453 }
5454 _ACEOF
5455 rm -f conftest.$ac_objext conftest$ac_exeext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5457 (eval $ac_link) 2>conftest.er1
5458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -z "$ac_c_werror_flag"
5465 || test ! -s conftest.err'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; } &&
5471 { ac_try='test -s conftest$ac_exeext'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 (eval $ac_try) 2>&5
5474 ac_status=$?
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 ac_cv_search_socketpair="none required"
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482 fi
5483 rm -f conftest.err conftest.$ac_objext \
5484 conftest$ac_exeext conftest.$ac_ext
5485 if test "$ac_cv_search_socketpair" = no; then
5486 for ac_lib in socket; do
5487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5488 cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h. */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494
5495 /* Override any gcc2 internal prototype to avoid an error. */
5496 #ifdef __cplusplus
5497 extern "C"
5498 #endif
5499 /* We use char because int might match the return type of a gcc2
5500 builtin and then its argument prototype would still apply. */
5501 char socketpair ();
5502 int
5503 main ()
5504 {
5505 socketpair ();
5506 ;
5507 return 0;
5508 }
5509 _ACEOF
5510 rm -f conftest.$ac_objext conftest$ac_exeext
5511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5512 (eval $ac_link) 2>conftest.er1
5513 ac_status=$?
5514 grep -v '^ *+' conftest.er1 >conftest.err
5515 rm -f conftest.er1
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } &&
5519 { ac_try='test -z "$ac_c_werror_flag"
5520 || test ! -s conftest.err'
5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 (eval $ac_try) 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; } &&
5526 { ac_try='test -s conftest$ac_exeext'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_cv_search_socketpair="-l$ac_lib"
5533 break
5534 else
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5537
5538 fi
5539 rm -f conftest.err conftest.$ac_objext \
5540 conftest$ac_exeext conftest.$ac_ext
5541 done
5542 fi
5543 LIBS=$ac_func_search_save_LIBS
5544 fi
5545 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5546 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5547 if test "$ac_cv_search_socketpair" != no; then
5548 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5549
5550 fi
5551
5552
5553 # For the TUI, we need enhanced curses functionality.
5554 #
5555 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5556 # curses library because the latter might not provide all the
5557 # functionality we need. However, this leads to problems on systems
5558 # where the linker searches /usr/local/lib, but the compiler doesn't
5559 # search /usr/local/include, if ncurses is installed in /usr/local. A
5560 # default installation of ncurses on alpha*-dec-osf* will lead to such
5561 # a situation.
5562 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5563 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
5564 if test "${ac_cv_search_waddstr+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567 ac_func_search_save_LIBS=$LIBS
5568 ac_cv_search_waddstr=no
5569 cat >conftest.$ac_ext <<_ACEOF
5570 /* confdefs.h. */
5571 _ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575
5576 /* Override any gcc2 internal prototype to avoid an error. */
5577 #ifdef __cplusplus
5578 extern "C"
5579 #endif
5580 /* We use char because int might match the return type of a gcc2
5581 builtin and then its argument prototype would still apply. */
5582 char waddstr ();
5583 int
5584 main ()
5585 {
5586 waddstr ();
5587 ;
5588 return 0;
5589 }
5590 _ACEOF
5591 rm -f conftest.$ac_objext conftest$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -z "$ac_c_werror_flag"
5601 || test ! -s conftest.err'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 (eval $ac_try) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; } &&
5607 { ac_try='test -s conftest$ac_exeext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 (eval $ac_try) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5613 ac_cv_search_waddstr="none required"
5614 else
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5617
5618 fi
5619 rm -f conftest.err conftest.$ac_objext \
5620 conftest$ac_exeext conftest.$ac_ext
5621 if test "$ac_cv_search_waddstr" = no; then
5622 for ac_lib in ncurses cursesX curses; do
5623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630
5631 /* Override any gcc2 internal prototype to avoid an error. */
5632 #ifdef __cplusplus
5633 extern "C"
5634 #endif
5635 /* We use char because int might match the return type of a gcc2
5636 builtin and then its argument prototype would still apply. */
5637 char waddstr ();
5638 int
5639 main ()
5640 {
5641 waddstr ();
5642 ;
5643 return 0;
5644 }
5645 _ACEOF
5646 rm -f conftest.$ac_objext conftest$ac_exeext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5648 (eval $ac_link) 2>conftest.er1
5649 ac_status=$?
5650 grep -v '^ *+' conftest.er1 >conftest.err
5651 rm -f conftest.er1
5652 cat conftest.err >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } &&
5655 { ac_try='test -z "$ac_c_werror_flag"
5656 || test ! -s conftest.err'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 (eval $ac_try) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; } &&
5662 { ac_try='test -s conftest$ac_exeext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_search_waddstr="-l$ac_lib"
5669 break
5670 else
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5673
5674 fi
5675 rm -f conftest.err conftest.$ac_objext \
5676 conftest$ac_exeext conftest.$ac_ext
5677 done
5678 fi
5679 LIBS=$ac_func_search_save_LIBS
5680 fi
5681 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5682 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5683 if test "$ac_cv_search_waddstr" != no; then
5684 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
5685
5686 fi
5687
5688
5689 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
5690 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
5691 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
5692 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695 ac_func_search_save_LIBS=$LIBS
5696 ac_cv_search_dlgetmodinfo=no
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703
5704 /* Override any gcc2 internal prototype to avoid an error. */
5705 #ifdef __cplusplus
5706 extern "C"
5707 #endif
5708 /* We use char because int might match the return type of a gcc2
5709 builtin and then its argument prototype would still apply. */
5710 char dlgetmodinfo ();
5711 int
5712 main ()
5713 {
5714 dlgetmodinfo ();
5715 ;
5716 return 0;
5717 }
5718 _ACEOF
5719 rm -f conftest.$ac_objext conftest$ac_exeext
5720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5721 (eval $ac_link) 2>conftest.er1
5722 ac_status=$?
5723 grep -v '^ *+' conftest.er1 >conftest.err
5724 rm -f conftest.er1
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } &&
5728 { ac_try='test -z "$ac_c_werror_flag"
5729 || test ! -s conftest.err'
5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 (eval $ac_try) 2>&5
5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; } &&
5735 { ac_try='test -s conftest$ac_exeext'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 (eval $ac_try) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; }; then
5741 ac_cv_search_dlgetmodinfo="none required"
5742 else
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5745
5746 fi
5747 rm -f conftest.err conftest.$ac_objext \
5748 conftest$ac_exeext conftest.$ac_ext
5749 if test "$ac_cv_search_dlgetmodinfo" = no; then
5750 for ac_lib in dl xpdl; do
5751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h. */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758
5759 /* Override any gcc2 internal prototype to avoid an error. */
5760 #ifdef __cplusplus
5761 extern "C"
5762 #endif
5763 /* We use char because int might match the return type of a gcc2
5764 builtin and then its argument prototype would still apply. */
5765 char dlgetmodinfo ();
5766 int
5767 main ()
5768 {
5769 dlgetmodinfo ();
5770 ;
5771 return 0;
5772 }
5773 _ACEOF
5774 rm -f conftest.$ac_objext conftest$ac_exeext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776 (eval $ac_link) 2>conftest.er1
5777 ac_status=$?
5778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -z "$ac_c_werror_flag"
5784 || test ! -s conftest.err'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try='test -s conftest$ac_exeext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 (eval $ac_try) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 ac_cv_search_dlgetmodinfo="-l$ac_lib"
5797 break
5798 else
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 fi
5803 rm -f conftest.err conftest.$ac_objext \
5804 conftest$ac_exeext conftest.$ac_ext
5805 done
5806 fi
5807 LIBS=$ac_func_search_save_LIBS
5808 fi
5809 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
5810 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
5811 if test "$ac_cv_search_dlgetmodinfo" != no; then
5812 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
5813
5814 fi
5815
5816
5817 # Since GDB uses Readline, we need termcap functionality. In many
5818 # cases this will be provided by the curses library, but some systems
5819 # have a seperate termcap library, or no curses library at all.
5820
5821 case $host_os in
5822 cygwin*)
5823 if test -d $srcdir/libtermcap; then
5824 LIBS="../libtermcap/libtermcap.a $LIBS"
5825 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5826 fi ;;
5827 go32* | *djgpp*)
5828 ac_cv_search_tgetent="none required"
5829 ;;
5830 *mingw32*)
5831 ac_cv_search_tgetent="none required"
5832 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5833 ;;
5834 esac
5835
5836 # These are the libraries checked by Readline.
5837 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5838 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5839 if test "${ac_cv_search_tgetent+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842 ac_func_search_save_LIBS=$LIBS
5843 ac_cv_search_tgetent=no
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850
5851 /* Override any gcc2 internal prototype to avoid an error. */
5852 #ifdef __cplusplus
5853 extern "C"
5854 #endif
5855 /* We use char because int might match the return type of a gcc2
5856 builtin and then its argument prototype would still apply. */
5857 char tgetent ();
5858 int
5859 main ()
5860 {
5861 tgetent ();
5862 ;
5863 return 0;
5864 }
5865 _ACEOF
5866 rm -f conftest.$ac_objext conftest$ac_exeext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5868 (eval $ac_link) 2>conftest.er1
5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest$ac_exeext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_search_tgetent="none required"
5889 else
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 fi
5894 rm -f conftest.err conftest.$ac_objext \
5895 conftest$ac_exeext conftest.$ac_ext
5896 if test "$ac_cv_search_tgetent" = no; then
5897 for ac_lib in termcap tinfo curses ncurses; do
5898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905
5906 /* Override any gcc2 internal prototype to avoid an error. */
5907 #ifdef __cplusplus
5908 extern "C"
5909 #endif
5910 /* We use char because int might match the return type of a gcc2
5911 builtin and then its argument prototype would still apply. */
5912 char tgetent ();
5913 int
5914 main ()
5915 {
5916 tgetent ();
5917 ;
5918 return 0;
5919 }
5920 _ACEOF
5921 rm -f conftest.$ac_objext conftest$ac_exeext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923 (eval $ac_link) 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -z "$ac_c_werror_flag"
5931 || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest$ac_exeext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_cv_search_tgetent="-l$ac_lib"
5944 break
5945 else
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5948
5949 fi
5950 rm -f conftest.err conftest.$ac_objext \
5951 conftest$ac_exeext conftest.$ac_ext
5952 done
5953 fi
5954 LIBS=$ac_func_search_save_LIBS
5955 fi
5956 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5957 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5958 if test "$ac_cv_search_tgetent" != no; then
5959 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5960
5961 fi
5962
5963
5964 if test "$ac_cv_search_tgetent" = no; then
5965 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5966 echo "$as_me: error: no termcap library found" >&2;}
5967 { (exit 1); exit 1; }; }
5968 fi
5969
5970
5971 # Check whether --with-system-readline or --without-system-readline was given.
5972 if test "${with_system_readline+set}" = set; then
5973 withval="$with_system_readline"
5974
5975 fi;
5976
5977 if test "$with_system_readline" = yes; then
5978 READLINE=-lreadline
5979 READLINE_DEPS=
5980 READLINE_CFLAGS=
5981 else
5982 READLINE='$(READLINE_DIR)/libreadline.a'
5983 READLINE_DEPS='$(READLINE)'
5984 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
5985 fi
5986
5987
5988
5989
5990
5991 # Check whether --with-expat or --without-expat was given.
5992 if test "${with_expat+set}" = set; then
5993 withval="$with_expat"
5994
5995 else
5996 with_expat=auto
5997 fi;
5998 echo "$as_me:$LINENO: checking whether to use expat" >&5
5999 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
6000 echo "$as_me:$LINENO: result: $with_expat" >&5
6001 echo "${ECHO_T}$with_expat" >&6
6002
6003 if test "${with_expat}" = no; then
6004 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
6005 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
6006 HAVE_LIBEXPAT=no
6007 else
6008
6009 if test "X$prefix" = "XNONE"; then
6010 acl_final_prefix="$ac_default_prefix"
6011 else
6012 acl_final_prefix="$prefix"
6013 fi
6014 if test "X$exec_prefix" = "XNONE"; then
6015 acl_final_exec_prefix='${prefix}'
6016 else
6017 acl_final_exec_prefix="$exec_prefix"
6018 fi
6019 acl_save_prefix="$prefix"
6020 prefix="$acl_final_prefix"
6021 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6022 prefix="$acl_save_prefix"
6023
6024
6025 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6026 if test "${with_gnu_ld+set}" = set; then
6027 withval="$with_gnu_ld"
6028 test "$withval" = no || with_gnu_ld=yes
6029 else
6030 with_gnu_ld=no
6031 fi;
6032 # Prepare PATH_SEPARATOR.
6033 # The user is always right.
6034 if test "${PATH_SEPARATOR+set}" != set; then
6035 echo "#! /bin/sh" >conf$$.sh
6036 echo "exit 0" >>conf$$.sh
6037 chmod +x conf$$.sh
6038 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6039 PATH_SEPARATOR=';'
6040 else
6041 PATH_SEPARATOR=:
6042 fi
6043 rm -f conf$$.sh
6044 fi
6045 ac_prog=ld
6046 if test "$GCC" = yes; then
6047 # Check if gcc -print-prog-name=ld gives a path.
6048 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6049 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6050 case $host in
6051 *-*-mingw*)
6052 # gcc leaves a trailing carriage return which upsets mingw
6053 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6054 *)
6055 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6056 esac
6057 case $ac_prog in
6058 # Accept absolute paths.
6059 [\\/]* | [A-Za-z]:[\\/]*)
6060 re_direlt='/[^/][^/]*/\.\./'
6061 # Canonicalize the path of ld
6062 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6063 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6064 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6065 done
6066 test -z "$LD" && LD="$ac_prog"
6067 ;;
6068 "")
6069 # If it fails, then pretend we aren't using GCC.
6070 ac_prog=ld
6071 ;;
6072 *)
6073 # If it is relative, then search for the first ld in PATH.
6074 with_gnu_ld=unknown
6075 ;;
6076 esac
6077 elif test "$with_gnu_ld" = yes; then
6078 echo "$as_me:$LINENO: checking for GNU ld" >&5
6079 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6080 else
6081 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6082 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6083 fi
6084 if test "${acl_cv_path_LD+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087 if test -z "$LD"; then
6088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6089 for ac_dir in $PATH; do
6090 test -z "$ac_dir" && ac_dir=.
6091 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6092 acl_cv_path_LD="$ac_dir/$ac_prog"
6093 # Check to see if the program is GNU ld. I'd rather use --version,
6094 # but apparently some GNU ld's only accept -v.
6095 # Break only if it was the GNU/non-GNU ld that we prefer.
6096 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6097 test "$with_gnu_ld" != no && break
6098 else
6099 test "$with_gnu_ld" != yes && break
6100 fi
6101 fi
6102 done
6103 IFS="$ac_save_ifs"
6104 else
6105 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6106 fi
6107 fi
6108
6109 LD="$acl_cv_path_LD"
6110 if test -n "$LD"; then
6111 echo "$as_me:$LINENO: result: $LD" >&5
6112 echo "${ECHO_T}$LD" >&6
6113 else
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6116 fi
6117 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6118 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6119 { (exit 1); exit 1; }; }
6120 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6121 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6122 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6126 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6127 acl_cv_prog_gnu_ld=yes
6128 else
6129 acl_cv_prog_gnu_ld=no
6130 fi
6131 fi
6132 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6133 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6134 with_gnu_ld=$acl_cv_prog_gnu_ld
6135
6136
6137
6138 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6139 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6140 if test "${acl_cv_rpath+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143
6144 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6145 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6146 . ./conftest.sh
6147 rm -f ./conftest.sh
6148 acl_cv_rpath=done
6149
6150 fi
6151 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6152 echo "${ECHO_T}$acl_cv_rpath" >&6
6153 wl="$acl_cv_wl"
6154 libext="$acl_cv_libext"
6155 shlibext="$acl_cv_shlibext"
6156 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6157 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6158 hardcode_direct="$acl_cv_hardcode_direct"
6159 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6160 # Check whether --enable-rpath or --disable-rpath was given.
6161 if test "${enable_rpath+set}" = set; then
6162 enableval="$enable_rpath"
6163 :
6164 else
6165 enable_rpath=yes
6166 fi;
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176 use_additional=yes
6177
6178 acl_save_prefix="$prefix"
6179 prefix="$acl_final_prefix"
6180 acl_save_exec_prefix="$exec_prefix"
6181 exec_prefix="$acl_final_exec_prefix"
6182
6183 eval additional_includedir=\"$includedir\"
6184 eval additional_libdir=\"$libdir\"
6185
6186 exec_prefix="$acl_save_exec_prefix"
6187 prefix="$acl_save_prefix"
6188
6189
6190 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
6191 if test "${with_libexpat_prefix+set}" = set; then
6192 withval="$with_libexpat_prefix"
6193
6194 if test "X$withval" = "Xno"; then
6195 use_additional=no
6196 else
6197 if test "X$withval" = "X"; then
6198
6199 acl_save_prefix="$prefix"
6200 prefix="$acl_final_prefix"
6201 acl_save_exec_prefix="$exec_prefix"
6202 exec_prefix="$acl_final_exec_prefix"
6203
6204 eval additional_includedir=\"$includedir\"
6205 eval additional_libdir=\"$libdir\"
6206
6207 exec_prefix="$acl_save_exec_prefix"
6208 prefix="$acl_save_prefix"
6209
6210 else
6211 additional_includedir="$withval/include"
6212 additional_libdir="$withval/lib"
6213 fi
6214 fi
6215
6216 fi;
6217 LIBEXPAT=
6218 LTLIBEXPAT=
6219 INCEXPAT=
6220 rpathdirs=
6221 ltrpathdirs=
6222 names_already_handled=
6223 names_next_round='expat '
6224 while test -n "$names_next_round"; do
6225 names_this_round="$names_next_round"
6226 names_next_round=
6227 for name in $names_this_round; do
6228 already_handled=
6229 for n in $names_already_handled; do
6230 if test "$n" = "$name"; then
6231 already_handled=yes
6232 break
6233 fi
6234 done
6235 if test -z "$already_handled"; then
6236 names_already_handled="$names_already_handled $name"
6237 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6238 eval value=\"\$HAVE_LIB$uppername\"
6239 if test -n "$value"; then
6240 if test "$value" = yes; then
6241 eval value=\"\$LIB$uppername\"
6242 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
6243 eval value=\"\$LTLIB$uppername\"
6244 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
6245 else
6246 :
6247 fi
6248 else
6249 found_dir=
6250 found_la=
6251 found_so=
6252 found_a=
6253 if test $use_additional = yes; then
6254 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6255 found_dir="$additional_libdir"
6256 found_so="$additional_libdir/lib$name.$shlibext"
6257 if test -f "$additional_libdir/lib$name.la"; then
6258 found_la="$additional_libdir/lib$name.la"
6259 fi
6260 else
6261 if test -f "$additional_libdir/lib$name.$libext"; then
6262 found_dir="$additional_libdir"
6263 found_a="$additional_libdir/lib$name.$libext"
6264 if test -f "$additional_libdir/lib$name.la"; then
6265 found_la="$additional_libdir/lib$name.la"
6266 fi
6267 fi
6268 fi
6269 fi
6270 if test "X$found_dir" = "X"; then
6271 for x in $LDFLAGS $LTLIBEXPAT; do
6272
6273 acl_save_prefix="$prefix"
6274 prefix="$acl_final_prefix"
6275 acl_save_exec_prefix="$exec_prefix"
6276 exec_prefix="$acl_final_exec_prefix"
6277 eval x=\"$x\"
6278 exec_prefix="$acl_save_exec_prefix"
6279 prefix="$acl_save_prefix"
6280
6281 case "$x" in
6282 -L*)
6283 dir=`echo "X$x" | sed -e 's/^X-L//'`
6284 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6285 found_dir="$dir"
6286 found_so="$dir/lib$name.$shlibext"
6287 if test -f "$dir/lib$name.la"; then
6288 found_la="$dir/lib$name.la"
6289 fi
6290 else
6291 if test -f "$dir/lib$name.$libext"; then
6292 found_dir="$dir"
6293 found_a="$dir/lib$name.$libext"
6294 if test -f "$dir/lib$name.la"; then
6295 found_la="$dir/lib$name.la"
6296 fi
6297 fi
6298 fi
6299 ;;
6300 esac
6301 if test "X$found_dir" != "X"; then
6302 break
6303 fi
6304 done
6305 fi
6306 if test "X$found_dir" != "X"; then
6307 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6308 if test "X$found_so" != "X"; then
6309 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6310 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6311 else
6312 haveit=
6313 for x in $ltrpathdirs; do
6314 if test "X$x" = "X$found_dir"; then
6315 haveit=yes
6316 break
6317 fi
6318 done
6319 if test -z "$haveit"; then
6320 ltrpathdirs="$ltrpathdirs $found_dir"
6321 fi
6322 if test "$hardcode_direct" = yes; then
6323 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6324 else
6325 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6326 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6327 haveit=
6328 for x in $rpathdirs; do
6329 if test "X$x" = "X$found_dir"; then
6330 haveit=yes
6331 break
6332 fi
6333 done
6334 if test -z "$haveit"; then
6335 rpathdirs="$rpathdirs $found_dir"
6336 fi
6337 else
6338 haveit=
6339 for x in $LDFLAGS $LIBEXPAT; do
6340
6341 acl_save_prefix="$prefix"
6342 prefix="$acl_final_prefix"
6343 acl_save_exec_prefix="$exec_prefix"
6344 exec_prefix="$acl_final_exec_prefix"
6345 eval x=\"$x\"
6346 exec_prefix="$acl_save_exec_prefix"
6347 prefix="$acl_save_prefix"
6348
6349 if test "X$x" = "X-L$found_dir"; then
6350 haveit=yes
6351 break
6352 fi
6353 done
6354 if test -z "$haveit"; then
6355 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6356 fi
6357 if test "$hardcode_minus_L" != no; then
6358 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6359 else
6360 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6361 fi
6362 fi
6363 fi
6364 fi
6365 else
6366 if test "X$found_a" != "X"; then
6367 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6368 else
6369 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6370 fi
6371 fi
6372 additional_includedir=
6373 case "$found_dir" in
6374 */lib | */lib/)
6375 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6376 additional_includedir="$basedir/include"
6377 ;;
6378 esac
6379 if test "X$additional_includedir" != "X"; then
6380 if test "X$additional_includedir" != "X/usr/include"; then
6381 haveit=
6382 if test "X$additional_includedir" = "X/usr/local/include"; then
6383 if test -n "$GCC"; then
6384 case $host_os in
6385 linux*) haveit=yes;;
6386 esac
6387 fi
6388 fi
6389 if test -z "$haveit"; then
6390 for x in $CPPFLAGS $INCEXPAT; do
6391
6392 acl_save_prefix="$prefix"
6393 prefix="$acl_final_prefix"
6394 acl_save_exec_prefix="$exec_prefix"
6395 exec_prefix="$acl_final_exec_prefix"
6396 eval x=\"$x\"
6397 exec_prefix="$acl_save_exec_prefix"
6398 prefix="$acl_save_prefix"
6399
6400 if test "X$x" = "X-I$additional_includedir"; then
6401 haveit=yes
6402 break
6403 fi
6404 done
6405 if test -z "$haveit"; then
6406 if test -d "$additional_includedir"; then
6407 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6408 fi
6409 fi
6410 fi
6411 fi
6412 fi
6413 if test -n "$found_la"; then
6414 save_libdir="$libdir"
6415 case "$found_la" in
6416 */* | *\\*) . "$found_la" ;;
6417 *) . "./$found_la" ;;
6418 esac
6419 libdir="$save_libdir"
6420 for dep in $dependency_libs; do
6421 case "$dep" in
6422 -L*)
6423 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6424 if test "X$additional_libdir" != "X/usr/lib"; then
6425 haveit=
6426 if test "X$additional_libdir" = "X/usr/local/lib"; then
6427 if test -n "$GCC"; then
6428 case $host_os in
6429 linux*) haveit=yes;;
6430 esac
6431 fi
6432 fi
6433 if test -z "$haveit"; then
6434 haveit=
6435 for x in $LDFLAGS $LIBEXPAT; do
6436
6437 acl_save_prefix="$prefix"
6438 prefix="$acl_final_prefix"
6439 acl_save_exec_prefix="$exec_prefix"
6440 exec_prefix="$acl_final_exec_prefix"
6441 eval x=\"$x\"
6442 exec_prefix="$acl_save_exec_prefix"
6443 prefix="$acl_save_prefix"
6444
6445 if test "X$x" = "X-L$additional_libdir"; then
6446 haveit=yes
6447 break
6448 fi
6449 done
6450 if test -z "$haveit"; then
6451 if test -d "$additional_libdir"; then
6452 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6453 fi
6454 fi
6455 haveit=
6456 for x in $LDFLAGS $LTLIBEXPAT; do
6457
6458 acl_save_prefix="$prefix"
6459 prefix="$acl_final_prefix"
6460 acl_save_exec_prefix="$exec_prefix"
6461 exec_prefix="$acl_final_exec_prefix"
6462 eval x=\"$x\"
6463 exec_prefix="$acl_save_exec_prefix"
6464 prefix="$acl_save_prefix"
6465
6466 if test "X$x" = "X-L$additional_libdir"; then
6467 haveit=yes
6468 break
6469 fi
6470 done
6471 if test -z "$haveit"; then
6472 if test -d "$additional_libdir"; then
6473 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6474 fi
6475 fi
6476 fi
6477 fi
6478 ;;
6479 -R*)
6480 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6481 if test "$enable_rpath" != no; then
6482 haveit=
6483 for x in $rpathdirs; do
6484 if test "X$x" = "X$dir"; then
6485 haveit=yes
6486 break
6487 fi
6488 done
6489 if test -z "$haveit"; then
6490 rpathdirs="$rpathdirs $dir"
6491 fi
6492 haveit=
6493 for x in $ltrpathdirs; do
6494 if test "X$x" = "X$dir"; then
6495 haveit=yes
6496 break
6497 fi
6498 done
6499 if test -z "$haveit"; then
6500 ltrpathdirs="$ltrpathdirs $dir"
6501 fi
6502 fi
6503 ;;
6504 -l*)
6505 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6506 ;;
6507 *.la)
6508 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6509 ;;
6510 *)
6511 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6512 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6513 ;;
6514 esac
6515 done
6516 fi
6517 else
6518 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6519 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6520 fi
6521 fi
6522 fi
6523 done
6524 done
6525 if test "X$rpathdirs" != "X"; then
6526 if test -n "$hardcode_libdir_separator"; then
6527 alldirs=
6528 for found_dir in $rpathdirs; do
6529 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6530 done
6531 acl_save_libdir="$libdir"
6532 libdir="$alldirs"
6533 eval flag=\"$hardcode_libdir_flag_spec\"
6534 libdir="$acl_save_libdir"
6535 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6536 else
6537 for found_dir in $rpathdirs; do
6538 acl_save_libdir="$libdir"
6539 libdir="$found_dir"
6540 eval flag=\"$hardcode_libdir_flag_spec\"
6541 libdir="$acl_save_libdir"
6542 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6543 done
6544 fi
6545 fi
6546 if test "X$ltrpathdirs" != "X"; then
6547 for found_dir in $ltrpathdirs; do
6548 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6549 done
6550 fi
6551
6552
6553 ac_save_CPPFLAGS="$CPPFLAGS"
6554
6555 for element in $INCEXPAT; do
6556 haveit=
6557 for x in $CPPFLAGS; do
6558
6559 acl_save_prefix="$prefix"
6560 prefix="$acl_final_prefix"
6561 acl_save_exec_prefix="$exec_prefix"
6562 exec_prefix="$acl_final_exec_prefix"
6563 eval x=\"$x\"
6564 exec_prefix="$acl_save_exec_prefix"
6565 prefix="$acl_save_prefix"
6566
6567 if test "X$x" = "X$element"; then
6568 haveit=yes
6569 break
6570 fi
6571 done
6572 if test -z "$haveit"; then
6573 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6574 fi
6575 done
6576
6577
6578 echo "$as_me:$LINENO: checking for libexpat" >&5
6579 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6580 if test "${ac_cv_libexpat+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583
6584 ac_save_LIBS="$LIBS"
6585 LIBS="$LIBS $LIBEXPAT"
6586 cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h. */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 #include "expat.h"
6593 int
6594 main ()
6595 {
6596 XML_Parser p = XML_ParserCreate (0);
6597 ;
6598 return 0;
6599 }
6600 _ACEOF
6601 rm -f conftest.$ac_objext conftest$ac_exeext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6603 (eval $ac_link) 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try='test -z "$ac_c_werror_flag"
6611 || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try='test -s conftest$ac_exeext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 (eval $ac_try) 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_libexpat=yes
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6627
6628 ac_cv_libexpat=no
6629 fi
6630 rm -f conftest.err conftest.$ac_objext \
6631 conftest$ac_exeext conftest.$ac_ext
6632 LIBS="$ac_save_LIBS"
6633
6634 fi
6635 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6636 echo "${ECHO_T}$ac_cv_libexpat" >&6
6637 if test "$ac_cv_libexpat" = yes; then
6638 HAVE_LIBEXPAT=yes
6639
6640 cat >>confdefs.h <<\_ACEOF
6641 #define HAVE_LIBEXPAT 1
6642 _ACEOF
6643
6644 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6645 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6646 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6647 echo "${ECHO_T}$LIBEXPAT" >&6
6648 else
6649 HAVE_LIBEXPAT=no
6650 CPPFLAGS="$ac_save_CPPFLAGS"
6651 LIBEXPAT=
6652 LTLIBEXPAT=
6653 fi
6654
6655
6656
6657
6658
6659
6660 if test "$HAVE_LIBEXPAT" != yes; then
6661 if test "$with_expat" = yes; then
6662 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
6663 echo "$as_me: error: expat is missing or unusable" >&2;}
6664 { (exit 1); exit 1; }; }
6665 else
6666 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
6667 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
6668 fi
6669 else
6670 save_LIBS=$LIBS
6671 LIBS="$LIBS $LIBEXPAT"
6672
6673 for ac_func in XML_StopParser
6674 do
6675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6676 echo "$as_me:$LINENO: checking for $ac_func" >&5
6677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6678 if eval "test \"\${$as_ac_var+set}\" = set"; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 else
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6689 #define $ac_func innocuous_$ac_func
6690
6691 /* System header to define __stub macros and hopefully few prototypes,
6692 which can conflict with char $ac_func (); below.
6693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6694 <limits.h> exists even on freestanding compilers. */
6695
6696 #ifdef __STDC__
6697 # include <limits.h>
6698 #else
6699 # include <assert.h>
6700 #endif
6701
6702 #undef $ac_func
6703
6704 /* Override any gcc2 internal prototype to avoid an error. */
6705 #ifdef __cplusplus
6706 extern "C"
6707 {
6708 #endif
6709 /* We use char because int might match the return type of a gcc2
6710 builtin and then its argument prototype would still apply. */
6711 char $ac_func ();
6712 /* The GNU C library defines this for functions which it implements
6713 to always fail with ENOSYS. Some functions are actually named
6714 something starting with __ and the normal name is an alias. */
6715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6716 choke me
6717 #else
6718 char (*f) () = $ac_func;
6719 #endif
6720 #ifdef __cplusplus
6721 }
6722 #endif
6723
6724 int
6725 main ()
6726 {
6727 return f != $ac_func;
6728 ;
6729 return 0;
6730 }
6731 _ACEOF
6732 rm -f conftest.$ac_objext conftest$ac_exeext
6733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6734 (eval $ac_link) 2>conftest.er1
6735 ac_status=$?
6736 grep -v '^ *+' conftest.er1 >conftest.err
6737 rm -f conftest.er1
6738 cat conftest.err >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } &&
6741 { ac_try='test -z "$ac_c_werror_flag"
6742 || test ! -s conftest.err'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 (eval $ac_try) 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; } &&
6748 { ac_try='test -s conftest$ac_exeext'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 (eval $ac_try) 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; }; then
6754 eval "$as_ac_var=yes"
6755 else
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6758
6759 eval "$as_ac_var=no"
6760 fi
6761 rm -f conftest.err conftest.$ac_objext \
6762 conftest$ac_exeext conftest.$ac_ext
6763 fi
6764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6766 if test `eval echo '${'$as_ac_var'}'` = yes; then
6767 cat >>confdefs.h <<_ACEOF
6768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6769 _ACEOF
6770
6771 fi
6772 done
6773
6774 LIBS=$save_LIBS
6775 fi
6776 fi
6777
6778 # ------------------------- #
6779 # Checks for header files. #
6780 # ------------------------- #
6781
6782
6783
6784
6785
6786
6787 ac_header_dirent=no
6788 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6789 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6790 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6791 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <sys/types.h>
6802 #include <$ac_hdr>
6803
6804 int
6805 main ()
6806 {
6807 if ((DIR *) 0)
6808 return 0;
6809 ;
6810 return 0;
6811 }
6812 _ACEOF
6813 rm -f conftest.$ac_objext
6814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6815 (eval $ac_compile) 2>conftest.er1
6816 ac_status=$?
6817 grep -v '^ *+' conftest.er1 >conftest.err
6818 rm -f conftest.er1
6819 cat conftest.err >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try='test -z "$ac_c_werror_flag"
6823 || test ! -s conftest.err'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 (eval $ac_try) 2>&5
6826 ac_status=$?
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; } &&
6829 { ac_try='test -s conftest.$ac_objext'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 (eval $ac_try) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6835 eval "$as_ac_Header=yes"
6836 else
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6839
6840 eval "$as_ac_Header=no"
6841 fi
6842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6843 fi
6844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6847 cat >>confdefs.h <<_ACEOF
6848 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6849 _ACEOF
6850
6851 ac_header_dirent=$ac_hdr; break
6852 fi
6853
6854 done
6855 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6856 if test $ac_header_dirent = dirent.h; then
6857 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6858 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6859 if test "${ac_cv_search_opendir+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 ac_func_search_save_LIBS=$LIBS
6863 ac_cv_search_opendir=no
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870
6871 /* Override any gcc2 internal prototype to avoid an error. */
6872 #ifdef __cplusplus
6873 extern "C"
6874 #endif
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6877 char opendir ();
6878 int
6879 main ()
6880 {
6881 opendir ();
6882 ;
6883 return 0;
6884 }
6885 _ACEOF
6886 rm -f conftest.$ac_objext conftest$ac_exeext
6887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6888 (eval $ac_link) 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try='test -z "$ac_c_werror_flag"
6896 || test ! -s conftest.err'
6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 (eval $ac_try) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; } &&
6902 { ac_try='test -s conftest$ac_exeext'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6908 ac_cv_search_opendir="none required"
6909 else
6910 echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6912
6913 fi
6914 rm -f conftest.err conftest.$ac_objext \
6915 conftest$ac_exeext conftest.$ac_ext
6916 if test "$ac_cv_search_opendir" = no; then
6917 for ac_lib in dir; do
6918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h. */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925
6926 /* Override any gcc2 internal prototype to avoid an error. */
6927 #ifdef __cplusplus
6928 extern "C"
6929 #endif
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6932 char opendir ();
6933 int
6934 main ()
6935 {
6936 opendir ();
6937 ;
6938 return 0;
6939 }
6940 _ACEOF
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943 (eval $ac_link) 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -z "$ac_c_werror_flag"
6951 || test ! -s conftest.err'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; } &&
6957 { ac_try='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6963 ac_cv_search_opendir="-l$ac_lib"
6964 break
6965 else
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6968
6969 fi
6970 rm -f conftest.err conftest.$ac_objext \
6971 conftest$ac_exeext conftest.$ac_ext
6972 done
6973 fi
6974 LIBS=$ac_func_search_save_LIBS
6975 fi
6976 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6977 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6978 if test "$ac_cv_search_opendir" != no; then
6979 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6980
6981 fi
6982
6983 else
6984 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6985 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6986 if test "${ac_cv_search_opendir+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 ac_func_search_save_LIBS=$LIBS
6990 ac_cv_search_opendir=no
6991 cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h. */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997
6998 /* Override any gcc2 internal prototype to avoid an error. */
6999 #ifdef __cplusplus
7000 extern "C"
7001 #endif
7002 /* We use char because int might match the return type of a gcc2
7003 builtin and then its argument prototype would still apply. */
7004 char opendir ();
7005 int
7006 main ()
7007 {
7008 opendir ();
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 rm -f conftest.$ac_objext conftest$ac_exeext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015 (eval $ac_link) 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_c_werror_flag"
7023 || test ! -s conftest.err'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 (eval $ac_try) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; } &&
7029 { ac_try='test -s conftest$ac_exeext'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; }; then
7035 ac_cv_search_opendir="none required"
7036 else
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7039
7040 fi
7041 rm -f conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043 if test "$ac_cv_search_opendir" = no; then
7044 for ac_lib in x; do
7045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7046 cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h. */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052
7053 /* Override any gcc2 internal prototype to avoid an error. */
7054 #ifdef __cplusplus
7055 extern "C"
7056 #endif
7057 /* We use char because int might match the return type of a gcc2
7058 builtin and then its argument prototype would still apply. */
7059 char opendir ();
7060 int
7061 main ()
7062 {
7063 opendir ();
7064 ;
7065 return 0;
7066 }
7067 _ACEOF
7068 rm -f conftest.$ac_objext conftest$ac_exeext
7069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7070 (eval $ac_link) 2>conftest.er1
7071 ac_status=$?
7072 grep -v '^ *+' conftest.er1 >conftest.err
7073 rm -f conftest.er1
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try='test -z "$ac_c_werror_flag"
7078 || test ! -s conftest.err'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 (eval $ac_try) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; } &&
7084 { ac_try='test -s conftest$ac_exeext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 (eval $ac_try) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_cv_search_opendir="-l$ac_lib"
7091 break
7092 else
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7095
7096 fi
7097 rm -f conftest.err conftest.$ac_objext \
7098 conftest$ac_exeext conftest.$ac_ext
7099 done
7100 fi
7101 LIBS=$ac_func_search_save_LIBS
7102 fi
7103 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7104 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7105 if test "$ac_cv_search_opendir" != no; then
7106 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7107
7108 fi
7109
7110 fi
7111
7112 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7113 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7114 if test "${ac_cv_header_stat_broken+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h. */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 #include <sys/types.h>
7124 #include <sys/stat.h>
7125
7126 #if defined(S_ISBLK) && defined(S_IFDIR)
7127 # if S_ISBLK (S_IFDIR)
7128 You lose.
7129 # endif
7130 #endif
7131
7132 #if defined(S_ISBLK) && defined(S_IFCHR)
7133 # if S_ISBLK (S_IFCHR)
7134 You lose.
7135 # endif
7136 #endif
7137
7138 #if defined(S_ISLNK) && defined(S_IFREG)
7139 # if S_ISLNK (S_IFREG)
7140 You lose.
7141 # endif
7142 #endif
7143
7144 #if defined(S_ISSOCK) && defined(S_IFREG)
7145 # if S_ISSOCK (S_IFREG)
7146 You lose.
7147 # endif
7148 #endif
7149
7150 _ACEOF
7151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7152 $EGREP "You lose" >/dev/null 2>&1; then
7153 ac_cv_header_stat_broken=yes
7154 else
7155 ac_cv_header_stat_broken=no
7156 fi
7157 rm -f conftest*
7158
7159 fi
7160 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7161 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7162 if test $ac_cv_header_stat_broken = yes; then
7163
7164 cat >>confdefs.h <<\_ACEOF
7165 #define STAT_MACROS_BROKEN 1
7166 _ACEOF
7167
7168 fi
7169
7170 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7171 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7172 if test "${ac_cv_header_stdc+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 #include <stdlib.h>
7182 #include <stdarg.h>
7183 #include <string.h>
7184 #include <float.h>
7185
7186 int
7187 main ()
7188 {
7189
7190 ;
7191 return 0;
7192 }
7193 _ACEOF
7194 rm -f conftest.$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -z "$ac_c_werror_flag"
7204 || test ! -s conftest.err'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; } &&
7210 { ac_try='test -s conftest.$ac_objext'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 (eval $ac_try) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7216 ac_cv_header_stdc=yes
7217 else
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7220
7221 ac_cv_header_stdc=no
7222 fi
7223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7224
7225 if test $ac_cv_header_stdc = yes; then
7226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7227 cat >conftest.$ac_ext <<_ACEOF
7228 /* confdefs.h. */
7229 _ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7233 #include <string.h>
7234
7235 _ACEOF
7236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7237 $EGREP "memchr" >/dev/null 2>&1; then
7238 :
7239 else
7240 ac_cv_header_stdc=no
7241 fi
7242 rm -f conftest*
7243
7244 fi
7245
7246 if test $ac_cv_header_stdc = yes; then
7247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7248 cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h. */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254 #include <stdlib.h>
7255
7256 _ACEOF
7257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7258 $EGREP "free" >/dev/null 2>&1; then
7259 :
7260 else
7261 ac_cv_header_stdc=no
7262 fi
7263 rm -f conftest*
7264
7265 fi
7266
7267 if test $ac_cv_header_stdc = yes; then
7268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7269 if test "$cross_compiling" = yes; then
7270 :
7271 else
7272 cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h. */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 #include <ctype.h>
7279 #if ((' ' & 0x0FF) == 0x020)
7280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7282 #else
7283 # define ISLOWER(c) \
7284 (('a' <= (c) && (c) <= 'i') \
7285 || ('j' <= (c) && (c) <= 'r') \
7286 || ('s' <= (c) && (c) <= 'z'))
7287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7288 #endif
7289
7290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7291 int
7292 main ()
7293 {
7294 int i;
7295 for (i = 0; i < 256; i++)
7296 if (XOR (islower (i), ISLOWER (i))
7297 || toupper (i) != TOUPPER (i))
7298 exit(2);
7299 exit (0);
7300 }
7301 _ACEOF
7302 rm -f conftest$ac_exeext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304 (eval $ac_link) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 (eval $ac_try) 2>&5
7310 ac_status=$?
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 :
7314 else
7315 echo "$as_me: program exited with status $ac_status" >&5
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7318
7319 ( exit $ac_status )
7320 ac_cv_header_stdc=no
7321 fi
7322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7323 fi
7324 fi
7325 fi
7326 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7327 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7328 if test $ac_cv_header_stdc = yes; then
7329
7330 cat >>confdefs.h <<\_ACEOF
7331 #define STDC_HEADERS 1
7332 _ACEOF
7333
7334 fi
7335
7336
7337 for ac_header in nlist.h
7338 do
7339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7341 echo "$as_me:$LINENO: checking for $ac_header" >&5
7342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 fi
7346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7348 else
7349 # Is the header compilable?
7350 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7352 cat >conftest.$ac_ext <<_ACEOF
7353 /* confdefs.h. */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 $ac_includes_default
7359 #include <$ac_header>
7360 _ACEOF
7361 rm -f conftest.$ac_objext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7363 (eval $ac_compile) 2>conftest.er1
7364 ac_status=$?
7365 grep -v '^ *+' conftest.er1 >conftest.err
7366 rm -f conftest.er1
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } &&
7370 { ac_try='test -z "$ac_c_werror_flag"
7371 || test ! -s conftest.err'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 (eval $ac_try) 2>&5
7374 ac_status=$?
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; } &&
7377 { ac_try='test -s conftest.$ac_objext'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379 (eval $ac_try) 2>&5
7380 ac_status=$?
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; }; then
7383 ac_header_compiler=yes
7384 else
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7387
7388 ac_header_compiler=no
7389 fi
7390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7392 echo "${ECHO_T}$ac_header_compiler" >&6
7393
7394 # Is the header present?
7395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 #include <$ac_header>
7404 _ACEOF
7405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7407 ac_status=$?
7408 grep -v '^ *+' conftest.er1 >conftest.err
7409 rm -f conftest.er1
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } >/dev/null; then
7413 if test -s conftest.err; then
7414 ac_cpp_err=$ac_c_preproc_warn_flag
7415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7416 else
7417 ac_cpp_err=
7418 fi
7419 else
7420 ac_cpp_err=yes
7421 fi
7422 if test -z "$ac_cpp_err"; then
7423 ac_header_preproc=yes
7424 else
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7427
7428 ac_header_preproc=no
7429 fi
7430 rm -f conftest.err conftest.$ac_ext
7431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7432 echo "${ECHO_T}$ac_header_preproc" >&6
7433
7434 # So? What about this header?
7435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7436 yes:no: )
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7441 ac_header_preproc=yes
7442 ;;
7443 no:yes:* )
7444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7456 (
7457 cat <<\_ASBOX
7458 ## ------------------------------------------ ##
7459 ## Report this to the AC_PACKAGE_NAME lists. ##
7460 ## ------------------------------------------ ##
7461 _ASBOX
7462 ) |
7463 sed "s/^/$as_me: WARNING: /" >&2
7464 ;;
7465 esac
7466 echo "$as_me:$LINENO: checking for $ac_header" >&5
7467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471 eval "$as_ac_Header=\$ac_header_preproc"
7472 fi
7473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7475
7476 fi
7477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7478 cat >>confdefs.h <<_ACEOF
7479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7480 _ACEOF
7481
7482 fi
7483
7484 done
7485
7486
7487 for ac_header in link.h
7488 do
7489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7490 echo "$as_me:$LINENO: checking for $ac_header" >&5
7491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h. */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 #if HAVE_SYS_TYPES_H
7502 # include <sys/types.h>
7503 #endif
7504 #if HAVE_NLIST_H
7505 # include <nlist.h>
7506 #endif
7507
7508
7509 #include <$ac_header>
7510 _ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513 (eval $ac_compile) 2>conftest.er1
7514 ac_status=$?
7515 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -f conftest.er1
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } &&
7520 { ac_try='test -z "$ac_c_werror_flag"
7521 || test ! -s conftest.err'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; } &&
7527 { ac_try='test -s conftest.$ac_objext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 eval "$as_ac_Header=yes"
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538 eval "$as_ac_Header=no"
7539 fi
7540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7541 fi
7542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7545 cat >>confdefs.h <<_ACEOF
7546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7547 _ACEOF
7548
7549 fi
7550
7551 done
7552
7553
7554 for ac_header in machine/reg.h
7555 do
7556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7558 echo "$as_me:$LINENO: checking for $ac_header" >&5
7559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 fi
7563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7565 else
7566 # Is the header compilable?
7567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7569 cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h. */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7575 $ac_includes_default
7576 #include <$ac_header>
7577 _ACEOF
7578 rm -f conftest.$ac_objext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580 (eval $ac_compile) 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try='test -z "$ac_c_werror_flag"
7588 || test ! -s conftest.err'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 (eval $ac_try) 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; } &&
7594 { ac_try='test -s conftest.$ac_objext'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_header_compiler=yes
7601 else
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7604
7605 ac_header_compiler=no
7606 fi
7607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7609 echo "${ECHO_T}$ac_header_compiler" >&6
7610
7611 # Is the header present?
7612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7614 cat >conftest.$ac_ext <<_ACEOF
7615 /* confdefs.h. */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620 #include <$ac_header>
7621 _ACEOF
7622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } >/dev/null; then
7630 if test -s conftest.err; then
7631 ac_cpp_err=$ac_c_preproc_warn_flag
7632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7633 else
7634 ac_cpp_err=
7635 fi
7636 else
7637 ac_cpp_err=yes
7638 fi
7639 if test -z "$ac_cpp_err"; then
7640 ac_header_preproc=yes
7641 else
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7644
7645 ac_header_preproc=no
7646 fi
7647 rm -f conftest.err conftest.$ac_ext
7648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7649 echo "${ECHO_T}$ac_header_preproc" >&6
7650
7651 # So? What about this header?
7652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7653 yes:no: )
7654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7658 ac_header_preproc=yes
7659 ;;
7660 no:yes:* )
7661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7673 (
7674 cat <<\_ASBOX
7675 ## ------------------------------------------ ##
7676 ## Report this to the AC_PACKAGE_NAME lists. ##
7677 ## ------------------------------------------ ##
7678 _ASBOX
7679 ) |
7680 sed "s/^/$as_me: WARNING: /" >&2
7681 ;;
7682 esac
7683 echo "$as_me:$LINENO: checking for $ac_header" >&5
7684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688 eval "$as_ac_Header=\$ac_header_preproc"
7689 fi
7690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7692
7693 fi
7694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7695 cat >>confdefs.h <<_ACEOF
7696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7697 _ACEOF
7698
7699 fi
7700
7701 done
7702
7703
7704
7705 for ac_header in poll.h sys/poll.h
7706 do
7707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7709 echo "$as_me:$LINENO: checking for $ac_header" >&5
7710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 fi
7714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7716 else
7717 # Is the header compilable?
7718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 $ac_includes_default
7727 #include <$ac_header>
7728 _ACEOF
7729 rm -f conftest.$ac_objext
7730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7731 (eval $ac_compile) 2>conftest.er1
7732 ac_status=$?
7733 grep -v '^ *+' conftest.er1 >conftest.err
7734 rm -f conftest.er1
7735 cat conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -z "$ac_c_werror_flag"
7739 || test ! -s conftest.err'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 (eval $ac_try) 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; } &&
7745 { ac_try='test -s conftest.$ac_objext'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 (eval $ac_try) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; }; then
7751 ac_header_compiler=yes
7752 else
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7755
7756 ac_header_compiler=no
7757 fi
7758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7760 echo "${ECHO_T}$ac_header_compiler" >&6
7761
7762 # Is the header present?
7763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7765 cat >conftest.$ac_ext <<_ACEOF
7766 /* confdefs.h. */
7767 _ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h. */
7771 #include <$ac_header>
7772 _ACEOF
7773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7775 ac_status=$?
7776 grep -v '^ *+' conftest.er1 >conftest.err
7777 rm -f conftest.er1
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } >/dev/null; then
7781 if test -s conftest.err; then
7782 ac_cpp_err=$ac_c_preproc_warn_flag
7783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7784 else
7785 ac_cpp_err=
7786 fi
7787 else
7788 ac_cpp_err=yes
7789 fi
7790 if test -z "$ac_cpp_err"; then
7791 ac_header_preproc=yes
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7795
7796 ac_header_preproc=no
7797 fi
7798 rm -f conftest.err conftest.$ac_ext
7799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7800 echo "${ECHO_T}$ac_header_preproc" >&6
7801
7802 # So? What about this header?
7803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7804 yes:no: )
7805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7809 ac_header_preproc=yes
7810 ;;
7811 no:yes:* )
7812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7824 (
7825 cat <<\_ASBOX
7826 ## ------------------------------------------ ##
7827 ## Report this to the AC_PACKAGE_NAME lists. ##
7828 ## ------------------------------------------ ##
7829 _ASBOX
7830 ) |
7831 sed "s/^/$as_me: WARNING: /" >&2
7832 ;;
7833 esac
7834 echo "$as_me:$LINENO: checking for $ac_header" >&5
7835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839 eval "$as_ac_Header=\$ac_header_preproc"
7840 fi
7841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7843
7844 fi
7845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7846 cat >>confdefs.h <<_ACEOF
7847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7848 _ACEOF
7849
7850 fi
7851
7852 done
7853
7854
7855
7856
7857 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7858 do
7859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7861 echo "$as_me:$LINENO: checking for $ac_header" >&5
7862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 fi
7866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7868 else
7869 # Is the header compilable?
7870 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7872 cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h. */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7878 $ac_includes_default
7879 #include <$ac_header>
7880 _ACEOF
7881 rm -f conftest.$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883 (eval $ac_compile) 2>conftest.er1
7884 ac_status=$?
7885 grep -v '^ *+' conftest.er1 >conftest.err
7886 rm -f conftest.er1
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -z "$ac_c_werror_flag"
7891 || test ! -s conftest.err'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try='test -s conftest.$ac_objext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 (eval $ac_try) 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 ac_header_compiler=yes
7904 else
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7907
7908 ac_header_compiler=no
7909 fi
7910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7912 echo "${ECHO_T}$ac_header_compiler" >&6
7913
7914 # Is the header present?
7915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7917 cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h. */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 #include <$ac_header>
7924 _ACEOF
7925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } >/dev/null; then
7933 if test -s conftest.err; then
7934 ac_cpp_err=$ac_c_preproc_warn_flag
7935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7936 else
7937 ac_cpp_err=
7938 fi
7939 else
7940 ac_cpp_err=yes
7941 fi
7942 if test -z "$ac_cpp_err"; then
7943 ac_header_preproc=yes
7944 else
7945 echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7947
7948 ac_header_preproc=no
7949 fi
7950 rm -f conftest.err conftest.$ac_ext
7951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7952 echo "${ECHO_T}$ac_header_preproc" >&6
7953
7954 # So? What about this header?
7955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7956 yes:no: )
7957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7961 ac_header_preproc=yes
7962 ;;
7963 no:yes:* )
7964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7976 (
7977 cat <<\_ASBOX
7978 ## ------------------------------------------ ##
7979 ## Report this to the AC_PACKAGE_NAME lists. ##
7980 ## ------------------------------------------ ##
7981 _ASBOX
7982 ) |
7983 sed "s/^/$as_me: WARNING: /" >&2
7984 ;;
7985 esac
7986 echo "$as_me:$LINENO: checking for $ac_header" >&5
7987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991 eval "$as_ac_Header=\$ac_header_preproc"
7992 fi
7993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7995
7996 fi
7997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7998 cat >>confdefs.h <<_ACEOF
7999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8000 _ACEOF
8001
8002 fi
8003
8004 done
8005
8006
8007 for ac_header in signal.h
8008 do
8009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8011 echo "$as_me:$LINENO: checking for $ac_header" >&5
8012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 fi
8016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8018 else
8019 # Is the header compilable?
8020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h. */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 $ac_includes_default
8029 #include <$ac_header>
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8033 (eval $ac_compile) 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -z "$ac_c_werror_flag"
8041 || test ! -s conftest.err'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest.$ac_objext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_header_compiler=yes
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8057
8058 ac_header_compiler=no
8059 fi
8060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8062 echo "${ECHO_T}$ac_header_compiler" >&6
8063
8064 # Is the header present?
8065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 #include <$ac_header>
8074 _ACEOF
8075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } >/dev/null; then
8083 if test -s conftest.err; then
8084 ac_cpp_err=$ac_c_preproc_warn_flag
8085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8086 else
8087 ac_cpp_err=
8088 fi
8089 else
8090 ac_cpp_err=yes
8091 fi
8092 if test -z "$ac_cpp_err"; then
8093 ac_header_preproc=yes
8094 else
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8097
8098 ac_header_preproc=no
8099 fi
8100 rm -f conftest.err conftest.$ac_ext
8101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8102 echo "${ECHO_T}$ac_header_preproc" >&6
8103
8104 # So? What about this header?
8105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8106 yes:no: )
8107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8111 ac_header_preproc=yes
8112 ;;
8113 no:yes:* )
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8126 (
8127 cat <<\_ASBOX
8128 ## ------------------------------------------ ##
8129 ## Report this to the AC_PACKAGE_NAME lists. ##
8130 ## ------------------------------------------ ##
8131 _ASBOX
8132 ) |
8133 sed "s/^/$as_me: WARNING: /" >&2
8134 ;;
8135 esac
8136 echo "$as_me:$LINENO: checking for $ac_header" >&5
8137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141 eval "$as_ac_Header=\$ac_header_preproc"
8142 fi
8143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8145
8146 fi
8147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8148 cat >>confdefs.h <<_ACEOF
8149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8150 _ACEOF
8151
8152 fi
8153
8154 done
8155
8156
8157 for ac_header in stddef.h
8158 do
8159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8161 echo "$as_me:$LINENO: checking for $ac_header" >&5
8162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 fi
8166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8168 else
8169 # Is the header compilable?
8170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8172 cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h. */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8178 $ac_includes_default
8179 #include <$ac_header>
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -z "$ac_c_werror_flag"
8191 || test ! -s conftest.err'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; } &&
8197 { ac_try='test -s conftest.$ac_objext'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 (eval $ac_try) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8203 ac_header_compiler=yes
8204 else
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208 ac_header_compiler=no
8209 fi
8210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8212 echo "${ECHO_T}$ac_header_compiler" >&6
8213
8214 # Is the header present?
8215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8217 cat >conftest.$ac_ext <<_ACEOF
8218 /* confdefs.h. */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 #include <$ac_header>
8224 _ACEOF
8225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8227 ac_status=$?
8228 grep -v '^ *+' conftest.er1 >conftest.err
8229 rm -f conftest.er1
8230 cat conftest.err >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } >/dev/null; then
8233 if test -s conftest.err; then
8234 ac_cpp_err=$ac_c_preproc_warn_flag
8235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8236 else
8237 ac_cpp_err=
8238 fi
8239 else
8240 ac_cpp_err=yes
8241 fi
8242 if test -z "$ac_cpp_err"; then
8243 ac_header_preproc=yes
8244 else
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 ac_header_preproc=no
8249 fi
8250 rm -f conftest.err conftest.$ac_ext
8251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8252 echo "${ECHO_T}$ac_header_preproc" >&6
8253
8254 # So? What about this header?
8255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8256 yes:no: )
8257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8261 ac_header_preproc=yes
8262 ;;
8263 no:yes:* )
8264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8276 (
8277 cat <<\_ASBOX
8278 ## ------------------------------------------ ##
8279 ## Report this to the AC_PACKAGE_NAME lists. ##
8280 ## ------------------------------------------ ##
8281 _ASBOX
8282 ) |
8283 sed "s/^/$as_me: WARNING: /" >&2
8284 ;;
8285 esac
8286 echo "$as_me:$LINENO: checking for $ac_header" >&5
8287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291 eval "$as_ac_Header=\$ac_header_preproc"
8292 fi
8293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8295
8296 fi
8297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8298 cat >>confdefs.h <<_ACEOF
8299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8300 _ACEOF
8301
8302 fi
8303
8304 done
8305
8306
8307 for ac_header in stdlib.h
8308 do
8309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8311 echo "$as_me:$LINENO: checking for $ac_header" >&5
8312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 fi
8316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8318 else
8319 # Is the header compilable?
8320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8322 cat >conftest.$ac_ext <<_ACEOF
8323 /* confdefs.h. */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8328 $ac_includes_default
8329 #include <$ac_header>
8330 _ACEOF
8331 rm -f conftest.$ac_objext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8333 (eval $ac_compile) 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -z "$ac_c_werror_flag"
8341 || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 (eval $ac_try) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest.$ac_objext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 ac_header_compiler=yes
8354 else
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8357
8358 ac_header_compiler=no
8359 fi
8360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8362 echo "${ECHO_T}$ac_header_compiler" >&6
8363
8364 # Is the header present?
8365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h. */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 #include <$ac_header>
8374 _ACEOF
8375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8377 ac_status=$?
8378 grep -v '^ *+' conftest.er1 >conftest.err
8379 rm -f conftest.er1
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } >/dev/null; then
8383 if test -s conftest.err; then
8384 ac_cpp_err=$ac_c_preproc_warn_flag
8385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8386 else
8387 ac_cpp_err=
8388 fi
8389 else
8390 ac_cpp_err=yes
8391 fi
8392 if test -z "$ac_cpp_err"; then
8393 ac_header_preproc=yes
8394 else
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8397
8398 ac_header_preproc=no
8399 fi
8400 rm -f conftest.err conftest.$ac_ext
8401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8402 echo "${ECHO_T}$ac_header_preproc" >&6
8403
8404 # So? What about this header?
8405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8406 yes:no: )
8407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8411 ac_header_preproc=yes
8412 ;;
8413 no:yes:* )
8414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8426 (
8427 cat <<\_ASBOX
8428 ## ------------------------------------------ ##
8429 ## Report this to the AC_PACKAGE_NAME lists. ##
8430 ## ------------------------------------------ ##
8431 _ASBOX
8432 ) |
8433 sed "s/^/$as_me: WARNING: /" >&2
8434 ;;
8435 esac
8436 echo "$as_me:$LINENO: checking for $ac_header" >&5
8437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 else
8441 eval "$as_ac_Header=\$ac_header_preproc"
8442 fi
8443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8445
8446 fi
8447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8448 cat >>confdefs.h <<_ACEOF
8449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8450 _ACEOF
8451
8452 fi
8453
8454 done
8455
8456
8457 for ac_header in stdint.h
8458 do
8459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8461 echo "$as_me:$LINENO: checking for $ac_header" >&5
8462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 fi
8466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8468 else
8469 # Is the header compilable?
8470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h. */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 $ac_includes_default
8479 #include <$ac_header>
8480 _ACEOF
8481 rm -f conftest.$ac_objext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8483 (eval $ac_compile) 2>conftest.er1
8484 ac_status=$?
8485 grep -v '^ *+' conftest.er1 >conftest.err
8486 rm -f conftest.er1
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try='test -z "$ac_c_werror_flag"
8491 || test ! -s conftest.err'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 (eval $ac_try) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; } &&
8497 { ac_try='test -s conftest.$ac_objext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 ac_header_compiler=yes
8504 else
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8507
8508 ac_header_compiler=no
8509 fi
8510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8512 echo "${ECHO_T}$ac_header_compiler" >&6
8513
8514 # Is the header present?
8515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h. */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 #include <$ac_header>
8524 _ACEOF
8525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } >/dev/null; then
8533 if test -s conftest.err; then
8534 ac_cpp_err=$ac_c_preproc_warn_flag
8535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8536 else
8537 ac_cpp_err=
8538 fi
8539 else
8540 ac_cpp_err=yes
8541 fi
8542 if test -z "$ac_cpp_err"; then
8543 ac_header_preproc=yes
8544 else
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548 ac_header_preproc=no
8549 fi
8550 rm -f conftest.err conftest.$ac_ext
8551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8552 echo "${ECHO_T}$ac_header_preproc" >&6
8553
8554 # So? What about this header?
8555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8556 yes:no: )
8557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8561 ac_header_preproc=yes
8562 ;;
8563 no:yes:* )
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8576 (
8577 cat <<\_ASBOX
8578 ## ------------------------------------------ ##
8579 ## Report this to the AC_PACKAGE_NAME lists. ##
8580 ## ------------------------------------------ ##
8581 _ASBOX
8582 ) |
8583 sed "s/^/$as_me: WARNING: /" >&2
8584 ;;
8585 esac
8586 echo "$as_me:$LINENO: checking for $ac_header" >&5
8587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591 eval "$as_ac_Header=\$ac_header_preproc"
8592 fi
8593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8595
8596 fi
8597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8598 cat >>confdefs.h <<_ACEOF
8599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8600 _ACEOF
8601
8602 fi
8603
8604 done
8605
8606
8607
8608
8609 for ac_header in string.h memory.h strings.h
8610 do
8611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8613 echo "$as_me:$LINENO: checking for $ac_header" >&5
8614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 fi
8618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8620 else
8621 # Is the header compilable?
8622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h. */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 $ac_includes_default
8631 #include <$ac_header>
8632 _ACEOF
8633 rm -f conftest.$ac_objext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8635 (eval $ac_compile) 2>conftest.er1
8636 ac_status=$?
8637 grep -v '^ *+' conftest.er1 >conftest.err
8638 rm -f conftest.er1
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -z "$ac_c_werror_flag"
8643 || test ! -s conftest.err'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 (eval $ac_try) 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } &&
8649 { ac_try='test -s conftest.$ac_objext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 ac_header_compiler=yes
8656 else
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 ac_header_compiler=no
8661 fi
8662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8664 echo "${ECHO_T}$ac_header_compiler" >&6
8665
8666 # Is the header present?
8667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h. */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8675 #include <$ac_header>
8676 _ACEOF
8677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8678 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
8685 if test -s conftest.err; then
8686 ac_cpp_err=$ac_c_preproc_warn_flag
8687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8688 else
8689 ac_cpp_err=
8690 fi
8691 else
8692 ac_cpp_err=yes
8693 fi
8694 if test -z "$ac_cpp_err"; then
8695 ac_header_preproc=yes
8696 else
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8699
8700 ac_header_preproc=no
8701 fi
8702 rm -f conftest.err conftest.$ac_ext
8703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8704 echo "${ECHO_T}$ac_header_preproc" >&6
8705
8706 # So? What about this header?
8707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8708 yes:no: )
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8713 ac_header_preproc=yes
8714 ;;
8715 no:yes:* )
8716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8728 (
8729 cat <<\_ASBOX
8730 ## ------------------------------------------ ##
8731 ## Report this to the AC_PACKAGE_NAME lists. ##
8732 ## ------------------------------------------ ##
8733 _ASBOX
8734 ) |
8735 sed "s/^/$as_me: WARNING: /" >&2
8736 ;;
8737 esac
8738 echo "$as_me:$LINENO: checking for $ac_header" >&5
8739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743 eval "$as_ac_Header=\$ac_header_preproc"
8744 fi
8745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8747
8748 fi
8749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8750 cat >>confdefs.h <<_ACEOF
8751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8752 _ACEOF
8753
8754 fi
8755
8756 done
8757
8758
8759 for ac_header in sys/fault.h
8760 do
8761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8763 echo "$as_me:$LINENO: checking for $ac_header" >&5
8764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8767 fi
8768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8770 else
8771 # Is the header compilable?
8772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h. */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 $ac_includes_default
8781 #include <$ac_header>
8782 _ACEOF
8783 rm -f conftest.$ac_objext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8785 (eval $ac_compile) 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); } &&
8792 { ac_try='test -z "$ac_c_werror_flag"
8793 || test ! -s conftest.err'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 (eval $ac_try) 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; } &&
8799 { ac_try='test -s conftest.$ac_objext'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 (eval $ac_try) 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 ac_header_compiler=yes
8806 else
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810 ac_header_compiler=no
8811 fi
8812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8814 echo "${ECHO_T}$ac_header_compiler" >&6
8815
8816 # Is the header present?
8817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8819 cat >conftest.$ac_ext <<_ACEOF
8820 /* confdefs.h. */
8821 _ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8825 #include <$ac_header>
8826 _ACEOF
8827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } >/dev/null; then
8835 if test -s conftest.err; then
8836 ac_cpp_err=$ac_c_preproc_warn_flag
8837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8838 else
8839 ac_cpp_err=
8840 fi
8841 else
8842 ac_cpp_err=yes
8843 fi
8844 if test -z "$ac_cpp_err"; then
8845 ac_header_preproc=yes
8846 else
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850 ac_header_preproc=no
8851 fi
8852 rm -f conftest.err conftest.$ac_ext
8853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8854 echo "${ECHO_T}$ac_header_preproc" >&6
8855
8856 # So? What about this header?
8857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8858 yes:no: )
8859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8863 ac_header_preproc=yes
8864 ;;
8865 no:yes:* )
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8878 (
8879 cat <<\_ASBOX
8880 ## ------------------------------------------ ##
8881 ## Report this to the AC_PACKAGE_NAME lists. ##
8882 ## ------------------------------------------ ##
8883 _ASBOX
8884 ) |
8885 sed "s/^/$as_me: WARNING: /" >&2
8886 ;;
8887 esac
8888 echo "$as_me:$LINENO: checking for $ac_header" >&5
8889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893 eval "$as_ac_Header=\$ac_header_preproc"
8894 fi
8895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8897
8898 fi
8899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8900 cat >>confdefs.h <<_ACEOF
8901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8902 _ACEOF
8903
8904 fi
8905
8906 done
8907
8908
8909 for ac_header in sys/file.h
8910 do
8911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8913 echo "$as_me:$LINENO: checking for $ac_header" >&5
8914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 fi
8918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8920 else
8921 # Is the header compilable?
8922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8924 cat >conftest.$ac_ext <<_ACEOF
8925 /* confdefs.h. */
8926 _ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8930 $ac_includes_default
8931 #include <$ac_header>
8932 _ACEOF
8933 rm -f conftest.$ac_objext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8935 (eval $ac_compile) 2>conftest.er1
8936 ac_status=$?
8937 grep -v '^ *+' conftest.er1 >conftest.err
8938 rm -f conftest.er1
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -z "$ac_c_werror_flag"
8943 || test ! -s conftest.err'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 (eval $ac_try) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; } &&
8949 { ac_try='test -s conftest.$ac_objext'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 (eval $ac_try) 2>&5
8952 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 ac_header_compiler=yes
8956 else
8957 echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8959
8960 ac_header_compiler=no
8961 fi
8962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8964 echo "${ECHO_T}$ac_header_compiler" >&6
8965
8966 # Is the header present?
8967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8969 cat >conftest.$ac_ext <<_ACEOF
8970 /* confdefs.h. */
8971 _ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 #include <$ac_header>
8976 _ACEOF
8977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } >/dev/null; then
8985 if test -s conftest.err; then
8986 ac_cpp_err=$ac_c_preproc_warn_flag
8987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8988 else
8989 ac_cpp_err=
8990 fi
8991 else
8992 ac_cpp_err=yes
8993 fi
8994 if test -z "$ac_cpp_err"; then
8995 ac_header_preproc=yes
8996 else
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000 ac_header_preproc=no
9001 fi
9002 rm -f conftest.err conftest.$ac_ext
9003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9004 echo "${ECHO_T}$ac_header_preproc" >&6
9005
9006 # So? What about this header?
9007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9008 yes:no: )
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9013 ac_header_preproc=yes
9014 ;;
9015 no:yes:* )
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9028 (
9029 cat <<\_ASBOX
9030 ## ------------------------------------------ ##
9031 ## Report this to the AC_PACKAGE_NAME lists. ##
9032 ## ------------------------------------------ ##
9033 _ASBOX
9034 ) |
9035 sed "s/^/$as_me: WARNING: /" >&2
9036 ;;
9037 esac
9038 echo "$as_me:$LINENO: checking for $ac_header" >&5
9039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043 eval "$as_ac_Header=\$ac_header_preproc"
9044 fi
9045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9047
9048 fi
9049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9050 cat >>confdefs.h <<_ACEOF
9051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9052 _ACEOF
9053
9054 fi
9055
9056 done
9057
9058
9059 for ac_header in sys/filio.h
9060 do
9061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9063 echo "$as_me:$LINENO: checking for $ac_header" >&5
9064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 fi
9068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9070 else
9071 # Is the header compilable?
9072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9074 cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h. */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9080 $ac_includes_default
9081 #include <$ac_header>
9082 _ACEOF
9083 rm -f conftest.$ac_objext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9085 (eval $ac_compile) 2>conftest.er1
9086 ac_status=$?
9087 grep -v '^ *+' conftest.er1 >conftest.err
9088 rm -f conftest.er1
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
9092 { ac_try='test -z "$ac_c_werror_flag"
9093 || test ! -s conftest.err'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 (eval $ac_try) 2>&5
9096 ac_status=$?
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; } &&
9099 { ac_try='test -s conftest.$ac_objext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 ac_header_compiler=yes
9106 else
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9109
9110 ac_header_compiler=no
9111 fi
9112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9114 echo "${ECHO_T}$ac_header_compiler" >&6
9115
9116 # Is the header present?
9117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9119 cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h. */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9125 #include <$ac_header>
9126 _ACEOF
9127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } >/dev/null; then
9135 if test -s conftest.err; then
9136 ac_cpp_err=$ac_c_preproc_warn_flag
9137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9138 else
9139 ac_cpp_err=
9140 fi
9141 else
9142 ac_cpp_err=yes
9143 fi
9144 if test -z "$ac_cpp_err"; then
9145 ac_header_preproc=yes
9146 else
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 ac_header_preproc=no
9151 fi
9152 rm -f conftest.err conftest.$ac_ext
9153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9154 echo "${ECHO_T}$ac_header_preproc" >&6
9155
9156 # So? What about this header?
9157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9158 yes:no: )
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9163 ac_header_preproc=yes
9164 ;;
9165 no:yes:* )
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9178 (
9179 cat <<\_ASBOX
9180 ## ------------------------------------------ ##
9181 ## Report this to the AC_PACKAGE_NAME lists. ##
9182 ## ------------------------------------------ ##
9183 _ASBOX
9184 ) |
9185 sed "s/^/$as_me: WARNING: /" >&2
9186 ;;
9187 esac
9188 echo "$as_me:$LINENO: checking for $ac_header" >&5
9189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193 eval "$as_ac_Header=\$ac_header_preproc"
9194 fi
9195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9197
9198 fi
9199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9200 cat >>confdefs.h <<_ACEOF
9201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9202 _ACEOF
9203
9204 fi
9205
9206 done
9207
9208
9209 for ac_header in sys/ioctl.h
9210 do
9211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9213 echo "$as_me:$LINENO: checking for $ac_header" >&5
9214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 fi
9218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9220 else
9221 # Is the header compilable?
9222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9224 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h. */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230 $ac_includes_default
9231 #include <$ac_header>
9232 _ACEOF
9233 rm -f conftest.$ac_objext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9235 (eval $ac_compile) 2>conftest.er1
9236 ac_status=$?
9237 grep -v '^ *+' conftest.er1 >conftest.err
9238 rm -f conftest.er1
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -z "$ac_c_werror_flag"
9243 || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try='test -s conftest.$ac_objext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 ac_header_compiler=yes
9256 else
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9259
9260 ac_header_compiler=no
9261 fi
9262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9264 echo "${ECHO_T}$ac_header_compiler" >&6
9265
9266 # Is the header present?
9267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 #include <$ac_header>
9276 _ACEOF
9277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9279 ac_status=$?
9280 grep -v '^ *+' conftest.er1 >conftest.err
9281 rm -f conftest.er1
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } >/dev/null; then
9285 if test -s conftest.err; then
9286 ac_cpp_err=$ac_c_preproc_warn_flag
9287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9288 else
9289 ac_cpp_err=
9290 fi
9291 else
9292 ac_cpp_err=yes
9293 fi
9294 if test -z "$ac_cpp_err"; then
9295 ac_header_preproc=yes
9296 else
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300 ac_header_preproc=no
9301 fi
9302 rm -f conftest.err conftest.$ac_ext
9303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9304 echo "${ECHO_T}$ac_header_preproc" >&6
9305
9306 # So? What about this header?
9307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9308 yes:no: )
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9313 ac_header_preproc=yes
9314 ;;
9315 no:yes:* )
9316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9328 (
9329 cat <<\_ASBOX
9330 ## ------------------------------------------ ##
9331 ## Report this to the AC_PACKAGE_NAME lists. ##
9332 ## ------------------------------------------ ##
9333 _ASBOX
9334 ) |
9335 sed "s/^/$as_me: WARNING: /" >&2
9336 ;;
9337 esac
9338 echo "$as_me:$LINENO: checking for $ac_header" >&5
9339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343 eval "$as_ac_Header=\$ac_header_preproc"
9344 fi
9345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9347
9348 fi
9349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9350 cat >>confdefs.h <<_ACEOF
9351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9352 _ACEOF
9353
9354 fi
9355
9356 done
9357
9358
9359 for ac_header in sys/param.h
9360 do
9361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9363 echo "$as_me:$LINENO: checking for $ac_header" >&5
9364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 fi
9368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9370 else
9371 # Is the header compilable?
9372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9374 cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h. */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 $ac_includes_default
9381 #include <$ac_header>
9382 _ACEOF
9383 rm -f conftest.$ac_objext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9385 (eval $ac_compile) 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -z "$ac_c_werror_flag"
9393 || test ! -s conftest.err'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 (eval $ac_try) 2>&5
9396 ac_status=$?
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; } &&
9399 { ac_try='test -s conftest.$ac_objext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 ac_header_compiler=yes
9406 else
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410 ac_header_compiler=no
9411 fi
9412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9414 echo "${ECHO_T}$ac_header_compiler" >&6
9415
9416 # Is the header present?
9417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9419 cat >conftest.$ac_ext <<_ACEOF
9420 /* confdefs.h. */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 #include <$ac_header>
9426 _ACEOF
9427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9429 ac_status=$?
9430 grep -v '^ *+' conftest.er1 >conftest.err
9431 rm -f conftest.er1
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } >/dev/null; then
9435 if test -s conftest.err; then
9436 ac_cpp_err=$ac_c_preproc_warn_flag
9437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9438 else
9439 ac_cpp_err=
9440 fi
9441 else
9442 ac_cpp_err=yes
9443 fi
9444 if test -z "$ac_cpp_err"; then
9445 ac_header_preproc=yes
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9449
9450 ac_header_preproc=no
9451 fi
9452 rm -f conftest.err conftest.$ac_ext
9453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9454 echo "${ECHO_T}$ac_header_preproc" >&6
9455
9456 # So? What about this header?
9457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9458 yes:no: )
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9463 ac_header_preproc=yes
9464 ;;
9465 no:yes:* )
9466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9478 (
9479 cat <<\_ASBOX
9480 ## ------------------------------------------ ##
9481 ## Report this to the AC_PACKAGE_NAME lists. ##
9482 ## ------------------------------------------ ##
9483 _ASBOX
9484 ) |
9485 sed "s/^/$as_me: WARNING: /" >&2
9486 ;;
9487 esac
9488 echo "$as_me:$LINENO: checking for $ac_header" >&5
9489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493 eval "$as_ac_Header=\$ac_header_preproc"
9494 fi
9495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9497
9498 fi
9499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9500 cat >>confdefs.h <<_ACEOF
9501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9502 _ACEOF
9503
9504 fi
9505
9506 done
9507
9508
9509 for ac_header in sys/resource.h
9510 do
9511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9513 echo "$as_me:$LINENO: checking for $ac_header" >&5
9514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 fi
9518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9520 else
9521 # Is the header compilable?
9522 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9524 cat >conftest.$ac_ext <<_ACEOF
9525 /* confdefs.h. */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 $ac_includes_default
9531 #include <$ac_header>
9532 _ACEOF
9533 rm -f conftest.$ac_objext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9535 (eval $ac_compile) 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag"
9543 || test ! -s conftest.err'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; } &&
9549 { ac_try='test -s conftest.$ac_objext'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 (eval $ac_try) 2>&5
9552 ac_status=$?
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; }; then
9555 ac_header_compiler=yes
9556 else
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560 ac_header_compiler=no
9561 fi
9562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9564 echo "${ECHO_T}$ac_header_compiler" >&6
9565
9566 # Is the header present?
9567 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9569 cat >conftest.$ac_ext <<_ACEOF
9570 /* confdefs.h. */
9571 _ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9575 #include <$ac_header>
9576 _ACEOF
9577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9579 ac_status=$?
9580 grep -v '^ *+' conftest.er1 >conftest.err
9581 rm -f conftest.er1
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } >/dev/null; then
9585 if test -s conftest.err; then
9586 ac_cpp_err=$ac_c_preproc_warn_flag
9587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9588 else
9589 ac_cpp_err=
9590 fi
9591 else
9592 ac_cpp_err=yes
9593 fi
9594 if test -z "$ac_cpp_err"; then
9595 ac_header_preproc=yes
9596 else
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 ac_header_preproc=no
9601 fi
9602 rm -f conftest.err conftest.$ac_ext
9603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9604 echo "${ECHO_T}$ac_header_preproc" >&6
9605
9606 # So? What about this header?
9607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9608 yes:no: )
9609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9613 ac_header_preproc=yes
9614 ;;
9615 no:yes:* )
9616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9628 (
9629 cat <<\_ASBOX
9630 ## ------------------------------------------ ##
9631 ## Report this to the AC_PACKAGE_NAME lists. ##
9632 ## ------------------------------------------ ##
9633 _ASBOX
9634 ) |
9635 sed "s/^/$as_me: WARNING: /" >&2
9636 ;;
9637 esac
9638 echo "$as_me:$LINENO: checking for $ac_header" >&5
9639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643 eval "$as_ac_Header=\$ac_header_preproc"
9644 fi
9645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9647
9648 fi
9649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9650 cat >>confdefs.h <<_ACEOF
9651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9652 _ACEOF
9653
9654 fi
9655
9656 done
9657
9658
9659 for ac_header in sys/proc.h
9660 do
9661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9662 echo "$as_me:$LINENO: checking for $ac_header" >&5
9663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 else
9667 cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h. */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9673 #if HAVE_SYS_PARAM_H
9674 # include <sys/param.h>
9675 #endif
9676
9677
9678 #include <$ac_header>
9679 _ACEOF
9680 rm -f conftest.$ac_objext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9682 (eval $ac_compile) 2>conftest.er1
9683 ac_status=$?
9684 grep -v '^ *+' conftest.er1 >conftest.err
9685 rm -f conftest.er1
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -z "$ac_c_werror_flag"
9690 || test ! -s conftest.err'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 (eval $ac_try) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest.$ac_objext'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 (eval $ac_try) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 eval "$as_ac_Header=yes"
9703 else
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9706
9707 eval "$as_ac_Header=no"
9708 fi
9709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9710 fi
9711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9714 cat >>confdefs.h <<_ACEOF
9715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9716 _ACEOF
9717
9718 fi
9719
9720 done
9721
9722
9723 for ac_header in sys/procfs.h
9724 do
9725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9727 echo "$as_me:$LINENO: checking for $ac_header" >&5
9728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 fi
9732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9734 else
9735 # Is the header compilable?
9736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9738 cat >conftest.$ac_ext <<_ACEOF
9739 /* confdefs.h. */
9740 _ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9744 $ac_includes_default
9745 #include <$ac_header>
9746 _ACEOF
9747 rm -f conftest.$ac_objext
9748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9749 (eval $ac_compile) 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag"
9757 || test ! -s conftest.err'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; } &&
9763 { ac_try='test -s conftest.$ac_objext'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_header_compiler=yes
9770 else
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9773
9774 ac_header_compiler=no
9775 fi
9776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9778 echo "${ECHO_T}$ac_header_compiler" >&6
9779
9780 # Is the header present?
9781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9783 cat >conftest.$ac_ext <<_ACEOF
9784 /* confdefs.h. */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9789 #include <$ac_header>
9790 _ACEOF
9791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } >/dev/null; then
9799 if test -s conftest.err; then
9800 ac_cpp_err=$ac_c_preproc_warn_flag
9801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9802 else
9803 ac_cpp_err=
9804 fi
9805 else
9806 ac_cpp_err=yes
9807 fi
9808 if test -z "$ac_cpp_err"; then
9809 ac_header_preproc=yes
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9813
9814 ac_header_preproc=no
9815 fi
9816 rm -f conftest.err conftest.$ac_ext
9817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9818 echo "${ECHO_T}$ac_header_preproc" >&6
9819
9820 # So? What about this header?
9821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9822 yes:no: )
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9827 ac_header_preproc=yes
9828 ;;
9829 no:yes:* )
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9842 (
9843 cat <<\_ASBOX
9844 ## ------------------------------------------ ##
9845 ## Report this to the AC_PACKAGE_NAME lists. ##
9846 ## ------------------------------------------ ##
9847 _ASBOX
9848 ) |
9849 sed "s/^/$as_me: WARNING: /" >&2
9850 ;;
9851 esac
9852 echo "$as_me:$LINENO: checking for $ac_header" >&5
9853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857 eval "$as_ac_Header=\$ac_header_preproc"
9858 fi
9859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9861
9862 fi
9863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9864 cat >>confdefs.h <<_ACEOF
9865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9866 _ACEOF
9867
9868 fi
9869
9870 done
9871
9872
9873
9874 for ac_header in sys/ptrace.h ptrace.h
9875 do
9876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9878 echo "$as_me:$LINENO: checking for $ac_header" >&5
9879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 fi
9883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9885 else
9886 # Is the header compilable?
9887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h. */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 $ac_includes_default
9896 #include <$ac_header>
9897 _ACEOF
9898 rm -f conftest.$ac_objext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900 (eval $ac_compile) 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag"
9908 || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest.$ac_objext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 ac_header_compiler=yes
9921 else
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9924
9925 ac_header_compiler=no
9926 fi
9927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9929 echo "${ECHO_T}$ac_header_compiler" >&6
9930
9931 # Is the header present?
9932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9934 cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h. */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9940 #include <$ac_header>
9941 _ACEOF
9942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9944 ac_status=$?
9945 grep -v '^ *+' conftest.er1 >conftest.err
9946 rm -f conftest.er1
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } >/dev/null; then
9950 if test -s conftest.err; then
9951 ac_cpp_err=$ac_c_preproc_warn_flag
9952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9953 else
9954 ac_cpp_err=
9955 fi
9956 else
9957 ac_cpp_err=yes
9958 fi
9959 if test -z "$ac_cpp_err"; then
9960 ac_header_preproc=yes
9961 else
9962 echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9964
9965 ac_header_preproc=no
9966 fi
9967 rm -f conftest.err conftest.$ac_ext
9968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9969 echo "${ECHO_T}$ac_header_preproc" >&6
9970
9971 # So? What about this header?
9972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9973 yes:no: )
9974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9978 ac_header_preproc=yes
9979 ;;
9980 no:yes:* )
9981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9993 (
9994 cat <<\_ASBOX
9995 ## ------------------------------------------ ##
9996 ## Report this to the AC_PACKAGE_NAME lists. ##
9997 ## ------------------------------------------ ##
9998 _ASBOX
9999 ) |
10000 sed "s/^/$as_me: WARNING: /" >&2
10001 ;;
10002 esac
10003 echo "$as_me:$LINENO: checking for $ac_header" >&5
10004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008 eval "$as_ac_Header=\$ac_header_preproc"
10009 fi
10010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10012
10013 fi
10014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10015 cat >>confdefs.h <<_ACEOF
10016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10017 _ACEOF
10018
10019 fi
10020
10021 done
10022
10023
10024
10025 for ac_header in sys/reg.h sys/debugreg.h
10026 do
10027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10029 echo "$as_me:$LINENO: checking for $ac_header" >&5
10030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 fi
10034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10036 else
10037 # Is the header compilable?
10038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 $ac_includes_default
10047 #include <$ac_header>
10048 _ACEOF
10049 rm -f conftest.$ac_objext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051 (eval $ac_compile) 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag"
10059 || test ! -s conftest.err'
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10062 ac_status=$?
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; } &&
10065 { ac_try='test -s conftest.$ac_objext'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 ac_header_compiler=yes
10072 else
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10075
10076 ac_header_compiler=no
10077 fi
10078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10080 echo "${ECHO_T}$ac_header_compiler" >&6
10081
10082 # Is the header present?
10083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10085 cat >conftest.$ac_ext <<_ACEOF
10086 /* confdefs.h. */
10087 _ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h. */
10091 #include <$ac_header>
10092 _ACEOF
10093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } >/dev/null; then
10101 if test -s conftest.err; then
10102 ac_cpp_err=$ac_c_preproc_warn_flag
10103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10104 else
10105 ac_cpp_err=
10106 fi
10107 else
10108 ac_cpp_err=yes
10109 fi
10110 if test -z "$ac_cpp_err"; then
10111 ac_header_preproc=yes
10112 else
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116 ac_header_preproc=no
10117 fi
10118 rm -f conftest.err conftest.$ac_ext
10119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10120 echo "${ECHO_T}$ac_header_preproc" >&6
10121
10122 # So? What about this header?
10123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10124 yes:no: )
10125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10129 ac_header_preproc=yes
10130 ;;
10131 no:yes:* )
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10144 (
10145 cat <<\_ASBOX
10146 ## ------------------------------------------ ##
10147 ## Report this to the AC_PACKAGE_NAME lists. ##
10148 ## ------------------------------------------ ##
10149 _ASBOX
10150 ) |
10151 sed "s/^/$as_me: WARNING: /" >&2
10152 ;;
10153 esac
10154 echo "$as_me:$LINENO: checking for $ac_header" >&5
10155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159 eval "$as_ac_Header=\$ac_header_preproc"
10160 fi
10161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10163
10164 fi
10165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10166 cat >>confdefs.h <<_ACEOF
10167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10168 _ACEOF
10169
10170 fi
10171
10172 done
10173
10174
10175 for ac_header in sys/select.h
10176 do
10177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10179 echo "$as_me:$LINENO: checking for $ac_header" >&5
10180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 fi
10184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10186 else
10187 # Is the header compilable?
10188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10190 cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h. */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10196 $ac_includes_default
10197 #include <$ac_header>
10198 _ACEOF
10199 rm -f conftest.$ac_objext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10201 (eval $ac_compile) 2>conftest.er1
10202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag"
10209 || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest.$ac_objext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 ac_header_compiler=yes
10222 else
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 ac_header_compiler=no
10227 fi
10228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10230 echo "${ECHO_T}$ac_header_compiler" >&6
10231
10232 # Is the header present?
10233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10235 cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h. */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 #include <$ac_header>
10242 _ACEOF
10243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10245 ac_status=$?
10246 grep -v '^ *+' conftest.er1 >conftest.err
10247 rm -f conftest.er1
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } >/dev/null; then
10251 if test -s conftest.err; then
10252 ac_cpp_err=$ac_c_preproc_warn_flag
10253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10254 else
10255 ac_cpp_err=
10256 fi
10257 else
10258 ac_cpp_err=yes
10259 fi
10260 if test -z "$ac_cpp_err"; then
10261 ac_header_preproc=yes
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_header_preproc=no
10267 fi
10268 rm -f conftest.err conftest.$ac_ext
10269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10270 echo "${ECHO_T}$ac_header_preproc" >&6
10271
10272 # So? What about this header?
10273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10274 yes:no: )
10275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10279 ac_header_preproc=yes
10280 ;;
10281 no:yes:* )
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10294 (
10295 cat <<\_ASBOX
10296 ## ------------------------------------------ ##
10297 ## Report this to the AC_PACKAGE_NAME lists. ##
10298 ## ------------------------------------------ ##
10299 _ASBOX
10300 ) |
10301 sed "s/^/$as_me: WARNING: /" >&2
10302 ;;
10303 esac
10304 echo "$as_me:$LINENO: checking for $ac_header" >&5
10305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309 eval "$as_ac_Header=\$ac_header_preproc"
10310 fi
10311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10313
10314 fi
10315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10316 cat >>confdefs.h <<_ACEOF
10317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10318 _ACEOF
10319
10320 fi
10321
10322 done
10323
10324
10325 for ac_header in sys/syscall.h
10326 do
10327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10329 echo "$as_me:$LINENO: checking for $ac_header" >&5
10330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 fi
10334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10336 else
10337 # Is the header compilable?
10338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10340 cat >conftest.$ac_ext <<_ACEOF
10341 /* confdefs.h. */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10346 $ac_includes_default
10347 #include <$ac_header>
10348 _ACEOF
10349 rm -f conftest.$ac_objext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10351 (eval $ac_compile) 2>conftest.er1
10352 ac_status=$?
10353 grep -v '^ *+' conftest.er1 >conftest.err
10354 rm -f conftest.er1
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
10358 { ac_try='test -z "$ac_c_werror_flag"
10359 || test ! -s conftest.err'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; } &&
10365 { ac_try='test -s conftest.$ac_objext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 ac_header_compiler=yes
10372 else
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10375
10376 ac_header_compiler=no
10377 fi
10378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10380 echo "${ECHO_T}$ac_header_compiler" >&6
10381
10382 # Is the header present?
10383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10385 cat >conftest.$ac_ext <<_ACEOF
10386 /* confdefs.h. */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391 #include <$ac_header>
10392 _ACEOF
10393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } >/dev/null; then
10401 if test -s conftest.err; then
10402 ac_cpp_err=$ac_c_preproc_warn_flag
10403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10404 else
10405 ac_cpp_err=
10406 fi
10407 else
10408 ac_cpp_err=yes
10409 fi
10410 if test -z "$ac_cpp_err"; then
10411 ac_header_preproc=yes
10412 else
10413 echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.$ac_ext >&5
10415
10416 ac_header_preproc=no
10417 fi
10418 rm -f conftest.err conftest.$ac_ext
10419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10420 echo "${ECHO_T}$ac_header_preproc" >&6
10421
10422 # So? What about this header?
10423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10424 yes:no: )
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10429 ac_header_preproc=yes
10430 ;;
10431 no:yes:* )
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10444 (
10445 cat <<\_ASBOX
10446 ## ------------------------------------------ ##
10447 ## Report this to the AC_PACKAGE_NAME lists. ##
10448 ## ------------------------------------------ ##
10449 _ASBOX
10450 ) |
10451 sed "s/^/$as_me: WARNING: /" >&2
10452 ;;
10453 esac
10454 echo "$as_me:$LINENO: checking for $ac_header" >&5
10455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10458 else
10459 eval "$as_ac_Header=\$ac_header_preproc"
10460 fi
10461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10463
10464 fi
10465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10466 cat >>confdefs.h <<_ACEOF
10467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10468 _ACEOF
10469
10470 fi
10471
10472 done
10473
10474
10475 for ac_header in sys/types.h
10476 do
10477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10479 echo "$as_me:$LINENO: checking for $ac_header" >&5
10480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 fi
10484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10486 else
10487 # Is the header compilable?
10488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10490 cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h. */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10496 $ac_includes_default
10497 #include <$ac_header>
10498 _ACEOF
10499 rm -f conftest.$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_header_compiler=yes
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 ac_header_compiler=no
10527 fi
10528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10530 echo "${ECHO_T}$ac_header_compiler" >&6
10531
10532 # Is the header present?
10533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h. */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 #include <$ac_header>
10542 _ACEOF
10543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } >/dev/null; then
10551 if test -s conftest.err; then
10552 ac_cpp_err=$ac_c_preproc_warn_flag
10553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10554 else
10555 ac_cpp_err=
10556 fi
10557 else
10558 ac_cpp_err=yes
10559 fi
10560 if test -z "$ac_cpp_err"; then
10561 ac_header_preproc=yes
10562 else
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 ac_header_preproc=no
10567 fi
10568 rm -f conftest.err conftest.$ac_ext
10569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10570 echo "${ECHO_T}$ac_header_preproc" >&6
10571
10572 # So? What about this header?
10573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10574 yes:no: )
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10579 ac_header_preproc=yes
10580 ;;
10581 no:yes:* )
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10594 (
10595 cat <<\_ASBOX
10596 ## ------------------------------------------ ##
10597 ## Report this to the AC_PACKAGE_NAME lists. ##
10598 ## ------------------------------------------ ##
10599 _ASBOX
10600 ) |
10601 sed "s/^/$as_me: WARNING: /" >&2
10602 ;;
10603 esac
10604 echo "$as_me:$LINENO: checking for $ac_header" >&5
10605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 else
10609 eval "$as_ac_Header=\$ac_header_preproc"
10610 fi
10611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10613
10614 fi
10615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10616 cat >>confdefs.h <<_ACEOF
10617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10618 _ACEOF
10619
10620 fi
10621
10622 done
10623
10624
10625 for ac_header in sys/user.h
10626 do
10627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10628 echo "$as_me:$LINENO: checking for $ac_header" >&5
10629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h. */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #if HAVE_SYS_PARAM_H
10640 # include <sys/param.h>
10641 #endif
10642
10643
10644 #include <$ac_header>
10645 _ACEOF
10646 rm -f conftest.$ac_objext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10648 (eval $ac_compile) 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -z "$ac_c_werror_flag"
10656 || test ! -s conftest.err'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try='test -s conftest.$ac_objext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 eval "$as_ac_Header=yes"
10669 else
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 eval "$as_ac_Header=no"
10674 fi
10675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10676 fi
10677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10680 cat >>confdefs.h <<_ACEOF
10681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10682 _ACEOF
10683
10684 fi
10685
10686 done
10687
10688
10689
10690 for ac_header in sys/wait.h wait.h
10691 do
10692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10694 echo "$as_me:$LINENO: checking for $ac_header" >&5
10695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 fi
10699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10701 else
10702 # Is the header compilable?
10703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10705 cat >conftest.$ac_ext <<_ACEOF
10706 /* confdefs.h. */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10711 $ac_includes_default
10712 #include <$ac_header>
10713 _ACEOF
10714 rm -f conftest.$ac_objext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10716 (eval $ac_compile) 2>conftest.er1
10717 ac_status=$?
10718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -z "$ac_c_werror_flag"
10724 || test ! -s conftest.err'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest.$ac_objext'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_header_compiler=yes
10737 else
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10740
10741 ac_header_compiler=no
10742 fi
10743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10745 echo "${ECHO_T}$ac_header_compiler" >&6
10746
10747 # Is the header present?
10748 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10750 cat >conftest.$ac_ext <<_ACEOF
10751 /* confdefs.h. */
10752 _ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10756 #include <$ac_header>
10757 _ACEOF
10758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10760 ac_status=$?
10761 grep -v '^ *+' conftest.er1 >conftest.err
10762 rm -f conftest.er1
10763 cat conftest.err >&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } >/dev/null; then
10766 if test -s conftest.err; then
10767 ac_cpp_err=$ac_c_preproc_warn_flag
10768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10769 else
10770 ac_cpp_err=
10771 fi
10772 else
10773 ac_cpp_err=yes
10774 fi
10775 if test -z "$ac_cpp_err"; then
10776 ac_header_preproc=yes
10777 else
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10780
10781 ac_header_preproc=no
10782 fi
10783 rm -f conftest.err conftest.$ac_ext
10784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10785 echo "${ECHO_T}$ac_header_preproc" >&6
10786
10787 # So? What about this header?
10788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10789 yes:no: )
10790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10794 ac_header_preproc=yes
10795 ;;
10796 no:yes:* )
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10809 (
10810 cat <<\_ASBOX
10811 ## ------------------------------------------ ##
10812 ## Report this to the AC_PACKAGE_NAME lists. ##
10813 ## ------------------------------------------ ##
10814 _ASBOX
10815 ) |
10816 sed "s/^/$as_me: WARNING: /" >&2
10817 ;;
10818 esac
10819 echo "$as_me:$LINENO: checking for $ac_header" >&5
10820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824 eval "$as_ac_Header=\$ac_header_preproc"
10825 fi
10826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10828
10829 fi
10830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10831 cat >>confdefs.h <<_ACEOF
10832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10833 _ACEOF
10834
10835 fi
10836
10837 done
10838
10839
10840
10841
10842 for ac_header in termios.h termio.h sgtty.h
10843 do
10844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10846 echo "$as_me:$LINENO: checking for $ac_header" >&5
10847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 fi
10851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10853 else
10854 # Is the header compilable?
10855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h. */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 $ac_includes_default
10864 #include <$ac_header>
10865 _ACEOF
10866 rm -f conftest.$ac_objext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868 (eval $ac_compile) 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -z "$ac_c_werror_flag"
10876 || test ! -s conftest.err'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10879 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; } &&
10882 { ac_try='test -s conftest.$ac_objext'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 ac_header_compiler=yes
10889 else
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10892
10893 ac_header_compiler=no
10894 fi
10895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10897 echo "${ECHO_T}$ac_header_compiler" >&6
10898
10899 # Is the header present?
10900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h. */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 #include <$ac_header>
10909 _ACEOF
10910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } >/dev/null; then
10918 if test -s conftest.err; then
10919 ac_cpp_err=$ac_c_preproc_warn_flag
10920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10921 else
10922 ac_cpp_err=
10923 fi
10924 else
10925 ac_cpp_err=yes
10926 fi
10927 if test -z "$ac_cpp_err"; then
10928 ac_header_preproc=yes
10929 else
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10932
10933 ac_header_preproc=no
10934 fi
10935 rm -f conftest.err conftest.$ac_ext
10936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10937 echo "${ECHO_T}$ac_header_preproc" >&6
10938
10939 # So? What about this header?
10940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10941 yes:no: )
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10946 ac_header_preproc=yes
10947 ;;
10948 no:yes:* )
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10961 (
10962 cat <<\_ASBOX
10963 ## ------------------------------------------ ##
10964 ## Report this to the AC_PACKAGE_NAME lists. ##
10965 ## ------------------------------------------ ##
10966 _ASBOX
10967 ) |
10968 sed "s/^/$as_me: WARNING: /" >&2
10969 ;;
10970 esac
10971 echo "$as_me:$LINENO: checking for $ac_header" >&5
10972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976 eval "$as_ac_Header=\$ac_header_preproc"
10977 fi
10978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10980
10981 fi
10982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10983 cat >>confdefs.h <<_ACEOF
10984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10985 _ACEOF
10986
10987 fi
10988
10989 done
10990
10991
10992 for ac_header in unistd.h
10993 do
10994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10996 echo "$as_me:$LINENO: checking for $ac_header" >&5
10997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 fi
11001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11003 else
11004 # Is the header compilable?
11005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 $ac_includes_default
11014 #include <$ac_header>
11015 _ACEOF
11016 rm -f conftest.$ac_objext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11018 (eval $ac_compile) 2>conftest.er1
11019 ac_status=$?
11020 grep -v '^ *+' conftest.er1 >conftest.err
11021 rm -f conftest.er1
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -z "$ac_c_werror_flag"
11026 || test ! -s conftest.err'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; } &&
11032 { ac_try='test -s conftest.$ac_objext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 ac_header_compiler=yes
11039 else
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 ac_header_compiler=no
11044 fi
11045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11047 echo "${ECHO_T}$ac_header_compiler" >&6
11048
11049 # Is the header present?
11050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11052 cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h. */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058 #include <$ac_header>
11059 _ACEOF
11060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11062 ac_status=$?
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } >/dev/null; then
11068 if test -s conftest.err; then
11069 ac_cpp_err=$ac_c_preproc_warn_flag
11070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11071 else
11072 ac_cpp_err=
11073 fi
11074 else
11075 ac_cpp_err=yes
11076 fi
11077 if test -z "$ac_cpp_err"; then
11078 ac_header_preproc=yes
11079 else
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083 ac_header_preproc=no
11084 fi
11085 rm -f conftest.err conftest.$ac_ext
11086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11087 echo "${ECHO_T}$ac_header_preproc" >&6
11088
11089 # So? What about this header?
11090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11091 yes:no: )
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11096 ac_header_preproc=yes
11097 ;;
11098 no:yes:* )
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11111 (
11112 cat <<\_ASBOX
11113 ## ------------------------------------------ ##
11114 ## Report this to the AC_PACKAGE_NAME lists. ##
11115 ## ------------------------------------------ ##
11116 _ASBOX
11117 ) |
11118 sed "s/^/$as_me: WARNING: /" >&2
11119 ;;
11120 esac
11121 echo "$as_me:$LINENO: checking for $ac_header" >&5
11122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126 eval "$as_ac_Header=\$ac_header_preproc"
11127 fi
11128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11130
11131 fi
11132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11133 cat >>confdefs.h <<_ACEOF
11134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11135 _ACEOF
11136
11137 fi
11138
11139 done
11140
11141
11142 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11143 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11144 # think that we don't have <curses.h> if we're using GCC.
11145 case $host_os in
11146 solaris2.[789])
11147 if test "$GCC" = yes; then
11148
11149 cat >>confdefs.h <<\_ACEOF
11150 #define _MSE_INT_H 1
11151 _ACEOF
11152
11153 fi ;;
11154 esac
11155
11156
11157
11158
11159 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
11160 do
11161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11163 echo "$as_me:$LINENO: checking for $ac_header" >&5
11164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 fi
11168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11170 else
11171 # Is the header compilable?
11172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11174 cat >conftest.$ac_ext <<_ACEOF
11175 /* confdefs.h. */
11176 _ACEOF
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h. */
11180 $ac_includes_default
11181 #include <$ac_header>
11182 _ACEOF
11183 rm -f conftest.$ac_objext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185 (eval $ac_compile) 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try='test -z "$ac_c_werror_flag"
11193 || test ! -s conftest.err'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; } &&
11199 { ac_try='test -s conftest.$ac_objext'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 ac_header_compiler=yes
11206 else
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11209
11210 ac_header_compiler=no
11211 fi
11212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11214 echo "${ECHO_T}$ac_header_compiler" >&6
11215
11216 # Is the header present?
11217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11219 cat >conftest.$ac_ext <<_ACEOF
11220 /* confdefs.h. */
11221 _ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11225 #include <$ac_header>
11226 _ACEOF
11227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } >/dev/null; then
11235 if test -s conftest.err; then
11236 ac_cpp_err=$ac_c_preproc_warn_flag
11237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11238 else
11239 ac_cpp_err=
11240 fi
11241 else
11242 ac_cpp_err=yes
11243 fi
11244 if test -z "$ac_cpp_err"; then
11245 ac_header_preproc=yes
11246 else
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11249
11250 ac_header_preproc=no
11251 fi
11252 rm -f conftest.err conftest.$ac_ext
11253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11254 echo "${ECHO_T}$ac_header_preproc" >&6
11255
11256 # So? What about this header?
11257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11258 yes:no: )
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11263 ac_header_preproc=yes
11264 ;;
11265 no:yes:* )
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11278 (
11279 cat <<\_ASBOX
11280 ## ------------------------------------------ ##
11281 ## Report this to the AC_PACKAGE_NAME lists. ##
11282 ## ------------------------------------------ ##
11283 _ASBOX
11284 ) |
11285 sed "s/^/$as_me: WARNING: /" >&2
11286 ;;
11287 esac
11288 echo "$as_me:$LINENO: checking for $ac_header" >&5
11289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 else
11293 eval "$as_ac_Header=\$ac_header_preproc"
11294 fi
11295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11297
11298 fi
11299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11300 cat >>confdefs.h <<_ACEOF
11301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11302 _ACEOF
11303
11304 fi
11305
11306 done
11307
11308
11309 for ac_header in ncurses/term.h
11310 do
11311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11313 echo "$as_me:$LINENO: checking for $ac_header" >&5
11314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 fi
11318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11320 else
11321 # Is the header compilable?
11322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11324 cat >conftest.$ac_ext <<_ACEOF
11325 /* confdefs.h. */
11326 _ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 $ac_includes_default
11331 #include <$ac_header>
11332 _ACEOF
11333 rm -f conftest.$ac_objext
11334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11335 (eval $ac_compile) 2>conftest.er1
11336 ac_status=$?
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -z "$ac_c_werror_flag"
11343 || test ! -s conftest.err'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; } &&
11349 { ac_try='test -s conftest.$ac_objext'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 ac_header_compiler=yes
11356 else
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11359
11360 ac_header_compiler=no
11361 fi
11362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11364 echo "${ECHO_T}$ac_header_compiler" >&6
11365
11366 # Is the header present?
11367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h. */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 #include <$ac_header>
11376 _ACEOF
11377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11379 ac_status=$?
11380 grep -v '^ *+' conftest.er1 >conftest.err
11381 rm -f conftest.er1
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } >/dev/null; then
11385 if test -s conftest.err; then
11386 ac_cpp_err=$ac_c_preproc_warn_flag
11387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11388 else
11389 ac_cpp_err=
11390 fi
11391 else
11392 ac_cpp_err=yes
11393 fi
11394 if test -z "$ac_cpp_err"; then
11395 ac_header_preproc=yes
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11399
11400 ac_header_preproc=no
11401 fi
11402 rm -f conftest.err conftest.$ac_ext
11403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11404 echo "${ECHO_T}$ac_header_preproc" >&6
11405
11406 # So? What about this header?
11407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11408 yes:no: )
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11413 ac_header_preproc=yes
11414 ;;
11415 no:yes:* )
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11428 (
11429 cat <<\_ASBOX
11430 ## ------------------------------------------ ##
11431 ## Report this to the AC_PACKAGE_NAME lists. ##
11432 ## ------------------------------------------ ##
11433 _ASBOX
11434 ) |
11435 sed "s/^/$as_me: WARNING: /" >&2
11436 ;;
11437 esac
11438 echo "$as_me:$LINENO: checking for $ac_header" >&5
11439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443 eval "$as_ac_Header=\$ac_header_preproc"
11444 fi
11445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11447
11448 fi
11449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11450 cat >>confdefs.h <<_ACEOF
11451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11452 _ACEOF
11453
11454 fi
11455
11456 done
11457
11458
11459 for ac_header in term.h
11460 do
11461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11462 echo "$as_me:$LINENO: checking for $ac_header" >&5
11463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467 cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h. */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 #if HAVE_CURSES_H
11474 # include <curses.h>
11475 #endif
11476
11477
11478 #include <$ac_header>
11479 _ACEOF
11480 rm -f conftest.$ac_objext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482 (eval $ac_compile) 2>conftest.er1
11483 ac_status=$?
11484 grep -v '^ *+' conftest.er1 >conftest.err
11485 rm -f conftest.er1
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try='test -z "$ac_c_werror_flag"
11490 || test ! -s conftest.err'
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; } &&
11496 { ac_try='test -s conftest.$ac_objext'
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; }; then
11502 eval "$as_ac_Header=yes"
11503 else
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11506
11507 eval "$as_ac_Header=no"
11508 fi
11509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11510 fi
11511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11514 cat >>confdefs.h <<_ACEOF
11515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11516 _ACEOF
11517
11518 fi
11519
11520 done
11521
11522
11523 # Check for HP/UX 64-bit shared library support
11524
11525 for ac_header in elf_hp.h
11526 do
11527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11529 echo "$as_me:$LINENO: checking for $ac_header" >&5
11530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 fi
11534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11536 else
11537 # Is the header compilable?
11538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h. */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 $ac_includes_default
11547 #include <$ac_header>
11548 _ACEOF
11549 rm -f conftest.$ac_objext
11550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11551 (eval $ac_compile) 2>conftest.er1
11552 ac_status=$?
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -z "$ac_c_werror_flag"
11559 || test ! -s conftest.err'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest.$ac_objext'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 ac_header_compiler=yes
11572 else
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11575
11576 ac_header_compiler=no
11577 fi
11578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11580 echo "${ECHO_T}$ac_header_compiler" >&6
11581
11582 # Is the header present?
11583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11585 cat >conftest.$ac_ext <<_ACEOF
11586 /* confdefs.h. */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 #include <$ac_header>
11592 _ACEOF
11593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11595 ac_status=$?
11596 grep -v '^ *+' conftest.er1 >conftest.err
11597 rm -f conftest.er1
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } >/dev/null; then
11601 if test -s conftest.err; then
11602 ac_cpp_err=$ac_c_preproc_warn_flag
11603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11604 else
11605 ac_cpp_err=
11606 fi
11607 else
11608 ac_cpp_err=yes
11609 fi
11610 if test -z "$ac_cpp_err"; then
11611 ac_header_preproc=yes
11612 else
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11615
11616 ac_header_preproc=no
11617 fi
11618 rm -f conftest.err conftest.$ac_ext
11619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11620 echo "${ECHO_T}$ac_header_preproc" >&6
11621
11622 # So? What about this header?
11623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11624 yes:no: )
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11629 ac_header_preproc=yes
11630 ;;
11631 no:yes:* )
11632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11644 (
11645 cat <<\_ASBOX
11646 ## ------------------------------------------ ##
11647 ## Report this to the AC_PACKAGE_NAME lists. ##
11648 ## ------------------------------------------ ##
11649 _ASBOX
11650 ) |
11651 sed "s/^/$as_me: WARNING: /" >&2
11652 ;;
11653 esac
11654 echo "$as_me:$LINENO: checking for $ac_header" >&5
11655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659 eval "$as_ac_Header=\$ac_header_preproc"
11660 fi
11661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11663
11664 fi
11665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11666 cat >>confdefs.h <<_ACEOF
11667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11668 _ACEOF
11669
11670 fi
11671
11672 done
11673
11674
11675 # FIXME: kettenis/20030102: In most cases we include these
11676 # unconditionally, so what's the point in checking these?
11677
11678
11679 for ac_header in ctype.h time.h
11680 do
11681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11683 echo "$as_me:$LINENO: checking for $ac_header" >&5
11684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 fi
11688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11690 else
11691 # Is the header compilable?
11692 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h. */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 $ac_includes_default
11701 #include <$ac_header>
11702 _ACEOF
11703 rm -f conftest.$ac_objext
11704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11705 (eval $ac_compile) 2>conftest.er1
11706 ac_status=$?
11707 grep -v '^ *+' conftest.er1 >conftest.err
11708 rm -f conftest.er1
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -z "$ac_c_werror_flag"
11713 || test ! -s conftest.err'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; } &&
11719 { ac_try='test -s conftest.$ac_objext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 ac_header_compiler=yes
11726 else
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11729
11730 ac_header_compiler=no
11731 fi
11732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11734 echo "${ECHO_T}$ac_header_compiler" >&6
11735
11736 # Is the header present?
11737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11739 cat >conftest.$ac_ext <<_ACEOF
11740 /* confdefs.h. */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 #include <$ac_header>
11746 _ACEOF
11747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } >/dev/null; then
11755 if test -s conftest.err; then
11756 ac_cpp_err=$ac_c_preproc_warn_flag
11757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11758 else
11759 ac_cpp_err=
11760 fi
11761 else
11762 ac_cpp_err=yes
11763 fi
11764 if test -z "$ac_cpp_err"; then
11765 ac_header_preproc=yes
11766 else
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11769
11770 ac_header_preproc=no
11771 fi
11772 rm -f conftest.err conftest.$ac_ext
11773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11774 echo "${ECHO_T}$ac_header_preproc" >&6
11775
11776 # So? What about this header?
11777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11778 yes:no: )
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11783 ac_header_preproc=yes
11784 ;;
11785 no:yes:* )
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11798 (
11799 cat <<\_ASBOX
11800 ## ------------------------------------------ ##
11801 ## Report this to the AC_PACKAGE_NAME lists. ##
11802 ## ------------------------------------------ ##
11803 _ASBOX
11804 ) |
11805 sed "s/^/$as_me: WARNING: /" >&2
11806 ;;
11807 esac
11808 echo "$as_me:$LINENO: checking for $ac_header" >&5
11809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 else
11813 eval "$as_ac_Header=\$ac_header_preproc"
11814 fi
11815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11817
11818 fi
11819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11820 cat >>confdefs.h <<_ACEOF
11821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11822 _ACEOF
11823
11824 fi
11825
11826 done
11827
11828
11829 # Create a header we can use portably to get the standard integer types.
11830
11831
11832 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11833
11834 acx_cv_header_stdint=stddef.h
11835 acx_cv_header_stdint_kind="(already complete)"
11836 for i in stdint.h $inttype_headers; do
11837 unset ac_cv_type_uintptr_t
11838 unset ac_cv_type_uintmax_t
11839 unset ac_cv_type_int_least32_t
11840 unset ac_cv_type_int_fast32_t
11841 unset ac_cv_type_uint64_t
11842 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
11843 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11844 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
11845 if test "${ac_cv_type_uintmax_t+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 else
11848 cat >conftest.$ac_ext <<_ACEOF
11849 /* confdefs.h. */
11850 _ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11854 #include <sys/types.h>
11855 #include <$i>
11856
11857 int
11858 main ()
11859 {
11860 if ((uintmax_t *) 0)
11861 return 0;
11862 if (sizeof (uintmax_t))
11863 return 0;
11864 ;
11865 return 0;
11866 }
11867 _ACEOF
11868 rm -f conftest.$ac_objext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 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); } &&
11877 { ac_try='test -z "$ac_c_werror_flag"
11878 || test ! -s conftest.err'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; } &&
11884 { ac_try='test -s conftest.$ac_objext'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; }; then
11890 ac_cv_type_uintmax_t=yes
11891 else
11892 echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11894
11895 ac_cv_type_uintmax_t=no
11896 fi
11897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11898 fi
11899 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11900 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
11901 if test $ac_cv_type_uintmax_t = yes; then
11902 acx_cv_header_stdint=$i
11903 else
11904 continue
11905 fi
11906
11907 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11908 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11909 if test "${ac_cv_type_uintptr_t+set}" = set; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 else
11912 cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h. */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918 #include <sys/types.h>
11919 #include <$i>
11920
11921 int
11922 main ()
11923 {
11924 if ((uintptr_t *) 0)
11925 return 0;
11926 if (sizeof (uintptr_t))
11927 return 0;
11928 ;
11929 return 0;
11930 }
11931 _ACEOF
11932 rm -f conftest.$ac_objext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11934 (eval $ac_compile) 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag"
11942 || test ! -s conftest.err'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } &&
11948 { ac_try='test -s conftest.$ac_objext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_type_uintptr_t=yes
11955 else
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959 ac_cv_type_uintptr_t=no
11960 fi
11961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11962 fi
11963 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11964 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11965 if test $ac_cv_type_uintptr_t = yes; then
11966 :
11967 else
11968 acx_cv_header_stdint_kind="(mostly complete)"
11969 fi
11970
11971 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11972 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
11973 if test "${ac_cv_type_int_least32_t+set}" = set; then
11974 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 else
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h. */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 #include <sys/types.h>
11983 #include <$i>
11984
11985 int
11986 main ()
11987 {
11988 if ((int_least32_t *) 0)
11989 return 0;
11990 if (sizeof (int_least32_t))
11991 return 0;
11992 ;
11993 return 0;
11994 }
11995 _ACEOF
11996 rm -f conftest.$ac_objext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11998 (eval $ac_compile) 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -z "$ac_c_werror_flag"
12006 || test ! -s conftest.err'
12007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008 (eval $ac_try) 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; } &&
12012 { ac_try='test -s conftest.$ac_objext'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 ac_cv_type_int_least32_t=yes
12019 else
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 ac_cv_type_int_least32_t=no
12024 fi
12025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12026 fi
12027 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
12028 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
12029 if test $ac_cv_type_int_least32_t = yes; then
12030 :
12031 else
12032 acx_cv_header_stdint_kind="(mostly complete)"
12033 fi
12034
12035 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
12036 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
12037 if test "${ac_cv_type_int_fast32_t+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12039 else
12040 cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h. */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 #include <sys/types.h>
12047 #include <$i>
12048
12049 int
12050 main ()
12051 {
12052 if ((int_fast32_t *) 0)
12053 return 0;
12054 if (sizeof (int_fast32_t))
12055 return 0;
12056 ;
12057 return 0;
12058 }
12059 _ACEOF
12060 rm -f conftest.$ac_objext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12062 (eval $ac_compile) 2>conftest.er1
12063 ac_status=$?
12064 grep -v '^ *+' conftest.er1 >conftest.err
12065 rm -f conftest.er1
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try='test -z "$ac_c_werror_flag"
12070 || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest.$ac_objext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_type_int_fast32_t=yes
12083 else
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 ac_cv_type_int_fast32_t=no
12088 fi
12089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12090 fi
12091 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
12092 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
12093 if test $ac_cv_type_int_fast32_t = yes; then
12094 :
12095 else
12096 acx_cv_header_stdint_kind="(mostly complete)"
12097 fi
12098
12099 echo "$as_me:$LINENO: checking for uint64_t" >&5
12100 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12101 if test "${ac_cv_type_uint64_t+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 #include <sys/types.h>
12111 #include <$i>
12112
12113 int
12114 main ()
12115 {
12116 if ((uint64_t *) 0)
12117 return 0;
12118 if (sizeof (uint64_t))
12119 return 0;
12120 ;
12121 return 0;
12122 }
12123 _ACEOF
12124 rm -f conftest.$ac_objext
12125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12126 (eval $ac_compile) 2>conftest.er1
12127 ac_status=$?
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } &&
12133 { ac_try='test -z "$ac_c_werror_flag"
12134 || test ! -s conftest.err'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; } &&
12140 { ac_try='test -s conftest.$ac_objext'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_cv_type_uint64_t=yes
12147 else
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 ac_cv_type_uint64_t=no
12152 fi
12153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12154 fi
12155 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12156 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12157 if test $ac_cv_type_uint64_t = yes; then
12158 :
12159 else
12160 acx_cv_header_stdint_kind="(lacks uint64_t)"
12161 fi
12162
12163 break
12164 done
12165 if test "$acx_cv_header_stdint" = stddef.h; then
12166 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12167 for i in stdint.h $inttype_headers; do
12168 unset ac_cv_type_uintptr_t
12169 unset ac_cv_type_uint32_t
12170 unset ac_cv_type_uint64_t
12171 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
12172 echo "$as_me:$LINENO: checking for uint32_t" >&5
12173 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
12174 if test "${ac_cv_type_uint32_t+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 #include <sys/types.h>
12184 #include <$i>
12185
12186 int
12187 main ()
12188 {
12189 if ((uint32_t *) 0)
12190 return 0;
12191 if (sizeof (uint32_t))
12192 return 0;
12193 ;
12194 return 0;
12195 }
12196 _ACEOF
12197 rm -f conftest.$ac_objext
12198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12199 (eval $ac_compile) 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_c_werror_flag"
12207 || test ! -s conftest.err'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest.$ac_objext'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 ac_cv_type_uint32_t=yes
12220 else
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224 ac_cv_type_uint32_t=no
12225 fi
12226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12227 fi
12228 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
12229 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
12230 if test $ac_cv_type_uint32_t = yes; then
12231 acx_cv_header_stdint=$i
12232 else
12233 continue
12234 fi
12235
12236 echo "$as_me:$LINENO: checking for uint64_t" >&5
12237 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12238 if test "${ac_cv_type_uint64_t+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 #include <sys/types.h>
12248 #include <$i>
12249
12250 int
12251 main ()
12252 {
12253 if ((uint64_t *) 0)
12254 return 0;
12255 if (sizeof (uint64_t))
12256 return 0;
12257 ;
12258 return 0;
12259 }
12260 _ACEOF
12261 rm -f conftest.$ac_objext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12263 (eval $ac_compile) 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -z "$ac_c_werror_flag"
12271 || test ! -s conftest.err'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; } &&
12277 { ac_try='test -s conftest.$ac_objext'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; }; then
12283 ac_cv_type_uint64_t=yes
12284 else
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12287
12288 ac_cv_type_uint64_t=no
12289 fi
12290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12291 fi
12292 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12293 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12294
12295 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12296 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12297 if test "${ac_cv_type_uintptr_t+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300 cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h. */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12306 #include <sys/types.h>
12307 #include <$i>
12308
12309 int
12310 main ()
12311 {
12312 if ((uintptr_t *) 0)
12313 return 0;
12314 if (sizeof (uintptr_t))
12315 return 0;
12316 ;
12317 return 0;
12318 }
12319 _ACEOF
12320 rm -f conftest.$ac_objext
12321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12322 (eval $ac_compile) 2>conftest.er1
12323 ac_status=$?
12324 grep -v '^ *+' conftest.er1 >conftest.err
12325 rm -f conftest.er1
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } &&
12329 { ac_try='test -z "$ac_c_werror_flag"
12330 || test ! -s conftest.err'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; } &&
12336 { ac_try='test -s conftest.$ac_objext'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 ac_cv_type_uintptr_t=yes
12343 else
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12346
12347 ac_cv_type_uintptr_t=no
12348 fi
12349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12350 fi
12351 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12352 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12353
12354 break
12355 done
12356 fi
12357 if test "$acx_cv_header_stdint" = stddef.h; then
12358 acx_cv_header_stdint_kind="(u_intXX_t style)"
12359 for i in sys/types.h $inttype_headers; do
12360 unset ac_cv_type_u_int32_t
12361 unset ac_cv_type_u_int64_t
12362 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
12363 echo "$as_me:$LINENO: checking for u_int32_t" >&5
12364 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
12365 if test "${ac_cv_type_u_int32_t+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367 else
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 #include <sys/types.h>
12375 #include <$i>
12376
12377 int
12378 main ()
12379 {
12380 if ((u_int32_t *) 0)
12381 return 0;
12382 if (sizeof (u_int32_t))
12383 return 0;
12384 ;
12385 return 0;
12386 }
12387 _ACEOF
12388 rm -f conftest.$ac_objext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390 (eval $ac_compile) 2>conftest.er1
12391 ac_status=$?
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try='test -z "$ac_c_werror_flag"
12398 || test ! -s conftest.err'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; } &&
12404 { ac_try='test -s conftest.$ac_objext'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 ac_cv_type_u_int32_t=yes
12411 else
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415 ac_cv_type_u_int32_t=no
12416 fi
12417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12418 fi
12419 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12420 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
12421 if test $ac_cv_type_u_int32_t = yes; then
12422 acx_cv_header_stdint=$i
12423 else
12424 continue
12425 fi
12426
12427 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12428 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12429 if test "${ac_cv_type_u_int64_t+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 else
12432 cat >conftest.$ac_ext <<_ACEOF
12433 /* confdefs.h. */
12434 _ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12438 #include <sys/types.h>
12439 #include <$i>
12440
12441 int
12442 main ()
12443 {
12444 if ((u_int64_t *) 0)
12445 return 0;
12446 if (sizeof (u_int64_t))
12447 return 0;
12448 ;
12449 return 0;
12450 }
12451 _ACEOF
12452 rm -f conftest.$ac_objext
12453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12454 (eval $ac_compile) 2>conftest.er1
12455 ac_status=$?
12456 grep -v '^ *+' conftest.er1 >conftest.err
12457 rm -f conftest.er1
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -z "$ac_c_werror_flag"
12462 || test ! -s conftest.err'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; } &&
12468 { ac_try='test -s conftest.$ac_objext'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 ac_cv_type_u_int64_t=yes
12475 else
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12478
12479 ac_cv_type_u_int64_t=no
12480 fi
12481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12482 fi
12483 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12484 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
12485
12486 break
12487 done
12488 fi
12489 if test "$acx_cv_header_stdint" = stddef.h; then
12490 acx_cv_header_stdint_kind="(using manual detection)"
12491 fi
12492
12493 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12494 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12495 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12496 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12497 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12498
12499 # ----------------- Summarize what we found so far
12500
12501 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12502 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
12503
12504 case `$as_basename gdb_stdint.h ||
12505 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12506 Xgdb_stdint.h : 'X\(//\)$' \| \
12507 Xgdb_stdint.h : 'X\(/\)$' \| \
12508 . : '\(.\)' 2>/dev/null ||
12509 echo X/gdb_stdint.h |
12510 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12511 /^X\/\(\/\/\)$/{ s//\1/; q; }
12512 /^X\/\(\/\).*/{ s//\1/; q; }
12513 s/.*/./; q'` in
12514 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12515 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12516 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12517 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12518 *) ;;
12519 esac
12520
12521 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12522 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
12523
12524 # ----------------- done included file, check C basic types --------
12525
12526 # Lacking an uintptr_t? Test size of void *
12527 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12528 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12529 echo $ECHO_N "checking for void *... $ECHO_C" >&6
12530 if test "${ac_cv_type_void_p+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533 cat >conftest.$ac_ext <<_ACEOF
12534 /* confdefs.h. */
12535 _ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12539 $ac_includes_default
12540 int
12541 main ()
12542 {
12543 if ((void * *) 0)
12544 return 0;
12545 if (sizeof (void *))
12546 return 0;
12547 ;
12548 return 0;
12549 }
12550 _ACEOF
12551 rm -f conftest.$ac_objext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12553 (eval $ac_compile) 2>conftest.er1
12554 ac_status=$?
12555 grep -v '^ *+' conftest.er1 >conftest.err
12556 rm -f conftest.er1
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try='test -z "$ac_c_werror_flag"
12561 || test ! -s conftest.err'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; } &&
12567 { ac_try='test -s conftest.$ac_objext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 ac_cv_type_void_p=yes
12574 else
12575 echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12577
12578 ac_cv_type_void_p=no
12579 fi
12580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12581 fi
12582 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12583 echo "${ECHO_T}$ac_cv_type_void_p" >&6
12584
12585 echo "$as_me:$LINENO: checking size of void *" >&5
12586 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12587 if test "${ac_cv_sizeof_void_p+set}" = set; then
12588 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 else
12590 if test "$ac_cv_type_void_p" = yes; then
12591 # The cast to unsigned long works around a bug in the HP C Compiler
12592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12594 # This bug is HP SR number 8606223364.
12595 if test "$cross_compiling" = yes; then
12596 # Depending upon the size, compute the lo and hi bounds.
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h. */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 $ac_includes_default
12604 int
12605 main ()
12606 {
12607 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
12608 test_array [0] = 0
12609
12610 ;
12611 return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616 (eval $ac_compile) 2>conftest.er1
12617 ac_status=$?
12618 grep -v '^ *+' conftest.er1 >conftest.err
12619 rm -f conftest.er1
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
12623 { ac_try='test -z "$ac_c_werror_flag"
12624 || test ! -s conftest.err'
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest.$ac_objext'
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 ac_lo=0 ac_mid=0
12637 while :; do
12638 cat >conftest.$ac_ext <<_ACEOF
12639 /* confdefs.h. */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12644 $ac_includes_default
12645 int
12646 main ()
12647 {
12648 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12649 test_array [0] = 0
12650
12651 ;
12652 return 0;
12653 }
12654 _ACEOF
12655 rm -f conftest.$ac_objext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657 (eval $ac_compile) 2>conftest.er1
12658 ac_status=$?
12659 grep -v '^ *+' conftest.er1 >conftest.err
12660 rm -f conftest.er1
12661 cat conftest.err >&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } &&
12664 { ac_try='test -z "$ac_c_werror_flag"
12665 || test ! -s conftest.err'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; } &&
12671 { ac_try='test -s conftest.$ac_objext'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
12677 ac_hi=$ac_mid; break
12678 else
12679 echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12681
12682 ac_lo=`expr $ac_mid + 1`
12683 if test $ac_lo -le $ac_mid; then
12684 ac_lo= ac_hi=
12685 break
12686 fi
12687 ac_mid=`expr 2 '*' $ac_mid + 1`
12688 fi
12689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12690 done
12691 else
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 cat >conftest.$ac_ext <<_ACEOF
12696 /* confdefs.h. */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12701 $ac_includes_default
12702 int
12703 main ()
12704 {
12705 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
12706 test_array [0] = 0
12707
12708 ;
12709 return 0;
12710 }
12711 _ACEOF
12712 rm -f conftest.$ac_objext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714 (eval $ac_compile) 2>conftest.er1
12715 ac_status=$?
12716 grep -v '^ *+' conftest.er1 >conftest.err
12717 rm -f conftest.er1
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
12721 { ac_try='test -z "$ac_c_werror_flag"
12722 || test ! -s conftest.err'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; } &&
12728 { ac_try='test -s conftest.$ac_objext'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; }; then
12734 ac_hi=-1 ac_mid=-1
12735 while :; do
12736 cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h. */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12742 $ac_includes_default
12743 int
12744 main ()
12745 {
12746 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
12747 test_array [0] = 0
12748
12749 ;
12750 return 0;
12751 }
12752 _ACEOF
12753 rm -f conftest.$ac_objext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>conftest.er1
12756 ac_status=$?
12757 grep -v '^ *+' conftest.er1 >conftest.err
12758 rm -f conftest.er1
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -z "$ac_c_werror_flag"
12763 || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest.$ac_objext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_lo=$ac_mid; break
12776 else
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780 ac_hi=`expr '(' $ac_mid ')' - 1`
12781 if test $ac_mid -le $ac_hi; then
12782 ac_lo= ac_hi=
12783 break
12784 fi
12785 ac_mid=`expr 2 '*' $ac_mid`
12786 fi
12787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12788 done
12789 else
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12792
12793 ac_lo= ac_hi=
12794 fi
12795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12796 fi
12797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12798 # Binary search between lo and hi bounds.
12799 while test "x$ac_lo" != "x$ac_hi"; do
12800 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12801 cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h. */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12807 $ac_includes_default
12808 int
12809 main ()
12810 {
12811 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12812 test_array [0] = 0
12813
12814 ;
12815 return 0;
12816 }
12817 _ACEOF
12818 rm -f conftest.$ac_objext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -z "$ac_c_werror_flag"
12828 || test ! -s conftest.err'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; } &&
12834 { ac_try='test -s conftest.$ac_objext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 ac_hi=$ac_mid
12841 else
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12844
12845 ac_lo=`expr '(' $ac_mid ')' + 1`
12846 fi
12847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12848 done
12849 case $ac_lo in
12850 ?*) ac_cv_sizeof_void_p=$ac_lo;;
12851 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12852 See \`config.log' for more details." >&5
12853 echo "$as_me: error: cannot compute sizeof (void *), 77
12854 See \`config.log' for more details." >&2;}
12855 { (exit 1); exit 1; }; } ;;
12856 esac
12857 else
12858 if test "$cross_compiling" = yes; then
12859 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12860 See \`config.log' for more details." >&5
12861 echo "$as_me: error: cannot run test program while cross compiling
12862 See \`config.log' for more details." >&2;}
12863 { (exit 1); exit 1; }; }
12864 else
12865 cat >conftest.$ac_ext <<_ACEOF
12866 /* confdefs.h. */
12867 _ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12871 $ac_includes_default
12872 long longval () { return (long) (sizeof (void *)); }
12873 unsigned long ulongval () { return (long) (sizeof (void *)); }
12874 #include <stdio.h>
12875 #include <stdlib.h>
12876 int
12877 main ()
12878 {
12879
12880 FILE *f = fopen ("conftest.val", "w");
12881 if (! f)
12882 exit (1);
12883 if (((long) (sizeof (void *))) < 0)
12884 {
12885 long i = longval ();
12886 if (i != ((long) (sizeof (void *))))
12887 exit (1);
12888 fprintf (f, "%ld\n", i);
12889 }
12890 else
12891 {
12892 unsigned long i = ulongval ();
12893 if (i != ((long) (sizeof (void *))))
12894 exit (1);
12895 fprintf (f, "%lu\n", i);
12896 }
12897 exit (ferror (f) || fclose (f) != 0);
12898
12899 ;
12900 return 0;
12901 }
12902 _ACEOF
12903 rm -f conftest$ac_exeext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12905 (eval $ac_link) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 ac_cv_sizeof_void_p=`cat conftest.val`
12915 else
12916 echo "$as_me: program exited with status $ac_status" >&5
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920 ( exit $ac_status )
12921 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12922 See \`config.log' for more details." >&5
12923 echo "$as_me: error: cannot compute sizeof (void *), 77
12924 See \`config.log' for more details." >&2;}
12925 { (exit 1); exit 1; }; }
12926 fi
12927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12928 fi
12929 fi
12930 rm -f conftest.val
12931 else
12932 ac_cv_sizeof_void_p=0
12933 fi
12934 fi
12935 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12936 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12937 cat >>confdefs.h <<_ACEOF
12938 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12939 _ACEOF
12940
12941 ;;
12942 esac
12943
12944 # Lacking an uint64_t? Test size of long
12945 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12946 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12947 echo $ECHO_N "checking for long... $ECHO_C" >&6
12948 if test "${ac_cv_type_long+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 else
12951 cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h. */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 $ac_includes_default
12958 int
12959 main ()
12960 {
12961 if ((long *) 0)
12962 return 0;
12963 if (sizeof (long))
12964 return 0;
12965 ;
12966 return 0;
12967 }
12968 _ACEOF
12969 rm -f conftest.$ac_objext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971 (eval $ac_compile) 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -z "$ac_c_werror_flag"
12979 || test ! -s conftest.err'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try='test -s conftest.$ac_objext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_cv_type_long=yes
12992 else
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12995
12996 ac_cv_type_long=no
12997 fi
12998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12999 fi
13000 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13001 echo "${ECHO_T}$ac_cv_type_long" >&6
13002
13003 echo "$as_me:$LINENO: checking size of long" >&5
13004 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13005 if test "${ac_cv_sizeof_long+set}" = set; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 else
13008 if test "$ac_cv_type_long" = yes; then
13009 # The cast to unsigned long works around a bug in the HP C Compiler
13010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13012 # This bug is HP SR number 8606223364.
13013 if test "$cross_compiling" = yes; then
13014 # Depending upon the size, compute the lo and hi bounds.
13015 cat >conftest.$ac_ext <<_ACEOF
13016 /* confdefs.h. */
13017 _ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13021 $ac_includes_default
13022 int
13023 main ()
13024 {
13025 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13026 test_array [0] = 0
13027
13028 ;
13029 return 0;
13030 }
13031 _ACEOF
13032 rm -f conftest.$ac_objext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>conftest.er1
13035 ac_status=$?
13036 grep -v '^ *+' conftest.er1 >conftest.err
13037 rm -f conftest.er1
13038 cat conftest.err >&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try='test -z "$ac_c_werror_flag"
13042 || test ! -s conftest.err'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_lo=0 ac_mid=0
13055 while :; do
13056 cat >conftest.$ac_ext <<_ACEOF
13057 /* confdefs.h. */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 $ac_includes_default
13063 int
13064 main ()
13065 {
13066 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13067 test_array [0] = 0
13068
13069 ;
13070 return 0;
13071 }
13072 _ACEOF
13073 rm -f conftest.$ac_objext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13075 (eval $ac_compile) 2>conftest.er1
13076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -z "$ac_c_werror_flag"
13083 || test ! -s conftest.err'
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 ac_hi=$ac_mid; break
13096 else
13097 echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13099
13100 ac_lo=`expr $ac_mid + 1`
13101 if test $ac_lo -le $ac_mid; then
13102 ac_lo= ac_hi=
13103 break
13104 fi
13105 ac_mid=`expr 2 '*' $ac_mid + 1`
13106 fi
13107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13108 done
13109 else
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13112
13113 cat >conftest.$ac_ext <<_ACEOF
13114 /* confdefs.h. */
13115 _ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13119 $ac_includes_default
13120 int
13121 main ()
13122 {
13123 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13124 test_array [0] = 0
13125
13126 ;
13127 return 0;
13128 }
13129 _ACEOF
13130 rm -f conftest.$ac_objext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13132 (eval $ac_compile) 2>conftest.er1
13133 ac_status=$?
13134 grep -v '^ *+' conftest.er1 >conftest.err
13135 rm -f conftest.er1
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try='test -z "$ac_c_werror_flag"
13140 || test ! -s conftest.err'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest.$ac_objext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_hi=-1 ac_mid=-1
13153 while :; do
13154 cat >conftest.$ac_ext <<_ACEOF
13155 /* confdefs.h. */
13156 _ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13160 $ac_includes_default
13161 int
13162 main ()
13163 {
13164 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13165 test_array [0] = 0
13166
13167 ;
13168 return 0;
13169 }
13170 _ACEOF
13171 rm -f conftest.$ac_objext
13172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13173 (eval $ac_compile) 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag"
13181 || test ! -s conftest.err'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; } &&
13187 { ac_try='test -s conftest.$ac_objext'
13188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
13193 ac_lo=$ac_mid; break
13194 else
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13197
13198 ac_hi=`expr '(' $ac_mid ')' - 1`
13199 if test $ac_mid -le $ac_hi; then
13200 ac_lo= ac_hi=
13201 break
13202 fi
13203 ac_mid=`expr 2 '*' $ac_mid`
13204 fi
13205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13206 done
13207 else
13208 echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13210
13211 ac_lo= ac_hi=
13212 fi
13213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13214 fi
13215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13216 # Binary search between lo and hi bounds.
13217 while test "x$ac_lo" != "x$ac_hi"; do
13218 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13219 cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h. */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 $ac_includes_default
13226 int
13227 main ()
13228 {
13229 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13230 test_array [0] = 0
13231
13232 ;
13233 return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag"
13246 || test ! -s conftest.err'
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; } &&
13252 { ac_try='test -s conftest.$ac_objext'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13258 ac_hi=$ac_mid
13259 else
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13262
13263 ac_lo=`expr '(' $ac_mid ')' + 1`
13264 fi
13265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13266 done
13267 case $ac_lo in
13268 ?*) ac_cv_sizeof_long=$ac_lo;;
13269 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13270 See \`config.log' for more details." >&5
13271 echo "$as_me: error: cannot compute sizeof (long), 77
13272 See \`config.log' for more details." >&2;}
13273 { (exit 1); exit 1; }; } ;;
13274 esac
13275 else
13276 if test "$cross_compiling" = yes; then
13277 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13278 See \`config.log' for more details." >&5
13279 echo "$as_me: error: cannot run test program while cross compiling
13280 See \`config.log' for more details." >&2;}
13281 { (exit 1); exit 1; }; }
13282 else
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h. */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13289 $ac_includes_default
13290 long longval () { return (long) (sizeof (long)); }
13291 unsigned long ulongval () { return (long) (sizeof (long)); }
13292 #include <stdio.h>
13293 #include <stdlib.h>
13294 int
13295 main ()
13296 {
13297
13298 FILE *f = fopen ("conftest.val", "w");
13299 if (! f)
13300 exit (1);
13301 if (((long) (sizeof (long))) < 0)
13302 {
13303 long i = longval ();
13304 if (i != ((long) (sizeof (long))))
13305 exit (1);
13306 fprintf (f, "%ld\n", i);
13307 }
13308 else
13309 {
13310 unsigned long i = ulongval ();
13311 if (i != ((long) (sizeof (long))))
13312 exit (1);
13313 fprintf (f, "%lu\n", i);
13314 }
13315 exit (ferror (f) || fclose (f) != 0);
13316
13317 ;
13318 return 0;
13319 }
13320 _ACEOF
13321 rm -f conftest$ac_exeext
13322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13323 (eval $ac_link) 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 ac_cv_sizeof_long=`cat conftest.val`
13333 else
13334 echo "$as_me: program exited with status $ac_status" >&5
13335 echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13337
13338 ( exit $ac_status )
13339 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13340 See \`config.log' for more details." >&5
13341 echo "$as_me: error: cannot compute sizeof (long), 77
13342 See \`config.log' for more details." >&2;}
13343 { (exit 1); exit 1; }; }
13344 fi
13345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13346 fi
13347 fi
13348 rm -f conftest.val
13349 else
13350 ac_cv_sizeof_long=0
13351 fi
13352 fi
13353 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13354 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13355 cat >>confdefs.h <<_ACEOF
13356 #define SIZEOF_LONG $ac_cv_sizeof_long
13357 _ACEOF
13358
13359 ;;
13360 esac
13361
13362 if test $acx_cv_header_stdint = stddef.h; then
13363 # Lacking a good header? Test size of everything and deduce all types.
13364 echo "$as_me:$LINENO: checking for int" >&5
13365 echo $ECHO_N "checking for int... $ECHO_C" >&6
13366 if test "${ac_cv_type_int+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 else
13369 cat >conftest.$ac_ext <<_ACEOF
13370 /* confdefs.h. */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 $ac_includes_default
13376 int
13377 main ()
13378 {
13379 if ((int *) 0)
13380 return 0;
13381 if (sizeof (int))
13382 return 0;
13383 ;
13384 return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest.$ac_objext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13389 (eval $ac_compile) 2>conftest.er1
13390 ac_status=$?
13391 grep -v '^ *+' conftest.er1 >conftest.err
13392 rm -f conftest.er1
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
13396 { ac_try='test -z "$ac_c_werror_flag"
13397 || test ! -s conftest.err'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try='test -s conftest.$ac_objext'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
13409 ac_cv_type_int=yes
13410 else
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13413
13414 ac_cv_type_int=no
13415 fi
13416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13417 fi
13418 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13419 echo "${ECHO_T}$ac_cv_type_int" >&6
13420
13421 echo "$as_me:$LINENO: checking size of int" >&5
13422 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13423 if test "${ac_cv_sizeof_int+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 else
13426 if test "$ac_cv_type_int" = yes; then
13427 # The cast to unsigned long works around a bug in the HP C Compiler
13428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13430 # This bug is HP SR number 8606223364.
13431 if test "$cross_compiling" = yes; then
13432 # Depending upon the size, compute the lo and hi bounds.
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h. */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 $ac_includes_default
13440 int
13441 main ()
13442 {
13443 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13444 test_array [0] = 0
13445
13446 ;
13447 return 0;
13448 }
13449 _ACEOF
13450 rm -f conftest.$ac_objext
13451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13452 (eval $ac_compile) 2>conftest.er1
13453 ac_status=$?
13454 grep -v '^ *+' conftest.er1 >conftest.err
13455 rm -f conftest.er1
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } &&
13459 { ac_try='test -z "$ac_c_werror_flag"
13460 || test ! -s conftest.err'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; } &&
13466 { ac_try='test -s conftest.$ac_objext'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13472 ac_lo=0 ac_mid=0
13473 while :; do
13474 cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h. */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13480 $ac_includes_default
13481 int
13482 main ()
13483 {
13484 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13485 test_array [0] = 0
13486
13487 ;
13488 return 0;
13489 }
13490 _ACEOF
13491 rm -f conftest.$ac_objext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493 (eval $ac_compile) 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -z "$ac_c_werror_flag"
13501 || test ! -s conftest.err'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest.$ac_objext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13513 ac_hi=$ac_mid; break
13514 else
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13517
13518 ac_lo=`expr $ac_mid + 1`
13519 if test $ac_lo -le $ac_mid; then
13520 ac_lo= ac_hi=
13521 break
13522 fi
13523 ac_mid=`expr 2 '*' $ac_mid + 1`
13524 fi
13525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13526 done
13527 else
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13530
13531 cat >conftest.$ac_ext <<_ACEOF
13532 /* confdefs.h. */
13533 _ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13537 $ac_includes_default
13538 int
13539 main ()
13540 {
13541 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13542 test_array [0] = 0
13543
13544 ;
13545 return 0;
13546 }
13547 _ACEOF
13548 rm -f conftest.$ac_objext
13549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13550 (eval $ac_compile) 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
13557 { ac_try='test -z "$ac_c_werror_flag"
13558 || test ! -s conftest.err'
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; } &&
13564 { ac_try='test -s conftest.$ac_objext'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
13570 ac_hi=-1 ac_mid=-1
13571 while :; do
13572 cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h. */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 $ac_includes_default
13579 int
13580 main ()
13581 {
13582 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13583 test_array [0] = 0
13584
13585 ;
13586 return 0;
13587 }
13588 _ACEOF
13589 rm -f conftest.$ac_objext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591 (eval $ac_compile) 2>conftest.er1
13592 ac_status=$?
13593 grep -v '^ *+' conftest.er1 >conftest.err
13594 rm -f conftest.er1
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
13598 { ac_try='test -z "$ac_c_werror_flag"
13599 || test ! -s conftest.err'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try='test -s conftest.$ac_objext'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13611 ac_lo=$ac_mid; break
13612 else
13613 echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13615
13616 ac_hi=`expr '(' $ac_mid ')' - 1`
13617 if test $ac_mid -le $ac_hi; then
13618 ac_lo= ac_hi=
13619 break
13620 fi
13621 ac_mid=`expr 2 '*' $ac_mid`
13622 fi
13623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13624 done
13625 else
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13628
13629 ac_lo= ac_hi=
13630 fi
13631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13632 fi
13633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13634 # Binary search between lo and hi bounds.
13635 while test "x$ac_lo" != "x$ac_hi"; do
13636 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13637 cat >conftest.$ac_ext <<_ACEOF
13638 /* confdefs.h. */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13643 $ac_includes_default
13644 int
13645 main ()
13646 {
13647 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13648 test_array [0] = 0
13649
13650 ;
13651 return 0;
13652 }
13653 _ACEOF
13654 rm -f conftest.$ac_objext
13655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656 (eval $ac_compile) 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -z "$ac_c_werror_flag"
13664 || test ! -s conftest.err'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; } &&
13670 { ac_try='test -s conftest.$ac_objext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 ac_hi=$ac_mid
13677 else
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13680
13681 ac_lo=`expr '(' $ac_mid ')' + 1`
13682 fi
13683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13684 done
13685 case $ac_lo in
13686 ?*) ac_cv_sizeof_int=$ac_lo;;
13687 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13688 See \`config.log' for more details." >&5
13689 echo "$as_me: error: cannot compute sizeof (int), 77
13690 See \`config.log' for more details." >&2;}
13691 { (exit 1); exit 1; }; } ;;
13692 esac
13693 else
13694 if test "$cross_compiling" = yes; then
13695 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13696 See \`config.log' for more details." >&5
13697 echo "$as_me: error: cannot run test program while cross compiling
13698 See \`config.log' for more details." >&2;}
13699 { (exit 1); exit 1; }; }
13700 else
13701 cat >conftest.$ac_ext <<_ACEOF
13702 /* confdefs.h. */
13703 _ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13707 $ac_includes_default
13708 long longval () { return (long) (sizeof (int)); }
13709 unsigned long ulongval () { return (long) (sizeof (int)); }
13710 #include <stdio.h>
13711 #include <stdlib.h>
13712 int
13713 main ()
13714 {
13715
13716 FILE *f = fopen ("conftest.val", "w");
13717 if (! f)
13718 exit (1);
13719 if (((long) (sizeof (int))) < 0)
13720 {
13721 long i = longval ();
13722 if (i != ((long) (sizeof (int))))
13723 exit (1);
13724 fprintf (f, "%ld\n", i);
13725 }
13726 else
13727 {
13728 unsigned long i = ulongval ();
13729 if (i != ((long) (sizeof (int))))
13730 exit (1);
13731 fprintf (f, "%lu\n", i);
13732 }
13733 exit (ferror (f) || fclose (f) != 0);
13734
13735 ;
13736 return 0;
13737 }
13738 _ACEOF
13739 rm -f conftest$ac_exeext
13740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13741 (eval $ac_link) 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_cv_sizeof_int=`cat conftest.val`
13751 else
13752 echo "$as_me: program exited with status $ac_status" >&5
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13755
13756 ( exit $ac_status )
13757 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13758 See \`config.log' for more details." >&5
13759 echo "$as_me: error: cannot compute sizeof (int), 77
13760 See \`config.log' for more details." >&2;}
13761 { (exit 1); exit 1; }; }
13762 fi
13763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13764 fi
13765 fi
13766 rm -f conftest.val
13767 else
13768 ac_cv_sizeof_int=0
13769 fi
13770 fi
13771 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13772 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13773 cat >>confdefs.h <<_ACEOF
13774 #define SIZEOF_INT $ac_cv_sizeof_int
13775 _ACEOF
13776
13777
13778 echo "$as_me:$LINENO: checking for short" >&5
13779 echo $ECHO_N "checking for short... $ECHO_C" >&6
13780 if test "${ac_cv_type_short+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783 cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h. */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 $ac_includes_default
13790 int
13791 main ()
13792 {
13793 if ((short *) 0)
13794 return 0;
13795 if (sizeof (short))
13796 return 0;
13797 ;
13798 return 0;
13799 }
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>conftest.er1
13804 ac_status=$?
13805 grep -v '^ *+' conftest.er1 >conftest.err
13806 rm -f conftest.er1
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } &&
13810 { ac_try='test -z "$ac_c_werror_flag"
13811 || test ! -s conftest.err'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } &&
13817 { ac_try='test -s conftest.$ac_objext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 ac_cv_type_short=yes
13824 else
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13827
13828 ac_cv_type_short=no
13829 fi
13830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13831 fi
13832 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13833 echo "${ECHO_T}$ac_cv_type_short" >&6
13834
13835 echo "$as_me:$LINENO: checking size of short" >&5
13836 echo $ECHO_N "checking size of short... $ECHO_C" >&6
13837 if test "${ac_cv_sizeof_short+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840 if test "$ac_cv_type_short" = yes; then
13841 # The cast to unsigned long works around a bug in the HP C Compiler
13842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13844 # This bug is HP SR number 8606223364.
13845 if test "$cross_compiling" = yes; then
13846 # Depending upon the size, compute the lo and hi bounds.
13847 cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h. */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13853 $ac_includes_default
13854 int
13855 main ()
13856 {
13857 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13858 test_array [0] = 0
13859
13860 ;
13861 return 0;
13862 }
13863 _ACEOF
13864 rm -f conftest.$ac_objext
13865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13866 (eval $ac_compile) 2>conftest.er1
13867 ac_status=$?
13868 grep -v '^ *+' conftest.er1 >conftest.err
13869 rm -f conftest.er1
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } &&
13873 { ac_try='test -z "$ac_c_werror_flag"
13874 || test ! -s conftest.err'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; } &&
13880 { ac_try='test -s conftest.$ac_objext'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }; then
13886 ac_lo=0 ac_mid=0
13887 while :; do
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h. */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 $ac_includes_default
13895 int
13896 main ()
13897 {
13898 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13899 test_array [0] = 0
13900
13901 ;
13902 return 0;
13903 }
13904 _ACEOF
13905 rm -f conftest.$ac_objext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13907 (eval $ac_compile) 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -z "$ac_c_werror_flag"
13915 || test ! -s conftest.err'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest.$ac_objext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_hi=$ac_mid; break
13928 else
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13931
13932 ac_lo=`expr $ac_mid + 1`
13933 if test $ac_lo -le $ac_mid; then
13934 ac_lo= ac_hi=
13935 break
13936 fi
13937 ac_mid=`expr 2 '*' $ac_mid + 1`
13938 fi
13939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13940 done
13941 else
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13944
13945 cat >conftest.$ac_ext <<_ACEOF
13946 /* confdefs.h. */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 $ac_includes_default
13952 int
13953 main ()
13954 {
13955 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13956 test_array [0] = 0
13957
13958 ;
13959 return 0;
13960 }
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964 (eval $ac_compile) 2>conftest.er1
13965 ac_status=$?
13966 grep -v '^ *+' conftest.er1 >conftest.err
13967 rm -f conftest.er1
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } &&
13971 { ac_try='test -z "$ac_c_werror_flag"
13972 || test ! -s conftest.err'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; } &&
13978 { ac_try='test -s conftest.$ac_objext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 ac_hi=-1 ac_mid=-1
13985 while :; do
13986 cat >conftest.$ac_ext <<_ACEOF
13987 /* confdefs.h. */
13988 _ACEOF
13989 cat confdefs.h >>conftest.$ac_ext
13990 cat >>conftest.$ac_ext <<_ACEOF
13991 /* end confdefs.h. */
13992 $ac_includes_default
13993 int
13994 main ()
13995 {
13996 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13997 test_array [0] = 0
13998
13999 ;
14000 return 0;
14001 }
14002 _ACEOF
14003 rm -f conftest.$ac_objext
14004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14005 (eval $ac_compile) 2>conftest.er1
14006 ac_status=$?
14007 grep -v '^ *+' conftest.er1 >conftest.err
14008 rm -f conftest.er1
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try='test -z "$ac_c_werror_flag"
14013 || test ! -s conftest.err'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try='test -s conftest.$ac_objext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_lo=$ac_mid; break
14026 else
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14029
14030 ac_hi=`expr '(' $ac_mid ')' - 1`
14031 if test $ac_mid -le $ac_hi; then
14032 ac_lo= ac_hi=
14033 break
14034 fi
14035 ac_mid=`expr 2 '*' $ac_mid`
14036 fi
14037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14038 done
14039 else
14040 echo "$as_me: failed program was:" >&5
14041 sed 's/^/| /' conftest.$ac_ext >&5
14042
14043 ac_lo= ac_hi=
14044 fi
14045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14046 fi
14047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14048 # Binary search between lo and hi bounds.
14049 while test "x$ac_lo" != "x$ac_hi"; do
14050 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14051 cat >conftest.$ac_ext <<_ACEOF
14052 /* confdefs.h. */
14053 _ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h. */
14057 $ac_includes_default
14058 int
14059 main ()
14060 {
14061 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14062 test_array [0] = 0
14063
14064 ;
14065 return 0;
14066 }
14067 _ACEOF
14068 rm -f conftest.$ac_objext
14069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14070 (eval $ac_compile) 2>conftest.er1
14071 ac_status=$?
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
14077 { ac_try='test -z "$ac_c_werror_flag"
14078 || test ! -s conftest.err'
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); }; } &&
14084 { ac_try='test -s conftest.$ac_objext'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14090 ac_hi=$ac_mid
14091 else
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14094
14095 ac_lo=`expr '(' $ac_mid ')' + 1`
14096 fi
14097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14098 done
14099 case $ac_lo in
14100 ?*) ac_cv_sizeof_short=$ac_lo;;
14101 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14102 See \`config.log' for more details." >&5
14103 echo "$as_me: error: cannot compute sizeof (short), 77
14104 See \`config.log' for more details." >&2;}
14105 { (exit 1); exit 1; }; } ;;
14106 esac
14107 else
14108 if test "$cross_compiling" = yes; then
14109 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14110 See \`config.log' for more details." >&5
14111 echo "$as_me: error: cannot run test program while cross compiling
14112 See \`config.log' for more details." >&2;}
14113 { (exit 1); exit 1; }; }
14114 else
14115 cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h. */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14121 $ac_includes_default
14122 long longval () { return (long) (sizeof (short)); }
14123 unsigned long ulongval () { return (long) (sizeof (short)); }
14124 #include <stdio.h>
14125 #include <stdlib.h>
14126 int
14127 main ()
14128 {
14129
14130 FILE *f = fopen ("conftest.val", "w");
14131 if (! f)
14132 exit (1);
14133 if (((long) (sizeof (short))) < 0)
14134 {
14135 long i = longval ();
14136 if (i != ((long) (sizeof (short))))
14137 exit (1);
14138 fprintf (f, "%ld\n", i);
14139 }
14140 else
14141 {
14142 unsigned long i = ulongval ();
14143 if (i != ((long) (sizeof (short))))
14144 exit (1);
14145 fprintf (f, "%lu\n", i);
14146 }
14147 exit (ferror (f) || fclose (f) != 0);
14148
14149 ;
14150 return 0;
14151 }
14152 _ACEOF
14153 rm -f conftest$ac_exeext
14154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14155 (eval $ac_link) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14164 ac_cv_sizeof_short=`cat conftest.val`
14165 else
14166 echo "$as_me: program exited with status $ac_status" >&5
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14169
14170 ( exit $ac_status )
14171 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14172 See \`config.log' for more details." >&5
14173 echo "$as_me: error: cannot compute sizeof (short), 77
14174 See \`config.log' for more details." >&2;}
14175 { (exit 1); exit 1; }; }
14176 fi
14177 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14178 fi
14179 fi
14180 rm -f conftest.val
14181 else
14182 ac_cv_sizeof_short=0
14183 fi
14184 fi
14185 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14186 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14187 cat >>confdefs.h <<_ACEOF
14188 #define SIZEOF_SHORT $ac_cv_sizeof_short
14189 _ACEOF
14190
14191
14192 echo "$as_me:$LINENO: checking for char" >&5
14193 echo $ECHO_N "checking for char... $ECHO_C" >&6
14194 if test "${ac_cv_type_char+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197 cat >conftest.$ac_ext <<_ACEOF
14198 /* confdefs.h. */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 $ac_includes_default
14204 int
14205 main ()
14206 {
14207 if ((char *) 0)
14208 return 0;
14209 if (sizeof (char))
14210 return 0;
14211 ;
14212 return 0;
14213 }
14214 _ACEOF
14215 rm -f conftest.$ac_objext
14216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14217 (eval $ac_compile) 2>conftest.er1
14218 ac_status=$?
14219 grep -v '^ *+' conftest.er1 >conftest.err
14220 rm -f conftest.er1
14221 cat conftest.err >&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } &&
14224 { ac_try='test -z "$ac_c_werror_flag"
14225 || test ! -s conftest.err'
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; } &&
14231 { ac_try='test -s conftest.$ac_objext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_type_char=yes
14238 else
14239 echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14241
14242 ac_cv_type_char=no
14243 fi
14244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14245 fi
14246 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14247 echo "${ECHO_T}$ac_cv_type_char" >&6
14248
14249 echo "$as_me:$LINENO: checking size of char" >&5
14250 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14251 if test "${ac_cv_sizeof_char+set}" = set; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254 if test "$ac_cv_type_char" = yes; then
14255 # The cast to unsigned long works around a bug in the HP C Compiler
14256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14258 # This bug is HP SR number 8606223364.
14259 if test "$cross_compiling" = yes; then
14260 # Depending upon the size, compute the lo and hi bounds.
14261 cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h. */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 $ac_includes_default
14268 int
14269 main ()
14270 {
14271 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14272 test_array [0] = 0
14273
14274 ;
14275 return 0;
14276 }
14277 _ACEOF
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280 (eval $ac_compile) 2>conftest.er1
14281 ac_status=$?
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -z "$ac_c_werror_flag"
14288 || test ! -s conftest.err'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; } &&
14294 { ac_try='test -s conftest.$ac_objext'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 ac_lo=0 ac_mid=0
14301 while :; do
14302 cat >conftest.$ac_ext <<_ACEOF
14303 /* confdefs.h. */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14308 $ac_includes_default
14309 int
14310 main ()
14311 {
14312 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14313 test_array [0] = 0
14314
14315 ;
14316 return 0;
14317 }
14318 _ACEOF
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>conftest.er1
14322 ac_status=$?
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag"
14329 || test ! -s conftest.err'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_hi=$ac_mid; break
14342 else
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14345
14346 ac_lo=`expr $ac_mid + 1`
14347 if test $ac_lo -le $ac_mid; then
14348 ac_lo= ac_hi=
14349 break
14350 fi
14351 ac_mid=`expr 2 '*' $ac_mid + 1`
14352 fi
14353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14354 done
14355 else
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14358
14359 cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h. */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 $ac_includes_default
14366 int
14367 main ()
14368 {
14369 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14370 test_array [0] = 0
14371
14372 ;
14373 return 0;
14374 }
14375 _ACEOF
14376 rm -f conftest.$ac_objext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14378 (eval $ac_compile) 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -z "$ac_c_werror_flag"
14386 || test ! -s conftest.err'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest.$ac_objext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_hi=-1 ac_mid=-1
14399 while :; do
14400 cat >conftest.$ac_ext <<_ACEOF
14401 /* confdefs.h. */
14402 _ACEOF
14403 cat confdefs.h >>conftest.$ac_ext
14404 cat >>conftest.$ac_ext <<_ACEOF
14405 /* end confdefs.h. */
14406 $ac_includes_default
14407 int
14408 main ()
14409 {
14410 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14411 test_array [0] = 0
14412
14413 ;
14414 return 0;
14415 }
14416 _ACEOF
14417 rm -f conftest.$ac_objext
14418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14419 (eval $ac_compile) 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } &&
14426 { ac_try='test -z "$ac_c_werror_flag"
14427 || test ! -s conftest.err'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; } &&
14433 { ac_try='test -s conftest.$ac_objext'
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; }; then
14439 ac_lo=$ac_mid; break
14440 else
14441 echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14443
14444 ac_hi=`expr '(' $ac_mid ')' - 1`
14445 if test $ac_mid -le $ac_hi; then
14446 ac_lo= ac_hi=
14447 break
14448 fi
14449 ac_mid=`expr 2 '*' $ac_mid`
14450 fi
14451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14452 done
14453 else
14454 echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14456
14457 ac_lo= ac_hi=
14458 fi
14459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14460 fi
14461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14462 # Binary search between lo and hi bounds.
14463 while test "x$ac_lo" != "x$ac_hi"; do
14464 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 $ac_includes_default
14472 int
14473 main ()
14474 {
14475 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14476 test_array [0] = 0
14477
14478 ;
14479 return 0;
14480 }
14481 _ACEOF
14482 rm -f conftest.$ac_objext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14484 (eval $ac_compile) 2>conftest.er1
14485 ac_status=$?
14486 grep -v '^ *+' conftest.er1 >conftest.err
14487 rm -f conftest.er1
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -z "$ac_c_werror_flag"
14492 || test ! -s conftest.err'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; } &&
14498 { ac_try='test -s conftest.$ac_objext'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14501 ac_status=$?
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14504 ac_hi=$ac_mid
14505 else
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14508
14509 ac_lo=`expr '(' $ac_mid ')' + 1`
14510 fi
14511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14512 done
14513 case $ac_lo in
14514 ?*) ac_cv_sizeof_char=$ac_lo;;
14515 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14516 See \`config.log' for more details." >&5
14517 echo "$as_me: error: cannot compute sizeof (char), 77
14518 See \`config.log' for more details." >&2;}
14519 { (exit 1); exit 1; }; } ;;
14520 esac
14521 else
14522 if test "$cross_compiling" = yes; then
14523 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14524 See \`config.log' for more details." >&5
14525 echo "$as_me: error: cannot run test program while cross compiling
14526 See \`config.log' for more details." >&2;}
14527 { (exit 1); exit 1; }; }
14528 else
14529 cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h. */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535 $ac_includes_default
14536 long longval () { return (long) (sizeof (char)); }
14537 unsigned long ulongval () { return (long) (sizeof (char)); }
14538 #include <stdio.h>
14539 #include <stdlib.h>
14540 int
14541 main ()
14542 {
14543
14544 FILE *f = fopen ("conftest.val", "w");
14545 if (! f)
14546 exit (1);
14547 if (((long) (sizeof (char))) < 0)
14548 {
14549 long i = longval ();
14550 if (i != ((long) (sizeof (char))))
14551 exit (1);
14552 fprintf (f, "%ld\n", i);
14553 }
14554 else
14555 {
14556 unsigned long i = ulongval ();
14557 if (i != ((long) (sizeof (char))))
14558 exit (1);
14559 fprintf (f, "%lu\n", i);
14560 }
14561 exit (ferror (f) || fclose (f) != 0);
14562
14563 ;
14564 return 0;
14565 }
14566 _ACEOF
14567 rm -f conftest$ac_exeext
14568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14569 (eval $ac_link) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_cv_sizeof_char=`cat conftest.val`
14579 else
14580 echo "$as_me: program exited with status $ac_status" >&5
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584 ( exit $ac_status )
14585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14586 See \`config.log' for more details." >&5
14587 echo "$as_me: error: cannot compute sizeof (char), 77
14588 See \`config.log' for more details." >&2;}
14589 { (exit 1); exit 1; }; }
14590 fi
14591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14592 fi
14593 fi
14594 rm -f conftest.val
14595 else
14596 ac_cv_sizeof_char=0
14597 fi
14598 fi
14599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14600 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14601 cat >>confdefs.h <<_ACEOF
14602 #define SIZEOF_CHAR $ac_cv_sizeof_char
14603 _ACEOF
14604
14605
14606
14607 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14608 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
14609 case "$ac_cv_sizeof_char" in
14610 1) acx_cv_type_int8_t=char ;;
14611 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14612 echo "$as_me: error: no 8-bit type" >&2;}
14613 { (exit please report a bug); exit please report a bug; }; }
14614 esac
14615 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14616 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
14617
14618 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14619 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
14620 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14621 2:*) acx_cv_type_int16_t=int ;;
14622 *:2) acx_cv_type_int16_t=short ;;
14623 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14624 echo "$as_me: error: no 16-bit type" >&2;}
14625 { (exit please report a bug); exit please report a bug; }; }
14626 esac
14627 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14628 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
14629
14630 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14631 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
14632 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14633 4:*) acx_cv_type_int32_t=int ;;
14634 *:4) acx_cv_type_int32_t=long ;;
14635 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14636 echo "$as_me: error: no 32-bit type" >&2;}
14637 { (exit please report a bug); exit please report a bug; }; }
14638 esac
14639 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14640 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
14641 fi
14642
14643 # These tests are here to make the output prettier
14644
14645 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14646 case "$ac_cv_sizeof_long" in
14647 8) acx_cv_type_int64_t=long ;;
14648 esac
14649 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14650 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14651 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14652 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
14653 fi
14654
14655 # Now we can use the above types
14656
14657 if test "$ac_cv_type_uintptr_t" != yes; then
14658 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14659 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
14660 case $ac_cv_sizeof_void_p in
14661 2) acx_cv_type_intptr_t=int16_t ;;
14662 4) acx_cv_type_intptr_t=int32_t ;;
14663 8) acx_cv_type_intptr_t=int64_t ;;
14664 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14665 echo "$as_me: error: no equivalent for intptr_t" >&2;}
14666 { (exit please report a bug); exit please report a bug; }; }
14667 esac
14668 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14669 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
14670 fi
14671
14672 # ----------------- done all checks, emit header -------------
14673 ac_config_commands="$ac_config_commands gdb_stdint.h"
14674
14675
14676
14677
14678 # ------------------------- #
14679 # Checks for declarations. #
14680 # ------------------------- #
14681
14682 echo "$as_me:$LINENO: checking whether free is declared" >&5
14683 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
14684 if test "${ac_cv_have_decl_free+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687 cat >conftest.$ac_ext <<_ACEOF
14688 /* confdefs.h. */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 $ac_includes_default
14694 int
14695 main ()
14696 {
14697 #ifndef free
14698 char *p = (char *) free;
14699 #endif
14700
14701 ;
14702 return 0;
14703 }
14704 _ACEOF
14705 rm -f conftest.$ac_objext
14706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14707 (eval $ac_compile) 2>conftest.er1
14708 ac_status=$?
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } &&
14714 { ac_try='test -z "$ac_c_werror_flag"
14715 || test ! -s conftest.err'
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727 ac_cv_have_decl_free=yes
14728 else
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14731
14732 ac_cv_have_decl_free=no
14733 fi
14734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14735 fi
14736 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14737 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
14738 if test $ac_cv_have_decl_free = yes; then
14739
14740 cat >>confdefs.h <<_ACEOF
14741 #define HAVE_DECL_FREE 1
14742 _ACEOF
14743
14744
14745 else
14746 cat >>confdefs.h <<_ACEOF
14747 #define HAVE_DECL_FREE 0
14748 _ACEOF
14749
14750
14751 fi
14752 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14753 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
14754 if test "${ac_cv_have_decl_malloc+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 else
14757 cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h. */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 $ac_includes_default
14764 int
14765 main ()
14766 {
14767 #ifndef malloc
14768 char *p = (char *) malloc;
14769 #endif
14770
14771 ;
14772 return 0;
14773 }
14774 _ACEOF
14775 rm -f conftest.$ac_objext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14777 (eval $ac_compile) 2>conftest.er1
14778 ac_status=$?
14779 grep -v '^ *+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -z "$ac_c_werror_flag"
14785 || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest.$ac_objext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_cv_have_decl_malloc=yes
14798 else
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14801
14802 ac_cv_have_decl_malloc=no
14803 fi
14804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14805 fi
14806 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14807 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
14808 if test $ac_cv_have_decl_malloc = yes; then
14809
14810 cat >>confdefs.h <<_ACEOF
14811 #define HAVE_DECL_MALLOC 1
14812 _ACEOF
14813
14814
14815 else
14816 cat >>confdefs.h <<_ACEOF
14817 #define HAVE_DECL_MALLOC 0
14818 _ACEOF
14819
14820
14821 fi
14822 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14823 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
14824 if test "${ac_cv_have_decl_realloc+set}" = set; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 else
14827 cat >conftest.$ac_ext <<_ACEOF
14828 /* confdefs.h. */
14829 _ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h. */
14833 $ac_includes_default
14834 int
14835 main ()
14836 {
14837 #ifndef realloc
14838 char *p = (char *) realloc;
14839 #endif
14840
14841 ;
14842 return 0;
14843 }
14844 _ACEOF
14845 rm -f conftest.$ac_objext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14847 (eval $ac_compile) 2>conftest.er1
14848 ac_status=$?
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -z "$ac_c_werror_flag"
14855 || test ! -s conftest.err'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; } &&
14861 { ac_try='test -s conftest.$ac_objext'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 ac_cv_have_decl_realloc=yes
14868 else
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872 ac_cv_have_decl_realloc=no
14873 fi
14874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14875 fi
14876 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14877 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
14878 if test $ac_cv_have_decl_realloc = yes; then
14879
14880 cat >>confdefs.h <<_ACEOF
14881 #define HAVE_DECL_REALLOC 1
14882 _ACEOF
14883
14884
14885 else
14886 cat >>confdefs.h <<_ACEOF
14887 #define HAVE_DECL_REALLOC 0
14888 _ACEOF
14889
14890
14891 fi
14892
14893
14894 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14895 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
14896 if test "${ac_cv_have_decl_strerror+set}" = set; then
14897 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 else
14899 cat >conftest.$ac_ext <<_ACEOF
14900 /* confdefs.h. */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14905 $ac_includes_default
14906 int
14907 main ()
14908 {
14909 #ifndef strerror
14910 char *p = (char *) strerror;
14911 #endif
14912
14913 ;
14914 return 0;
14915 }
14916 _ACEOF
14917 rm -f conftest.$ac_objext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14919 (eval $ac_compile) 2>conftest.er1
14920 ac_status=$?
14921 grep -v '^ *+' conftest.er1 >conftest.err
14922 rm -f conftest.er1
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -z "$ac_c_werror_flag"
14927 || test ! -s conftest.err'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; } &&
14933 { ac_try='test -s conftest.$ac_objext'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 ac_cv_have_decl_strerror=yes
14940 else
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14943
14944 ac_cv_have_decl_strerror=no
14945 fi
14946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14947 fi
14948 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14949 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
14950 if test $ac_cv_have_decl_strerror = yes; then
14951
14952 cat >>confdefs.h <<_ACEOF
14953 #define HAVE_DECL_STRERROR 1
14954 _ACEOF
14955
14956
14957 else
14958 cat >>confdefs.h <<_ACEOF
14959 #define HAVE_DECL_STRERROR 0
14960 _ACEOF
14961
14962
14963 fi
14964 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14965 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14966 if test "${ac_cv_have_decl_strstr+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969 cat >conftest.$ac_ext <<_ACEOF
14970 /* confdefs.h. */
14971 _ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h. */
14975 $ac_includes_default
14976 int
14977 main ()
14978 {
14979 #ifndef strstr
14980 char *p = (char *) strstr;
14981 #endif
14982
14983 ;
14984 return 0;
14985 }
14986 _ACEOF
14987 rm -f conftest.$ac_objext
14988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14989 (eval $ac_compile) 2>conftest.er1
14990 ac_status=$?
14991 grep -v '^ *+' conftest.er1 >conftest.err
14992 rm -f conftest.er1
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } &&
14996 { ac_try='test -z "$ac_c_werror_flag"
14997 || test ! -s conftest.err'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15000 ac_status=$?
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; } &&
15003 { ac_try='test -s conftest.$ac_objext'
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; }; then
15009 ac_cv_have_decl_strstr=yes
15010 else
15011 echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15013
15014 ac_cv_have_decl_strstr=no
15015 fi
15016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15017 fi
15018 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
15019 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
15020 if test $ac_cv_have_decl_strstr = yes; then
15021
15022 cat >>confdefs.h <<_ACEOF
15023 #define HAVE_DECL_STRSTR 1
15024 _ACEOF
15025
15026
15027 else
15028 cat >>confdefs.h <<_ACEOF
15029 #define HAVE_DECL_STRSTR 0
15030 _ACEOF
15031
15032
15033 fi
15034
15035
15036 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
15037 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
15038 if test "${ac_cv_have_decl_getopt+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 else
15041 cat >conftest.$ac_ext <<_ACEOF
15042 /* confdefs.h. */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 $ac_includes_default
15048 int
15049 main ()
15050 {
15051 #ifndef getopt
15052 char *p = (char *) getopt;
15053 #endif
15054
15055 ;
15056 return 0;
15057 }
15058 _ACEOF
15059 rm -f conftest.$ac_objext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15061 (eval $ac_compile) 2>conftest.er1
15062 ac_status=$?
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -z "$ac_c_werror_flag"
15069 || test ! -s conftest.err'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest.$ac_objext'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 ac_cv_have_decl_getopt=yes
15082 else
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15085
15086 ac_cv_have_decl_getopt=no
15087 fi
15088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15089 fi
15090 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
15091 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
15092 if test $ac_cv_have_decl_getopt = yes; then
15093
15094 cat >>confdefs.h <<_ACEOF
15095 #define HAVE_DECL_GETOPT 1
15096 _ACEOF
15097
15098
15099 else
15100 cat >>confdefs.h <<_ACEOF
15101 #define HAVE_DECL_GETOPT 0
15102 _ACEOF
15103
15104
15105 fi
15106 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15107 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
15108 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 else
15111 cat >conftest.$ac_ext <<_ACEOF
15112 /* confdefs.h. */
15113 _ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h. */
15117 $ac_includes_default
15118 int
15119 main ()
15120 {
15121 #ifndef snprintf
15122 char *p = (char *) snprintf;
15123 #endif
15124
15125 ;
15126 return 0;
15127 }
15128 _ACEOF
15129 rm -f conftest.$ac_objext
15130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15131 (eval $ac_compile) 2>conftest.er1
15132 ac_status=$?
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
15138 { ac_try='test -z "$ac_c_werror_flag"
15139 || test ! -s conftest.err'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; } &&
15145 { ac_try='test -s conftest.$ac_objext'
15146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147 (eval $ac_try) 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; }; then
15151 ac_cv_have_decl_snprintf=yes
15152 else
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15155
15156 ac_cv_have_decl_snprintf=no
15157 fi
15158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15159 fi
15160 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15161 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
15162 if test $ac_cv_have_decl_snprintf = yes; then
15163
15164 cat >>confdefs.h <<_ACEOF
15165 #define HAVE_DECL_SNPRINTF 1
15166 _ACEOF
15167
15168
15169 else
15170 cat >>confdefs.h <<_ACEOF
15171 #define HAVE_DECL_SNPRINTF 0
15172 _ACEOF
15173
15174
15175 fi
15176 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15177 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
15178 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15180 else
15181 cat >conftest.$ac_ext <<_ACEOF
15182 /* confdefs.h. */
15183 _ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15187 $ac_includes_default
15188 int
15189 main ()
15190 {
15191 #ifndef vsnprintf
15192 char *p = (char *) vsnprintf;
15193 #endif
15194
15195 ;
15196 return 0;
15197 }
15198 _ACEOF
15199 rm -f conftest.$ac_objext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15201 (eval $ac_compile) 2>conftest.er1
15202 ac_status=$?
15203 grep -v '^ *+' conftest.er1 >conftest.err
15204 rm -f conftest.er1
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } &&
15208 { ac_try='test -z "$ac_c_werror_flag"
15209 || test ! -s conftest.err'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15212 ac_status=$?
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; } &&
15215 { ac_try='test -s conftest.$ac_objext'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }; then
15221 ac_cv_have_decl_vsnprintf=yes
15222 else
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15225
15226 ac_cv_have_decl_vsnprintf=no
15227 fi
15228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15229 fi
15230 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15231 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
15232 if test $ac_cv_have_decl_vsnprintf = yes; then
15233
15234 cat >>confdefs.h <<_ACEOF
15235 #define HAVE_DECL_VSNPRINTF 1
15236 _ACEOF
15237
15238
15239 else
15240 cat >>confdefs.h <<_ACEOF
15241 #define HAVE_DECL_VSNPRINTF 0
15242 _ACEOF
15243
15244
15245 fi
15246
15247
15248
15249 # ----------------------- #
15250 # Checks for structures. #
15251 # ----------------------- #
15252
15253 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
15254 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
15255 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 else
15258 cat >conftest.$ac_ext <<_ACEOF
15259 /* confdefs.h. */
15260 _ACEOF
15261 cat confdefs.h >>conftest.$ac_ext
15262 cat >>conftest.$ac_ext <<_ACEOF
15263 /* end confdefs.h. */
15264 $ac_includes_default
15265 int
15266 main ()
15267 {
15268 static struct stat ac_aggr;
15269 if (ac_aggr.st_blocks)
15270 return 0;
15271 ;
15272 return 0;
15273 }
15274 _ACEOF
15275 rm -f conftest.$ac_objext
15276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15277 (eval $ac_compile) 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -z "$ac_c_werror_flag"
15285 || test ! -s conftest.err'
15286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287 (eval $ac_try) 2>&5
15288 ac_status=$?
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); }; } &&
15291 { ac_try='test -s conftest.$ac_objext'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15297 ac_cv_member_struct_stat_st_blocks=yes
15298 else
15299 echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15301
15302 cat >conftest.$ac_ext <<_ACEOF
15303 /* confdefs.h. */
15304 _ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 $ac_includes_default
15309 int
15310 main ()
15311 {
15312 static struct stat ac_aggr;
15313 if (sizeof ac_aggr.st_blocks)
15314 return 0;
15315 ;
15316 return 0;
15317 }
15318 _ACEOF
15319 rm -f conftest.$ac_objext
15320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15321 (eval $ac_compile) 2>conftest.er1
15322 ac_status=$?
15323 grep -v '^ *+' conftest.er1 >conftest.err
15324 rm -f conftest.er1
15325 cat conftest.err >&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -z "$ac_c_werror_flag"
15329 || test ! -s conftest.err'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; } &&
15335 { ac_try='test -s conftest.$ac_objext'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341 ac_cv_member_struct_stat_st_blocks=yes
15342 else
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15345
15346 ac_cv_member_struct_stat_st_blocks=no
15347 fi
15348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15349 fi
15350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15351 fi
15352 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
15353 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
15354 if test $ac_cv_member_struct_stat_st_blocks = yes; then
15355
15356 cat >>confdefs.h <<_ACEOF
15357 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15358 _ACEOF
15359
15360
15361 fi
15362
15363 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
15364 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
15365 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368 cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h. */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15374 $ac_includes_default
15375 int
15376 main ()
15377 {
15378 static struct stat ac_aggr;
15379 if (ac_aggr.st_blksize)
15380 return 0;
15381 ;
15382 return 0;
15383 }
15384 _ACEOF
15385 rm -f conftest.$ac_objext
15386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15387 (eval $ac_compile) 2>conftest.er1
15388 ac_status=$?
15389 grep -v '^ *+' conftest.er1 >conftest.err
15390 rm -f conftest.er1
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -z "$ac_c_werror_flag"
15395 || test ! -s conftest.err'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; } &&
15401 { ac_try='test -s conftest.$ac_objext'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407 ac_cv_member_struct_stat_st_blksize=yes
15408 else
15409 echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412 cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h. */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 $ac_includes_default
15419 int
15420 main ()
15421 {
15422 static struct stat ac_aggr;
15423 if (sizeof ac_aggr.st_blksize)
15424 return 0;
15425 ;
15426 return 0;
15427 }
15428 _ACEOF
15429 rm -f conftest.$ac_objext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15431 (eval $ac_compile) 2>conftest.er1
15432 ac_status=$?
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -z "$ac_c_werror_flag"
15439 || test ! -s conftest.err'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; } &&
15445 { ac_try='test -s conftest.$ac_objext'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15448 ac_status=$?
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15451 ac_cv_member_struct_stat_st_blksize=yes
15452 else
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 ac_cv_member_struct_stat_st_blksize=no
15457 fi
15458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15459 fi
15460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15461 fi
15462 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15463 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
15464 if test $ac_cv_member_struct_stat_st_blksize = yes; then
15465
15466 cat >>confdefs.h <<_ACEOF
15467 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15468 _ACEOF
15469
15470
15471 fi
15472
15473
15474 # ------------------ #
15475 # Checks for types. #
15476 # ------------------ #
15477
15478 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15479 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15480 if test "${ac_cv_type_signal+set}" = set; then
15481 echo $ECHO_N "(cached) $ECHO_C" >&6
15482 else
15483 cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h. */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15489 #include <sys/types.h>
15490 #include <signal.h>
15491 #ifdef signal
15492 # undef signal
15493 #endif
15494 #ifdef __cplusplus
15495 extern "C" void (*signal (int, void (*)(int)))(int);
15496 #else
15497 void (*signal ()) ();
15498 #endif
15499
15500 int
15501 main ()
15502 {
15503 int i;
15504 ;
15505 return 0;
15506 }
15507 _ACEOF
15508 rm -f conftest.$ac_objext
15509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15510 (eval $ac_compile) 2>conftest.er1
15511 ac_status=$?
15512 grep -v '^ *+' conftest.er1 >conftest.err
15513 rm -f conftest.er1
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } &&
15517 { ac_try='test -z "$ac_c_werror_flag"
15518 || test ! -s conftest.err'
15519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15520 (eval $ac_try) 2>&5
15521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; } &&
15524 { ac_try='test -s conftest.$ac_objext'
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; }; then
15530 ac_cv_type_signal=void
15531 else
15532 echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15534
15535 ac_cv_type_signal=int
15536 fi
15537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15538 fi
15539 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15540 echo "${ECHO_T}$ac_cv_type_signal" >&6
15541
15542 cat >>confdefs.h <<_ACEOF
15543 #define RETSIGTYPE $ac_cv_type_signal
15544 _ACEOF
15545
15546
15547 echo "$as_me:$LINENO: checking for socklen_t" >&5
15548 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
15549 if test "${ac_cv_type_socklen_t+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552 cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h. */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15558 #include <sys/types.h>
15559 #include <sys/socket.h>
15560
15561
15562 int
15563 main ()
15564 {
15565 if ((socklen_t *) 0)
15566 return 0;
15567 if (sizeof (socklen_t))
15568 return 0;
15569 ;
15570 return 0;
15571 }
15572 _ACEOF
15573 rm -f conftest.$ac_objext
15574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15575 (eval $ac_compile) 2>conftest.er1
15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
15582 { ac_try='test -z "$ac_c_werror_flag"
15583 || test ! -s conftest.err'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try='test -s conftest.$ac_objext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_type_socklen_t=yes
15596 else
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600 ac_cv_type_socklen_t=no
15601 fi
15602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15603 fi
15604 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15605 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
15606 if test $ac_cv_type_socklen_t = yes; then
15607
15608 cat >>confdefs.h <<_ACEOF
15609 #define HAVE_SOCKLEN_T 1
15610 _ACEOF
15611
15612
15613 fi
15614
15615 echo "$as_me:$LINENO: checking for uintptr_t" >&5
15616 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
15617 if test "${ac_cv_type_uintptr_t+set}" = set; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 else
15620 cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h. */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626 #include <stdint.h>
15627
15628 int
15629 main ()
15630 {
15631 if ((uintptr_t *) 0)
15632 return 0;
15633 if (sizeof (uintptr_t))
15634 return 0;
15635 ;
15636 return 0;
15637 }
15638 _ACEOF
15639 rm -f conftest.$ac_objext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15641 (eval $ac_compile) 2>conftest.er1
15642 ac_status=$?
15643 grep -v '^ *+' conftest.er1 >conftest.err
15644 rm -f conftest.er1
15645 cat conftest.err >&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -z "$ac_c_werror_flag"
15649 || test ! -s conftest.err'
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15652 ac_status=$?
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; } &&
15655 { ac_try='test -s conftest.$ac_objext'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15658 ac_status=$?
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; }; then
15661 ac_cv_type_uintptr_t=yes
15662 else
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15665
15666 ac_cv_type_uintptr_t=no
15667 fi
15668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15669 fi
15670 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15671 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
15672 if test $ac_cv_type_uintptr_t = yes; then
15673
15674 cat >>confdefs.h <<_ACEOF
15675 #define HAVE_UINTPTR_T 1
15676 _ACEOF
15677
15678
15679 fi
15680
15681
15682 # ------------------------------------- #
15683 # Checks for compiler characteristics. #
15684 # ------------------------------------- #
15685
15686 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15687 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15688 if test "${ac_cv_c_const+set}" = set; then
15689 echo $ECHO_N "(cached) $ECHO_C" >&6
15690 else
15691 cat >conftest.$ac_ext <<_ACEOF
15692 /* confdefs.h. */
15693 _ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15697
15698 int
15699 main ()
15700 {
15701 /* FIXME: Include the comments suggested by Paul. */
15702 #ifndef __cplusplus
15703 /* Ultrix mips cc rejects this. */
15704 typedef int charset[2];
15705 const charset x;
15706 /* SunOS 4.1.1 cc rejects this. */
15707 char const *const *ccp;
15708 char **p;
15709 /* NEC SVR4.0.2 mips cc rejects this. */
15710 struct point {int x, y;};
15711 static struct point const zero = {0,0};
15712 /* AIX XL C 1.02.0.0 rejects this.
15713 It does not let you subtract one const X* pointer from another in
15714 an arm of an if-expression whose if-part is not a constant
15715 expression */
15716 const char *g = "string";
15717 ccp = &g + (g ? g-g : 0);
15718 /* HPUX 7.0 cc rejects these. */
15719 ++ccp;
15720 p = (char**) ccp;
15721 ccp = (char const *const *) p;
15722 { /* SCO 3.2v4 cc rejects this. */
15723 char *t;
15724 char const *s = 0 ? (char *) 0 : (char const *) 0;
15725
15726 *t++ = 0;
15727 }
15728 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15729 int x[] = {25, 17};
15730 const int *foo = &x[0];
15731 ++foo;
15732 }
15733 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15734 typedef const int *iptr;
15735 iptr p = 0;
15736 ++p;
15737 }
15738 { /* AIX XL C 1.02.0.0 rejects this saying
15739 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15740 struct s { int j; const int *ap[3]; };
15741 struct s *b; b->j = 5;
15742 }
15743 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15744 const int foo = 10;
15745 }
15746 #endif
15747
15748 ;
15749 return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15754 (eval $ac_compile) 2>conftest.er1
15755 ac_status=$?
15756 grep -v '^ *+' conftest.er1 >conftest.err
15757 rm -f conftest.er1
15758 cat conftest.err >&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } &&
15761 { ac_try='test -z "$ac_c_werror_flag"
15762 || test ! -s conftest.err'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; } &&
15768 { ac_try='test -s conftest.$ac_objext'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15774 ac_cv_c_const=yes
15775 else
15776 echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15778
15779 ac_cv_c_const=no
15780 fi
15781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15782 fi
15783 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15784 echo "${ECHO_T}$ac_cv_c_const" >&6
15785 if test $ac_cv_c_const = no; then
15786
15787 cat >>confdefs.h <<\_ACEOF
15788 #define const
15789 _ACEOF
15790
15791 fi
15792
15793 echo "$as_me:$LINENO: checking for inline" >&5
15794 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15795 if test "${ac_cv_c_inline+set}" = set; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15797 else
15798 ac_cv_c_inline=no
15799 for ac_kw in inline __inline__ __inline; do
15800 cat >conftest.$ac_ext <<_ACEOF
15801 /* confdefs.h. */
15802 _ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15806 #ifndef __cplusplus
15807 typedef int foo_t;
15808 static $ac_kw foo_t static_foo () {return 0; }
15809 $ac_kw foo_t foo () {return 0; }
15810 #endif
15811
15812 _ACEOF
15813 rm -f conftest.$ac_objext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15815 (eval $ac_compile) 2>conftest.er1
15816 ac_status=$?
15817 grep -v '^ *+' conftest.er1 >conftest.err
15818 rm -f conftest.er1
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
15822 { ac_try='test -z "$ac_c_werror_flag"
15823 || test ! -s conftest.err'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; } &&
15829 { ac_try='test -s conftest.$ac_objext'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15835 ac_cv_c_inline=$ac_kw; break
15836 else
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15839
15840 fi
15841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15842 done
15843
15844 fi
15845 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15846 echo "${ECHO_T}$ac_cv_c_inline" >&6
15847
15848
15849 case $ac_cv_c_inline in
15850 inline | yes) ;;
15851 *)
15852 case $ac_cv_c_inline in
15853 no) ac_val=;;
15854 *) ac_val=$ac_cv_c_inline;;
15855 esac
15856 cat >>confdefs.h <<_ACEOF
15857 #ifndef __cplusplus
15858 #define inline $ac_val
15859 #endif
15860 _ACEOF
15861 ;;
15862 esac
15863
15864 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15865 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
15866 if test "${ac_cv_c_bigendian+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 else
15869 # See if sys/param.h defines the BYTE_ORDER macro.
15870 cat >conftest.$ac_ext <<_ACEOF
15871 /* confdefs.h. */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 #include <sys/types.h>
15877 #include <sys/param.h>
15878
15879 int
15880 main ()
15881 {
15882 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15883 bogus endian macros
15884 #endif
15885
15886 ;
15887 return 0;
15888 }
15889 _ACEOF
15890 rm -f conftest.$ac_objext
15891 if { (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"
15900 || test ! -s conftest.err'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; } &&
15906 { ac_try='test -s conftest.$ac_objext'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15912 # It does; now see whether it defined to BIG_ENDIAN or not.
15913 cat >conftest.$ac_ext <<_ACEOF
15914 /* confdefs.h. */
15915 _ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15919 #include <sys/types.h>
15920 #include <sys/param.h>
15921
15922 int
15923 main ()
15924 {
15925 #if BYTE_ORDER != BIG_ENDIAN
15926 not big endian
15927 #endif
15928
15929 ;
15930 return 0;
15931 }
15932 _ACEOF
15933 rm -f conftest.$ac_objext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15935 (eval $ac_compile) 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -z "$ac_c_werror_flag"
15943 || test ! -s conftest.err'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; } &&
15949 { ac_try='test -s conftest.$ac_objext'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
15955 ac_cv_c_bigendian=yes
15956 else
15957 echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15959
15960 ac_cv_c_bigendian=no
15961 fi
15962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15963 else
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15966
15967 # It does not; compile a test program.
15968 if test "$cross_compiling" = yes; then
15969 # try to guess the endianness by grepping values into an object file
15970 ac_cv_c_bigendian=unknown
15971 cat >conftest.$ac_ext <<_ACEOF
15972 /* confdefs.h. */
15973 _ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15977 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15978 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15979 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15980 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15981 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15982 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15983 int
15984 main ()
15985 {
15986 _ascii (); _ebcdic ();
15987 ;
15988 return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext
15992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15993 (eval $ac_compile) 2>conftest.er1
15994 ac_status=$?
15995 grep -v '^ *+' conftest.er1 >conftest.err
15996 rm -f conftest.er1
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } &&
16000 { ac_try='test -z "$ac_c_werror_flag"
16001 || test ! -s conftest.err'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; } &&
16007 { ac_try='test -s conftest.$ac_objext'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; }; then
16013 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
16014 ac_cv_c_bigendian=yes
16015 fi
16016 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16017 if test "$ac_cv_c_bigendian" = unknown; then
16018 ac_cv_c_bigendian=no
16019 else
16020 # finding both strings is unlikely to happen, but who knows?
16021 ac_cv_c_bigendian=unknown
16022 fi
16023 fi
16024 else
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16027
16028 fi
16029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16030 else
16031 cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h. */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 int
16038 main ()
16039 {
16040 /* Are we little or big endian? From Harbison&Steele. */
16041 union
16042 {
16043 long l;
16044 char c[sizeof (long)];
16045 } u;
16046 u.l = 1;
16047 exit (u.c[sizeof (long) - 1] == 1);
16048 }
16049 _ACEOF
16050 rm -f conftest$ac_exeext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16052 (eval $ac_link) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 ac_cv_c_bigendian=no
16062 else
16063 echo "$as_me: program exited with status $ac_status" >&5
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 ( exit $ac_status )
16068 ac_cv_c_bigendian=yes
16069 fi
16070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16071 fi
16072 fi
16073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16074 fi
16075 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16076 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16077 case $ac_cv_c_bigendian in
16078 yes)
16079
16080 cat >>confdefs.h <<\_ACEOF
16081 #define WORDS_BIGENDIAN 1
16082 _ACEOF
16083 ;;
16084 no)
16085 ;;
16086 *)
16087 { { echo "$as_me:$LINENO: error: unknown endianness
16088 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
16089 echo "$as_me: error: unknown endianness
16090 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
16091 { (exit 1); exit 1; }; } ;;
16092 esac
16093
16094
16095 # ------------------------------ #
16096 # Checks for library functions. #
16097 # ------------------------------ #
16098
16099 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16100 # for constant arguments. Useless!
16101 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16102 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16103 if test "${ac_cv_working_alloca_h+set}" = set; then
16104 echo $ECHO_N "(cached) $ECHO_C" >&6
16105 else
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #include <alloca.h>
16113 int
16114 main ()
16115 {
16116 char *p = (char *) alloca (2 * sizeof (int));
16117 ;
16118 return 0;
16119 }
16120 _ACEOF
16121 rm -f conftest.$ac_objext conftest$ac_exeext
16122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16123 (eval $ac_link) 2>conftest.er1
16124 ac_status=$?
16125 grep -v '^ *+' conftest.er1 >conftest.err
16126 rm -f conftest.er1
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
16130 { ac_try='test -z "$ac_c_werror_flag"
16131 || test ! -s conftest.err'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; } &&
16137 { ac_try='test -s conftest$ac_exeext'
16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16140 ac_status=$?
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); }; }; then
16143 ac_cv_working_alloca_h=yes
16144 else
16145 echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.$ac_ext >&5
16147
16148 ac_cv_working_alloca_h=no
16149 fi
16150 rm -f conftest.err conftest.$ac_objext \
16151 conftest$ac_exeext conftest.$ac_ext
16152 fi
16153 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16154 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16155 if test $ac_cv_working_alloca_h = yes; then
16156
16157 cat >>confdefs.h <<\_ACEOF
16158 #define HAVE_ALLOCA_H 1
16159 _ACEOF
16160
16161 fi
16162
16163 echo "$as_me:$LINENO: checking for alloca" >&5
16164 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16165 if test "${ac_cv_func_alloca_works+set}" = set; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16167 else
16168 cat >conftest.$ac_ext <<_ACEOF
16169 /* confdefs.h. */
16170 _ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h. */
16174 #ifdef __GNUC__
16175 # define alloca __builtin_alloca
16176 #else
16177 # ifdef _MSC_VER
16178 # include <malloc.h>
16179 # define alloca _alloca
16180 # else
16181 # if HAVE_ALLOCA_H
16182 # include <alloca.h>
16183 # else
16184 # ifdef _AIX
16185 #pragma alloca
16186 # else
16187 # ifndef alloca /* predefined by HP cc +Olibcalls */
16188 char *alloca ();
16189 # endif
16190 # endif
16191 # endif
16192 # endif
16193 #endif
16194
16195 int
16196 main ()
16197 {
16198 char *p = (char *) alloca (1);
16199 ;
16200 return 0;
16201 }
16202 _ACEOF
16203 rm -f conftest.$ac_objext conftest$ac_exeext
16204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16205 (eval $ac_link) 2>conftest.er1
16206 ac_status=$?
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } &&
16212 { ac_try='test -z "$ac_c_werror_flag"
16213 || test ! -s conftest.err'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; } &&
16219 { ac_try='test -s conftest$ac_exeext'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16222 ac_status=$?
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16225 ac_cv_func_alloca_works=yes
16226 else
16227 echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16229
16230 ac_cv_func_alloca_works=no
16231 fi
16232 rm -f conftest.err conftest.$ac_objext \
16233 conftest$ac_exeext conftest.$ac_ext
16234 fi
16235 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16236 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16237
16238 if test $ac_cv_func_alloca_works = yes; then
16239
16240 cat >>confdefs.h <<\_ACEOF
16241 #define HAVE_ALLOCA 1
16242 _ACEOF
16243
16244 else
16245 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16246 # that cause trouble. Some versions do not even contain alloca or
16247 # contain a buggy version. If you still want to use their alloca,
16248 # use ar to extract alloca.o from them instead of compiling alloca.c.
16249
16250 ALLOCA=alloca.$ac_objext
16251
16252 cat >>confdefs.h <<\_ACEOF
16253 #define C_ALLOCA 1
16254 _ACEOF
16255
16256
16257 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16258 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16259 if test "${ac_cv_os_cray+set}" = set; then
16260 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262 cat >conftest.$ac_ext <<_ACEOF
16263 /* confdefs.h. */
16264 _ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16268 #if defined(CRAY) && ! defined(CRAY2)
16269 webecray
16270 #else
16271 wenotbecray
16272 #endif
16273
16274 _ACEOF
16275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16276 $EGREP "webecray" >/dev/null 2>&1; then
16277 ac_cv_os_cray=yes
16278 else
16279 ac_cv_os_cray=no
16280 fi
16281 rm -f conftest*
16282
16283 fi
16284 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16285 echo "${ECHO_T}$ac_cv_os_cray" >&6
16286 if test $ac_cv_os_cray = yes; then
16287 for ac_func in _getb67 GETB67 getb67; do
16288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16289 echo "$as_me:$LINENO: checking for $ac_func" >&5
16290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16291 if eval "test \"\${$as_ac_var+set}\" = set"; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16293 else
16294 cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h. */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16302 #define $ac_func innocuous_$ac_func
16303
16304 /* System header to define __stub macros and hopefully few prototypes,
16305 which can conflict with char $ac_func (); below.
16306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16307 <limits.h> exists even on freestanding compilers. */
16308
16309 #ifdef __STDC__
16310 # include <limits.h>
16311 #else
16312 # include <assert.h>
16313 #endif
16314
16315 #undef $ac_func
16316
16317 /* Override any gcc2 internal prototype to avoid an error. */
16318 #ifdef __cplusplus
16319 extern "C"
16320 {
16321 #endif
16322 /* We use char because int might match the return type of a gcc2
16323 builtin and then its argument prototype would still apply. */
16324 char $ac_func ();
16325 /* The GNU C library defines this for functions which it implements
16326 to always fail with ENOSYS. Some functions are actually named
16327 something starting with __ and the normal name is an alias. */
16328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16329 choke me
16330 #else
16331 char (*f) () = $ac_func;
16332 #endif
16333 #ifdef __cplusplus
16334 }
16335 #endif
16336
16337 int
16338 main ()
16339 {
16340 return f != $ac_func;
16341 ;
16342 return 0;
16343 }
16344 _ACEOF
16345 rm -f conftest.$ac_objext conftest$ac_exeext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16347 (eval $ac_link) 2>conftest.er1
16348 ac_status=$?
16349 grep -v '^ *+' conftest.er1 >conftest.err
16350 rm -f conftest.er1
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
16354 { ac_try='test -z "$ac_c_werror_flag"
16355 || test ! -s conftest.err'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; } &&
16361 { ac_try='test -s conftest$ac_exeext'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16364 ac_status=$?
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 eval "$as_ac_var=yes"
16368 else
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16371
16372 eval "$as_ac_var=no"
16373 fi
16374 rm -f conftest.err conftest.$ac_objext \
16375 conftest$ac_exeext conftest.$ac_ext
16376 fi
16377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16379 if test `eval echo '${'$as_ac_var'}'` = yes; then
16380
16381 cat >>confdefs.h <<_ACEOF
16382 #define CRAY_STACKSEG_END $ac_func
16383 _ACEOF
16384
16385 break
16386 fi
16387
16388 done
16389 fi
16390
16391 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16392 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16393 if test "${ac_cv_c_stack_direction+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16395 else
16396 if test "$cross_compiling" = yes; then
16397 ac_cv_c_stack_direction=0
16398 else
16399 cat >conftest.$ac_ext <<_ACEOF
16400 /* confdefs.h. */
16401 _ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h. */
16405 int
16406 find_stack_direction ()
16407 {
16408 static char *addr = 0;
16409 auto char dummy;
16410 if (addr == 0)
16411 {
16412 addr = &dummy;
16413 return find_stack_direction ();
16414 }
16415 else
16416 return (&dummy > addr) ? 1 : -1;
16417 }
16418
16419 int
16420 main ()
16421 {
16422 exit (find_stack_direction () < 0);
16423 }
16424 _ACEOF
16425 rm -f conftest$ac_exeext
16426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16427 (eval $ac_link) 2>&5
16428 ac_status=$?
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_cv_c_stack_direction=1
16437 else
16438 echo "$as_me: program exited with status $ac_status" >&5
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 ( exit $ac_status )
16443 ac_cv_c_stack_direction=-1
16444 fi
16445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16446 fi
16447 fi
16448 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16449 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16450
16451 cat >>confdefs.h <<_ACEOF
16452 #define STACK_DIRECTION $ac_cv_c_stack_direction
16453 _ACEOF
16454
16455
16456 fi
16457
16458
16459
16460 for ac_header in stdlib.h unistd.h
16461 do
16462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16464 echo "$as_me:$LINENO: checking for $ac_header" >&5
16465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 fi
16469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16471 else
16472 # Is the header compilable?
16473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16475 cat >conftest.$ac_ext <<_ACEOF
16476 /* confdefs.h. */
16477 _ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16481 $ac_includes_default
16482 #include <$ac_header>
16483 _ACEOF
16484 rm -f conftest.$ac_objext
16485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16486 (eval $ac_compile) 2>conftest.er1
16487 ac_status=$?
16488 grep -v '^ *+' conftest.er1 >conftest.err
16489 rm -f conftest.er1
16490 cat conftest.err >&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } &&
16493 { ac_try='test -z "$ac_c_werror_flag"
16494 || test ! -s conftest.err'
16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16497 ac_status=$?
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; } &&
16500 { ac_try='test -s conftest.$ac_objext'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 ac_header_compiler=yes
16507 else
16508 echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16510
16511 ac_header_compiler=no
16512 fi
16513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16514 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16515 echo "${ECHO_T}$ac_header_compiler" >&6
16516
16517 # Is the header present?
16518 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16520 cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h. */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16526 #include <$ac_header>
16527 _ACEOF
16528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16530 ac_status=$?
16531 grep -v '^ *+' conftest.er1 >conftest.err
16532 rm -f conftest.er1
16533 cat conftest.err >&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } >/dev/null; then
16536 if test -s conftest.err; then
16537 ac_cpp_err=$ac_c_preproc_warn_flag
16538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16539 else
16540 ac_cpp_err=
16541 fi
16542 else
16543 ac_cpp_err=yes
16544 fi
16545 if test -z "$ac_cpp_err"; then
16546 ac_header_preproc=yes
16547 else
16548 echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16550
16551 ac_header_preproc=no
16552 fi
16553 rm -f conftest.err conftest.$ac_ext
16554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16555 echo "${ECHO_T}$ac_header_preproc" >&6
16556
16557 # So? What about this header?
16558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16559 yes:no: )
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16564 ac_header_preproc=yes
16565 ;;
16566 no:yes:* )
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16579 (
16580 cat <<\_ASBOX
16581 ## ------------------------------------------ ##
16582 ## Report this to the AC_PACKAGE_NAME lists. ##
16583 ## ------------------------------------------ ##
16584 _ASBOX
16585 ) |
16586 sed "s/^/$as_me: WARNING: /" >&2
16587 ;;
16588 esac
16589 echo "$as_me:$LINENO: checking for $ac_header" >&5
16590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 else
16594 eval "$as_ac_Header=\$ac_header_preproc"
16595 fi
16596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16598
16599 fi
16600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16601 cat >>confdefs.h <<_ACEOF
16602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16603 _ACEOF
16604
16605 fi
16606
16607 done
16608
16609
16610 for ac_func in getpagesize
16611 do
16612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16613 echo "$as_me:$LINENO: checking for $ac_func" >&5
16614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16615 if eval "test \"\${$as_ac_var+set}\" = set"; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618 cat >conftest.$ac_ext <<_ACEOF
16619 /* confdefs.h. */
16620 _ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16626 #define $ac_func innocuous_$ac_func
16627
16628 /* System header to define __stub macros and hopefully few prototypes,
16629 which can conflict with char $ac_func (); below.
16630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16631 <limits.h> exists even on freestanding compilers. */
16632
16633 #ifdef __STDC__
16634 # include <limits.h>
16635 #else
16636 # include <assert.h>
16637 #endif
16638
16639 #undef $ac_func
16640
16641 /* Override any gcc2 internal prototype to avoid an error. */
16642 #ifdef __cplusplus
16643 extern "C"
16644 {
16645 #endif
16646 /* We use char because int might match the return type of a gcc2
16647 builtin and then its argument prototype would still apply. */
16648 char $ac_func ();
16649 /* The GNU C library defines this for functions which it implements
16650 to always fail with ENOSYS. Some functions are actually named
16651 something starting with __ and the normal name is an alias. */
16652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16653 choke me
16654 #else
16655 char (*f) () = $ac_func;
16656 #endif
16657 #ifdef __cplusplus
16658 }
16659 #endif
16660
16661 int
16662 main ()
16663 {
16664 return f != $ac_func;
16665 ;
16666 return 0;
16667 }
16668 _ACEOF
16669 rm -f conftest.$ac_objext conftest$ac_exeext
16670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16671 (eval $ac_link) 2>conftest.er1
16672 ac_status=$?
16673 grep -v '^ *+' conftest.er1 >conftest.err
16674 rm -f conftest.er1
16675 cat conftest.err >&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try='test -z "$ac_c_werror_flag"
16679 || test ! -s conftest.err'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try='test -s conftest$ac_exeext'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; }; then
16691 eval "$as_ac_var=yes"
16692 else
16693 echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16695
16696 eval "$as_ac_var=no"
16697 fi
16698 rm -f conftest.err conftest.$ac_objext \
16699 conftest$ac_exeext conftest.$ac_ext
16700 fi
16701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16703 if test `eval echo '${'$as_ac_var'}'` = yes; then
16704 cat >>confdefs.h <<_ACEOF
16705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16706 _ACEOF
16707
16708 fi
16709 done
16710
16711 echo "$as_me:$LINENO: checking for working mmap" >&5
16712 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16713 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 else
16716 if test "$cross_compiling" = yes; then
16717 ac_cv_func_mmap_fixed_mapped=no
16718 else
16719 cat >conftest.$ac_ext <<_ACEOF
16720 /* confdefs.h. */
16721 _ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16725 $ac_includes_default
16726 /* malloc might have been renamed as rpl_malloc. */
16727 #undef malloc
16728
16729 /* Thanks to Mike Haertel and Jim Avera for this test.
16730 Here is a matrix of mmap possibilities:
16731 mmap private not fixed
16732 mmap private fixed at somewhere currently unmapped
16733 mmap private fixed at somewhere already mapped
16734 mmap shared not fixed
16735 mmap shared fixed at somewhere currently unmapped
16736 mmap shared fixed at somewhere already mapped
16737 For private mappings, we should verify that changes cannot be read()
16738 back from the file, nor mmap's back from the file at a different
16739 address. (There have been systems where private was not correctly
16740 implemented like the infamous i386 svr4.0, and systems where the
16741 VM page cache was not coherent with the file system buffer cache
16742 like early versions of FreeBSD and possibly contemporary NetBSD.)
16743 For shared mappings, we should conversely verify that changes get
16744 propagated back to all the places they're supposed to be.
16745
16746 Grep wants private fixed already mapped.
16747 The main things grep needs to know about mmap are:
16748 * does it exist and is it safe to write into the mmap'd area
16749 * how to use it (BSD variants) */
16750
16751 #include <fcntl.h>
16752 #include <sys/mman.h>
16753
16754 #if !STDC_HEADERS && !HAVE_STDLIB_H
16755 char *malloc ();
16756 #endif
16757
16758 /* This mess was copied from the GNU getpagesize.h. */
16759 #if !HAVE_GETPAGESIZE
16760 /* Assume that all systems that can run configure have sys/param.h. */
16761 # if !HAVE_SYS_PARAM_H
16762 # define HAVE_SYS_PARAM_H 1
16763 # endif
16764
16765 # ifdef _SC_PAGESIZE
16766 # define getpagesize() sysconf(_SC_PAGESIZE)
16767 # else /* no _SC_PAGESIZE */
16768 # if HAVE_SYS_PARAM_H
16769 # include <sys/param.h>
16770 # ifdef EXEC_PAGESIZE
16771 # define getpagesize() EXEC_PAGESIZE
16772 # else /* no EXEC_PAGESIZE */
16773 # ifdef NBPG
16774 # define getpagesize() NBPG * CLSIZE
16775 # ifndef CLSIZE
16776 # define CLSIZE 1
16777 # endif /* no CLSIZE */
16778 # else /* no NBPG */
16779 # ifdef NBPC
16780 # define getpagesize() NBPC
16781 # else /* no NBPC */
16782 # ifdef PAGESIZE
16783 # define getpagesize() PAGESIZE
16784 # endif /* PAGESIZE */
16785 # endif /* no NBPC */
16786 # endif /* no NBPG */
16787 # endif /* no EXEC_PAGESIZE */
16788 # else /* no HAVE_SYS_PARAM_H */
16789 # define getpagesize() 8192 /* punt totally */
16790 # endif /* no HAVE_SYS_PARAM_H */
16791 # endif /* no _SC_PAGESIZE */
16792
16793 #endif /* no HAVE_GETPAGESIZE */
16794
16795 int
16796 main ()
16797 {
16798 char *data, *data2, *data3;
16799 int i, pagesize;
16800 int fd;
16801
16802 pagesize = getpagesize ();
16803
16804 /* First, make a file with some known garbage in it. */
16805 data = (char *) malloc (pagesize);
16806 if (!data)
16807 exit (1);
16808 for (i = 0; i < pagesize; ++i)
16809 *(data + i) = rand ();
16810 umask (0);
16811 fd = creat ("conftest.mmap", 0600);
16812 if (fd < 0)
16813 exit (1);
16814 if (write (fd, data, pagesize) != pagesize)
16815 exit (1);
16816 close (fd);
16817
16818 /* Next, try to mmap the file at a fixed address which already has
16819 something else allocated at it. If we can, also make sure that
16820 we see the same garbage. */
16821 fd = open ("conftest.mmap", O_RDWR);
16822 if (fd < 0)
16823 exit (1);
16824 data2 = (char *) malloc (2 * pagesize);
16825 if (!data2)
16826 exit (1);
16827 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16828 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16829 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16830 exit (1);
16831 for (i = 0; i < pagesize; ++i)
16832 if (*(data + i) != *(data2 + i))
16833 exit (1);
16834
16835 /* Finally, make sure that changes to the mapped area do not
16836 percolate back to the file as seen by read(). (This is a bug on
16837 some variants of i386 svr4.0.) */
16838 for (i = 0; i < pagesize; ++i)
16839 *(data2 + i) = *(data2 + i) + 1;
16840 data3 = (char *) malloc (pagesize);
16841 if (!data3)
16842 exit (1);
16843 if (read (fd, data3, pagesize) != pagesize)
16844 exit (1);
16845 for (i = 0; i < pagesize; ++i)
16846 if (*(data + i) != *(data3 + i))
16847 exit (1);
16848 close (fd);
16849 exit (0);
16850 }
16851 _ACEOF
16852 rm -f conftest$ac_exeext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16854 (eval $ac_link) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16860 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 ac_cv_func_mmap_fixed_mapped=yes
16864 else
16865 echo "$as_me: program exited with status $ac_status" >&5
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16868
16869 ( exit $ac_status )
16870 ac_cv_func_mmap_fixed_mapped=no
16871 fi
16872 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16873 fi
16874 fi
16875 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16876 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16877 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16878
16879 cat >>confdefs.h <<\_ACEOF
16880 #define HAVE_MMAP 1
16881 _ACEOF
16882
16883 fi
16884 rm -f conftest.mmap
16885
16886 echo "$as_me:$LINENO: checking for pid_t" >&5
16887 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16888 if test "${ac_cv_type_pid_t+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891 cat >conftest.$ac_ext <<_ACEOF
16892 /* confdefs.h. */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 $ac_includes_default
16898 int
16899 main ()
16900 {
16901 if ((pid_t *) 0)
16902 return 0;
16903 if (sizeof (pid_t))
16904 return 0;
16905 ;
16906 return 0;
16907 }
16908 _ACEOF
16909 rm -f conftest.$ac_objext
16910 if { (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"
16919 || test ! -s conftest.err'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; } &&
16925 { ac_try='test -s conftest.$ac_objext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_type_pid_t=yes
16932 else
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936 ac_cv_type_pid_t=no
16937 fi
16938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16939 fi
16940 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16941 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16942 if test $ac_cv_type_pid_t = yes; then
16943 :
16944 else
16945
16946 cat >>confdefs.h <<_ACEOF
16947 #define pid_t int
16948 _ACEOF
16949
16950 fi
16951
16952
16953
16954 for ac_header in unistd.h vfork.h
16955 do
16956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16958 echo "$as_me:$LINENO: checking for $ac_header" >&5
16959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962 fi
16963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16965 else
16966 # Is the header compilable?
16967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16969 cat >conftest.$ac_ext <<_ACEOF
16970 /* confdefs.h. */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h. */
16975 $ac_includes_default
16976 #include <$ac_header>
16977 _ACEOF
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980 (eval $ac_compile) 2>conftest.er1
16981 ac_status=$?
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_header_compiler=yes
17001 else
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005 ac_header_compiler=no
17006 fi
17007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17009 echo "${ECHO_T}$ac_header_compiler" >&6
17010
17011 # Is the header present?
17012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17014 cat >conftest.$ac_ext <<_ACEOF
17015 /* confdefs.h. */
17016 _ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17020 #include <$ac_header>
17021 _ACEOF
17022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17024 ac_status=$?
17025 grep -v '^ *+' conftest.er1 >conftest.err
17026 rm -f conftest.er1
17027 cat conftest.err >&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } >/dev/null; then
17030 if test -s conftest.err; then
17031 ac_cpp_err=$ac_c_preproc_warn_flag
17032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17033 else
17034 ac_cpp_err=
17035 fi
17036 else
17037 ac_cpp_err=yes
17038 fi
17039 if test -z "$ac_cpp_err"; then
17040 ac_header_preproc=yes
17041 else
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 ac_header_preproc=no
17046 fi
17047 rm -f conftest.err conftest.$ac_ext
17048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17049 echo "${ECHO_T}$ac_header_preproc" >&6
17050
17051 # So? What about this header?
17052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17053 yes:no: )
17054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17058 ac_header_preproc=yes
17059 ;;
17060 no:yes:* )
17061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17073 (
17074 cat <<\_ASBOX
17075 ## ------------------------------------------ ##
17076 ## Report this to the AC_PACKAGE_NAME lists. ##
17077 ## ------------------------------------------ ##
17078 _ASBOX
17079 ) |
17080 sed "s/^/$as_me: WARNING: /" >&2
17081 ;;
17082 esac
17083 echo "$as_me:$LINENO: checking for $ac_header" >&5
17084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088 eval "$as_ac_Header=\$ac_header_preproc"
17089 fi
17090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17092
17093 fi
17094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17095 cat >>confdefs.h <<_ACEOF
17096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17097 _ACEOF
17098
17099 fi
17100
17101 done
17102
17103
17104
17105 for ac_func in fork vfork
17106 do
17107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17108 echo "$as_me:$LINENO: checking for $ac_func" >&5
17109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17110 if eval "test \"\${$as_ac_var+set}\" = set"; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113 cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h. */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17121 #define $ac_func innocuous_$ac_func
17122
17123 /* System header to define __stub macros and hopefully few prototypes,
17124 which can conflict with char $ac_func (); below.
17125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17126 <limits.h> exists even on freestanding compilers. */
17127
17128 #ifdef __STDC__
17129 # include <limits.h>
17130 #else
17131 # include <assert.h>
17132 #endif
17133
17134 #undef $ac_func
17135
17136 /* Override any gcc2 internal prototype to avoid an error. */
17137 #ifdef __cplusplus
17138 extern "C"
17139 {
17140 #endif
17141 /* We use char because int might match the return type of a gcc2
17142 builtin and then its argument prototype would still apply. */
17143 char $ac_func ();
17144 /* The GNU C library defines this for functions which it implements
17145 to always fail with ENOSYS. Some functions are actually named
17146 something starting with __ and the normal name is an alias. */
17147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17148 choke me
17149 #else
17150 char (*f) () = $ac_func;
17151 #endif
17152 #ifdef __cplusplus
17153 }
17154 #endif
17155
17156 int
17157 main ()
17158 {
17159 return f != $ac_func;
17160 ;
17161 return 0;
17162 }
17163 _ACEOF
17164 rm -f conftest.$ac_objext conftest$ac_exeext
17165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17166 (eval $ac_link) 2>conftest.er1
17167 ac_status=$?
17168 grep -v '^ *+' conftest.er1 >conftest.err
17169 rm -f conftest.er1
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
17173 { ac_try='test -z "$ac_c_werror_flag"
17174 || test ! -s conftest.err'
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; } &&
17180 { ac_try='test -s conftest$ac_exeext'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 eval "$as_ac_var=yes"
17187 else
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17190
17191 eval "$as_ac_var=no"
17192 fi
17193 rm -f conftest.err conftest.$ac_objext \
17194 conftest$ac_exeext conftest.$ac_ext
17195 fi
17196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17198 if test `eval echo '${'$as_ac_var'}'` = yes; then
17199 cat >>confdefs.h <<_ACEOF
17200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17201 _ACEOF
17202
17203 fi
17204 done
17205
17206 if test "x$ac_cv_func_fork" = xyes; then
17207 echo "$as_me:$LINENO: checking for working fork" >&5
17208 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17209 if test "${ac_cv_func_fork_works+set}" = set; then
17210 echo $ECHO_N "(cached) $ECHO_C" >&6
17211 else
17212 if test "$cross_compiling" = yes; then
17213 ac_cv_func_fork_works=cross
17214 else
17215 cat >conftest.$ac_ext <<_ACEOF
17216 /* By Ruediger Kuhlmann. */
17217 #include <sys/types.h>
17218 #if HAVE_UNISTD_H
17219 # include <unistd.h>
17220 #endif
17221 /* Some systems only have a dummy stub for fork() */
17222 int main ()
17223 {
17224 if (fork() < 0)
17225 exit (1);
17226 exit (0);
17227 }
17228 _ACEOF
17229 rm -f conftest$ac_exeext
17230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17231 (eval $ac_link) 2>&5
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_func_fork_works=yes
17241 else
17242 echo "$as_me: program exited with status $ac_status" >&5
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17245
17246 ( exit $ac_status )
17247 ac_cv_func_fork_works=no
17248 fi
17249 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17250 fi
17251 fi
17252 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17253 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17254
17255 else
17256 ac_cv_func_fork_works=$ac_cv_func_fork
17257 fi
17258 if test "x$ac_cv_func_fork_works" = xcross; then
17259 case $host in
17260 *-*-amigaos* | *-*-msdosdjgpp*)
17261 # Override, as these systems have only a dummy fork() stub
17262 ac_cv_func_fork_works=no
17263 ;;
17264 *)
17265 ac_cv_func_fork_works=yes
17266 ;;
17267 esac
17268 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17269 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17270 fi
17271 ac_cv_func_vfork_works=$ac_cv_func_vfork
17272 if test "x$ac_cv_func_vfork" = xyes; then
17273 echo "$as_me:$LINENO: checking for working vfork" >&5
17274 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17275 if test "${ac_cv_func_vfork_works+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278 if test "$cross_compiling" = yes; then
17279 ac_cv_func_vfork_works=cross
17280 else
17281 cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h. */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 /* Thanks to Paul Eggert for this test. */
17288 #include <stdio.h>
17289 #include <stdlib.h>
17290 #include <sys/types.h>
17291 #include <sys/stat.h>
17292 #include <sys/wait.h>
17293 #if HAVE_UNISTD_H
17294 # include <unistd.h>
17295 #endif
17296 #if HAVE_VFORK_H
17297 # include <vfork.h>
17298 #endif
17299 /* On some sparc systems, changes by the child to local and incoming
17300 argument registers are propagated back to the parent. The compiler
17301 is told about this with #include <vfork.h>, but some compilers
17302 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17303 static variable whose address is put into a register that is
17304 clobbered by the vfork. */
17305 static void
17306 #ifdef __cplusplus
17307 sparc_address_test (int arg)
17308 # else
17309 sparc_address_test (arg) int arg;
17310 #endif
17311 {
17312 static pid_t child;
17313 if (!child) {
17314 child = vfork ();
17315 if (child < 0) {
17316 perror ("vfork");
17317 _exit(2);
17318 }
17319 if (!child) {
17320 arg = getpid();
17321 write(-1, "", 0);
17322 _exit (arg);
17323 }
17324 }
17325 }
17326
17327 int
17328 main ()
17329 {
17330 pid_t parent = getpid ();
17331 pid_t child;
17332
17333 sparc_address_test (0);
17334
17335 child = vfork ();
17336
17337 if (child == 0) {
17338 /* Here is another test for sparc vfork register problems. This
17339 test uses lots of local variables, at least as many local
17340 variables as main has allocated so far including compiler
17341 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17342 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17343 reuse the register of parent for one of the local variables,
17344 since it will think that parent can't possibly be used any more
17345 in this routine. Assigning to the local variable will thus
17346 munge parent in the parent process. */
17347 pid_t
17348 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17349 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17350 /* Convince the compiler that p..p7 are live; otherwise, it might
17351 use the same hardware register for all 8 local variables. */
17352 if (p != p1 || p != p2 || p != p3 || p != p4
17353 || p != p5 || p != p6 || p != p7)
17354 _exit(1);
17355
17356 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17357 from child file descriptors. If the child closes a descriptor
17358 before it execs or exits, this munges the parent's descriptor
17359 as well. Test for this by closing stdout in the child. */
17360 _exit(close(fileno(stdout)) != 0);
17361 } else {
17362 int status;
17363 struct stat st;
17364
17365 while (wait(&status) != child)
17366 ;
17367 exit(
17368 /* Was there some problem with vforking? */
17369 child < 0
17370
17371 /* Did the child fail? (This shouldn't happen.) */
17372 || status
17373
17374 /* Did the vfork/compiler bug occur? */
17375 || parent != getpid()
17376
17377 /* Did the file descriptor bug occur? */
17378 || fstat(fileno(stdout), &st) != 0
17379 );
17380 }
17381 }
17382 _ACEOF
17383 rm -f conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385 (eval $ac_link) 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17391 ac_status=$?
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; }; then
17394 ac_cv_func_vfork_works=yes
17395 else
17396 echo "$as_me: program exited with status $ac_status" >&5
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17399
17400 ( exit $ac_status )
17401 ac_cv_func_vfork_works=no
17402 fi
17403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17404 fi
17405 fi
17406 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17407 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17408
17409 fi;
17410 if test "x$ac_cv_func_fork_works" = xcross; then
17411 ac_cv_func_vfork_works=$ac_cv_func_vfork
17412 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17413 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17414 fi
17415
17416 if test "x$ac_cv_func_vfork_works" = xyes; then
17417
17418 cat >>confdefs.h <<\_ACEOF
17419 #define HAVE_WORKING_VFORK 1
17420 _ACEOF
17421
17422 else
17423
17424 cat >>confdefs.h <<\_ACEOF
17425 #define vfork fork
17426 _ACEOF
17427
17428 fi
17429 if test "x$ac_cv_func_fork_works" = xyes; then
17430
17431 cat >>confdefs.h <<\_ACEOF
17432 #define HAVE_WORKING_FORK 1
17433 _ACEOF
17434
17435 fi
17436
17437
17438
17439 for ac_func in canonicalize_file_name realpath
17440 do
17441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17442 echo "$as_me:$LINENO: checking for $ac_func" >&5
17443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17444 if eval "test \"\${$as_ac_var+set}\" = set"; then
17445 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 else
17447 cat >conftest.$ac_ext <<_ACEOF
17448 /* confdefs.h. */
17449 _ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17455 #define $ac_func innocuous_$ac_func
17456
17457 /* System header to define __stub macros and hopefully few prototypes,
17458 which can conflict with char $ac_func (); below.
17459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17460 <limits.h> exists even on freestanding compilers. */
17461
17462 #ifdef __STDC__
17463 # include <limits.h>
17464 #else
17465 # include <assert.h>
17466 #endif
17467
17468 #undef $ac_func
17469
17470 /* Override any gcc2 internal prototype to avoid an error. */
17471 #ifdef __cplusplus
17472 extern "C"
17473 {
17474 #endif
17475 /* We use char because int might match the return type of a gcc2
17476 builtin and then its argument prototype would still apply. */
17477 char $ac_func ();
17478 /* The GNU C library defines this for functions which it implements
17479 to always fail with ENOSYS. Some functions are actually named
17480 something starting with __ and the normal name is an alias. */
17481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17482 choke me
17483 #else
17484 char (*f) () = $ac_func;
17485 #endif
17486 #ifdef __cplusplus
17487 }
17488 #endif
17489
17490 int
17491 main ()
17492 {
17493 return f != $ac_func;
17494 ;
17495 return 0;
17496 }
17497 _ACEOF
17498 rm -f conftest.$ac_objext conftest$ac_exeext
17499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17500 (eval $ac_link) 2>conftest.er1
17501 ac_status=$?
17502 grep -v '^ *+' conftest.er1 >conftest.err
17503 rm -f conftest.er1
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try='test -z "$ac_c_werror_flag"
17508 || test ! -s conftest.err'
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest$ac_exeext'
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520 eval "$as_ac_var=yes"
17521 else
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17524
17525 eval "$as_ac_var=no"
17526 fi
17527 rm -f conftest.err conftest.$ac_objext \
17528 conftest$ac_exeext conftest.$ac_ext
17529 fi
17530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17532 if test `eval echo '${'$as_ac_var'}'` = yes; then
17533 cat >>confdefs.h <<_ACEOF
17534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17535 _ACEOF
17536
17537 fi
17538 done
17539
17540
17541 for ac_func in getrusage
17542 do
17543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17544 echo "$as_me:$LINENO: checking for $ac_func" >&5
17545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17546 if eval "test \"\${$as_ac_var+set}\" = set"; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549 cat >conftest.$ac_ext <<_ACEOF
17550 /* confdefs.h. */
17551 _ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h. */
17555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17557 #define $ac_func innocuous_$ac_func
17558
17559 /* System header to define __stub macros and hopefully few prototypes,
17560 which can conflict with char $ac_func (); below.
17561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17562 <limits.h> exists even on freestanding compilers. */
17563
17564 #ifdef __STDC__
17565 # include <limits.h>
17566 #else
17567 # include <assert.h>
17568 #endif
17569
17570 #undef $ac_func
17571
17572 /* Override any gcc2 internal prototype to avoid an error. */
17573 #ifdef __cplusplus
17574 extern "C"
17575 {
17576 #endif
17577 /* We use char because int might match the return type of a gcc2
17578 builtin and then its argument prototype would still apply. */
17579 char $ac_func ();
17580 /* The GNU C library defines this for functions which it implements
17581 to always fail with ENOSYS. Some functions are actually named
17582 something starting with __ and the normal name is an alias. */
17583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17584 choke me
17585 #else
17586 char (*f) () = $ac_func;
17587 #endif
17588 #ifdef __cplusplus
17589 }
17590 #endif
17591
17592 int
17593 main ()
17594 {
17595 return f != $ac_func;
17596 ;
17597 return 0;
17598 }
17599 _ACEOF
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17602 (eval $ac_link) 2>conftest.er1
17603 ac_status=$?
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
17609 { ac_try='test -z "$ac_c_werror_flag"
17610 || test ! -s conftest.err'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest$ac_exeext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 eval "$as_ac_var=yes"
17623 else
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17626
17627 eval "$as_ac_var=no"
17628 fi
17629 rm -f conftest.err conftest.$ac_objext \
17630 conftest$ac_exeext conftest.$ac_ext
17631 fi
17632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17634 if test `eval echo '${'$as_ac_var'}'` = yes; then
17635 cat >>confdefs.h <<_ACEOF
17636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17637 _ACEOF
17638
17639 fi
17640 done
17641
17642
17643
17644 for ac_func in getuid getgid
17645 do
17646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17647 echo "$as_me:$LINENO: checking for $ac_func" >&5
17648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17649 if eval "test \"\${$as_ac_var+set}\" = set"; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 else
17652 cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h. */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17660 #define $ac_func innocuous_$ac_func
17661
17662 /* System header to define __stub macros and hopefully few prototypes,
17663 which can conflict with char $ac_func (); below.
17664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17665 <limits.h> exists even on freestanding compilers. */
17666
17667 #ifdef __STDC__
17668 # include <limits.h>
17669 #else
17670 # include <assert.h>
17671 #endif
17672
17673 #undef $ac_func
17674
17675 /* Override any gcc2 internal prototype to avoid an error. */
17676 #ifdef __cplusplus
17677 extern "C"
17678 {
17679 #endif
17680 /* We use char because int might match the return type of a gcc2
17681 builtin and then its argument prototype would still apply. */
17682 char $ac_func ();
17683 /* The GNU C library defines this for functions which it implements
17684 to always fail with ENOSYS. Some functions are actually named
17685 something starting with __ and the normal name is an alias. */
17686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17687 choke me
17688 #else
17689 char (*f) () = $ac_func;
17690 #endif
17691 #ifdef __cplusplus
17692 }
17693 #endif
17694
17695 int
17696 main ()
17697 {
17698 return f != $ac_func;
17699 ;
17700 return 0;
17701 }
17702 _ACEOF
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17705 (eval $ac_link) 2>conftest.er1
17706 ac_status=$?
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag"
17713 || test ! -s conftest.err'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 eval "$as_ac_var=yes"
17726 else
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730 eval "$as_ac_var=no"
17731 fi
17732 rm -f conftest.err conftest.$ac_objext \
17733 conftest$ac_exeext conftest.$ac_ext
17734 fi
17735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17737 if test `eval echo '${'$as_ac_var'}'` = yes; then
17738 cat >>confdefs.h <<_ACEOF
17739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17740 _ACEOF
17741
17742 fi
17743 done
17744
17745
17746 for ac_func in poll
17747 do
17748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17749 echo "$as_me:$LINENO: checking for $ac_func" >&5
17750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17751 if eval "test \"\${$as_ac_var+set}\" = set"; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17753 else
17754 cat >conftest.$ac_ext <<_ACEOF
17755 /* confdefs.h. */
17756 _ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17762 #define $ac_func innocuous_$ac_func
17763
17764 /* System header to define __stub macros and hopefully few prototypes,
17765 which can conflict with char $ac_func (); below.
17766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17767 <limits.h> exists even on freestanding compilers. */
17768
17769 #ifdef __STDC__
17770 # include <limits.h>
17771 #else
17772 # include <assert.h>
17773 #endif
17774
17775 #undef $ac_func
17776
17777 /* Override any gcc2 internal prototype to avoid an error. */
17778 #ifdef __cplusplus
17779 extern "C"
17780 {
17781 #endif
17782 /* We use char because int might match the return type of a gcc2
17783 builtin and then its argument prototype would still apply. */
17784 char $ac_func ();
17785 /* The GNU C library defines this for functions which it implements
17786 to always fail with ENOSYS. Some functions are actually named
17787 something starting with __ and the normal name is an alias. */
17788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17789 choke me
17790 #else
17791 char (*f) () = $ac_func;
17792 #endif
17793 #ifdef __cplusplus
17794 }
17795 #endif
17796
17797 int
17798 main ()
17799 {
17800 return f != $ac_func;
17801 ;
17802 return 0;
17803 }
17804 _ACEOF
17805 rm -f conftest.$ac_objext conftest$ac_exeext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17807 (eval $ac_link) 2>conftest.er1
17808 ac_status=$?
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag"
17815 || test ! -s conftest.err'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest$ac_exeext'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17824 ac_status=$?
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 eval "$as_ac_var=yes"
17828 else
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17831
17832 eval "$as_ac_var=no"
17833 fi
17834 rm -f conftest.err conftest.$ac_objext \
17835 conftest$ac_exeext conftest.$ac_ext
17836 fi
17837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17839 if test `eval echo '${'$as_ac_var'}'` = yes; then
17840 cat >>confdefs.h <<_ACEOF
17841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17842 _ACEOF
17843
17844 fi
17845 done
17846
17847
17848 for ac_func in pread64
17849 do
17850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17851 echo "$as_me:$LINENO: checking for $ac_func" >&5
17852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17853 if eval "test \"\${$as_ac_var+set}\" = set"; then
17854 echo $ECHO_N "(cached) $ECHO_C" >&6
17855 else
17856 cat >conftest.$ac_ext <<_ACEOF
17857 /* confdefs.h. */
17858 _ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h. */
17862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17864 #define $ac_func innocuous_$ac_func
17865
17866 /* System header to define __stub macros and hopefully few prototypes,
17867 which can conflict with char $ac_func (); below.
17868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17869 <limits.h> exists even on freestanding compilers. */
17870
17871 #ifdef __STDC__
17872 # include <limits.h>
17873 #else
17874 # include <assert.h>
17875 #endif
17876
17877 #undef $ac_func
17878
17879 /* Override any gcc2 internal prototype to avoid an error. */
17880 #ifdef __cplusplus
17881 extern "C"
17882 {
17883 #endif
17884 /* We use char because int might match the return type of a gcc2
17885 builtin and then its argument prototype would still apply. */
17886 char $ac_func ();
17887 /* The GNU C library defines this for functions which it implements
17888 to always fail with ENOSYS. Some functions are actually named
17889 something starting with __ and the normal name is an alias. */
17890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17891 choke me
17892 #else
17893 char (*f) () = $ac_func;
17894 #endif
17895 #ifdef __cplusplus
17896 }
17897 #endif
17898
17899 int
17900 main ()
17901 {
17902 return f != $ac_func;
17903 ;
17904 return 0;
17905 }
17906 _ACEOF
17907 rm -f conftest.$ac_objext conftest$ac_exeext
17908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17909 (eval $ac_link) 2>conftest.er1
17910 ac_status=$?
17911 grep -v '^ *+' conftest.er1 >conftest.err
17912 rm -f conftest.er1
17913 cat conftest.err >&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } &&
17916 { ac_try='test -z "$ac_c_werror_flag"
17917 || test ! -s conftest.err'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17920 ac_status=$?
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; } &&
17923 { ac_try='test -s conftest$ac_exeext'
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 eval "$as_ac_var=yes"
17930 else
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17933
17934 eval "$as_ac_var=no"
17935 fi
17936 rm -f conftest.err conftest.$ac_objext \
17937 conftest$ac_exeext conftest.$ac_ext
17938 fi
17939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17941 if test `eval echo '${'$as_ac_var'}'` = yes; then
17942 cat >>confdefs.h <<_ACEOF
17943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17944 _ACEOF
17945
17946 fi
17947 done
17948
17949
17950 for ac_func in sbrk
17951 do
17952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17953 echo "$as_me:$LINENO: checking for $ac_func" >&5
17954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17955 if eval "test \"\${$as_ac_var+set}\" = set"; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17957 else
17958 cat >conftest.$ac_ext <<_ACEOF
17959 /* confdefs.h. */
17960 _ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h. */
17964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17966 #define $ac_func innocuous_$ac_func
17967
17968 /* System header to define __stub macros and hopefully few prototypes,
17969 which can conflict with char $ac_func (); below.
17970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17971 <limits.h> exists even on freestanding compilers. */
17972
17973 #ifdef __STDC__
17974 # include <limits.h>
17975 #else
17976 # include <assert.h>
17977 #endif
17978
17979 #undef $ac_func
17980
17981 /* Override any gcc2 internal prototype to avoid an error. */
17982 #ifdef __cplusplus
17983 extern "C"
17984 {
17985 #endif
17986 /* We use char because int might match the return type of a gcc2
17987 builtin and then its argument prototype would still apply. */
17988 char $ac_func ();
17989 /* The GNU C library defines this for functions which it implements
17990 to always fail with ENOSYS. Some functions are actually named
17991 something starting with __ and the normal name is an alias. */
17992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17993 choke me
17994 #else
17995 char (*f) () = $ac_func;
17996 #endif
17997 #ifdef __cplusplus
17998 }
17999 #endif
18000
18001 int
18002 main ()
18003 {
18004 return f != $ac_func;
18005 ;
18006 return 0;
18007 }
18008 _ACEOF
18009 rm -f conftest.$ac_objext conftest$ac_exeext
18010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18011 (eval $ac_link) 2>conftest.er1
18012 ac_status=$?
18013 grep -v '^ *+' conftest.er1 >conftest.err
18014 rm -f conftest.er1
18015 cat conftest.err >&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } &&
18018 { ac_try='test -z "$ac_c_werror_flag"
18019 || test ! -s conftest.err'
18020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021 (eval $ac_try) 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; } &&
18025 { ac_try='test -s conftest$ac_exeext'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 eval "$as_ac_var=yes"
18032 else
18033 echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18035
18036 eval "$as_ac_var=no"
18037 fi
18038 rm -f conftest.err conftest.$ac_objext \
18039 conftest$ac_exeext conftest.$ac_ext
18040 fi
18041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18043 if test `eval echo '${'$as_ac_var'}'` = yes; then
18044 cat >>confdefs.h <<_ACEOF
18045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18046 _ACEOF
18047
18048 fi
18049 done
18050
18051
18052
18053 for ac_func in setpgid setpgrp
18054 do
18055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18056 echo "$as_me:$LINENO: checking for $ac_func" >&5
18057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18058 if eval "test \"\${$as_ac_var+set}\" = set"; then
18059 echo $ECHO_N "(cached) $ECHO_C" >&6
18060 else
18061 cat >conftest.$ac_ext <<_ACEOF
18062 /* confdefs.h. */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18069 #define $ac_func innocuous_$ac_func
18070
18071 /* System header to define __stub macros and hopefully few prototypes,
18072 which can conflict with char $ac_func (); below.
18073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18074 <limits.h> exists even on freestanding compilers. */
18075
18076 #ifdef __STDC__
18077 # include <limits.h>
18078 #else
18079 # include <assert.h>
18080 #endif
18081
18082 #undef $ac_func
18083
18084 /* Override any gcc2 internal prototype to avoid an error. */
18085 #ifdef __cplusplus
18086 extern "C"
18087 {
18088 #endif
18089 /* We use char because int might match the return type of a gcc2
18090 builtin and then its argument prototype would still apply. */
18091 char $ac_func ();
18092 /* The GNU C library defines this for functions which it implements
18093 to always fail with ENOSYS. Some functions are actually named
18094 something starting with __ and the normal name is an alias. */
18095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18096 choke me
18097 #else
18098 char (*f) () = $ac_func;
18099 #endif
18100 #ifdef __cplusplus
18101 }
18102 #endif
18103
18104 int
18105 main ()
18106 {
18107 return f != $ac_func;
18108 ;
18109 return 0;
18110 }
18111 _ACEOF
18112 rm -f conftest.$ac_objext conftest$ac_exeext
18113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18114 (eval $ac_link) 2>conftest.er1
18115 ac_status=$?
18116 grep -v '^ *+' conftest.er1 >conftest.err
18117 rm -f conftest.er1
18118 cat conftest.err >&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } &&
18121 { ac_try='test -z "$ac_c_werror_flag"
18122 || test ! -s conftest.err'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; } &&
18128 { ac_try='test -s conftest$ac_exeext'
18129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18131 ac_status=$?
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; }; then
18134 eval "$as_ac_var=yes"
18135 else
18136 echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18138
18139 eval "$as_ac_var=no"
18140 fi
18141 rm -f conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
18143 fi
18144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18146 if test `eval echo '${'$as_ac_var'}'` = yes; then
18147 cat >>confdefs.h <<_ACEOF
18148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18149 _ACEOF
18150
18151 fi
18152 done
18153
18154
18155
18156
18157 for ac_func in sigaction sigprocmask sigsetmask
18158 do
18159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18160 echo "$as_me:$LINENO: checking for $ac_func" >&5
18161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18162 if eval "test \"\${$as_ac_var+set}\" = set"; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18164 else
18165 cat >conftest.$ac_ext <<_ACEOF
18166 /* confdefs.h. */
18167 _ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h. */
18171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18173 #define $ac_func innocuous_$ac_func
18174
18175 /* System header to define __stub macros and hopefully few prototypes,
18176 which can conflict with char $ac_func (); below.
18177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18178 <limits.h> exists even on freestanding compilers. */
18179
18180 #ifdef __STDC__
18181 # include <limits.h>
18182 #else
18183 # include <assert.h>
18184 #endif
18185
18186 #undef $ac_func
18187
18188 /* Override any gcc2 internal prototype to avoid an error. */
18189 #ifdef __cplusplus
18190 extern "C"
18191 {
18192 #endif
18193 /* We use char because int might match the return type of a gcc2
18194 builtin and then its argument prototype would still apply. */
18195 char $ac_func ();
18196 /* The GNU C library defines this for functions which it implements
18197 to always fail with ENOSYS. Some functions are actually named
18198 something starting with __ and the normal name is an alias. */
18199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18200 choke me
18201 #else
18202 char (*f) () = $ac_func;
18203 #endif
18204 #ifdef __cplusplus
18205 }
18206 #endif
18207
18208 int
18209 main ()
18210 {
18211 return f != $ac_func;
18212 ;
18213 return 0;
18214 }
18215 _ACEOF
18216 rm -f conftest.$ac_objext conftest$ac_exeext
18217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18218 (eval $ac_link) 2>conftest.er1
18219 ac_status=$?
18220 grep -v '^ *+' conftest.er1 >conftest.err
18221 rm -f conftest.er1
18222 cat conftest.err >&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } &&
18225 { ac_try='test -z "$ac_c_werror_flag"
18226 || test ! -s conftest.err'
18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228 (eval $ac_try) 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; } &&
18232 { ac_try='test -s conftest$ac_exeext'
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; }; then
18238 eval "$as_ac_var=yes"
18239 else
18240 echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18242
18243 eval "$as_ac_var=no"
18244 fi
18245 rm -f conftest.err conftest.$ac_objext \
18246 conftest$ac_exeext conftest.$ac_ext
18247 fi
18248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18250 if test `eval echo '${'$as_ac_var'}'` = yes; then
18251 cat >>confdefs.h <<_ACEOF
18252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18253 _ACEOF
18254
18255 fi
18256 done
18257
18258
18259 for ac_func in socketpair
18260 do
18261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18262 echo "$as_me:$LINENO: checking for $ac_func" >&5
18263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18264 if eval "test \"\${$as_ac_var+set}\" = set"; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 else
18267 cat >conftest.$ac_ext <<_ACEOF
18268 /* confdefs.h. */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h. */
18273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18275 #define $ac_func innocuous_$ac_func
18276
18277 /* System header to define __stub macros and hopefully few prototypes,
18278 which can conflict with char $ac_func (); below.
18279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18280 <limits.h> exists even on freestanding compilers. */
18281
18282 #ifdef __STDC__
18283 # include <limits.h>
18284 #else
18285 # include <assert.h>
18286 #endif
18287
18288 #undef $ac_func
18289
18290 /* Override any gcc2 internal prototype to avoid an error. */
18291 #ifdef __cplusplus
18292 extern "C"
18293 {
18294 #endif
18295 /* We use char because int might match the return type of a gcc2
18296 builtin and then its argument prototype would still apply. */
18297 char $ac_func ();
18298 /* The GNU C library defines this for functions which it implements
18299 to always fail with ENOSYS. Some functions are actually named
18300 something starting with __ and the normal name is an alias. */
18301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18302 choke me
18303 #else
18304 char (*f) () = $ac_func;
18305 #endif
18306 #ifdef __cplusplus
18307 }
18308 #endif
18309
18310 int
18311 main ()
18312 {
18313 return f != $ac_func;
18314 ;
18315 return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18320 (eval $ac_link) 2>conftest.er1
18321 ac_status=$?
18322 grep -v '^ *+' conftest.er1 >conftest.err
18323 rm -f conftest.er1
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_c_werror_flag"
18328 || test ! -s conftest.err'
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest$ac_exeext'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 eval "$as_ac_var=yes"
18341 else
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18344
18345 eval "$as_ac_var=no"
18346 fi
18347 rm -f conftest.err conftest.$ac_objext \
18348 conftest$ac_exeext conftest.$ac_ext
18349 fi
18350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18352 if test `eval echo '${'$as_ac_var'}'` = yes; then
18353 cat >>confdefs.h <<_ACEOF
18354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18355 _ACEOF
18356
18357 fi
18358 done
18359
18360
18361 for ac_func in syscall
18362 do
18363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18364 echo "$as_me:$LINENO: checking for $ac_func" >&5
18365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18366 if eval "test \"\${$as_ac_var+set}\" = set"; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369 cat >conftest.$ac_ext <<_ACEOF
18370 /* confdefs.h. */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18377 #define $ac_func innocuous_$ac_func
18378
18379 /* System header to define __stub macros and hopefully few prototypes,
18380 which can conflict with char $ac_func (); below.
18381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18382 <limits.h> exists even on freestanding compilers. */
18383
18384 #ifdef __STDC__
18385 # include <limits.h>
18386 #else
18387 # include <assert.h>
18388 #endif
18389
18390 #undef $ac_func
18391
18392 /* Override any gcc2 internal prototype to avoid an error. */
18393 #ifdef __cplusplus
18394 extern "C"
18395 {
18396 #endif
18397 /* We use char because int might match the return type of a gcc2
18398 builtin and then its argument prototype would still apply. */
18399 char $ac_func ();
18400 /* The GNU C library defines this for functions which it implements
18401 to always fail with ENOSYS. Some functions are actually named
18402 something starting with __ and the normal name is an alias. */
18403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18404 choke me
18405 #else
18406 char (*f) () = $ac_func;
18407 #endif
18408 #ifdef __cplusplus
18409 }
18410 #endif
18411
18412 int
18413 main ()
18414 {
18415 return f != $ac_func;
18416 ;
18417 return 0;
18418 }
18419 _ACEOF
18420 rm -f conftest.$ac_objext conftest$ac_exeext
18421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18422 (eval $ac_link) 2>conftest.er1
18423 ac_status=$?
18424 grep -v '^ *+' conftest.er1 >conftest.err
18425 rm -f conftest.er1
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
18429 { ac_try='test -z "$ac_c_werror_flag"
18430 || test ! -s conftest.err'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; } &&
18436 { ac_try='test -s conftest$ac_exeext'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 eval "$as_ac_var=yes"
18443 else
18444 echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18446
18447 eval "$as_ac_var=no"
18448 fi
18449 rm -f conftest.err conftest.$ac_objext \
18450 conftest$ac_exeext conftest.$ac_ext
18451 fi
18452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18454 if test `eval echo '${'$as_ac_var'}'` = yes; then
18455 cat >>confdefs.h <<_ACEOF
18456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18457 _ACEOF
18458
18459 fi
18460 done
18461
18462
18463 for ac_func in ttrace
18464 do
18465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18466 echo "$as_me:$LINENO: checking for $ac_func" >&5
18467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18468 if eval "test \"\${$as_ac_var+set}\" = set"; then
18469 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 else
18471 cat >conftest.$ac_ext <<_ACEOF
18472 /* confdefs.h. */
18473 _ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18479 #define $ac_func innocuous_$ac_func
18480
18481 /* System header to define __stub macros and hopefully few prototypes,
18482 which can conflict with char $ac_func (); below.
18483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18484 <limits.h> exists even on freestanding compilers. */
18485
18486 #ifdef __STDC__
18487 # include <limits.h>
18488 #else
18489 # include <assert.h>
18490 #endif
18491
18492 #undef $ac_func
18493
18494 /* Override any gcc2 internal prototype to avoid an error. */
18495 #ifdef __cplusplus
18496 extern "C"
18497 {
18498 #endif
18499 /* We use char because int might match the return type of a gcc2
18500 builtin and then its argument prototype would still apply. */
18501 char $ac_func ();
18502 /* The GNU C library defines this for functions which it implements
18503 to always fail with ENOSYS. Some functions are actually named
18504 something starting with __ and the normal name is an alias. */
18505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18506 choke me
18507 #else
18508 char (*f) () = $ac_func;
18509 #endif
18510 #ifdef __cplusplus
18511 }
18512 #endif
18513
18514 int
18515 main ()
18516 {
18517 return f != $ac_func;
18518 ;
18519 return 0;
18520 }
18521 _ACEOF
18522 rm -f conftest.$ac_objext conftest$ac_exeext
18523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18524 (eval $ac_link) 2>conftest.er1
18525 ac_status=$?
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } &&
18531 { ac_try='test -z "$ac_c_werror_flag"
18532 || test ! -s conftest.err'
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; } &&
18538 { ac_try='test -s conftest$ac_exeext'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
18544 eval "$as_ac_var=yes"
18545 else
18546 echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18548
18549 eval "$as_ac_var=no"
18550 fi
18551 rm -f conftest.err conftest.$ac_objext \
18552 conftest$ac_exeext conftest.$ac_ext
18553 fi
18554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18556 if test `eval echo '${'$as_ac_var'}'` = yes; then
18557 cat >>confdefs.h <<_ACEOF
18558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18559 _ACEOF
18560
18561 fi
18562 done
18563
18564
18565 for ac_func in wborder
18566 do
18567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18568 echo "$as_me:$LINENO: checking for $ac_func" >&5
18569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18570 if eval "test \"\${$as_ac_var+set}\" = set"; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18573 cat >conftest.$ac_ext <<_ACEOF
18574 /* confdefs.h. */
18575 _ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18581 #define $ac_func innocuous_$ac_func
18582
18583 /* System header to define __stub macros and hopefully few prototypes,
18584 which can conflict with char $ac_func (); below.
18585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18586 <limits.h> exists even on freestanding compilers. */
18587
18588 #ifdef __STDC__
18589 # include <limits.h>
18590 #else
18591 # include <assert.h>
18592 #endif
18593
18594 #undef $ac_func
18595
18596 /* Override any gcc2 internal prototype to avoid an error. */
18597 #ifdef __cplusplus
18598 extern "C"
18599 {
18600 #endif
18601 /* We use char because int might match the return type of a gcc2
18602 builtin and then its argument prototype would still apply. */
18603 char $ac_func ();
18604 /* The GNU C library defines this for functions which it implements
18605 to always fail with ENOSYS. Some functions are actually named
18606 something starting with __ and the normal name is an alias. */
18607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18608 choke me
18609 #else
18610 char (*f) () = $ac_func;
18611 #endif
18612 #ifdef __cplusplus
18613 }
18614 #endif
18615
18616 int
18617 main ()
18618 {
18619 return f != $ac_func;
18620 ;
18621 return 0;
18622 }
18623 _ACEOF
18624 rm -f conftest.$ac_objext conftest$ac_exeext
18625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18626 (eval $ac_link) 2>conftest.er1
18627 ac_status=$?
18628 grep -v '^ *+' conftest.er1 >conftest.err
18629 rm -f conftest.er1
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } &&
18633 { ac_try='test -z "$ac_c_werror_flag"
18634 || test ! -s conftest.err'
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest$ac_exeext'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 eval "$as_ac_var=yes"
18647 else
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18650
18651 eval "$as_ac_var=no"
18652 fi
18653 rm -f conftest.err conftest.$ac_objext \
18654 conftest$ac_exeext conftest.$ac_ext
18655 fi
18656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18658 if test `eval echo '${'$as_ac_var'}'` = yes; then
18659 cat >>confdefs.h <<_ACEOF
18660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18661 _ACEOF
18662
18663 fi
18664 done
18665
18666
18667 # Check the return and argument types of ptrace. No canned test for
18668 # this, so roll our own.
18669 gdb_ptrace_headers='
18670 #if HAVE_SYS_TYPES_H
18671 # include <sys/types.h>
18672 #endif
18673 #if HAVE_SYS_PTRACE_H
18674 # include <sys/ptrace.h>
18675 #endif
18676 #if HAVE_UNISTD_H
18677 # include <unistd.h>
18678 #endif
18679 '
18680 # There is no point in checking if we don't have a prototype.
18681 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
18682 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
18683 if test "${ac_cv_have_decl_ptrace+set}" = set; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 else
18686 cat >conftest.$ac_ext <<_ACEOF
18687 /* confdefs.h. */
18688 _ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18692 $gdb_ptrace_headers
18693
18694 int
18695 main ()
18696 {
18697 #ifndef ptrace
18698 char *p = (char *) ptrace;
18699 #endif
18700
18701 ;
18702 return 0;
18703 }
18704 _ACEOF
18705 rm -f conftest.$ac_objext
18706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18707 (eval $ac_compile) 2>conftest.er1
18708 ac_status=$?
18709 grep -v '^ *+' conftest.er1 >conftest.err
18710 rm -f conftest.er1
18711 cat conftest.err >&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } &&
18714 { ac_try='test -z "$ac_c_werror_flag"
18715 || test ! -s conftest.err'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18718 ac_status=$?
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; } &&
18721 { ac_try='test -s conftest.$ac_objext'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; }; then
18727 ac_cv_have_decl_ptrace=yes
18728 else
18729 echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18731
18732 ac_cv_have_decl_ptrace=no
18733 fi
18734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18735 fi
18736 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
18737 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
18738 if test $ac_cv_have_decl_ptrace = yes; then
18739
18740 cat >>confdefs.h <<_ACEOF
18741 #define HAVE_DECL_PTRACE 1
18742 _ACEOF
18743
18744
18745 else
18746 cat >>confdefs.h <<_ACEOF
18747 #define HAVE_DECL_PTRACE 0
18748 _ACEOF
18749
18750
18751 : ${gdb_cv_func_ptrace_ret='int'}
18752 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18753
18754 fi
18755
18756
18757 # Check return type.
18758 echo "$as_me:$LINENO: checking return type of ptrace" >&5
18759 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
18760 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 else
18763 cat >conftest.$ac_ext <<_ACEOF
18764 /* confdefs.h. */
18765 _ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18769 $gdb_ptrace_headers
18770 int
18771 main ()
18772 {
18773 extern int ptrace ();
18774 ;
18775 return 0;
18776 }
18777 _ACEOF
18778 rm -f conftest.$ac_objext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18780 (eval $ac_compile) 2>conftest.er1
18781 ac_status=$?
18782 grep -v '^ *+' conftest.er1 >conftest.err
18783 rm -f conftest.er1
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } &&
18787 { ac_try='test -z "$ac_c_werror_flag"
18788 || test ! -s conftest.err'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest.$ac_objext'
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 gdb_cv_func_ptrace_ret='int'
18801 else
18802 echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18804
18805 gdb_cv_func_ptrace_ret='long'
18806 fi
18807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18808 fi
18809 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
18810 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
18811
18812 cat >>confdefs.h <<_ACEOF
18813 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
18814 _ACEOF
18815
18816 # Check argument types.
18817 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
18818 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
18819 if test "${gdb_cv_func_ptrace_args+set}" = set; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822
18823 for gdb_arg1 in 'int' 'long'; do
18824 for gdb_arg2 in 'pid_t' 'int' 'long'; do
18825 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
18826 for gdb_arg4 in 'int' 'long'; do
18827 cat >conftest.$ac_ext <<_ACEOF
18828 /* confdefs.h. */
18829 _ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18833 $gdb_ptrace_headers
18834 int
18835 main ()
18836 {
18837
18838 extern $gdb_cv_func_ptrace_ret
18839 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18840
18841 ;
18842 return 0;
18843 }
18844 _ACEOF
18845 rm -f conftest.$ac_objext
18846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18847 (eval $ac_compile) 2>conftest.er1
18848 ac_status=$?
18849 grep -v '^ *+' conftest.er1 >conftest.err
18850 rm -f conftest.er1
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } &&
18854 { ac_try='test -z "$ac_c_werror_flag"
18855 || test ! -s conftest.err'
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18858 ac_status=$?
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; } &&
18861 { ac_try='test -s conftest.$ac_objext'
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; }; then
18867 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18868 break 4;
18869 else
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873 fi
18874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18875 for gdb_arg5 in 'int *' 'int' 'long'; do
18876 cat >conftest.$ac_ext <<_ACEOF
18877 /* confdefs.h. */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18882 $gdb_ptrace_headers
18883 int
18884 main ()
18885 {
18886
18887 extern $gdb_cv_func_ptrace_ret
18888 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18889
18890 ;
18891 return 0;
18892 }
18893 _ACEOF
18894 rm -f conftest.$ac_objext
18895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18896 (eval $ac_compile) 2>conftest.er1
18897 ac_status=$?
18898 grep -v '^ *+' conftest.er1 >conftest.err
18899 rm -f conftest.er1
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -z "$ac_c_werror_flag"
18904 || test ! -s conftest.err'
18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18907 ac_status=$?
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; } &&
18910 { ac_try='test -s conftest.$ac_objext'
18911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18912 (eval $ac_try) 2>&5
18913 ac_status=$?
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); }; }; then
18916
18917 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18918 break 5;
18919 else
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18922
18923 fi
18924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18925 done
18926 done
18927 done
18928 done
18929 done
18930 # Provide a safe default value.
18931 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18932
18933 fi
18934 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18935 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
18936 ac_save_IFS=$IFS; IFS=','
18937 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18938 IFS=$ac_save_IFS
18939 shift
18940
18941 cat >>confdefs.h <<_ACEOF
18942 #define PTRACE_TYPE_ARG3 $3
18943 _ACEOF
18944
18945 if test -n "$5"; then
18946
18947 cat >>confdefs.h <<_ACEOF
18948 #define PTRACE_TYPE_ARG5 $5
18949 _ACEOF
18950
18951 fi
18952
18953 if test "$cross_compiling" = no; then
18954 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18955 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18956 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 else
18959 if test "$cross_compiling" = yes; then
18960 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18961 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18962 { (exit 1); exit 1; }; }
18963 else
18964 cat >conftest.$ac_ext <<_ACEOF
18965 /* confdefs.h. */
18966 _ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18970 #if HAVE_UNISTD_H
18971 # include <unistd.h>
18972 #endif
18973
18974 int
18975 main ()
18976 {
18977 /* If this system has a BSD-style setpgrp which takes arguments,
18978 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18979 exit successfully. */
18980 exit (setpgrp (1,1) == -1 ? 0 : 1);
18981 ;
18982 return 0;
18983 }
18984 _ACEOF
18985 rm -f conftest$ac_exeext
18986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18987 (eval $ac_link) 2>&5
18988 ac_status=$?
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; }; then
18996 ac_cv_func_setpgrp_void=no
18997 else
18998 echo "$as_me: program exited with status $ac_status" >&5
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19001
19002 ( exit $ac_status )
19003 ac_cv_func_setpgrp_void=yes
19004 fi
19005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19006 fi
19007 fi
19008 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19009 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19010 if test $ac_cv_func_setpgrp_void = yes; then
19011
19012 cat >>confdefs.h <<\_ACEOF
19013 #define SETPGRP_VOID 1
19014 _ACEOF
19015
19016 fi
19017
19018 else
19019 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19020 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19021 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19023 else
19024 cat >conftest.$ac_ext <<_ACEOF
19025 /* confdefs.h. */
19026 _ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19030
19031 #include <unistd.h>
19032
19033 int
19034 main ()
19035 {
19036
19037 if (setpgrp(1,1) == -1)
19038 exit (0);
19039 else
19040 exit (1);
19041
19042 ;
19043 return 0;
19044 }
19045 _ACEOF
19046 rm -f conftest.$ac_objext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19048 (eval $ac_compile) 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest.$ac_objext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 ac_cv_func_setpgrp_void=no
19069 else
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19072
19073 ac_cv_func_setpgrp_void=yes
19074 fi
19075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19076 fi
19077 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19078 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19079 if test $ac_cv_func_setpgrp_void = yes; then
19080 cat >>confdefs.h <<\_ACEOF
19081 #define SETPGRP_VOID 1
19082 _ACEOF
19083
19084 fi
19085 fi
19086
19087 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
19088 # since sigsetjmp might only be defined as a macro.
19089 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19090 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
19091 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19093 else
19094 cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h. */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19100
19101 #include <setjmp.h>
19102
19103 int
19104 main ()
19105 {
19106 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
19107 ;
19108 return 0;
19109 }
19110 _ACEOF
19111 rm -f conftest.$ac_objext
19112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19113 (eval $ac_compile) 2>conftest.er1
19114 ac_status=$?
19115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try='test -z "$ac_c_werror_flag"
19121 || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest.$ac_objext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 gdb_cv_func_sigsetjmp=yes
19134 else
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.$ac_ext >&5
19137
19138 gdb_cv_func_sigsetjmp=no
19139 fi
19140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19141 fi
19142 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
19143 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
19144 if test $gdb_cv_func_sigsetjmp = yes; then
19145
19146 cat >>confdefs.h <<\_ACEOF
19147 #define HAVE_SIGSETJMP 1
19148 _ACEOF
19149
19150 fi
19151
19152 # Assume we'll default to using the included libiberty regex.
19153 gdb_use_included_regex=yes
19154
19155 # However, if the system regex is GNU regex, then default to *not*
19156 # using the included regex.
19157 echo "$as_me:$LINENO: checking for GNU regex" >&5
19158 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
19159 if test "${gdb_cv_have_gnu_regex+set}" = set; then
19160 echo $ECHO_N "(cached) $ECHO_C" >&6
19161 else
19162 cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h. */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19168 #include <gnu-versions.h>
19169 int
19170 main ()
19171 {
19172 #define REGEX_INTERFACE_VERSION 1
19173 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
19174 # error "Version mismatch"
19175 #endif
19176 ;
19177 return 0;
19178 }
19179 _ACEOF
19180 rm -f conftest.$ac_objext
19181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19182 (eval $ac_compile) 2>conftest.er1
19183 ac_status=$?
19184 grep -v '^ *+' conftest.er1 >conftest.err
19185 rm -f conftest.er1
19186 cat conftest.err >&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } &&
19189 { ac_try='test -z "$ac_c_werror_flag"
19190 || test ! -s conftest.err'
19191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; } &&
19196 { ac_try='test -s conftest.$ac_objext'
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; }; then
19202 gdb_cv_have_gnu_regex=yes
19203 else
19204 echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19206
19207 gdb_cv_have_gnu_regex=no
19208 fi
19209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19210 fi
19211 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
19212 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
19213 if test $gdb_cv_have_gnu_regex = yes; then
19214 gdb_use_included_regex=no
19215 fi
19216
19217
19218 # Check whether --with-included-regex or --without-included-regex was given.
19219 if test "${with_included_regex+set}" = set; then
19220 withval="$with_included_regex"
19221 gdb_with_regex=$withval
19222 else
19223 gdb_with_regex=$gdb_use_included_regex
19224 fi;
19225 if test "$gdb_with_regex" = yes; then
19226
19227 cat >>confdefs.h <<\_ACEOF
19228 #define USE_INCLUDED_REGEX 1
19229 _ACEOF
19230
19231 fi
19232
19233 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
19234 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
19235 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
19236 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 else
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h. */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 #include <sys/param.h>
19246 #include <sys/proc.h>
19247
19248
19249 int
19250 main ()
19251 {
19252 static struct thread ac_aggr;
19253 if (ac_aggr.td_pcb)
19254 return 0;
19255 ;
19256 return 0;
19257 }
19258 _ACEOF
19259 rm -f conftest.$ac_objext
19260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19261 (eval $ac_compile) 2>conftest.er1
19262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
19268 { ac_try='test -z "$ac_c_werror_flag"
19269 || test ! -s conftest.err'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try='test -s conftest.$ac_objext'
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19281 ac_cv_member_struct_thread_td_pcb=yes
19282 else
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19285
19286 cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h. */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 #include <sys/param.h>
19293 #include <sys/proc.h>
19294
19295
19296 int
19297 main ()
19298 {
19299 static struct thread ac_aggr;
19300 if (sizeof ac_aggr.td_pcb)
19301 return 0;
19302 ;
19303 return 0;
19304 }
19305 _ACEOF
19306 rm -f conftest.$ac_objext
19307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19308 (eval $ac_compile) 2>conftest.er1
19309 ac_status=$?
19310 grep -v '^ *+' conftest.er1 >conftest.err
19311 rm -f conftest.er1
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } &&
19315 { ac_try='test -z "$ac_c_werror_flag"
19316 || test ! -s conftest.err'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; } &&
19322 { ac_try='test -s conftest.$ac_objext'
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 ac_cv_member_struct_thread_td_pcb=yes
19329 else
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19332
19333 ac_cv_member_struct_thread_td_pcb=no
19334 fi
19335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19336 fi
19337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19338 fi
19339 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
19340 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
19341 if test $ac_cv_member_struct_thread_td_pcb = yes; then
19342
19343 cat >>confdefs.h <<_ACEOF
19344 #define HAVE_STRUCT_THREAD_TD_PCB 1
19345 _ACEOF
19346
19347
19348 fi
19349
19350
19351 # See if <sys/lwp.h> defines `struct lwp`.
19352 echo "$as_me:$LINENO: checking for struct lwp" >&5
19353 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
19354 if test "${gdb_cv_struct_lwp+set}" = set; then
19355 echo $ECHO_N "(cached) $ECHO_C" >&6
19356 else
19357 cat >conftest.$ac_ext <<_ACEOF
19358 /* confdefs.h. */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 #include <sys/param.h>
19364 #include <sys/lwp.h>
19365 int
19366 main ()
19367 {
19368 struct lwp l;
19369 ;
19370 return 0;
19371 }
19372 _ACEOF
19373 rm -f conftest.$ac_objext
19374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375 (eval $ac_compile) 2>conftest.er1
19376 ac_status=$?
19377 grep -v '^ *+' conftest.er1 >conftest.err
19378 rm -f conftest.er1
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } &&
19382 { ac_try='test -z "$ac_c_werror_flag"
19383 || test ! -s conftest.err'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest.$ac_objext'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 gdb_cv_struct_lwp=yes
19396 else
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19399
19400 gdb_cv_struct_lwp=no
19401 fi
19402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19403 fi
19404 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
19405 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
19406 if test $gdb_cv_struct_lwp = yes; then
19407
19408 cat >>confdefs.h <<\_ACEOF
19409 #define HAVE_STRUCT_LWP 1
19410 _ACEOF
19411
19412 fi
19413
19414 # See if <machine/reg.h> degines `struct reg'.
19415 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
19416 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
19417 if test "${gdb_cv_struct_reg+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420 cat >conftest.$ac_ext <<_ACEOF
19421 /* confdefs.h. */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 #include <sys/types.h>
19427 #include <machine/reg.h>
19428 int
19429 main ()
19430 {
19431 struct reg r;
19432 ;
19433 return 0;
19434 }
19435 _ACEOF
19436 rm -f conftest.$ac_objext
19437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19438 (eval $ac_compile) 2>conftest.er1
19439 ac_status=$?
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } &&
19445 { ac_try='test -z "$ac_c_werror_flag"
19446 || test ! -s conftest.err'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest.$ac_objext'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 gdb_cv_struct_reg=yes
19459 else
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19462
19463 gdb_cv_struct_reg=no
19464 fi
19465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19466 fi
19467 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
19468 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
19469 if test $gdb_cv_struct_reg = yes; then
19470
19471 cat >>confdefs.h <<\_ACEOF
19472 #define HAVE_STRUCT_REG 1
19473 _ACEOF
19474
19475 fi
19476
19477 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
19478 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
19479 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
19480 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
19481 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19483 else
19484 cat >conftest.$ac_ext <<_ACEOF
19485 /* confdefs.h. */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19490 #include <machine/reg.h>
19491
19492 int
19493 main ()
19494 {
19495 static struct reg ac_aggr;
19496 if (ac_aggr.r_fs)
19497 return 0;
19498 ;
19499 return 0;
19500 }
19501 _ACEOF
19502 rm -f conftest.$ac_objext
19503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19504 (eval $ac_compile) 2>conftest.er1
19505 ac_status=$?
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try='test -z "$ac_c_werror_flag"
19512 || test ! -s conftest.err'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_cv_member_struct_reg_r_fs=yes
19525 else
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19528
19529 cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h. */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19535 #include <machine/reg.h>
19536
19537 int
19538 main ()
19539 {
19540 static struct reg ac_aggr;
19541 if (sizeof ac_aggr.r_fs)
19542 return 0;
19543 ;
19544 return 0;
19545 }
19546 _ACEOF
19547 rm -f conftest.$ac_objext
19548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19549 (eval $ac_compile) 2>conftest.er1
19550 ac_status=$?
19551 grep -v '^ *+' conftest.er1 >conftest.err
19552 rm -f conftest.er1
19553 cat conftest.err >&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } &&
19556 { ac_try='test -z "$ac_c_werror_flag"
19557 || test ! -s conftest.err'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest.$ac_objext'
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; }; then
19569 ac_cv_member_struct_reg_r_fs=yes
19570 else
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19573
19574 ac_cv_member_struct_reg_r_fs=no
19575 fi
19576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19577 fi
19578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19579 fi
19580 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
19581 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
19582 if test $ac_cv_member_struct_reg_r_fs = yes; then
19583
19584 cat >>confdefs.h <<_ACEOF
19585 #define HAVE_STRUCT_REG_R_FS 1
19586 _ACEOF
19587
19588
19589 fi
19590 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
19591 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
19592 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 else
19595 cat >conftest.$ac_ext <<_ACEOF
19596 /* confdefs.h. */
19597 _ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h. */
19601 #include <machine/reg.h>
19602
19603 int
19604 main ()
19605 {
19606 static struct reg ac_aggr;
19607 if (ac_aggr.r_gs)
19608 return 0;
19609 ;
19610 return 0;
19611 }
19612 _ACEOF
19613 rm -f conftest.$ac_objext
19614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19615 (eval $ac_compile) 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -z "$ac_c_werror_flag"
19623 || test ! -s conftest.err'
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; } &&
19629 { ac_try='test -s conftest.$ac_objext'
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
19635 ac_cv_member_struct_reg_r_gs=yes
19636 else
19637 echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19639
19640 cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h. */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646 #include <machine/reg.h>
19647
19648 int
19649 main ()
19650 {
19651 static struct reg ac_aggr;
19652 if (sizeof ac_aggr.r_gs)
19653 return 0;
19654 ;
19655 return 0;
19656 }
19657 _ACEOF
19658 rm -f conftest.$ac_objext
19659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19660 (eval $ac_compile) 2>conftest.er1
19661 ac_status=$?
19662 grep -v '^ *+' conftest.er1 >conftest.err
19663 rm -f conftest.er1
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
19667 { ac_try='test -z "$ac_c_werror_flag"
19668 || test ! -s conftest.err'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest.$ac_objext'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680 ac_cv_member_struct_reg_r_gs=yes
19681 else
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19684
19685 ac_cv_member_struct_reg_r_gs=no
19686 fi
19687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19688 fi
19689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19690 fi
19691 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
19692 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
19693 if test $ac_cv_member_struct_reg_r_gs = yes; then
19694
19695 cat >>confdefs.h <<_ACEOF
19696 #define HAVE_STRUCT_REG_R_GS 1
19697 _ACEOF
19698
19699
19700 fi
19701
19702
19703 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
19704 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
19705 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
19706 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
19707 echo $ECHO_N "(cached) $ECHO_C" >&6
19708 else
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h. */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 #include <sys/ptrace.h>
19716 int
19717 main ()
19718 {
19719 PTRACE_GETREGS;
19720 ;
19721 return 0;
19722 }
19723 _ACEOF
19724 rm -f conftest.$ac_objext
19725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19726 (eval $ac_compile) 2>conftest.er1
19727 ac_status=$?
19728 grep -v '^ *+' conftest.er1 >conftest.err
19729 rm -f conftest.er1
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } &&
19733 { ac_try='test -z "$ac_c_werror_flag"
19734 || test ! -s conftest.err'
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; } &&
19740 { ac_try='test -s conftest.$ac_objext'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 gdb_cv_have_ptrace_getregs=yes
19747 else
19748 echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751 gdb_cv_have_ptrace_getregs=no
19752 fi
19753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19754 fi
19755
19756 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
19757 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
19758 if test $gdb_cv_have_ptrace_getregs = yes; then
19759
19760 cat >>confdefs.h <<\_ACEOF
19761 #define HAVE_PTRACE_GETREGS 1
19762 _ACEOF
19763
19764 fi
19765
19766 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
19767 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
19768 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
19769 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772 cat >conftest.$ac_ext <<_ACEOF
19773 /* confdefs.h. */
19774 _ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19778 #include <sys/ptrace.h>
19779 int
19780 main ()
19781 {
19782 PTRACE_GETFPXREGS;
19783 ;
19784 return 0;
19785 }
19786 _ACEOF
19787 rm -f conftest.$ac_objext
19788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19789 (eval $ac_compile) 2>conftest.er1
19790 ac_status=$?
19791 grep -v '^ *+' conftest.er1 >conftest.err
19792 rm -f conftest.er1
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -z "$ac_c_werror_flag"
19797 || test ! -s conftest.err'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; } &&
19803 { ac_try='test -s conftest.$ac_objext'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; }; then
19809 gdb_cv_have_ptrace_getfpxregs=yes
19810 else
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19813
19814 gdb_cv_have_ptrace_getfpxregs=no
19815 fi
19816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19817 fi
19818
19819 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
19820 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
19821 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
19822
19823 cat >>confdefs.h <<\_ACEOF
19824 #define HAVE_PTRACE_GETFPXREGS 1
19825 _ACEOF
19826
19827 fi
19828
19829 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
19830 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19831 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
19832 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
19833 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 else
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h. */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 #include <sys/types.h>
19842 #include <sys/ptrace.h>
19843 int
19844 main ()
19845 {
19846 PT_GETDBREGS;
19847 ;
19848 return 0;
19849 }
19850 _ACEOF
19851 rm -f conftest.$ac_objext
19852 if { (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); } &&
19860 { ac_try='test -z "$ac_c_werror_flag"
19861 || test ! -s conftest.err'
19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19864 ac_status=$?
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; } &&
19867 { ac_try='test -s conftest.$ac_objext'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 gdb_cv_have_pt_getdbregs=yes
19874 else
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19877
19878 gdb_cv_have_pt_getdbregs=no
19879 fi
19880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19881 fi
19882
19883 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19884 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
19885 if test $gdb_cv_have_pt_getdbregs = yes; then
19886
19887 cat >>confdefs.h <<\_ACEOF
19888 #define HAVE_PT_GETDBREGS 1
19889 _ACEOF
19890
19891 fi
19892
19893 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
19894 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19895 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
19896 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899 cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h. */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 #include <sys/types.h>
19906 #include <sys/ptrace.h>
19907 int
19908 main ()
19909 {
19910 PT_GETXMMREGS;
19911 ;
19912 return 0;
19913 }
19914 _ACEOF
19915 rm -f conftest.$ac_objext
19916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19917 (eval $ac_compile) 2>conftest.er1
19918 ac_status=$?
19919 grep -v '^ *+' conftest.er1 >conftest.err
19920 rm -f conftest.er1
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } &&
19924 { ac_try='test -z "$ac_c_werror_flag"
19925 || test ! -s conftest.err'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest.$ac_objext'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; }; then
19937 gdb_cv_have_pt_getxmmregs=yes
19938 else
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19941
19942 gdb_cv_have_pt_getxmmregs=no
19943 fi
19944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19945 fi
19946
19947 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19948 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
19949 if test $gdb_cv_have_pt_getxmmregs = yes; then
19950
19951 cat >>confdefs.h <<\_ACEOF
19952 #define HAVE_PT_GETXMMREGS 1
19953 _ACEOF
19954
19955 fi
19956
19957 # Detect which type of /proc is in use, such as for Unixware or Solaris.
19958
19959 if test "${target}" = "${host}"; then
19960 case "${host}" in
19961 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
19962
19963 cat >>confdefs.h <<\_ACEOF
19964 #define NEW_PROC_API 1
19965 _ACEOF
19966
19967 ;;
19968 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
19969
19970 cat >>confdefs.h <<\_ACEOF
19971 #define NEW_PROC_API 1
19972 _ACEOF
19973
19974 ;;
19975 mips-sgi-irix5*)
19976 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
19977
19978 cat >>confdefs.h <<\_ACEOF
19979 #define _KMEMUSER 1
19980 _ACEOF
19981
19982 ;;
19983 esac
19984 fi
19985
19986 if test "$ac_cv_header_sys_procfs_h" = yes; then
19987 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19988 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19989 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19990 echo $ECHO_N "(cached) $ECHO_C" >&6
19991 else
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998
19999 #define _SYSCALL32
20000 #include <sys/procfs.h>
20001 int
20002 main ()
20003 {
20004 pstatus_t avar
20005 ;
20006 return 0;
20007 }
20008 _ACEOF
20009 rm -f conftest.$ac_objext
20010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20011 (eval $ac_compile) 2>conftest.er1
20012 ac_status=$?
20013 grep -v '^ *+' conftest.er1 >conftest.err
20014 rm -f conftest.er1
20015 cat conftest.err >&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
20018 { ac_try='test -z "$ac_c_werror_flag"
20019 || test ! -s conftest.err'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; } &&
20025 { ac_try='test -s conftest.$ac_objext'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 bfd_cv_have_sys_procfs_type_pstatus_t=yes
20032 else
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20035
20036 bfd_cv_have_sys_procfs_type_pstatus_t=no
20037
20038 fi
20039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20040 fi
20041
20042 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
20043
20044 cat >>confdefs.h <<\_ACEOF
20045 #define HAVE_PSTATUS_T 1
20046 _ACEOF
20047
20048 fi
20049 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
20050 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
20051
20052 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
20053 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
20054 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057 cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h. */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063
20064 #define _SYSCALL32
20065 #include <sys/procfs.h>
20066 int
20067 main ()
20068 {
20069 prrun_t avar
20070 ;
20071 return 0;
20072 }
20073 _ACEOF
20074 rm -f conftest.$ac_objext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20076 (eval $ac_compile) 2>conftest.er1
20077 ac_status=$?
20078 grep -v '^ *+' conftest.er1 >conftest.err
20079 rm -f conftest.er1
20080 cat conftest.err >&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); } &&
20083 { ac_try='test -z "$ac_c_werror_flag"
20084 || test ! -s conftest.err'
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; } &&
20090 { ac_try='test -s conftest.$ac_objext'
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20093 ac_status=$?
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; }; then
20096 bfd_cv_have_sys_procfs_type_prrun_t=yes
20097 else
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20100
20101 bfd_cv_have_sys_procfs_type_prrun_t=no
20102
20103 fi
20104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20105 fi
20106
20107 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
20108
20109 cat >>confdefs.h <<\_ACEOF
20110 #define HAVE_PRRUN_T 1
20111 _ACEOF
20112
20113 fi
20114 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
20115 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
20116
20117 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
20118 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
20119 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20121 else
20122 cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h. */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128
20129 #define _SYSCALL32
20130 #include <sys/procfs.h>
20131 int
20132 main ()
20133 {
20134 gregset_t avar
20135 ;
20136 return 0;
20137 }
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141 (eval $ac_compile) 2>conftest.er1
20142 ac_status=$?
20143 grep -v '^ *+' conftest.er1 >conftest.err
20144 rm -f conftest.er1
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } &&
20148 { ac_try='test -z "$ac_c_werror_flag"
20149 || test ! -s conftest.err'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest.$ac_objext'
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 bfd_cv_have_sys_procfs_type_gregset_t=yes
20162 else
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166 bfd_cv_have_sys_procfs_type_gregset_t=no
20167
20168 fi
20169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20170 fi
20171
20172 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
20173
20174 cat >>confdefs.h <<\_ACEOF
20175 #define HAVE_GREGSET_T 1
20176 _ACEOF
20177
20178 fi
20179 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
20180 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
20181
20182 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
20183 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
20184 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 else
20187 cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h. */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20193
20194 #define _SYSCALL32
20195 #include <sys/procfs.h>
20196 int
20197 main ()
20198 {
20199 fpregset_t avar
20200 ;
20201 return 0;
20202 }
20203 _ACEOF
20204 rm -f conftest.$ac_objext
20205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20206 (eval $ac_compile) 2>conftest.er1
20207 ac_status=$?
20208 grep -v '^ *+' conftest.er1 >conftest.err
20209 rm -f conftest.er1
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } &&
20213 { ac_try='test -z "$ac_c_werror_flag"
20214 || test ! -s conftest.err'
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20217 ac_status=$?
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; } &&
20220 { ac_try='test -s conftest.$ac_objext'
20221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222 (eval $ac_try) 2>&5
20223 ac_status=$?
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; }; then
20226 bfd_cv_have_sys_procfs_type_fpregset_t=yes
20227 else
20228 echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20230
20231 bfd_cv_have_sys_procfs_type_fpregset_t=no
20232
20233 fi
20234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20235 fi
20236
20237 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
20238
20239 cat >>confdefs.h <<\_ACEOF
20240 #define HAVE_FPREGSET_T 1
20241 _ACEOF
20242
20243 fi
20244 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
20245 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
20246
20247 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
20248 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
20249 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252 cat >conftest.$ac_ext <<_ACEOF
20253 /* confdefs.h. */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20258
20259 #define _SYSCALL32
20260 #include <sys/procfs.h>
20261 int
20262 main ()
20263 {
20264 prgregset_t avar
20265 ;
20266 return 0;
20267 }
20268 _ACEOF
20269 rm -f conftest.$ac_objext
20270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20271 (eval $ac_compile) 2>conftest.er1
20272 ac_status=$?
20273 grep -v '^ *+' conftest.er1 >conftest.err
20274 rm -f conftest.er1
20275 cat conftest.err >&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); } &&
20278 { ac_try='test -z "$ac_c_werror_flag"
20279 || test ! -s conftest.err'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20282 ac_status=$?
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; } &&
20285 { ac_try='test -s conftest.$ac_objext'
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; }; then
20291 bfd_cv_have_sys_procfs_type_prgregset_t=yes
20292 else
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20295
20296 bfd_cv_have_sys_procfs_type_prgregset_t=no
20297
20298 fi
20299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20300 fi
20301
20302 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
20303
20304 cat >>confdefs.h <<\_ACEOF
20305 #define HAVE_PRGREGSET_T 1
20306 _ACEOF
20307
20308 fi
20309 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
20310 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
20311
20312 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
20313 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
20314 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20316 else
20317 cat >conftest.$ac_ext <<_ACEOF
20318 /* confdefs.h. */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20323
20324 #define _SYSCALL32
20325 #include <sys/procfs.h>
20326 int
20327 main ()
20328 {
20329 prfpregset_t avar
20330 ;
20331 return 0;
20332 }
20333 _ACEOF
20334 rm -f conftest.$ac_objext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20336 (eval $ac_compile) 2>conftest.er1
20337 ac_status=$?
20338 grep -v '^ *+' conftest.er1 >conftest.err
20339 rm -f conftest.er1
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } &&
20343 { ac_try='test -z "$ac_c_werror_flag"
20344 || test ! -s conftest.err'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20347 ac_status=$?
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; } &&
20350 { ac_try='test -s conftest.$ac_objext'
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20353 ac_status=$?
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
20357 else
20358 echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20360
20361 bfd_cv_have_sys_procfs_type_prfpregset_t=no
20362
20363 fi
20364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20365 fi
20366
20367 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
20368
20369 cat >>confdefs.h <<\_ACEOF
20370 #define HAVE_PRFPREGSET_T 1
20371 _ACEOF
20372
20373 fi
20374 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
20375 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
20376
20377 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
20378 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
20379 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 else
20382 cat >conftest.$ac_ext <<_ACEOF
20383 /* confdefs.h. */
20384 _ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20388
20389 #define _SYSCALL32
20390 #include <sys/procfs.h>
20391 int
20392 main ()
20393 {
20394 prgregset32_t avar
20395 ;
20396 return 0;
20397 }
20398 _ACEOF
20399 rm -f conftest.$ac_objext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20401 (eval $ac_compile) 2>conftest.er1
20402 ac_status=$?
20403 grep -v '^ *+' conftest.er1 >conftest.err
20404 rm -f conftest.er1
20405 cat conftest.err >&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } &&
20408 { ac_try='test -z "$ac_c_werror_flag"
20409 || test ! -s conftest.err'
20410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411 (eval $ac_try) 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; } &&
20415 { ac_try='test -s conftest.$ac_objext'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
20421 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
20422 else
20423 echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20425
20426 bfd_cv_have_sys_procfs_type_prgregset32_t=no
20427
20428 fi
20429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20430 fi
20431
20432 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
20433
20434 cat >>confdefs.h <<\_ACEOF
20435 #define HAVE_PRGREGSET32_T 1
20436 _ACEOF
20437
20438 fi
20439 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
20440 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
20441
20442 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
20443 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
20444 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 else
20447 cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h. */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20453
20454 #define _SYSCALL32
20455 #include <sys/procfs.h>
20456 int
20457 main ()
20458 {
20459 prfpregset32_t avar
20460 ;
20461 return 0;
20462 }
20463 _ACEOF
20464 rm -f conftest.$ac_objext
20465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20466 (eval $ac_compile) 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try='test -z "$ac_c_werror_flag"
20474 || test ! -s conftest.err'
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; } &&
20480 { ac_try='test -s conftest.$ac_objext'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; }; then
20486 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
20487 else
20488 echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20490
20491 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
20492
20493 fi
20494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20495 fi
20496
20497 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
20498
20499 cat >>confdefs.h <<\_ACEOF
20500 #define HAVE_PRFPREGSET32_T 1
20501 _ACEOF
20502
20503 fi
20504 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
20505 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
20506
20507 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
20508 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
20509 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 else
20512 cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h. */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20518
20519 #define _SYSCALL32
20520 #include <sys/procfs.h>
20521 int
20522 main ()
20523 {
20524 lwpid_t avar
20525 ;
20526 return 0;
20527 }
20528 _ACEOF
20529 rm -f conftest.$ac_objext
20530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20531 (eval $ac_compile) 2>conftest.er1
20532 ac_status=$?
20533 grep -v '^ *+' conftest.er1 >conftest.err
20534 rm -f conftest.er1
20535 cat conftest.err >&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } &&
20538 { ac_try='test -z "$ac_c_werror_flag"
20539 || test ! -s conftest.err'
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; } &&
20545 { ac_try='test -s conftest.$ac_objext'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 bfd_cv_have_sys_procfs_type_lwpid_t=yes
20552 else
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20555
20556 bfd_cv_have_sys_procfs_type_lwpid_t=no
20557
20558 fi
20559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20560 fi
20561
20562 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
20563
20564 cat >>confdefs.h <<\_ACEOF
20565 #define HAVE_LWPID_T 1
20566 _ACEOF
20567
20568 fi
20569 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
20570 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
20571
20572 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
20573 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
20574 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
20575 echo $ECHO_N "(cached) $ECHO_C" >&6
20576 else
20577 cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h. */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20583
20584 #define _SYSCALL32
20585 #include <sys/procfs.h>
20586 int
20587 main ()
20588 {
20589 psaddr_t avar
20590 ;
20591 return 0;
20592 }
20593 _ACEOF
20594 rm -f conftest.$ac_objext
20595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20596 (eval $ac_compile) 2>conftest.er1
20597 ac_status=$?
20598 grep -v '^ *+' conftest.er1 >conftest.err
20599 rm -f conftest.er1
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } &&
20603 { ac_try='test -z "$ac_c_werror_flag"
20604 || test ! -s conftest.err'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; } &&
20610 { ac_try='test -s conftest.$ac_objext'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; }; then
20616 bfd_cv_have_sys_procfs_type_psaddr_t=yes
20617 else
20618 echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20620
20621 bfd_cv_have_sys_procfs_type_psaddr_t=no
20622
20623 fi
20624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20625 fi
20626
20627 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
20628
20629 cat >>confdefs.h <<\_ACEOF
20630 #define HAVE_PSADDR_T 1
20631 _ACEOF
20632
20633 fi
20634 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
20635 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
20636
20637 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
20638 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
20639 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20641 else
20642 cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h. */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h. */
20648
20649 #define _SYSCALL32
20650 #include <sys/procfs.h>
20651 int
20652 main ()
20653 {
20654 prsysent_t avar
20655 ;
20656 return 0;
20657 }
20658 _ACEOF
20659 rm -f conftest.$ac_objext
20660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20661 (eval $ac_compile) 2>conftest.er1
20662 ac_status=$?
20663 grep -v '^ *+' conftest.er1 >conftest.err
20664 rm -f conftest.er1
20665 cat conftest.err >&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } &&
20668 { ac_try='test -z "$ac_c_werror_flag"
20669 || test ! -s conftest.err'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; } &&
20675 { ac_try='test -s conftest.$ac_objext'
20676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677 (eval $ac_try) 2>&5
20678 ac_status=$?
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); }; }; then
20681 bfd_cv_have_sys_procfs_type_prsysent_t=yes
20682 else
20683 echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20685
20686 bfd_cv_have_sys_procfs_type_prsysent_t=no
20687
20688 fi
20689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20690 fi
20691
20692 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
20693
20694 cat >>confdefs.h <<\_ACEOF
20695 #define HAVE_PRSYSENT_T 1
20696 _ACEOF
20697
20698 fi
20699 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
20700 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
20701
20702 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
20703 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
20704 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20706 else
20707 cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h. */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20713
20714 #define _SYSCALL32
20715 #include <sys/procfs.h>
20716 int
20717 main ()
20718 {
20719 pr_sigset_t avar
20720 ;
20721 return 0;
20722 }
20723 _ACEOF
20724 rm -f conftest.$ac_objext
20725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20726 (eval $ac_compile) 2>conftest.er1
20727 ac_status=$?
20728 grep -v '^ *+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try='test -z "$ac_c_werror_flag"
20734 || test ! -s conftest.err'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } &&
20740 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20746 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
20747 else
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20750
20751 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
20752
20753 fi
20754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20755 fi
20756
20757 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
20758
20759 cat >>confdefs.h <<\_ACEOF
20760 #define HAVE_PR_SIGSET_T 1
20761 _ACEOF
20762
20763 fi
20764 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
20765 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
20766
20767 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
20768 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
20769 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
20771 else
20772 cat >conftest.$ac_ext <<_ACEOF
20773 /* confdefs.h. */
20774 _ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h. */
20778
20779 #define _SYSCALL32
20780 #include <sys/procfs.h>
20781 int
20782 main ()
20783 {
20784 pr_sigaction64_t avar
20785 ;
20786 return 0;
20787 }
20788 _ACEOF
20789 rm -f conftest.$ac_objext
20790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20791 (eval $ac_compile) 2>conftest.er1
20792 ac_status=$?
20793 grep -v '^ *+' conftest.er1 >conftest.err
20794 rm -f conftest.er1
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } &&
20798 { ac_try='test -z "$ac_c_werror_flag"
20799 || test ! -s conftest.err'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20802 ac_status=$?
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; } &&
20805 { ac_try='test -s conftest.$ac_objext'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20808 ac_status=$?
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
20812 else
20813 echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20815
20816 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
20817
20818 fi
20819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20820 fi
20821
20822 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
20823
20824 cat >>confdefs.h <<\_ACEOF
20825 #define HAVE_PR_SIGACTION64_T 1
20826 _ACEOF
20827
20828 fi
20829 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20830 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
20831
20832 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20833 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
20834 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20836 else
20837 cat >conftest.$ac_ext <<_ACEOF
20838 /* confdefs.h. */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20843
20844 #define _SYSCALL32
20845 #include <sys/procfs.h>
20846 int
20847 main ()
20848 {
20849 pr_siginfo64_t avar
20850 ;
20851 return 0;
20852 }
20853 _ACEOF
20854 rm -f conftest.$ac_objext
20855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20856 (eval $ac_compile) 2>conftest.er1
20857 ac_status=$?
20858 grep -v '^ *+' conftest.er1 >conftest.err
20859 rm -f conftest.er1
20860 cat conftest.err >&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } &&
20863 { ac_try='test -z "$ac_c_werror_flag"
20864 || test ! -s conftest.err'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20867 ac_status=$?
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; } &&
20870 { ac_try='test -s conftest.$ac_objext'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20873 ac_status=$?
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20877 else
20878 echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20880
20881 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
20882
20883 fi
20884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20885 fi
20886
20887 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
20888
20889 cat >>confdefs.h <<\_ACEOF
20890 #define HAVE_PR_SIGINFO64_T 1
20891 _ACEOF
20892
20893 fi
20894 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20895 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
20896
20897
20898
20899
20900
20901 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
20902 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20903 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
20904 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20906 else
20907 if test "$cross_compiling" = yes; then
20908 gdb_cv_prfpregset_t_broken=yes
20909 else
20910 cat >conftest.$ac_ext <<_ACEOF
20911 /* confdefs.h. */
20912 _ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20916 #include <sys/procfs.h>
20917 int main ()
20918 {
20919 if (sizeof (prfpregset_t) == sizeof (void *))
20920 return 1;
20921 return 0;
20922 }
20923 _ACEOF
20924 rm -f conftest$ac_exeext
20925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20926 (eval $ac_link) 2>&5
20927 ac_status=$?
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20932 ac_status=$?
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 gdb_cv_prfpregset_t_broken=no
20936 else
20937 echo "$as_me: program exited with status $ac_status" >&5
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20940
20941 ( exit $ac_status )
20942 gdb_cv_prfpregset_t_broken=yes
20943 fi
20944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20945 fi
20946 fi
20947
20948 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20949 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
20950 if test $gdb_cv_prfpregset_t_broken = yes; then
20951
20952 cat >>confdefs.h <<\_ACEOF
20953 #define PRFPREGSET_T_BROKEN 1
20954 _ACEOF
20955
20956 fi
20957 fi
20958
20959
20960 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20961 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
20962 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
20964 else
20965 cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h. */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20971 #include <unistd.h>
20972 #include <sys/types.h>
20973 #include <sys/procfs.h>
20974
20975 int
20976 main ()
20977 {
20978
20979 int dummy;;
20980 dummy = ioctl(0, PIOCSET, &dummy);
20981
20982 ;
20983 return 0;
20984 }
20985 _ACEOF
20986 rm -f conftest.$ac_objext
20987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20988 (eval $ac_compile) 2>conftest.er1
20989 ac_status=$?
20990 grep -v '^ *+' conftest.er1 >conftest.err
20991 rm -f conftest.er1
20992 cat conftest.err >&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } &&
20995 { ac_try='test -z "$ac_c_werror_flag"
20996 || test ! -s conftest.err'
20997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998 (eval $ac_try) 2>&5
20999 ac_status=$?
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); }; } &&
21002 { ac_try='test -s conftest.$ac_objext'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; }; then
21008 gdb_cv_have_procfs_piocset=yes
21009 else
21010 echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21012
21013 gdb_cv_have_procfs_piocset=no
21014 fi
21015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21016 fi
21017
21018 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
21019 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
21020 if test $gdb_cv_have_procfs_piocset = yes; then
21021
21022 cat >>confdefs.h <<\_ACEOF
21023 #define HAVE_PROCFS_PIOCSET 1
21024 _ACEOF
21025
21026 fi
21027 fi
21028
21029 if test ${host} = ${target} ; then
21030
21031 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
21032 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
21033 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036 cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h. */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21042 #include <link.h>
21043 int
21044 main ()
21045 {
21046 struct link_map lm; (void) lm.l_addr;
21047 ;
21048 return 0;
21049 }
21050 _ACEOF
21051 rm -f conftest.$ac_objext
21052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21053 (eval $ac_compile) 2>conftest.er1
21054 ac_status=$?
21055 grep -v '^ *+' conftest.er1 >conftest.err
21056 rm -f conftest.er1
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } &&
21060 { ac_try='test -z "$ac_c_werror_flag"
21061 || test ! -s conftest.err'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21064 ac_status=$?
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; } &&
21067 { ac_try='test -s conftest.$ac_objext'
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21070 ac_status=$?
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073 gdb_cv_have_struct_link_map_with_l_members=yes
21074 else
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21077
21078 gdb_cv_have_struct_link_map_with_l_members=no
21079 fi
21080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21081 fi
21082
21083 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
21084 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
21085 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
21086
21087 cat >>confdefs.h <<\_ACEOF
21088 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
21089 _ACEOF
21090
21091 fi
21092
21093
21094 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
21095 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
21096 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099 cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h. */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21105 #include <sys/types.h>
21106 #include <link.h>
21107 int
21108 main ()
21109 {
21110 struct link_map lm; (void) lm.lm_addr;
21111 ;
21112 return 0;
21113 }
21114 _ACEOF
21115 rm -f conftest.$ac_objext
21116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21117 (eval $ac_compile) 2>conftest.er1
21118 ac_status=$?
21119 grep -v '^ *+' conftest.er1 >conftest.err
21120 rm -f conftest.er1
21121 cat conftest.err >&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); } &&
21124 { ac_try='test -z "$ac_c_werror_flag"
21125 || test ! -s conftest.err'
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21128 ac_status=$?
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; } &&
21131 { ac_try='test -s conftest.$ac_objext'
21132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21133 (eval $ac_try) 2>&5
21134 ac_status=$?
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); }; }; then
21137 gdb_cv_have_struct_link_map_with_lm_members=yes
21138 else
21139 echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21141
21142 gdb_cv_have_struct_link_map_with_lm_members=no
21143 fi
21144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21145 fi
21146
21147 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
21148 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
21149 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
21150
21151 cat >>confdefs.h <<\_ACEOF
21152 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
21153 _ACEOF
21154
21155 fi
21156
21157
21158 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
21159 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
21160 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
21161 echo $ECHO_N "(cached) $ECHO_C" >&6
21162 else
21163 cat >conftest.$ac_ext <<_ACEOF
21164 /* confdefs.h. */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h. */
21169 #include <sys/types.h>
21170 #ifdef HAVE_NLIST_H
21171 #include <nlist.h>
21172 #endif
21173 #include <link.h>
21174 int
21175 main ()
21176 {
21177 struct so_map lm; (void) lm.som_addr;
21178 ;
21179 return 0;
21180 }
21181 _ACEOF
21182 rm -f conftest.$ac_objext
21183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21184 (eval $ac_compile) 2>conftest.er1
21185 ac_status=$?
21186 grep -v '^ *+' conftest.er1 >conftest.err
21187 rm -f conftest.er1
21188 cat conftest.err >&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } &&
21191 { ac_try='test -z "$ac_c_werror_flag"
21192 || test ! -s conftest.err'
21193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194 (eval $ac_try) 2>&5
21195 ac_status=$?
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); }; } &&
21198 { ac_try='test -s conftest.$ac_objext'
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21201 ac_status=$?
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; }; then
21204 gdb_cv_have_struct_so_map_with_som_members=yes
21205 else
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21208
21209 gdb_cv_have_struct_so_map_with_som_members=no
21210 fi
21211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21212 fi
21213
21214 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
21215 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
21216 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
21217
21218 cat >>confdefs.h <<\_ACEOF
21219 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
21220 _ACEOF
21221
21222 fi
21223
21224
21225 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
21226 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
21227 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 else
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h. */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 #define _SYSCALL32
21237 #include <sys/link.h>
21238 int
21239 main ()
21240 {
21241 struct link_map32 l;
21242 ;
21243 return 0;
21244 }
21245 _ACEOF
21246 rm -f conftest.$ac_objext
21247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21248 (eval $ac_compile) 2>conftest.er1
21249 ac_status=$?
21250 grep -v '^ *+' conftest.er1 >conftest.err
21251 rm -f conftest.er1
21252 cat conftest.err >&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } &&
21255 { ac_try='test -z "$ac_c_werror_flag"
21256 || test ! -s conftest.err'
21257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258 (eval $ac_try) 2>&5
21259 ac_status=$?
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); }; } &&
21262 { ac_try='test -s conftest.$ac_objext'
21263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264 (eval $ac_try) 2>&5
21265 ac_status=$?
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); }; }; then
21268 gdb_cv_have_struct_link_map32=yes
21269 else
21270 echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273 gdb_cv_have_struct_link_map32=no
21274 fi
21275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21276 fi
21277
21278 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
21279 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
21280 if test $gdb_cv_have_struct_link_map32 = yes; then
21281
21282 cat >>confdefs.h <<\_ACEOF
21283 #define HAVE_STRUCT_LINK_MAP32 1
21284 _ACEOF
21285
21286
21287 cat >>confdefs.h <<\_ACEOF
21288 #define _SYSCALL32 1
21289 _ACEOF
21290
21291 fi
21292 fi
21293
21294 # Check if the compiler supports the `long long' type.
21295
21296 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
21297 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
21298 if test "${gdb_cv_c_long_long+set}" = set; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21300 else
21301 cat >conftest.$ac_ext <<_ACEOF
21302 /* confdefs.h. */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 extern long long foo;
21308 int
21309 main ()
21310 {
21311 switch (foo & 2) { case 0: return 1; }
21312 ;
21313 return 0;
21314 }
21315 _ACEOF
21316 rm -f conftest.$ac_objext
21317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21318 (eval $ac_compile) 2>conftest.er1
21319 ac_status=$?
21320 grep -v '^ *+' conftest.er1 >conftest.err
21321 rm -f conftest.er1
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } &&
21325 { ac_try='test -z "$ac_c_werror_flag"
21326 || test ! -s conftest.err'
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; } &&
21332 { ac_try='test -s conftest.$ac_objext'
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21335 ac_status=$?
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; }; then
21338 gdb_cv_c_long_long=yes
21339 else
21340 echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21342
21343 gdb_cv_c_long_long=no
21344 fi
21345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21346 fi
21347 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
21348 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
21349 if test $gdb_cv_c_long_long = yes; then
21350
21351 cat >>confdefs.h <<\_ACEOF
21352 #define CC_HAS_LONG_LONG 1
21353 _ACEOF
21354
21355 fi
21356
21357 # Check if the compiler and runtime support printing long longs.
21358
21359 echo "$as_me:$LINENO: checking for long long support in printf" >&5
21360 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
21361 if test "${gdb_cv_printf_has_long_long+set}" = set; then
21362 echo $ECHO_N "(cached) $ECHO_C" >&6
21363 else
21364 if test "$cross_compiling" = yes; then
21365 gdb_cv_printf_has_long_long=no
21366 else
21367 cat >conftest.$ac_ext <<_ACEOF
21368 /* confdefs.h. */
21369 _ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h. */
21373 $ac_includes_default
21374 int
21375 main ()
21376 {
21377 char buf[32];
21378 long long l = 0;
21379 l = (l << 16) + 0x0123;
21380 l = (l << 16) + 0x4567;
21381 l = (l << 16) + 0x89ab;
21382 l = (l << 16) + 0xcdef;
21383 sprintf (buf, "0x%016llx", l);
21384 return (strcmp ("0x0123456789abcdef", buf));
21385 ;
21386 return 0;
21387 }
21388 _ACEOF
21389 rm -f conftest$ac_exeext
21390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21391 (eval $ac_link) 2>&5
21392 ac_status=$?
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21397 ac_status=$?
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; }; then
21400 gdb_cv_printf_has_long_long=yes
21401 else
21402 echo "$as_me: program exited with status $ac_status" >&5
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21405
21406 ( exit $ac_status )
21407 gdb_cv_printf_has_long_long=no
21408 fi
21409 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21410 fi
21411 fi
21412 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
21413 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
21414 if test $gdb_cv_printf_has_long_long = yes; then
21415
21416 cat >>confdefs.h <<\_ACEOF
21417 #define PRINTF_HAS_LONG_LONG 1
21418 _ACEOF
21419
21420 fi
21421
21422 # Check if the compiler and runtime support printing decfloats.
21423
21424 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
21425 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
21426 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 else
21429 if test "$cross_compiling" = yes; then
21430 gdb_cv_printf_has_decfloat=no
21431 else
21432 cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h. */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 $ac_includes_default
21439 int
21440 main ()
21441 {
21442 char buf[64];
21443 _Decimal32 d32 = 1.2345df;
21444 _Decimal64 d64 = 1.2345dd;
21445 _Decimal128 d128 = 1.2345dl;
21446 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
21447 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
21448 ;
21449 return 0;
21450 }
21451 _ACEOF
21452 rm -f conftest$ac_exeext
21453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21454 (eval $ac_link) 2>&5
21455 ac_status=$?
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459 (eval $ac_try) 2>&5
21460 ac_status=$?
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; }; then
21463 gdb_cv_printf_has_decfloat=yes
21464 else
21465 echo "$as_me: program exited with status $ac_status" >&5
21466 echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469 ( exit $ac_status )
21470 gdb_cv_printf_has_decfloat=no
21471 fi
21472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21473 fi
21474 fi
21475 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
21476 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
21477 if test $gdb_cv_printf_has_decfloat = yes; then
21478
21479 cat >>confdefs.h <<\_ACEOF
21480 #define PRINTF_HAS_DECFLOAT 1
21481 _ACEOF
21482
21483 fi
21484
21485 # Check if the compiler supports the `long double' type. We can't use
21486 # AC_C_LONG_DOUBLE because that one does additional checks on the
21487 # constants defined in <float.h> that fail on some systems,
21488 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
21489
21490 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
21491 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
21492 if test "${gdb_cv_c_long_double+set}" = set; then
21493 echo $ECHO_N "(cached) $ECHO_C" >&6
21494 else
21495 cat >conftest.$ac_ext <<_ACEOF
21496 /* confdefs.h. */
21497 _ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h. */
21501 long double foo;
21502 _ACEOF
21503 rm -f conftest.$ac_objext
21504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21505 (eval $ac_compile) 2>conftest.er1
21506 ac_status=$?
21507 grep -v '^ *+' conftest.er1 >conftest.err
21508 rm -f conftest.er1
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
21512 { ac_try='test -z "$ac_c_werror_flag"
21513 || test ! -s conftest.err'
21514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515 (eval $ac_try) 2>&5
21516 ac_status=$?
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; } &&
21519 { ac_try='test -s conftest.$ac_objext'
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; }; then
21525 gdb_cv_c_long_double=yes
21526 else
21527 echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21529
21530 gdb_cv_c_long_double=no
21531 fi
21532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21533 fi
21534 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
21535 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
21536 if test $gdb_cv_c_long_double = yes; then
21537
21538 cat >>confdefs.h <<\_ACEOF
21539 #define HAVE_LONG_DOUBLE 1
21540 _ACEOF
21541
21542 fi
21543
21544 # Check if the compiler and runtime support printing long doubles.
21545
21546 echo "$as_me:$LINENO: checking for long double support in printf" >&5
21547 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
21548 if test "${gdb_cv_printf_has_long_double+set}" = set; then
21549 echo $ECHO_N "(cached) $ECHO_C" >&6
21550 else
21551 if test "$cross_compiling" = yes; then
21552 gdb_cv_printf_has_long_double=no
21553 else
21554 cat >conftest.$ac_ext <<_ACEOF
21555 /* confdefs.h. */
21556 _ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h. */
21560 $ac_includes_default
21561 int
21562 main ()
21563 {
21564 char buf[16];
21565 long double f = 3.141592653;
21566 sprintf (buf, "%Lg", f);
21567 return (strncmp ("3.14159", buf, 7));
21568 ;
21569 return 0;
21570 }
21571 _ACEOF
21572 rm -f conftest$ac_exeext
21573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21574 (eval $ac_link) 2>&5
21575 ac_status=$?
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579 (eval $ac_try) 2>&5
21580 ac_status=$?
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); }; }; then
21583 gdb_cv_printf_has_long_double=yes
21584 else
21585 echo "$as_me: program exited with status $ac_status" >&5
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21588
21589 ( exit $ac_status )
21590 gdb_cv_printf_has_long_double=no
21591 fi
21592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21593 fi
21594 fi
21595 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
21596 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
21597 if test $gdb_cv_printf_has_long_double = yes; then
21598
21599 cat >>confdefs.h <<\_ACEOF
21600 #define PRINTF_HAS_LONG_DOUBLE 1
21601 _ACEOF
21602
21603 fi
21604
21605 # Check if the compiler and runtime support scanning long doubles.
21606
21607 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
21608 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
21609 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 else
21612 if test "$cross_compiling" = yes; then
21613 gdb_cv_scanf_has_long_double=no
21614 else
21615 cat >conftest.$ac_ext <<_ACEOF
21616 /* confdefs.h. */
21617 _ACEOF
21618 cat confdefs.h >>conftest.$ac_ext
21619 cat >>conftest.$ac_ext <<_ACEOF
21620 /* end confdefs.h. */
21621 #include <stdio.h>
21622 int
21623 main ()
21624 {
21625 char *buf = "3.141592653";
21626 long double f = 0;
21627 sscanf (buf, "%Lg", &f);
21628 return !(f > 3.14159 && f < 3.14160);
21629 ;
21630 return 0;
21631 }
21632 _ACEOF
21633 rm -f conftest$ac_exeext
21634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21635 (eval $ac_link) 2>&5
21636 ac_status=$?
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21641 ac_status=$?
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; }; then
21644 gdb_cv_scanf_has_long_double=yes
21645 else
21646 echo "$as_me: program exited with status $ac_status" >&5
21647 echo "$as_me: failed program was:" >&5
21648 sed 's/^/| /' conftest.$ac_ext >&5
21649
21650 ( exit $ac_status )
21651 gdb_cv_scanf_has_long_double=no
21652 fi
21653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21654 fi
21655 fi
21656 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
21657 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
21658 if test $gdb_cv_scanf_has_long_double = yes; then
21659
21660 cat >>confdefs.h <<\_ACEOF
21661 #define SCANF_HAS_LONG_DOUBLE 1
21662 _ACEOF
21663
21664 fi
21665
21666 case ${host_os} in
21667 aix*)
21668 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
21669 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
21670 if test "${gdb_cv_bigtoc+set}" = set; then
21671 echo $ECHO_N "(cached) $ECHO_C" >&6
21672 else
21673
21674 SAVE_LDFLAGS=$LDFLAGS
21675
21676 case $GCC in
21677 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
21678 *) gdb_cv_bigtoc=-bbigtoc ;;
21679 esac
21680
21681 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
21682 cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h. */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688
21689 int
21690 main ()
21691 {
21692 int i;
21693 ;
21694 return 0;
21695 }
21696 _ACEOF
21697 rm -f conftest.$ac_objext conftest$ac_exeext
21698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21699 (eval $ac_link) 2>conftest.er1
21700 ac_status=$?
21701 grep -v '^ *+' conftest.er1 >conftest.err
21702 rm -f conftest.er1
21703 cat conftest.err >&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } &&
21706 { ac_try='test -z "$ac_c_werror_flag"
21707 || test ! -s conftest.err'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21710 ac_status=$?
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; } &&
21713 { ac_try='test -s conftest$ac_exeext'
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; }; then
21719 :
21720 else
21721 echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.$ac_ext >&5
21723
21724 gdb_cv_bigtoc=
21725 fi
21726 rm -f conftest.err conftest.$ac_objext \
21727 conftest$ac_exeext conftest.$ac_ext
21728 LDFLAGS="${SAVE_LDFLAGS}"
21729
21730 fi
21731 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
21732 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
21733 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
21734 ;;
21735 esac
21736
21737
21738
21739 if test ${build} = ${host} -a ${host} = ${target} ; then
21740 case ${host_os} in
21741 hpux*)
21742 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
21743 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
21744 if test -f /usr/include/dce/cma_config.h ; then
21745 if test "$GCC" = "yes" ; then
21746 echo "$as_me:$LINENO: result: yes" >&5
21747 echo "${ECHO_T}yes" >&6
21748
21749 cat >>confdefs.h <<\_ACEOF
21750 #define HAVE_HPUX_THREAD_SUPPORT 1
21751 _ACEOF
21752
21753 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
21754 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
21755 else
21756 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
21757 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
21758 fi
21759 else
21760 echo "$as_me:$LINENO: result: no" >&5
21761 echo "${ECHO_T}no" >&6
21762 fi
21763 ;;
21764 solaris*)
21765 # See if thread_db library is around for Solaris thread debugging.
21766 # Note that we must explicitly test for version 1 of the library
21767 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
21768 # the same API.
21769 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
21770 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
21771 if test -f /usr/lib/libthread_db.so.1 ; then
21772 echo "$as_me:$LINENO: result: yes" >&5
21773 echo "${ECHO_T}yes" >&6
21774
21775 cat >>confdefs.h <<\_ACEOF
21776 #define HAVE_THREAD_DB_LIB 1
21777 _ACEOF
21778
21779 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
21780 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
21781
21782 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21783 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21784 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21785 echo $ECHO_N "(cached) $ECHO_C" >&6
21786 else
21787 ac_check_lib_save_LIBS=$LIBS
21788 LIBS="-ldl $LIBS"
21789 cat >conftest.$ac_ext <<_ACEOF
21790 /* confdefs.h. */
21791 _ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795
21796 /* Override any gcc2 internal prototype to avoid an error. */
21797 #ifdef __cplusplus
21798 extern "C"
21799 #endif
21800 /* We use char because int might match the return type of a gcc2
21801 builtin and then its argument prototype would still apply. */
21802 char dlopen ();
21803 int
21804 main ()
21805 {
21806 dlopen ();
21807 ;
21808 return 0;
21809 }
21810 _ACEOF
21811 rm -f conftest.$ac_objext conftest$ac_exeext
21812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21813 (eval $ac_link) 2>conftest.er1
21814 ac_status=$?
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } &&
21820 { ac_try='test -z "$ac_c_werror_flag"
21821 || test ! -s conftest.err'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; } &&
21827 { ac_try='test -s conftest$ac_exeext'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; }; then
21833 ac_cv_lib_dl_dlopen=yes
21834 else
21835 echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21837
21838 ac_cv_lib_dl_dlopen=no
21839 fi
21840 rm -f conftest.err conftest.$ac_objext \
21841 conftest$ac_exeext conftest.$ac_ext
21842 LIBS=$ac_check_lib_save_LIBS
21843 fi
21844 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21845 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21846 if test $ac_cv_lib_dl_dlopen = yes; then
21847 cat >>confdefs.h <<_ACEOF
21848 #define HAVE_LIBDL 1
21849 _ACEOF
21850
21851 LIBS="-ldl $LIBS"
21852
21853 fi
21854
21855 if test "$GCC" = "yes" ; then
21856 # The GNU linker requires the -export-dynamic option to make
21857 # all symbols visible in the dynamic symbol table.
21858 hold_ldflags=$LDFLAGS
21859 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
21860 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
21861 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
21862 cat >conftest.$ac_ext <<_ACEOF
21863 /* confdefs.h. */
21864 _ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868
21869 int
21870 main ()
21871 {
21872 int i;
21873 ;
21874 return 0;
21875 }
21876 _ACEOF
21877 rm -f conftest.$ac_objext conftest$ac_exeext
21878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21879 (eval $ac_link) 2>conftest.er1
21880 ac_status=$?
21881 grep -v '^ *+' conftest.er1 >conftest.err
21882 rm -f conftest.er1
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } &&
21886 { ac_try='test -z "$ac_c_werror_flag"
21887 || test ! -s conftest.err'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21890 ac_status=$?
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; } &&
21893 { ac_try='test -s conftest$ac_exeext'
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 found=yes
21900 else
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21903
21904 found=no
21905 fi
21906 rm -f conftest.err conftest.$ac_objext \
21907 conftest$ac_exeext conftest.$ac_ext
21908 LDFLAGS=$hold_ldflags
21909 echo "$as_me:$LINENO: result: $found" >&5
21910 echo "${ECHO_T}$found" >&6
21911 if test $found = yes; then
21912 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21913 fi
21914 fi
21915 # Sun randomly tweaked the prototypes in <proc_service.h>
21916 # at one point.
21917 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21918 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
21919 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21921 else
21922
21923 cat >conftest.$ac_ext <<_ACEOF
21924 /* confdefs.h. */
21925 _ACEOF
21926 cat confdefs.h >>conftest.$ac_ext
21927 cat >>conftest.$ac_ext <<_ACEOF
21928 /* end confdefs.h. */
21929
21930 #include <proc_service.h>
21931 ps_err_e ps_pdwrite
21932 (struct ps_prochandle*, psaddr_t, const void*, size_t);
21933
21934 int
21935 main ()
21936 {
21937
21938 ;
21939 return 0;
21940 }
21941 _ACEOF
21942 rm -f conftest.$ac_objext
21943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21944 (eval $ac_compile) 2>conftest.er1
21945 ac_status=$?
21946 grep -v '^ *+' conftest.er1 >conftest.err
21947 rm -f conftest.er1
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } &&
21951 { ac_try='test -z "$ac_c_werror_flag"
21952 || test ! -s conftest.err'
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21955 ac_status=$?
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; } &&
21958 { ac_try='test -s conftest.$ac_objext'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21961 ac_status=$?
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; }; then
21964 gdb_cv_proc_service_is_old=no
21965 else
21966 echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21968
21969 gdb_cv_proc_service_is_old=yes
21970 fi
21971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21972
21973 fi
21974
21975 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21976 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
21977 if test $gdb_cv_proc_service_is_old = yes; then
21978
21979 cat >>confdefs.h <<\_ACEOF
21980 #define PROC_SERVICE_IS_OLD 1
21981 _ACEOF
21982
21983 fi
21984 else
21985 echo "$as_me:$LINENO: result: no" >&5
21986 echo "${ECHO_T}no" >&6
21987 fi
21988 ;;
21989 aix*)
21990 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21991 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
21992 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21993 echo $ECHO_N "(cached) $ECHO_C" >&6
21994 else
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h. */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 #include <sys/pthdebug.h>
22002 int
22003 main ()
22004 {
22005 #ifndef PTHDB_VERSION_3
22006 #error
22007 #endif
22008 ;
22009 return 0;
22010 }
22011 _ACEOF
22012 rm -f conftest.$ac_objext
22013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22014 (eval $ac_compile) 2>conftest.er1
22015 ac_status=$?
22016 grep -v '^ *+' conftest.er1 >conftest.err
22017 rm -f conftest.er1
22018 cat conftest.err >&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } &&
22021 { ac_try='test -z "$ac_c_werror_flag"
22022 || test ! -s conftest.err'
22023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22024 (eval $ac_try) 2>&5
22025 ac_status=$?
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); }; } &&
22028 { ac_try='test -s conftest.$ac_objext'
22029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030 (eval $ac_try) 2>&5
22031 ac_status=$?
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); }; }; then
22034 gdb_cv_have_aix_thread_debug=yes
22035 else
22036 echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22038
22039 gdb_cv_have_aix_thread_debug=no
22040 fi
22041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22042 fi
22043
22044 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
22045 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
22046 if test $gdb_cv_have_aix_thread_debug = yes; then
22047 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
22048 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
22049 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
22050 fi
22051 ;;
22052 esac
22053
22054 fi
22055
22056 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
22057 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
22058 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
22059 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 else
22062 cat >conftest.$ac_ext <<_ACEOF
22063 /* confdefs.h. */
22064 _ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h. */
22068 #include <thread_db.h>
22069 int
22070 main ()
22071 {
22072 int i = TD_NOTALLOC;
22073 ;
22074 return 0;
22075 }
22076 _ACEOF
22077 rm -f conftest.$ac_objext
22078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22079 (eval $ac_compile) 2>conftest.er1
22080 ac_status=$?
22081 grep -v '^ *+' conftest.er1 >conftest.err
22082 rm -f conftest.er1
22083 cat conftest.err >&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } &&
22086 { ac_try='test -z "$ac_c_werror_flag"
22087 || test ! -s conftest.err'
22088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089 (eval $ac_try) 2>&5
22090 ac_status=$?
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); }; } &&
22093 { ac_try='test -s conftest.$ac_objext'
22094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095 (eval $ac_try) 2>&5
22096 ac_status=$?
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; }; then
22099 gdb_cv_thread_db_h_has_td_notalloc=yes
22100 else
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22103
22104 gdb_cv_thread_db_h_has_td_notalloc=no
22105
22106 fi
22107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22108
22109 fi
22110 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
22111 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
22112 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
22113 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
22114 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
22115 echo $ECHO_N "(cached) $ECHO_C" >&6
22116 else
22117 cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h. */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 #include <thread_db.h>
22124 int
22125 main ()
22126 {
22127 int i = TD_VERSION;
22128 ;
22129 return 0;
22130 }
22131 _ACEOF
22132 rm -f conftest.$ac_objext
22133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22134 (eval $ac_compile) 2>conftest.er1
22135 ac_status=$?
22136 grep -v '^ *+' conftest.er1 >conftest.err
22137 rm -f conftest.er1
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } &&
22141 { ac_try='test -z "$ac_c_werror_flag"
22142 || test ! -s conftest.err'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22145 ac_status=$?
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; } &&
22148 { ac_try='test -s conftest.$ac_objext'
22149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22150 (eval $ac_try) 2>&5
22151 ac_status=$?
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); }; }; then
22154 gdb_cv_thread_db_h_has_td_version=yes
22155 else
22156 echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22158
22159 gdb_cv_thread_db_h_has_td_version=no
22160
22161 fi
22162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22163
22164 fi
22165 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
22166 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
22167 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
22168 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
22169 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22171 else
22172 cat >conftest.$ac_ext <<_ACEOF
22173 /* confdefs.h. */
22174 _ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22178 #include <thread_db.h>
22179 int
22180 main ()
22181 {
22182 int i = TD_NOTLS;
22183 ;
22184 return 0;
22185 }
22186 _ACEOF
22187 rm -f conftest.$ac_objext
22188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22189 (eval $ac_compile) 2>conftest.er1
22190 ac_status=$?
22191 grep -v '^ *+' conftest.er1 >conftest.err
22192 rm -f conftest.er1
22193 cat conftest.err >&5
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } &&
22196 { ac_try='test -z "$ac_c_werror_flag"
22197 || test ! -s conftest.err'
22198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22199 (eval $ac_try) 2>&5
22200 ac_status=$?
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); }; } &&
22203 { ac_try='test -s conftest.$ac_objext'
22204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22205 (eval $ac_try) 2>&5
22206 ac_status=$?
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); }; }; then
22209 gdb_cv_thread_db_h_has_td_notls=yes
22210 else
22211 echo "$as_me: failed program was:" >&5
22212 sed 's/^/| /' conftest.$ac_ext >&5
22213
22214 gdb_cv_thread_db_h_has_td_notls=no
22215
22216 fi
22217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22218
22219 fi
22220 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
22221 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
22222 fi
22223 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
22224
22225 cat >>confdefs.h <<\_ACEOF
22226 #define THREAD_DB_HAS_TD_NOTALLOC 1
22227 _ACEOF
22228
22229 fi
22230 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
22231
22232 cat >>confdefs.h <<\_ACEOF
22233 #define THREAD_DB_HAS_TD_VERSION 1
22234 _ACEOF
22235
22236 fi
22237 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
22238
22239 cat >>confdefs.h <<\_ACEOF
22240 #define THREAD_DB_HAS_TD_NOTLS 1
22241 _ACEOF
22242
22243 fi
22244
22245 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
22246 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
22247 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
22248 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
22249 echo $ECHO_N "(cached) $ECHO_C" >&6
22250 else
22251 cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h. */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257 #include <sys/syscall.h>
22258 int
22259 main ()
22260 {
22261 int i = __NR_tkill;
22262 ;
22263 return 0;
22264 }
22265 _ACEOF
22266 rm -f conftest.$ac_objext
22267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22268 (eval $ac_compile) 2>conftest.er1
22269 ac_status=$?
22270 grep -v '^ *+' conftest.er1 >conftest.err
22271 rm -f conftest.er1
22272 cat conftest.err >&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); } &&
22275 { ac_try='test -z "$ac_c_werror_flag"
22276 || test ! -s conftest.err'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22279 ac_status=$?
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; } &&
22282 { ac_try='test -s conftest.$ac_objext'
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22285 ac_status=$?
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; }; then
22288 gdb_cv_sys_syscall_h_has_tkill=yes
22289 else
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22292
22293 gdb_cv_sys_syscall_h_has_tkill=no
22294
22295 fi
22296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22297
22298 fi
22299 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
22300 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
22301 fi
22302 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
22303
22304 cat >>confdefs.h <<\_ACEOF
22305 #define HAVE_TKILL_SYSCALL 1
22306 _ACEOF
22307
22308 fi
22309
22310
22311
22312 # Check whether --with-sysroot or --without-sysroot was given.
22313 if test "${with_sysroot+set}" = set; then
22314 withval="$with_sysroot"
22315
22316 case ${with_sysroot} in
22317 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
22318 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
22319 esac
22320
22321 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
22322
22323 if test "x$prefix" = xNONE; then
22324 test_prefix=/usr/local
22325 else
22326 test_prefix=$prefix
22327 fi
22328 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
22329 test_exec_prefix=$test_prefix
22330 else
22331 test_exec_prefix=$exec_prefix
22332 fi
22333 case ${TARGET_SYSTEM_ROOT} in
22334 "${test_prefix}"|"${test_prefix}/"*|\
22335 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
22336 '${prefix}'|'${prefix}/'*|\
22337 '${exec_prefix}'|'${exec_prefix}/'*)
22338 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
22339 TARGET_SYSTEM_ROOT_DEFINE="$t"
22340 ;;
22341 esac
22342
22343 else
22344
22345 TARGET_SYSTEM_ROOT=
22346 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
22347
22348 fi;
22349
22350
22351
22352 # Check whether --enable-werror or --disable-werror was given.
22353 if test "${enable_werror+set}" = set; then
22354 enableval="$enable_werror"
22355 case "${enableval}" in
22356 yes | y) ERROR_ON_WARNING="yes" ;;
22357 no | n) ERROR_ON_WARNING="no" ;;
22358 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
22359 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
22360 { (exit 1); exit 1; }; } ;;
22361 esac
22362 fi;
22363
22364 # Enable -Werror by default when using gcc
22365 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
22366 ERROR_ON_WARNING=yes
22367 fi
22368
22369 WERROR_CFLAGS=""
22370 if test "${ERROR_ON_WARNING}" = yes ; then
22371 WERROR_CFLAGS="-Werror"
22372 fi
22373
22374 # The entries after -Wno-pointer-sign are disabled warnings which may
22375 # be enabled in the future, which can not currently be used to build
22376 # GDB.
22377 # NOTE: If you change this list, remember to update
22378 # gdb/doc/gdbint.texinfo.
22379 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
22380 -Wformat-nonliteral -Wno-pointer-sign \
22381 -Wno-unused -Wno-switch -Wno-char-subscripts"
22382
22383 # Check whether --enable-build-warnings or --disable-build-warnings was given.
22384 if test "${enable_build_warnings+set}" = set; then
22385 enableval="$enable_build_warnings"
22386 case "${enableval}" in
22387 yes) ;;
22388 no) build_warnings="-w";;
22389 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22390 build_warnings="${build_warnings} ${t}";;
22391 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22392 build_warnings="${t} ${build_warnings}";;
22393 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22394 esac
22395 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
22396 echo "Setting compiler warning flags = $build_warnings" 6>&1
22397 fi
22398 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
22399 if test "${enable_gdb_build_warnings+set}" = set; then
22400 enableval="$enable_gdb_build_warnings"
22401 case "${enableval}" in
22402 yes) ;;
22403 no) build_warnings="-w";;
22404 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22405 build_warnings="${build_warnings} ${t}";;
22406 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22407 build_warnings="${t} ${build_warnings}";;
22408 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22409 esac
22410 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
22411 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
22412 fi
22413 fi; WARN_CFLAGS=""
22414 if test "x${build_warnings}" != x -a "x$GCC" = xyes
22415 then
22416 echo "$as_me:$LINENO: checking compiler warning flags" >&5
22417 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
22418 # Separate out the -Werror flag as some files just cannot be
22419 # compiled with it enabled.
22420 for w in ${build_warnings}; do
22421 case $w in
22422 -Werr*) WERROR_CFLAGS=-Werror ;;
22423 *) # Check that GCC accepts it
22424 saved_CFLAGS="$CFLAGS"
22425 CFLAGS="$CFLAGS $w"
22426 cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h. */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22432
22433 int
22434 main ()
22435 {
22436
22437 ;
22438 return 0;
22439 }
22440 _ACEOF
22441 rm -f conftest.$ac_objext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22443 (eval $ac_compile) 2>conftest.er1
22444 ac_status=$?
22445 grep -v '^ *+' conftest.er1 >conftest.err
22446 rm -f conftest.er1
22447 cat conftest.err >&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } &&
22450 { ac_try='test -z "$ac_c_werror_flag"
22451 || test ! -s conftest.err'
22452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453 (eval $ac_try) 2>&5
22454 ac_status=$?
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); }; } &&
22457 { ac_try='test -s conftest.$ac_objext'
22458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22463 WARN_CFLAGS="${WARN_CFLAGS} $w"
22464 else
22465 echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22467
22468 fi
22469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22470 CFLAGS="$saved_CFLAGS"
22471 esac
22472 done
22473 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
22474 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
22475 fi
22476
22477
22478
22479 # In the Cygwin environment, we need some additional flags.
22480 echo "$as_me:$LINENO: checking for cygwin" >&5
22481 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
22482 if test "${gdb_cv_os_cygwin+set}" = set; then
22483 echo $ECHO_N "(cached) $ECHO_C" >&6
22484 else
22485 cat >conftest.$ac_ext <<_ACEOF
22486 /* confdefs.h. */
22487 _ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h. */
22491
22492 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
22493 lose
22494 #endif
22495 _ACEOF
22496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22497 $EGREP "lose" >/dev/null 2>&1; then
22498 gdb_cv_os_cygwin=yes
22499 else
22500 gdb_cv_os_cygwin=no
22501 fi
22502 rm -f conftest*
22503
22504 fi
22505 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
22506 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
22507
22508
22509 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
22510 case ${host} in
22511 *go32* ) SER_HARDWIRE=ser-go32.o ;;
22512 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
22513 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
22514 esac
22515
22516
22517 # libreadline needs libuser32.a in a cygwin environment
22518 WIN32LIBS=
22519 if test x$gdb_cv_os_cygwin = xyes; then
22520 WIN32LIBS="-luser32"
22521 case "${target}" in
22522 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
22523 ;;
22524 esac
22525 fi
22526
22527 # The ser-tcp.c module requires sockets.
22528 case ${host} in
22529 *mingw32*)
22530
22531 cat >>confdefs.h <<\_ACEOF
22532 #define USE_WIN32API 1
22533 _ACEOF
22534
22535 WIN32LIBS="$WIN32LIBS -lws2_32"
22536 ;;
22537 esac
22538
22539
22540 # Add ELF support to GDB, but only if BFD includes ELF support.
22541 OLD_CFLAGS=$CFLAGS
22542 OLD_LDFLAGS=$LDFLAGS
22543 OLD_LIBS=$LIBS
22544 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
22545 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
22546 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
22547 LIBS="$LIBS -lbfd -liberty $intl"
22548 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
22549 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
22550 if test "${gdb_cv_var_elf+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22552 else
22553 cat >conftest.$ac_ext <<_ACEOF
22554 /* confdefs.h. */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 #include <stdlib.h>
22560 #include "bfd.h"
22561 #include "elf-bfd.h"
22562
22563 int
22564 main ()
22565 {
22566 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
22567 ;
22568 return 0;
22569 }
22570 _ACEOF
22571 rm -f conftest.$ac_objext conftest$ac_exeext
22572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22573 (eval $ac_link) 2>conftest.er1
22574 ac_status=$?
22575 grep -v '^ *+' conftest.er1 >conftest.err
22576 rm -f conftest.er1
22577 cat conftest.err >&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); } &&
22580 { ac_try='test -z "$ac_c_werror_flag"
22581 || test ! -s conftest.err'
22582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22583 (eval $ac_try) 2>&5
22584 ac_status=$?
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); }; } &&
22587 { ac_try='test -s conftest$ac_exeext'
22588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22589 (eval $ac_try) 2>&5
22590 ac_status=$?
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); }; }; then
22593 gdb_cv_var_elf=yes
22594 else
22595 echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22597
22598 gdb_cv_var_elf=no
22599 fi
22600 rm -f conftest.err conftest.$ac_objext \
22601 conftest$ac_exeext conftest.$ac_ext
22602 fi
22603 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
22604 echo "${ECHO_T}$gdb_cv_var_elf" >&6
22605 if test $gdb_cv_var_elf = yes; then
22606 CONFIG_OBS="$CONFIG_OBS elfread.o"
22607
22608 cat >>confdefs.h <<\_ACEOF
22609 #define HAVE_ELF 1
22610 _ACEOF
22611
22612 fi
22613 CFLAGS=$OLD_CFLAGS
22614 LDFLAGS=$OLD_LDFLAGS
22615 LIBS=$OLD_LIBS
22616
22617 # Add any host-specific objects to GDB.
22618 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
22619
22620 LIBGUI="../libgui/src/libgui.a"
22621 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
22622
22623
22624
22625 WIN32LDAPP=
22626
22627
22628
22629 case "${host}" in
22630 *-*-cygwin*)
22631 configdir="win"
22632 ;;
22633 *)
22634 configdir="unix"
22635 ;;
22636 esac
22637
22638 GDBTKLIBS=
22639 if test "${enable_gdbtk}" = "yes"; then
22640
22641 # Gdbtk must have an absolute path to srcdir in order to run
22642 # properly when not installed.
22643 here=`pwd`
22644 cd ${srcdir}
22645 GDBTK_SRC_DIR=`pwd`
22646 cd $here
22647
22648
22649 #
22650 # Ok, lets find the tcl configuration
22651 # First, look for one uninstalled.
22652 # the alternative search directory is invoked by --with-tclconfig
22653 #
22654
22655 if test x"${no_tcl}" = x ; then
22656 # we reset no_tcl in case something fails here
22657 no_tcl=true
22658
22659 # Check whether --with-tclconfig or --without-tclconfig was given.
22660 if test "${with_tclconfig+set}" = set; then
22661 withval="$with_tclconfig"
22662 with_tclconfig=${withval}
22663 fi;
22664 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
22665 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
22666 if test "${ac_cv_c_tclconfig+set}" = set; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22668 else
22669
22670
22671 # First check to see if --with-tclconfig was specified.
22672 if test x"${with_tclconfig}" != x ; then
22673 if test -f "${with_tclconfig}/tclConfig.sh" ; then
22674 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
22675 else
22676 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
22677 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
22678 { (exit 1); exit 1; }; }
22679 fi
22680 fi
22681
22682 # then check for a private Tcl installation
22683 if test x"${ac_cv_c_tclconfig}" = x ; then
22684 for i in \
22685 ../tcl \
22686 `ls -dr ../tcl[7-9]* 2>/dev/null` \
22687 ../../tcl \
22688 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
22689 ../../../tcl \
22690 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
22691 if test -f "$i/${configdir}/tclConfig.sh" ; then
22692 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22693 break
22694 fi
22695 done
22696 fi
22697 # check in a few common install locations
22698 if test x"${ac_cv_c_tclconfig}" = x ; then
22699 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22700 if test -f "$i/tclConfig.sh" ; then
22701 ac_cv_c_tclconfig=`(cd $i; pwd)`
22702 break
22703 fi
22704 done
22705 fi
22706 # check in a few other private locations
22707 if test x"${ac_cv_c_tclconfig}" = x ; then
22708 for i in \
22709 ${srcdir}/../tcl \
22710 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
22711 if test -f "$i/${configdir}/tclConfig.sh" ; then
22712 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22713 break
22714 fi
22715 done
22716 fi
22717
22718 fi
22719
22720 if test x"${ac_cv_c_tclconfig}" = x ; then
22721 TCLCONFIG="# no Tcl configs found"
22722 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
22723 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
22724 else
22725 no_tcl=
22726 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
22727 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
22728 echo "${ECHO_T}found $TCLCONFIG" >&6
22729 fi
22730 fi
22731
22732 if test -z "${no_tcl}"; then
22733
22734 . $TCLCONFIG
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762 #
22763 # Ok, lets find the tk configuration
22764 # First, look for one uninstalled.
22765 # the alternative search directory is invoked by --with-tkconfig
22766 #
22767
22768 if test x"${no_tk}" = x ; then
22769 # we reset no_tk in case something fails here
22770 no_tk=true
22771
22772 # Check whether --with-tkconfig or --without-tkconfig was given.
22773 if test "${with_tkconfig+set}" = set; then
22774 withval="$with_tkconfig"
22775 with_tkconfig=${withval}
22776 fi;
22777 echo "$as_me:$LINENO: checking for Tk configuration" >&5
22778 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
22779 if test "${ac_cv_c_tkconfig+set}" = set; then
22780 echo $ECHO_N "(cached) $ECHO_C" >&6
22781 else
22782
22783
22784 # First check to see if --with-tkconfig was specified.
22785 if test x"${with_tkconfig}" != x ; then
22786 if test -f "${with_tkconfig}/tkConfig.sh" ; then
22787 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
22788 else
22789 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
22790 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
22791 { (exit 1); exit 1; }; }
22792 fi
22793 fi
22794
22795 # then check for a private Tk library
22796 if test x"${ac_cv_c_tkconfig}" = x ; then
22797 for i in \
22798 ../tk \
22799 `ls -dr ../tk[4-9]* 2>/dev/null` \
22800 ../../tk \
22801 `ls -dr ../../tk[4-9]* 2>/dev/null` \
22802 ../../../tk \
22803 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
22804 if test -f "$i/${configdir}/tkConfig.sh" ; then
22805 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22806 break
22807 fi
22808 done
22809 fi
22810 # check in a few common install locations
22811 if test x"${ac_cv_c_tkconfig}" = x ; then
22812 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22813 if test -f "$i/tkConfig.sh" ; then
22814 ac_cv_c_tkconfig=`(cd $i; pwd)`
22815 break
22816 fi
22817 done
22818 fi
22819 # check in a few other private locations
22820 if test x"${ac_cv_c_tkconfig}" = x ; then
22821 for i in \
22822 ${srcdir}/../tk \
22823 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
22824 if test -f "$i/${configdir}/tkConfig.sh" ; then
22825 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22826 break
22827 fi
22828 done
22829 fi
22830
22831 fi
22832
22833 if test x"${ac_cv_c_tkconfig}" = x ; then
22834 TKCONFIG="# no Tk configs found"
22835 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
22836 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
22837 else
22838 no_tk=
22839 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
22840 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
22841 echo "${ECHO_T}found $TKCONFIG" >&6
22842 fi
22843 fi
22844
22845
22846
22847 # now look for Tcl library stuff
22848
22849 tcldir="../tcl/${configdir}/"
22850
22851 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
22852
22853 # If $no_tk is nonempty, then we can't do Tk, and there is no
22854 # point to doing Tcl.
22855 if test -z "${no_tk}"; then
22856
22857 if test -f "$TKCONFIG" ; then
22858 . $TKCONFIG
22859 fi
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874 #
22875 # Ok, lets find the tcl source trees so we can use the headers
22876 # Warning: transition of version 9 to 10 will break this algorithm
22877 # because 10 sorts before 9. We also look for just tcl. We have to
22878 # be careful that we don't match stuff like tclX by accident.
22879 # the alternative search directory is involked by --with-tclinclude
22880 #
22881
22882 no_tcl=true
22883 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
22884 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
22885
22886 # Check whether --with-tclinclude or --without-tclinclude was given.
22887 if test "${with_tclinclude+set}" = set; then
22888 withval="$with_tclinclude"
22889 with_tclinclude=${withval}
22890 fi;
22891 if test "${ac_cv_c_tclh+set}" = set; then
22892 echo $ECHO_N "(cached) $ECHO_C" >&6
22893 else
22894
22895 # first check to see if --with-tclinclude was specified
22896 if test x"${with_tclinclude}" != x ; then
22897 if test -f ${with_tclinclude}/tclInt.h ; then
22898 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
22899 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
22900 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
22901 else
22902 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
22903 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
22904 { (exit 1); exit 1; }; }
22905 fi
22906 fi
22907
22908 # next check if it came with Tcl configuration file
22909 if test x"${ac_cv_c_tclconfig}" = x ; then
22910 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
22911 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
22912 fi
22913 fi
22914
22915 # next check in private source directory
22916 #
22917 # since ls returns lowest version numbers first, reverse its output
22918 if test x"${ac_cv_c_tclh}" = x ; then
22919 for i in \
22920 ${srcdir}/../tcl \
22921 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
22922 ${srcdir}/../../tcl \
22923 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
22924 ${srcdir}/../../../tcl \
22925 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
22926 if test -f $i/generic/tclInt.h ; then
22927 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22928 break
22929 fi
22930 done
22931 fi
22932 # finally check in a few common install locations
22933 #
22934 # since ls returns lowest version numbers first, reverse its output
22935 if test x"${ac_cv_c_tclh}" = x ; then
22936 for i in \
22937 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
22938 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
22939 /usr/local/src/tcl \
22940 /usr/local/lib/tcl \
22941 ${prefix}/include ; do
22942 if test -f $i/generic/tclInt.h ; then
22943 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22944 break
22945 fi
22946 done
22947 fi
22948 # see if one is installed
22949 if test x"${ac_cv_c_tclh}" = x ; then
22950 if test "${ac_cv_header_tclInt_h+set}" = set; then
22951 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22952 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
22953 if test "${ac_cv_header_tclInt_h+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22955 fi
22956 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22957 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
22958 else
22959 # Is the header compilable?
22960 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22961 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
22962 cat >conftest.$ac_ext <<_ACEOF
22963 /* confdefs.h. */
22964 _ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h. */
22968 $ac_includes_default
22969 #include <tclInt.h>
22970 _ACEOF
22971 rm -f conftest.$ac_objext
22972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22973 (eval $ac_compile) 2>conftest.er1
22974 ac_status=$?
22975 grep -v '^ *+' conftest.er1 >conftest.err
22976 rm -f conftest.er1
22977 cat conftest.err >&5
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } &&
22980 { ac_try='test -z "$ac_c_werror_flag"
22981 || test ! -s conftest.err'
22982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983 (eval $ac_try) 2>&5
22984 ac_status=$?
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); }; } &&
22987 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22993 ac_header_compiler=yes
22994 else
22995 echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22997
22998 ac_header_compiler=no
22999 fi
23000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23002 echo "${ECHO_T}$ac_header_compiler" >&6
23003
23004 # Is the header present?
23005 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
23006 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
23007 cat >conftest.$ac_ext <<_ACEOF
23008 /* confdefs.h. */
23009 _ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h. */
23013 #include <tclInt.h>
23014 _ACEOF
23015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23017 ac_status=$?
23018 grep -v '^ *+' conftest.er1 >conftest.err
23019 rm -f conftest.er1
23020 cat conftest.err >&5
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } >/dev/null; then
23023 if test -s conftest.err; then
23024 ac_cpp_err=$ac_c_preproc_warn_flag
23025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23026 else
23027 ac_cpp_err=
23028 fi
23029 else
23030 ac_cpp_err=yes
23031 fi
23032 if test -z "$ac_cpp_err"; then
23033 ac_header_preproc=yes
23034 else
23035 echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23037
23038 ac_header_preproc=no
23039 fi
23040 rm -f conftest.err conftest.$ac_ext
23041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23042 echo "${ECHO_T}$ac_header_preproc" >&6
23043
23044 # So? What about this header?
23045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23046 yes:no: )
23047 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23048 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23049 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
23050 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
23051 ac_header_preproc=yes
23052 ;;
23053 no:yes:* )
23054 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
23055 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
23056 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
23057 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
23058 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
23059 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
23060 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
23061 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
23063 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
23064 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
23065 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
23066 (
23067 cat <<\_ASBOX
23068 ## ------------------------------------------ ##
23069 ## Report this to the AC_PACKAGE_NAME lists. ##
23070 ## ------------------------------------------ ##
23071 _ASBOX
23072 ) |
23073 sed "s/^/$as_me: WARNING: /" >&2
23074 ;;
23075 esac
23076 echo "$as_me:$LINENO: checking for tclInt.h" >&5
23077 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
23078 if test "${ac_cv_header_tclInt_h+set}" = set; then
23079 echo $ECHO_N "(cached) $ECHO_C" >&6
23080 else
23081 ac_cv_header_tclInt_h=$ac_header_preproc
23082 fi
23083 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23084 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
23085
23086 fi
23087 if test $ac_cv_header_tclInt_h = yes; then
23088 ac_cv_c_tclh=installed
23089 else
23090 ac_cv_c_tclh=""
23091 fi
23092
23093
23094 fi
23095
23096 fi
23097
23098 if test x"${ac_cv_c_tclh}" = x ; then
23099 TCLHDIR="# no Tcl private headers found"
23100 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
23101 echo "$as_me: error: Can't find Tcl private headers" >&2;}
23102 { (exit 1); exit 1; }; }
23103 fi
23104 if test x"${ac_cv_c_tclh}" != x ; then
23105 no_tcl=""
23106 if test x"${ac_cv_c_tclh}" = x"installed" ; then
23107 echo "$as_me:$LINENO: result: is installed" >&5
23108 echo "${ECHO_T}is installed" >&6
23109 TCLHDIR=""
23110 else
23111 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
23112 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
23113 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
23114 TCLHDIR="-I${ac_cv_c_tclh}"
23115 fi
23116 fi
23117
23118
23119
23120
23121 #
23122 # Ok, lets find the tk source trees so we can use the headers
23123 # If the directory (presumably symlink) named "tk" exists, use that one
23124 # in preference to any others. Same logic is used when choosing library
23125 # and again with Tcl. The search order is the best place to look first, then in
23126 # decreasing significance. The loop breaks if the trigger file is found.
23127 # Note the gross little conversion here of srcdir by cd'ing to the found
23128 # directory. This converts the path from a relative to an absolute, so
23129 # recursive cache variables for the path will work right. We check all
23130 # the possible paths in one loop rather than many seperate loops to speed
23131 # things up.
23132 # the alternative search directory is involked by --with-tkinclude
23133 #
23134 no_tk=true
23135 echo "$as_me:$LINENO: checking for Tk private headers" >&5
23136 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
23137
23138 # Check whether --with-tkinclude or --without-tkinclude was given.
23139 if test "${with_tkinclude+set}" = set; then
23140 withval="$with_tkinclude"
23141 with_tkinclude=${withval}
23142 fi;
23143 if test "${ac_cv_c_tkh+set}" = set; then
23144 echo $ECHO_N "(cached) $ECHO_C" >&6
23145 else
23146
23147 # first check to see if --with-tkinclude was specified
23148 if test x"${with_tkinclude}" != x ; then
23149 if test -f ${with_tkinclude}/tk.h ; then
23150 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
23151 elif test -f ${with_tkinclude}/generic/tk.h ; then
23152 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
23153 else
23154 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
23155 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
23156 { (exit 1); exit 1; }; }
23157 fi
23158 fi
23159
23160 # next check if it came with Tk configuration file
23161 if test x"${ac_cv_c_tkconfig}" = x ; then
23162 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
23163 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
23164 fi
23165 fi
23166
23167 # next check in private source directory
23168 #
23169 # since ls returns lowest version numbers first, reverse its output
23170 if test x"${ac_cv_c_tkh}" = x ; then
23171 for i in \
23172 ${srcdir}/../tk \
23173 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
23174 ${srcdir}/../../tk \
23175 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
23176 ${srcdir}/../../../tk \
23177 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
23178 if test -f $i/generic/tk.h ; then
23179 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23180 break
23181 fi
23182 done
23183 fi
23184 # finally check in a few common install locations
23185 #
23186 # since ls returns lowest version numbers first, reverse its output
23187 if test x"${ac_cv_c_tkh}" = x ; then
23188 for i in \
23189 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
23190 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
23191 /usr/local/src/tk \
23192 /usr/local/lib/tk \
23193 ${prefix}/include ; do
23194 if test -f $i/generic/tk.h ; then
23195 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23196 break
23197 fi
23198 done
23199 fi
23200 # see if one is installed
23201 if test x"${ac_cv_c_tkh}" = x ; then
23202 if test "${ac_cv_header_tk_h+set}" = set; then
23203 echo "$as_me:$LINENO: checking for tk.h" >&5
23204 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
23205 if test "${ac_cv_header_tk_h+set}" = set; then
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23207 fi
23208 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23209 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
23210 else
23211 # Is the header compilable?
23212 echo "$as_me:$LINENO: checking tk.h usability" >&5
23213 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
23214 cat >conftest.$ac_ext <<_ACEOF
23215 /* confdefs.h. */
23216 _ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23220 $ac_includes_default
23221 #include <tk.h>
23222 _ACEOF
23223 rm -f conftest.$ac_objext
23224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23225 (eval $ac_compile) 2>conftest.er1
23226 ac_status=$?
23227 grep -v '^ *+' conftest.er1 >conftest.err
23228 rm -f conftest.er1
23229 cat conftest.err >&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); } &&
23232 { ac_try='test -z "$ac_c_werror_flag"
23233 || test ! -s conftest.err'
23234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235 (eval $ac_try) 2>&5
23236 ac_status=$?
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); }; } &&
23239 { ac_try='test -s conftest.$ac_objext'
23240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23241 (eval $ac_try) 2>&5
23242 ac_status=$?
23243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244 (exit $ac_status); }; }; then
23245 ac_header_compiler=yes
23246 else
23247 echo "$as_me: failed program was:" >&5
23248 sed 's/^/| /' conftest.$ac_ext >&5
23249
23250 ac_header_compiler=no
23251 fi
23252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23254 echo "${ECHO_T}$ac_header_compiler" >&6
23255
23256 # Is the header present?
23257 echo "$as_me:$LINENO: checking tk.h presence" >&5
23258 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
23259 cat >conftest.$ac_ext <<_ACEOF
23260 /* confdefs.h. */
23261 _ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h. */
23265 #include <tk.h>
23266 _ACEOF
23267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23269 ac_status=$?
23270 grep -v '^ *+' conftest.er1 >conftest.err
23271 rm -f conftest.er1
23272 cat conftest.err >&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); } >/dev/null; then
23275 if test -s conftest.err; then
23276 ac_cpp_err=$ac_c_preproc_warn_flag
23277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23278 else
23279 ac_cpp_err=
23280 fi
23281 else
23282 ac_cpp_err=yes
23283 fi
23284 if test -z "$ac_cpp_err"; then
23285 ac_header_preproc=yes
23286 else
23287 echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23289
23290 ac_header_preproc=no
23291 fi
23292 rm -f conftest.err conftest.$ac_ext
23293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23294 echo "${ECHO_T}$ac_header_preproc" >&6
23295
23296 # So? What about this header?
23297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23298 yes:no: )
23299 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
23300 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23301 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
23302 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
23303 ac_header_preproc=yes
23304 ;;
23305 no:yes:* )
23306 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
23307 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
23308 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
23309 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
23310 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
23311 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
23312 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
23313 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
23314 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
23315 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
23316 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
23317 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
23318 (
23319 cat <<\_ASBOX
23320 ## ------------------------------------------ ##
23321 ## Report this to the AC_PACKAGE_NAME lists. ##
23322 ## ------------------------------------------ ##
23323 _ASBOX
23324 ) |
23325 sed "s/^/$as_me: WARNING: /" >&2
23326 ;;
23327 esac
23328 echo "$as_me:$LINENO: checking for tk.h" >&5
23329 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
23330 if test "${ac_cv_header_tk_h+set}" = set; then
23331 echo $ECHO_N "(cached) $ECHO_C" >&6
23332 else
23333 ac_cv_header_tk_h=$ac_header_preproc
23334 fi
23335 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23336 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
23337
23338 fi
23339 if test $ac_cv_header_tk_h = yes; then
23340 ac_cv_c_tkh=installed
23341 else
23342 ac_cv_c_tkh=""
23343 fi
23344
23345
23346 fi
23347
23348 fi
23349
23350 if test x"${ac_cv_c_tkh}" != x ; then
23351 no_tk=""
23352 if test x"${ac_cv_c_tkh}" = x"installed" ; then
23353 echo "$as_me:$LINENO: result: is installed" >&5
23354 echo "${ECHO_T}is installed" >&6
23355 TKHDIR=""
23356 else
23357 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
23358 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
23359 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
23360 TKHDIR="-I${ac_cv_c_tkh}"
23361 fi
23362 else
23363 TKHDIR="# no Tk directory found"
23364 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
23365 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
23366 no_tk=true
23367 fi
23368
23369
23370
23371
23372 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
23373 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
23374 if test x"${ac_cv_c_itclh}" = x ; then
23375 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
23376 if test -f $i/generic/itcl.h ; then
23377 ac_cv_c_itclh=`(cd $i/generic; pwd)`
23378 break
23379 fi
23380 done
23381 fi
23382 if test x"${ac_cv_c_itclh}" = x ; then
23383 ITCLHDIR="# no Itcl private headers found"
23384 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
23385 echo "$as_me: error: Can't find Itcl private headers" >&2;}
23386 { (exit 1); exit 1; }; }
23387 fi
23388 if test x"${ac_cv_c_itclh}" != x ; then
23389 ITCLHDIR="-I${ac_cv_c_itclh}"
23390 fi
23391 # should always be here
23392 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
23393
23394 #AC_SUBST(ITCLLIB)
23395
23396
23397 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
23398 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
23399 if test x"${ac_cv_c_itkh}" = x ; then
23400 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
23401 if test -f $i/generic/itk.h ; then
23402 ac_cv_c_itkh=`(cd $i/generic; pwd)`
23403 break
23404 fi
23405 done
23406 fi
23407 if test x"${ac_cv_c_itkh}" = x ; then
23408 ITKHDIR="# no Itk private headers found"
23409 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
23410 echo "$as_me: error: Can't find Itk private headers" >&2;}
23411 { (exit 1); exit 1; }; }
23412 fi
23413 if test x"${ac_cv_c_itkh}" != x ; then
23414 ITKHDIR="-I${ac_cv_c_itkh}"
23415 fi
23416 # should always be here
23417 # ITKLIB="../itcl/itk/unix/libitk.a"
23418
23419 #AC_SUBST(ITKLIB)
23420
23421
23422
23423 # now look for Tk library stuff
23424
23425 tkdir="../tk/${configdir}/"
23426
23427 TK_DEPS="${tkdir}${TK_LIB_FILE}"
23428
23429 # now look for Itcl library stuff
23430
23431
23432 #
23433 # Ok, lets find the itcl configuration
23434 # First, look for one uninstalled.
23435 # the alternative search directory is invoked by --with-itclconfig
23436 #
23437
23438 if test x"${no_itcl}" = x ; then
23439 # we reset no_itcl in case something fails here
23440 no_itcl=true
23441
23442 # Check whether --with-itclconfig or --without-itclconfig was given.
23443 if test "${with_itclconfig+set}" = set; then
23444 withval="$with_itclconfig"
23445 with_itclconfig=${withval}
23446 fi;
23447 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
23448 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
23449 if test "${ac_cv_c_itclconfig+set}" = set; then
23450 echo $ECHO_N "(cached) $ECHO_C" >&6
23451 else
23452
23453
23454 # First check to see if --with-itclconfig was specified.
23455 if test x"${with_itclconfig}" != x ; then
23456 if test -f "${with_itclconfig}/itclConfig.sh" ; then
23457 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
23458 else
23459 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
23460 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
23461 { (exit 1); exit 1; }; }
23462 fi
23463 fi
23464
23465 # then check for a private Itcl library
23466 if test x"${ac_cv_c_itclconfig}" = x ; then
23467 for i in \
23468 ../itcl/itcl \
23469 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
23470 ../../itcl \
23471 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
23472 ../../../itcl \
23473 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
23474 if test -f "$i/itclConfig.sh" ; then
23475 ac_cv_c_itclconfig=`(cd $i; pwd)`
23476 break
23477 fi
23478 done
23479 fi
23480 # check in a few common install locations
23481 if test x"${ac_cv_c_itclconfig}" = x ; then
23482 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23483 if test -f "$i/itclConfig.sh" ; then
23484 ac_cv_c_itclconfig=`(cd $i; pwd)`
23485 break
23486 fi
23487 done
23488 fi
23489 # check in a few other private locations
23490 if test x"${ac_cv_c_itclconfig}" = x ; then
23491 for i in \
23492 ${srcdir}/../itcl/itcl \
23493 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
23494 if test -f "$i/itclConfig.sh" ; then
23495 ac_cv_c_itclconfig=`(cd $i; pwd)`
23496 break
23497 fi
23498 done
23499 fi
23500
23501 fi
23502
23503 if test x"${ac_cv_c_itclconfig}" = x ; then
23504 ITCLCONFIG="# no Itcl configs found"
23505 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
23506 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
23507 else
23508 no_itcl=
23509 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
23510 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
23511 echo "${ECHO_T}found $ITCLCONFIG" >&6
23512 fi
23513 fi
23514
23515 if test -z "${no_itcl}"; then
23516
23517 if test -f "$ITCLCONFIG" ; then
23518 . $ITCLCONFIG
23519 fi
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
23533 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
23534 fi
23535
23536
23537 # now look for Itk library stuff
23538
23539 #
23540 # Ok, lets find the itk configuration
23541 # First, look for one uninstalled.
23542 # the alternative search directory is invoked by --with-itkconfig
23543 #
23544
23545 if test x"${no_itk}" = x ; then
23546 # we reset no_itk in case something fails here
23547 no_itk=true
23548
23549 # Check whether --with-itkconfig or --without-itkconfig was given.
23550 if test "${with_itkconfig+set}" = set; then
23551 withval="$with_itkconfig"
23552 with_itkconfig=${withval}
23553 fi;
23554 echo "$as_me:$LINENO: checking for Itk configuration" >&5
23555 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
23556 if test "${ac_cv_c_itkconfig+set}" = set; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23558 else
23559
23560
23561 # First check to see if --with-itkconfig was specified.
23562 if test x"${with_itkconfig}" != x ; then
23563 if test -f "${with_itkconfig}/itkConfig.sh" ; then
23564 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
23565 else
23566 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
23567 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
23568 { (exit 1); exit 1; }; }
23569 fi
23570 fi
23571
23572 # then check for a private Itk library
23573 if test x"${ac_cv_c_itkconfig}" = x ; then
23574 for i in \
23575 ../itcl/itk \
23576 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
23577 ../../itk \
23578 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
23579 ../../../itk \
23580 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
23581 if test -f "$i/itkConfig.sh" ; then
23582 ac_cv_c_itkconfig=`(cd $i; pwd)`
23583 break
23584 fi
23585 done
23586 fi
23587 # check in a few common install locations
23588 if test x"${ac_cv_c_itkconfig}" = x ; then
23589 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23590 if test -f "$i/itkConfig.sh" ; then
23591 ac_cv_c_itkconfig=`(cd $i; pwd)`
23592 break
23593 fi
23594 done
23595 fi
23596 # check in a few other private locations
23597 if test x"${ac_cv_c_itkconfig}" = x ; then
23598 for i in \
23599 ${srcdir}/../itcl/itk \
23600 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
23601 if test -f "$i/itkConfig.sh" ; then
23602 ac_cv_c_itkconfig=`(cd $i; pwd)`
23603 break
23604 fi
23605 done
23606 fi
23607
23608 fi
23609
23610 if test x"${ac_cv_c_itkconfig}" = x ; then
23611 ITKCONFIG="# no Itk configs found"
23612 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
23613 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
23614 else
23615 no_itk=
23616 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
23617 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
23618 echo "${ECHO_T}found $ITKCONFIG" >&6
23619 fi
23620 fi
23621
23622
23623 if test -z "${no_itcl}"; then
23624
23625 if test -f "$ITKCONFIG" ; then
23626 . $ITKCONFIG
23627 fi
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640 ITKLIB="${ITK_BUILD_LIB_SPEC}"
23641 ITK_DEPS="${ITK_LIB_FULL_PATH}"
23642 fi
23643
23644 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
23645
23646 # Include some libraries that Tcl and Tk want.
23647 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
23648 # Yes, the ordering seems wrong here. But it isn't.
23649 # TK_LIBS is the list of libraries that need to be linked
23650 # after Tcl/Tk. Note that this isn't put into LIBS. If it
23651 # were in LIBS then any link tests after this point would
23652 # try to include things like `$(LIBGUI)', which wouldn't work.
23653 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
23654
23655 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
23656 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
23657 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
23658 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
23659 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
23660 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
23661 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
23662
23663 if test x$gdb_cv_os_cygwin = xyes; then
23664 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
23665 WIN32LDAPP="-Wl,--subsystem,console"
23666 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
23667 fi
23668 fi
23669 fi
23670
23671
23672
23673 subdirs="$subdirs gdbtk"
23674
23675 fi
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690 echo "$as_me:$LINENO: checking for X" >&5
23691 echo $ECHO_N "checking for X... $ECHO_C" >&6
23692
23693
23694 # Check whether --with-x or --without-x was given.
23695 if test "${with_x+set}" = set; then
23696 withval="$with_x"
23697
23698 fi;
23699 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23700 if test "x$with_x" = xno; then
23701 # The user explicitly disabled X.
23702 have_x=disabled
23703 else
23704 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23705 # Both variables are already set.
23706 have_x=yes
23707 else
23708 if test "${ac_cv_have_x+set}" = set; then
23709 echo $ECHO_N "(cached) $ECHO_C" >&6
23710 else
23711 # One or both of the vars are not set, and there is no cached value.
23712 ac_x_includes=no ac_x_libraries=no
23713 rm -fr conftest.dir
23714 if mkdir conftest.dir; then
23715 cd conftest.dir
23716 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23717 cat >Imakefile <<'_ACEOF'
23718 acfindx:
23719 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23720 _ACEOF
23721 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23722 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23723 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23724 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23725 for ac_extension in a so sl; do
23726 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23727 test -f $ac_im_libdir/libX11.$ac_extension; then
23728 ac_im_usrlibdir=$ac_im_libdir; break
23729 fi
23730 done
23731 # Screen out bogus values from the imake configuration. They are
23732 # bogus both because they are the default anyway, and because
23733 # using them would break gcc on systems where it needs fixed includes.
23734 case $ac_im_incroot in
23735 /usr/include) ;;
23736 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23737 esac
23738 case $ac_im_usrlibdir in
23739 /usr/lib | /lib) ;;
23740 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23741 esac
23742 fi
23743 cd ..
23744 rm -fr conftest.dir
23745 fi
23746
23747 # Standard set of common directories for X headers.
23748 # Check X11 before X11Rn because it is often a symlink to the current release.
23749 ac_x_header_dirs='
23750 /usr/X11/include
23751 /usr/X11R6/include
23752 /usr/X11R5/include
23753 /usr/X11R4/include
23754
23755 /usr/include/X11
23756 /usr/include/X11R6
23757 /usr/include/X11R5
23758 /usr/include/X11R4
23759
23760 /usr/local/X11/include
23761 /usr/local/X11R6/include
23762 /usr/local/X11R5/include
23763 /usr/local/X11R4/include
23764
23765 /usr/local/include/X11
23766 /usr/local/include/X11R6
23767 /usr/local/include/X11R5
23768 /usr/local/include/X11R4
23769
23770 /usr/X386/include
23771 /usr/x386/include
23772 /usr/XFree86/include/X11
23773
23774 /usr/include
23775 /usr/local/include
23776 /usr/unsupported/include
23777 /usr/athena/include
23778 /usr/local/x11r5/include
23779 /usr/lpp/Xamples/include
23780
23781 /usr/openwin/include
23782 /usr/openwin/share/include'
23783
23784 if test "$ac_x_includes" = no; then
23785 # Guess where to find include files, by looking for Intrinsic.h.
23786 # First, try using that file with no special directory specified.
23787 cat >conftest.$ac_ext <<_ACEOF
23788 /* confdefs.h. */
23789 _ACEOF
23790 cat confdefs.h >>conftest.$ac_ext
23791 cat >>conftest.$ac_ext <<_ACEOF
23792 /* end confdefs.h. */
23793 #include <X11/Intrinsic.h>
23794 _ACEOF
23795 if { (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
23809 else
23810 ac_cpp_err=yes
23811 fi
23812 if test -z "$ac_cpp_err"; then
23813 # We can compile using X headers with no special include directory.
23814 ac_x_includes=
23815 else
23816 echo "$as_me: failed program was:" >&5
23817 sed 's/^/| /' conftest.$ac_ext >&5
23818
23819 for ac_dir in $ac_x_header_dirs; do
23820 if test -r "$ac_dir/X11/Intrinsic.h"; then
23821 ac_x_includes=$ac_dir
23822 break
23823 fi
23824 done
23825 fi
23826 rm -f conftest.err conftest.$ac_ext
23827 fi # $ac_x_includes = no
23828
23829 if test "$ac_x_libraries" = no; then
23830 # Check for the libraries.
23831 # See if we find them without any special options.
23832 # Don't add to $LIBS permanently.
23833 ac_save_LIBS=$LIBS
23834 LIBS="-lXt $LIBS"
23835 cat >conftest.$ac_ext <<_ACEOF
23836 /* confdefs.h. */
23837 _ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h. */
23841 #include <X11/Intrinsic.h>
23842 int
23843 main ()
23844 {
23845 XtMalloc (0)
23846 ;
23847 return 0;
23848 }
23849 _ACEOF
23850 rm -f conftest.$ac_objext conftest$ac_exeext
23851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23852 (eval $ac_link) 2>conftest.er1
23853 ac_status=$?
23854 grep -v '^ *+' conftest.er1 >conftest.err
23855 rm -f conftest.er1
23856 cat conftest.err >&5
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); } &&
23859 { ac_try='test -z "$ac_c_werror_flag"
23860 || test ! -s conftest.err'
23861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23862 (eval $ac_try) 2>&5
23863 ac_status=$?
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); }; } &&
23866 { ac_try='test -s conftest$ac_exeext'
23867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868 (eval $ac_try) 2>&5
23869 ac_status=$?
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); }; }; then
23872 LIBS=$ac_save_LIBS
23873 # We can link X programs with no special library path.
23874 ac_x_libraries=
23875 else
23876 echo "$as_me: failed program was:" >&5
23877 sed 's/^/| /' conftest.$ac_ext >&5
23878
23879 LIBS=$ac_save_LIBS
23880 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23881 do
23882 # Don't even attempt the hair of trying to link an X program!
23883 for ac_extension in a so sl; do
23884 if test -r $ac_dir/libXt.$ac_extension; then
23885 ac_x_libraries=$ac_dir
23886 break 2
23887 fi
23888 done
23889 done
23890 fi
23891 rm -f conftest.err conftest.$ac_objext \
23892 conftest$ac_exeext conftest.$ac_ext
23893 fi # $ac_x_libraries = no
23894
23895 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23896 # Didn't find X anywhere. Cache the known absence of X.
23897 ac_cv_have_x="have_x=no"
23898 else
23899 # Record where we found X for the cache.
23900 ac_cv_have_x="have_x=yes \
23901 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23902 fi
23903 fi
23904
23905 fi
23906 eval "$ac_cv_have_x"
23907 fi # $with_x != no
23908
23909 if test "$have_x" != yes; then
23910 echo "$as_me:$LINENO: result: $have_x" >&5
23911 echo "${ECHO_T}$have_x" >&6
23912 no_x=yes
23913 else
23914 # If each of the values was on the command line, it overrides each guess.
23915 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23916 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23917 # Update the cache value to reflect the command line values.
23918 ac_cv_have_x="have_x=yes \
23919 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23920 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23921 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23922 fi
23923
23924
23925 # Check whether we should enable the TUI, but only do so if we really
23926 # can.
23927 if test x"$enable_tui" = xyes; then
23928 if test -d $srcdir/tui; then
23929 if test "$ac_cv_search_waddstr" != no; then
23930 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
23931 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
23932 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
23933 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
23934 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
23935 CONFIG_ALL="${CONFIG_ALL} all-tui"
23936 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
23937 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
23938 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
23939 else
23940 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
23941 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
23942 fi
23943 fi
23944 fi
23945
23946 # Unlike the sim directory, whether a simulator is linked is controlled by
23947 # presence of a gdb_sim definition in the target configure.tgt entry.
23948 # This code just checks for a few cases where we'd like to ignore those
23949 # definitions, even when they're present in the '.mt' file. These cases
23950 # are when --disable-sim is specified, or if the simulator directory is
23951 # not part of the source tree.
23952 #
23953 # Check whether --enable-sim or --disable-sim was given.
23954 if test "${enable_sim+set}" = set; then
23955 enableval="$enable_sim"
23956 echo "enable_sim = $enable_sim";
23957 echo "enableval = ${enableval}";
23958 case "${enableval}" in
23959 yes) ignore_sim=false ;;
23960 no) ignore_sim=true ;;
23961 *) ignore_sim=false ;;
23962 esac
23963 else
23964 ignore_sim=false
23965 fi;
23966
23967 if test ! -d "${srcdir}/../sim"; then
23968 ignore_sim=true
23969 fi
23970
23971 SIM=
23972 SIM_OBS=
23973 if test "${ignore_sim}" = "false"; then
23974 if test x"${gdb_sim}" != x ; then
23975 SIM="${gdb_sim}"
23976 SIM_OBS="remote-sim.o"
23977
23978 cat >>confdefs.h <<\_ACEOF
23979 #define WITH_SIM 1
23980 _ACEOF
23981
23982 fi
23983 fi
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998 # List of host floatformats.
23999
24000 cat >>confdefs.h <<_ACEOF
24001 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
24002 _ACEOF
24003
24004
24005 cat >>confdefs.h <<_ACEOF
24006 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
24007 _ACEOF
24008
24009
24010 cat >>confdefs.h <<_ACEOF
24011 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
24012 _ACEOF
24013
24014
24015 # target_subdir is used by the testsuite to find the target libraries.
24016 target_subdir=
24017 if test "${host}" != "${target}"; then
24018 target_subdir="${target_alias}/"
24019 fi
24020
24021
24022 frags=
24023 if test "${gdb_native}" = "yes"; then
24024 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
24025 if test ! -f ${host_makefile_frag}; then
24026 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
24027 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
24028 { (exit 1); exit 1; }; }
24029 fi
24030 frags="$frags $host_makefile_frag"
24031 else
24032 host_makefile_frag=/dev/null
24033 fi
24034
24035
24036
24037
24038 if test "${gdb_native}" = "yes"; then
24039 # We pick this up from the host configuration file (.mh) because we
24040 # do not have a native configuration Makefile fragment.
24041 nativefile=`sed -n '
24042 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24043 ' ${host_makefile_frag}`
24044 fi
24045
24046
24047 if test x"${gdb_osabi}" != x ; then
24048
24049 cat >>confdefs.h <<_ACEOF
24050 #define GDB_OSABI_DEFAULT $gdb_osabi
24051 _ACEOF
24052
24053 fi
24054
24055 # Enable multi-ice-gdb-server.
24056 # Check whether --enable-multi-ice or --disable-multi-ice was given.
24057 if test "${enable_multi_ice+set}" = set; then
24058 enableval="$enable_multi_ice"
24059 case $enableval in
24060 yes | no)
24061 ;;
24062 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
24063 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
24064 { (exit 1); exit 1; }; } ;;
24065 esac
24066 fi;
24067 if test "x$enable_multi_ice" = xyes; then
24068
24069
24070 subdirs="$subdirs multi-ice"
24071
24072 fi
24073
24074 # We only build gdbserver automatically in a native configuration.
24075 if test "$gdb_native" = "yes"; then
24076 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
24077 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
24078 if test "x$build_gdbserver" = xyes; then
24079 echo "$as_me:$LINENO: result: yes" >&5
24080 echo "${ECHO_T}yes" >&6
24081
24082
24083 subdirs="$subdirs gdbserver"
24084
24085 else
24086 echo "$as_me:$LINENO: result: no" >&5
24087 echo "${ECHO_T}no" >&6
24088 fi
24089 fi
24090
24091 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
24092 # to an empty version.
24093
24094 files=
24095 links=
24096
24097 rm -f nm.h
24098 nm_h=""
24099 if test "${nativefile}" != ""; then
24100 nm_h=nm.h
24101 case "${nativefile}" in
24102 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
24103 * ) GDB_NM_FILE="${nativefile}"
24104 esac
24105 files="${files} ${GDB_NM_FILE}"
24106 links="${links} nm.h"
24107
24108 cat >>confdefs.h <<_ACEOF
24109 #define GDB_NM_FILE "${GDB_NM_FILE}"
24110 _ACEOF
24111
24112 fi
24113
24114
24115 ac_sources="$files"
24116 ac_dests="$links"
24117 while test -n "$ac_sources"; do
24118 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24119 set $ac_sources; ac_source=$1; shift; ac_sources=$*
24120 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
24121 done
24122 ac_config_links="$ac_config_links $ac_config_links_1"
24123
24124
24125
24126
24127
24128
24129 cat >>confdefs.h <<\_ACEOF
24130 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
24131 _ACEOF
24132
24133
24134
24135
24136
24137 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
24138 if test "${with_libiconv_prefix+set}" = set; then
24139 withval="$with_libiconv_prefix"
24140
24141 for dir in `echo "$withval" | tr : ' '`; do
24142 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
24143 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
24144 done
24145
24146 fi;
24147
24148 echo "$as_me:$LINENO: checking for iconv" >&5
24149 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
24150 if test "${am_cv_func_iconv+set}" = set; then
24151 echo $ECHO_N "(cached) $ECHO_C" >&6
24152 else
24153
24154 am_cv_func_iconv="no, consider installing GNU libiconv"
24155 am_cv_lib_iconv=no
24156 cat >conftest.$ac_ext <<_ACEOF
24157 /* confdefs.h. */
24158 _ACEOF
24159 cat confdefs.h >>conftest.$ac_ext
24160 cat >>conftest.$ac_ext <<_ACEOF
24161 /* end confdefs.h. */
24162 #include <stdlib.h>
24163 #include <iconv.h>
24164 int
24165 main ()
24166 {
24167 iconv_t cd = iconv_open("","");
24168 iconv(cd,NULL,NULL,NULL,NULL);
24169 iconv_close(cd);
24170 ;
24171 return 0;
24172 }
24173 _ACEOF
24174 rm -f conftest.$ac_objext conftest$ac_exeext
24175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24176 (eval $ac_link) 2>conftest.er1
24177 ac_status=$?
24178 grep -v '^ *+' conftest.er1 >conftest.err
24179 rm -f conftest.er1
24180 cat conftest.err >&5
24181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182 (exit $ac_status); } &&
24183 { ac_try='test -z "$ac_c_werror_flag"
24184 || test ! -s conftest.err'
24185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24186 (eval $ac_try) 2>&5
24187 ac_status=$?
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); }; } &&
24190 { ac_try='test -s conftest$ac_exeext'
24191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192 (eval $ac_try) 2>&5
24193 ac_status=$?
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); }; }; then
24196 am_cv_func_iconv=yes
24197 else
24198 echo "$as_me: failed program was:" >&5
24199 sed 's/^/| /' conftest.$ac_ext >&5
24200
24201 fi
24202 rm -f conftest.err conftest.$ac_objext \
24203 conftest$ac_exeext conftest.$ac_ext
24204 if test "$am_cv_func_iconv" != yes; then
24205 am_save_LIBS="$LIBS"
24206 LIBS="$LIBS -liconv"
24207 cat >conftest.$ac_ext <<_ACEOF
24208 /* confdefs.h. */
24209 _ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h. */
24213 #include <stdlib.h>
24214 #include <iconv.h>
24215 int
24216 main ()
24217 {
24218 iconv_t cd = iconv_open("","");
24219 iconv(cd,NULL,NULL,NULL,NULL);
24220 iconv_close(cd);
24221 ;
24222 return 0;
24223 }
24224 _ACEOF
24225 rm -f conftest.$ac_objext conftest$ac_exeext
24226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24227 (eval $ac_link) 2>conftest.er1
24228 ac_status=$?
24229 grep -v '^ *+' conftest.er1 >conftest.err
24230 rm -f conftest.er1
24231 cat conftest.err >&5
24232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 (exit $ac_status); } &&
24234 { ac_try='test -z "$ac_c_werror_flag"
24235 || test ! -s conftest.err'
24236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24237 (eval $ac_try) 2>&5
24238 ac_status=$?
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); }; } &&
24241 { ac_try='test -s conftest$ac_exeext'
24242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243 (eval $ac_try) 2>&5
24244 ac_status=$?
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); }; }; then
24247 am_cv_lib_iconv=yes
24248 am_cv_func_iconv=yes
24249 else
24250 echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24252
24253 fi
24254 rm -f conftest.err conftest.$ac_objext \
24255 conftest$ac_exeext conftest.$ac_ext
24256 LIBS="$am_save_LIBS"
24257 fi
24258
24259 fi
24260 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
24261 echo "${ECHO_T}$am_cv_func_iconv" >&6
24262 if test "$am_cv_func_iconv" = yes; then
24263
24264 cat >>confdefs.h <<\_ACEOF
24265 #define HAVE_ICONV 1
24266 _ACEOF
24267
24268 echo "$as_me:$LINENO: checking for iconv declaration" >&5
24269 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
24270 if test "${am_cv_proto_iconv+set}" = set; then
24271 echo $ECHO_N "(cached) $ECHO_C" >&6
24272 else
24273
24274 cat >conftest.$ac_ext <<_ACEOF
24275 /* confdefs.h. */
24276 _ACEOF
24277 cat confdefs.h >>conftest.$ac_ext
24278 cat >>conftest.$ac_ext <<_ACEOF
24279 /* end confdefs.h. */
24280
24281 #include <stdlib.h>
24282 #include <iconv.h>
24283 extern
24284 #ifdef __cplusplus
24285 "C"
24286 #endif
24287 #if defined(__STDC__) || defined(__cplusplus)
24288 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
24289 #else
24290 size_t iconv();
24291 #endif
24292
24293 int
24294 main ()
24295 {
24296
24297 ;
24298 return 0;
24299 }
24300 _ACEOF
24301 rm -f conftest.$ac_objext
24302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24303 (eval $ac_compile) 2>conftest.er1
24304 ac_status=$?
24305 grep -v '^ *+' conftest.er1 >conftest.err
24306 rm -f conftest.er1
24307 cat conftest.err >&5
24308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309 (exit $ac_status); } &&
24310 { ac_try='test -z "$ac_c_werror_flag"
24311 || test ! -s conftest.err'
24312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24313 (eval $ac_try) 2>&5
24314 ac_status=$?
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); }; } &&
24317 { ac_try='test -s conftest.$ac_objext'
24318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24319 (eval $ac_try) 2>&5
24320 ac_status=$?
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); }; }; then
24323 am_cv_proto_iconv_arg1=""
24324 else
24325 echo "$as_me: failed program was:" >&5
24326 sed 's/^/| /' conftest.$ac_ext >&5
24327
24328 am_cv_proto_iconv_arg1="const"
24329 fi
24330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24331 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);"
24332 fi
24333
24334 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
24335 echo "$as_me:$LINENO: result: ${ac_t:-
24336 }$am_cv_proto_iconv" >&5
24337 echo "${ECHO_T}${ac_t:-
24338 }$am_cv_proto_iconv" >&6
24339
24340 cat >>confdefs.h <<_ACEOF
24341 #define ICONV_CONST $am_cv_proto_iconv_arg1
24342 _ACEOF
24343
24344 fi
24345 LIBICONV=
24346 if test "$am_cv_lib_iconv" = yes; then
24347 LIBICONV="-liconv"
24348 fi
24349
24350
24351
24352 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
24353 ac_config_commands="$ac_config_commands default"
24354 cat >confcache <<\_ACEOF
24355 # This file is a shell script that caches the results of configure
24356 # tests run on this system so they can be shared between configure
24357 # scripts and configure runs, see configure's option --config-cache.
24358 # It is not useful on other systems. If it contains results you don't
24359 # want to keep, you may remove or edit it.
24360 #
24361 # config.status only pays attention to the cache file if you give it
24362 # the --recheck option to rerun configure.
24363 #
24364 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24365 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24366 # following values.
24367
24368 _ACEOF
24369
24370 # The following way of writing the cache mishandles newlines in values,
24371 # but we know of no workaround that is simple, portable, and efficient.
24372 # So, don't put newlines in cache variables' values.
24373 # Ultrix sh set writes to stderr and can't be redirected directly,
24374 # and sets the high bit in the cache file unless we assign to the vars.
24375 {
24376 (set) 2>&1 |
24377 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24378 *ac_space=\ *)
24379 # `set' does not quote correctly, so add quotes (double-quote
24380 # substitution turns \\\\ into \\, and sed turns \\ into \).
24381 sed -n \
24382 "s/'/'\\\\''/g;
24383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24384 ;;
24385 *)
24386 # `set' quotes correctly as required by POSIX, so do not add quotes.
24387 sed -n \
24388 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24389 ;;
24390 esac;
24391 } |
24392 sed '
24393 t clear
24394 : clear
24395 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24396 t end
24397 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24398 : end' >>confcache
24399 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24400 if test -w $cache_file; then
24401 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24402 cat confcache >$cache_file
24403 else
24404 echo "not updating unwritable cache $cache_file"
24405 fi
24406 fi
24407 rm -f confcache
24408
24409 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24410 # Let make expand exec_prefix.
24411 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24412
24413 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24414 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24415 # trailing colons and then remove the whole line if VPATH becomes empty
24416 # (actually we leave an empty line to preserve line numbers).
24417 if test "x$srcdir" = x.; then
24418 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24419 s/:*\$(srcdir):*/:/;
24420 s/:*\${srcdir}:*/:/;
24421 s/:*@srcdir@:*/:/;
24422 s/^\([^=]*=[ ]*\):*/\1/;
24423 s/:*$//;
24424 s/^[^=]*=[ ]*$//;
24425 }'
24426 fi
24427
24428 DEFS=-DHAVE_CONFIG_H
24429
24430 ac_libobjs=
24431 ac_ltlibobjs=
24432 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24433 # 1. Remove the extension, and $U if already installed.
24434 ac_i=`echo "$ac_i" |
24435 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24436 # 2. Add them.
24437 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24438 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24439 done
24440 LIBOBJS=$ac_libobjs
24441
24442 LTLIBOBJS=$ac_ltlibobjs
24443
24444
24445 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24446 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24447 Usually this means the macro was only invoked conditionally." >&5
24448 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24449 Usually this means the macro was only invoked conditionally." >&2;}
24450 { (exit 1); exit 1; }; }
24451 fi
24452
24453 : ${CONFIG_STATUS=./config.status}
24454 ac_clean_files_save=$ac_clean_files
24455 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24456 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24457 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24458 cat >$CONFIG_STATUS <<_ACEOF
24459 #! $SHELL
24460 # Generated by $as_me.
24461 # Run this file to recreate the current configuration.
24462 # Compiler output produced by configure, useful for debugging
24463 # configure, is in config.log if it exists.
24464
24465 debug=false
24466 ac_cs_recheck=false
24467 ac_cs_silent=false
24468 SHELL=\${CONFIG_SHELL-$SHELL}
24469 _ACEOF
24470
24471 cat >>$CONFIG_STATUS <<\_ACEOF
24472 ## --------------------- ##
24473 ## M4sh Initialization. ##
24474 ## --------------------- ##
24475
24476 # Be Bourne compatible
24477 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24478 emulate sh
24479 NULLCMD=:
24480 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24481 # is contrary to our usage. Disable this feature.
24482 alias -g '${1+"$@"}'='"$@"'
24483 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24484 set -o posix
24485 fi
24486 DUALCASE=1; export DUALCASE # for MKS sh
24487
24488 # Support unset when possible.
24489 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24490 as_unset=unset
24491 else
24492 as_unset=false
24493 fi
24494
24495
24496 # Work around bugs in pre-3.0 UWIN ksh.
24497 $as_unset ENV MAIL MAILPATH
24498 PS1='$ '
24499 PS2='> '
24500 PS4='+ '
24501
24502 # NLS nuisances.
24503 for as_var in \
24504 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24505 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24506 LC_TELEPHONE LC_TIME
24507 do
24508 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24509 eval $as_var=C; export $as_var
24510 else
24511 $as_unset $as_var
24512 fi
24513 done
24514
24515 # Required to use basename.
24516 if expr a : '\(a\)' >/dev/null 2>&1; then
24517 as_expr=expr
24518 else
24519 as_expr=false
24520 fi
24521
24522 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24523 as_basename=basename
24524 else
24525 as_basename=false
24526 fi
24527
24528
24529 # Name of the executable.
24530 as_me=`$as_basename "$0" ||
24531 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24532 X"$0" : 'X\(//\)$' \| \
24533 X"$0" : 'X\(/\)$' \| \
24534 . : '\(.\)' 2>/dev/null ||
24535 echo X/"$0" |
24536 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24537 /^X\/\(\/\/\)$/{ s//\1/; q; }
24538 /^X\/\(\/\).*/{ s//\1/; q; }
24539 s/.*/./; q'`
24540
24541
24542 # PATH needs CR, and LINENO needs CR and PATH.
24543 # Avoid depending upon Character Ranges.
24544 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24545 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24546 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24547 as_cr_digits='0123456789'
24548 as_cr_alnum=$as_cr_Letters$as_cr_digits
24549
24550 # The user is always right.
24551 if test "${PATH_SEPARATOR+set}" != set; then
24552 echo "#! /bin/sh" >conf$$.sh
24553 echo "exit 0" >>conf$$.sh
24554 chmod +x conf$$.sh
24555 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24556 PATH_SEPARATOR=';'
24557 else
24558 PATH_SEPARATOR=:
24559 fi
24560 rm -f conf$$.sh
24561 fi
24562
24563
24564 as_lineno_1=$LINENO
24565 as_lineno_2=$LINENO
24566 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24567 test "x$as_lineno_1" != "x$as_lineno_2" &&
24568 test "x$as_lineno_3" = "x$as_lineno_2" || {
24569 # Find who we are. Look in the path if we contain no path at all
24570 # relative or not.
24571 case $0 in
24572 *[\\/]* ) as_myself=$0 ;;
24573 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24574 for as_dir in $PATH
24575 do
24576 IFS=$as_save_IFS
24577 test -z "$as_dir" && as_dir=.
24578 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24579 done
24580
24581 ;;
24582 esac
24583 # We did not find ourselves, most probably we were run as `sh COMMAND'
24584 # in which case we are not to be found in the path.
24585 if test "x$as_myself" = x; then
24586 as_myself=$0
24587 fi
24588 if test ! -f "$as_myself"; then
24589 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24590 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24591 { (exit 1); exit 1; }; }
24592 fi
24593 case $CONFIG_SHELL in
24594 '')
24595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24596 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24597 do
24598 IFS=$as_save_IFS
24599 test -z "$as_dir" && as_dir=.
24600 for as_base in sh bash ksh sh5; do
24601 case $as_dir in
24602 /*)
24603 if ("$as_dir/$as_base" -c '
24604 as_lineno_1=$LINENO
24605 as_lineno_2=$LINENO
24606 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24607 test "x$as_lineno_1" != "x$as_lineno_2" &&
24608 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24609 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24610 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24611 CONFIG_SHELL=$as_dir/$as_base
24612 export CONFIG_SHELL
24613 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24614 fi;;
24615 esac
24616 done
24617 done
24618 ;;
24619 esac
24620
24621 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24622 # uniformly replaced by the line number. The first 'sed' inserts a
24623 # line-number line before each line; the second 'sed' does the real
24624 # work. The second script uses 'N' to pair each line-number line
24625 # with the numbered line, and appends trailing '-' during
24626 # substitution so that $LINENO is not a special case at line end.
24627 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24628 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24629 sed '=' <$as_myself |
24630 sed '
24631 N
24632 s,$,-,
24633 : loop
24634 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24635 t loop
24636 s,-$,,
24637 s,^['$as_cr_digits']*\n,,
24638 ' >$as_me.lineno &&
24639 chmod +x $as_me.lineno ||
24640 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24641 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24642 { (exit 1); exit 1; }; }
24643
24644 # Don't try to exec as it changes $[0], causing all sort of problems
24645 # (the dirname of $[0] is not the place where we might find the
24646 # original and so on. Autoconf is especially sensible to this).
24647 . ./$as_me.lineno
24648 # Exit status is that of the last command.
24649 exit
24650 }
24651
24652
24653 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24654 *c*,-n*) ECHO_N= ECHO_C='
24655 ' ECHO_T=' ' ;;
24656 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24657 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24658 esac
24659
24660 if expr a : '\(a\)' >/dev/null 2>&1; then
24661 as_expr=expr
24662 else
24663 as_expr=false
24664 fi
24665
24666 rm -f conf$$ conf$$.exe conf$$.file
24667 echo >conf$$.file
24668 if ln -s conf$$.file conf$$ 2>/dev/null; then
24669 # We could just check for DJGPP; but this test a) works b) is more generic
24670 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24671 if test -f conf$$.exe; then
24672 # Don't use ln at all; we don't have any links
24673 as_ln_s='cp -p'
24674 else
24675 as_ln_s='ln -s'
24676 fi
24677 elif ln conf$$.file conf$$ 2>/dev/null; then
24678 as_ln_s=ln
24679 else
24680 as_ln_s='cp -p'
24681 fi
24682 rm -f conf$$ conf$$.exe conf$$.file
24683
24684 if mkdir -p . 2>/dev/null; then
24685 as_mkdir_p=:
24686 else
24687 test -d ./-p && rmdir ./-p
24688 as_mkdir_p=false
24689 fi
24690
24691 as_executable_p="test -f"
24692
24693 # Sed expression to map a string onto a valid CPP name.
24694 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24695
24696 # Sed expression to map a string onto a valid variable name.
24697 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24698
24699
24700 # IFS
24701 # We need space, tab and new line, in precisely that order.
24702 as_nl='
24703 '
24704 IFS=" $as_nl"
24705
24706 # CDPATH.
24707 $as_unset CDPATH
24708
24709 exec 6>&1
24710
24711 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24712 # report actual input values of CONFIG_FILES etc. instead of their
24713 # values after options handling. Logging --version etc. is OK.
24714 exec 5>>config.log
24715 {
24716 echo
24717 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24718 ## Running $as_me. ##
24719 _ASBOX
24720 } >&5
24721 cat >&5 <<_CSEOF
24722
24723 This file was extended by $as_me, which was
24724 generated by GNU Autoconf 2.59. Invocation command line was
24725
24726 CONFIG_FILES = $CONFIG_FILES
24727 CONFIG_HEADERS = $CONFIG_HEADERS
24728 CONFIG_LINKS = $CONFIG_LINKS
24729 CONFIG_COMMANDS = $CONFIG_COMMANDS
24730 $ $0 $@
24731
24732 _CSEOF
24733 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24734 echo >&5
24735 _ACEOF
24736
24737 # Files that config.status was made for.
24738 if test -n "$ac_config_files"; then
24739 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24740 fi
24741
24742 if test -n "$ac_config_headers"; then
24743 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24744 fi
24745
24746 if test -n "$ac_config_links"; then
24747 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24748 fi
24749
24750 if test -n "$ac_config_commands"; then
24751 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24752 fi
24753
24754 cat >>$CONFIG_STATUS <<\_ACEOF
24755
24756 ac_cs_usage="\
24757 \`$as_me' instantiates files from templates according to the
24758 current configuration.
24759
24760 Usage: $0 [OPTIONS] [FILE]...
24761
24762 -h, --help print this help, then exit
24763 -V, --version print version number, then exit
24764 -q, --quiet do not print progress messages
24765 -d, --debug don't remove temporary files
24766 --recheck update $as_me by reconfiguring in the same conditions
24767 --file=FILE[:TEMPLATE]
24768 instantiate the configuration file FILE
24769 --header=FILE[:TEMPLATE]
24770 instantiate the configuration header FILE
24771
24772 Configuration files:
24773 $config_files
24774
24775 Configuration headers:
24776 $config_headers
24777
24778 Configuration links:
24779 $config_links
24780
24781 Configuration commands:
24782 $config_commands
24783
24784 Report bugs to <bug-autoconf@gnu.org>."
24785 _ACEOF
24786
24787 cat >>$CONFIG_STATUS <<_ACEOF
24788 ac_cs_version="\\
24789 config.status
24790 configured by $0, generated by GNU Autoconf 2.59,
24791 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24792
24793 Copyright (C) 2003 Free Software Foundation, Inc.
24794 This config.status script is free software; the Free Software Foundation
24795 gives unlimited permission to copy, distribute and modify it."
24796 srcdir=$srcdir
24797 INSTALL="$INSTALL"
24798 _ACEOF
24799
24800 cat >>$CONFIG_STATUS <<\_ACEOF
24801 # If no file are specified by the user, then we need to provide default
24802 # value. By we need to know if files were specified by the user.
24803 ac_need_defaults=:
24804 while test $# != 0
24805 do
24806 case $1 in
24807 --*=*)
24808 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24809 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24810 ac_shift=:
24811 ;;
24812 -*)
24813 ac_option=$1
24814 ac_optarg=$2
24815 ac_shift=shift
24816 ;;
24817 *) # This is not an option, so the user has probably given explicit
24818 # arguments.
24819 ac_option=$1
24820 ac_need_defaults=false;;
24821 esac
24822
24823 case $ac_option in
24824 # Handling of the options.
24825 _ACEOF
24826 cat >>$CONFIG_STATUS <<\_ACEOF
24827 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24828 ac_cs_recheck=: ;;
24829 --version | --vers* | -V )
24830 echo "$ac_cs_version"; exit 0 ;;
24831 --he | --h)
24832 # Conflict between --help and --header
24833 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24834 Try \`$0 --help' for more information." >&5
24835 echo "$as_me: error: ambiguous option: $1
24836 Try \`$0 --help' for more information." >&2;}
24837 { (exit 1); exit 1; }; };;
24838 --help | --hel | -h )
24839 echo "$ac_cs_usage"; exit 0 ;;
24840 --debug | --d* | -d )
24841 debug=: ;;
24842 --file | --fil | --fi | --f )
24843 $ac_shift
24844 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24845 ac_need_defaults=false;;
24846 --header | --heade | --head | --hea )
24847 $ac_shift
24848 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24849 ac_need_defaults=false;;
24850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24851 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24852 ac_cs_silent=: ;;
24853
24854 # This is an error.
24855 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24856 Try \`$0 --help' for more information." >&5
24857 echo "$as_me: error: unrecognized option: $1
24858 Try \`$0 --help' for more information." >&2;}
24859 { (exit 1); exit 1; }; } ;;
24860
24861 *) ac_config_targets="$ac_config_targets $1" ;;
24862
24863 esac
24864 shift
24865 done
24866
24867 ac_configure_extra_args=
24868
24869 if $ac_cs_silent; then
24870 exec 6>/dev/null
24871 ac_configure_extra_args="$ac_configure_extra_args --silent"
24872 fi
24873
24874 _ACEOF
24875 cat >>$CONFIG_STATUS <<_ACEOF
24876 if \$ac_cs_recheck; then
24877 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24878 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24879 fi
24880
24881 _ACEOF
24882
24883 cat >>$CONFIG_STATUS <<_ACEOF
24884 #
24885 # INIT-COMMANDS section.
24886 #
24887
24888
24889 GCC="$GCC"
24890 CC="$CC"
24891 acx_cv_header_stdint="$acx_cv_header_stdint"
24892 acx_cv_type_int8_t="$acx_cv_type_int8_t"
24893 acx_cv_type_int16_t="$acx_cv_type_int16_t"
24894 acx_cv_type_int32_t="$acx_cv_type_int32_t"
24895 acx_cv_type_int64_t="$acx_cv_type_int64_t"
24896 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
24897 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
24898 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
24899 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
24900 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
24901 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
24902 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24903 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24904 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24905
24906
24907 gdb_host_cpu=$gdb_host_cpu
24908 nativefile=$nativefile
24909
24910
24911 _ACEOF
24912
24913
24914
24915 cat >>$CONFIG_STATUS <<\_ACEOF
24916 for ac_config_target in $ac_config_targets
24917 do
24918 case "$ac_config_target" in
24919 # Handling of arguments.
24920 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24921 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24922 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24923 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24924 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24925 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
24926 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24927 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24928 { (exit 1); exit 1; }; };;
24929 esac
24930 done
24931
24932 # If the user did not use the arguments to specify the items to instantiate,
24933 # then the envvar interface is used. Set only those that are not.
24934 # We use the long form for the default assignment because of an extremely
24935 # bizarre bug on SunOS 4.1.3.
24936 if $ac_need_defaults; then
24937 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24938 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24939 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24940 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24941 fi
24942
24943 # Have a temporary directory for convenience. Make it in the build tree
24944 # simply because there is no reason to put it here, and in addition,
24945 # creating and moving files from /tmp can sometimes cause problems.
24946 # Create a temporary directory, and hook for its removal unless debugging.
24947 $debug ||
24948 {
24949 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24950 trap '{ (exit 1); exit 1; }' 1 2 13 15
24951 }
24952
24953 # Create a (secure) tmp directory for tmp files.
24954
24955 {
24956 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24957 test -n "$tmp" && test -d "$tmp"
24958 } ||
24959 {
24960 tmp=./confstat$$-$RANDOM
24961 (umask 077 && mkdir $tmp)
24962 } ||
24963 {
24964 echo "$me: cannot create a temporary directory in ." >&2
24965 { (exit 1); exit 1; }
24966 }
24967
24968 _ACEOF
24969
24970 cat >>$CONFIG_STATUS <<_ACEOF
24971
24972 #
24973 # CONFIG_FILES section.
24974 #
24975
24976 # No need to generate the scripts if there are no CONFIG_FILES.
24977 # This happens for instance when ./config.status config.h
24978 if test -n "\$CONFIG_FILES"; then
24979 # Protect against being on the right side of a sed subst in config.status.
24980 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24981 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24982 s,@SHELL@,$SHELL,;t t
24983 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24984 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24985 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24986 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24987 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24988 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24989 s,@exec_prefix@,$exec_prefix,;t t
24990 s,@prefix@,$prefix,;t t
24991 s,@program_transform_name@,$program_transform_name,;t t
24992 s,@bindir@,$bindir,;t t
24993 s,@sbindir@,$sbindir,;t t
24994 s,@libexecdir@,$libexecdir,;t t
24995 s,@datadir@,$datadir,;t t
24996 s,@sysconfdir@,$sysconfdir,;t t
24997 s,@sharedstatedir@,$sharedstatedir,;t t
24998 s,@localstatedir@,$localstatedir,;t t
24999 s,@libdir@,$libdir,;t t
25000 s,@includedir@,$includedir,;t t
25001 s,@oldincludedir@,$oldincludedir,;t t
25002 s,@infodir@,$infodir,;t t
25003 s,@mandir@,$mandir,;t t
25004 s,@build_alias@,$build_alias,;t t
25005 s,@host_alias@,$host_alias,;t t
25006 s,@target_alias@,$target_alias,;t t
25007 s,@DEFS@,$DEFS,;t t
25008 s,@ECHO_C@,$ECHO_C,;t t
25009 s,@ECHO_N@,$ECHO_N,;t t
25010 s,@ECHO_T@,$ECHO_T,;t t
25011 s,@LIBS@,$LIBS,;t t
25012 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
25013 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
25014 s,@MAINT@,$MAINT,;t t
25015 s,@CC@,$CC,;t t
25016 s,@CFLAGS@,$CFLAGS,;t t
25017 s,@LDFLAGS@,$LDFLAGS,;t t
25018 s,@CPPFLAGS@,$CPPFLAGS,;t t
25019 s,@ac_ct_CC@,$ac_ct_CC,;t t
25020 s,@EXEEXT@,$EXEEXT,;t t
25021 s,@OBJEXT@,$OBJEXT,;t t
25022 s,@CPP@,$CPP,;t t
25023 s,@EGREP@,$EGREP,;t t
25024 s,@build@,$build,;t t
25025 s,@build_cpu@,$build_cpu,;t t
25026 s,@build_vendor@,$build_vendor,;t t
25027 s,@build_os@,$build_os,;t t
25028 s,@host@,$host,;t t
25029 s,@host_cpu@,$host_cpu,;t t
25030 s,@host_vendor@,$host_vendor,;t t
25031 s,@host_os@,$host_os,;t t
25032 s,@target@,$target,;t t
25033 s,@target_cpu@,$target_cpu,;t t
25034 s,@target_vendor@,$target_vendor,;t t
25035 s,@target_os@,$target_os,;t t
25036 s,@USE_NLS@,$USE_NLS,;t t
25037 s,@LIBINTL@,$LIBINTL,;t t
25038 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
25039 s,@INCINTL@,$INCINTL,;t t
25040 s,@XGETTEXT@,$XGETTEXT,;t t
25041 s,@GMSGFMT@,$GMSGFMT,;t t
25042 s,@POSUB@,$POSUB,;t t
25043 s,@CATALOGS@,$CATALOGS,;t t
25044 s,@DATADIRNAME@,$DATADIRNAME,;t t
25045 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25046 s,@GENCAT@,$GENCAT,;t t
25047 s,@CATOBJEXT@,$CATOBJEXT,;t t
25048 s,@localedir@,$localedir,;t t
25049 s,@PACKAGE@,$PACKAGE,;t t
25050 s,@subdirs@,$subdirs,;t t
25051 s,@TARGET_OBS@,$TARGET_OBS,;t t
25052 s,@AWK@,$AWK,;t t
25053 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25054 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25055 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25056 s,@LN_S@,$LN_S,;t t
25057 s,@RANLIB@,$RANLIB,;t t
25058 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25059 s,@YACC@,$YACC,;t t
25060 s,@AR@,$AR,;t t
25061 s,@ac_ct_AR@,$ac_ct_AR,;t t
25062 s,@DLLTOOL@,$DLLTOOL,;t t
25063 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
25064 s,@WINDRES@,$WINDRES,;t t
25065 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
25066 s,@MIG@,$MIG,;t t
25067 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
25068 s,@READLINE@,$READLINE,;t t
25069 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
25070 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
25071 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
25072 s,@LIBEXPAT@,$LIBEXPAT,;t t
25073 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
25074 s,@ALLOCA@,$ALLOCA,;t t
25075 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
25076 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25077 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25078 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
25079 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
25080 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
25081 s,@WIN32LIBS@,$WIN32LIBS,;t t
25082 s,@LIBGUI@,$LIBGUI,;t t
25083 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
25084 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
25085 s,@TCL_VERSION@,$TCL_VERSION,;t t
25086 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
25087 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
25088 s,@TCL_CC@,$TCL_CC,;t t
25089 s,@TCL_DEFS@,$TCL_DEFS,;t t
25090 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
25091 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
25092 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
25093 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
25094 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
25095 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
25096 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
25097 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
25098 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
25099 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
25100 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
25101 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
25102 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
25103 s,@TK_VERSION@,$TK_VERSION,;t t
25104 s,@TK_DEFS@,$TK_DEFS,;t t
25105 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
25106 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
25107 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
25108 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
25109 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
25110 s,@TCLHDIR@,$TCLHDIR,;t t
25111 s,@TKHDIR@,$TKHDIR,;t t
25112 s,@ITCLHDIR@,$ITCLHDIR,;t t
25113 s,@ITKHDIR@,$ITKHDIR,;t t
25114 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
25115 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
25116 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
25117 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
25118 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
25119 s,@ITK_VERSION@,$ITK_VERSION,;t t
25120 s,@ITK_DEFS@,$ITK_DEFS,;t t
25121 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
25122 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
25123 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
25124 s,@X_CFLAGS@,$X_CFLAGS,;t t
25125 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
25126 s,@X_LIBS@,$X_LIBS,;t t
25127 s,@TCL_DEPS@,$TCL_DEPS,;t t
25128 s,@TK_DEPS@,$TK_DEPS,;t t
25129 s,@ITCLLIB@,$ITCLLIB,;t t
25130 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
25131 s,@ITKLIB@,$ITKLIB,;t t
25132 s,@ITK_DEPS@,$ITK_DEPS,;t t
25133 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
25134 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
25135 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
25136 s,@SIM@,$SIM,;t t
25137 s,@SIM_OBS@,$SIM_OBS,;t t
25138 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
25139 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
25140 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
25141 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
25142 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
25143 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
25144 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
25145 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
25146 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
25147 s,@target_subdir@,$target_subdir,;t t
25148 s,@frags@,$frags,;t t
25149 s,@nm_h@,$nm_h,;t t
25150 s,@LIBICONV@,$LIBICONV,;t t
25151 s,@LIBOBJS@,$LIBOBJS,;t t
25152 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25153 /@host_makefile_frag@/r $host_makefile_frag
25154 s,@host_makefile_frag@,,;t t
25155 CEOF
25156
25157 _ACEOF
25158
25159 cat >>$CONFIG_STATUS <<\_ACEOF
25160 # Split the substitutions into bite-sized pieces for seds with
25161 # small command number limits, like on Digital OSF/1 and HP-UX.
25162 ac_max_sed_lines=48
25163 ac_sed_frag=1 # Number of current file.
25164 ac_beg=1 # First line for current file.
25165 ac_end=$ac_max_sed_lines # Line after last line for current file.
25166 ac_more_lines=:
25167 ac_sed_cmds=
25168 while $ac_more_lines; do
25169 if test $ac_beg -gt 1; then
25170 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25171 else
25172 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25173 fi
25174 if test ! -s $tmp/subs.frag; then
25175 ac_more_lines=false
25176 else
25177 # The purpose of the label and of the branching condition is to
25178 # speed up the sed processing (if there are no `@' at all, there
25179 # is no need to browse any of the substitutions).
25180 # These are the two extra sed commands mentioned above.
25181 (echo ':t
25182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25183 if test -z "$ac_sed_cmds"; then
25184 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25185 else
25186 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25187 fi
25188 ac_sed_frag=`expr $ac_sed_frag + 1`
25189 ac_beg=$ac_end
25190 ac_end=`expr $ac_end + $ac_max_sed_lines`
25191 fi
25192 done
25193 if test -z "$ac_sed_cmds"; then
25194 ac_sed_cmds=cat
25195 fi
25196 fi # test -n "$CONFIG_FILES"
25197
25198 _ACEOF
25199 cat >>$CONFIG_STATUS <<\_ACEOF
25200 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25201 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25202 case $ac_file in
25203 - | *:- | *:-:* ) # input from stdin
25204 cat >$tmp/stdin
25205 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25206 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25207 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25208 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25209 * ) ac_file_in=$ac_file.in ;;
25210 esac
25211
25212 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25213 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25214 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25215 X"$ac_file" : 'X\(//\)[^/]' \| \
25216 X"$ac_file" : 'X\(//\)$' \| \
25217 X"$ac_file" : 'X\(/\)' \| \
25218 . : '\(.\)' 2>/dev/null ||
25219 echo X"$ac_file" |
25220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25222 /^X\(\/\/\)$/{ s//\1/; q; }
25223 /^X\(\/\).*/{ s//\1/; q; }
25224 s/.*/./; q'`
25225 { if $as_mkdir_p; then
25226 mkdir -p "$ac_dir"
25227 else
25228 as_dir="$ac_dir"
25229 as_dirs=
25230 while test ! -d "$as_dir"; do
25231 as_dirs="$as_dir $as_dirs"
25232 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25234 X"$as_dir" : 'X\(//\)[^/]' \| \
25235 X"$as_dir" : 'X\(//\)$' \| \
25236 X"$as_dir" : 'X\(/\)' \| \
25237 . : '\(.\)' 2>/dev/null ||
25238 echo X"$as_dir" |
25239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25240 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25241 /^X\(\/\/\)$/{ s//\1/; q; }
25242 /^X\(\/\).*/{ s//\1/; q; }
25243 s/.*/./; q'`
25244 done
25245 test ! -n "$as_dirs" || mkdir $as_dirs
25246 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25247 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25248 { (exit 1); exit 1; }; }; }
25249
25250 ac_builddir=.
25251
25252 if test "$ac_dir" != .; then
25253 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25254 # A "../" for each directory in $ac_dir_suffix.
25255 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25256 else
25257 ac_dir_suffix= ac_top_builddir=
25258 fi
25259
25260 case $srcdir in
25261 .) # No --srcdir option. We are building in place.
25262 ac_srcdir=.
25263 if test -z "$ac_top_builddir"; then
25264 ac_top_srcdir=.
25265 else
25266 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25267 fi ;;
25268 [\\/]* | ?:[\\/]* ) # Absolute path.
25269 ac_srcdir=$srcdir$ac_dir_suffix;
25270 ac_top_srcdir=$srcdir ;;
25271 *) # Relative path.
25272 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25273 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25274 esac
25275
25276 # Do not use `cd foo && pwd` to compute absolute paths, because
25277 # the directories may not exist.
25278 case `pwd` in
25279 .) ac_abs_builddir="$ac_dir";;
25280 *)
25281 case "$ac_dir" in
25282 .) ac_abs_builddir=`pwd`;;
25283 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25284 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25285 esac;;
25286 esac
25287 case $ac_abs_builddir in
25288 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25289 *)
25290 case ${ac_top_builddir}. in
25291 .) ac_abs_top_builddir=$ac_abs_builddir;;
25292 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25293 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25294 esac;;
25295 esac
25296 case $ac_abs_builddir in
25297 .) ac_abs_srcdir=$ac_srcdir;;
25298 *)
25299 case $ac_srcdir in
25300 .) ac_abs_srcdir=$ac_abs_builddir;;
25301 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25302 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25303 esac;;
25304 esac
25305 case $ac_abs_builddir in
25306 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25307 *)
25308 case $ac_top_srcdir in
25309 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25310 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25311 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25312 esac;;
25313 esac
25314
25315
25316 case $INSTALL in
25317 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25318 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25319 esac
25320
25321 if test x"$ac_file" != x-; then
25322 { echo "$as_me:$LINENO: creating $ac_file" >&5
25323 echo "$as_me: creating $ac_file" >&6;}
25324 rm -f "$ac_file"
25325 fi
25326 # Let's still pretend it is `configure' which instantiates (i.e., don't
25327 # use $as_me), people would be surprised to read:
25328 # /* config.h. Generated by config.status. */
25329 if test x"$ac_file" = x-; then
25330 configure_input=
25331 else
25332 configure_input="$ac_file. "
25333 fi
25334 configure_input=$configure_input"Generated from `echo $ac_file_in |
25335 sed 's,.*/,,'` by configure."
25336
25337 # First look for the input files in the build tree, otherwise in the
25338 # src tree.
25339 ac_file_inputs=`IFS=:
25340 for f in $ac_file_in; do
25341 case $f in
25342 -) echo $tmp/stdin ;;
25343 [\\/$]*)
25344 # Absolute (can't be DOS-style, as IFS=:)
25345 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25346 echo "$as_me: error: cannot find input file: $f" >&2;}
25347 { (exit 1); exit 1; }; }
25348 echo "$f";;
25349 *) # Relative
25350 if test -f "$f"; then
25351 # Build tree
25352 echo "$f"
25353 elif test -f "$srcdir/$f"; then
25354 # Source tree
25355 echo "$srcdir/$f"
25356 else
25357 # /dev/null tree
25358 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25359 echo "$as_me: error: cannot find input file: $f" >&2;}
25360 { (exit 1); exit 1; }; }
25361 fi;;
25362 esac
25363 done` || { (exit 1); exit 1; }
25364 _ACEOF
25365 cat >>$CONFIG_STATUS <<_ACEOF
25366 sed "$ac_vpsub
25367 $extrasub
25368 _ACEOF
25369 cat >>$CONFIG_STATUS <<\_ACEOF
25370 :t
25371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25372 s,@configure_input@,$configure_input,;t t
25373 s,@srcdir@,$ac_srcdir,;t t
25374 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25375 s,@top_srcdir@,$ac_top_srcdir,;t t
25376 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25377 s,@builddir@,$ac_builddir,;t t
25378 s,@abs_builddir@,$ac_abs_builddir,;t t
25379 s,@top_builddir@,$ac_top_builddir,;t t
25380 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25381 s,@INSTALL@,$ac_INSTALL,;t t
25382 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25383 rm -f $tmp/stdin
25384 if test x"$ac_file" != x-; then
25385 mv $tmp/out $ac_file
25386 else
25387 cat $tmp/out
25388 rm -f $tmp/out
25389 fi
25390
25391 done
25392 _ACEOF
25393 cat >>$CONFIG_STATUS <<\_ACEOF
25394
25395 #
25396 # CONFIG_HEADER section.
25397 #
25398
25399 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25400 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25401 #
25402 # ac_d sets the value in "#define NAME VALUE" lines.
25403 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25404 ac_dB='[ ].*$,\1#\2'
25405 ac_dC=' '
25406 ac_dD=',;t'
25407 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25408 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25409 ac_uB='$,\1#\2define\3'
25410 ac_uC=' '
25411 ac_uD=',;t'
25412
25413 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25414 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25415 case $ac_file in
25416 - | *:- | *:-:* ) # input from stdin
25417 cat >$tmp/stdin
25418 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25419 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25420 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25421 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25422 * ) ac_file_in=$ac_file.in ;;
25423 esac
25424
25425 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25426 echo "$as_me: creating $ac_file" >&6;}
25427
25428 # First look for the input files in the build tree, otherwise in the
25429 # src tree.
25430 ac_file_inputs=`IFS=:
25431 for f in $ac_file_in; do
25432 case $f in
25433 -) echo $tmp/stdin ;;
25434 [\\/$]*)
25435 # Absolute (can't be DOS-style, as IFS=:)
25436 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25437 echo "$as_me: error: cannot find input file: $f" >&2;}
25438 { (exit 1); exit 1; }; }
25439 # Do quote $f, to prevent DOS paths from being IFS'd.
25440 echo "$f";;
25441 *) # Relative
25442 if test -f "$f"; then
25443 # Build tree
25444 echo "$f"
25445 elif test -f "$srcdir/$f"; then
25446 # Source tree
25447 echo "$srcdir/$f"
25448 else
25449 # /dev/null tree
25450 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25451 echo "$as_me: error: cannot find input file: $f" >&2;}
25452 { (exit 1); exit 1; }; }
25453 fi;;
25454 esac
25455 done` || { (exit 1); exit 1; }
25456 # Remove the trailing spaces.
25457 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25458
25459 _ACEOF
25460
25461 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25462 # `conftest.undefs', that substitutes the proper values into
25463 # config.h.in to produce config.h. The first handles `#define'
25464 # templates, and the second `#undef' templates.
25465 # And first: Protect against being on the right side of a sed subst in
25466 # config.status. Protect against being in an unquoted here document
25467 # in config.status.
25468 rm -f conftest.defines conftest.undefs
25469 # Using a here document instead of a string reduces the quoting nightmare.
25470 # Putting comments in sed scripts is not portable.
25471 #
25472 # `end' is used to avoid that the second main sed command (meant for
25473 # 0-ary CPP macros) applies to n-ary macro definitions.
25474 # See the Autoconf documentation for `clear'.
25475 cat >confdef2sed.sed <<\_ACEOF
25476 s/[\\&,]/\\&/g
25477 s,[\\$`],\\&,g
25478 t clear
25479 : clear
25480 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25481 t end
25482 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25483 : end
25484 _ACEOF
25485 # If some macros were called several times there might be several times
25486 # the same #defines, which is useless. Nevertheless, we may not want to
25487 # sort them, since we want the *last* AC-DEFINE to be honored.
25488 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25489 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25490 rm -f confdef2sed.sed
25491
25492 # This sed command replaces #undef with comments. This is necessary, for
25493 # example, in the case of _POSIX_SOURCE, which is predefined and required
25494 # on some systems where configure will not decide to define it.
25495 cat >>conftest.undefs <<\_ACEOF
25496 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25497 _ACEOF
25498
25499 # Break up conftest.defines because some shells have a limit on the size
25500 # of here documents, and old seds have small limits too (100 cmds).
25501 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25502 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25503 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25504 echo ' :' >>$CONFIG_STATUS
25505 rm -f conftest.tail
25506 while grep . conftest.defines >/dev/null
25507 do
25508 # Write a limited-size here document to $tmp/defines.sed.
25509 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25510 # Speed up: don't consider the non `#define' lines.
25511 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25512 # Work around the forget-to-reset-the-flag bug.
25513 echo 't clr' >>$CONFIG_STATUS
25514 echo ': clr' >>$CONFIG_STATUS
25515 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25516 echo 'CEOF
25517 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25518 rm -f $tmp/in
25519 mv $tmp/out $tmp/in
25520 ' >>$CONFIG_STATUS
25521 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25522 rm -f conftest.defines
25523 mv conftest.tail conftest.defines
25524 done
25525 rm -f conftest.defines
25526 echo ' fi # grep' >>$CONFIG_STATUS
25527 echo >>$CONFIG_STATUS
25528
25529 # Break up conftest.undefs because some shells have a limit on the size
25530 # of here documents, and old seds have small limits too (100 cmds).
25531 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25532 rm -f conftest.tail
25533 while grep . conftest.undefs >/dev/null
25534 do
25535 # Write a limited-size here document to $tmp/undefs.sed.
25536 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25537 # Speed up: don't consider the non `#undef'
25538 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25539 # Work around the forget-to-reset-the-flag bug.
25540 echo 't clr' >>$CONFIG_STATUS
25541 echo ': clr' >>$CONFIG_STATUS
25542 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25543 echo 'CEOF
25544 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25545 rm -f $tmp/in
25546 mv $tmp/out $tmp/in
25547 ' >>$CONFIG_STATUS
25548 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25549 rm -f conftest.undefs
25550 mv conftest.tail conftest.undefs
25551 done
25552 rm -f conftest.undefs
25553
25554 cat >>$CONFIG_STATUS <<\_ACEOF
25555 # Let's still pretend it is `configure' which instantiates (i.e., don't
25556 # use $as_me), people would be surprised to read:
25557 # /* config.h. Generated by config.status. */
25558 if test x"$ac_file" = x-; then
25559 echo "/* Generated by configure. */" >$tmp/config.h
25560 else
25561 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25562 fi
25563 cat $tmp/in >>$tmp/config.h
25564 rm -f $tmp/in
25565 if test x"$ac_file" != x-; then
25566 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25567 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25568 echo "$as_me: $ac_file is unchanged" >&6;}
25569 else
25570 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25571 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25572 X"$ac_file" : 'X\(//\)[^/]' \| \
25573 X"$ac_file" : 'X\(//\)$' \| \
25574 X"$ac_file" : 'X\(/\)' \| \
25575 . : '\(.\)' 2>/dev/null ||
25576 echo X"$ac_file" |
25577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25579 /^X\(\/\/\)$/{ s//\1/; q; }
25580 /^X\(\/\).*/{ s//\1/; q; }
25581 s/.*/./; q'`
25582 { if $as_mkdir_p; then
25583 mkdir -p "$ac_dir"
25584 else
25585 as_dir="$ac_dir"
25586 as_dirs=
25587 while test ! -d "$as_dir"; do
25588 as_dirs="$as_dir $as_dirs"
25589 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25591 X"$as_dir" : 'X\(//\)[^/]' \| \
25592 X"$as_dir" : 'X\(//\)$' \| \
25593 X"$as_dir" : 'X\(/\)' \| \
25594 . : '\(.\)' 2>/dev/null ||
25595 echo X"$as_dir" |
25596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25598 /^X\(\/\/\)$/{ s//\1/; q; }
25599 /^X\(\/\).*/{ s//\1/; q; }
25600 s/.*/./; q'`
25601 done
25602 test ! -n "$as_dirs" || mkdir $as_dirs
25603 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25604 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25605 { (exit 1); exit 1; }; }; }
25606
25607 rm -f $ac_file
25608 mv $tmp/config.h $ac_file
25609 fi
25610 else
25611 cat $tmp/config.h
25612 rm -f $tmp/config.h
25613 fi
25614 done
25615 _ACEOF
25616 cat >>$CONFIG_STATUS <<\_ACEOF
25617
25618 #
25619 # CONFIG_LINKS section.
25620 #
25621
25622 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25623 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25624 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25625
25626 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25627 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25628
25629 if test ! -r $srcdir/$ac_source; then
25630 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25631 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25632 { (exit 1); exit 1; }; }
25633 fi
25634 rm -f $ac_dest
25635
25636 # Make relative symlinks.
25637 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25638 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25639 X"$ac_dest" : 'X\(//\)[^/]' \| \
25640 X"$ac_dest" : 'X\(//\)$' \| \
25641 X"$ac_dest" : 'X\(/\)' \| \
25642 . : '\(.\)' 2>/dev/null ||
25643 echo X"$ac_dest" |
25644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25645 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25646 /^X\(\/\/\)$/{ s//\1/; q; }
25647 /^X\(\/\).*/{ s//\1/; q; }
25648 s/.*/./; q'`
25649 { if $as_mkdir_p; then
25650 mkdir -p "$ac_dest_dir"
25651 else
25652 as_dir="$ac_dest_dir"
25653 as_dirs=
25654 while test ! -d "$as_dir"; do
25655 as_dirs="$as_dir $as_dirs"
25656 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25658 X"$as_dir" : 'X\(//\)[^/]' \| \
25659 X"$as_dir" : 'X\(//\)$' \| \
25660 X"$as_dir" : 'X\(/\)' \| \
25661 . : '\(.\)' 2>/dev/null ||
25662 echo X"$as_dir" |
25663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25665 /^X\(\/\/\)$/{ s//\1/; q; }
25666 /^X\(\/\).*/{ s//\1/; q; }
25667 s/.*/./; q'`
25668 done
25669 test ! -n "$as_dirs" || mkdir $as_dirs
25670 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25671 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25672 { (exit 1); exit 1; }; }; }
25673
25674 ac_builddir=.
25675
25676 if test "$ac_dest_dir" != .; then
25677 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25678 # A "../" for each directory in $ac_dir_suffix.
25679 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25680 else
25681 ac_dir_suffix= ac_top_builddir=
25682 fi
25683
25684 case $srcdir in
25685 .) # No --srcdir option. We are building in place.
25686 ac_srcdir=.
25687 if test -z "$ac_top_builddir"; then
25688 ac_top_srcdir=.
25689 else
25690 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25691 fi ;;
25692 [\\/]* | ?:[\\/]* ) # Absolute path.
25693 ac_srcdir=$srcdir$ac_dir_suffix;
25694 ac_top_srcdir=$srcdir ;;
25695 *) # Relative path.
25696 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25697 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25698 esac
25699
25700 # Do not use `cd foo && pwd` to compute absolute paths, because
25701 # the directories may not exist.
25702 case `pwd` in
25703 .) ac_abs_builddir="$ac_dest_dir";;
25704 *)
25705 case "$ac_dest_dir" in
25706 .) ac_abs_builddir=`pwd`;;
25707 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25708 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25709 esac;;
25710 esac
25711 case $ac_abs_builddir in
25712 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25713 *)
25714 case ${ac_top_builddir}. in
25715 .) ac_abs_top_builddir=$ac_abs_builddir;;
25716 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25717 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25718 esac;;
25719 esac
25720 case $ac_abs_builddir in
25721 .) ac_abs_srcdir=$ac_srcdir;;
25722 *)
25723 case $ac_srcdir in
25724 .) ac_abs_srcdir=$ac_abs_builddir;;
25725 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25726 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25727 esac;;
25728 esac
25729 case $ac_abs_builddir in
25730 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25731 *)
25732 case $ac_top_srcdir in
25733 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25734 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25735 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25736 esac;;
25737 esac
25738
25739
25740 case $srcdir in
25741 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25742 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25743 esac
25744
25745 # Try a symlink, then a hard link, then a copy.
25746 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25747 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25748 cp -p $srcdir/$ac_source $ac_dest ||
25749 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25750 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25751 { (exit 1); exit 1; }; }
25752 done
25753 _ACEOF
25754 cat >>$CONFIG_STATUS <<\_ACEOF
25755
25756 #
25757 # CONFIG_COMMANDS section.
25758 #
25759 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25760 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25761 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25762 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25763 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25764 X"$ac_dest" : 'X\(//\)[^/]' \| \
25765 X"$ac_dest" : 'X\(//\)$' \| \
25766 X"$ac_dest" : 'X\(/\)' \| \
25767 . : '\(.\)' 2>/dev/null ||
25768 echo X"$ac_dest" |
25769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25771 /^X\(\/\/\)$/{ s//\1/; q; }
25772 /^X\(\/\).*/{ s//\1/; q; }
25773 s/.*/./; q'`
25774 { if $as_mkdir_p; then
25775 mkdir -p "$ac_dir"
25776 else
25777 as_dir="$ac_dir"
25778 as_dirs=
25779 while test ! -d "$as_dir"; do
25780 as_dirs="$as_dir $as_dirs"
25781 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25783 X"$as_dir" : 'X\(//\)[^/]' \| \
25784 X"$as_dir" : 'X\(//\)$' \| \
25785 X"$as_dir" : 'X\(/\)' \| \
25786 . : '\(.\)' 2>/dev/null ||
25787 echo X"$as_dir" |
25788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25790 /^X\(\/\/\)$/{ s//\1/; q; }
25791 /^X\(\/\).*/{ s//\1/; q; }
25792 s/.*/./; q'`
25793 done
25794 test ! -n "$as_dirs" || mkdir $as_dirs
25795 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25796 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25797 { (exit 1); exit 1; }; }; }
25798
25799 ac_builddir=.
25800
25801 if test "$ac_dir" != .; then
25802 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25803 # A "../" for each directory in $ac_dir_suffix.
25804 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25805 else
25806 ac_dir_suffix= ac_top_builddir=
25807 fi
25808
25809 case $srcdir in
25810 .) # No --srcdir option. We are building in place.
25811 ac_srcdir=.
25812 if test -z "$ac_top_builddir"; then
25813 ac_top_srcdir=.
25814 else
25815 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25816 fi ;;
25817 [\\/]* | ?:[\\/]* ) # Absolute path.
25818 ac_srcdir=$srcdir$ac_dir_suffix;
25819 ac_top_srcdir=$srcdir ;;
25820 *) # Relative path.
25821 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25822 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25823 esac
25824
25825 # Do not use `cd foo && pwd` to compute absolute paths, because
25826 # the directories may not exist.
25827 case `pwd` in
25828 .) ac_abs_builddir="$ac_dir";;
25829 *)
25830 case "$ac_dir" in
25831 .) ac_abs_builddir=`pwd`;;
25832 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25833 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25834 esac;;
25835 esac
25836 case $ac_abs_builddir in
25837 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25838 *)
25839 case ${ac_top_builddir}. in
25840 .) ac_abs_top_builddir=$ac_abs_builddir;;
25841 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25842 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25843 esac;;
25844 esac
25845 case $ac_abs_builddir in
25846 .) ac_abs_srcdir=$ac_srcdir;;
25847 *)
25848 case $ac_srcdir in
25849 .) ac_abs_srcdir=$ac_abs_builddir;;
25850 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25851 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25852 esac;;
25853 esac
25854 case $ac_abs_builddir in
25855 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25856 *)
25857 case $ac_top_srcdir in
25858 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25859 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25860 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25861 esac;;
25862 esac
25863
25864
25865 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25866 echo "$as_me: executing $ac_dest commands" >&6;}
25867 case $ac_dest in
25868 gdb_stdint.h )
25869 if test "$GCC" = yes; then
25870 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25871 else
25872 echo "/* generated for $CC */" > tmp-stdint.h
25873 fi
25874
25875 sed 's/^ *//' >> tmp-stdint.h <<EOF
25876
25877 #ifndef GCC_GENERATED_STDINT_H
25878 #define GCC_GENERATED_STDINT_H 1
25879
25880 #include <sys/types.h>
25881 EOF
25882
25883 if test "$acx_cv_header_stdint" != stdint.h; then
25884 echo "#include <stddef.h>" >> tmp-stdint.h
25885 fi
25886 if test "$acx_cv_header_stdint" != stddef.h; then
25887 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25888 fi
25889
25890 sed 's/^ *//' >> tmp-stdint.h <<EOF
25891 /* glibc uses these symbols as guards to prevent redefinitions. */
25892 #ifdef __int8_t_defined
25893 #define _INT8_T
25894 #define _INT16_T
25895 #define _INT32_T
25896 #endif
25897 #ifdef __uint32_t_defined
25898 #define _UINT32_T
25899 #endif
25900
25901 EOF
25902
25903 # ----------------- done header, emit basic int types -------------
25904 if test "$acx_cv_header_stdint" = stddef.h; then
25905 sed 's/^ *//' >> tmp-stdint.h <<EOF
25906
25907 #ifndef _UINT8_T
25908 #define _UINT8_T
25909 #ifndef __uint8_t_defined
25910 #define __uint8_t_defined
25911 typedef unsigned $acx_cv_type_int8_t uint8_t;
25912 #endif
25913 #endif
25914
25915 #ifndef _UINT16_T
25916 #define _UINT16_T
25917 #ifndef __uint16_t_defined
25918 #define __uint16_t_defined
25919 typedef unsigned $acx_cv_type_int16_t uint16_t;
25920 #endif
25921 #endif
25922
25923 #ifndef _UINT32_T
25924 #define _UINT32_T
25925 #ifndef __uint32_t_defined
25926 #define __uint32_t_defined
25927 typedef unsigned $acx_cv_type_int32_t uint32_t;
25928 #endif
25929 #endif
25930
25931 #ifndef _INT8_T
25932 #define _INT8_T
25933 #ifndef __int8_t_defined
25934 #define __int8_t_defined
25935 typedef $acx_cv_type_int8_t int8_t;
25936 #endif
25937 #endif
25938
25939 #ifndef _INT16_T
25940 #define _INT16_T
25941 #ifndef __int16_t_defined
25942 #define __int16_t_defined
25943 typedef $acx_cv_type_int16_t int16_t;
25944 #endif
25945 #endif
25946
25947 #ifndef _INT32_T
25948 #define _INT32_T
25949 #ifndef __int32_t_defined
25950 #define __int32_t_defined
25951 typedef $acx_cv_type_int32_t int32_t;
25952 #endif
25953 #endif
25954 EOF
25955 elif test "$ac_cv_type_u_int32_t" = yes; then
25956 sed 's/^ *//' >> tmp-stdint.h <<EOF
25957
25958 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25959 #ifndef _INT8_T
25960 #define _INT8_T
25961 #endif
25962 #ifndef _INT16_T
25963 #define _INT16_T
25964 #endif
25965 #ifndef _INT32_T
25966 #define _INT32_T
25967 #endif
25968
25969 #ifndef _UINT8_T
25970 #define _UINT8_T
25971 #ifndef __uint8_t_defined
25972 #define __uint8_t_defined
25973 typedef u_int8_t uint8_t;
25974 #endif
25975 #endif
25976
25977 #ifndef _UINT16_T
25978 #define _UINT16_T
25979 #ifndef __uint16_t_defined
25980 #define __uint16_t_defined
25981 typedef u_int16_t uint16_t;
25982 #endif
25983 #endif
25984
25985 #ifndef _UINT32_T
25986 #define _UINT32_T
25987 #ifndef __uint32_t_defined
25988 #define __uint32_t_defined
25989 typedef u_int32_t uint32_t;
25990 #endif
25991 #endif
25992 EOF
25993 else
25994 sed 's/^ *//' >> tmp-stdint.h <<EOF
25995
25996 /* Some systems have guard macros to prevent redefinitions, define them. */
25997 #ifndef _INT8_T
25998 #define _INT8_T
25999 #endif
26000 #ifndef _INT16_T
26001 #define _INT16_T
26002 #endif
26003 #ifndef _INT32_T
26004 #define _INT32_T
26005 #endif
26006 #ifndef _UINT8_T
26007 #define _UINT8_T
26008 #endif
26009 #ifndef _UINT16_T
26010 #define _UINT16_T
26011 #endif
26012 #ifndef _UINT32_T
26013 #define _UINT32_T
26014 #endif
26015 EOF
26016 fi
26017
26018 # ------------- done basic int types, emit int64_t types ------------
26019 if test "$ac_cv_type_uint64_t" = yes; then
26020 sed 's/^ *//' >> tmp-stdint.h <<EOF
26021
26022 /* system headers have good uint64_t and int64_t */
26023 #ifndef _INT64_T
26024 #define _INT64_T
26025 #endif
26026 #ifndef _UINT64_T
26027 #define _UINT64_T
26028 #endif
26029 EOF
26030 elif test "$ac_cv_type_u_int64_t" = yes; then
26031 sed 's/^ *//' >> tmp-stdint.h <<EOF
26032
26033 /* system headers have an u_int64_t (and int64_t) */
26034 #ifndef _INT64_T
26035 #define _INT64_T
26036 #endif
26037 #ifndef _UINT64_T
26038 #define _UINT64_T
26039 #ifndef __uint64_t_defined
26040 #define __uint64_t_defined
26041 typedef u_int64_t uint64_t;
26042 #endif
26043 #endif
26044 EOF
26045 elif test -n "$acx_cv_type_int64_t"; then
26046 sed 's/^ *//' >> tmp-stdint.h <<EOF
26047
26048 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
26049 #ifndef _INT64_T
26050 #define _INT64_T
26051 typedef $acx_cv_type_int64_t int64_t;
26052 #endif
26053 #ifndef _UINT64_T
26054 #define _UINT64_T
26055 #ifndef __uint64_t_defined
26056 #define __uint64_t_defined
26057 typedef unsigned $acx_cv_type_int64_t uint64_t;
26058 #endif
26059 #endif
26060 EOF
26061 else
26062 sed 's/^ *//' >> tmp-stdint.h <<EOF
26063
26064 /* some common heuristics for int64_t, using compiler-specific tests */
26065 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
26066 #ifndef _INT64_T
26067 #define _INT64_T
26068 #ifndef __int64_t_defined
26069 typedef long long int64_t;
26070 #endif
26071 #endif
26072 #ifndef _UINT64_T
26073 #define _UINT64_T
26074 typedef unsigned long long uint64_t;
26075 #endif
26076
26077 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
26078 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
26079 does not implement __extension__. But that compiler doesn't define
26080 __GNUC_MINOR__. */
26081 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
26082 # define __extension__
26083 # endif
26084
26085 # ifndef _INT64_T
26086 # define _INT64_T
26087 __extension__ typedef long long int64_t;
26088 # endif
26089 # ifndef _UINT64_T
26090 # define _UINT64_T
26091 __extension__ typedef unsigned long long uint64_t;
26092 # endif
26093
26094 #elif !defined __STRICT_ANSI__
26095 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
26096
26097 # ifndef _INT64_T
26098 # define _INT64_T
26099 typedef __int64 int64_t;
26100 # endif
26101 # ifndef _UINT64_T
26102 # define _UINT64_T
26103 typedef unsigned __int64 uint64_t;
26104 # endif
26105 # endif /* compiler */
26106
26107 #endif /* ANSI version */
26108 EOF
26109 fi
26110
26111 # ------------- done int64_t types, emit intptr types ------------
26112 if test "$ac_cv_type_uintptr_t" != yes; then
26113 sed 's/^ *//' >> tmp-stdint.h <<EOF
26114
26115 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
26116 #ifndef __uintptr_t_defined
26117 typedef u$acx_cv_type_intptr_t uintptr_t;
26118 #endif
26119 #ifndef __intptr_t_defined
26120 typedef $acx_cv_type_intptr_t intptr_t;
26121 #endif
26122 EOF
26123 fi
26124
26125 # ------------- done intptr types, emit int_least types ------------
26126 if test "$ac_cv_type_int_least32_t" != yes; then
26127 sed 's/^ *//' >> tmp-stdint.h <<EOF
26128
26129 /* Define int_least types */
26130 typedef int8_t int_least8_t;
26131 typedef int16_t int_least16_t;
26132 typedef int32_t int_least32_t;
26133 #ifdef _INT64_T
26134 typedef int64_t int_least64_t;
26135 #endif
26136
26137 typedef uint8_t uint_least8_t;
26138 typedef uint16_t uint_least16_t;
26139 typedef uint32_t uint_least32_t;
26140 #ifdef _UINT64_T
26141 typedef uint64_t uint_least64_t;
26142 #endif
26143 EOF
26144 fi
26145
26146 # ------------- done intptr types, emit int_fast types ------------
26147 if test "$ac_cv_type_int_fast32_t" != yes; then
26148 sed 's/^ *//' >> tmp-stdint.h <<EOF
26149
26150 /* Define int_fast types. short is often slow */
26151 typedef int8_t int_fast8_t;
26152 typedef int int_fast16_t;
26153 typedef int32_t int_fast32_t;
26154 #ifdef _INT64_T
26155 typedef int64_t int_fast64_t;
26156 #endif
26157
26158 typedef uint8_t uint_fast8_t;
26159 typedef unsigned int uint_fast16_t;
26160 typedef uint32_t uint_fast32_t;
26161 #ifdef _UINT64_T
26162 typedef uint64_t uint_fast64_t;
26163 #endif
26164 EOF
26165 fi
26166
26167 if test "$ac_cv_type_uintmax_t" != yes; then
26168 sed 's/^ *//' >> tmp-stdint.h <<EOF
26169
26170 /* Define intmax based on what we found */
26171 #ifdef _INT64_T
26172 typedef int64_t intmax_t;
26173 #else
26174 typedef long intmax_t;
26175 #endif
26176 #ifdef _UINT64_T
26177 typedef uint64_t uintmax_t;
26178 #else
26179 typedef unsigned long uintmax_t;
26180 #endif
26181 EOF
26182 fi
26183
26184 sed 's/^ *//' >> tmp-stdint.h <<EOF
26185
26186 #endif /* GCC_GENERATED_STDINT_H */
26187 EOF
26188
26189 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
26190 rm -f tmp-stdint.h
26191 else
26192 mv -f tmp-stdint.h gdb_stdint.h
26193 fi
26194
26195 ;;
26196 default )
26197
26198 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
26199 mv -f Makefile.tmp Makefile
26200
26201
26202 case x$CONFIG_HEADERS in
26203 xconfig.h:config.in)
26204 echo > stamp-h ;;
26205 esac
26206 ;;
26207 esac
26208 done
26209 _ACEOF
26210
26211 cat >>$CONFIG_STATUS <<\_ACEOF
26212
26213 { (exit 0); exit 0; }
26214 _ACEOF
26215 chmod +x $CONFIG_STATUS
26216 ac_clean_files=$ac_clean_files_save
26217
26218
26219 # configure is writing to config.log, and then calls config.status.
26220 # config.status does its own redirection, appending to config.log.
26221 # Unfortunately, on DOS this fails, as config.log is still kept open
26222 # by configure, so config.status won't be able to write to it; its
26223 # output is simply discarded. So we exec the FD to /dev/null,
26224 # effectively closing config.log, so it can be properly (re)opened and
26225 # appended to by config.status. When coming back to configure, we
26226 # need to make the FD available again.
26227 if test "$no_create" != yes; then
26228 ac_cs_success=:
26229 ac_config_status_args=
26230 test "$silent" = yes &&
26231 ac_config_status_args="$ac_config_status_args --quiet"
26232 exec 5>/dev/null
26233 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26234 exec 5>>config.log
26235 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26236 # would make configure fail if this is the last instruction.
26237 $ac_cs_success || { (exit 1); exit 1; }
26238 fi
26239
26240 #
26241 # CONFIG_SUBDIRS section.
26242 #
26243 if test "$no_recursion" != yes; then
26244
26245 # Remove --cache-file and --srcdir arguments so they do not pile up.
26246 ac_sub_configure_args=
26247 ac_prev=
26248 for ac_arg in $ac_configure_args; do
26249 if test -n "$ac_prev"; then
26250 ac_prev=
26251 continue
26252 fi
26253 case $ac_arg in
26254 -cache-file | --cache-file | --cache-fil | --cache-fi \
26255 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26256 ac_prev=cache_file ;;
26257 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26258 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26259 | --c=*)
26260 ;;
26261 --config-cache | -C)
26262 ;;
26263 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26264 ac_prev=srcdir ;;
26265 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26266 ;;
26267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26268 ac_prev=prefix ;;
26269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26270 ;;
26271 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26272 esac
26273 done
26274
26275 # Always prepend --prefix to ensure using the same prefix
26276 # in subdir configurations.
26277 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26278
26279 ac_popdir=`pwd`
26280 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26281
26282 # Do not complain, so a configure script can configure whichever
26283 # parts of a large source tree are present.
26284 test -d $srcdir/$ac_dir || continue
26285
26286 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26287 echo "$as_me: configuring in $ac_dir" >&6;}
26288 { if $as_mkdir_p; then
26289 mkdir -p "$ac_dir"
26290 else
26291 as_dir="$ac_dir"
26292 as_dirs=
26293 while test ! -d "$as_dir"; do
26294 as_dirs="$as_dir $as_dirs"
26295 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26297 X"$as_dir" : 'X\(//\)[^/]' \| \
26298 X"$as_dir" : 'X\(//\)$' \| \
26299 X"$as_dir" : 'X\(/\)' \| \
26300 . : '\(.\)' 2>/dev/null ||
26301 echo X"$as_dir" |
26302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26304 /^X\(\/\/\)$/{ s//\1/; q; }
26305 /^X\(\/\).*/{ s//\1/; q; }
26306 s/.*/./; q'`
26307 done
26308 test ! -n "$as_dirs" || mkdir $as_dirs
26309 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26310 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26311 { (exit 1); exit 1; }; }; }
26312
26313 ac_builddir=.
26314
26315 if test "$ac_dir" != .; then
26316 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26317 # A "../" for each directory in $ac_dir_suffix.
26318 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26319 else
26320 ac_dir_suffix= ac_top_builddir=
26321 fi
26322
26323 case $srcdir in
26324 .) # No --srcdir option. We are building in place.
26325 ac_srcdir=.
26326 if test -z "$ac_top_builddir"; then
26327 ac_top_srcdir=.
26328 else
26329 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26330 fi ;;
26331 [\\/]* | ?:[\\/]* ) # Absolute path.
26332 ac_srcdir=$srcdir$ac_dir_suffix;
26333 ac_top_srcdir=$srcdir ;;
26334 *) # Relative path.
26335 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26336 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26337 esac
26338
26339 # Do not use `cd foo && pwd` to compute absolute paths, because
26340 # the directories may not exist.
26341 case `pwd` in
26342 .) ac_abs_builddir="$ac_dir";;
26343 *)
26344 case "$ac_dir" in
26345 .) ac_abs_builddir=`pwd`;;
26346 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26347 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26348 esac;;
26349 esac
26350 case $ac_abs_builddir in
26351 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26352 *)
26353 case ${ac_top_builddir}. in
26354 .) ac_abs_top_builddir=$ac_abs_builddir;;
26355 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26356 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26357 esac;;
26358 esac
26359 case $ac_abs_builddir in
26360 .) ac_abs_srcdir=$ac_srcdir;;
26361 *)
26362 case $ac_srcdir in
26363 .) ac_abs_srcdir=$ac_abs_builddir;;
26364 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26365 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26366 esac;;
26367 esac
26368 case $ac_abs_builddir in
26369 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26370 *)
26371 case $ac_top_srcdir in
26372 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26373 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26374 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26375 esac;;
26376 esac
26377
26378
26379 cd $ac_dir
26380
26381 # Check for guested configure; otherwise get Cygnus style configure.
26382 if test -f $ac_srcdir/configure.gnu; then
26383 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26384 elif test -f $ac_srcdir/configure; then
26385 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26386 elif test -f $ac_srcdir/configure.in; then
26387 ac_sub_configure=$ac_configure
26388 else
26389 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26390 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26391 ac_sub_configure=
26392 fi
26393
26394 # The recursion is here.
26395 if test -n "$ac_sub_configure"; then
26396 # Make the cache file name correct relative to the subdirectory.
26397 case $cache_file in
26398 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26399 *) # Relative path.
26400 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26401 esac
26402
26403 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26404 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26405 # The eval makes quoting arguments work.
26406 eval $ac_sub_configure $ac_sub_configure_args \
26407 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26408 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26409 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26410 { (exit 1); exit 1; }; }
26411 fi
26412
26413 cd $ac_popdir
26414 done
26415 fi
26416
26417
26418 exit 0
This page took 1.774753 seconds and 5 git commands to generate.