16c7d82a056d27e3b4554c94ac2a1f5ac5cfff82
[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 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 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 IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
317 ac_subst_files='host_makefile_frag target_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 --disable-gdbcli disable command-line interface (CLI)
864 --disable-gdbmi disable machine-interface (MI)
865 --enable-tui enable full-screen terminal user interface (TUI)
866 --enable-gdbtk enable gdbtk graphical user interface (GUI)
867 --enable-profiling enable profiling of GDB
868 --enable-werror treat compile warnings as errors
869 --enable-build-warnings Enable build-time compiler warnings if gcc is used
870 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
871 --enable-sim Link gdb with simulator
872 --enable-multi-ice build the multi-ice-gdb-server
873
874 Optional Packages:
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
878 --with-libunwind Use libunwind frame unwinding support
879 --without-included-regex don't use included regex; this is the default
880 on systems with version 2 of the GNU C library
881 (use with caution on other system)
882 --with-sysroot=DIR Search for usr/lib et al within DIR.
883 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
884 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
885 --with-tclinclude=DIR Directory where tcl private headers are
886 --with-tkinclude=DIR Directory where tk private headers are
887 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
888 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
889 --with-x use the X Window System
890 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
891
892 Some influential environment variables:
893 CC C compiler command
894 CFLAGS C compiler flags
895 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
896 nonstandard directory <lib dir>
897 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
898 headers in a nonstandard directory <include dir>
899 CPP C preprocessor
900
901 Use these variables to override the choices made by `configure' or to help
902 it to find libraries and programs with nonstandard names/locations.
903
904 _ACEOF
905 fi
906
907 if test "$ac_init_help" = "recursive"; then
908 # If there are subdirs, report their specific --help.
909 ac_popdir=`pwd`
910 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
911 test -d $ac_dir || continue
912 ac_builddir=.
913
914 if test "$ac_dir" != .; then
915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
916 # A "../" for each directory in $ac_dir_suffix.
917 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
918 else
919 ac_dir_suffix= ac_top_builddir=
920 fi
921
922 case $srcdir in
923 .) # No --srcdir option. We are building in place.
924 ac_srcdir=.
925 if test -z "$ac_top_builddir"; then
926 ac_top_srcdir=.
927 else
928 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
929 fi ;;
930 [\\/]* | ?:[\\/]* ) # Absolute path.
931 ac_srcdir=$srcdir$ac_dir_suffix;
932 ac_top_srcdir=$srcdir ;;
933 *) # Relative path.
934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
936 esac
937
938 # Do not use `cd foo && pwd` to compute absolute paths, because
939 # the directories may not exist.
940 case `pwd` in
941 .) ac_abs_builddir="$ac_dir";;
942 *)
943 case "$ac_dir" in
944 .) ac_abs_builddir=`pwd`;;
945 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
946 *) ac_abs_builddir=`pwd`/"$ac_dir";;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 *)
952 case ${ac_top_builddir}. in
953 .) ac_abs_top_builddir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
955 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
956 esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_srcdir=$ac_srcdir;;
960 *)
961 case $ac_srcdir in
962 .) ac_abs_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
964 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
965 esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 *)
970 case $ac_top_srcdir in
971 .) ac_abs_top_srcdir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
973 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
974 esac;;
975 esac
976
977 cd $ac_dir
978 # Check for guested configure; otherwise get Cygnus style configure.
979 if test -f $ac_srcdir/configure.gnu; then
980 echo
981 $SHELL $ac_srcdir/configure.gnu --help=recursive
982 elif test -f $ac_srcdir/configure; then
983 echo
984 $SHELL $ac_srcdir/configure --help=recursive
985 elif test -f $ac_srcdir/configure.ac ||
986 test -f $ac_srcdir/configure.in; then
987 echo
988 $ac_configure --help
989 else
990 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 fi
992 cd $ac_popdir
993 done
994 fi
995
996 test -n "$ac_init_help" && exit 0
997 if $ac_init_version; then
998 cat <<\_ACEOF
999
1000 Copyright (C) 2003 Free Software Foundation, Inc.
1001 This configure script is free software; the Free Software Foundation
1002 gives unlimited permission to copy, distribute and modify it.
1003 _ACEOF
1004 exit 0
1005 fi
1006 exec 5>config.log
1007 cat >&5 <<_ACEOF
1008 This file contains any messages produced by compilers while
1009 running configure, to aid debugging if configure makes a mistake.
1010
1011 It was created by $as_me, which was
1012 generated by GNU Autoconf 2.59. Invocation command line was
1013
1014 $ $0 $@
1015
1016 _ACEOF
1017 {
1018 cat <<_ASUNAME
1019 ## --------- ##
1020 ## Platform. ##
1021 ## --------- ##
1022
1023 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1024 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1025 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1026 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1027 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1028
1029 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1030 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1031
1032 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1033 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1034 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1035 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1036 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1037 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1038 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1039
1040 _ASUNAME
1041
1042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 for as_dir in $PATH
1044 do
1045 IFS=$as_save_IFS
1046 test -z "$as_dir" && as_dir=.
1047 echo "PATH: $as_dir"
1048 done
1049
1050 } >&5
1051
1052 cat >&5 <<_ACEOF
1053
1054
1055 ## ----------- ##
1056 ## Core tests. ##
1057 ## ----------- ##
1058
1059 _ACEOF
1060
1061
1062 # Keep a trace of the command line.
1063 # Strip out --no-create and --no-recursion so they do not pile up.
1064 # Strip out --silent because we don't want to record it for future runs.
1065 # Also quote any args containing shell meta-characters.
1066 # Make two passes to allow for proper duplicate-argument suppression.
1067 ac_configure_args=
1068 ac_configure_args0=
1069 ac_configure_args1=
1070 ac_sep=
1071 ac_must_keep_next=false
1072 for ac_pass in 1 2
1073 do
1074 for ac_arg
1075 do
1076 case $ac_arg in
1077 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1080 continue ;;
1081 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1082 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1083 esac
1084 case $ac_pass in
1085 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 2)
1087 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1088 if test $ac_must_keep_next = true; then
1089 ac_must_keep_next=false # Got value, back to normal.
1090 else
1091 case $ac_arg in
1092 *=* | --config-cache | -C | -disable-* | --disable-* \
1093 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1094 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1095 | -with-* | --with-* | -without-* | --without-* | --x)
1096 case "$ac_configure_args0 " in
1097 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1098 esac
1099 ;;
1100 -* ) ac_must_keep_next=true ;;
1101 esac
1102 fi
1103 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1104 # Get rid of the leading space.
1105 ac_sep=" "
1106 ;;
1107 esac
1108 done
1109 done
1110 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1111 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112
1113 # When interrupted or exit'd, cleanup temporary files, and complete
1114 # config.log. We remove comments because anyway the quotes in there
1115 # would cause problems or look ugly.
1116 # WARNING: Be sure not to use single quotes in there, as some shells,
1117 # such as our DU 5.0 friend, will then `close' the trap.
1118 trap 'exit_status=$?
1119 # Save into config.log some information that might help in debugging.
1120 {
1121 echo
1122
1123 cat <<\_ASBOX
1124 ## ---------------- ##
1125 ## Cache variables. ##
1126 ## ---------------- ##
1127 _ASBOX
1128 echo
1129 # The following way of writing the cache mishandles newlines in values,
1130 {
1131 (set) 2>&1 |
1132 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1133 *ac_space=\ *)
1134 sed -n \
1135 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137 ;;
1138 *)
1139 sed -n \
1140 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 ;;
1142 esac;
1143 }
1144 echo
1145
1146 cat <<\_ASBOX
1147 ## ----------------- ##
1148 ## Output variables. ##
1149 ## ----------------- ##
1150 _ASBOX
1151 echo
1152 for ac_var in $ac_subst_vars
1153 do
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1158
1159 if test -n "$ac_subst_files"; then
1160 cat <<\_ASBOX
1161 ## ------------- ##
1162 ## Output files. ##
1163 ## ------------- ##
1164 _ASBOX
1165 echo
1166 for ac_var in $ac_subst_files
1167 do
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1170 done | sort
1171 echo
1172 fi
1173
1174 if test -s confdefs.h; then
1175 cat <<\_ASBOX
1176 ## ----------- ##
1177 ## confdefs.h. ##
1178 ## ----------- ##
1179 _ASBOX
1180 echo
1181 sed "/^$/d" confdefs.h | sort
1182 echo
1183 fi
1184 test "$ac_signal" != 0 &&
1185 echo "$as_me: caught signal $ac_signal"
1186 echo "$as_me: exit $exit_status"
1187 } >&5
1188 rm -f core *.core &&
1189 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1190 exit $exit_status
1191 ' 0
1192 for ac_signal in 1 2 13 15; do
1193 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 done
1195 ac_signal=0
1196
1197 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1198 rm -rf conftest* confdefs.h
1199 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1200 echo >confdefs.h
1201
1202 # Predefined preprocessor variables.
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 _ACEOF
1217
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 _ACEOF
1222
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 _ACEOF
1227
1228
1229 # Let the site file select an alternate cache file if it wants to.
1230 # Prefer explicitly selected file to automatically selected ones.
1231 if test -z "$CONFIG_SITE"; then
1232 if test "x$prefix" != xNONE; then
1233 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 else
1235 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1236 fi
1237 fi
1238 for ac_site_file in $CONFIG_SITE; do
1239 if test -r "$ac_site_file"; then
1240 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1241 echo "$as_me: loading site script $ac_site_file" >&6;}
1242 sed 's/^/| /' "$ac_site_file" >&5
1243 . "$ac_site_file"
1244 fi
1245 done
1246
1247 if test -r "$cache_file"; then
1248 # Some versions of bash will fail to source /dev/null (special
1249 # files actually), so we avoid doing that.
1250 if test -f "$cache_file"; then
1251 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1252 echo "$as_me: loading cache $cache_file" >&6;}
1253 case $cache_file in
1254 [\\/]* | ?:[\\/]* ) . $cache_file;;
1255 *) . ./$cache_file;;
1256 esac
1257 fi
1258 else
1259 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1260 echo "$as_me: creating cache $cache_file" >&6;}
1261 >$cache_file
1262 fi
1263
1264 # Check that the precious variables saved in the cache have kept the same
1265 # value.
1266 ac_cache_corrupted=false
1267 for ac_var in `(set) 2>&1 |
1268 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1269 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1270 eval ac_new_set=\$ac_env_${ac_var}_set
1271 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1272 eval ac_new_val="\$ac_env_${ac_var}_value"
1273 case $ac_old_set,$ac_new_set in
1274 set,)
1275 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,set)
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1280 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1281 ac_cache_corrupted=: ;;
1282 ,);;
1283 *)
1284 if test "x$ac_old_val" != "x$ac_new_val"; then
1285 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1286 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1287 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1288 echo "$as_me: former value: $ac_old_val" >&2;}
1289 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1290 echo "$as_me: current value: $ac_new_val" >&2;}
1291 ac_cache_corrupted=:
1292 fi;;
1293 esac
1294 # Pass precious variables to config.status.
1295 if test "$ac_new_set" = set; then
1296 case $ac_new_val in
1297 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1298 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1299 *) ac_arg=$ac_var=$ac_new_val ;;
1300 esac
1301 case " $ac_configure_args " in
1302 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1303 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 esac
1305 fi
1306 done
1307 if $ac_cache_corrupted; then
1308 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1309 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1310 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1311 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1312 { (exit 1); exit 1; }; }
1313 fi
1314
1315 ac_ext=c
1316 ac_cpp='$CPP $CPPFLAGS'
1317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339 ac_config_headers="$ac_config_headers config.h:config.in"
1340
1341 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1342 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1343 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1344 if test "${enable_maintainer_mode+set}" = set; then
1345 enableval="$enable_maintainer_mode"
1346 USE_MAINTAINER_MODE=$enableval
1347 else
1348 USE_MAINTAINER_MODE=no
1349 fi;
1350 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1351 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1352
1353
1354 if test $USE_MAINTAINER_MODE = yes; then
1355 MAINTAINER_MODE_TRUE=
1356 MAINTAINER_MODE_FALSE='#'
1357 else
1358 MAINTAINER_MODE_TRUE='#'
1359 MAINTAINER_MODE_FALSE=
1360 fi
1361
1362 MAINT=$MAINTAINER_MODE_TRUE
1363
1364
1365
1366 ac_ext=c
1367 ac_cpp='$CPP $CPPFLAGS'
1368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1371 if test -n "$ac_tool_prefix"; then
1372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1373 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1374 echo "$as_me:$LINENO: checking for $ac_word" >&5
1375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1376 if test "${ac_cv_prog_CC+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1378 else
1379 if test -n "$CC"; then
1380 ac_cv_prog_CC="$CC" # Let the user override the test.
1381 else
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1384 do
1385 IFS=$as_save_IFS
1386 test -z "$as_dir" && as_dir=.
1387 for ac_exec_ext in '' $ac_executable_extensions; do
1388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391 break 2
1392 fi
1393 done
1394 done
1395
1396 fi
1397 fi
1398 CC=$ac_cv_prog_CC
1399 if test -n "$CC"; then
1400 echo "$as_me:$LINENO: result: $CC" >&5
1401 echo "${ECHO_T}$CC" >&6
1402 else
1403 echo "$as_me:$LINENO: result: no" >&5
1404 echo "${ECHO_T}no" >&6
1405 fi
1406
1407 fi
1408 if test -z "$ac_cv_prog_CC"; then
1409 ac_ct_CC=$CC
1410 # Extract the first word of "gcc", so it can be a program name with args.
1411 set dummy gcc; ac_word=$2
1412 echo "$as_me:$LINENO: checking for $ac_word" >&5
1413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 else
1417 if test -n "$ac_ct_CC"; then
1418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1419 else
1420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421 for as_dir in $PATH
1422 do
1423 IFS=$as_save_IFS
1424 test -z "$as_dir" && as_dir=.
1425 for ac_exec_ext in '' $ac_executable_extensions; do
1426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1427 ac_cv_prog_ac_ct_CC="gcc"
1428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1429 break 2
1430 fi
1431 done
1432 done
1433
1434 fi
1435 fi
1436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1437 if test -n "$ac_ct_CC"; then
1438 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1439 echo "${ECHO_T}$ac_ct_CC" >&6
1440 else
1441 echo "$as_me:$LINENO: result: no" >&5
1442 echo "${ECHO_T}no" >&6
1443 fi
1444
1445 CC=$ac_ct_CC
1446 else
1447 CC="$ac_cv_prog_CC"
1448 fi
1449
1450 if test -z "$CC"; then
1451 if test -n "$ac_tool_prefix"; then
1452 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1453 set dummy ${ac_tool_prefix}cc; ac_word=$2
1454 echo "$as_me:$LINENO: checking for $ac_word" >&5
1455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1456 if test "${ac_cv_prog_CC+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 else
1459 if test -n "$CC"; then
1460 ac_cv_prog_CC="$CC" # Let the user override the test.
1461 else
1462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463 for as_dir in $PATH
1464 do
1465 IFS=$as_save_IFS
1466 test -z "$as_dir" && as_dir=.
1467 for ac_exec_ext in '' $ac_executable_extensions; do
1468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1469 ac_cv_prog_CC="${ac_tool_prefix}cc"
1470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1471 break 2
1472 fi
1473 done
1474 done
1475
1476 fi
1477 fi
1478 CC=$ac_cv_prog_CC
1479 if test -n "$CC"; then
1480 echo "$as_me:$LINENO: result: $CC" >&5
1481 echo "${ECHO_T}$CC" >&6
1482 else
1483 echo "$as_me:$LINENO: result: no" >&5
1484 echo "${ECHO_T}no" >&6
1485 fi
1486
1487 fi
1488 if test -z "$ac_cv_prog_CC"; then
1489 ac_ct_CC=$CC
1490 # Extract the first word of "cc", so it can be a program name with args.
1491 set dummy cc; ac_word=$2
1492 echo "$as_me:$LINENO: checking for $ac_word" >&5
1493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1496 else
1497 if test -n "$ac_ct_CC"; then
1498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1499 else
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503 IFS=$as_save_IFS
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507 ac_cv_prog_ac_ct_CC="cc"
1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509 break 2
1510 fi
1511 done
1512 done
1513
1514 fi
1515 fi
1516 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1517 if test -n "$ac_ct_CC"; then
1518 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1519 echo "${ECHO_T}$ac_ct_CC" >&6
1520 else
1521 echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1523 fi
1524
1525 CC=$ac_ct_CC
1526 else
1527 CC="$ac_cv_prog_CC"
1528 fi
1529
1530 fi
1531 if test -z "$CC"; then
1532 # Extract the first word of "cc", so it can be a program name with args.
1533 set dummy cc; ac_word=$2
1534 echo "$as_me:$LINENO: checking for $ac_word" >&5
1535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536 if test "${ac_cv_prog_CC+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 else
1539 if test -n "$CC"; then
1540 ac_cv_prog_CC="$CC" # Let the user override the test.
1541 else
1542 ac_prog_rejected=no
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1545 do
1546 IFS=$as_save_IFS
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1551 ac_prog_rejected=yes
1552 continue
1553 fi
1554 ac_cv_prog_CC="cc"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 break 2
1557 fi
1558 done
1559 done
1560
1561 if test $ac_prog_rejected = yes; then
1562 # We found a bogon in the path, so make sure we never use it.
1563 set dummy $ac_cv_prog_CC
1564 shift
1565 if test $# != 0; then
1566 # We chose a different compiler from the bogus one.
1567 # However, it has the same basename, so the bogon will be chosen
1568 # first if we set CC to just the basename; use the full file name.
1569 shift
1570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1571 fi
1572 fi
1573 fi
1574 fi
1575 CC=$ac_cv_prog_CC
1576 if test -n "$CC"; then
1577 echo "$as_me:$LINENO: result: $CC" >&5
1578 echo "${ECHO_T}$CC" >&6
1579 else
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1582 fi
1583
1584 fi
1585 if test -z "$CC"; then
1586 if test -n "$ac_tool_prefix"; then
1587 for ac_prog in cl
1588 do
1589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598 else
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1601 do
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1609 fi
1610 done
1611 done
1612
1613 fi
1614 fi
1615 CC=$ac_cv_prog_CC
1616 if test -n "$CC"; then
1617 echo "$as_me:$LINENO: result: $CC" >&5
1618 echo "${ECHO_T}$CC" >&6
1619 else
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1622 fi
1623
1624 test -n "$CC" && break
1625 done
1626 fi
1627 if test -z "$CC"; then
1628 ac_ct_CC=$CC
1629 for ac_prog in cl
1630 do
1631 # Extract the first word of "$ac_prog", so it can be a program name with args.
1632 set dummy $ac_prog; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638 if test -n "$ac_ct_CC"; then
1639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1640 else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_ac_ct_CC="$ac_prog"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
1651 fi
1652 done
1653 done
1654
1655 fi
1656 fi
1657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1658 if test -n "$ac_ct_CC"; then
1659 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1660 echo "${ECHO_T}$ac_ct_CC" >&6
1661 else
1662 echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1664 fi
1665
1666 test -n "$ac_ct_CC" && break
1667 done
1668
1669 CC=$ac_ct_CC
1670 fi
1671
1672 fi
1673
1674
1675 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1676 See \`config.log' for more details." >&5
1677 echo "$as_me: error: no acceptable C compiler found in \$PATH
1678 See \`config.log' for more details." >&2;}
1679 { (exit 1); exit 1; }; }
1680
1681 # Provide some information about the compiler.
1682 echo "$as_me:$LINENO:" \
1683 "checking for C compiler version" >&5
1684 ac_compiler=`set X $ac_compile; echo $2`
1685 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1686 (eval $ac_compiler --version </dev/null >&5) 2>&5
1687 ac_status=$?
1688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1689 (exit $ac_status); }
1690 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1691 (eval $ac_compiler -v </dev/null >&5) 2>&5
1692 ac_status=$?
1693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694 (exit $ac_status); }
1695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1696 (eval $ac_compiler -V </dev/null >&5) 2>&5
1697 ac_status=$?
1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699 (exit $ac_status); }
1700
1701 cat >conftest.$ac_ext <<_ACEOF
1702 /* confdefs.h. */
1703 _ACEOF
1704 cat confdefs.h >>conftest.$ac_ext
1705 cat >>conftest.$ac_ext <<_ACEOF
1706 /* end confdefs.h. */
1707
1708 int
1709 main ()
1710 {
1711
1712 ;
1713 return 0;
1714 }
1715 _ACEOF
1716 ac_clean_files_save=$ac_clean_files
1717 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1718 # Try to create an executable without -o first, disregard a.out.
1719 # It will help us diagnose broken compilers, and finding out an intuition
1720 # of exeext.
1721 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1722 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1723 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1724 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1725 (eval $ac_link_default) 2>&5
1726 ac_status=$?
1727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728 (exit $ac_status); }; then
1729 # Find the output, starting from the most likely. This scheme is
1730 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1731 # resort.
1732
1733 # Be careful to initialize this variable, since it used to be cached.
1734 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1735 ac_cv_exeext=
1736 # b.out is created by i960 compilers.
1737 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1738 do
1739 test -f "$ac_file" || continue
1740 case $ac_file in
1741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1742 ;;
1743 conftest.$ac_ext )
1744 # This is the source file.
1745 ;;
1746 [ab].out )
1747 # We found the default executable, but exeext='' is most
1748 # certainly right.
1749 break;;
1750 *.* )
1751 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1752 # FIXME: I believe we export ac_cv_exeext for Libtool,
1753 # but it would be cool to find out if it's true. Does anybody
1754 # maintain Libtool? --akim.
1755 export ac_cv_exeext
1756 break;;
1757 * )
1758 break;;
1759 esac
1760 done
1761 else
1762 echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1766 See \`config.log' for more details." >&5
1767 echo "$as_me: error: C compiler cannot create executables
1768 See \`config.log' for more details." >&2;}
1769 { (exit 77); exit 77; }; }
1770 fi
1771
1772 ac_exeext=$ac_cv_exeext
1773 echo "$as_me:$LINENO: result: $ac_file" >&5
1774 echo "${ECHO_T}$ac_file" >&6
1775
1776 # Check the compiler produces executables we can run. If not, either
1777 # the compiler is broken, or we cross compile.
1778 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1779 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781 # If not cross compiling, check that we can run a simple program.
1782 if test "$cross_compiling" != yes; then
1783 if { ac_try='./$ac_file'
1784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1785 (eval $ac_try) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; }; then
1789 cross_compiling=no
1790 else
1791 if test "$cross_compiling" = maybe; then
1792 cross_compiling=yes
1793 else
1794 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'.
1796 See \`config.log' for more details." >&5
1797 echo "$as_me: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'.
1799 See \`config.log' for more details." >&2;}
1800 { (exit 1); exit 1; }; }
1801 fi
1802 fi
1803 fi
1804 echo "$as_me:$LINENO: result: yes" >&5
1805 echo "${ECHO_T}yes" >&6
1806
1807 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1808 ac_clean_files=$ac_clean_files_save
1809 # Check the compiler produces executables we can run. If not, either
1810 # the compiler is broken, or we cross compile.
1811 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1812 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1813 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1814 echo "${ECHO_T}$cross_compiling" >&6
1815
1816 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1817 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1819 (eval $ac_link) 2>&5
1820 ac_status=$?
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }; then
1823 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1824 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1825 # work properly (i.e., refer to `conftest.exe'), while it won't with
1826 # `rm'.
1827 for ac_file in conftest.exe conftest conftest.*; do
1828 test -f "$ac_file" || continue
1829 case $ac_file in
1830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1831 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1832 export ac_cv_exeext
1833 break;;
1834 * ) break;;
1835 esac
1836 done
1837 else
1838 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1839 See \`config.log' for more details." >&5
1840 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1841 See \`config.log' for more details." >&2;}
1842 { (exit 1); exit 1; }; }
1843 fi
1844
1845 rm -f conftest$ac_cv_exeext
1846 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1847 echo "${ECHO_T}$ac_cv_exeext" >&6
1848
1849 rm -f conftest.$ac_ext
1850 EXEEXT=$ac_cv_exeext
1851 ac_exeext=$EXEEXT
1852 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1853 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1854 if test "${ac_cv_objext+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 cat >conftest.$ac_ext <<_ACEOF
1858 /* confdefs.h. */
1859 _ACEOF
1860 cat confdefs.h >>conftest.$ac_ext
1861 cat >>conftest.$ac_ext <<_ACEOF
1862 /* end confdefs.h. */
1863
1864 int
1865 main ()
1866 {
1867
1868 ;
1869 return 0;
1870 }
1871 _ACEOF
1872 rm -f conftest.o conftest.obj
1873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1874 (eval $ac_compile) 2>&5
1875 ac_status=$?
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; then
1878 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1879 case $ac_file in
1880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1881 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1882 break;;
1883 esac
1884 done
1885 else
1886 echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1890 See \`config.log' for more details." >&5
1891 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1892 See \`config.log' for more details." >&2;}
1893 { (exit 1); exit 1; }; }
1894 fi
1895
1896 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1897 fi
1898 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1899 echo "${ECHO_T}$ac_cv_objext" >&6
1900 OBJEXT=$ac_cv_objext
1901 ac_objext=$OBJEXT
1902 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1903 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1904 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 cat >conftest.$ac_ext <<_ACEOF
1908 /* confdefs.h. */
1909 _ACEOF
1910 cat confdefs.h >>conftest.$ac_ext
1911 cat >>conftest.$ac_ext <<_ACEOF
1912 /* end confdefs.h. */
1913
1914 int
1915 main ()
1916 {
1917 #ifndef __GNUC__
1918 choke me
1919 #endif
1920
1921 ;
1922 return 0;
1923 }
1924 _ACEOF
1925 rm -f conftest.$ac_objext
1926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>conftest.er1
1928 ac_status=$?
1929 grep -v '^ *+' conftest.er1 >conftest.err
1930 rm -f conftest.er1
1931 cat conftest.err >&5
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); } &&
1934 { ac_try='test -z "$ac_c_werror_flag"
1935 || test ! -s conftest.err'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937 (eval $ac_try) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; } &&
1941 { ac_try='test -s conftest.$ac_objext'
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 (eval $ac_try) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; }; then
1947 ac_compiler_gnu=yes
1948 else
1949 echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 ac_compiler_gnu=no
1953 fi
1954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1956
1957 fi
1958 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1960 GCC=`test $ac_compiler_gnu = yes && echo yes`
1961 ac_test_CFLAGS=${CFLAGS+set}
1962 ac_save_CFLAGS=$CFLAGS
1963 CFLAGS="-g"
1964 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1965 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1966 if test "${ac_cv_prog_cc_g+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 cat >conftest.$ac_ext <<_ACEOF
1970 /* confdefs.h. */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1975
1976 int
1977 main ()
1978 {
1979
1980 ;
1981 return 0;
1982 }
1983 _ACEOF
1984 rm -f conftest.$ac_objext
1985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1986 (eval $ac_compile) 2>conftest.er1
1987 ac_status=$?
1988 grep -v '^ *+' conftest.er1 >conftest.err
1989 rm -f conftest.er1
1990 cat conftest.err >&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -z "$ac_c_werror_flag"
1994 || test ! -s conftest.err'
1995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996 (eval $ac_try) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; } &&
2000 { ac_try='test -s conftest.$ac_objext'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2006 ac_cv_prog_cc_g=yes
2007 else
2008 echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2010
2011 ac_cv_prog_cc_g=no
2012 fi
2013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2014 fi
2015 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2016 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2017 if test "$ac_test_CFLAGS" = set; then
2018 CFLAGS=$ac_save_CFLAGS
2019 elif test $ac_cv_prog_cc_g = yes; then
2020 if test "$GCC" = yes; then
2021 CFLAGS="-g -O2"
2022 else
2023 CFLAGS="-g"
2024 fi
2025 else
2026 if test "$GCC" = yes; then
2027 CFLAGS="-O2"
2028 else
2029 CFLAGS=
2030 fi
2031 fi
2032 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2033 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2034 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037 ac_cv_prog_cc_stdc=no
2038 ac_save_CC=$CC
2039 cat >conftest.$ac_ext <<_ACEOF
2040 /* confdefs.h. */
2041 _ACEOF
2042 cat confdefs.h >>conftest.$ac_ext
2043 cat >>conftest.$ac_ext <<_ACEOF
2044 /* end confdefs.h. */
2045 #include <stdarg.h>
2046 #include <stdio.h>
2047 #include <sys/types.h>
2048 #include <sys/stat.h>
2049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2050 struct buf { int x; };
2051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2052 static char *e (p, i)
2053 char **p;
2054 int i;
2055 {
2056 return p[i];
2057 }
2058 static char *f (char * (*g) (char **, int), char **p, ...)
2059 {
2060 char *s;
2061 va_list v;
2062 va_start (v,p);
2063 s = g (p, va_arg (v,int));
2064 va_end (v);
2065 return s;
2066 }
2067
2068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2069 function prototypes and stuff, but not '\xHH' hex character constants.
2070 These don't provoke an error unfortunately, instead are silently treated
2071 as 'x'. The following induces an error, until -std1 is added to get
2072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2073 array size at least. It's necessary to write '\x00'==0 to get something
2074 that's true only with -std1. */
2075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2076
2077 int test (int i, double x);
2078 struct s1 {int (*f) (int a);};
2079 struct s2 {int (*f) (double a);};
2080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2081 int argc;
2082 char **argv;
2083 int
2084 main ()
2085 {
2086 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 # Don't try gcc -ansi; that turns off useful extensions and
2092 # breaks some systems' header files.
2093 # AIX -qlanglvl=ansi
2094 # Ultrix and OSF/1 -std1
2095 # HP-UX 10.20 and later -Ae
2096 # HP-UX older versions -Aa -D_HPUX_SOURCE
2097 # SVR4 -Xc -D__EXTENSIONS__
2098 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2099 do
2100 CC="$ac_save_CC $ac_arg"
2101 rm -f conftest.$ac_objext
2102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103 (eval $ac_compile) 2>conftest.er1
2104 ac_status=$?
2105 grep -v '^ *+' conftest.er1 >conftest.err
2106 rm -f conftest.er1
2107 cat conftest.err >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); } &&
2110 { ac_try='test -z "$ac_c_werror_flag"
2111 || test ! -s conftest.err'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 (eval $ac_try) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; } &&
2117 { ac_try='test -s conftest.$ac_objext'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2123 ac_cv_prog_cc_stdc=$ac_arg
2124 break
2125 else
2126 echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129 fi
2130 rm -f conftest.err conftest.$ac_objext
2131 done
2132 rm -f conftest.$ac_ext conftest.$ac_objext
2133 CC=$ac_save_CC
2134
2135 fi
2136
2137 case "x$ac_cv_prog_cc_stdc" in
2138 x|xno)
2139 echo "$as_me:$LINENO: result: none needed" >&5
2140 echo "${ECHO_T}none needed" >&6 ;;
2141 *)
2142 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2143 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2144 CC="$CC $ac_cv_prog_cc_stdc" ;;
2145 esac
2146
2147 # Some people use a C++ compiler to compile C. Since we use `exit',
2148 # in C++ we need to declare it. In case someone uses the same compiler
2149 # for both compiling C and C++ we need to have the C++ compiler decide
2150 # the declaration of exit, since it's the most demanding environment.
2151 cat >conftest.$ac_ext <<_ACEOF
2152 #ifndef __cplusplus
2153 choke me
2154 #endif
2155 _ACEOF
2156 rm -f conftest.$ac_objext
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>conftest.er1
2159 ac_status=$?
2160 grep -v '^ *+' conftest.er1 >conftest.err
2161 rm -f conftest.er1
2162 cat conftest.err >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try='test -z "$ac_c_werror_flag"
2166 || test ! -s conftest.err'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 (eval $ac_try) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; } &&
2172 { ac_try='test -s conftest.$ac_objext'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2178 for ac_declaration in \
2179 '' \
2180 'extern "C" void std::exit (int) throw (); using std::exit;' \
2181 'extern "C" void std::exit (int); using std::exit;' \
2182 'extern "C" void exit (int) throw ();' \
2183 'extern "C" void exit (int);' \
2184 'void exit (int);'
2185 do
2186 cat >conftest.$ac_ext <<_ACEOF
2187 /* confdefs.h. */
2188 _ACEOF
2189 cat confdefs.h >>conftest.$ac_ext
2190 cat >>conftest.$ac_ext <<_ACEOF
2191 /* end confdefs.h. */
2192 $ac_declaration
2193 #include <stdlib.h>
2194 int
2195 main ()
2196 {
2197 exit (42);
2198 ;
2199 return 0;
2200 }
2201 _ACEOF
2202 rm -f conftest.$ac_objext
2203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204 (eval $ac_compile) 2>conftest.er1
2205 ac_status=$?
2206 grep -v '^ *+' conftest.er1 >conftest.err
2207 rm -f conftest.er1
2208 cat conftest.err >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); } &&
2211 { ac_try='test -z "$ac_c_werror_flag"
2212 || test ! -s conftest.err'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; } &&
2218 { ac_try='test -s conftest.$ac_objext'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2224 :
2225 else
2226 echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2228
2229 continue
2230 fi
2231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232 cat >conftest.$ac_ext <<_ACEOF
2233 /* confdefs.h. */
2234 _ACEOF
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h. */
2238 $ac_declaration
2239 int
2240 main ()
2241 {
2242 exit (42);
2243 ;
2244 return 0;
2245 }
2246 _ACEOF
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>conftest.er1
2250 ac_status=$?
2251 grep -v '^ *+' conftest.er1 >conftest.err
2252 rm -f conftest.er1
2253 cat conftest.err >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } &&
2256 { ac_try='test -z "$ac_c_werror_flag"
2257 || test ! -s conftest.err'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2269 break
2270 else
2271 echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 fi
2275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2276 done
2277 rm -f conftest*
2278 if test -n "$ac_declaration"; then
2279 echo '#ifdef __cplusplus' >>confdefs.h
2280 echo $ac_declaration >>confdefs.h
2281 echo '#endif' >>confdefs.h
2282 fi
2283
2284 else
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 fi
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 ac_ext=c
2291 ac_cpp='$CPP $CPPFLAGS'
2292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2295
2296
2297 cat >>confdefs.h <<\_ACEOF
2298 #define _GNU_SOURCE 1
2299 _ACEOF
2300
2301
2302
2303 ac_ext=c
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2309 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2310 # On Suns, sometimes $CPP names a directory.
2311 if test -n "$CPP" && test -d "$CPP"; then
2312 CPP=
2313 fi
2314 if test -z "$CPP"; then
2315 if test "${ac_cv_prog_CPP+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318 # Double quotes because CPP needs to be expanded
2319 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2320 do
2321 ac_preproc_ok=false
2322 for ac_c_preproc_warn_flag in '' yes
2323 do
2324 # Use a header file that comes with gcc, so configuring glibc
2325 # with a fresh cross-compiler works.
2326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2327 # <limits.h> exists even on freestanding compilers.
2328 # On the NeXT, cc -E runs the code through the compiler's parser,
2329 # not just through cpp. "Syntax error" is here to catch this case.
2330 cat >conftest.$ac_ext <<_ACEOF
2331 /* confdefs.h. */
2332 _ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h. */
2336 #ifdef __STDC__
2337 # include <limits.h>
2338 #else
2339 # include <assert.h>
2340 #endif
2341 Syntax error
2342 _ACEOF
2343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } >/dev/null; then
2351 if test -s conftest.err; then
2352 ac_cpp_err=$ac_c_preproc_warn_flag
2353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2354 else
2355 ac_cpp_err=
2356 fi
2357 else
2358 ac_cpp_err=yes
2359 fi
2360 if test -z "$ac_cpp_err"; then
2361 :
2362 else
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 # Broken: fails on valid input.
2367 continue
2368 fi
2369 rm -f conftest.err conftest.$ac_ext
2370
2371 # OK, works on sane cases. Now check whether non-existent headers
2372 # can be detected and how.
2373 cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h. */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2379 #include <ac_nonexistent.h>
2380 _ACEOF
2381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 ac_status=$?
2384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev/null; then
2389 if test -s conftest.err; then
2390 ac_cpp_err=$ac_c_preproc_warn_flag
2391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2392 else
2393 ac_cpp_err=
2394 fi
2395 else
2396 ac_cpp_err=yes
2397 fi
2398 if test -z "$ac_cpp_err"; then
2399 # Broken: success on invalid input.
2400 continue
2401 else
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 # Passes both tests.
2406 ac_preproc_ok=:
2407 break
2408 fi
2409 rm -f conftest.err conftest.$ac_ext
2410
2411 done
2412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2413 rm -f conftest.err conftest.$ac_ext
2414 if $ac_preproc_ok; then
2415 break
2416 fi
2417
2418 done
2419 ac_cv_prog_CPP=$CPP
2420
2421 fi
2422 CPP=$ac_cv_prog_CPP
2423 else
2424 ac_cv_prog_CPP=$CPP
2425 fi
2426 echo "$as_me:$LINENO: result: $CPP" >&5
2427 echo "${ECHO_T}$CPP" >&6
2428 ac_preproc_ok=false
2429 for ac_c_preproc_warn_flag in '' yes
2430 do
2431 # Use a header file that comes with gcc, so configuring glibc
2432 # with a fresh cross-compiler works.
2433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2434 # <limits.h> exists even on freestanding compilers.
2435 # On the NeXT, cc -E runs the code through the compiler's parser,
2436 # not just through cpp. "Syntax error" is here to catch this case.
2437 cat >conftest.$ac_ext <<_ACEOF
2438 /* confdefs.h. */
2439 _ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2443 #ifdef __STDC__
2444 # include <limits.h>
2445 #else
2446 # include <assert.h>
2447 #endif
2448 Syntax error
2449 _ACEOF
2450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2452 ac_status=$?
2453 grep -v '^ *+' conftest.er1 >conftest.err
2454 rm -f conftest.er1
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } >/dev/null; then
2458 if test -s conftest.err; then
2459 ac_cpp_err=$ac_c_preproc_warn_flag
2460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2461 else
2462 ac_cpp_err=
2463 fi
2464 else
2465 ac_cpp_err=yes
2466 fi
2467 if test -z "$ac_cpp_err"; then
2468 :
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2472
2473 # Broken: fails on valid input.
2474 continue
2475 fi
2476 rm -f conftest.err conftest.$ac_ext
2477
2478 # OK, works on sane cases. Now check whether non-existent headers
2479 # can be detected and how.
2480 cat >conftest.$ac_ext <<_ACEOF
2481 /* confdefs.h. */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2486 #include <ac_nonexistent.h>
2487 _ACEOF
2488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } >/dev/null; then
2496 if test -s conftest.err; then
2497 ac_cpp_err=$ac_c_preproc_warn_flag
2498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2499 else
2500 ac_cpp_err=
2501 fi
2502 else
2503 ac_cpp_err=yes
2504 fi
2505 if test -z "$ac_cpp_err"; then
2506 # Broken: success on invalid input.
2507 continue
2508 else
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512 # Passes both tests.
2513 ac_preproc_ok=:
2514 break
2515 fi
2516 rm -f conftest.err conftest.$ac_ext
2517
2518 done
2519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2520 rm -f conftest.err conftest.$ac_ext
2521 if $ac_preproc_ok; then
2522 :
2523 else
2524 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2527 See \`config.log' for more details." >&2;}
2528 { (exit 1); exit 1; }; }
2529 fi
2530
2531 ac_ext=c
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536
2537
2538 echo "$as_me:$LINENO: checking for egrep" >&5
2539 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2540 if test "${ac_cv_prog_egrep+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2544 then ac_cv_prog_egrep='grep -E'
2545 else ac_cv_prog_egrep='egrep'
2546 fi
2547 fi
2548 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2549 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2550 EGREP=$ac_cv_prog_egrep
2551
2552
2553
2554 echo "$as_me:$LINENO: checking for AIX" >&5
2555 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2556 cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h. */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2562 #ifdef _AIX
2563 yes
2564 #endif
2565
2566 _ACEOF
2567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2568 $EGREP "yes" >/dev/null 2>&1; then
2569 echo "$as_me:$LINENO: result: yes" >&5
2570 echo "${ECHO_T}yes" >&6
2571 cat >>confdefs.h <<\_ACEOF
2572 #define _ALL_SOURCE 1
2573 _ACEOF
2574
2575 else
2576 echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6
2578 fi
2579 rm -f conftest*
2580
2581
2582 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2583 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2584 if test "${ac_cv_search_strerror+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587 ac_func_search_save_LIBS=$LIBS
2588 ac_cv_search_strerror=no
2589 cat >conftest.$ac_ext <<_ACEOF
2590 /* confdefs.h. */
2591 _ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2595
2596 /* Override any gcc2 internal prototype to avoid an error. */
2597 #ifdef __cplusplus
2598 extern "C"
2599 #endif
2600 /* We use char because int might match the return type of a gcc2
2601 builtin and then its argument prototype would still apply. */
2602 char strerror ();
2603 int
2604 main ()
2605 {
2606 strerror ();
2607 ;
2608 return 0;
2609 }
2610 _ACEOF
2611 rm -f conftest.$ac_objext conftest$ac_exeext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2613 (eval $ac_link) 2>conftest.er1
2614 ac_status=$?
2615 grep -v '^ *+' conftest.er1 >conftest.err
2616 rm -f conftest.er1
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest$ac_exeext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 ac_cv_search_strerror="none required"
2634 else
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 fi
2639 rm -f conftest.err conftest.$ac_objext \
2640 conftest$ac_exeext conftest.$ac_ext
2641 if test "$ac_cv_search_strerror" = no; then
2642 for ac_lib in cposix; do
2643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2644 cat >conftest.$ac_ext <<_ACEOF
2645 /* confdefs.h. */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2650
2651 /* Override any gcc2 internal prototype to avoid an error. */
2652 #ifdef __cplusplus
2653 extern "C"
2654 #endif
2655 /* We use char because int might match the return type of a gcc2
2656 builtin and then its argument prototype would still apply. */
2657 char strerror ();
2658 int
2659 main ()
2660 {
2661 strerror ();
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext conftest$ac_exeext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2668 (eval $ac_link) 2>conftest.er1
2669 ac_status=$?
2670 grep -v '^ *+' conftest.er1 >conftest.err
2671 rm -f conftest.er1
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest$ac_exeext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 ac_cv_search_strerror="-l$ac_lib"
2689 break
2690 else
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2693
2694 fi
2695 rm -f conftest.err conftest.$ac_objext \
2696 conftest$ac_exeext conftest.$ac_ext
2697 done
2698 fi
2699 LIBS=$ac_func_search_save_LIBS
2700 fi
2701 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2702 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2703 if test "$ac_cv_search_strerror" != no; then
2704 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2705
2706 fi
2707
2708
2709
2710
2711 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2712 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2713 if test "${am_cv_prog_cc_stdc+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 am_cv_prog_cc_stdc=no
2717 ac_save_CC="$CC"
2718 # Don't try gcc -ansi; that turns off useful extensions and
2719 # breaks some systems' header files.
2720 # AIX -qlanglvl=ansi
2721 # Ultrix and OSF/1 -std1
2722 # HP-UX 10.20 and later -Ae
2723 # HP-UX older versions -Aa -D_HPUX_SOURCE
2724 # SVR4 -Xc -D__EXTENSIONS__
2725 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726 do
2727 CC="$ac_save_CC $ac_arg"
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2734 #include <stdarg.h>
2735 #include <stdio.h>
2736 #include <sys/types.h>
2737 #include <sys/stat.h>
2738 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2739 struct buf { int x; };
2740 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2741 static char *e (p, i)
2742 char **p;
2743 int i;
2744 {
2745 return p[i];
2746 }
2747 static char *f (char * (*g) (char **, int), char **p, ...)
2748 {
2749 char *s;
2750 va_list v;
2751 va_start (v,p);
2752 s = g (p, va_arg (v,int));
2753 va_end (v);
2754 return s;
2755 }
2756 int test (int i, double x);
2757 struct s1 {int (*f) (int a);};
2758 struct s2 {int (*f) (double a);};
2759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2760 int argc;
2761 char **argv;
2762
2763 int
2764 main ()
2765 {
2766
2767 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2768
2769 ;
2770 return 0;
2771 }
2772 _ACEOF
2773 rm -f conftest.$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>conftest.er1
2776 ac_status=$?
2777 grep -v '^ *+' conftest.er1 >conftest.err
2778 rm -f conftest.er1
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try='test -z "$ac_c_werror_flag"
2783 || test ! -s conftest.err'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 am_cv_prog_cc_stdc="$ac_arg"; break
2796 else
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 fi
2801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2802 done
2803 CC="$ac_save_CC"
2804
2805 fi
2806
2807 if test -z "$am_cv_prog_cc_stdc"; then
2808 echo "$as_me:$LINENO: result: none needed" >&5
2809 echo "${ECHO_T}none needed" >&6
2810 else
2811 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2812 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2813 fi
2814 case "x$am_cv_prog_cc_stdc" in
2815 x|xno) ;;
2816 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2817 esac
2818
2819
2820 ac_aux_dir=
2821 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2822 if test -f $ac_dir/install-sh; then
2823 ac_aux_dir=$ac_dir
2824 ac_install_sh="$ac_aux_dir/install-sh -c"
2825 break
2826 elif test -f $ac_dir/install.sh; then
2827 ac_aux_dir=$ac_dir
2828 ac_install_sh="$ac_aux_dir/install.sh -c"
2829 break
2830 elif test -f $ac_dir/shtool; then
2831 ac_aux_dir=$ac_dir
2832 ac_install_sh="$ac_aux_dir/shtool install -c"
2833 break
2834 fi
2835 done
2836 if test -z "$ac_aux_dir"; then
2837 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2838 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2839 { (exit 1); exit 1; }; }
2840 fi
2841 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2842 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2843 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2844
2845 # Make sure we can run config.sub.
2846 $ac_config_sub sun4 >/dev/null 2>&1 ||
2847 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2848 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2849 { (exit 1); exit 1; }; }
2850
2851 echo "$as_me:$LINENO: checking build system type" >&5
2852 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2853 if test "${ac_cv_build+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 ac_cv_build_alias=$build_alias
2857 test -z "$ac_cv_build_alias" &&
2858 ac_cv_build_alias=`$ac_config_guess`
2859 test -z "$ac_cv_build_alias" &&
2860 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2861 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2862 { (exit 1); exit 1; }; }
2863 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2864 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2865 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2866 { (exit 1); exit 1; }; }
2867
2868 fi
2869 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2870 echo "${ECHO_T}$ac_cv_build" >&6
2871 build=$ac_cv_build
2872 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2873 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2874 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2875
2876
2877 echo "$as_me:$LINENO: checking host system type" >&5
2878 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2879 if test "${ac_cv_host+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882 ac_cv_host_alias=$host_alias
2883 test -z "$ac_cv_host_alias" &&
2884 ac_cv_host_alias=$ac_cv_build_alias
2885 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2886 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2887 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2888 { (exit 1); exit 1; }; }
2889
2890 fi
2891 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2892 echo "${ECHO_T}$ac_cv_host" >&6
2893 host=$ac_cv_host
2894 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2895 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2896 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2897
2898
2899 echo "$as_me:$LINENO: checking target system type" >&5
2900 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2901 if test "${ac_cv_target+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904 ac_cv_target_alias=$target_alias
2905 test "x$ac_cv_target_alias" = "x" &&
2906 ac_cv_target_alias=$ac_cv_host_alias
2907 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2908 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2909 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2910 { (exit 1); exit 1; }; }
2911
2912 fi
2913 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2914 echo "${ECHO_T}$ac_cv_target" >&6
2915 target=$ac_cv_target
2916 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2917 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2918 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2919
2920
2921 # The aliases save the names the user supplied, while $host etc.
2922 # will get canonicalized.
2923 test -n "$target_alias" &&
2924 test "$program_prefix$program_suffix$program_transform_name" = \
2925 NONENONEs,x,x, &&
2926 program_prefix=${target_alias}-
2927
2928
2929 CONFIG_OBS=
2930 CONFIG_DEPS=
2931 CONFIG_SRCS=
2932 ENABLE_CFLAGS=
2933
2934 CONFIG_ALL=
2935 CONFIG_CLEAN=
2936 CONFIG_INSTALL=
2937 CONFIG_UNINSTALL=
2938
2939 # If we haven't got the data from the intl directory,
2940 # assume NLS is disabled.
2941 USE_NLS=no
2942 LIBINTL=
2943 LIBINTL_DEP=
2944 INCINTL=
2945 XGETTEXT=
2946 GMSGFMT=
2947 POSUB=
2948 if test -f ../intl/config.intl; then
2949 . ../intl/config.intl
2950 fi
2951 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2952 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2953 if test x"$USE_NLS" != xyes; then
2954 echo "$as_me:$LINENO: result: no" >&5
2955 echo "${ECHO_T}no" >&6
2956 else
2957 echo "$as_me:$LINENO: result: yes" >&5
2958 echo "${ECHO_T}yes" >&6
2959
2960 cat >>confdefs.h <<\_ACEOF
2961 #define ENABLE_NLS 1
2962 _ACEOF
2963
2964
2965 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2966 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2967 # Look for .po and .gmo files in the source directory.
2968 CATALOGS=
2969 XLINGUAS=
2970 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2971 # If there aren't any .gmo files the shell will give us the
2972 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2973 # weeded out.
2974 case "$cat" in *\**)
2975 continue;;
2976 esac
2977 # The quadruple backslash is collapsed to a double backslash
2978 # by the backticks, then collapsed again by the double quotes,
2979 # leaving us with one backslash in the sed expression (right
2980 # before the dot that mustn't act as a wildcard).
2981 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2982 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2983 # The user is allowed to set LINGUAS to a list of languages to
2984 # install catalogs for. If it's empty that means "all of them."
2985 if test "x$LINGUAS" = x; then
2986 CATALOGS="$CATALOGS $cat"
2987 XLINGUAS="$XLINGUAS $lang"
2988 else
2989 case "$LINGUAS" in *$lang*)
2990 CATALOGS="$CATALOGS $cat"
2991 XLINGUAS="$XLINGUAS $lang"
2992 ;;
2993 esac
2994 fi
2995 done
2996 LINGUAS="$XLINGUAS"
2997 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2998 echo "${ECHO_T}$LINGUAS" >&6
2999
3000
3001 DATADIRNAME=share
3002
3003 INSTOBJEXT=.mo
3004
3005 GENCAT=gencat
3006
3007 CATOBJEXT=.gmo
3008
3009 fi
3010
3011 localedir='${datadir}/locale'
3012
3013
3014 if test x"$USE_NLS" = xyes; then
3015 CONFIG_ALL="$CONFIG_ALL all-po"
3016 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3017 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3018 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3019 fi
3020
3021 PACKAGE=gdb
3022
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE "$PACKAGE"
3025 _ACEOF
3026
3027
3028
3029 debugdir=${libdir}/debug
3030
3031
3032 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
3033 if test "${with_separate_debug_dir+set}" = set; then
3034 withval="$with_separate_debug_dir"
3035 debugdir="${withval}"
3036 fi;
3037
3038
3039 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3041 ac_define_dir=`eval echo $debugdir`
3042 ac_define_dir=`eval echo $ac_define_dir`
3043
3044 cat >>confdefs.h <<_ACEOF
3045 #define DEBUGDIR "$ac_define_dir"
3046 _ACEOF
3047
3048
3049 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3050
3051
3052
3053 subdirs="$subdirs doc testsuite"
3054
3055
3056 # Provide defaults for some variables set by the per-host and per-target
3057 # configuration.
3058 gdb_host_obs=posix-hdep.o
3059
3060 . $srcdir/configure.host
3061
3062 . $srcdir/configure.tgt
3063
3064 # Fetch the default architecture and default target vector from BFD.
3065 targ=$target; . $srcdir/../bfd/config.bfd
3066
3067 # We only want the first architecture, so strip off the others if
3068 # there is more than one.
3069 targ_archs=`echo $targ_archs | sed 's/ .*//'`
3070
3071 if test "x$targ_archs" != x; then
3072
3073 cat >>confdefs.h <<_ACEOF
3074 #define DEFAULT_BFD_ARCH $targ_archs
3075 _ACEOF
3076
3077 fi
3078 if test "x$targ_defvec" != x; then
3079
3080 cat >>confdefs.h <<_ACEOF
3081 #define DEFAULT_BFD_VEC $targ_defvec
3082 _ACEOF
3083
3084 fi
3085
3086 test "$program_prefix" != NONE &&
3087 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3088 # Use a double $ so make ignores it.
3089 test "$program_suffix" != NONE &&
3090 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3091 # Double any \ or $. echo might interpret backslashes.
3092 # By default was `s,x,x', remove it if useless.
3093 cat <<\_ACEOF >conftest.sed
3094 s/[\\$]/&&/g;s/;s,x,x,$//
3095 _ACEOF
3096 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3097 rm conftest.sed
3098
3099
3100 # The CLI cannot be disabled yet, but may be in the future.
3101
3102 # Enable CLI.
3103 # Check whether --enable-gdbcli or --disable-gdbcli was given.
3104 if test "${enable_gdbcli+set}" = set; then
3105 enableval="$enable_gdbcli"
3106 case $enableval in
3107 yes)
3108 ;;
3109 no)
3110 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3111 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3112 { (exit 1); exit 1; }; } ;;
3113 *)
3114 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3116 { (exit 1); exit 1; }; } ;;
3117 esac
3118 else
3119 enable_gdbcli=yes
3120 fi;
3121 if test x"$enable_gdbcli" = xyes; then
3122 if test -d $srcdir/cli; then
3123 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3124 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3125 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3126 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3127 fi
3128 fi
3129
3130 # Enable MI.
3131 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3132 if test "${enable_gdbmi+set}" = set; then
3133 enableval="$enable_gdbmi"
3134 case $enableval in
3135 yes | no)
3136 ;;
3137 *)
3138 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3139 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3140 { (exit 1); exit 1; }; } ;;
3141 esac
3142 else
3143 enable_gdbmi=yes
3144 fi;
3145 if test x"$enable_gdbmi" = xyes; then
3146 if test -d $srcdir/mi; then
3147 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3148 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3149 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3150 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3151 fi
3152 fi
3153
3154 # Enable TUI.
3155 # Check whether --enable-tui or --disable-tui was given.
3156 if test "${enable_tui+set}" = set; then
3157 enableval="$enable_tui"
3158 case $enableval in
3159 yes | no)
3160 ;;
3161 *)
3162 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3163 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3164 { (exit 1); exit 1; }; } ;;
3165 esac
3166 else
3167 enable_tui=yes
3168 fi;
3169
3170 # Enable gdbtk.
3171 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3172 if test "${enable_gdbtk+set}" = set; then
3173 enableval="$enable_gdbtk"
3174 case $enableval in
3175 yes | no)
3176 ;;
3177 *)
3178 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3179 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3180 { (exit 1); exit 1; }; } ;;
3181 esac
3182 else
3183 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
3184 enable_gdbtk=yes
3185 else
3186 enable_gdbtk=no
3187 fi
3188 fi;
3189 # We unconditionally disable gdbtk tests on selected platforms.
3190 case $host_os in
3191 go32* | windows*)
3192 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3193 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3194 enable_gdbtk=no ;;
3195 esac
3196
3197 # Libunwind support.
3198 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3200 if test "${ac_cv_header_stdc+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203 cat >conftest.$ac_ext <<_ACEOF
3204 /* confdefs.h. */
3205 _ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3209 #include <stdlib.h>
3210 #include <stdarg.h>
3211 #include <string.h>
3212 #include <float.h>
3213
3214 int
3215 main ()
3216 {
3217
3218 ;
3219 return 0;
3220 }
3221 _ACEOF
3222 rm -f conftest.$ac_objext
3223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3224 (eval $ac_compile) 2>conftest.er1
3225 ac_status=$?
3226 grep -v '^ *+' conftest.er1 >conftest.err
3227 rm -f conftest.er1
3228 cat conftest.err >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } &&
3231 { ac_try='test -z "$ac_c_werror_flag"
3232 || test ! -s conftest.err'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 (eval $ac_try) 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; } &&
3238 { ac_try='test -s conftest.$ac_objext'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 (eval $ac_try) 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3244 ac_cv_header_stdc=yes
3245 else
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249 ac_cv_header_stdc=no
3250 fi
3251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3252
3253 if test $ac_cv_header_stdc = yes; then
3254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3261 #include <string.h>
3262
3263 _ACEOF
3264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3265 $EGREP "memchr" >/dev/null 2>&1; then
3266 :
3267 else
3268 ac_cv_header_stdc=no
3269 fi
3270 rm -f conftest*
3271
3272 fi
3273
3274 if test $ac_cv_header_stdc = yes; then
3275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <stdlib.h>
3283
3284 _ACEOF
3285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3286 $EGREP "free" >/dev/null 2>&1; then
3287 :
3288 else
3289 ac_cv_header_stdc=no
3290 fi
3291 rm -f conftest*
3292
3293 fi
3294
3295 if test $ac_cv_header_stdc = yes; then
3296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3297 if test "$cross_compiling" = yes; then
3298 :
3299 else
3300 cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h. */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306 #include <ctype.h>
3307 #if ((' ' & 0x0FF) == 0x020)
3308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3310 #else
3311 # define ISLOWER(c) \
3312 (('a' <= (c) && (c) <= 'i') \
3313 || ('j' <= (c) && (c) <= 'r') \
3314 || ('s' <= (c) && (c) <= 'z'))
3315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3316 #endif
3317
3318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3319 int
3320 main ()
3321 {
3322 int i;
3323 for (i = 0; i < 256; i++)
3324 if (XOR (islower (i), ISLOWER (i))
3325 || toupper (i) != TOUPPER (i))
3326 exit(2);
3327 exit (0);
3328 }
3329 _ACEOF
3330 rm -f conftest$ac_exeext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3332 (eval $ac_link) 2>&5
3333 ac_status=$?
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 (eval $ac_try) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3341 :
3342 else
3343 echo "$as_me: program exited with status $ac_status" >&5
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347 ( exit $ac_status )
3348 ac_cv_header_stdc=no
3349 fi
3350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3351 fi
3352 fi
3353 fi
3354 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3355 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3356 if test $ac_cv_header_stdc = yes; then
3357
3358 cat >>confdefs.h <<\_ACEOF
3359 #define STDC_HEADERS 1
3360 _ACEOF
3361
3362 fi
3363
3364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3375 inttypes.h stdint.h unistd.h
3376 do
3377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3378 echo "$as_me:$LINENO: checking for $ac_header" >&5
3379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h. */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389 $ac_includes_default
3390
3391 #include <$ac_header>
3392 _ACEOF
3393 rm -f conftest.$ac_objext
3394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395 (eval $ac_compile) 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } &&
3402 { ac_try='test -z "$ac_c_werror_flag"
3403 || test ! -s conftest.err'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; } &&
3409 { ac_try='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 eval "$as_ac_Header=yes"
3416 else
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420 eval "$as_ac_Header=no"
3421 fi
3422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3423 fi
3424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3427 cat >>confdefs.h <<_ACEOF
3428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3429 _ACEOF
3430
3431 fi
3432
3433 done
3434
3435
3436
3437 # Check whether --with-libunwind or --without-libunwind was given.
3438 if test "${with_libunwind+set}" = set; then
3439 withval="$with_libunwind"
3440 case "${withval}" in
3441 yes) enable_libunwind=yes ;;
3442 no) enable_libunwind=no ;;
3443 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3444 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3445 { (exit 1); exit 1; }; } ;;
3446 esac
3447 else
3448
3449
3450 for ac_header in libunwind.h
3451 do
3452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3454 echo "$as_me:$LINENO: checking for $ac_header" >&5
3455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 fi
3459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3461 else
3462 # Is the header compilable?
3463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3465 cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h. */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3471 $ac_includes_default
3472 #include <$ac_header>
3473 _ACEOF
3474 rm -f conftest.$ac_objext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -z "$ac_c_werror_flag"
3484 || test ! -s conftest.err'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; } &&
3490 { ac_try='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 ac_header_compiler=yes
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 ac_header_compiler=no
3502 fi
3503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3505 echo "${ECHO_T}$ac_header_compiler" >&6
3506
3507 # Is the header present?
3508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h. */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3516 #include <$ac_header>
3517 _ACEOF
3518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } >/dev/null; then
3526 if test -s conftest.err; then
3527 ac_cpp_err=$ac_c_preproc_warn_flag
3528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3529 else
3530 ac_cpp_err=
3531 fi
3532 else
3533 ac_cpp_err=yes
3534 fi
3535 if test -z "$ac_cpp_err"; then
3536 ac_header_preproc=yes
3537 else
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3540
3541 ac_header_preproc=no
3542 fi
3543 rm -f conftest.err conftest.$ac_ext
3544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3545 echo "${ECHO_T}$ac_header_preproc" >&6
3546
3547 # So? What about this header?
3548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3549 yes:no: )
3550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3554 ac_header_preproc=yes
3555 ;;
3556 no:yes:* )
3557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3569 (
3570 cat <<\_ASBOX
3571 ## ------------------------------------------ ##
3572 ## Report this to the AC_PACKAGE_NAME lists. ##
3573 ## ------------------------------------------ ##
3574 _ASBOX
3575 ) |
3576 sed "s/^/$as_me: WARNING: /" >&2
3577 ;;
3578 esac
3579 echo "$as_me:$LINENO: checking for $ac_header" >&5
3580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584 eval "$as_ac_Header=\$ac_header_preproc"
3585 fi
3586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3588
3589 fi
3590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3591 cat >>confdefs.h <<_ACEOF
3592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3593 _ACEOF
3594
3595 fi
3596
3597 done
3598
3599
3600 for ac_header in libunwind-ia64.h
3601 do
3602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3604 echo "$as_me:$LINENO: checking for $ac_header" >&5
3605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 fi
3609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3611 else
3612 # Is the header compilable?
3613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3615 cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h. */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3621 $ac_includes_default
3622 #include <$ac_header>
3623 _ACEOF
3624 rm -f conftest.$ac_objext
3625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3626 (eval $ac_compile) 2>conftest.er1
3627 ac_status=$?
3628 grep -v '^ *+' conftest.er1 >conftest.err
3629 rm -f conftest.er1
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } &&
3633 { ac_try='test -z "$ac_c_werror_flag"
3634 || test ! -s conftest.err'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 (eval $ac_try) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; } &&
3640 { ac_try='test -s conftest.$ac_objext'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_header_compiler=yes
3647 else
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651 ac_header_compiler=no
3652 fi
3653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3655 echo "${ECHO_T}$ac_header_compiler" >&6
3656
3657 # Is the header present?
3658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3660 cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h. */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 #include <$ac_header>
3667 _ACEOF
3668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } >/dev/null; then
3676 if test -s conftest.err; then
3677 ac_cpp_err=$ac_c_preproc_warn_flag
3678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3679 else
3680 ac_cpp_err=
3681 fi
3682 else
3683 ac_cpp_err=yes
3684 fi
3685 if test -z "$ac_cpp_err"; then
3686 ac_header_preproc=yes
3687 else
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691 ac_header_preproc=no
3692 fi
3693 rm -f conftest.err conftest.$ac_ext
3694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3695 echo "${ECHO_T}$ac_header_preproc" >&6
3696
3697 # So? What about this header?
3698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3699 yes:no: )
3700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3704 ac_header_preproc=yes
3705 ;;
3706 no:yes:* )
3707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3719 (
3720 cat <<\_ASBOX
3721 ## ------------------------------------------ ##
3722 ## Report this to the AC_PACKAGE_NAME lists. ##
3723 ## ------------------------------------------ ##
3724 _ASBOX
3725 ) |
3726 sed "s/^/$as_me: WARNING: /" >&2
3727 ;;
3728 esac
3729 echo "$as_me:$LINENO: checking for $ac_header" >&5
3730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 eval "$as_ac_Header=\$ac_header_preproc"
3735 fi
3736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3738
3739 fi
3740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3741 cat >>confdefs.h <<_ACEOF
3742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3743 _ACEOF
3744
3745 fi
3746
3747 done
3748
3749 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3750 enable_libunwind=yes;
3751 fi
3752
3753 fi;
3754
3755 if test x"$enable_libunwind" = xyes; then
3756
3757 for ac_header in libunwind.h
3758 do
3759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3761 echo "$as_me:$LINENO: checking for $ac_header" >&5
3762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 fi
3766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3768 else
3769 # Is the header compilable?
3770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 $ac_includes_default
3779 #include <$ac_header>
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3783 (eval $ac_compile) 2>conftest.er1
3784 ac_status=$?
3785 grep -v '^ *+' conftest.er1 >conftest.err
3786 rm -f conftest.er1
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } &&
3790 { ac_try='test -z "$ac_c_werror_flag"
3791 || test ! -s conftest.err'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 (eval $ac_try) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; } &&
3797 { ac_try='test -s conftest.$ac_objext'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 (eval $ac_try) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
3803 ac_header_compiler=yes
3804 else
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3807
3808 ac_header_compiler=no
3809 fi
3810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3812 echo "${ECHO_T}$ac_header_compiler" >&6
3813
3814 # Is the header present?
3815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #include <$ac_header>
3824 _ACEOF
3825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } >/dev/null; then
3833 if test -s conftest.err; then
3834 ac_cpp_err=$ac_c_preproc_warn_flag
3835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3836 else
3837 ac_cpp_err=
3838 fi
3839 else
3840 ac_cpp_err=yes
3841 fi
3842 if test -z "$ac_cpp_err"; then
3843 ac_header_preproc=yes
3844 else
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 ac_header_preproc=no
3849 fi
3850 rm -f conftest.err conftest.$ac_ext
3851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3852 echo "${ECHO_T}$ac_header_preproc" >&6
3853
3854 # So? What about this header?
3855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3856 yes:no: )
3857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3861 ac_header_preproc=yes
3862 ;;
3863 no:yes:* )
3864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3876 (
3877 cat <<\_ASBOX
3878 ## ------------------------------------------ ##
3879 ## Report this to the AC_PACKAGE_NAME lists. ##
3880 ## ------------------------------------------ ##
3881 _ASBOX
3882 ) |
3883 sed "s/^/$as_me: WARNING: /" >&2
3884 ;;
3885 esac
3886 echo "$as_me:$LINENO: checking for $ac_header" >&5
3887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891 eval "$as_ac_Header=\$ac_header_preproc"
3892 fi
3893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3895
3896 fi
3897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3898 cat >>confdefs.h <<_ACEOF
3899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3900 _ACEOF
3901
3902 fi
3903
3904 done
3905
3906
3907 for ac_header in libunwind-ia64.h
3908 do
3909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3911 echo "$as_me:$LINENO: checking for $ac_header" >&5
3912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 fi
3916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3918 else
3919 # Is the header compilable?
3920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h. */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928 $ac_includes_default
3929 #include <$ac_header>
3930 _ACEOF
3931 rm -f conftest.$ac_objext
3932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933 (eval $ac_compile) 2>conftest.er1
3934 ac_status=$?
3935 grep -v '^ *+' conftest.er1 >conftest.err
3936 rm -f conftest.er1
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } &&
3940 { ac_try='test -z "$ac_c_werror_flag"
3941 || test ! -s conftest.err'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 (eval $ac_try) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; } &&
3947 { ac_try='test -s conftest.$ac_objext'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 (eval $ac_try) 2>&5
3950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
3953 ac_header_compiler=yes
3954 else
3955 echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3957
3958 ac_header_compiler=no
3959 fi
3960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3962 echo "${ECHO_T}$ac_header_compiler" >&6
3963
3964 # Is the header present?
3965 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3973 #include <$ac_header>
3974 _ACEOF
3975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3977 ac_status=$?
3978 grep -v '^ *+' conftest.er1 >conftest.err
3979 rm -f conftest.er1
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } >/dev/null; then
3983 if test -s conftest.err; then
3984 ac_cpp_err=$ac_c_preproc_warn_flag
3985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3986 else
3987 ac_cpp_err=
3988 fi
3989 else
3990 ac_cpp_err=yes
3991 fi
3992 if test -z "$ac_cpp_err"; then
3993 ac_header_preproc=yes
3994 else
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3997
3998 ac_header_preproc=no
3999 fi
4000 rm -f conftest.err conftest.$ac_ext
4001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4002 echo "${ECHO_T}$ac_header_preproc" >&6
4003
4004 # So? What about this header?
4005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4006 yes:no: )
4007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4011 ac_header_preproc=yes
4012 ;;
4013 no:yes:* )
4014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4019 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4021 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4025 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4026 (
4027 cat <<\_ASBOX
4028 ## ------------------------------------------ ##
4029 ## Report this to the AC_PACKAGE_NAME lists. ##
4030 ## ------------------------------------------ ##
4031 _ASBOX
4032 ) |
4033 sed "s/^/$as_me: WARNING: /" >&2
4034 ;;
4035 esac
4036 echo "$as_me:$LINENO: checking for $ac_header" >&5
4037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041 eval "$as_ac_Header=\$ac_header_preproc"
4042 fi
4043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4045
4046 fi
4047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4048 cat >>confdefs.h <<_ACEOF
4049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4050 _ACEOF
4051
4052 fi
4053
4054 done
4055
4056
4057 cat >>confdefs.h <<\_ACEOF
4058 #define HAVE_LIBUNWIND 1
4059 _ACEOF
4060
4061 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4062 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4063 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4064 fi
4065
4066 # Profiling support.
4067 # Check whether --enable-profiling or --disable-profiling was given.
4068 if test "${enable_profiling+set}" = set; then
4069 enableval="$enable_profiling"
4070 case $enableval in
4071 yes | no)
4072 ;;
4073 *)
4074 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4075 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4076 { (exit 1); exit 1; }; } ;;
4077 esac
4078 else
4079 enable_profiling=no
4080 fi;
4081
4082
4083
4084 for ac_func in monstartup _mcleanup
4085 do
4086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4087 echo "$as_me:$LINENO: checking for $ac_func" >&5
4088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4089 if eval "test \"\${$as_ac_var+set}\" = set"; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4100 #define $ac_func innocuous_$ac_func
4101
4102 /* System header to define __stub macros and hopefully few prototypes,
4103 which can conflict with char $ac_func (); below.
4104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105 <limits.h> exists even on freestanding compilers. */
4106
4107 #ifdef __STDC__
4108 # include <limits.h>
4109 #else
4110 # include <assert.h>
4111 #endif
4112
4113 #undef $ac_func
4114
4115 /* Override any gcc2 internal prototype to avoid an error. */
4116 #ifdef __cplusplus
4117 extern "C"
4118 {
4119 #endif
4120 /* We use char because int might match the return type of a gcc2
4121 builtin and then its argument prototype would still apply. */
4122 char $ac_func ();
4123 /* The GNU C library defines this for functions which it implements
4124 to always fail with ENOSYS. Some functions are actually named
4125 something starting with __ and the normal name is an alias. */
4126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4127 choke me
4128 #else
4129 char (*f) () = $ac_func;
4130 #endif
4131 #ifdef __cplusplus
4132 }
4133 #endif
4134
4135 int
4136 main ()
4137 {
4138 return f != $ac_func;
4139 ;
4140 return 0;
4141 }
4142 _ACEOF
4143 rm -f conftest.$ac_objext conftest$ac_exeext
4144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4145 (eval $ac_link) 2>conftest.er1
4146 ac_status=$?
4147 grep -v '^ *+' conftest.er1 >conftest.err
4148 rm -f conftest.er1
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -z "$ac_c_werror_flag"
4153 || test ! -s conftest.err'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; } &&
4159 { ac_try='test -s conftest$ac_exeext'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 eval "$as_ac_var=yes"
4166 else
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 eval "$as_ac_var=no"
4171 fi
4172 rm -f conftest.err conftest.$ac_objext \
4173 conftest$ac_exeext conftest.$ac_ext
4174 fi
4175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4177 if test `eval echo '${'$as_ac_var'}'` = yes; then
4178 cat >>confdefs.h <<_ACEOF
4179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4180 _ACEOF
4181
4182 fi
4183 done
4184
4185 echo "$as_me:$LINENO: checking for _etext" >&5
4186 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
4187 if test "${ac_cv_var__etext+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <stdlib.h>
4197 extern char _etext;
4198
4199 int
4200 main ()
4201 {
4202 free (&_etext);
4203 ;
4204 return 0;
4205 }
4206 _ACEOF
4207 rm -f conftest.$ac_objext conftest$ac_exeext
4208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4209 (eval $ac_link) 2>conftest.er1
4210 ac_status=$?
4211 grep -v '^ *+' conftest.er1 >conftest.err
4212 rm -f conftest.er1
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -z "$ac_c_werror_flag"
4217 || test ! -s conftest.err'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 (eval $ac_try) 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; } &&
4223 { ac_try='test -s conftest$ac_exeext'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 (eval $ac_try) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; }; then
4229 ac_cv_var__etext=yes
4230 else
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 ac_cv_var__etext=no
4235 fi
4236 rm -f conftest.err conftest.$ac_objext \
4237 conftest$ac_exeext conftest.$ac_ext
4238 fi
4239 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4240 echo "${ECHO_T}$ac_cv_var__etext" >&6
4241 if test $ac_cv_var__etext = yes; then
4242
4243 cat >>confdefs.h <<\_ACEOF
4244 #define HAVE__ETEXT 1
4245 _ACEOF
4246
4247 fi
4248 if test "$enable_profiling" = yes ; then
4249 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4250 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4251 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4252 { (exit 1); exit 1; }; }
4253 fi
4254 PROFILE_CFLAGS=-pg
4255 OLD_CFLAGS="$CFLAGS"
4256 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4257
4258 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4259 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
4260 if test "${ac_cv_cc_supports_pg+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263 cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269
4270 int
4271 main ()
4272 {
4273 int x;
4274 ;
4275 return 0;
4276 }
4277 _ACEOF
4278 rm -f conftest.$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 (eval $ac_try) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 ac_cv_cc_supports_pg=yes
4301 else
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 ac_cv_cc_supports_pg=no
4306 fi
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4308 fi
4309 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4310 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
4311
4312 if test $ac_cv_cc_supports_pg = no; then
4313 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4314 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4315 { (exit 1); exit 1; }; }
4316 fi
4317
4318 CFLAGS="$OLD_CFLAGS"
4319 fi
4320
4321 # --------------------- #
4322 # Checks for programs. #
4323 # --------------------- #
4324
4325 for ac_prog in gawk mawk nawk awk
4326 do
4327 # Extract the first word of "$ac_prog", so it can be a program name with args.
4328 set dummy $ac_prog; ac_word=$2
4329 echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4331 if test "${ac_cv_prog_AWK+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 if test -n "$AWK"; then
4335 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4336 else
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4344 ac_cv_prog_AWK="$ac_prog"
4345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4347 fi
4348 done
4349 done
4350
4351 fi
4352 fi
4353 AWK=$ac_cv_prog_AWK
4354 if test -n "$AWK"; then
4355 echo "$as_me:$LINENO: result: $AWK" >&5
4356 echo "${ECHO_T}$AWK" >&6
4357 else
4358 echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6
4360 fi
4361
4362 test -n "$AWK" && break
4363 done
4364
4365 # Find a good install program. We prefer a C program (faster),
4366 # so one script is as good as another. But avoid the broken or
4367 # incompatible versions:
4368 # SysV /etc/install, /usr/sbin/install
4369 # SunOS /usr/etc/install
4370 # IRIX /sbin/install
4371 # AIX /bin/install
4372 # AmigaOS /C/install, which installs bootblocks on floppy discs
4373 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4374 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4375 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4376 # OS/2's system install, which has a completely different semantic
4377 # ./install, which can be erroneously created by make from ./install.sh.
4378 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4379 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4380 if test -z "$INSTALL"; then
4381 if test "${ac_cv_path_install+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 # Account for people who put trailing slashes in PATH elements.
4390 case $as_dir/ in
4391 ./ | .// | /cC/* | \
4392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4393 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4394 /usr/ucb/* ) ;;
4395 *)
4396 # OSF1 and SCO ODT 3.0 have their own names for install.
4397 # Don't use installbsd from OSF since it installs stuff as root
4398 # by default.
4399 for ac_prog in ginstall scoinst install; do
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4402 if test $ac_prog = install &&
4403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4404 # AIX install. It has an incompatible calling convention.
4405 :
4406 elif test $ac_prog = install &&
4407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4408 # program-specific install script used by HP pwplus--don't use.
4409 :
4410 else
4411 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4412 break 3
4413 fi
4414 fi
4415 done
4416 done
4417 ;;
4418 esac
4419 done
4420
4421
4422 fi
4423 if test "${ac_cv_path_install+set}" = set; then
4424 INSTALL=$ac_cv_path_install
4425 else
4426 # As a last resort, use the slow shell script. We don't cache a
4427 # path for INSTALL within a source directory, because that will
4428 # break other packages using the cache if that directory is
4429 # removed, or if the path is relative.
4430 INSTALL=$ac_install_sh
4431 fi
4432 fi
4433 echo "$as_me:$LINENO: result: $INSTALL" >&5
4434 echo "${ECHO_T}$INSTALL" >&6
4435
4436 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4437 # It thinks the first close brace ends the variable substitution.
4438 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4439
4440 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4441
4442 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4443
4444 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4445 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4446 LN_S=$as_ln_s
4447 if test "$LN_S" = "ln -s"; then
4448 echo "$as_me:$LINENO: result: yes" >&5
4449 echo "${ECHO_T}yes" >&6
4450 else
4451 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4452 echo "${ECHO_T}no, using $LN_S" >&6
4453 fi
4454
4455 if test -n "$ac_tool_prefix"; then
4456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4458 echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4460 if test "${ac_cv_prog_RANLIB+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463 if test -n "$RANLIB"; then
4464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4476 fi
4477 done
4478 done
4479
4480 fi
4481 fi
4482 RANLIB=$ac_cv_prog_RANLIB
4483 if test -n "$RANLIB"; then
4484 echo "$as_me:$LINENO: result: $RANLIB" >&5
4485 echo "${ECHO_T}$RANLIB" >&6
4486 else
4487 echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6
4489 fi
4490
4491 fi
4492 if test -z "$ac_cv_prog_RANLIB"; then
4493 ac_ct_RANLIB=$RANLIB
4494 # Extract the first word of "ranlib", so it can be a program name with args.
4495 set dummy ranlib; ac_word=$2
4496 echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501 if test -n "$ac_ct_RANLIB"; then
4502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4503 else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511 ac_cv_prog_ac_ct_RANLIB="ranlib"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515 done
4516 done
4517
4518 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4519 fi
4520 fi
4521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4522 if test -n "$ac_ct_RANLIB"; then
4523 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4524 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4525 else
4526 echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6
4528 fi
4529
4530 RANLIB=$ac_ct_RANLIB
4531 else
4532 RANLIB="$ac_cv_prog_RANLIB"
4533 fi
4534
4535 for ac_prog in 'bison -y' byacc
4536 do
4537 # Extract the first word of "$ac_prog", so it can be a program name with args.
4538 set dummy $ac_prog; ac_word=$2
4539 echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541 if test "${ac_cv_prog_YACC+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 if test -n "$YACC"; then
4545 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4546 else
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4549 do
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554 ac_cv_prog_YACC="$ac_prog"
4555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4557 fi
4558 done
4559 done
4560
4561 fi
4562 fi
4563 YACC=$ac_cv_prog_YACC
4564 if test -n "$YACC"; then
4565 echo "$as_me:$LINENO: result: $YACC" >&5
4566 echo "${ECHO_T}$YACC" >&6
4567 else
4568 echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6
4570 fi
4571
4572 test -n "$YACC" && break
4573 done
4574 test -n "$YACC" || YACC="yacc"
4575
4576
4577 if test -n "$ac_tool_prefix"; then
4578 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4579 set dummy ${ac_tool_prefix}ar; ac_word=$2
4580 echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582 if test "${ac_cv_prog_AR+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585 if test -n "$AR"; then
4586 ac_cv_prog_AR="$AR" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_prog_AR="${ac_tool_prefix}ar"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599 done
4600 done
4601
4602 fi
4603 fi
4604 AR=$ac_cv_prog_AR
4605 if test -n "$AR"; then
4606 echo "$as_me:$LINENO: result: $AR" >&5
4607 echo "${ECHO_T}$AR" >&6
4608 else
4609 echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6
4611 fi
4612
4613 fi
4614 if test -z "$ac_cv_prog_AR"; then
4615 ac_ct_AR=$AR
4616 # Extract the first word of "ar", so it can be a program name with args.
4617 set dummy ar; ac_word=$2
4618 echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623 if test -n "$ac_ct_AR"; then
4624 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633 ac_cv_prog_ac_ct_AR="ar"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4636 fi
4637 done
4638 done
4639
4640 fi
4641 fi
4642 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4643 if test -n "$ac_ct_AR"; then
4644 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4645 echo "${ECHO_T}$ac_ct_AR" >&6
4646 else
4647 echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6
4649 fi
4650
4651 AR=$ac_ct_AR
4652 else
4653 AR="$ac_cv_prog_AR"
4654 fi
4655
4656 if test -n "$ac_tool_prefix"; then
4657 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4658 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664 if test -n "$DLLTOOL"; then
4665 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4677 fi
4678 done
4679 done
4680
4681 fi
4682 fi
4683 DLLTOOL=$ac_cv_prog_DLLTOOL
4684 if test -n "$DLLTOOL"; then
4685 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4686 echo "${ECHO_T}$DLLTOOL" >&6
4687 else
4688 echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6
4690 fi
4691
4692 fi
4693 if test -z "$ac_cv_prog_DLLTOOL"; then
4694 ac_ct_DLLTOOL=$DLLTOOL
4695 # Extract the first word of "dlltool", so it can be a program name with args.
4696 set dummy dlltool; ac_word=$2
4697 echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4699 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 if test -n "$ac_ct_DLLTOOL"; then
4703 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4715 fi
4716 done
4717 done
4718
4719 fi
4720 fi
4721 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4722 if test -n "$ac_ct_DLLTOOL"; then
4723 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4724 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4725 else
4726 echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6
4728 fi
4729
4730 DLLTOOL=$ac_ct_DLLTOOL
4731 else
4732 DLLTOOL="$ac_cv_prog_DLLTOOL"
4733 fi
4734
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}windres; ac_word=$2
4738 echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4740 if test "${ac_cv_prog_WINDRES+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 if test -n "$WINDRES"; then
4744 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757 done
4758 done
4759
4760 fi
4761 fi
4762 WINDRES=$ac_cv_prog_WINDRES
4763 if test -n "$WINDRES"; then
4764 echo "$as_me:$LINENO: result: $WINDRES" >&5
4765 echo "${ECHO_T}$WINDRES" >&6
4766 else
4767 echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6
4769 fi
4770
4771 fi
4772 if test -z "$ac_cv_prog_WINDRES"; then
4773 ac_ct_WINDRES=$WINDRES
4774 # Extract the first word of "windres", so it can be a program name with args.
4775 set dummy windres; ac_word=$2
4776 echo "$as_me:$LINENO: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781 if test -n "$ac_ct_WINDRES"; then
4782 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791 ac_cv_prog_ac_ct_WINDRES="windres"
4792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795 done
4796 done
4797
4798 fi
4799 fi
4800 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4801 if test -n "$ac_ct_WINDRES"; then
4802 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4803 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4804 else
4805 echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4807 fi
4808
4809 WINDRES=$ac_ct_WINDRES
4810 else
4811 WINDRES="$ac_cv_prog_WINDRES"
4812 fi
4813
4814
4815 # Needed for GNU/Hurd.
4816 if test -n "$ac_tool_prefix"; then
4817 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4818 set dummy ${ac_tool_prefix}mig; ac_word=$2
4819 echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821 if test "${ac_cv_prog_MIG+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824 if test -n "$MIG"; then
4825 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4834 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4837 fi
4838 done
4839 done
4840
4841 fi
4842 fi
4843 MIG=$ac_cv_prog_MIG
4844 if test -n "$MIG"; then
4845 echo "$as_me:$LINENO: result: $MIG" >&5
4846 echo "${ECHO_T}$MIG" >&6
4847 else
4848 echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6
4850 fi
4851
4852 fi
4853 if test -z "$ac_cv_prog_MIG"; then
4854 ac_ct_MIG=$MIG
4855 # Extract the first word of "mig", so it can be a program name with args.
4856 set dummy mig; ac_word=$2
4857 echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4859 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862 if test -n "$ac_ct_MIG"; then
4863 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4872 ac_cv_prog_ac_ct_MIG="mig"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876 done
4877 done
4878
4879 fi
4880 fi
4881 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4882 if test -n "$ac_ct_MIG"; then
4883 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4884 echo "${ECHO_T}$ac_ct_MIG" >&6
4885 else
4886 echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6
4888 fi
4889
4890 MIG=$ac_ct_MIG
4891 else
4892 MIG="$ac_cv_prog_MIG"
4893 fi
4894
4895
4896 # ---------------------- #
4897 # Checks for libraries. #
4898 # ---------------------- #
4899
4900 # We might need to link with -lm; most simulators need it.
4901
4902 echo "$as_me:$LINENO: checking for main in -lm" >&5
4903 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4904 if test "${ac_cv_lib_m_main+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907 ac_check_lib_save_LIBS=$LIBS
4908 LIBS="-lm $LIBS"
4909 cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915
4916
4917 int
4918 main ()
4919 {
4920 main ();
4921 ;
4922 return 0;
4923 }
4924 _ACEOF
4925 rm -f conftest.$ac_objext conftest$ac_exeext
4926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4927 (eval $ac_link) 2>conftest.er1
4928 ac_status=$?
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -z "$ac_c_werror_flag"
4935 || test ! -s conftest.err'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 (eval $ac_try) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; } &&
4941 { ac_try='test -s conftest$ac_exeext'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 (eval $ac_try) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 ac_cv_lib_m_main=yes
4948 else
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952 ac_cv_lib_m_main=no
4953 fi
4954 rm -f conftest.err conftest.$ac_objext \
4955 conftest$ac_exeext conftest.$ac_ext
4956 LIBS=$ac_check_lib_save_LIBS
4957 fi
4958 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4959 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4960 if test $ac_cv_lib_m_main = yes; then
4961 cat >>confdefs.h <<_ACEOF
4962 #define HAVE_LIBM 1
4963 _ACEOF
4964
4965 LIBS="-lm $LIBS"
4966
4967 fi
4968
4969
4970 # We need to link with -lw to get `wctype' on Solaris before Solaris
4971 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
4972 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
4973 # is known to have this problem). Therefore we avoid libw if we can.
4974 echo "$as_me:$LINENO: checking for wctype" >&5
4975 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
4976 if test "${ac_cv_func_wctype+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979 cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h. */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
4986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4987 #define wctype innocuous_wctype
4988
4989 /* System header to define __stub macros and hopefully few prototypes,
4990 which can conflict with char wctype (); below.
4991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 <limits.h> exists even on freestanding compilers. */
4993
4994 #ifdef __STDC__
4995 # include <limits.h>
4996 #else
4997 # include <assert.h>
4998 #endif
4999
5000 #undef wctype
5001
5002 /* Override any gcc2 internal prototype to avoid an error. */
5003 #ifdef __cplusplus
5004 extern "C"
5005 {
5006 #endif
5007 /* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5009 char wctype ();
5010 /* The GNU C library defines this for functions which it implements
5011 to always fail with ENOSYS. Some functions are actually named
5012 something starting with __ and the normal name is an alias. */
5013 #if defined (__stub_wctype) || defined (__stub___wctype)
5014 choke me
5015 #else
5016 char (*f) () = wctype;
5017 #endif
5018 #ifdef __cplusplus
5019 }
5020 #endif
5021
5022 int
5023 main ()
5024 {
5025 return f != wctype;
5026 ;
5027 return 0;
5028 }
5029 _ACEOF
5030 rm -f conftest.$ac_objext conftest$ac_exeext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5032 (eval $ac_link) 2>conftest.er1
5033 ac_status=$?
5034 grep -v '^ *+' conftest.er1 >conftest.err
5035 rm -f conftest.er1
5036 cat conftest.err >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } &&
5039 { ac_try='test -z "$ac_c_werror_flag"
5040 || test ! -s conftest.err'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 (eval $ac_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; } &&
5046 { ac_try='test -s conftest$ac_exeext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_func_wctype=yes
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057 ac_cv_func_wctype=no
5058 fi
5059 rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061 fi
5062 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5063 echo "${ECHO_T}$ac_cv_func_wctype" >&6
5064 if test $ac_cv_func_wctype = yes; then
5065 :
5066 else
5067
5068 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5069 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
5070 if test "${ac_cv_lib_w_wctype+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073 ac_check_lib_save_LIBS=$LIBS
5074 LIBS="-lw $LIBS"
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h. */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081
5082 /* Override any gcc2 internal prototype to avoid an error. */
5083 #ifdef __cplusplus
5084 extern "C"
5085 #endif
5086 /* We use char because int might match the return type of a gcc2
5087 builtin and then its argument prototype would still apply. */
5088 char wctype ();
5089 int
5090 main ()
5091 {
5092 wctype ();
5093 ;
5094 return 0;
5095 }
5096 _ACEOF
5097 rm -f conftest.$ac_objext conftest$ac_exeext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5099 (eval $ac_link) 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 { ac_try='test -z "$ac_c_werror_flag"
5107 || test ! -s conftest.err'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest$ac_exeext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 (eval $ac_try) 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 ac_cv_lib_w_wctype=yes
5120 else
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124 ac_cv_lib_w_wctype=no
5125 fi
5126 rm -f conftest.err conftest.$ac_objext \
5127 conftest$ac_exeext conftest.$ac_ext
5128 LIBS=$ac_check_lib_save_LIBS
5129 fi
5130 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5131 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
5132 if test $ac_cv_lib_w_wctype = yes; then
5133 cat >>confdefs.h <<_ACEOF
5134 #define HAVE_LIBW 1
5135 _ACEOF
5136
5137 LIBS="-lw $LIBS"
5138
5139 fi
5140
5141 fi
5142
5143
5144 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
5145 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5146 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5147 if test "${ac_cv_search_gethostbyname+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 ac_func_search_save_LIBS=$LIBS
5151 ac_cv_search_gethostbyname=no
5152 cat >conftest.$ac_ext <<_ACEOF
5153 /* confdefs.h. */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5158
5159 /* Override any gcc2 internal prototype to avoid an error. */
5160 #ifdef __cplusplus
5161 extern "C"
5162 #endif
5163 /* We use char because int might match the return type of a gcc2
5164 builtin and then its argument prototype would still apply. */
5165 char gethostbyname ();
5166 int
5167 main ()
5168 {
5169 gethostbyname ();
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 rm -f conftest.$ac_objext conftest$ac_exeext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5176 (eval $ac_link) 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest$ac_exeext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_search_gethostbyname="none required"
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201 fi
5202 rm -f conftest.err conftest.$ac_objext \
5203 conftest$ac_exeext conftest.$ac_ext
5204 if test "$ac_cv_search_gethostbyname" = no; then
5205 for ac_lib in nsl; do
5206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5207 cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h. */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213
5214 /* Override any gcc2 internal prototype to avoid an error. */
5215 #ifdef __cplusplus
5216 extern "C"
5217 #endif
5218 /* We use char because int might match the return type of a gcc2
5219 builtin and then its argument prototype would still apply. */
5220 char gethostbyname ();
5221 int
5222 main ()
5223 {
5224 gethostbyname ();
5225 ;
5226 return 0;
5227 }
5228 _ACEOF
5229 rm -f conftest.$ac_objext conftest$ac_exeext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5231 (eval $ac_link) 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -z "$ac_c_werror_flag"
5239 || test ! -s conftest.err'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 (eval $ac_try) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; } &&
5245 { ac_try='test -s conftest$ac_exeext'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 (eval $ac_try) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; }; then
5251 ac_cv_search_gethostbyname="-l$ac_lib"
5252 break
5253 else
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5256
5257 fi
5258 rm -f conftest.err conftest.$ac_objext \
5259 conftest$ac_exeext conftest.$ac_ext
5260 done
5261 fi
5262 LIBS=$ac_func_search_save_LIBS
5263 fi
5264 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5265 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5266 if test "$ac_cv_search_gethostbyname" != no; then
5267 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5268
5269 fi
5270
5271
5272 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
5273 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5274 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5275 if test "${ac_cv_search_socketpair+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278 ac_func_search_save_LIBS=$LIBS
5279 ac_cv_search_socketpair=no
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h. */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286
5287 /* Override any gcc2 internal prototype to avoid an error. */
5288 #ifdef __cplusplus
5289 extern "C"
5290 #endif
5291 /* We use char because int might match the return type of a gcc2
5292 builtin and then its argument prototype would still apply. */
5293 char socketpair ();
5294 int
5295 main ()
5296 {
5297 socketpair ();
5298 ;
5299 return 0;
5300 }
5301 _ACEOF
5302 rm -f conftest.$ac_objext conftest$ac_exeext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5304 (eval $ac_link) 2>conftest.er1
5305 ac_status=$?
5306 grep -v '^ *+' conftest.er1 >conftest.err
5307 rm -f conftest.er1
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } &&
5311 { ac_try='test -z "$ac_c_werror_flag"
5312 || test ! -s conftest.err'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 (eval $ac_try) 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; } &&
5318 { ac_try='test -s conftest$ac_exeext'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5324 ac_cv_search_socketpair="none required"
5325 else
5326 echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.$ac_ext >&5
5328
5329 fi
5330 rm -f conftest.err conftest.$ac_objext \
5331 conftest$ac_exeext conftest.$ac_ext
5332 if test "$ac_cv_search_socketpair" = no; then
5333 for ac_lib in socket; do
5334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5335 cat >conftest.$ac_ext <<_ACEOF
5336 /* confdefs.h. */
5337 _ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341
5342 /* Override any gcc2 internal prototype to avoid an error. */
5343 #ifdef __cplusplus
5344 extern "C"
5345 #endif
5346 /* We use char because int might match the return type of a gcc2
5347 builtin and then its argument prototype would still apply. */
5348 char socketpair ();
5349 int
5350 main ()
5351 {
5352 socketpair ();
5353 ;
5354 return 0;
5355 }
5356 _ACEOF
5357 rm -f conftest.$ac_objext conftest$ac_exeext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5359 (eval $ac_link) 2>conftest.er1
5360 ac_status=$?
5361 grep -v '^ *+' conftest.er1 >conftest.err
5362 rm -f conftest.er1
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag"
5367 || test ! -s conftest.err'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 (eval $ac_try) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest$ac_exeext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 (eval $ac_try) 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_search_socketpair="-l$ac_lib"
5380 break
5381 else
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385 fi
5386 rm -f conftest.err conftest.$ac_objext \
5387 conftest$ac_exeext conftest.$ac_ext
5388 done
5389 fi
5390 LIBS=$ac_func_search_save_LIBS
5391 fi
5392 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5393 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5394 if test "$ac_cv_search_socketpair" != no; then
5395 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5396
5397 fi
5398
5399
5400 # For the TUI, we need enhanced curses functionality.
5401 #
5402 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5403 # curses library because the latter might not provide all the
5404 # functionality we need. However, this leads to problems on systems
5405 # where the linker searches /usr/local/lib, but the compiler doesn't
5406 # search /usr/local/include, if ncurses is installed in /usr/local. A
5407 # default installation of ncurses on alpha*-dec-osf* will lead to such
5408 # a situation.
5409 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5410 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
5411 if test "${ac_cv_search_waddstr+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414 ac_func_search_save_LIBS=$LIBS
5415 ac_cv_search_waddstr=no
5416 cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h. */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422
5423 /* Override any gcc2 internal prototype to avoid an error. */
5424 #ifdef __cplusplus
5425 extern "C"
5426 #endif
5427 /* We use char because int might match the return type of a gcc2
5428 builtin and then its argument prototype would still apply. */
5429 char waddstr ();
5430 int
5431 main ()
5432 {
5433 waddstr ();
5434 ;
5435 return 0;
5436 }
5437 _ACEOF
5438 rm -f conftest.$ac_objext conftest$ac_exeext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5440 (eval $ac_link) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest$ac_exeext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 (eval $ac_try) 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_cv_search_waddstr="none required"
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465 fi
5466 rm -f conftest.err conftest.$ac_objext \
5467 conftest$ac_exeext conftest.$ac_ext
5468 if test "$ac_cv_search_waddstr" = no; then
5469 for ac_lib in ncurses cursesX curses; do
5470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5471 cat >conftest.$ac_ext <<_ACEOF
5472 /* confdefs.h. */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5477
5478 /* Override any gcc2 internal prototype to avoid an error. */
5479 #ifdef __cplusplus
5480 extern "C"
5481 #endif
5482 /* We use char because int might match the return type of a gcc2
5483 builtin and then its argument prototype would still apply. */
5484 char waddstr ();
5485 int
5486 main ()
5487 {
5488 waddstr ();
5489 ;
5490 return 0;
5491 }
5492 _ACEOF
5493 rm -f conftest.$ac_objext conftest$ac_exeext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5495 (eval $ac_link) 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -z "$ac_c_werror_flag"
5503 || test ! -s conftest.err'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 (eval $ac_try) 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; } &&
5509 { ac_try='test -s conftest$ac_exeext'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5515 ac_cv_search_waddstr="-l$ac_lib"
5516 break
5517 else
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5520
5521 fi
5522 rm -f conftest.err conftest.$ac_objext \
5523 conftest$ac_exeext conftest.$ac_ext
5524 done
5525 fi
5526 LIBS=$ac_func_search_save_LIBS
5527 fi
5528 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5529 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5530 if test "$ac_cv_search_waddstr" != no; then
5531 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
5532
5533 fi
5534
5535
5536 # Since GDB uses Readline, we need termcap functionality. In many
5537 # cases this will be provided by the curses library, but some systems
5538 # have a seperate termcap library, or no curses library at all.
5539
5540 case $host_os in
5541 cygwin*)
5542 if test -d $srcdir/libtermcap; then
5543 LIBS="../libtermcap/libtermcap.a $LIBS"
5544 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5545 fi ;;
5546 go32* | *djgpp*)
5547 ac_cv_search_tgetent="none required"
5548 ;;
5549 *mingw32*)
5550 ac_cv_search_tgetent="none required"
5551 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5552 ;;
5553 esac
5554
5555 # These are the libraries checked by Readline.
5556 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5557 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5558 if test "${ac_cv_search_tgetent+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561 ac_func_search_save_LIBS=$LIBS
5562 ac_cv_search_tgetent=no
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h. */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569
5570 /* Override any gcc2 internal prototype to avoid an error. */
5571 #ifdef __cplusplus
5572 extern "C"
5573 #endif
5574 /* We use char because int might match the return type of a gcc2
5575 builtin and then its argument prototype would still apply. */
5576 char tgetent ();
5577 int
5578 main ()
5579 {
5580 tgetent ();
5581 ;
5582 return 0;
5583 }
5584 _ACEOF
5585 rm -f conftest.$ac_objext conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587 (eval $ac_link) 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -z "$ac_c_werror_flag"
5595 || test ! -s conftest.err'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 (eval $ac_try) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; } &&
5601 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5607 ac_cv_search_tgetent="none required"
5608 else
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612 fi
5613 rm -f conftest.err conftest.$ac_objext \
5614 conftest$ac_exeext conftest.$ac_ext
5615 if test "$ac_cv_search_tgetent" = no; then
5616 for ac_lib in termcap tinfo curses ncurses; do
5617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5618 cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624
5625 /* Override any gcc2 internal prototype to avoid an error. */
5626 #ifdef __cplusplus
5627 extern "C"
5628 #endif
5629 /* We use char because int might match the return type of a gcc2
5630 builtin and then its argument prototype would still apply. */
5631 char tgetent ();
5632 int
5633 main ()
5634 {
5635 tgetent ();
5636 ;
5637 return 0;
5638 }
5639 _ACEOF
5640 rm -f conftest.$ac_objext conftest$ac_exeext
5641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5642 (eval $ac_link) 2>conftest.er1
5643 ac_status=$?
5644 grep -v '^ *+' conftest.er1 >conftest.err
5645 rm -f conftest.er1
5646 cat conftest.err >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } &&
5649 { ac_try='test -z "$ac_c_werror_flag"
5650 || test ! -s conftest.err'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; } &&
5656 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5662 ac_cv_search_tgetent="-l$ac_lib"
5663 break
5664 else
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5667
5668 fi
5669 rm -f conftest.err conftest.$ac_objext \
5670 conftest$ac_exeext conftest.$ac_ext
5671 done
5672 fi
5673 LIBS=$ac_func_search_save_LIBS
5674 fi
5675 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5676 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5677 if test "$ac_cv_search_tgetent" != no; then
5678 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5679
5680 fi
5681
5682
5683 if test "$ac_cv_search_tgetent" = no; then
5684 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5685 echo "$as_me: error: no termcap library found" >&2;}
5686 { (exit 1); exit 1; }; }
5687 fi
5688
5689 # ------------------------- #
5690 # Checks for header files. #
5691 # ------------------------- #
5692
5693
5694
5695
5696
5697
5698 ac_header_dirent=no
5699 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5700 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5701 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5702 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h. */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 #include <sys/types.h>
5713 #include <$ac_hdr>
5714
5715 int
5716 main ()
5717 {
5718 if ((DIR *) 0)
5719 return 0;
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726 (eval $ac_compile) 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try='test -z "$ac_c_werror_flag"
5734 || test ! -s conftest.err'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 eval "$as_ac_Header=yes"
5747 else
5748 echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5750
5751 eval "$as_ac_Header=no"
5752 fi
5753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5754 fi
5755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5758 cat >>confdefs.h <<_ACEOF
5759 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5760 _ACEOF
5761
5762 ac_header_dirent=$ac_hdr; break
5763 fi
5764
5765 done
5766 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5767 if test $ac_header_dirent = dirent.h; then
5768 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5769 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5770 if test "${ac_cv_search_opendir+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773 ac_func_search_save_LIBS=$LIBS
5774 ac_cv_search_opendir=no
5775 cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h. */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781
5782 /* Override any gcc2 internal prototype to avoid an error. */
5783 #ifdef __cplusplus
5784 extern "C"
5785 #endif
5786 /* We use char because int might match the return type of a gcc2
5787 builtin and then its argument prototype would still apply. */
5788 char opendir ();
5789 int
5790 main ()
5791 {
5792 opendir ();
5793 ;
5794 return 0;
5795 }
5796 _ACEOF
5797 rm -f conftest.$ac_objext conftest$ac_exeext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5799 (eval $ac_link) 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try='test -z "$ac_c_werror_flag"
5807 || test ! -s conftest.err'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 (eval $ac_try) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest$ac_exeext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 (eval $ac_try) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 ac_cv_search_opendir="none required"
5820 else
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824 fi
5825 rm -f conftest.err conftest.$ac_objext \
5826 conftest$ac_exeext conftest.$ac_ext
5827 if test "$ac_cv_search_opendir" = no; then
5828 for ac_lib in dir; do
5829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836
5837 /* Override any gcc2 internal prototype to avoid an error. */
5838 #ifdef __cplusplus
5839 extern "C"
5840 #endif
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5843 char opendir ();
5844 int
5845 main ()
5846 {
5847 opendir ();
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 rm -f conftest.$ac_objext conftest$ac_exeext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854 (eval $ac_link) 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try='test -s conftest$ac_exeext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_search_opendir="-l$ac_lib"
5875 break
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 fi
5881 rm -f conftest.err conftest.$ac_objext \
5882 conftest$ac_exeext conftest.$ac_ext
5883 done
5884 fi
5885 LIBS=$ac_func_search_save_LIBS
5886 fi
5887 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5888 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5889 if test "$ac_cv_search_opendir" != no; then
5890 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5891
5892 fi
5893
5894 else
5895 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5896 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5897 if test "${ac_cv_search_opendir+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 ac_func_search_save_LIBS=$LIBS
5901 ac_cv_search_opendir=no
5902 cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h. */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908
5909 /* Override any gcc2 internal prototype to avoid an error. */
5910 #ifdef __cplusplus
5911 extern "C"
5912 #endif
5913 /* We use char because int might match the return type of a gcc2
5914 builtin and then its argument prototype would still apply. */
5915 char opendir ();
5916 int
5917 main ()
5918 {
5919 opendir ();
5920 ;
5921 return 0;
5922 }
5923 _ACEOF
5924 rm -f conftest.$ac_objext conftest$ac_exeext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926 (eval $ac_link) 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try='test -z "$ac_c_werror_flag"
5934 || test ! -s conftest.err'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; } &&
5940 { ac_try='test -s conftest$ac_exeext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 (eval $ac_try) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 ac_cv_search_opendir="none required"
5947 else
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5950
5951 fi
5952 rm -f conftest.err conftest.$ac_objext \
5953 conftest$ac_exeext conftest.$ac_ext
5954 if test "$ac_cv_search_opendir" = no; then
5955 for ac_lib in x; do
5956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h. */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963
5964 /* Override any gcc2 internal prototype to avoid an error. */
5965 #ifdef __cplusplus
5966 extern "C"
5967 #endif
5968 /* We use char because int might match the return type of a gcc2
5969 builtin and then its argument prototype would still apply. */
5970 char opendir ();
5971 int
5972 main ()
5973 {
5974 opendir ();
5975 ;
5976 return 0;
5977 }
5978 _ACEOF
5979 rm -f conftest.$ac_objext conftest$ac_exeext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5981 (eval $ac_link) 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try='test -z "$ac_c_werror_flag"
5989 || test ! -s conftest.err'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; } &&
5995 { ac_try='test -s conftest$ac_exeext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 ac_cv_search_opendir="-l$ac_lib"
6002 break
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007 fi
6008 rm -f conftest.err conftest.$ac_objext \
6009 conftest$ac_exeext conftest.$ac_ext
6010 done
6011 fi
6012 LIBS=$ac_func_search_save_LIBS
6013 fi
6014 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6015 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6016 if test "$ac_cv_search_opendir" != no; then
6017 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6018
6019 fi
6020
6021 fi
6022
6023 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6024 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6025 if test "${ac_cv_header_stat_broken+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 #include <sys/types.h>
6035 #include <sys/stat.h>
6036
6037 #if defined(S_ISBLK) && defined(S_IFDIR)
6038 # if S_ISBLK (S_IFDIR)
6039 You lose.
6040 # endif
6041 #endif
6042
6043 #if defined(S_ISBLK) && defined(S_IFCHR)
6044 # if S_ISBLK (S_IFCHR)
6045 You lose.
6046 # endif
6047 #endif
6048
6049 #if defined(S_ISLNK) && defined(S_IFREG)
6050 # if S_ISLNK (S_IFREG)
6051 You lose.
6052 # endif
6053 #endif
6054
6055 #if defined(S_ISSOCK) && defined(S_IFREG)
6056 # if S_ISSOCK (S_IFREG)
6057 You lose.
6058 # endif
6059 #endif
6060
6061 _ACEOF
6062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063 $EGREP "You lose" >/dev/null 2>&1; then
6064 ac_cv_header_stat_broken=yes
6065 else
6066 ac_cv_header_stat_broken=no
6067 fi
6068 rm -f conftest*
6069
6070 fi
6071 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6072 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6073 if test $ac_cv_header_stat_broken = yes; then
6074
6075 cat >>confdefs.h <<\_ACEOF
6076 #define STAT_MACROS_BROKEN 1
6077 _ACEOF
6078
6079 fi
6080
6081 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6082 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6083 if test "${ac_cv_header_stdc+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h. */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 #include <stdlib.h>
6093 #include <stdarg.h>
6094 #include <string.h>
6095 #include <float.h>
6096
6097 int
6098 main ()
6099 {
6100
6101 ;
6102 return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_header_stdc=yes
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132 ac_cv_header_stdc=no
6133 fi
6134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6135
6136 if test $ac_cv_header_stdc = yes; then
6137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #include <string.h>
6145
6146 _ACEOF
6147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6148 $EGREP "memchr" >/dev/null 2>&1; then
6149 :
6150 else
6151 ac_cv_header_stdc=no
6152 fi
6153 rm -f conftest*
6154
6155 fi
6156
6157 if test $ac_cv_header_stdc = yes; then
6158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6159 cat >conftest.$ac_ext <<_ACEOF
6160 /* confdefs.h. */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 #include <stdlib.h>
6166
6167 _ACEOF
6168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6169 $EGREP "free" >/dev/null 2>&1; then
6170 :
6171 else
6172 ac_cv_header_stdc=no
6173 fi
6174 rm -f conftest*
6175
6176 fi
6177
6178 if test $ac_cv_header_stdc = yes; then
6179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6180 if test "$cross_compiling" = yes; then
6181 :
6182 else
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 #include <ctype.h>
6190 #if ((' ' & 0x0FF) == 0x020)
6191 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6192 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6193 #else
6194 # define ISLOWER(c) \
6195 (('a' <= (c) && (c) <= 'i') \
6196 || ('j' <= (c) && (c) <= 'r') \
6197 || ('s' <= (c) && (c) <= 'z'))
6198 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6199 #endif
6200
6201 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6202 int
6203 main ()
6204 {
6205 int i;
6206 for (i = 0; i < 256; i++)
6207 if (XOR (islower (i), ISLOWER (i))
6208 || toupper (i) != TOUPPER (i))
6209 exit(2);
6210 exit (0);
6211 }
6212 _ACEOF
6213 rm -f conftest$ac_exeext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6215 (eval $ac_link) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 (eval $ac_try) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 :
6225 else
6226 echo "$as_me: program exited with status $ac_status" >&5
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6229
6230 ( exit $ac_status )
6231 ac_cv_header_stdc=no
6232 fi
6233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6234 fi
6235 fi
6236 fi
6237 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6238 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6239 if test $ac_cv_header_stdc = yes; then
6240
6241 cat >>confdefs.h <<\_ACEOF
6242 #define STDC_HEADERS 1
6243 _ACEOF
6244
6245 fi
6246
6247
6248 for ac_header in nlist.h
6249 do
6250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6252 echo "$as_me:$LINENO: checking for $ac_header" >&5
6253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 fi
6257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6259 else
6260 # Is the header compilable?
6261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6263 cat >conftest.$ac_ext <<_ACEOF
6264 /* confdefs.h. */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6269 $ac_includes_default
6270 #include <$ac_header>
6271 _ACEOF
6272 rm -f conftest.$ac_objext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6274 (eval $ac_compile) 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest.$ac_objext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_header_compiler=yes
6295 else
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 ac_header_compiler=no
6300 fi
6301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6302 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6303 echo "${ECHO_T}$ac_header_compiler" >&6
6304
6305 # Is the header present?
6306 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6308 cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h. */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 #include <$ac_header>
6315 _ACEOF
6316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } >/dev/null; then
6324 if test -s conftest.err; then
6325 ac_cpp_err=$ac_c_preproc_warn_flag
6326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6327 else
6328 ac_cpp_err=
6329 fi
6330 else
6331 ac_cpp_err=yes
6332 fi
6333 if test -z "$ac_cpp_err"; then
6334 ac_header_preproc=yes
6335 else
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6338
6339 ac_header_preproc=no
6340 fi
6341 rm -f conftest.err conftest.$ac_ext
6342 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6343 echo "${ECHO_T}$ac_header_preproc" >&6
6344
6345 # So? What about this header?
6346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6347 yes:no: )
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6352 ac_header_preproc=yes
6353 ;;
6354 no:yes:* )
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6367 (
6368 cat <<\_ASBOX
6369 ## ------------------------------------------ ##
6370 ## Report this to the AC_PACKAGE_NAME lists. ##
6371 ## ------------------------------------------ ##
6372 _ASBOX
6373 ) |
6374 sed "s/^/$as_me: WARNING: /" >&2
6375 ;;
6376 esac
6377 echo "$as_me:$LINENO: checking for $ac_header" >&5
6378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382 eval "$as_ac_Header=\$ac_header_preproc"
6383 fi
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386
6387 fi
6388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6389 cat >>confdefs.h <<_ACEOF
6390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6391 _ACEOF
6392
6393 fi
6394
6395 done
6396
6397
6398 for ac_header in link.h
6399 do
6400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401 echo "$as_me:$LINENO: checking for $ac_header" >&5
6402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406 cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h. */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 #if HAVE_SYS_TYPES_H
6413 # include <sys/types.h>
6414 #endif
6415 #if HAVE_NLIST_H
6416 # include <nlist.h>
6417 #endif
6418
6419
6420 #include <$ac_header>
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424 (eval $ac_compile) 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_c_werror_flag"
6432 || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 eval "$as_ac_Header=yes"
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449 eval "$as_ac_Header=no"
6450 fi
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452 fi
6453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6456 cat >>confdefs.h <<_ACEOF
6457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6458 _ACEOF
6459
6460 fi
6461
6462 done
6463
6464
6465 for ac_header in machine/reg.h
6466 do
6467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6469 echo "$as_me:$LINENO: checking for $ac_header" >&5
6470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 fi
6474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6476 else
6477 # Is the header compilable?
6478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6480 cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h. */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 $ac_includes_default
6487 #include <$ac_header>
6488 _ACEOF
6489 rm -f conftest.$ac_objext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491 (eval $ac_compile) 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -z "$ac_c_werror_flag"
6499 || test ! -s conftest.err'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest.$ac_objext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_header_compiler=yes
6512 else
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 ac_header_compiler=no
6517 fi
6518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6520 echo "${ECHO_T}$ac_header_compiler" >&6
6521
6522 # Is the header present?
6523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #include <$ac_header>
6532 _ACEOF
6533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6535 ac_status=$?
6536 grep -v '^ *+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } >/dev/null; then
6541 if test -s conftest.err; then
6542 ac_cpp_err=$ac_c_preproc_warn_flag
6543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6544 else
6545 ac_cpp_err=
6546 fi
6547 else
6548 ac_cpp_err=yes
6549 fi
6550 if test -z "$ac_cpp_err"; then
6551 ac_header_preproc=yes
6552 else
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 ac_header_preproc=no
6557 fi
6558 rm -f conftest.err conftest.$ac_ext
6559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6560 echo "${ECHO_T}$ac_header_preproc" >&6
6561
6562 # So? What about this header?
6563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6564 yes:no: )
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6569 ac_header_preproc=yes
6570 ;;
6571 no:yes:* )
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6584 (
6585 cat <<\_ASBOX
6586 ## ------------------------------------------ ##
6587 ## Report this to the AC_PACKAGE_NAME lists. ##
6588 ## ------------------------------------------ ##
6589 _ASBOX
6590 ) |
6591 sed "s/^/$as_me: WARNING: /" >&2
6592 ;;
6593 esac
6594 echo "$as_me:$LINENO: checking for $ac_header" >&5
6595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599 eval "$as_ac_Header=\$ac_header_preproc"
6600 fi
6601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6603
6604 fi
6605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6606 cat >>confdefs.h <<_ACEOF
6607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6608 _ACEOF
6609
6610 fi
6611
6612 done
6613
6614
6615
6616 for ac_header in poll.h sys/poll.h
6617 do
6618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6620 echo "$as_me:$LINENO: checking for $ac_header" >&5
6621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 fi
6625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6627 else
6628 # Is the header compilable?
6629 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6631 cat >conftest.$ac_ext <<_ACEOF
6632 /* confdefs.h. */
6633 _ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h. */
6637 $ac_includes_default
6638 #include <$ac_header>
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_c_werror_flag"
6650 || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_header_compiler=yes
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6666
6667 ac_header_compiler=no
6668 fi
6669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6671 echo "${ECHO_T}$ac_header_compiler" >&6
6672
6673 # Is the header present?
6674 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 #include <$ac_header>
6683 _ACEOF
6684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6686 ac_status=$?
6687 grep -v '^ *+' conftest.er1 >conftest.err
6688 rm -f conftest.er1
6689 cat conftest.err >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } >/dev/null; then
6692 if test -s conftest.err; then
6693 ac_cpp_err=$ac_c_preproc_warn_flag
6694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6695 else
6696 ac_cpp_err=
6697 fi
6698 else
6699 ac_cpp_err=yes
6700 fi
6701 if test -z "$ac_cpp_err"; then
6702 ac_header_preproc=yes
6703 else
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6706
6707 ac_header_preproc=no
6708 fi
6709 rm -f conftest.err conftest.$ac_ext
6710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6711 echo "${ECHO_T}$ac_header_preproc" >&6
6712
6713 # So? What about this header?
6714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6715 yes:no: )
6716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6719 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6720 ac_header_preproc=yes
6721 ;;
6722 no:yes:* )
6723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6728 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6729 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6730 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6734 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6735 (
6736 cat <<\_ASBOX
6737 ## ------------------------------------------ ##
6738 ## Report this to the AC_PACKAGE_NAME lists. ##
6739 ## ------------------------------------------ ##
6740 _ASBOX
6741 ) |
6742 sed "s/^/$as_me: WARNING: /" >&2
6743 ;;
6744 esac
6745 echo "$as_me:$LINENO: checking for $ac_header" >&5
6746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750 eval "$as_ac_Header=\$ac_header_preproc"
6751 fi
6752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6754
6755 fi
6756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6757 cat >>confdefs.h <<_ACEOF
6758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6759 _ACEOF
6760
6761 fi
6762
6763 done
6764
6765
6766
6767
6768 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
6769 do
6770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6772 echo "$as_me:$LINENO: checking for $ac_header" >&5
6773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 fi
6777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6779 else
6780 # Is the header compilable?
6781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h. */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 $ac_includes_default
6790 #include <$ac_header>
6791 _ACEOF
6792 rm -f conftest.$ac_objext
6793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6794 (eval $ac_compile) 2>conftest.er1
6795 ac_status=$?
6796 grep -v '^ *+' conftest.er1 >conftest.err
6797 rm -f conftest.er1
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -z "$ac_c_werror_flag"
6802 || test ! -s conftest.err'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; } &&
6808 { ac_try='test -s conftest.$ac_objext'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
6814 ac_header_compiler=yes
6815 else
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6818
6819 ac_header_compiler=no
6820 fi
6821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6823 echo "${ECHO_T}$ac_header_compiler" >&6
6824
6825 # Is the header present?
6826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6828 cat >conftest.$ac_ext <<_ACEOF
6829 /* confdefs.h. */
6830 _ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6834 #include <$ac_header>
6835 _ACEOF
6836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6838 ac_status=$?
6839 grep -v '^ *+' conftest.er1 >conftest.err
6840 rm -f conftest.er1
6841 cat conftest.err >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } >/dev/null; then
6844 if test -s conftest.err; then
6845 ac_cpp_err=$ac_c_preproc_warn_flag
6846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6847 else
6848 ac_cpp_err=
6849 fi
6850 else
6851 ac_cpp_err=yes
6852 fi
6853 if test -z "$ac_cpp_err"; then
6854 ac_header_preproc=yes
6855 else
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6858
6859 ac_header_preproc=no
6860 fi
6861 rm -f conftest.err conftest.$ac_ext
6862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6863 echo "${ECHO_T}$ac_header_preproc" >&6
6864
6865 # So? What about this header?
6866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6867 yes:no: )
6868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6872 ac_header_preproc=yes
6873 ;;
6874 no:yes:* )
6875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6887 (
6888 cat <<\_ASBOX
6889 ## ------------------------------------------ ##
6890 ## Report this to the AC_PACKAGE_NAME lists. ##
6891 ## ------------------------------------------ ##
6892 _ASBOX
6893 ) |
6894 sed "s/^/$as_me: WARNING: /" >&2
6895 ;;
6896 esac
6897 echo "$as_me:$LINENO: checking for $ac_header" >&5
6898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902 eval "$as_ac_Header=\$ac_header_preproc"
6903 fi
6904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6906
6907 fi
6908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6909 cat >>confdefs.h <<_ACEOF
6910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6911 _ACEOF
6912
6913 fi
6914
6915 done
6916
6917
6918 for ac_header in stddef.h
6919 do
6920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6922 echo "$as_me:$LINENO: checking for $ac_header" >&5
6923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 fi
6927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6929 else
6930 # Is the header compilable?
6931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6933 cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h. */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6939 $ac_includes_default
6940 #include <$ac_header>
6941 _ACEOF
6942 rm -f conftest.$ac_objext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6944 (eval $ac_compile) 2>conftest.er1
6945 ac_status=$?
6946 grep -v '^ *+' conftest.er1 >conftest.err
6947 rm -f conftest.er1
6948 cat conftest.err >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } &&
6951 { ac_try='test -z "$ac_c_werror_flag"
6952 || test ! -s conftest.err'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 (eval $ac_try) 2>&5
6955 ac_status=$?
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; } &&
6958 { ac_try='test -s conftest.$ac_objext'
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 (eval $ac_try) 2>&5
6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; }; then
6964 ac_header_compiler=yes
6965 else
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6968
6969 ac_header_compiler=no
6970 fi
6971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6973 echo "${ECHO_T}$ac_header_compiler" >&6
6974
6975 # Is the header present?
6976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6978 cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h. */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 #include <$ac_header>
6985 _ACEOF
6986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6988 ac_status=$?
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } >/dev/null; then
6994 if test -s conftest.err; then
6995 ac_cpp_err=$ac_c_preproc_warn_flag
6996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6997 else
6998 ac_cpp_err=
6999 fi
7000 else
7001 ac_cpp_err=yes
7002 fi
7003 if test -z "$ac_cpp_err"; then
7004 ac_header_preproc=yes
7005 else
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 ac_header_preproc=no
7010 fi
7011 rm -f conftest.err conftest.$ac_ext
7012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7013 echo "${ECHO_T}$ac_header_preproc" >&6
7014
7015 # So? What about this header?
7016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7017 yes:no: )
7018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7022 ac_header_preproc=yes
7023 ;;
7024 no:yes:* )
7025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7037 (
7038 cat <<\_ASBOX
7039 ## ------------------------------------------ ##
7040 ## Report this to the AC_PACKAGE_NAME lists. ##
7041 ## ------------------------------------------ ##
7042 _ASBOX
7043 ) |
7044 sed "s/^/$as_me: WARNING: /" >&2
7045 ;;
7046 esac
7047 echo "$as_me:$LINENO: checking for $ac_header" >&5
7048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052 eval "$as_ac_Header=\$ac_header_preproc"
7053 fi
7054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7056
7057 fi
7058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7061 _ACEOF
7062
7063 fi
7064
7065 done
7066
7067
7068 for ac_header in stdlib.h
7069 do
7070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7072 echo "$as_me:$LINENO: checking for $ac_header" >&5
7073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 fi
7077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7079 else
7080 # Is the header compilable?
7081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 $ac_includes_default
7090 #include <$ac_header>
7091 _ACEOF
7092 rm -f conftest.$ac_objext
7093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094 (eval $ac_compile) 2>conftest.er1
7095 ac_status=$?
7096 grep -v '^ *+' conftest.er1 >conftest.err
7097 rm -f conftest.er1
7098 cat conftest.err >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try='test -z "$ac_c_werror_flag"
7102 || test ! -s conftest.err'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 (eval $ac_try) 2>&5
7105 ac_status=$?
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; } &&
7108 { ac_try='test -s conftest.$ac_objext'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 ac_header_compiler=yes
7115 else
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 ac_header_compiler=no
7120 fi
7121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7123 echo "${ECHO_T}$ac_header_compiler" >&6
7124
7125 # Is the header present?
7126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7128 cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h. */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 #include <$ac_header>
7135 _ACEOF
7136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7138 ac_status=$?
7139 grep -v '^ *+' conftest.er1 >conftest.err
7140 rm -f conftest.er1
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } >/dev/null; then
7144 if test -s conftest.err; then
7145 ac_cpp_err=$ac_c_preproc_warn_flag
7146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7147 else
7148 ac_cpp_err=
7149 fi
7150 else
7151 ac_cpp_err=yes
7152 fi
7153 if test -z "$ac_cpp_err"; then
7154 ac_header_preproc=yes
7155 else
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7158
7159 ac_header_preproc=no
7160 fi
7161 rm -f conftest.err conftest.$ac_ext
7162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7163 echo "${ECHO_T}$ac_header_preproc" >&6
7164
7165 # So? What about this header?
7166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7167 yes:no: )
7168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7172 ac_header_preproc=yes
7173 ;;
7174 no:yes:* )
7175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7187 (
7188 cat <<\_ASBOX
7189 ## ------------------------------------------ ##
7190 ## Report this to the AC_PACKAGE_NAME lists. ##
7191 ## ------------------------------------------ ##
7192 _ASBOX
7193 ) |
7194 sed "s/^/$as_me: WARNING: /" >&2
7195 ;;
7196 esac
7197 echo "$as_me:$LINENO: checking for $ac_header" >&5
7198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 eval "$as_ac_Header=\$ac_header_preproc"
7203 fi
7204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7206
7207 fi
7208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7209 cat >>confdefs.h <<_ACEOF
7210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7211 _ACEOF
7212
7213 fi
7214
7215 done
7216
7217
7218 for ac_header in stdint.h
7219 do
7220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7222 echo "$as_me:$LINENO: checking for $ac_header" >&5
7223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 fi
7227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7229 else
7230 # Is the header compilable?
7231 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7233 cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h. */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 $ac_includes_default
7240 #include <$ac_header>
7241 _ACEOF
7242 rm -f conftest.$ac_objext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7244 (eval $ac_compile) 2>conftest.er1
7245 ac_status=$?
7246 grep -v '^ *+' conftest.er1 >conftest.err
7247 rm -f conftest.er1
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } &&
7251 { ac_try='test -z "$ac_c_werror_flag"
7252 || test ! -s conftest.err'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 (eval $ac_try) 2>&5
7255 ac_status=$?
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; } &&
7258 { ac_try='test -s conftest.$ac_objext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 (eval $ac_try) 2>&5
7261 ac_status=$?
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 ac_header_compiler=yes
7265 else
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 ac_header_compiler=no
7270 fi
7271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7273 echo "${ECHO_T}$ac_header_compiler" >&6
7274
7275 # Is the header present?
7276 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7278 cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h. */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 #include <$ac_header>
7285 _ACEOF
7286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7288 ac_status=$?
7289 grep -v '^ *+' conftest.er1 >conftest.err
7290 rm -f conftest.er1
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } >/dev/null; then
7294 if test -s conftest.err; then
7295 ac_cpp_err=$ac_c_preproc_warn_flag
7296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7297 else
7298 ac_cpp_err=
7299 fi
7300 else
7301 ac_cpp_err=yes
7302 fi
7303 if test -z "$ac_cpp_err"; then
7304 ac_header_preproc=yes
7305 else
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7308
7309 ac_header_preproc=no
7310 fi
7311 rm -f conftest.err conftest.$ac_ext
7312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7313 echo "${ECHO_T}$ac_header_preproc" >&6
7314
7315 # So? What about this header?
7316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7317 yes:no: )
7318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7322 ac_header_preproc=yes
7323 ;;
7324 no:yes:* )
7325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7337 (
7338 cat <<\_ASBOX
7339 ## ------------------------------------------ ##
7340 ## Report this to the AC_PACKAGE_NAME lists. ##
7341 ## ------------------------------------------ ##
7342 _ASBOX
7343 ) |
7344 sed "s/^/$as_me: WARNING: /" >&2
7345 ;;
7346 esac
7347 echo "$as_me:$LINENO: checking for $ac_header" >&5
7348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 eval "$as_ac_Header=\$ac_header_preproc"
7353 fi
7354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7356
7357 fi
7358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7359 cat >>confdefs.h <<_ACEOF
7360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7361 _ACEOF
7362
7363 fi
7364
7365 done
7366
7367
7368
7369
7370 for ac_header in string.h memory.h strings.h
7371 do
7372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7374 echo "$as_me:$LINENO: checking for $ac_header" >&5
7375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 fi
7379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7381 else
7382 # Is the header compilable?
7383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h. */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 $ac_includes_default
7392 #include <$ac_header>
7393 _ACEOF
7394 rm -f conftest.$ac_objext
7395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7396 (eval $ac_compile) 2>conftest.er1
7397 ac_status=$?
7398 grep -v '^ *+' conftest.er1 >conftest.err
7399 rm -f conftest.er1
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } &&
7403 { ac_try='test -z "$ac_c_werror_flag"
7404 || test ! -s conftest.err'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; } &&
7410 { ac_try='test -s conftest.$ac_objext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 ac_header_compiler=yes
7417 else
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7420
7421 ac_header_compiler=no
7422 fi
7423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7425 echo "${ECHO_T}$ac_header_compiler" >&6
7426
7427 # Is the header present?
7428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 #include <$ac_header>
7437 _ACEOF
7438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } >/dev/null; then
7446 if test -s conftest.err; then
7447 ac_cpp_err=$ac_c_preproc_warn_flag
7448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7449 else
7450 ac_cpp_err=
7451 fi
7452 else
7453 ac_cpp_err=yes
7454 fi
7455 if test -z "$ac_cpp_err"; then
7456 ac_header_preproc=yes
7457 else
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 ac_header_preproc=no
7462 fi
7463 rm -f conftest.err conftest.$ac_ext
7464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7465 echo "${ECHO_T}$ac_header_preproc" >&6
7466
7467 # So? What about this header?
7468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7469 yes:no: )
7470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7474 ac_header_preproc=yes
7475 ;;
7476 no:yes:* )
7477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7489 (
7490 cat <<\_ASBOX
7491 ## ------------------------------------------ ##
7492 ## Report this to the AC_PACKAGE_NAME lists. ##
7493 ## ------------------------------------------ ##
7494 _ASBOX
7495 ) |
7496 sed "s/^/$as_me: WARNING: /" >&2
7497 ;;
7498 esac
7499 echo "$as_me:$LINENO: checking for $ac_header" >&5
7500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504 eval "$as_ac_Header=\$ac_header_preproc"
7505 fi
7506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7508
7509 fi
7510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7511 cat >>confdefs.h <<_ACEOF
7512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7513 _ACEOF
7514
7515 fi
7516
7517 done
7518
7519
7520 for ac_header in sys/fault.h
7521 do
7522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7524 echo "$as_me:$LINENO: checking for $ac_header" >&5
7525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 fi
7529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7531 else
7532 # Is the header compilable?
7533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7535 cat >conftest.$ac_ext <<_ACEOF
7536 /* confdefs.h. */
7537 _ACEOF
7538 cat confdefs.h >>conftest.$ac_ext
7539 cat >>conftest.$ac_ext <<_ACEOF
7540 /* end confdefs.h. */
7541 $ac_includes_default
7542 #include <$ac_header>
7543 _ACEOF
7544 rm -f conftest.$ac_objext
7545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } &&
7553 { ac_try='test -z "$ac_c_werror_flag"
7554 || test ! -s conftest.err'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; } &&
7560 { ac_try='test -s conftest.$ac_objext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 (eval $ac_try) 2>&5
7563 ac_status=$?
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_header_compiler=yes
7567 else
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7570
7571 ac_header_compiler=no
7572 fi
7573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7575 echo "${ECHO_T}$ac_header_compiler" >&6
7576
7577 # Is the header present?
7578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7580 cat >conftest.$ac_ext <<_ACEOF
7581 /* confdefs.h. */
7582 _ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h. */
7586 #include <$ac_header>
7587 _ACEOF
7588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7590 ac_status=$?
7591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } >/dev/null; then
7596 if test -s conftest.err; then
7597 ac_cpp_err=$ac_c_preproc_warn_flag
7598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7599 else
7600 ac_cpp_err=
7601 fi
7602 else
7603 ac_cpp_err=yes
7604 fi
7605 if test -z "$ac_cpp_err"; then
7606 ac_header_preproc=yes
7607 else
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 ac_header_preproc=no
7612 fi
7613 rm -f conftest.err conftest.$ac_ext
7614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7615 echo "${ECHO_T}$ac_header_preproc" >&6
7616
7617 # So? What about this header?
7618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7619 yes:no: )
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7624 ac_header_preproc=yes
7625 ;;
7626 no:yes:* )
7627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7639 (
7640 cat <<\_ASBOX
7641 ## ------------------------------------------ ##
7642 ## Report this to the AC_PACKAGE_NAME lists. ##
7643 ## ------------------------------------------ ##
7644 _ASBOX
7645 ) |
7646 sed "s/^/$as_me: WARNING: /" >&2
7647 ;;
7648 esac
7649 echo "$as_me:$LINENO: checking for $ac_header" >&5
7650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654 eval "$as_ac_Header=\$ac_header_preproc"
7655 fi
7656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7658
7659 fi
7660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7661 cat >>confdefs.h <<_ACEOF
7662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7663 _ACEOF
7664
7665 fi
7666
7667 done
7668
7669
7670 for ac_header in sys/file.h
7671 do
7672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7674 echo "$as_me:$LINENO: checking for $ac_header" >&5
7675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 fi
7679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7681 else
7682 # Is the header compilable?
7683 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7685 cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h. */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7691 $ac_includes_default
7692 #include <$ac_header>
7693 _ACEOF
7694 rm -f conftest.$ac_objext
7695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7696 (eval $ac_compile) 2>conftest.er1
7697 ac_status=$?
7698 grep -v '^ *+' conftest.er1 >conftest.err
7699 rm -f conftest.er1
7700 cat conftest.err >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } &&
7703 { ac_try='test -z "$ac_c_werror_flag"
7704 || test ! -s conftest.err'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 (eval $ac_try) 2>&5
7707 ac_status=$?
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; } &&
7710 { ac_try='test -s conftest.$ac_objext'
7711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 (eval $ac_try) 2>&5
7713 ac_status=$?
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; }; then
7716 ac_header_compiler=yes
7717 else
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7720
7721 ac_header_compiler=no
7722 fi
7723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7725 echo "${ECHO_T}$ac_header_compiler" >&6
7726
7727 # Is the header present?
7728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7730 cat >conftest.$ac_ext <<_ACEOF
7731 /* confdefs.h. */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 #include <$ac_header>
7737 _ACEOF
7738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7740 ac_status=$?
7741 grep -v '^ *+' conftest.er1 >conftest.err
7742 rm -f conftest.er1
7743 cat conftest.err >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } >/dev/null; then
7746 if test -s conftest.err; then
7747 ac_cpp_err=$ac_c_preproc_warn_flag
7748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7749 else
7750 ac_cpp_err=
7751 fi
7752 else
7753 ac_cpp_err=yes
7754 fi
7755 if test -z "$ac_cpp_err"; then
7756 ac_header_preproc=yes
7757 else
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7760
7761 ac_header_preproc=no
7762 fi
7763 rm -f conftest.err conftest.$ac_ext
7764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7765 echo "${ECHO_T}$ac_header_preproc" >&6
7766
7767 # So? What about this header?
7768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7769 yes:no: )
7770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7774 ac_header_preproc=yes
7775 ;;
7776 no:yes:* )
7777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7789 (
7790 cat <<\_ASBOX
7791 ## ------------------------------------------ ##
7792 ## Report this to the AC_PACKAGE_NAME lists. ##
7793 ## ------------------------------------------ ##
7794 _ASBOX
7795 ) |
7796 sed "s/^/$as_me: WARNING: /" >&2
7797 ;;
7798 esac
7799 echo "$as_me:$LINENO: checking for $ac_header" >&5
7800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804 eval "$as_ac_Header=\$ac_header_preproc"
7805 fi
7806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7808
7809 fi
7810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7811 cat >>confdefs.h <<_ACEOF
7812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7813 _ACEOF
7814
7815 fi
7816
7817 done
7818
7819
7820 for ac_header in sys/filio.h
7821 do
7822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7824 echo "$as_me:$LINENO: checking for $ac_header" >&5
7825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 fi
7829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7831 else
7832 # Is the header compilable?
7833 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7835 cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h. */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 $ac_includes_default
7842 #include <$ac_header>
7843 _ACEOF
7844 rm -f conftest.$ac_objext
7845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7846 (eval $ac_compile) 2>conftest.er1
7847 ac_status=$?
7848 grep -v '^ *+' conftest.er1 >conftest.err
7849 rm -f conftest.er1
7850 cat conftest.err >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } &&
7853 { ac_try='test -z "$ac_c_werror_flag"
7854 || test ! -s conftest.err'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 (eval $ac_try) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; } &&
7860 { ac_try='test -s conftest.$ac_objext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 ac_header_compiler=yes
7867 else
7868 echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7870
7871 ac_header_compiler=no
7872 fi
7873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7875 echo "${ECHO_T}$ac_header_compiler" >&6
7876
7877 # Is the header present?
7878 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h. */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 #include <$ac_header>
7887 _ACEOF
7888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7890 ac_status=$?
7891 grep -v '^ *+' conftest.er1 >conftest.err
7892 rm -f conftest.er1
7893 cat conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } >/dev/null; then
7896 if test -s conftest.err; then
7897 ac_cpp_err=$ac_c_preproc_warn_flag
7898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7899 else
7900 ac_cpp_err=
7901 fi
7902 else
7903 ac_cpp_err=yes
7904 fi
7905 if test -z "$ac_cpp_err"; then
7906 ac_header_preproc=yes
7907 else
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911 ac_header_preproc=no
7912 fi
7913 rm -f conftest.err conftest.$ac_ext
7914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7915 echo "${ECHO_T}$ac_header_preproc" >&6
7916
7917 # So? What about this header?
7918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7919 yes:no: )
7920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7924 ac_header_preproc=yes
7925 ;;
7926 no:yes:* )
7927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7939 (
7940 cat <<\_ASBOX
7941 ## ------------------------------------------ ##
7942 ## Report this to the AC_PACKAGE_NAME lists. ##
7943 ## ------------------------------------------ ##
7944 _ASBOX
7945 ) |
7946 sed "s/^/$as_me: WARNING: /" >&2
7947 ;;
7948 esac
7949 echo "$as_me:$LINENO: checking for $ac_header" >&5
7950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954 eval "$as_ac_Header=\$ac_header_preproc"
7955 fi
7956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7958
7959 fi
7960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7961 cat >>confdefs.h <<_ACEOF
7962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7963 _ACEOF
7964
7965 fi
7966
7967 done
7968
7969
7970 for ac_header in sys/ioctl.h
7971 do
7972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7974 echo "$as_me:$LINENO: checking for $ac_header" >&5
7975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 fi
7979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7981 else
7982 # Is the header compilable?
7983 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7985 cat >conftest.$ac_ext <<_ACEOF
7986 /* confdefs.h. */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991 $ac_includes_default
7992 #include <$ac_header>
7993 _ACEOF
7994 rm -f conftest.$ac_objext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7996 (eval $ac_compile) 2>conftest.er1
7997 ac_status=$?
7998 grep -v '^ *+' conftest.er1 >conftest.err
7999 rm -f conftest.er1
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } &&
8003 { ac_try='test -z "$ac_c_werror_flag"
8004 || test ! -s conftest.err'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 (eval $ac_try) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest.$ac_objext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 (eval $ac_try) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 ac_header_compiler=yes
8017 else
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8020
8021 ac_header_compiler=no
8022 fi
8023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8025 echo "${ECHO_T}$ac_header_compiler" >&6
8026
8027 # Is the header present?
8028 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8030 cat >conftest.$ac_ext <<_ACEOF
8031 /* confdefs.h. */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 #include <$ac_header>
8037 _ACEOF
8038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } >/dev/null; then
8046 if test -s conftest.err; then
8047 ac_cpp_err=$ac_c_preproc_warn_flag
8048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8049 else
8050 ac_cpp_err=
8051 fi
8052 else
8053 ac_cpp_err=yes
8054 fi
8055 if test -z "$ac_cpp_err"; then
8056 ac_header_preproc=yes
8057 else
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8060
8061 ac_header_preproc=no
8062 fi
8063 rm -f conftest.err conftest.$ac_ext
8064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8065 echo "${ECHO_T}$ac_header_preproc" >&6
8066
8067 # So? What about this header?
8068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8069 yes:no: )
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8074 ac_header_preproc=yes
8075 ;;
8076 no:yes:* )
8077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8089 (
8090 cat <<\_ASBOX
8091 ## ------------------------------------------ ##
8092 ## Report this to the AC_PACKAGE_NAME lists. ##
8093 ## ------------------------------------------ ##
8094 _ASBOX
8095 ) |
8096 sed "s/^/$as_me: WARNING: /" >&2
8097 ;;
8098 esac
8099 echo "$as_me:$LINENO: checking for $ac_header" >&5
8100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104 eval "$as_ac_Header=\$ac_header_preproc"
8105 fi
8106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8108
8109 fi
8110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8111 cat >>confdefs.h <<_ACEOF
8112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8113 _ACEOF
8114
8115 fi
8116
8117 done
8118
8119
8120 for ac_header in sys/param.h
8121 do
8122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8124 echo "$as_me:$LINENO: checking for $ac_header" >&5
8125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 fi
8129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8131 else
8132 # Is the header compilable?
8133 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8135 cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h. */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #include <$ac_header>
8143 _ACEOF
8144 rm -f conftest.$ac_objext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8146 (eval $ac_compile) 2>conftest.er1
8147 ac_status=$?
8148 grep -v '^ *+' conftest.er1 >conftest.err
8149 rm -f conftest.er1
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try='test -z "$ac_c_werror_flag"
8154 || test ! -s conftest.err'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 (eval $ac_try) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; } &&
8160 { ac_try='test -s conftest.$ac_objext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 (eval $ac_try) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_header_compiler=yes
8167 else
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8170
8171 ac_header_compiler=no
8172 fi
8173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8175 echo "${ECHO_T}$ac_header_compiler" >&6
8176
8177 # Is the header present?
8178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h. */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8186 #include <$ac_header>
8187 _ACEOF
8188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8190 ac_status=$?
8191 grep -v '^ *+' conftest.er1 >conftest.err
8192 rm -f conftest.er1
8193 cat conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } >/dev/null; then
8196 if test -s conftest.err; then
8197 ac_cpp_err=$ac_c_preproc_warn_flag
8198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8199 else
8200 ac_cpp_err=
8201 fi
8202 else
8203 ac_cpp_err=yes
8204 fi
8205 if test -z "$ac_cpp_err"; then
8206 ac_header_preproc=yes
8207 else
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211 ac_header_preproc=no
8212 fi
8213 rm -f conftest.err conftest.$ac_ext
8214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8215 echo "${ECHO_T}$ac_header_preproc" >&6
8216
8217 # So? What about this header?
8218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8219 yes:no: )
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8224 ac_header_preproc=yes
8225 ;;
8226 no:yes:* )
8227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8234 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8239 (
8240 cat <<\_ASBOX
8241 ## ------------------------------------------ ##
8242 ## Report this to the AC_PACKAGE_NAME lists. ##
8243 ## ------------------------------------------ ##
8244 _ASBOX
8245 ) |
8246 sed "s/^/$as_me: WARNING: /" >&2
8247 ;;
8248 esac
8249 echo "$as_me:$LINENO: checking for $ac_header" >&5
8250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254 eval "$as_ac_Header=\$ac_header_preproc"
8255 fi
8256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8258
8259 fi
8260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8261 cat >>confdefs.h <<_ACEOF
8262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8263 _ACEOF
8264
8265 fi
8266
8267 done
8268
8269
8270 for ac_header in sys/proc.h
8271 do
8272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8273 echo "$as_me:$LINENO: checking for $ac_header" >&5
8274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278 cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h. */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8284 #if HAVE_SYS_PARAM_H
8285 # include <sys/param.h>
8286 #endif
8287
8288
8289 #include <$ac_header>
8290 _ACEOF
8291 rm -f conftest.$ac_objext
8292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8293 (eval $ac_compile) 2>conftest.er1
8294 ac_status=$?
8295 grep -v '^ *+' conftest.er1 >conftest.err
8296 rm -f conftest.er1
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try='test -z "$ac_c_werror_flag"
8301 || test ! -s conftest.err'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; } &&
8307 { ac_try='test -s conftest.$ac_objext'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 (eval $ac_try) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 eval "$as_ac_Header=yes"
8314 else
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8317
8318 eval "$as_ac_Header=no"
8319 fi
8320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8321 fi
8322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8325 cat >>confdefs.h <<_ACEOF
8326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8327 _ACEOF
8328
8329 fi
8330
8331 done
8332
8333
8334 for ac_header in sys/procfs.h
8335 do
8336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8338 echo "$as_me:$LINENO: checking for $ac_header" >&5
8339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 fi
8343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8345 else
8346 # Is the header compilable?
8347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8349 cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h. */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 $ac_includes_default
8356 #include <$ac_header>
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360 (eval $ac_compile) 2>conftest.er1
8361 ac_status=$?
8362 grep -v '^ *+' conftest.er1 >conftest.err
8363 rm -f conftest.er1
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try='test -z "$ac_c_werror_flag"
8368 || test ! -s conftest.err'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 (eval $ac_try) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; } &&
8374 { ac_try='test -s conftest.$ac_objext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 (eval $ac_try) 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 ac_header_compiler=yes
8381 else
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385 ac_header_compiler=no
8386 fi
8387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8389 echo "${ECHO_T}$ac_header_compiler" >&6
8390
8391 # Is the header present?
8392 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8394 cat >conftest.$ac_ext <<_ACEOF
8395 /* confdefs.h. */
8396 _ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8400 #include <$ac_header>
8401 _ACEOF
8402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8404 ac_status=$?
8405 grep -v '^ *+' conftest.er1 >conftest.err
8406 rm -f conftest.er1
8407 cat conftest.err >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } >/dev/null; then
8410 if test -s conftest.err; then
8411 ac_cpp_err=$ac_c_preproc_warn_flag
8412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8413 else
8414 ac_cpp_err=
8415 fi
8416 else
8417 ac_cpp_err=yes
8418 fi
8419 if test -z "$ac_cpp_err"; then
8420 ac_header_preproc=yes
8421 else
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8424
8425 ac_header_preproc=no
8426 fi
8427 rm -f conftest.err conftest.$ac_ext
8428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8429 echo "${ECHO_T}$ac_header_preproc" >&6
8430
8431 # So? What about this header?
8432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8433 yes:no: )
8434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8438 ac_header_preproc=yes
8439 ;;
8440 no:yes:* )
8441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8448 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8453 (
8454 cat <<\_ASBOX
8455 ## ------------------------------------------ ##
8456 ## Report this to the AC_PACKAGE_NAME lists. ##
8457 ## ------------------------------------------ ##
8458 _ASBOX
8459 ) |
8460 sed "s/^/$as_me: WARNING: /" >&2
8461 ;;
8462 esac
8463 echo "$as_me:$LINENO: checking for $ac_header" >&5
8464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 eval "$as_ac_Header=\$ac_header_preproc"
8469 fi
8470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8472
8473 fi
8474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8475 cat >>confdefs.h <<_ACEOF
8476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8477 _ACEOF
8478
8479 fi
8480
8481 done
8482
8483
8484
8485 for ac_header in sys/ptrace.h ptrace.h
8486 do
8487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8489 echo "$as_me:$LINENO: checking for $ac_header" >&5
8490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 fi
8494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8496 else
8497 # Is the header compilable?
8498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8507 #include <$ac_header>
8508 _ACEOF
8509 rm -f conftest.$ac_objext
8510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8511 (eval $ac_compile) 2>conftest.er1
8512 ac_status=$?
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
8518 { ac_try='test -z "$ac_c_werror_flag"
8519 || test ! -s conftest.err'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; } &&
8525 { ac_try='test -s conftest.$ac_objext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8531 ac_header_compiler=yes
8532 else
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536 ac_header_compiler=no
8537 fi
8538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8540 echo "${ECHO_T}$ac_header_compiler" >&6
8541
8542 # Is the header present?
8543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8545 cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h. */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8551 #include <$ac_header>
8552 _ACEOF
8553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8555 ac_status=$?
8556 grep -v '^ *+' conftest.er1 >conftest.err
8557 rm -f conftest.er1
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } >/dev/null; then
8561 if test -s conftest.err; then
8562 ac_cpp_err=$ac_c_preproc_warn_flag
8563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8564 else
8565 ac_cpp_err=
8566 fi
8567 else
8568 ac_cpp_err=yes
8569 fi
8570 if test -z "$ac_cpp_err"; then
8571 ac_header_preproc=yes
8572 else
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8575
8576 ac_header_preproc=no
8577 fi
8578 rm -f conftest.err conftest.$ac_ext
8579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8580 echo "${ECHO_T}$ac_header_preproc" >&6
8581
8582 # So? What about this header?
8583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8584 yes:no: )
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8589 ac_header_preproc=yes
8590 ;;
8591 no:yes:* )
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8604 (
8605 cat <<\_ASBOX
8606 ## ------------------------------------------ ##
8607 ## Report this to the AC_PACKAGE_NAME lists. ##
8608 ## ------------------------------------------ ##
8609 _ASBOX
8610 ) |
8611 sed "s/^/$as_me: WARNING: /" >&2
8612 ;;
8613 esac
8614 echo "$as_me:$LINENO: checking for $ac_header" >&5
8615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619 eval "$as_ac_Header=\$ac_header_preproc"
8620 fi
8621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8623
8624 fi
8625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8626 cat >>confdefs.h <<_ACEOF
8627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8628 _ACEOF
8629
8630 fi
8631
8632 done
8633
8634
8635
8636 for ac_header in sys/reg.h sys/debugreg.h
8637 do
8638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8640 echo "$as_me:$LINENO: checking for $ac_header" >&5
8641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 fi
8645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8647 else
8648 # Is the header compilable?
8649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 $ac_includes_default
8658 #include <$ac_header>
8659 _ACEOF
8660 rm -f conftest.$ac_objext
8661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8662 (eval $ac_compile) 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try='test -z "$ac_c_werror_flag"
8670 || test ! -s conftest.err'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } &&
8676 { ac_try='test -s conftest.$ac_objext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
8682 ac_header_compiler=yes
8683 else
8684 echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.$ac_ext >&5
8686
8687 ac_header_compiler=no
8688 fi
8689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8691 echo "${ECHO_T}$ac_header_compiler" >&6
8692
8693 # Is the header present?
8694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 #include <$ac_header>
8703 _ACEOF
8704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8706 ac_status=$?
8707 grep -v '^ *+' conftest.er1 >conftest.err
8708 rm -f conftest.er1
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } >/dev/null; then
8712 if test -s conftest.err; then
8713 ac_cpp_err=$ac_c_preproc_warn_flag
8714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8715 else
8716 ac_cpp_err=
8717 fi
8718 else
8719 ac_cpp_err=yes
8720 fi
8721 if test -z "$ac_cpp_err"; then
8722 ac_header_preproc=yes
8723 else
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8726
8727 ac_header_preproc=no
8728 fi
8729 rm -f conftest.err conftest.$ac_ext
8730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8731 echo "${ECHO_T}$ac_header_preproc" >&6
8732
8733 # So? What about this header?
8734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8735 yes:no: )
8736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8740 ac_header_preproc=yes
8741 ;;
8742 no:yes:* )
8743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8755 (
8756 cat <<\_ASBOX
8757 ## ------------------------------------------ ##
8758 ## Report this to the AC_PACKAGE_NAME lists. ##
8759 ## ------------------------------------------ ##
8760 _ASBOX
8761 ) |
8762 sed "s/^/$as_me: WARNING: /" >&2
8763 ;;
8764 esac
8765 echo "$as_me:$LINENO: checking for $ac_header" >&5
8766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770 eval "$as_ac_Header=\$ac_header_preproc"
8771 fi
8772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8774
8775 fi
8776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8777 cat >>confdefs.h <<_ACEOF
8778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8779 _ACEOF
8780
8781 fi
8782
8783 done
8784
8785
8786 for ac_header in sys/select.h
8787 do
8788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8790 echo "$as_me:$LINENO: checking for $ac_header" >&5
8791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 fi
8795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8797 else
8798 # Is the header compilable?
8799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 $ac_includes_default
8808 #include <$ac_header>
8809 _ACEOF
8810 rm -f conftest.$ac_objext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8812 (eval $ac_compile) 2>conftest.er1
8813 ac_status=$?
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } &&
8819 { ac_try='test -z "$ac_c_werror_flag"
8820 || test ! -s conftest.err'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 (eval $ac_try) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; } &&
8826 { ac_try='test -s conftest.$ac_objext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 ac_header_compiler=yes
8833 else
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837 ac_header_compiler=no
8838 fi
8839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8841 echo "${ECHO_T}$ac_header_compiler" >&6
8842
8843 # Is the header present?
8844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8846 cat >conftest.$ac_ext <<_ACEOF
8847 /* confdefs.h. */
8848 _ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h. */
8852 #include <$ac_header>
8853 _ACEOF
8854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8856 ac_status=$?
8857 grep -v '^ *+' conftest.er1 >conftest.err
8858 rm -f conftest.er1
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } >/dev/null; then
8862 if test -s conftest.err; then
8863 ac_cpp_err=$ac_c_preproc_warn_flag
8864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8865 else
8866 ac_cpp_err=
8867 fi
8868 else
8869 ac_cpp_err=yes
8870 fi
8871 if test -z "$ac_cpp_err"; then
8872 ac_header_preproc=yes
8873 else
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877 ac_header_preproc=no
8878 fi
8879 rm -f conftest.err conftest.$ac_ext
8880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8881 echo "${ECHO_T}$ac_header_preproc" >&6
8882
8883 # So? What about this header?
8884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8885 yes:no: )
8886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8890 ac_header_preproc=yes
8891 ;;
8892 no:yes:* )
8893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8905 (
8906 cat <<\_ASBOX
8907 ## ------------------------------------------ ##
8908 ## Report this to the AC_PACKAGE_NAME lists. ##
8909 ## ------------------------------------------ ##
8910 _ASBOX
8911 ) |
8912 sed "s/^/$as_me: WARNING: /" >&2
8913 ;;
8914 esac
8915 echo "$as_me:$LINENO: checking for $ac_header" >&5
8916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920 eval "$as_ac_Header=\$ac_header_preproc"
8921 fi
8922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8924
8925 fi
8926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8927 cat >>confdefs.h <<_ACEOF
8928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8929 _ACEOF
8930
8931 fi
8932
8933 done
8934
8935
8936 for ac_header in sys/syscall.h
8937 do
8938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8940 echo "$as_me:$LINENO: checking for $ac_header" >&5
8941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 fi
8945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8947 else
8948 # Is the header compilable?
8949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h. */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 $ac_includes_default
8958 #include <$ac_header>
8959 _ACEOF
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962 (eval $ac_compile) 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag"
8970 || test ! -s conftest.err'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 (eval $ac_try) 2>&5
8973 ac_status=$?
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; } &&
8976 { ac_try='test -s conftest.$ac_objext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_header_compiler=yes
8983 else
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987 ac_header_compiler=no
8988 fi
8989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8991 echo "${ECHO_T}$ac_header_compiler" >&6
8992
8993 # Is the header present?
8994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8996 cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h. */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9002 #include <$ac_header>
9003 _ACEOF
9004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9006 ac_status=$?
9007 grep -v '^ *+' conftest.er1 >conftest.err
9008 rm -f conftest.er1
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } >/dev/null; then
9012 if test -s conftest.err; then
9013 ac_cpp_err=$ac_c_preproc_warn_flag
9014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9015 else
9016 ac_cpp_err=
9017 fi
9018 else
9019 ac_cpp_err=yes
9020 fi
9021 if test -z "$ac_cpp_err"; then
9022 ac_header_preproc=yes
9023 else
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9026
9027 ac_header_preproc=no
9028 fi
9029 rm -f conftest.err conftest.$ac_ext
9030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9031 echo "${ECHO_T}$ac_header_preproc" >&6
9032
9033 # So? What about this header?
9034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9035 yes:no: )
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9040 ac_header_preproc=yes
9041 ;;
9042 no:yes:* )
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9055 (
9056 cat <<\_ASBOX
9057 ## ------------------------------------------ ##
9058 ## Report this to the AC_PACKAGE_NAME lists. ##
9059 ## ------------------------------------------ ##
9060 _ASBOX
9061 ) |
9062 sed "s/^/$as_me: WARNING: /" >&2
9063 ;;
9064 esac
9065 echo "$as_me:$LINENO: checking for $ac_header" >&5
9066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070 eval "$as_ac_Header=\$ac_header_preproc"
9071 fi
9072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9074
9075 fi
9076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9077 cat >>confdefs.h <<_ACEOF
9078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9079 _ACEOF
9080
9081 fi
9082
9083 done
9084
9085
9086 for ac_header in sys/types.h
9087 do
9088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9090 echo "$as_me:$LINENO: checking for $ac_header" >&5
9091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 fi
9095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9097 else
9098 # Is the header compilable?
9099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9101 cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h. */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107 $ac_includes_default
9108 #include <$ac_header>
9109 _ACEOF
9110 rm -f conftest.$ac_objext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9112 (eval $ac_compile) 2>conftest.er1
9113 ac_status=$?
9114 grep -v '^ *+' conftest.er1 >conftest.err
9115 rm -f conftest.er1
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -z "$ac_c_werror_flag"
9120 || test ! -s conftest.err'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; } &&
9126 { ac_try='test -s conftest.$ac_objext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 ac_header_compiler=yes
9133 else
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9136
9137 ac_header_compiler=no
9138 fi
9139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9141 echo "${ECHO_T}$ac_header_compiler" >&6
9142
9143 # Is the header present?
9144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h. */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 #include <$ac_header>
9153 _ACEOF
9154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9156 ac_status=$?
9157 grep -v '^ *+' conftest.er1 >conftest.err
9158 rm -f conftest.er1
9159 cat conftest.err >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } >/dev/null; then
9162 if test -s conftest.err; then
9163 ac_cpp_err=$ac_c_preproc_warn_flag
9164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9165 else
9166 ac_cpp_err=
9167 fi
9168 else
9169 ac_cpp_err=yes
9170 fi
9171 if test -z "$ac_cpp_err"; then
9172 ac_header_preproc=yes
9173 else
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9176
9177 ac_header_preproc=no
9178 fi
9179 rm -f conftest.err conftest.$ac_ext
9180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9181 echo "${ECHO_T}$ac_header_preproc" >&6
9182
9183 # So? What about this header?
9184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9185 yes:no: )
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9190 ac_header_preproc=yes
9191 ;;
9192 no:yes:* )
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9205 (
9206 cat <<\_ASBOX
9207 ## ------------------------------------------ ##
9208 ## Report this to the AC_PACKAGE_NAME lists. ##
9209 ## ------------------------------------------ ##
9210 _ASBOX
9211 ) |
9212 sed "s/^/$as_me: WARNING: /" >&2
9213 ;;
9214 esac
9215 echo "$as_me:$LINENO: checking for $ac_header" >&5
9216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220 eval "$as_ac_Header=\$ac_header_preproc"
9221 fi
9222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9224
9225 fi
9226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9227 cat >>confdefs.h <<_ACEOF
9228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9229 _ACEOF
9230
9231 fi
9232
9233 done
9234
9235
9236 for ac_header in sys/user.h
9237 do
9238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9239 echo "$as_me:$LINENO: checking for $ac_header" >&5
9240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244 cat >conftest.$ac_ext <<_ACEOF
9245 /* confdefs.h. */
9246 _ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 #if HAVE_SYS_PARAM_H
9251 # include <sys/param.h>
9252 #endif
9253
9254
9255 #include <$ac_header>
9256 _ACEOF
9257 rm -f conftest.$ac_objext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9259 (eval $ac_compile) 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try='test -z "$ac_c_werror_flag"
9267 || test ! -s conftest.err'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; } &&
9273 { ac_try='test -s conftest.$ac_objext'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 (eval $ac_try) 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9279 eval "$as_ac_Header=yes"
9280 else
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9283
9284 eval "$as_ac_Header=no"
9285 fi
9286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9287 fi
9288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9291 cat >>confdefs.h <<_ACEOF
9292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9293 _ACEOF
9294
9295 fi
9296
9297 done
9298
9299
9300
9301 for ac_header in sys/wait.h wait.h
9302 do
9303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9305 echo "$as_me:$LINENO: checking for $ac_header" >&5
9306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 fi
9310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9312 else
9313 # Is the header compilable?
9314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9316 cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h. */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9322 $ac_includes_default
9323 #include <$ac_header>
9324 _ACEOF
9325 rm -f conftest.$ac_objext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9327 (eval $ac_compile) 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try='test -z "$ac_c_werror_flag"
9335 || test ! -s conftest.err'
9336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337 (eval $ac_try) 2>&5
9338 ac_status=$?
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; } &&
9341 { ac_try='test -s conftest.$ac_objext'
9342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343 (eval $ac_try) 2>&5
9344 ac_status=$?
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; }; then
9347 ac_header_compiler=yes
9348 else
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9351
9352 ac_header_compiler=no
9353 fi
9354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9356 echo "${ECHO_T}$ac_header_compiler" >&6
9357
9358 # Is the header present?
9359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9361 cat >conftest.$ac_ext <<_ACEOF
9362 /* confdefs.h. */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 #include <$ac_header>
9368 _ACEOF
9369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9371 ac_status=$?
9372 grep -v '^ *+' conftest.er1 >conftest.err
9373 rm -f conftest.er1
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } >/dev/null; then
9377 if test -s conftest.err; then
9378 ac_cpp_err=$ac_c_preproc_warn_flag
9379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9380 else
9381 ac_cpp_err=
9382 fi
9383 else
9384 ac_cpp_err=yes
9385 fi
9386 if test -z "$ac_cpp_err"; then
9387 ac_header_preproc=yes
9388 else
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9391
9392 ac_header_preproc=no
9393 fi
9394 rm -f conftest.err conftest.$ac_ext
9395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9396 echo "${ECHO_T}$ac_header_preproc" >&6
9397
9398 # So? What about this header?
9399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9400 yes:no: )
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9405 ac_header_preproc=yes
9406 ;;
9407 no:yes:* )
9408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9420 (
9421 cat <<\_ASBOX
9422 ## ------------------------------------------ ##
9423 ## Report this to the AC_PACKAGE_NAME lists. ##
9424 ## ------------------------------------------ ##
9425 _ASBOX
9426 ) |
9427 sed "s/^/$as_me: WARNING: /" >&2
9428 ;;
9429 esac
9430 echo "$as_me:$LINENO: checking for $ac_header" >&5
9431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435 eval "$as_ac_Header=\$ac_header_preproc"
9436 fi
9437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9439
9440 fi
9441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9442 cat >>confdefs.h <<_ACEOF
9443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9444 _ACEOF
9445
9446 fi
9447
9448 done
9449
9450
9451
9452
9453 for ac_header in termios.h termio.h sgtty.h
9454 do
9455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9457 echo "$as_me:$LINENO: checking for $ac_header" >&5
9458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 fi
9462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9464 else
9465 # Is the header compilable?
9466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h. */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 $ac_includes_default
9475 #include <$ac_header>
9476 _ACEOF
9477 rm -f conftest.$ac_objext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9479 (eval $ac_compile) 2>conftest.er1
9480 ac_status=$?
9481 grep -v '^ *+' conftest.er1 >conftest.err
9482 rm -f conftest.er1
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } &&
9486 { ac_try='test -z "$ac_c_werror_flag"
9487 || test ! -s conftest.err'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 (eval $ac_try) 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest.$ac_objext'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 (eval $ac_try) 2>&5
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9499 ac_header_compiler=yes
9500 else
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ac_header_compiler=no
9505 fi
9506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9508 echo "${ECHO_T}$ac_header_compiler" >&6
9509
9510 # Is the header present?
9511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9513 cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h. */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519 #include <$ac_header>
9520 _ACEOF
9521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } >/dev/null; then
9529 if test -s conftest.err; then
9530 ac_cpp_err=$ac_c_preproc_warn_flag
9531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9532 else
9533 ac_cpp_err=
9534 fi
9535 else
9536 ac_cpp_err=yes
9537 fi
9538 if test -z "$ac_cpp_err"; then
9539 ac_header_preproc=yes
9540 else
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9543
9544 ac_header_preproc=no
9545 fi
9546 rm -f conftest.err conftest.$ac_ext
9547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9548 echo "${ECHO_T}$ac_header_preproc" >&6
9549
9550 # So? What about this header?
9551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9552 yes:no: )
9553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9557 ac_header_preproc=yes
9558 ;;
9559 no:yes:* )
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9572 (
9573 cat <<\_ASBOX
9574 ## ------------------------------------------ ##
9575 ## Report this to the AC_PACKAGE_NAME lists. ##
9576 ## ------------------------------------------ ##
9577 _ASBOX
9578 ) |
9579 sed "s/^/$as_me: WARNING: /" >&2
9580 ;;
9581 esac
9582 echo "$as_me:$LINENO: checking for $ac_header" >&5
9583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587 eval "$as_ac_Header=\$ac_header_preproc"
9588 fi
9589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9591
9592 fi
9593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9594 cat >>confdefs.h <<_ACEOF
9595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9596 _ACEOF
9597
9598 fi
9599
9600 done
9601
9602
9603 for ac_header in unistd.h
9604 do
9605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9607 echo "$as_me:$LINENO: checking for $ac_header" >&5
9608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 fi
9612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9614 else
9615 # Is the header compilable?
9616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 $ac_includes_default
9625 #include <$ac_header>
9626 _ACEOF
9627 rm -f conftest.$ac_objext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9629 (eval $ac_compile) 2>conftest.er1
9630 ac_status=$?
9631 grep -v '^ *+' conftest.er1 >conftest.err
9632 rm -f conftest.er1
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } &&
9636 { ac_try='test -z "$ac_c_werror_flag"
9637 || test ! -s conftest.err'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 (eval $ac_try) 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; } &&
9643 { ac_try='test -s conftest.$ac_objext'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 (eval $ac_try) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9649 ac_header_compiler=yes
9650 else
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9653
9654 ac_header_compiler=no
9655 fi
9656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9658 echo "${ECHO_T}$ac_header_compiler" >&6
9659
9660 # Is the header present?
9661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 #include <$ac_header>
9670 _ACEOF
9671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } >/dev/null; then
9679 if test -s conftest.err; then
9680 ac_cpp_err=$ac_c_preproc_warn_flag
9681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9682 else
9683 ac_cpp_err=
9684 fi
9685 else
9686 ac_cpp_err=yes
9687 fi
9688 if test -z "$ac_cpp_err"; then
9689 ac_header_preproc=yes
9690 else
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9693
9694 ac_header_preproc=no
9695 fi
9696 rm -f conftest.err conftest.$ac_ext
9697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9698 echo "${ECHO_T}$ac_header_preproc" >&6
9699
9700 # So? What about this header?
9701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9702 yes:no: )
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9707 ac_header_preproc=yes
9708 ;;
9709 no:yes:* )
9710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9722 (
9723 cat <<\_ASBOX
9724 ## ------------------------------------------ ##
9725 ## Report this to the AC_PACKAGE_NAME lists. ##
9726 ## ------------------------------------------ ##
9727 _ASBOX
9728 ) |
9729 sed "s/^/$as_me: WARNING: /" >&2
9730 ;;
9731 esac
9732 echo "$as_me:$LINENO: checking for $ac_header" >&5
9733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737 eval "$as_ac_Header=\$ac_header_preproc"
9738 fi
9739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9741
9742 fi
9743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9744 cat >>confdefs.h <<_ACEOF
9745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9746 _ACEOF
9747
9748 fi
9749
9750 done
9751
9752
9753 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9754 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9755 # think that we don't have <curses.h> if we're using GCC.
9756 case $host_os in
9757 solaris2.[789])
9758 if test "$GCC" = yes; then
9759
9760 cat >>confdefs.h <<\_ACEOF
9761 #define _MSE_INT_H 1
9762 _ACEOF
9763
9764 fi ;;
9765 esac
9766
9767
9768
9769
9770 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
9771 do
9772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9774 echo "$as_me:$LINENO: checking for $ac_header" >&5
9775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 fi
9779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9781 else
9782 # Is the header compilable?
9783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9785 cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h. */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9791 $ac_includes_default
9792 #include <$ac_header>
9793 _ACEOF
9794 rm -f conftest.$ac_objext
9795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9796 (eval $ac_compile) 2>conftest.er1
9797 ac_status=$?
9798 grep -v '^ *+' conftest.er1 >conftest.err
9799 rm -f conftest.er1
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -z "$ac_c_werror_flag"
9804 || test ! -s conftest.err'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 (eval $ac_try) 2>&5
9807 ac_status=$?
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; } &&
9810 { ac_try='test -s conftest.$ac_objext'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 (eval $ac_try) 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; }; then
9816 ac_header_compiler=yes
9817 else
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9820
9821 ac_header_compiler=no
9822 fi
9823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9825 echo "${ECHO_T}$ac_header_compiler" >&6
9826
9827 # Is the header present?
9828 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h. */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 #include <$ac_header>
9837 _ACEOF
9838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } >/dev/null; then
9846 if test -s conftest.err; then
9847 ac_cpp_err=$ac_c_preproc_warn_flag
9848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9849 else
9850 ac_cpp_err=
9851 fi
9852 else
9853 ac_cpp_err=yes
9854 fi
9855 if test -z "$ac_cpp_err"; then
9856 ac_header_preproc=yes
9857 else
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 ac_header_preproc=no
9862 fi
9863 rm -f conftest.err conftest.$ac_ext
9864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9865 echo "${ECHO_T}$ac_header_preproc" >&6
9866
9867 # So? What about this header?
9868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9869 yes:no: )
9870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9874 ac_header_preproc=yes
9875 ;;
9876 no:yes:* )
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9889 (
9890 cat <<\_ASBOX
9891 ## ------------------------------------------ ##
9892 ## Report this to the AC_PACKAGE_NAME lists. ##
9893 ## ------------------------------------------ ##
9894 _ASBOX
9895 ) |
9896 sed "s/^/$as_me: WARNING: /" >&2
9897 ;;
9898 esac
9899 echo "$as_me:$LINENO: checking for $ac_header" >&5
9900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904 eval "$as_ac_Header=\$ac_header_preproc"
9905 fi
9906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9908
9909 fi
9910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9911 cat >>confdefs.h <<_ACEOF
9912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9913 _ACEOF
9914
9915 fi
9916
9917 done
9918
9919
9920 for ac_header in ncurses/term.h
9921 do
9922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9924 echo "$as_me:$LINENO: checking for $ac_header" >&5
9925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 fi
9929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9931 else
9932 # Is the header compilable?
9933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9935 cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h. */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9941 $ac_includes_default
9942 #include <$ac_header>
9943 _ACEOF
9944 rm -f conftest.$ac_objext
9945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9946 (eval $ac_compile) 2>conftest.er1
9947 ac_status=$?
9948 grep -v '^ *+' conftest.er1 >conftest.err
9949 rm -f conftest.er1
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } &&
9953 { ac_try='test -z "$ac_c_werror_flag"
9954 || test ! -s conftest.err'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 (eval $ac_try) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; } &&
9960 { ac_try='test -s conftest.$ac_objext'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_header_compiler=yes
9967 else
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9970
9971 ac_header_compiler=no
9972 fi
9973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9975 echo "${ECHO_T}$ac_header_compiler" >&6
9976
9977 # Is the header present?
9978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 #include <$ac_header>
9987 _ACEOF
9988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } >/dev/null; then
9996 if test -s conftest.err; then
9997 ac_cpp_err=$ac_c_preproc_warn_flag
9998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9999 else
10000 ac_cpp_err=
10001 fi
10002 else
10003 ac_cpp_err=yes
10004 fi
10005 if test -z "$ac_cpp_err"; then
10006 ac_header_preproc=yes
10007 else
10008 echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10010
10011 ac_header_preproc=no
10012 fi
10013 rm -f conftest.err conftest.$ac_ext
10014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10015 echo "${ECHO_T}$ac_header_preproc" >&6
10016
10017 # So? What about this header?
10018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10019 yes:no: )
10020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10024 ac_header_preproc=yes
10025 ;;
10026 no:yes:* )
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10039 (
10040 cat <<\_ASBOX
10041 ## ------------------------------------------ ##
10042 ## Report this to the AC_PACKAGE_NAME lists. ##
10043 ## ------------------------------------------ ##
10044 _ASBOX
10045 ) |
10046 sed "s/^/$as_me: WARNING: /" >&2
10047 ;;
10048 esac
10049 echo "$as_me:$LINENO: checking for $ac_header" >&5
10050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054 eval "$as_ac_Header=\$ac_header_preproc"
10055 fi
10056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10058
10059 fi
10060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10061 cat >>confdefs.h <<_ACEOF
10062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10063 _ACEOF
10064
10065 fi
10066
10067 done
10068
10069
10070 for ac_header in term.h
10071 do
10072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10073 echo "$as_me:$LINENO: checking for $ac_header" >&5
10074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h. */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 #if HAVE_CURSES_H
10085 # include <curses.h>
10086 #endif
10087
10088
10089 #include <$ac_header>
10090 _ACEOF
10091 rm -f conftest.$ac_objext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10093 (eval $ac_compile) 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag"
10101 || test ! -s conftest.err'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 eval "$as_ac_Header=yes"
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 eval "$as_ac_Header=no"
10119 fi
10120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10121 fi
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10125 cat >>confdefs.h <<_ACEOF
10126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10127 _ACEOF
10128
10129 fi
10130
10131 done
10132
10133
10134 # FIXME: kettenis/20030102: In most cases we include these
10135 # unconditionally, so what's the point in checking these?
10136
10137
10138 for ac_header in ctype.h time.h
10139 do
10140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10142 echo "$as_me:$LINENO: checking for $ac_header" >&5
10143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 fi
10147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10149 else
10150 # Is the header compilable?
10151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10153 cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h. */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10159 $ac_includes_default
10160 #include <$ac_header>
10161 _ACEOF
10162 rm -f conftest.$ac_objext
10163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10164 (eval $ac_compile) 2>conftest.er1
10165 ac_status=$?
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } &&
10171 { ac_try='test -z "$ac_c_werror_flag"
10172 || test ! -s conftest.err'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; } &&
10178 { ac_try='test -s conftest.$ac_objext'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 ac_header_compiler=yes
10185 else
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10188
10189 ac_header_compiler=no
10190 fi
10191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10193 echo "${ECHO_T}$ac_header_compiler" >&6
10194
10195 # Is the header present?
10196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h. */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 #include <$ac_header>
10205 _ACEOF
10206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10208 ac_status=$?
10209 grep -v '^ *+' conftest.er1 >conftest.err
10210 rm -f conftest.er1
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } >/dev/null; then
10214 if test -s conftest.err; then
10215 ac_cpp_err=$ac_c_preproc_warn_flag
10216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10217 else
10218 ac_cpp_err=
10219 fi
10220 else
10221 ac_cpp_err=yes
10222 fi
10223 if test -z "$ac_cpp_err"; then
10224 ac_header_preproc=yes
10225 else
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 ac_header_preproc=no
10230 fi
10231 rm -f conftest.err conftest.$ac_ext
10232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10233 echo "${ECHO_T}$ac_header_preproc" >&6
10234
10235 # So? What about this header?
10236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10237 yes:no: )
10238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10242 ac_header_preproc=yes
10243 ;;
10244 no:yes:* )
10245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10257 (
10258 cat <<\_ASBOX
10259 ## ------------------------------------------ ##
10260 ## Report this to the AC_PACKAGE_NAME lists. ##
10261 ## ------------------------------------------ ##
10262 _ASBOX
10263 ) |
10264 sed "s/^/$as_me: WARNING: /" >&2
10265 ;;
10266 esac
10267 echo "$as_me:$LINENO: checking for $ac_header" >&5
10268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 else
10272 eval "$as_ac_Header=\$ac_header_preproc"
10273 fi
10274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10276
10277 fi
10278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10279 cat >>confdefs.h <<_ACEOF
10280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10281 _ACEOF
10282
10283 fi
10284
10285 done
10286
10287
10288 # Create a header we can use portably to get the standard integer types.
10289
10290
10291 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
10292
10293 acx_cv_header_stdint=stddef.h
10294 acx_cv_header_stdint_kind="(already complete)"
10295 for i in stdint.h $inttype_headers; do
10296 unset ac_cv_type_uintptr_t
10297 unset ac_cv_type_uintmax_t
10298 unset ac_cv_type_int_least32_t
10299 unset ac_cv_type_int_fast32_t
10300 unset ac_cv_type_uint64_t
10301 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
10302 echo "$as_me:$LINENO: checking for uintmax_t" >&5
10303 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
10304 if test "${ac_cv_type_uintmax_t+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307 cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h. */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 #include <sys/types.h>
10314 #include <$i>
10315
10316 int
10317 main ()
10318 {
10319 if ((uintmax_t *) 0)
10320 return 0;
10321 if (sizeof (uintmax_t))
10322 return 0;
10323 ;
10324 return 0;
10325 }
10326 _ACEOF
10327 rm -f conftest.$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>conftest.er1
10330 ac_status=$?
10331 grep -v '^ *+' conftest.er1 >conftest.err
10332 rm -f conftest.er1
10333 cat conftest.err >&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } &&
10336 { ac_try='test -z "$ac_c_werror_flag"
10337 || test ! -s conftest.err'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; } &&
10343 { ac_try='test -s conftest.$ac_objext'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 ac_cv_type_uintmax_t=yes
10350 else
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10353
10354 ac_cv_type_uintmax_t=no
10355 fi
10356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10357 fi
10358 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
10359 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
10360 if test $ac_cv_type_uintmax_t = yes; then
10361 acx_cv_header_stdint=$i
10362 else
10363 continue
10364 fi
10365
10366 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10367 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10368 if test "${ac_cv_type_uintptr_t+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 else
10371 cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h. */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 #include <sys/types.h>
10378 #include <$i>
10379
10380 int
10381 main ()
10382 {
10383 if ((uintptr_t *) 0)
10384 return 0;
10385 if (sizeof (uintptr_t))
10386 return 0;
10387 ;
10388 return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest.$ac_objext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393 (eval $ac_compile) 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag"
10401 || test ! -s conftest.err'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; } &&
10407 { ac_try='test -s conftest.$ac_objext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_cv_type_uintptr_t=yes
10414 else
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418 ac_cv_type_uintptr_t=no
10419 fi
10420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10421 fi
10422 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10423 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10424 if test $ac_cv_type_uintptr_t = yes; then
10425 :
10426 else
10427 acx_cv_header_stdint_kind="(mostly complete)"
10428 fi
10429
10430 echo "$as_me:$LINENO: checking for int_least32_t" >&5
10431 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
10432 if test "${ac_cv_type_int_least32_t+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h. */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <sys/types.h>
10442 #include <$i>
10443
10444 int
10445 main ()
10446 {
10447 if ((int_least32_t *) 0)
10448 return 0;
10449 if (sizeof (int_least32_t))
10450 return 0;
10451 ;
10452 return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest.$ac_objext
10456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10457 (eval $ac_compile) 2>conftest.er1
10458 ac_status=$?
10459 grep -v '^ *+' conftest.er1 >conftest.err
10460 rm -f conftest.er1
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } &&
10464 { ac_try='test -z "$ac_c_werror_flag"
10465 || test ! -s conftest.err'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; } &&
10471 { ac_try='test -s conftest.$ac_objext'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; }; then
10477 ac_cv_type_int_least32_t=yes
10478 else
10479 echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10481
10482 ac_cv_type_int_least32_t=no
10483 fi
10484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10485 fi
10486 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
10487 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
10488 if test $ac_cv_type_int_least32_t = yes; then
10489 :
10490 else
10491 acx_cv_header_stdint_kind="(mostly complete)"
10492 fi
10493
10494 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
10495 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
10496 if test "${ac_cv_type_int_fast32_t+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 else
10499 cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h. */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 #include <sys/types.h>
10506 #include <$i>
10507
10508 int
10509 main ()
10510 {
10511 if ((int_fast32_t *) 0)
10512 return 0;
10513 if (sizeof (int_fast32_t))
10514 return 0;
10515 ;
10516 return 0;
10517 }
10518 _ACEOF
10519 rm -f conftest.$ac_objext
10520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10521 (eval $ac_compile) 2>conftest.er1
10522 ac_status=$?
10523 grep -v '^ *+' conftest.er1 >conftest.err
10524 rm -f conftest.er1
10525 cat conftest.err >&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } &&
10528 { ac_try='test -z "$ac_c_werror_flag"
10529 || test ! -s conftest.err'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; } &&
10535 { ac_try='test -s conftest.$ac_objext'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541 ac_cv_type_int_fast32_t=yes
10542 else
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10545
10546 ac_cv_type_int_fast32_t=no
10547 fi
10548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10549 fi
10550 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
10551 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
10552 if test $ac_cv_type_int_fast32_t = yes; then
10553 :
10554 else
10555 acx_cv_header_stdint_kind="(mostly complete)"
10556 fi
10557
10558 echo "$as_me:$LINENO: checking for uint64_t" >&5
10559 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
10560 if test "${ac_cv_type_uint64_t+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 else
10563 cat >conftest.$ac_ext <<_ACEOF
10564 /* confdefs.h. */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569 #include <sys/types.h>
10570 #include <$i>
10571
10572 int
10573 main ()
10574 {
10575 if ((uint64_t *) 0)
10576 return 0;
10577 if (sizeof (uint64_t))
10578 return 0;
10579 ;
10580 return 0;
10581 }
10582 _ACEOF
10583 rm -f conftest.$ac_objext
10584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10585 (eval $ac_compile) 2>conftest.er1
10586 ac_status=$?
10587 grep -v '^ *+' conftest.er1 >conftest.err
10588 rm -f conftest.er1
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } &&
10592 { ac_try='test -z "$ac_c_werror_flag"
10593 || test ! -s conftest.err'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; } &&
10599 { ac_try='test -s conftest.$ac_objext'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; }; then
10605 ac_cv_type_uint64_t=yes
10606 else
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10609
10610 ac_cv_type_uint64_t=no
10611 fi
10612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10613 fi
10614 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
10615 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
10616 if test $ac_cv_type_uint64_t = yes; then
10617 :
10618 else
10619 acx_cv_header_stdint_kind="(lacks uint64_t)"
10620 fi
10621
10622 break
10623 done
10624 if test "$acx_cv_header_stdint" = stddef.h; then
10625 acx_cv_header_stdint_kind="(lacks uintptr_t)"
10626 for i in stdint.h $inttype_headers; do
10627 unset ac_cv_type_uint32_t
10628 unset ac_cv_type_uint64_t
10629 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
10630 echo "$as_me:$LINENO: checking for uint32_t" >&5
10631 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
10632 if test "${ac_cv_type_uint32_t+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635 cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h. */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 #include <sys/types.h>
10642 #include <$i>
10643
10644 int
10645 main ()
10646 {
10647 if ((uint32_t *) 0)
10648 return 0;
10649 if (sizeof (uint32_t))
10650 return 0;
10651 ;
10652 return 0;
10653 }
10654 _ACEOF
10655 rm -f conftest.$ac_objext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657 (eval $ac_compile) 2>conftest.er1
10658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -z "$ac_c_werror_flag"
10665 || test ! -s conftest.err'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest.$ac_objext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_cv_type_uint32_t=yes
10678 else
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682 ac_cv_type_uint32_t=no
10683 fi
10684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10685 fi
10686 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
10687 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
10688 if test $ac_cv_type_uint32_t = yes; then
10689 acx_cv_header_stdint=$i
10690 else
10691 continue
10692 fi
10693
10694 echo "$as_me:$LINENO: checking for uint64_t" >&5
10695 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
10696 if test "${ac_cv_type_uint64_t+set}" = set; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699 cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h. */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10705 #include <sys/types.h>
10706 #include <$i>
10707
10708 int
10709 main ()
10710 {
10711 if ((uint64_t *) 0)
10712 return 0;
10713 if (sizeof (uint64_t))
10714 return 0;
10715 ;
10716 return 0;
10717 }
10718 _ACEOF
10719 rm -f conftest.$ac_objext
10720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10721 (eval $ac_compile) 2>conftest.er1
10722 ac_status=$?
10723 grep -v '^ *+' conftest.er1 >conftest.err
10724 rm -f conftest.er1
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
10728 { ac_try='test -z "$ac_c_werror_flag"
10729 || test ! -s conftest.err'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; } &&
10735 { ac_try='test -s conftest.$ac_objext'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 ac_cv_type_uint64_t=yes
10742 else
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10745
10746 ac_cv_type_uint64_t=no
10747 fi
10748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10749 fi
10750 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
10751 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
10752 if test $ac_cv_type_uint64_t = yes; then
10753 :
10754 else
10755 acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)"
10756 fi
10757
10758 break
10759 done
10760 fi
10761 if test "$acx_cv_header_stdint" = stddef.h; then
10762 acx_cv_header_stdint_kind="(u_intXX_t style)"
10763 for i in sys/types.h $inttype_headers; do
10764 unset ac_cv_type_u_int32_t
10765 unset ac_cv_type_u_int64_t
10766 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
10767 echo "$as_me:$LINENO: checking for u_int32_t" >&5
10768 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
10769 if test "${ac_cv_type_u_int32_t+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10772 cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h. */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778 #include <sys/types.h>
10779 #include <$i>
10780
10781 int
10782 main ()
10783 {
10784 if ((u_int32_t *) 0)
10785 return 0;
10786 if (sizeof (u_int32_t))
10787 return 0;
10788 ;
10789 return 0;
10790 }
10791 _ACEOF
10792 rm -f conftest.$ac_objext
10793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10794 (eval $ac_compile) 2>conftest.er1
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } &&
10801 { ac_try='test -z "$ac_c_werror_flag"
10802 || test ! -s conftest.err'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try='test -s conftest.$ac_objext'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 ac_cv_type_u_int32_t=yes
10815 else
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10818
10819 ac_cv_type_u_int32_t=no
10820 fi
10821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10822 fi
10823 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10824 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
10825 if test $ac_cv_type_u_int32_t = yes; then
10826 acx_cv_header_stdint=$i
10827 else
10828 continue
10829 fi
10830
10831 echo "$as_me:$LINENO: checking for u_int64_t" >&5
10832 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
10833 if test "${ac_cv_type_u_int64_t+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 else
10836 cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h. */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <sys/types.h>
10843 #include <$i>
10844
10845 int
10846 main ()
10847 {
10848 if ((u_int64_t *) 0)
10849 return 0;
10850 if (sizeof (u_int64_t))
10851 return 0;
10852 ;
10853 return 0;
10854 }
10855 _ACEOF
10856 rm -f conftest.$ac_objext
10857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10858 (eval $ac_compile) 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } &&
10865 { ac_try='test -z "$ac_c_werror_flag"
10866 || test ! -s conftest.err'
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10869 ac_status=$?
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; } &&
10872 { ac_try='test -s conftest.$ac_objext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 ac_cv_type_u_int64_t=yes
10879 else
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883 ac_cv_type_u_int64_t=no
10884 fi
10885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10886 fi
10887 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10888 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
10889 if test $ac_cv_type_u_int64_t = yes; then
10890 :
10891 else
10892 acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)"
10893 fi
10894
10895 break
10896 done
10897 fi
10898 if test "$acx_cv_header_stdint" = stddef.h; then
10899 acx_cv_header_stdint_kind="(using manual detection)"
10900 fi
10901
10902 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
10903 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
10904 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
10905 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
10906 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
10907
10908 # ----------------- Summarize what we found so far
10909
10910 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
10911 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
10912
10913 case `$as_basename gdb_stdint.h ||
10914 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
10915 Xgdb_stdint.h : 'X\(//\)$' \| \
10916 Xgdb_stdint.h : 'X\(/\)$' \| \
10917 . : '\(.\)' 2>/dev/null ||
10918 echo X/gdb_stdint.h |
10919 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10920 /^X\/\(\/\/\)$/{ s//\1/; q; }
10921 /^X\/\(\/\).*/{ s//\1/; q; }
10922 s/.*/./; q'` in
10923 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
10924 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
10925 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
10926 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
10927 *) ;;
10928 esac
10929
10930 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
10931 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
10932
10933 # ----------------- done included file, check C basic types --------
10934
10935 # Lacking an uintptr_t? Test size of void *
10936 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
10937 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
10938 echo $ECHO_N "checking for void *... $ECHO_C" >&6
10939 if test "${ac_cv_type_void_p+set}" = set; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 else
10942 cat >conftest.$ac_ext <<_ACEOF
10943 /* confdefs.h. */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10948 $ac_includes_default
10949 int
10950 main ()
10951 {
10952 if ((void * *) 0)
10953 return 0;
10954 if (sizeof (void *))
10955 return 0;
10956 ;
10957 return 0;
10958 }
10959 _ACEOF
10960 rm -f conftest.$ac_objext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10962 (eval $ac_compile) 2>conftest.er1
10963 ac_status=$?
10964 grep -v '^ *+' conftest.er1 >conftest.err
10965 rm -f conftest.er1
10966 cat conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } &&
10969 { ac_try='test -z "$ac_c_werror_flag"
10970 || test ! -s conftest.err'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; } &&
10976 { ac_try='test -s conftest.$ac_objext'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; }; then
10982 ac_cv_type_void_p=yes
10983 else
10984 echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10986
10987 ac_cv_type_void_p=no
10988 fi
10989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10990 fi
10991 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
10992 echo "${ECHO_T}$ac_cv_type_void_p" >&6
10993
10994 echo "$as_me:$LINENO: checking size of void *" >&5
10995 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
10996 if test "${ac_cv_sizeof_void_p+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 else
10999 if test "$ac_cv_type_void_p" = yes; then
11000 # The cast to unsigned long works around a bug in the HP C Compiler
11001 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11002 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11003 # This bug is HP SR number 8606223364.
11004 if test "$cross_compiling" = yes; then
11005 # Depending upon the size, compute the lo and hi bounds.
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h. */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 $ac_includes_default
11013 int
11014 main ()
11015 {
11016 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11017 test_array [0] = 0
11018
11019 ;
11020 return 0;
11021 }
11022 _ACEOF
11023 rm -f conftest.$ac_objext
11024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11025 (eval $ac_compile) 2>conftest.er1
11026 ac_status=$?
11027 grep -v '^ *+' conftest.er1 >conftest.err
11028 rm -f conftest.er1
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try='test -z "$ac_c_werror_flag"
11033 || test ! -s conftest.err'
11034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; } &&
11039 { ac_try='test -s conftest.$ac_objext'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
11045 ac_lo=0 ac_mid=0
11046 while :; do
11047 cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h. */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11053 $ac_includes_default
11054 int
11055 main ()
11056 {
11057 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11058 test_array [0] = 0
11059
11060 ;
11061 return 0;
11062 }
11063 _ACEOF
11064 rm -f conftest.$ac_objext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11066 (eval $ac_compile) 2>conftest.er1
11067 ac_status=$?
11068 grep -v '^ *+' conftest.er1 >conftest.err
11069 rm -f conftest.er1
11070 cat conftest.err >&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
11073 { ac_try='test -z "$ac_c_werror_flag"
11074 || test ! -s conftest.err'
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; } &&
11080 { ac_try='test -s conftest.$ac_objext'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; }; then
11086 ac_hi=$ac_mid; break
11087 else
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11090
11091 ac_lo=`expr $ac_mid + 1`
11092 if test $ac_lo -le $ac_mid; then
11093 ac_lo= ac_hi=
11094 break
11095 fi
11096 ac_mid=`expr 2 '*' $ac_mid + 1`
11097 fi
11098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11099 done
11100 else
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11103
11104 cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h. */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110 $ac_includes_default
11111 int
11112 main ()
11113 {
11114 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11115 test_array [0] = 0
11116
11117 ;
11118 return 0;
11119 }
11120 _ACEOF
11121 rm -f conftest.$ac_objext
11122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123 (eval $ac_compile) 2>conftest.er1
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -z "$ac_c_werror_flag"
11131 || test ! -s conftest.err'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; } &&
11137 { ac_try='test -s conftest.$ac_objext'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_hi=-1 ac_mid=-1
11144 while :; do
11145 cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h. */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11151 $ac_includes_default
11152 int
11153 main ()
11154 {
11155 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11156 test_array [0] = 0
11157
11158 ;
11159 return 0;
11160 }
11161 _ACEOF
11162 rm -f conftest.$ac_objext
11163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11164 (eval $ac_compile) 2>conftest.er1
11165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } &&
11171 { ac_try='test -z "$ac_c_werror_flag"
11172 || test ! -s conftest.err'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; } &&
11178 { ac_try='test -s conftest.$ac_objext'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11181 ac_status=$?
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; }; then
11184 ac_lo=$ac_mid; break
11185 else
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11188
11189 ac_hi=`expr '(' $ac_mid ')' - 1`
11190 if test $ac_mid -le $ac_hi; then
11191 ac_lo= ac_hi=
11192 break
11193 fi
11194 ac_mid=`expr 2 '*' $ac_mid`
11195 fi
11196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11197 done
11198 else
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11201
11202 ac_lo= ac_hi=
11203 fi
11204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11205 fi
11206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11207 # Binary search between lo and hi bounds.
11208 while test "x$ac_lo" != "x$ac_hi"; do
11209 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 $ac_includes_default
11217 int
11218 main ()
11219 {
11220 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11221 test_array [0] = 0
11222
11223 ;
11224 return 0;
11225 }
11226 _ACEOF
11227 rm -f conftest.$ac_objext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11229 (eval $ac_compile) 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag"
11237 || test ! -s conftest.err'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try='test -s conftest.$ac_objext'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 ac_hi=$ac_mid
11250 else
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 ac_lo=`expr '(' $ac_mid ')' + 1`
11255 fi
11256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11257 done
11258 case $ac_lo in
11259 ?*) ac_cv_sizeof_void_p=$ac_lo;;
11260 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
11261 See \`config.log' for more details." >&5
11262 echo "$as_me: error: cannot compute sizeof (void *), 77
11263 See \`config.log' for more details." >&2;}
11264 { (exit 1); exit 1; }; } ;;
11265 esac
11266 else
11267 if test "$cross_compiling" = yes; then
11268 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11269 See \`config.log' for more details." >&5
11270 echo "$as_me: error: cannot run test program while cross compiling
11271 See \`config.log' for more details." >&2;}
11272 { (exit 1); exit 1; }; }
11273 else
11274 cat >conftest.$ac_ext <<_ACEOF
11275 /* confdefs.h. */
11276 _ACEOF
11277 cat confdefs.h >>conftest.$ac_ext
11278 cat >>conftest.$ac_ext <<_ACEOF
11279 /* end confdefs.h. */
11280 $ac_includes_default
11281 long longval () { return (long) (sizeof (void *)); }
11282 unsigned long ulongval () { return (long) (sizeof (void *)); }
11283 #include <stdio.h>
11284 #include <stdlib.h>
11285 int
11286 main ()
11287 {
11288
11289 FILE *f = fopen ("conftest.val", "w");
11290 if (! f)
11291 exit (1);
11292 if (((long) (sizeof (void *))) < 0)
11293 {
11294 long i = longval ();
11295 if (i != ((long) (sizeof (void *))))
11296 exit (1);
11297 fprintf (f, "%ld\n", i);
11298 }
11299 else
11300 {
11301 unsigned long i = ulongval ();
11302 if (i != ((long) (sizeof (void *))))
11303 exit (1);
11304 fprintf (f, "%lu\n", i);
11305 }
11306 exit (ferror (f) || fclose (f) != 0);
11307
11308 ;
11309 return 0;
11310 }
11311 _ACEOF
11312 rm -f conftest$ac_exeext
11313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314 (eval $ac_link) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ac_cv_sizeof_void_p=`cat conftest.val`
11324 else
11325 echo "$as_me: program exited with status $ac_status" >&5
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329 ( exit $ac_status )
11330 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
11331 See \`config.log' for more details." >&5
11332 echo "$as_me: error: cannot compute sizeof (void *), 77
11333 See \`config.log' for more details." >&2;}
11334 { (exit 1); exit 1; }; }
11335 fi
11336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11337 fi
11338 fi
11339 rm -f conftest.val
11340 else
11341 ac_cv_sizeof_void_p=0
11342 fi
11343 fi
11344 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
11345 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
11346 cat >>confdefs.h <<_ACEOF
11347 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11348 _ACEOF
11349
11350 ;;
11351 esac
11352
11353 # Lacking an uint64_t? Test size of long
11354 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
11355 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
11356 echo $ECHO_N "checking for long... $ECHO_C" >&6
11357 if test "${ac_cv_type_long+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360 cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h. */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 $ac_includes_default
11367 int
11368 main ()
11369 {
11370 if ((long *) 0)
11371 return 0;
11372 if (sizeof (long))
11373 return 0;
11374 ;
11375 return 0;
11376 }
11377 _ACEOF
11378 rm -f conftest.$ac_objext
11379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11380 (eval $ac_compile) 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } &&
11387 { ac_try='test -z "$ac_c_werror_flag"
11388 || test ! -s conftest.err'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try='test -s conftest.$ac_objext'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 ac_cv_type_long=yes
11401 else
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405 ac_cv_type_long=no
11406 fi
11407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11408 fi
11409 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11410 echo "${ECHO_T}$ac_cv_type_long" >&6
11411
11412 echo "$as_me:$LINENO: checking size of long" >&5
11413 echo $ECHO_N "checking size of long... $ECHO_C" >&6
11414 if test "${ac_cv_sizeof_long+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417 if test "$ac_cv_type_long" = yes; then
11418 # The cast to unsigned long works around a bug in the HP C Compiler
11419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11421 # This bug is HP SR number 8606223364.
11422 if test "$cross_compiling" = yes; then
11423 # Depending upon the size, compute the lo and hi bounds.
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 $ac_includes_default
11431 int
11432 main ()
11433 {
11434 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11435 test_array [0] = 0
11436
11437 ;
11438 return 0;
11439 }
11440 _ACEOF
11441 rm -f conftest.$ac_objext
11442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11443 (eval $ac_compile) 2>conftest.er1
11444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } &&
11450 { ac_try='test -z "$ac_c_werror_flag"
11451 || test ! -s conftest.err'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; } &&
11457 { ac_try='test -s conftest.$ac_objext'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463 ac_lo=0 ac_mid=0
11464 while :; do
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 int
11473 main ()
11474 {
11475 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11476 test_array [0] = 0
11477
11478 ;
11479 return 0;
11480 }
11481 _ACEOF
11482 rm -f conftest.$ac_objext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11484 (eval $ac_compile) 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag"
11492 || test ! -s conftest.err'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try='test -s conftest.$ac_objext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 ac_hi=$ac_mid; break
11505 else
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ac_lo=`expr $ac_mid + 1`
11510 if test $ac_lo -le $ac_mid; then
11511 ac_lo= ac_hi=
11512 break
11513 fi
11514 ac_mid=`expr 2 '*' $ac_mid + 1`
11515 fi
11516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11517 done
11518 else
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11521
11522 cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h. */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 $ac_includes_default
11529 int
11530 main ()
11531 {
11532 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11533 test_array [0] = 0
11534
11535 ;
11536 return 0;
11537 }
11538 _ACEOF
11539 rm -f conftest.$ac_objext
11540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11541 (eval $ac_compile) 2>conftest.er1
11542 ac_status=$?
11543 grep -v '^ *+' conftest.er1 >conftest.err
11544 rm -f conftest.er1
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try='test -z "$ac_c_werror_flag"
11549 || test ! -s conftest.err'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try='test -s conftest.$ac_objext'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 ac_hi=-1 ac_mid=-1
11562 while :; do
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h. */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 $ac_includes_default
11570 int
11571 main ()
11572 {
11573 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11574 test_array [0] = 0
11575
11576 ;
11577 return 0;
11578 }
11579 _ACEOF
11580 rm -f conftest.$ac_objext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11582 (eval $ac_compile) 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } &&
11589 { ac_try='test -z "$ac_c_werror_flag"
11590 || test ! -s conftest.err'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; } &&
11596 { ac_try='test -s conftest.$ac_objext'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_lo=$ac_mid; break
11603 else
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11606
11607 ac_hi=`expr '(' $ac_mid ')' - 1`
11608 if test $ac_mid -le $ac_hi; then
11609 ac_lo= ac_hi=
11610 break
11611 fi
11612 ac_mid=`expr 2 '*' $ac_mid`
11613 fi
11614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11615 done
11616 else
11617 echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11619
11620 ac_lo= ac_hi=
11621 fi
11622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11623 fi
11624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11625 # Binary search between lo and hi bounds.
11626 while test "x$ac_lo" != "x$ac_hi"; do
11627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11628 cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h. */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634 $ac_includes_default
11635 int
11636 main ()
11637 {
11638 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11639 test_array [0] = 0
11640
11641 ;
11642 return 0;
11643 }
11644 _ACEOF
11645 rm -f conftest.$ac_objext
11646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11647 (eval $ac_compile) 2>conftest.er1
11648 ac_status=$?
11649 grep -v '^ *+' conftest.er1 >conftest.err
11650 rm -f conftest.er1
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
11654 { ac_try='test -z "$ac_c_werror_flag"
11655 || test ! -s conftest.err'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest.$ac_objext'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11667 ac_hi=$ac_mid
11668 else
11669 echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11671
11672 ac_lo=`expr '(' $ac_mid ')' + 1`
11673 fi
11674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11675 done
11676 case $ac_lo in
11677 ?*) ac_cv_sizeof_long=$ac_lo;;
11678 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11679 See \`config.log' for more details." >&5
11680 echo "$as_me: error: cannot compute sizeof (long), 77
11681 See \`config.log' for more details." >&2;}
11682 { (exit 1); exit 1; }; } ;;
11683 esac
11684 else
11685 if test "$cross_compiling" = yes; then
11686 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11687 See \`config.log' for more details." >&5
11688 echo "$as_me: error: cannot run test program while cross compiling
11689 See \`config.log' for more details." >&2;}
11690 { (exit 1); exit 1; }; }
11691 else
11692 cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h. */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 $ac_includes_default
11699 long longval () { return (long) (sizeof (long)); }
11700 unsigned long ulongval () { return (long) (sizeof (long)); }
11701 #include <stdio.h>
11702 #include <stdlib.h>
11703 int
11704 main ()
11705 {
11706
11707 FILE *f = fopen ("conftest.val", "w");
11708 if (! f)
11709 exit (1);
11710 if (((long) (sizeof (long))) < 0)
11711 {
11712 long i = longval ();
11713 if (i != ((long) (sizeof (long))))
11714 exit (1);
11715 fprintf (f, "%ld\n", i);
11716 }
11717 else
11718 {
11719 unsigned long i = ulongval ();
11720 if (i != ((long) (sizeof (long))))
11721 exit (1);
11722 fprintf (f, "%lu\n", i);
11723 }
11724 exit (ferror (f) || fclose (f) != 0);
11725
11726 ;
11727 return 0;
11728 }
11729 _ACEOF
11730 rm -f conftest$ac_exeext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11732 (eval $ac_link) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_cv_sizeof_long=`cat conftest.val`
11742 else
11743 echo "$as_me: program exited with status $ac_status" >&5
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747 ( exit $ac_status )
11748 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11749 See \`config.log' for more details." >&5
11750 echo "$as_me: error: cannot compute sizeof (long), 77
11751 See \`config.log' for more details." >&2;}
11752 { (exit 1); exit 1; }; }
11753 fi
11754 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11755 fi
11756 fi
11757 rm -f conftest.val
11758 else
11759 ac_cv_sizeof_long=0
11760 fi
11761 fi
11762 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
11763 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
11764 cat >>confdefs.h <<_ACEOF
11765 #define SIZEOF_LONG $ac_cv_sizeof_long
11766 _ACEOF
11767
11768 ;;
11769 esac
11770
11771 if test $acx_cv_header_stdint = stddef.h; then
11772 # Lacking a good header? Test size of everything and deduce all types.
11773 echo "$as_me:$LINENO: checking for int" >&5
11774 echo $ECHO_N "checking for int... $ECHO_C" >&6
11775 if test "${ac_cv_type_int+set}" = set; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 else
11778 cat >conftest.$ac_ext <<_ACEOF
11779 /* confdefs.h. */
11780 _ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11784 $ac_includes_default
11785 int
11786 main ()
11787 {
11788 if ((int *) 0)
11789 return 0;
11790 if (sizeof (int))
11791 return 0;
11792 ;
11793 return 0;
11794 }
11795 _ACEOF
11796 rm -f conftest.$ac_objext
11797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11798 (eval $ac_compile) 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag"
11806 || test ! -s conftest.err'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest.$ac_objext'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 ac_cv_type_int=yes
11819 else
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11822
11823 ac_cv_type_int=no
11824 fi
11825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11826 fi
11827 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11828 echo "${ECHO_T}$ac_cv_type_int" >&6
11829
11830 echo "$as_me:$LINENO: checking size of int" >&5
11831 echo $ECHO_N "checking size of int... $ECHO_C" >&6
11832 if test "${ac_cv_sizeof_int+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835 if test "$ac_cv_type_int" = yes; then
11836 # The cast to unsigned long works around a bug in the HP C Compiler
11837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11839 # This bug is HP SR number 8606223364.
11840 if test "$cross_compiling" = yes; then
11841 # Depending upon the size, compute the lo and hi bounds.
11842 cat >conftest.$ac_ext <<_ACEOF
11843 /* confdefs.h. */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 $ac_includes_default
11849 int
11850 main ()
11851 {
11852 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11853 test_array [0] = 0
11854
11855 ;
11856 return 0;
11857 }
11858 _ACEOF
11859 rm -f conftest.$ac_objext
11860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11861 (eval $ac_compile) 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try='test -z "$ac_c_werror_flag"
11869 || test ! -s conftest.err'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; } &&
11875 { ac_try='test -s conftest.$ac_objext'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 ac_lo=0 ac_mid=0
11882 while :; do
11883 cat >conftest.$ac_ext <<_ACEOF
11884 /* confdefs.h. */
11885 _ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11889 $ac_includes_default
11890 int
11891 main ()
11892 {
11893 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11894 test_array [0] = 0
11895
11896 ;
11897 return 0;
11898 }
11899 _ACEOF
11900 rm -f conftest.$ac_objext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902 (eval $ac_compile) 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest.$ac_objext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_hi=$ac_mid; break
11923 else
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 ac_lo=`expr $ac_mid + 1`
11928 if test $ac_lo -le $ac_mid; then
11929 ac_lo= ac_hi=
11930 break
11931 fi
11932 ac_mid=`expr 2 '*' $ac_mid + 1`
11933 fi
11934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11935 done
11936 else
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11939
11940 cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h. */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 $ac_includes_default
11947 int
11948 main ()
11949 {
11950 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
11951 test_array [0] = 0
11952
11953 ;
11954 return 0;
11955 }
11956 _ACEOF
11957 rm -f conftest.$ac_objext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11959 (eval $ac_compile) 2>conftest.er1
11960 ac_status=$?
11961 grep -v '^ *+' conftest.er1 >conftest.err
11962 rm -f conftest.er1
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -z "$ac_c_werror_flag"
11967 || test ! -s conftest.err'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; } &&
11973 { ac_try='test -s conftest.$ac_objext'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 ac_hi=-1 ac_mid=-1
11980 while :; do
11981 cat >conftest.$ac_ext <<_ACEOF
11982 /* confdefs.h. */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11987 $ac_includes_default
11988 int
11989 main ()
11990 {
11991 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
11992 test_array [0] = 0
11993
11994 ;
11995 return 0;
11996 }
11997 _ACEOF
11998 rm -f conftest.$ac_objext
11999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12000 (eval $ac_compile) 2>conftest.er1
12001 ac_status=$?
12002 grep -v '^ *+' conftest.er1 >conftest.err
12003 rm -f conftest.er1
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
12007 { ac_try='test -z "$ac_c_werror_flag"
12008 || test ! -s conftest.err'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; } &&
12014 { ac_try='test -s conftest.$ac_objext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 ac_lo=$ac_mid; break
12021 else
12022 echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12024
12025 ac_hi=`expr '(' $ac_mid ')' - 1`
12026 if test $ac_mid -le $ac_hi; then
12027 ac_lo= ac_hi=
12028 break
12029 fi
12030 ac_mid=`expr 2 '*' $ac_mid`
12031 fi
12032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12033 done
12034 else
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12037
12038 ac_lo= ac_hi=
12039 fi
12040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12041 fi
12042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12043 # Binary search between lo and hi bounds.
12044 while test "x$ac_lo" != "x$ac_hi"; do
12045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 $ac_includes_default
12053 int
12054 main ()
12055 {
12056 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12057 test_array [0] = 0
12058
12059 ;
12060 return 0;
12061 }
12062 _ACEOF
12063 rm -f conftest.$ac_objext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12065 (eval $ac_compile) 2>conftest.er1
12066 ac_status=$?
12067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } &&
12072 { ac_try='test -z "$ac_c_werror_flag"
12073 || test ! -s conftest.err'
12074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075 (eval $ac_try) 2>&5
12076 ac_status=$?
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; } &&
12079 { ac_try='test -s conftest.$ac_objext'
12080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12081 (eval $ac_try) 2>&5
12082 ac_status=$?
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); }; }; then
12085 ac_hi=$ac_mid
12086 else
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12089
12090 ac_lo=`expr '(' $ac_mid ')' + 1`
12091 fi
12092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12093 done
12094 case $ac_lo in
12095 ?*) ac_cv_sizeof_int=$ac_lo;;
12096 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12097 See \`config.log' for more details." >&5
12098 echo "$as_me: error: cannot compute sizeof (int), 77
12099 See \`config.log' for more details." >&2;}
12100 { (exit 1); exit 1; }; } ;;
12101 esac
12102 else
12103 if test "$cross_compiling" = yes; then
12104 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12105 See \`config.log' for more details." >&5
12106 echo "$as_me: error: cannot run test program while cross compiling
12107 See \`config.log' for more details." >&2;}
12108 { (exit 1); exit 1; }; }
12109 else
12110 cat >conftest.$ac_ext <<_ACEOF
12111 /* confdefs.h. */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12116 $ac_includes_default
12117 long longval () { return (long) (sizeof (int)); }
12118 unsigned long ulongval () { return (long) (sizeof (int)); }
12119 #include <stdio.h>
12120 #include <stdlib.h>
12121 int
12122 main ()
12123 {
12124
12125 FILE *f = fopen ("conftest.val", "w");
12126 if (! f)
12127 exit (1);
12128 if (((long) (sizeof (int))) < 0)
12129 {
12130 long i = longval ();
12131 if (i != ((long) (sizeof (int))))
12132 exit (1);
12133 fprintf (f, "%ld\n", i);
12134 }
12135 else
12136 {
12137 unsigned long i = ulongval ();
12138 if (i != ((long) (sizeof (int))))
12139 exit (1);
12140 fprintf (f, "%lu\n", i);
12141 }
12142 exit (ferror (f) || fclose (f) != 0);
12143
12144 ;
12145 return 0;
12146 }
12147 _ACEOF
12148 rm -f conftest$ac_exeext
12149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12150 (eval $ac_link) 2>&5
12151 ac_status=$?
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; }; then
12159 ac_cv_sizeof_int=`cat conftest.val`
12160 else
12161 echo "$as_me: program exited with status $ac_status" >&5
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12164
12165 ( exit $ac_status )
12166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12167 See \`config.log' for more details." >&5
12168 echo "$as_me: error: cannot compute sizeof (int), 77
12169 See \`config.log' for more details." >&2;}
12170 { (exit 1); exit 1; }; }
12171 fi
12172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12173 fi
12174 fi
12175 rm -f conftest.val
12176 else
12177 ac_cv_sizeof_int=0
12178 fi
12179 fi
12180 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12181 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12182 cat >>confdefs.h <<_ACEOF
12183 #define SIZEOF_INT $ac_cv_sizeof_int
12184 _ACEOF
12185
12186
12187 echo "$as_me:$LINENO: checking for short" >&5
12188 echo $ECHO_N "checking for short... $ECHO_C" >&6
12189 if test "${ac_cv_type_short+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192 cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h. */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12198 $ac_includes_default
12199 int
12200 main ()
12201 {
12202 if ((short *) 0)
12203 return 0;
12204 if (sizeof (short))
12205 return 0;
12206 ;
12207 return 0;
12208 }
12209 _ACEOF
12210 rm -f conftest.$ac_objext
12211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12212 (eval $ac_compile) 2>conftest.er1
12213 ac_status=$?
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -z "$ac_c_werror_flag"
12220 || test ! -s conftest.err'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; } &&
12226 { ac_try='test -s conftest.$ac_objext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 ac_cv_type_short=yes
12233 else
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12236
12237 ac_cv_type_short=no
12238 fi
12239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12240 fi
12241 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12242 echo "${ECHO_T}$ac_cv_type_short" >&6
12243
12244 echo "$as_me:$LINENO: checking size of short" >&5
12245 echo $ECHO_N "checking size of short... $ECHO_C" >&6
12246 if test "${ac_cv_sizeof_short+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249 if test "$ac_cv_type_short" = yes; then
12250 # The cast to unsigned long works around a bug in the HP C Compiler
12251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12253 # This bug is HP SR number 8606223364.
12254 if test "$cross_compiling" = yes; then
12255 # Depending upon the size, compute the lo and hi bounds.
12256 cat >conftest.$ac_ext <<_ACEOF
12257 /* confdefs.h. */
12258 _ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12262 $ac_includes_default
12263 int
12264 main ()
12265 {
12266 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
12267 test_array [0] = 0
12268
12269 ;
12270 return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext
12274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12275 (eval $ac_compile) 2>conftest.er1
12276 ac_status=$?
12277 grep -v '^ *+' conftest.er1 >conftest.err
12278 rm -f conftest.er1
12279 cat conftest.err >&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } &&
12282 { ac_try='test -z "$ac_c_werror_flag"
12283 || test ! -s conftest.err'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } &&
12289 { ac_try='test -s conftest.$ac_objext'
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; }; then
12295 ac_lo=0 ac_mid=0
12296 while :; do
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h. */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 $ac_includes_default
12304 int
12305 main ()
12306 {
12307 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12308 test_array [0] = 0
12309
12310 ;
12311 return 0;
12312 }
12313 _ACEOF
12314 rm -f conftest.$ac_objext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12316 (eval $ac_compile) 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try='test -z "$ac_c_werror_flag"
12324 || test ! -s conftest.err'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12336 ac_hi=$ac_mid; break
12337 else
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12340
12341 ac_lo=`expr $ac_mid + 1`
12342 if test $ac_lo -le $ac_mid; then
12343 ac_lo= ac_hi=
12344 break
12345 fi
12346 ac_mid=`expr 2 '*' $ac_mid + 1`
12347 fi
12348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12349 done
12350 else
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12353
12354 cat >conftest.$ac_ext <<_ACEOF
12355 /* confdefs.h. */
12356 _ACEOF
12357 cat confdefs.h >>conftest.$ac_ext
12358 cat >>conftest.$ac_ext <<_ACEOF
12359 /* end confdefs.h. */
12360 $ac_includes_default
12361 int
12362 main ()
12363 {
12364 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
12365 test_array [0] = 0
12366
12367 ;
12368 return 0;
12369 }
12370 _ACEOF
12371 rm -f conftest.$ac_objext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>conftest.er1
12374 ac_status=$?
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } &&
12380 { ac_try='test -z "$ac_c_werror_flag"
12381 || test ! -s conftest.err'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; } &&
12387 { ac_try='test -s conftest.$ac_objext'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
12393 ac_hi=-1 ac_mid=-1
12394 while :; do
12395 cat >conftest.$ac_ext <<_ACEOF
12396 /* confdefs.h. */
12397 _ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12401 $ac_includes_default
12402 int
12403 main ()
12404 {
12405 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
12406 test_array [0] = 0
12407
12408 ;
12409 return 0;
12410 }
12411 _ACEOF
12412 rm -f conftest.$ac_objext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414 (eval $ac_compile) 2>conftest.er1
12415 ac_status=$?
12416 grep -v '^ *+' conftest.er1 >conftest.err
12417 rm -f conftest.er1
12418 cat conftest.err >&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -z "$ac_c_werror_flag"
12422 || test ! -s conftest.err'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest.$ac_objext'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 ac_lo=$ac_mid; break
12435 else
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12438
12439 ac_hi=`expr '(' $ac_mid ')' - 1`
12440 if test $ac_mid -le $ac_hi; then
12441 ac_lo= ac_hi=
12442 break
12443 fi
12444 ac_mid=`expr 2 '*' $ac_mid`
12445 fi
12446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12447 done
12448 else
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12451
12452 ac_lo= ac_hi=
12453 fi
12454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12455 fi
12456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12457 # Binary search between lo and hi bounds.
12458 while test "x$ac_lo" != "x$ac_hi"; do
12459 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h. */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12466 $ac_includes_default
12467 int
12468 main ()
12469 {
12470 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12471 test_array [0] = 0
12472
12473 ;
12474 return 0;
12475 }
12476 _ACEOF
12477 rm -f conftest.$ac_objext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try='test -z "$ac_c_werror_flag"
12487 || test ! -s conftest.err'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; } &&
12493 { ac_try='test -s conftest.$ac_objext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 ac_hi=$ac_mid
12500 else
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12503
12504 ac_lo=`expr '(' $ac_mid ')' + 1`
12505 fi
12506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12507 done
12508 case $ac_lo in
12509 ?*) ac_cv_sizeof_short=$ac_lo;;
12510 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12511 See \`config.log' for more details." >&5
12512 echo "$as_me: error: cannot compute sizeof (short), 77
12513 See \`config.log' for more details." >&2;}
12514 { (exit 1); exit 1; }; } ;;
12515 esac
12516 else
12517 if test "$cross_compiling" = yes; then
12518 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12519 See \`config.log' for more details." >&5
12520 echo "$as_me: error: cannot run test program while cross compiling
12521 See \`config.log' for more details." >&2;}
12522 { (exit 1); exit 1; }; }
12523 else
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h. */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 $ac_includes_default
12531 long longval () { return (long) (sizeof (short)); }
12532 unsigned long ulongval () { return (long) (sizeof (short)); }
12533 #include <stdio.h>
12534 #include <stdlib.h>
12535 int
12536 main ()
12537 {
12538
12539 FILE *f = fopen ("conftest.val", "w");
12540 if (! f)
12541 exit (1);
12542 if (((long) (sizeof (short))) < 0)
12543 {
12544 long i = longval ();
12545 if (i != ((long) (sizeof (short))))
12546 exit (1);
12547 fprintf (f, "%ld\n", i);
12548 }
12549 else
12550 {
12551 unsigned long i = ulongval ();
12552 if (i != ((long) (sizeof (short))))
12553 exit (1);
12554 fprintf (f, "%lu\n", i);
12555 }
12556 exit (ferror (f) || fclose (f) != 0);
12557
12558 ;
12559 return 0;
12560 }
12561 _ACEOF
12562 rm -f conftest$ac_exeext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12564 (eval $ac_link) 2>&5
12565 ac_status=$?
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_short=`cat conftest.val`
12574 else
12575 echo "$as_me: program exited with status $ac_status" >&5
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 ( exit $ac_status )
12580 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12581 See \`config.log' for more details." >&5
12582 echo "$as_me: error: cannot compute sizeof (short), 77
12583 See \`config.log' for more details." >&2;}
12584 { (exit 1); exit 1; }; }
12585 fi
12586 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12587 fi
12588 fi
12589 rm -f conftest.val
12590 else
12591 ac_cv_sizeof_short=0
12592 fi
12593 fi
12594 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12595 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12596 cat >>confdefs.h <<_ACEOF
12597 #define SIZEOF_SHORT $ac_cv_sizeof_short
12598 _ACEOF
12599
12600
12601 echo "$as_me:$LINENO: checking for char" >&5
12602 echo $ECHO_N "checking for char... $ECHO_C" >&6
12603 if test "${ac_cv_type_char+set}" = set; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12605 else
12606 cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h. */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12612 $ac_includes_default
12613 int
12614 main ()
12615 {
12616 if ((char *) 0)
12617 return 0;
12618 if (sizeof (char))
12619 return 0;
12620 ;
12621 return 0;
12622 }
12623 _ACEOF
12624 rm -f conftest.$ac_objext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12626 (eval $ac_compile) 2>conftest.er1
12627 ac_status=$?
12628 grep -v '^ *+' conftest.er1 >conftest.err
12629 rm -f conftest.er1
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -z "$ac_c_werror_flag"
12634 || test ! -s conftest.err'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest.$ac_objext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 ac_cv_type_char=yes
12647 else
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12650
12651 ac_cv_type_char=no
12652 fi
12653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12654 fi
12655 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12656 echo "${ECHO_T}$ac_cv_type_char" >&6
12657
12658 echo "$as_me:$LINENO: checking size of char" >&5
12659 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12660 if test "${ac_cv_sizeof_char+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 else
12663 if test "$ac_cv_type_char" = yes; then
12664 # The cast to unsigned long works around a bug in the HP C Compiler
12665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12667 # This bug is HP SR number 8606223364.
12668 if test "$cross_compiling" = yes; then
12669 # Depending upon the size, compute the lo and hi bounds.
12670 cat >conftest.$ac_ext <<_ACEOF
12671 /* confdefs.h. */
12672 _ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12676 $ac_includes_default
12677 int
12678 main ()
12679 {
12680 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12681 test_array [0] = 0
12682
12683 ;
12684 return 0;
12685 }
12686 _ACEOF
12687 rm -f conftest.$ac_objext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689 (eval $ac_compile) 2>conftest.er1
12690 ac_status=$?
12691 grep -v '^ *+' conftest.er1 >conftest.err
12692 rm -f conftest.er1
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try='test -z "$ac_c_werror_flag"
12697 || test ! -s conftest.err'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; } &&
12703 { ac_try='test -s conftest.$ac_objext'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 ac_lo=0 ac_mid=0
12710 while :; do
12711 cat >conftest.$ac_ext <<_ACEOF
12712 /* confdefs.h. */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12717 $ac_includes_default
12718 int
12719 main ()
12720 {
12721 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12722 test_array [0] = 0
12723
12724 ;
12725 return 0;
12726 }
12727 _ACEOF
12728 rm -f conftest.$ac_objext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730 (eval $ac_compile) 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
12737 { ac_try='test -z "$ac_c_werror_flag"
12738 || test ! -s conftest.err'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; } &&
12744 { ac_try='test -s conftest.$ac_objext'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12747 ac_status=$?
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 ac_hi=$ac_mid; break
12751 else
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755 ac_lo=`expr $ac_mid + 1`
12756 if test $ac_lo -le $ac_mid; then
12757 ac_lo= ac_hi=
12758 break
12759 fi
12760 ac_mid=`expr 2 '*' $ac_mid + 1`
12761 fi
12762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12763 done
12764 else
12765 echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12767
12768 cat >conftest.$ac_ext <<_ACEOF
12769 /* confdefs.h. */
12770 _ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774 $ac_includes_default
12775 int
12776 main ()
12777 {
12778 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12779 test_array [0] = 0
12780
12781 ;
12782 return 0;
12783 }
12784 _ACEOF
12785 rm -f conftest.$ac_objext
12786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12787 (eval $ac_compile) 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -z "$ac_c_werror_flag"
12795 || test ! -s conftest.err'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest.$ac_objext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_hi=-1 ac_mid=-1
12808 while :; do
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h. */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815 $ac_includes_default
12816 int
12817 main ()
12818 {
12819 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12820 test_array [0] = 0
12821
12822 ;
12823 return 0;
12824 }
12825 _ACEOF
12826 rm -f conftest.$ac_objext
12827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12828 (eval $ac_compile) 2>conftest.er1
12829 ac_status=$?
12830 grep -v '^ *+' conftest.er1 >conftest.err
12831 rm -f conftest.er1
12832 cat conftest.err >&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } &&
12835 { ac_try='test -z "$ac_c_werror_flag"
12836 || test ! -s conftest.err'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest.$ac_objext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 ac_lo=$ac_mid; break
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 ac_hi=`expr '(' $ac_mid ')' - 1`
12854 if test $ac_mid -le $ac_hi; then
12855 ac_lo= ac_hi=
12856 break
12857 fi
12858 ac_mid=`expr 2 '*' $ac_mid`
12859 fi
12860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12861 done
12862 else
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 ac_lo= ac_hi=
12867 fi
12868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12869 fi
12870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12871 # Binary search between lo and hi bounds.
12872 while test "x$ac_lo" != "x$ac_hi"; do
12873 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12874 cat >conftest.$ac_ext <<_ACEOF
12875 /* confdefs.h. */
12876 _ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12880 $ac_includes_default
12881 int
12882 main ()
12883 {
12884 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12885 test_array [0] = 0
12886
12887 ;
12888 return 0;
12889 }
12890 _ACEOF
12891 rm -f conftest.$ac_objext
12892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12893 (eval $ac_compile) 2>conftest.er1
12894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -z "$ac_c_werror_flag"
12901 || test ! -s conftest.err'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest.$ac_objext'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 ac_hi=$ac_mid
12914 else
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12917
12918 ac_lo=`expr '(' $ac_mid ')' + 1`
12919 fi
12920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12921 done
12922 case $ac_lo in
12923 ?*) ac_cv_sizeof_char=$ac_lo;;
12924 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12925 See \`config.log' for more details." >&5
12926 echo "$as_me: error: cannot compute sizeof (char), 77
12927 See \`config.log' for more details." >&2;}
12928 { (exit 1); exit 1; }; } ;;
12929 esac
12930 else
12931 if test "$cross_compiling" = yes; then
12932 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12933 See \`config.log' for more details." >&5
12934 echo "$as_me: error: cannot run test program while cross compiling
12935 See \`config.log' for more details." >&2;}
12936 { (exit 1); exit 1; }; }
12937 else
12938 cat >conftest.$ac_ext <<_ACEOF
12939 /* confdefs.h. */
12940 _ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12944 $ac_includes_default
12945 long longval () { return (long) (sizeof (char)); }
12946 unsigned long ulongval () { return (long) (sizeof (char)); }
12947 #include <stdio.h>
12948 #include <stdlib.h>
12949 int
12950 main ()
12951 {
12952
12953 FILE *f = fopen ("conftest.val", "w");
12954 if (! f)
12955 exit (1);
12956 if (((long) (sizeof (char))) < 0)
12957 {
12958 long i = longval ();
12959 if (i != ((long) (sizeof (char))))
12960 exit (1);
12961 fprintf (f, "%ld\n", i);
12962 }
12963 else
12964 {
12965 unsigned long i = ulongval ();
12966 if (i != ((long) (sizeof (char))))
12967 exit (1);
12968 fprintf (f, "%lu\n", i);
12969 }
12970 exit (ferror (f) || fclose (f) != 0);
12971
12972 ;
12973 return 0;
12974 }
12975 _ACEOF
12976 rm -f conftest$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978 (eval $ac_link) 2>&5
12979 ac_status=$?
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 ac_cv_sizeof_char=`cat conftest.val`
12988 else
12989 echo "$as_me: program exited with status $ac_status" >&5
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12992
12993 ( exit $ac_status )
12994 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12995 See \`config.log' for more details." >&5
12996 echo "$as_me: error: cannot compute sizeof (char), 77
12997 See \`config.log' for more details." >&2;}
12998 { (exit 1); exit 1; }; }
12999 fi
13000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13001 fi
13002 fi
13003 rm -f conftest.val
13004 else
13005 ac_cv_sizeof_char=0
13006 fi
13007 fi
13008 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13009 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13010 cat >>confdefs.h <<_ACEOF
13011 #define SIZEOF_CHAR $ac_cv_sizeof_char
13012 _ACEOF
13013
13014
13015
13016 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
13017 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
13018 case "$ac_cv_sizeof_char" in
13019 1) acx_cv_type_int8_t=char ;;
13020 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
13021 echo "$as_me: error: no 8-bit type" >&2;}
13022 { (exit please report a bug); exit please report a bug; }; }
13023 esac
13024 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
13025 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
13026
13027 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
13028 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
13029 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13030 2:*) acx_cv_type_int16_t=int ;;
13031 *:2) acx_cv_type_int16_t=short ;;
13032 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
13033 echo "$as_me: error: no 16-bit type" >&2;}
13034 { (exit please report a bug); exit please report a bug; }; }
13035 esac
13036 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
13037 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
13038
13039 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
13040 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
13041 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13042 4:*) acx_cv_type_int32_t=int ;;
13043 *:4) acx_cv_type_int32_t=long ;;
13044 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
13045 echo "$as_me: error: no 32-bit type" >&2;}
13046 { (exit please report a bug); exit please report a bug; }; }
13047 esac
13048 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
13049 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
13050 fi
13051
13052 # These tests are here to make the output prettier
13053
13054 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13055 case "$ac_cv_sizeof_long" in
13056 8) acx_cv_type_int64_t=long ;;
13057 esac
13058 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
13059 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
13060 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13061 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
13062 fi
13063
13064 # Now we can use the above types
13065
13066 if test "$ac_cv_type_uintptr_t" != yes; then
13067 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
13068 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
13069 case $ac_cv_sizeof_void_p in
13070 2) acx_cv_type_intptr_t=int16_t ;;
13071 4) acx_cv_type_intptr_t=int32_t ;;
13072 8) acx_cv_type_intptr_t=int64_t ;;
13073 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
13074 echo "$as_me: error: no equivalent for intptr_t" >&2;}
13075 { (exit please report a bug); exit please report a bug; }; }
13076 esac
13077 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
13078 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
13079 fi
13080
13081 # ----------------- done all checks, emit header -------------
13082 ac_config_commands="$ac_config_commands gdb_stdint.h"
13083
13084
13085
13086
13087 # ------------------------- #
13088 # Checks for declarations. #
13089 # ------------------------- #
13090
13091 echo "$as_me:$LINENO: checking whether free is declared" >&5
13092 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13093 if test "${ac_cv_have_decl_free+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 else
13096 cat >conftest.$ac_ext <<_ACEOF
13097 /* confdefs.h. */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13102 $ac_includes_default
13103 int
13104 main ()
13105 {
13106 #ifndef free
13107 char *p = (char *) free;
13108 #endif
13109
13110 ;
13111 return 0;
13112 }
13113 _ACEOF
13114 rm -f conftest.$ac_objext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116 (eval $ac_compile) 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest.$ac_objext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_cv_have_decl_free=yes
13137 else
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141 ac_cv_have_decl_free=no
13142 fi
13143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13144 fi
13145 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13146 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13147 if test $ac_cv_have_decl_free = yes; then
13148
13149 cat >>confdefs.h <<_ACEOF
13150 #define HAVE_DECL_FREE 1
13151 _ACEOF
13152
13153
13154 else
13155 cat >>confdefs.h <<_ACEOF
13156 #define HAVE_DECL_FREE 0
13157 _ACEOF
13158
13159
13160 fi
13161 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13162 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13163 if test "${ac_cv_have_decl_malloc+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166 cat >conftest.$ac_ext <<_ACEOF
13167 /* confdefs.h. */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13172 $ac_includes_default
13173 int
13174 main ()
13175 {
13176 #ifndef malloc
13177 char *p = (char *) malloc;
13178 #endif
13179
13180 ;
13181 return 0;
13182 }
13183 _ACEOF
13184 rm -f conftest.$ac_objext
13185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13186 (eval $ac_compile) 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } &&
13193 { ac_try='test -z "$ac_c_werror_flag"
13194 || test ! -s conftest.err'
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; } &&
13200 { ac_try='test -s conftest.$ac_objext'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; }; then
13206 ac_cv_have_decl_malloc=yes
13207 else
13208 echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13210
13211 ac_cv_have_decl_malloc=no
13212 fi
13213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13214 fi
13215 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13216 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13217 if test $ac_cv_have_decl_malloc = yes; then
13218
13219 cat >>confdefs.h <<_ACEOF
13220 #define HAVE_DECL_MALLOC 1
13221 _ACEOF
13222
13223
13224 else
13225 cat >>confdefs.h <<_ACEOF
13226 #define HAVE_DECL_MALLOC 0
13227 _ACEOF
13228
13229
13230 fi
13231 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13232 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13233 if test "${ac_cv_have_decl_realloc+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 $ac_includes_default
13243 int
13244 main ()
13245 {
13246 #ifndef realloc
13247 char *p = (char *) realloc;
13248 #endif
13249
13250 ;
13251 return 0;
13252 }
13253 _ACEOF
13254 rm -f conftest.$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 (eval $ac_compile) 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -z "$ac_c_werror_flag"
13264 || test ! -s conftest.err'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; } &&
13270 { ac_try='test -s conftest.$ac_objext'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13276 ac_cv_have_decl_realloc=yes
13277 else
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13280
13281 ac_cv_have_decl_realloc=no
13282 fi
13283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13284 fi
13285 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13286 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13287 if test $ac_cv_have_decl_realloc = yes; then
13288
13289 cat >>confdefs.h <<_ACEOF
13290 #define HAVE_DECL_REALLOC 1
13291 _ACEOF
13292
13293
13294 else
13295 cat >>confdefs.h <<_ACEOF
13296 #define HAVE_DECL_REALLOC 0
13297 _ACEOF
13298
13299
13300 fi
13301
13302
13303 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13304 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13305 if test "${ac_cv_have_decl_strerror+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 else
13308 cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h. */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13314 $ac_includes_default
13315 int
13316 main ()
13317 {
13318 #ifndef strerror
13319 char *p = (char *) strerror;
13320 #endif
13321
13322 ;
13323 return 0;
13324 }
13325 _ACEOF
13326 rm -f conftest.$ac_objext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13328 (eval $ac_compile) 2>conftest.er1
13329 ac_status=$?
13330 grep -v '^ *+' conftest.er1 >conftest.err
13331 rm -f conftest.er1
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
13335 { ac_try='test -z "$ac_c_werror_flag"
13336 || test ! -s conftest.err'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest.$ac_objext'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_cv_have_decl_strerror=yes
13349 else
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13352
13353 ac_cv_have_decl_strerror=no
13354 fi
13355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13356 fi
13357 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13358 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13359 if test $ac_cv_have_decl_strerror = yes; then
13360
13361 cat >>confdefs.h <<_ACEOF
13362 #define HAVE_DECL_STRERROR 1
13363 _ACEOF
13364
13365
13366 else
13367 cat >>confdefs.h <<_ACEOF
13368 #define HAVE_DECL_STRERROR 0
13369 _ACEOF
13370
13371
13372 fi
13373 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13374 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13375 if test "${ac_cv_have_decl_strstr+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378 cat >conftest.$ac_ext <<_ACEOF
13379 /* confdefs.h. */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13384 $ac_includes_default
13385 int
13386 main ()
13387 {
13388 #ifndef strstr
13389 char *p = (char *) strstr;
13390 #endif
13391
13392 ;
13393 return 0;
13394 }
13395 _ACEOF
13396 rm -f conftest.$ac_objext
13397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398 (eval $ac_compile) 2>conftest.er1
13399 ac_status=$?
13400 grep -v '^ *+' conftest.er1 >conftest.err
13401 rm -f conftest.er1
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
13405 { ac_try='test -z "$ac_c_werror_flag"
13406 || test ! -s conftest.err'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest.$ac_objext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_cv_have_decl_strstr=yes
13419 else
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13422
13423 ac_cv_have_decl_strstr=no
13424 fi
13425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13426 fi
13427 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13428 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13429 if test $ac_cv_have_decl_strstr = yes; then
13430
13431 cat >>confdefs.h <<_ACEOF
13432 #define HAVE_DECL_STRSTR 1
13433 _ACEOF
13434
13435
13436 else
13437 cat >>confdefs.h <<_ACEOF
13438 #define HAVE_DECL_STRSTR 0
13439 _ACEOF
13440
13441
13442 fi
13443
13444
13445 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13446 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13447 if test "${ac_cv_have_decl_getopt+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450 cat >conftest.$ac_ext <<_ACEOF
13451 /* confdefs.h. */
13452 _ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h. */
13456 $ac_includes_default
13457 int
13458 main ()
13459 {
13460 #ifndef getopt
13461 char *p = (char *) getopt;
13462 #endif
13463
13464 ;
13465 return 0;
13466 }
13467 _ACEOF
13468 rm -f conftest.$ac_objext
13469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13470 (eval $ac_compile) 2>conftest.er1
13471 ac_status=$?
13472 grep -v '^ *+' conftest.er1 >conftest.err
13473 rm -f conftest.er1
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try='test -z "$ac_c_werror_flag"
13478 || test ! -s conftest.err'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; } &&
13484 { ac_try='test -s conftest.$ac_objext'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13490 ac_cv_have_decl_getopt=yes
13491 else
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 ac_cv_have_decl_getopt=no
13496 fi
13497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13498 fi
13499 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13500 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13501 if test $ac_cv_have_decl_getopt = yes; then
13502
13503 cat >>confdefs.h <<_ACEOF
13504 #define HAVE_DECL_GETOPT 1
13505 _ACEOF
13506
13507
13508 else
13509 cat >>confdefs.h <<_ACEOF
13510 #define HAVE_DECL_GETOPT 0
13511 _ACEOF
13512
13513
13514 fi
13515 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13516 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13517 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13519 else
13520 cat >conftest.$ac_ext <<_ACEOF
13521 /* confdefs.h. */
13522 _ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13526 $ac_includes_default
13527 int
13528 main ()
13529 {
13530 #ifndef snprintf
13531 char *p = (char *) snprintf;
13532 #endif
13533
13534 ;
13535 return 0;
13536 }
13537 _ACEOF
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540 (eval $ac_compile) 2>conftest.er1
13541 ac_status=$?
13542 grep -v '^ *+' conftest.er1 >conftest.err
13543 rm -f conftest.er1
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } &&
13547 { ac_try='test -z "$ac_c_werror_flag"
13548 || test ! -s conftest.err'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; } &&
13554 { ac_try='test -s conftest.$ac_objext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 ac_cv_have_decl_snprintf=yes
13561 else
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13564
13565 ac_cv_have_decl_snprintf=no
13566 fi
13567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13568 fi
13569 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13570 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13571 if test $ac_cv_have_decl_snprintf = yes; then
13572
13573 cat >>confdefs.h <<_ACEOF
13574 #define HAVE_DECL_SNPRINTF 1
13575 _ACEOF
13576
13577
13578 else
13579 cat >>confdefs.h <<_ACEOF
13580 #define HAVE_DECL_SNPRINTF 0
13581 _ACEOF
13582
13583
13584 fi
13585 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13586 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13587 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590 cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h. */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13596 $ac_includes_default
13597 int
13598 main ()
13599 {
13600 #ifndef vsnprintf
13601 char *p = (char *) vsnprintf;
13602 #endif
13603
13604 ;
13605 return 0;
13606 }
13607 _ACEOF
13608 rm -f conftest.$ac_objext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13610 (eval $ac_compile) 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -z "$ac_c_werror_flag"
13618 || test ! -s conftest.err'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest.$ac_objext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 ac_cv_have_decl_vsnprintf=yes
13631 else
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13634
13635 ac_cv_have_decl_vsnprintf=no
13636 fi
13637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13638 fi
13639 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13640 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13641 if test $ac_cv_have_decl_vsnprintf = yes; then
13642
13643 cat >>confdefs.h <<_ACEOF
13644 #define HAVE_DECL_VSNPRINTF 1
13645 _ACEOF
13646
13647
13648 else
13649 cat >>confdefs.h <<_ACEOF
13650 #define HAVE_DECL_VSNPRINTF 0
13651 _ACEOF
13652
13653
13654 fi
13655
13656
13657
13658 # ----------------------- #
13659 # Checks for structures. #
13660 # ----------------------- #
13661
13662 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13663 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13664 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h. */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 $ac_includes_default
13674 int
13675 main ()
13676 {
13677 static struct stat ac_aggr;
13678 if (ac_aggr.st_blocks)
13679 return 0;
13680 ;
13681 return 0;
13682 }
13683 _ACEOF
13684 rm -f conftest.$ac_objext
13685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13686 (eval $ac_compile) 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -z "$ac_c_werror_flag"
13694 || test ! -s conftest.err'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; } &&
13700 { ac_try='test -s conftest.$ac_objext'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13706 ac_cv_member_struct_stat_st_blocks=yes
13707 else
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711 cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h. */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 $ac_includes_default
13718 int
13719 main ()
13720 {
13721 static struct stat ac_aggr;
13722 if (sizeof ac_aggr.st_blocks)
13723 return 0;
13724 ;
13725 return 0;
13726 }
13727 _ACEOF
13728 rm -f conftest.$ac_objext
13729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13730 (eval $ac_compile) 2>conftest.er1
13731 ac_status=$?
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -z "$ac_c_werror_flag"
13738 || test ! -s conftest.err'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest.$ac_objext'
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_member_struct_stat_st_blocks=yes
13751 else
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13754
13755 ac_cv_member_struct_stat_st_blocks=no
13756 fi
13757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13758 fi
13759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13760 fi
13761 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13762 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13763 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13764
13765 cat >>confdefs.h <<_ACEOF
13766 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13767 _ACEOF
13768
13769
13770 fi
13771
13772 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13773 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13774 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h. */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 $ac_includes_default
13784 int
13785 main ()
13786 {
13787 static struct stat ac_aggr;
13788 if (ac_aggr.st_blksize)
13789 return 0;
13790 ;
13791 return 0;
13792 }
13793 _ACEOF
13794 rm -f conftest.$ac_objext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796 (eval $ac_compile) 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_c_werror_flag"
13804 || test ! -s conftest.err'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; } &&
13810 { ac_try='test -s conftest.$ac_objext'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; }; then
13816 ac_cv_member_struct_stat_st_blksize=yes
13817 else
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13820
13821 cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h. */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 $ac_includes_default
13828 int
13829 main ()
13830 {
13831 static struct stat ac_aggr;
13832 if (sizeof ac_aggr.st_blksize)
13833 return 0;
13834 ;
13835 return 0;
13836 }
13837 _ACEOF
13838 rm -f conftest.$ac_objext
13839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13840 (eval $ac_compile) 2>conftest.er1
13841 ac_status=$?
13842 grep -v '^ *+' conftest.er1 >conftest.err
13843 rm -f conftest.er1
13844 cat conftest.err >&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } &&
13847 { ac_try='test -z "$ac_c_werror_flag"
13848 || test ! -s conftest.err'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; } &&
13854 { ac_try='test -s conftest.$ac_objext'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }; then
13860 ac_cv_member_struct_stat_st_blksize=yes
13861 else
13862 echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13864
13865 ac_cv_member_struct_stat_st_blksize=no
13866 fi
13867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13868 fi
13869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13870 fi
13871 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13872 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13873 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13874
13875 cat >>confdefs.h <<_ACEOF
13876 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13877 _ACEOF
13878
13879
13880 fi
13881
13882
13883 # ------------------ #
13884 # Checks for types. #
13885 # ------------------ #
13886
13887 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13888 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13889 if test "${ac_cv_type_signal+set}" = set; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 else
13892 cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h. */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13898 #include <sys/types.h>
13899 #include <signal.h>
13900 #ifdef signal
13901 # undef signal
13902 #endif
13903 #ifdef __cplusplus
13904 extern "C" void (*signal (int, void (*)(int)))(int);
13905 #else
13906 void (*signal ()) ();
13907 #endif
13908
13909 int
13910 main ()
13911 {
13912 int i;
13913 ;
13914 return 0;
13915 }
13916 _ACEOF
13917 rm -f conftest.$ac_objext
13918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13919 (eval $ac_compile) 2>conftest.er1
13920 ac_status=$?
13921 grep -v '^ *+' conftest.er1 >conftest.err
13922 rm -f conftest.er1
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
13926 { ac_try='test -z "$ac_c_werror_flag"
13927 || test ! -s conftest.err'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; } &&
13933 { ac_try='test -s conftest.$ac_objext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_cv_type_signal=void
13940 else
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13943
13944 ac_cv_type_signal=int
13945 fi
13946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13947 fi
13948 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13949 echo "${ECHO_T}$ac_cv_type_signal" >&6
13950
13951 cat >>confdefs.h <<_ACEOF
13952 #define RETSIGTYPE $ac_cv_type_signal
13953 _ACEOF
13954
13955
13956 echo "$as_me:$LINENO: checking for socklen_t" >&5
13957 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13958 if test "${ac_cv_type_socklen_t+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 else
13961 cat >conftest.$ac_ext <<_ACEOF
13962 /* confdefs.h. */
13963 _ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967 #include <sys/types.h>
13968 #include <sys/socket.h>
13969
13970
13971 int
13972 main ()
13973 {
13974 if ((socklen_t *) 0)
13975 return 0;
13976 if (sizeof (socklen_t))
13977 return 0;
13978 ;
13979 return 0;
13980 }
13981 _ACEOF
13982 rm -f conftest.$ac_objext
13983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13984 (eval $ac_compile) 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -z "$ac_c_werror_flag"
13992 || test ! -s conftest.err'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } &&
13998 { ac_try='test -s conftest.$ac_objext'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
14004 ac_cv_type_socklen_t=yes
14005 else
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14008
14009 ac_cv_type_socklen_t=no
14010 fi
14011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14012 fi
14013 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14014 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
14015 if test $ac_cv_type_socklen_t = yes; then
14016
14017 cat >>confdefs.h <<_ACEOF
14018 #define HAVE_SOCKLEN_T 1
14019 _ACEOF
14020
14021
14022 fi
14023
14024 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14025 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14026 if test "${ac_cv_type_uintptr_t+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 else
14029 cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h. */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14035 #include <stdint.h>
14036
14037 int
14038 main ()
14039 {
14040 if ((uintptr_t *) 0)
14041 return 0;
14042 if (sizeof (uintptr_t))
14043 return 0;
14044 ;
14045 return 0;
14046 }
14047 _ACEOF
14048 rm -f conftest.$ac_objext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14050 (eval $ac_compile) 2>conftest.er1
14051 ac_status=$?
14052 grep -v '^ *+' conftest.er1 >conftest.err
14053 rm -f conftest.er1
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } &&
14057 { ac_try='test -z "$ac_c_werror_flag"
14058 || test ! -s conftest.err'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; } &&
14064 { ac_try='test -s conftest.$ac_objext'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14067 ac_status=$?
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; }; then
14070 ac_cv_type_uintptr_t=yes
14071 else
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14074
14075 ac_cv_type_uintptr_t=no
14076 fi
14077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14078 fi
14079 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14080 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14081 if test $ac_cv_type_uintptr_t = yes; then
14082
14083 cat >>confdefs.h <<_ACEOF
14084 #define HAVE_UINTPTR_T 1
14085 _ACEOF
14086
14087
14088 fi
14089
14090
14091 # ------------------------------------- #
14092 # Checks for compiler characteristics. #
14093 # ------------------------------------- #
14094
14095 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14096 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14097 if test "${ac_cv_c_const+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 else
14100 cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h. */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14106
14107 int
14108 main ()
14109 {
14110 /* FIXME: Include the comments suggested by Paul. */
14111 #ifndef __cplusplus
14112 /* Ultrix mips cc rejects this. */
14113 typedef int charset[2];
14114 const charset x;
14115 /* SunOS 4.1.1 cc rejects this. */
14116 char const *const *ccp;
14117 char **p;
14118 /* NEC SVR4.0.2 mips cc rejects this. */
14119 struct point {int x, y;};
14120 static struct point const zero = {0,0};
14121 /* AIX XL C 1.02.0.0 rejects this.
14122 It does not let you subtract one const X* pointer from another in
14123 an arm of an if-expression whose if-part is not a constant
14124 expression */
14125 const char *g = "string";
14126 ccp = &g + (g ? g-g : 0);
14127 /* HPUX 7.0 cc rejects these. */
14128 ++ccp;
14129 p = (char**) ccp;
14130 ccp = (char const *const *) p;
14131 { /* SCO 3.2v4 cc rejects this. */
14132 char *t;
14133 char const *s = 0 ? (char *) 0 : (char const *) 0;
14134
14135 *t++ = 0;
14136 }
14137 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14138 int x[] = {25, 17};
14139 const int *foo = &x[0];
14140 ++foo;
14141 }
14142 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14143 typedef const int *iptr;
14144 iptr p = 0;
14145 ++p;
14146 }
14147 { /* AIX XL C 1.02.0.0 rejects this saying
14148 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14149 struct s { int j; const int *ap[3]; };
14150 struct s *b; b->j = 5;
14151 }
14152 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14153 const int foo = 10;
14154 }
14155 #endif
14156
14157 ;
14158 return 0;
14159 }
14160 _ACEOF
14161 rm -f conftest.$ac_objext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14163 (eval $ac_compile) 2>conftest.er1
14164 ac_status=$?
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag"
14171 || test ! -s conftest.err'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest.$ac_objext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_cv_c_const=yes
14184 else
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188 ac_cv_c_const=no
14189 fi
14190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14191 fi
14192 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14193 echo "${ECHO_T}$ac_cv_c_const" >&6
14194 if test $ac_cv_c_const = no; then
14195
14196 cat >>confdefs.h <<\_ACEOF
14197 #define const
14198 _ACEOF
14199
14200 fi
14201
14202 echo "$as_me:$LINENO: checking for inline" >&5
14203 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14204 if test "${ac_cv_c_inline+set}" = set; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 else
14207 ac_cv_c_inline=no
14208 for ac_kw in inline __inline__ __inline; do
14209 cat >conftest.$ac_ext <<_ACEOF
14210 /* confdefs.h. */
14211 _ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h. */
14215 #ifndef __cplusplus
14216 typedef int foo_t;
14217 static $ac_kw foo_t static_foo () {return 0; }
14218 $ac_kw foo_t foo () {return 0; }
14219 #endif
14220
14221 _ACEOF
14222 rm -f conftest.$ac_objext
14223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14224 (eval $ac_compile) 2>conftest.er1
14225 ac_status=$?
14226 grep -v '^ *+' conftest.er1 >conftest.err
14227 rm -f conftest.er1
14228 cat conftest.err >&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
14231 { ac_try='test -z "$ac_c_werror_flag"
14232 || test ! -s conftest.err'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } &&
14238 { ac_try='test -s conftest.$ac_objext'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 ac_cv_c_inline=$ac_kw; break
14245 else
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14248
14249 fi
14250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14251 done
14252
14253 fi
14254 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14255 echo "${ECHO_T}$ac_cv_c_inline" >&6
14256
14257
14258 case $ac_cv_c_inline in
14259 inline | yes) ;;
14260 *)
14261 case $ac_cv_c_inline in
14262 no) ac_val=;;
14263 *) ac_val=$ac_cv_c_inline;;
14264 esac
14265 cat >>confdefs.h <<_ACEOF
14266 #ifndef __cplusplus
14267 #define inline $ac_val
14268 #endif
14269 _ACEOF
14270 ;;
14271 esac
14272
14273
14274 # ------------------------------ #
14275 # Checks for library functions. #
14276 # ------------------------------ #
14277
14278 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14279 # for constant arguments. Useless!
14280 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14281 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14282 if test "${ac_cv_working_alloca_h+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285 cat >conftest.$ac_ext <<_ACEOF
14286 /* confdefs.h. */
14287 _ACEOF
14288 cat confdefs.h >>conftest.$ac_ext
14289 cat >>conftest.$ac_ext <<_ACEOF
14290 /* end confdefs.h. */
14291 #include <alloca.h>
14292 int
14293 main ()
14294 {
14295 char *p = (char *) alloca (2 * sizeof (int));
14296 ;
14297 return 0;
14298 }
14299 _ACEOF
14300 rm -f conftest.$ac_objext conftest$ac_exeext
14301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14302 (eval $ac_link) 2>conftest.er1
14303 ac_status=$?
14304 grep -v '^ *+' conftest.er1 >conftest.err
14305 rm -f conftest.er1
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } &&
14309 { ac_try='test -z "$ac_c_werror_flag"
14310 || test ! -s conftest.err'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14313 ac_status=$?
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; } &&
14316 { ac_try='test -s conftest$ac_exeext'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14319 ac_status=$?
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; }; then
14322 ac_cv_working_alloca_h=yes
14323 else
14324 echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14326
14327 ac_cv_working_alloca_h=no
14328 fi
14329 rm -f conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext conftest.$ac_ext
14331 fi
14332 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14333 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14334 if test $ac_cv_working_alloca_h = yes; then
14335
14336 cat >>confdefs.h <<\_ACEOF
14337 #define HAVE_ALLOCA_H 1
14338 _ACEOF
14339
14340 fi
14341
14342 echo "$as_me:$LINENO: checking for alloca" >&5
14343 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14344 if test "${ac_cv_func_alloca_works+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h. */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14353 #ifdef __GNUC__
14354 # define alloca __builtin_alloca
14355 #else
14356 # ifdef _MSC_VER
14357 # include <malloc.h>
14358 # define alloca _alloca
14359 # else
14360 # if HAVE_ALLOCA_H
14361 # include <alloca.h>
14362 # else
14363 # ifdef _AIX
14364 #pragma alloca
14365 # else
14366 # ifndef alloca /* predefined by HP cc +Olibcalls */
14367 char *alloca ();
14368 # endif
14369 # endif
14370 # endif
14371 # endif
14372 #endif
14373
14374 int
14375 main ()
14376 {
14377 char *p = (char *) alloca (1);
14378 ;
14379 return 0;
14380 }
14381 _ACEOF
14382 rm -f conftest.$ac_objext conftest$ac_exeext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384 (eval $ac_link) 2>conftest.er1
14385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -z "$ac_c_werror_flag"
14392 || test ! -s conftest.err'
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); }; } &&
14398 { ac_try='test -s conftest$ac_exeext'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 ac_cv_func_alloca_works=yes
14405 else
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409 ac_cv_func_alloca_works=no
14410 fi
14411 rm -f conftest.err conftest.$ac_objext \
14412 conftest$ac_exeext conftest.$ac_ext
14413 fi
14414 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14415 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14416
14417 if test $ac_cv_func_alloca_works = yes; then
14418
14419 cat >>confdefs.h <<\_ACEOF
14420 #define HAVE_ALLOCA 1
14421 _ACEOF
14422
14423 else
14424 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14425 # that cause trouble. Some versions do not even contain alloca or
14426 # contain a buggy version. If you still want to use their alloca,
14427 # use ar to extract alloca.o from them instead of compiling alloca.c.
14428
14429 ALLOCA=alloca.$ac_objext
14430
14431 cat >>confdefs.h <<\_ACEOF
14432 #define C_ALLOCA 1
14433 _ACEOF
14434
14435
14436 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14437 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14438 if test "${ac_cv_os_cray+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441 cat >conftest.$ac_ext <<_ACEOF
14442 /* confdefs.h. */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14447 #if defined(CRAY) && ! defined(CRAY2)
14448 webecray
14449 #else
14450 wenotbecray
14451 #endif
14452
14453 _ACEOF
14454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14455 $EGREP "webecray" >/dev/null 2>&1; then
14456 ac_cv_os_cray=yes
14457 else
14458 ac_cv_os_cray=no
14459 fi
14460 rm -f conftest*
14461
14462 fi
14463 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14464 echo "${ECHO_T}$ac_cv_os_cray" >&6
14465 if test $ac_cv_os_cray = yes; then
14466 for ac_func in _getb67 GETB67 getb67; do
14467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14468 echo "$as_me:$LINENO: checking for $ac_func" >&5
14469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14470 if eval "test \"\${$as_ac_var+set}\" = set"; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 else
14473 cat >conftest.$ac_ext <<_ACEOF
14474 /* confdefs.h. */
14475 _ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14481 #define $ac_func innocuous_$ac_func
14482
14483 /* System header to define __stub macros and hopefully few prototypes,
14484 which can conflict with char $ac_func (); below.
14485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14486 <limits.h> exists even on freestanding compilers. */
14487
14488 #ifdef __STDC__
14489 # include <limits.h>
14490 #else
14491 # include <assert.h>
14492 #endif
14493
14494 #undef $ac_func
14495
14496 /* Override any gcc2 internal prototype to avoid an error. */
14497 #ifdef __cplusplus
14498 extern "C"
14499 {
14500 #endif
14501 /* We use char because int might match the return type of a gcc2
14502 builtin and then its argument prototype would still apply. */
14503 char $ac_func ();
14504 /* The GNU C library defines this for functions which it implements
14505 to always fail with ENOSYS. Some functions are actually named
14506 something starting with __ and the normal name is an alias. */
14507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14508 choke me
14509 #else
14510 char (*f) () = $ac_func;
14511 #endif
14512 #ifdef __cplusplus
14513 }
14514 #endif
14515
14516 int
14517 main ()
14518 {
14519 return f != $ac_func;
14520 ;
14521 return 0;
14522 }
14523 _ACEOF
14524 rm -f conftest.$ac_objext conftest$ac_exeext
14525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14526 (eval $ac_link) 2>conftest.er1
14527 ac_status=$?
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -z "$ac_c_werror_flag"
14534 || test ! -s conftest.err'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; } &&
14540 { ac_try='test -s conftest$ac_exeext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 eval "$as_ac_var=yes"
14547 else
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14550
14551 eval "$as_ac_var=no"
14552 fi
14553 rm -f conftest.err conftest.$ac_objext \
14554 conftest$ac_exeext conftest.$ac_ext
14555 fi
14556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14558 if test `eval echo '${'$as_ac_var'}'` = yes; then
14559
14560 cat >>confdefs.h <<_ACEOF
14561 #define CRAY_STACKSEG_END $ac_func
14562 _ACEOF
14563
14564 break
14565 fi
14566
14567 done
14568 fi
14569
14570 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14571 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14572 if test "${ac_cv_c_stack_direction+set}" = set; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 else
14575 if test "$cross_compiling" = yes; then
14576 ac_cv_c_stack_direction=0
14577 else
14578 cat >conftest.$ac_ext <<_ACEOF
14579 /* confdefs.h. */
14580 _ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h. */
14584 int
14585 find_stack_direction ()
14586 {
14587 static char *addr = 0;
14588 auto char dummy;
14589 if (addr == 0)
14590 {
14591 addr = &dummy;
14592 return find_stack_direction ();
14593 }
14594 else
14595 return (&dummy > addr) ? 1 : -1;
14596 }
14597
14598 int
14599 main ()
14600 {
14601 exit (find_stack_direction () < 0);
14602 }
14603 _ACEOF
14604 rm -f conftest$ac_exeext
14605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14606 (eval $ac_link) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14612 ac_status=$?
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; }; then
14615 ac_cv_c_stack_direction=1
14616 else
14617 echo "$as_me: program exited with status $ac_status" >&5
14618 echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14620
14621 ( exit $ac_status )
14622 ac_cv_c_stack_direction=-1
14623 fi
14624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14625 fi
14626 fi
14627 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14628 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14629
14630 cat >>confdefs.h <<_ACEOF
14631 #define STACK_DIRECTION $ac_cv_c_stack_direction
14632 _ACEOF
14633
14634
14635 fi
14636
14637
14638
14639 for ac_header in stdlib.h unistd.h
14640 do
14641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14643 echo "$as_me:$LINENO: checking for $ac_header" >&5
14644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14647 fi
14648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14650 else
14651 # Is the header compilable?
14652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14654 cat >conftest.$ac_ext <<_ACEOF
14655 /* confdefs.h. */
14656 _ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14660 $ac_includes_default
14661 #include <$ac_header>
14662 _ACEOF
14663 rm -f conftest.$ac_objext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665 (eval $ac_compile) 2>conftest.er1
14666 ac_status=$?
14667 grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -z "$ac_c_werror_flag"
14673 || test ! -s conftest.err'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; } &&
14679 { ac_try='test -s conftest.$ac_objext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14682 ac_status=$?
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 ac_header_compiler=yes
14686 else
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690 ac_header_compiler=no
14691 fi
14692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14693 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14694 echo "${ECHO_T}$ac_header_compiler" >&6
14695
14696 # Is the header present?
14697 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14699 cat >conftest.$ac_ext <<_ACEOF
14700 /* confdefs.h. */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 #include <$ac_header>
14706 _ACEOF
14707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14709 ac_status=$?
14710 grep -v '^ *+' conftest.er1 >conftest.err
14711 rm -f conftest.er1
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } >/dev/null; then
14715 if test -s conftest.err; then
14716 ac_cpp_err=$ac_c_preproc_warn_flag
14717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14718 else
14719 ac_cpp_err=
14720 fi
14721 else
14722 ac_cpp_err=yes
14723 fi
14724 if test -z "$ac_cpp_err"; then
14725 ac_header_preproc=yes
14726 else
14727 echo "$as_me: failed program was:" >&5
14728 sed 's/^/| /' conftest.$ac_ext >&5
14729
14730 ac_header_preproc=no
14731 fi
14732 rm -f conftest.err conftest.$ac_ext
14733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14734 echo "${ECHO_T}$ac_header_preproc" >&6
14735
14736 # So? What about this header?
14737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14738 yes:no: )
14739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14743 ac_header_preproc=yes
14744 ;;
14745 no:yes:* )
14746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14753 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14758 (
14759 cat <<\_ASBOX
14760 ## ------------------------------------------ ##
14761 ## Report this to the AC_PACKAGE_NAME lists. ##
14762 ## ------------------------------------------ ##
14763 _ASBOX
14764 ) |
14765 sed "s/^/$as_me: WARNING: /" >&2
14766 ;;
14767 esac
14768 echo "$as_me:$LINENO: checking for $ac_header" >&5
14769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773 eval "$as_ac_Header=\$ac_header_preproc"
14774 fi
14775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14777
14778 fi
14779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14780 cat >>confdefs.h <<_ACEOF
14781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14782 _ACEOF
14783
14784 fi
14785
14786 done
14787
14788
14789 for ac_func in getpagesize
14790 do
14791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14792 echo "$as_me:$LINENO: checking for $ac_func" >&5
14793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14794 if eval "test \"\${$as_ac_var+set}\" = set"; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797 cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h. */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14805 #define $ac_func innocuous_$ac_func
14806
14807 /* System header to define __stub macros and hopefully few prototypes,
14808 which can conflict with char $ac_func (); below.
14809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14810 <limits.h> exists even on freestanding compilers. */
14811
14812 #ifdef __STDC__
14813 # include <limits.h>
14814 #else
14815 # include <assert.h>
14816 #endif
14817
14818 #undef $ac_func
14819
14820 /* Override any gcc2 internal prototype to avoid an error. */
14821 #ifdef __cplusplus
14822 extern "C"
14823 {
14824 #endif
14825 /* We use char because int might match the return type of a gcc2
14826 builtin and then its argument prototype would still apply. */
14827 char $ac_func ();
14828 /* The GNU C library defines this for functions which it implements
14829 to always fail with ENOSYS. Some functions are actually named
14830 something starting with __ and the normal name is an alias. */
14831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14832 choke me
14833 #else
14834 char (*f) () = $ac_func;
14835 #endif
14836 #ifdef __cplusplus
14837 }
14838 #endif
14839
14840 int
14841 main ()
14842 {
14843 return f != $ac_func;
14844 ;
14845 return 0;
14846 }
14847 _ACEOF
14848 rm -f conftest.$ac_objext conftest$ac_exeext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14850 (eval $ac_link) 2>conftest.er1
14851 ac_status=$?
14852 grep -v '^ *+' conftest.er1 >conftest.err
14853 rm -f conftest.er1
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } &&
14857 { ac_try='test -z "$ac_c_werror_flag"
14858 || test ! -s conftest.err'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; } &&
14864 { ac_try='test -s conftest$ac_exeext'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 eval "$as_ac_var=yes"
14871 else
14872 echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14874
14875 eval "$as_ac_var=no"
14876 fi
14877 rm -f conftest.err conftest.$ac_objext \
14878 conftest$ac_exeext conftest.$ac_ext
14879 fi
14880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14882 if test `eval echo '${'$as_ac_var'}'` = yes; then
14883 cat >>confdefs.h <<_ACEOF
14884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14885 _ACEOF
14886
14887 fi
14888 done
14889
14890 echo "$as_me:$LINENO: checking for working mmap" >&5
14891 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14892 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895 if test "$cross_compiling" = yes; then
14896 ac_cv_func_mmap_fixed_mapped=no
14897 else
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 $ac_includes_default
14905 /* malloc might have been renamed as rpl_malloc. */
14906 #undef malloc
14907
14908 /* Thanks to Mike Haertel and Jim Avera for this test.
14909 Here is a matrix of mmap possibilities:
14910 mmap private not fixed
14911 mmap private fixed at somewhere currently unmapped
14912 mmap private fixed at somewhere already mapped
14913 mmap shared not fixed
14914 mmap shared fixed at somewhere currently unmapped
14915 mmap shared fixed at somewhere already mapped
14916 For private mappings, we should verify that changes cannot be read()
14917 back from the file, nor mmap's back from the file at a different
14918 address. (There have been systems where private was not correctly
14919 implemented like the infamous i386 svr4.0, and systems where the
14920 VM page cache was not coherent with the file system buffer cache
14921 like early versions of FreeBSD and possibly contemporary NetBSD.)
14922 For shared mappings, we should conversely verify that changes get
14923 propagated back to all the places they're supposed to be.
14924
14925 Grep wants private fixed already mapped.
14926 The main things grep needs to know about mmap are:
14927 * does it exist and is it safe to write into the mmap'd area
14928 * how to use it (BSD variants) */
14929
14930 #include <fcntl.h>
14931 #include <sys/mman.h>
14932
14933 #if !STDC_HEADERS && !HAVE_STDLIB_H
14934 char *malloc ();
14935 #endif
14936
14937 /* This mess was copied from the GNU getpagesize.h. */
14938 #if !HAVE_GETPAGESIZE
14939 /* Assume that all systems that can run configure have sys/param.h. */
14940 # if !HAVE_SYS_PARAM_H
14941 # define HAVE_SYS_PARAM_H 1
14942 # endif
14943
14944 # ifdef _SC_PAGESIZE
14945 # define getpagesize() sysconf(_SC_PAGESIZE)
14946 # else /* no _SC_PAGESIZE */
14947 # if HAVE_SYS_PARAM_H
14948 # include <sys/param.h>
14949 # ifdef EXEC_PAGESIZE
14950 # define getpagesize() EXEC_PAGESIZE
14951 # else /* no EXEC_PAGESIZE */
14952 # ifdef NBPG
14953 # define getpagesize() NBPG * CLSIZE
14954 # ifndef CLSIZE
14955 # define CLSIZE 1
14956 # endif /* no CLSIZE */
14957 # else /* no NBPG */
14958 # ifdef NBPC
14959 # define getpagesize() NBPC
14960 # else /* no NBPC */
14961 # ifdef PAGESIZE
14962 # define getpagesize() PAGESIZE
14963 # endif /* PAGESIZE */
14964 # endif /* no NBPC */
14965 # endif /* no NBPG */
14966 # endif /* no EXEC_PAGESIZE */
14967 # else /* no HAVE_SYS_PARAM_H */
14968 # define getpagesize() 8192 /* punt totally */
14969 # endif /* no HAVE_SYS_PARAM_H */
14970 # endif /* no _SC_PAGESIZE */
14971
14972 #endif /* no HAVE_GETPAGESIZE */
14973
14974 int
14975 main ()
14976 {
14977 char *data, *data2, *data3;
14978 int i, pagesize;
14979 int fd;
14980
14981 pagesize = getpagesize ();
14982
14983 /* First, make a file with some known garbage in it. */
14984 data = (char *) malloc (pagesize);
14985 if (!data)
14986 exit (1);
14987 for (i = 0; i < pagesize; ++i)
14988 *(data + i) = rand ();
14989 umask (0);
14990 fd = creat ("conftest.mmap", 0600);
14991 if (fd < 0)
14992 exit (1);
14993 if (write (fd, data, pagesize) != pagesize)
14994 exit (1);
14995 close (fd);
14996
14997 /* Next, try to mmap the file at a fixed address which already has
14998 something else allocated at it. If we can, also make sure that
14999 we see the same garbage. */
15000 fd = open ("conftest.mmap", O_RDWR);
15001 if (fd < 0)
15002 exit (1);
15003 data2 = (char *) malloc (2 * pagesize);
15004 if (!data2)
15005 exit (1);
15006 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15007 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15008 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15009 exit (1);
15010 for (i = 0; i < pagesize; ++i)
15011 if (*(data + i) != *(data2 + i))
15012 exit (1);
15013
15014 /* Finally, make sure that changes to the mapped area do not
15015 percolate back to the file as seen by read(). (This is a bug on
15016 some variants of i386 svr4.0.) */
15017 for (i = 0; i < pagesize; ++i)
15018 *(data2 + i) = *(data2 + i) + 1;
15019 data3 = (char *) malloc (pagesize);
15020 if (!data3)
15021 exit (1);
15022 if (read (fd, data3, pagesize) != pagesize)
15023 exit (1);
15024 for (i = 0; i < pagesize; ++i)
15025 if (*(data + i) != *(data3 + i))
15026 exit (1);
15027 close (fd);
15028 exit (0);
15029 }
15030 _ACEOF
15031 rm -f conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033 (eval $ac_link) 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_cv_func_mmap_fixed_mapped=yes
15043 else
15044 echo "$as_me: program exited with status $ac_status" >&5
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15047
15048 ( exit $ac_status )
15049 ac_cv_func_mmap_fixed_mapped=no
15050 fi
15051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15052 fi
15053 fi
15054 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15055 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15056 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15057
15058 cat >>confdefs.h <<\_ACEOF
15059 #define HAVE_MMAP 1
15060 _ACEOF
15061
15062 fi
15063 rm -f conftest.mmap
15064
15065 echo "$as_me:$LINENO: checking for pid_t" >&5
15066 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15067 if test "${ac_cv_type_pid_t+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 else
15070 cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h. */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 $ac_includes_default
15077 int
15078 main ()
15079 {
15080 if ((pid_t *) 0)
15081 return 0;
15082 if (sizeof (pid_t))
15083 return 0;
15084 ;
15085 return 0;
15086 }
15087 _ACEOF
15088 rm -f conftest.$ac_objext
15089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15090 (eval $ac_compile) 2>conftest.er1
15091 ac_status=$?
15092 grep -v '^ *+' conftest.er1 >conftest.err
15093 rm -f conftest.er1
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } &&
15097 { ac_try='test -z "$ac_c_werror_flag"
15098 || test ! -s conftest.err'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; } &&
15104 { ac_try='test -s conftest.$ac_objext'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 ac_cv_type_pid_t=yes
15111 else
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115 ac_cv_type_pid_t=no
15116 fi
15117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15118 fi
15119 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15120 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15121 if test $ac_cv_type_pid_t = yes; then
15122 :
15123 else
15124
15125 cat >>confdefs.h <<_ACEOF
15126 #define pid_t int
15127 _ACEOF
15128
15129 fi
15130
15131
15132
15133 for ac_header in unistd.h vfork.h
15134 do
15135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15137 echo "$as_me:$LINENO: checking for $ac_header" >&5
15138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 fi
15142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15144 else
15145 # Is the header compilable?
15146 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15148 cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h. */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 $ac_includes_default
15155 #include <$ac_header>
15156 _ACEOF
15157 rm -f conftest.$ac_objext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15159 (eval $ac_compile) 2>conftest.er1
15160 ac_status=$?
15161 grep -v '^ *+' conftest.er1 >conftest.err
15162 rm -f conftest.er1
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } &&
15166 { ac_try='test -z "$ac_c_werror_flag"
15167 || test ! -s conftest.err'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; } &&
15173 { ac_try='test -s conftest.$ac_objext'
15174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175 (eval $ac_try) 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 ac_header_compiler=yes
15180 else
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15183
15184 ac_header_compiler=no
15185 fi
15186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15188 echo "${ECHO_T}$ac_header_compiler" >&6
15189
15190 # Is the header present?
15191 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h. */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 #include <$ac_header>
15200 _ACEOF
15201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15203 ac_status=$?
15204 grep -v '^ *+' conftest.er1 >conftest.err
15205 rm -f conftest.er1
15206 cat conftest.err >&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } >/dev/null; then
15209 if test -s conftest.err; then
15210 ac_cpp_err=$ac_c_preproc_warn_flag
15211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15212 else
15213 ac_cpp_err=
15214 fi
15215 else
15216 ac_cpp_err=yes
15217 fi
15218 if test -z "$ac_cpp_err"; then
15219 ac_header_preproc=yes
15220 else
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15223
15224 ac_header_preproc=no
15225 fi
15226 rm -f conftest.err conftest.$ac_ext
15227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15228 echo "${ECHO_T}$ac_header_preproc" >&6
15229
15230 # So? What about this header?
15231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15232 yes:no: )
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15237 ac_header_preproc=yes
15238 ;;
15239 no:yes:* )
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15247 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15252 (
15253 cat <<\_ASBOX
15254 ## ------------------------------------------ ##
15255 ## Report this to the AC_PACKAGE_NAME lists. ##
15256 ## ------------------------------------------ ##
15257 _ASBOX
15258 ) |
15259 sed "s/^/$as_me: WARNING: /" >&2
15260 ;;
15261 esac
15262 echo "$as_me:$LINENO: checking for $ac_header" >&5
15263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15265 echo $ECHO_N "(cached) $ECHO_C" >&6
15266 else
15267 eval "$as_ac_Header=\$ac_header_preproc"
15268 fi
15269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15271
15272 fi
15273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15274 cat >>confdefs.h <<_ACEOF
15275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15276 _ACEOF
15277
15278 fi
15279
15280 done
15281
15282
15283
15284 for ac_func in fork vfork
15285 do
15286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15287 echo "$as_me:$LINENO: checking for $ac_func" >&5
15288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15289 if eval "test \"\${$as_ac_var+set}\" = set"; then
15290 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15300 #define $ac_func innocuous_$ac_func
15301
15302 /* System header to define __stub macros and hopefully few prototypes,
15303 which can conflict with char $ac_func (); below.
15304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15305 <limits.h> exists even on freestanding compilers. */
15306
15307 #ifdef __STDC__
15308 # include <limits.h>
15309 #else
15310 # include <assert.h>
15311 #endif
15312
15313 #undef $ac_func
15314
15315 /* Override any gcc2 internal prototype to avoid an error. */
15316 #ifdef __cplusplus
15317 extern "C"
15318 {
15319 #endif
15320 /* We use char because int might match the return type of a gcc2
15321 builtin and then its argument prototype would still apply. */
15322 char $ac_func ();
15323 /* The GNU C library defines this for functions which it implements
15324 to always fail with ENOSYS. Some functions are actually named
15325 something starting with __ and the normal name is an alias. */
15326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15327 choke me
15328 #else
15329 char (*f) () = $ac_func;
15330 #endif
15331 #ifdef __cplusplus
15332 }
15333 #endif
15334
15335 int
15336 main ()
15337 {
15338 return f != $ac_func;
15339 ;
15340 return 0;
15341 }
15342 _ACEOF
15343 rm -f conftest.$ac_objext conftest$ac_exeext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15345 (eval $ac_link) 2>conftest.er1
15346 ac_status=$?
15347 grep -v '^ *+' conftest.er1 >conftest.err
15348 rm -f conftest.er1
15349 cat conftest.err >&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } &&
15352 { ac_try='test -z "$ac_c_werror_flag"
15353 || test ! -s conftest.err'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest$ac_exeext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15362 ac_status=$?
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15365 eval "$as_ac_var=yes"
15366 else
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370 eval "$as_ac_var=no"
15371 fi
15372 rm -f conftest.err conftest.$ac_objext \
15373 conftest$ac_exeext conftest.$ac_ext
15374 fi
15375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15377 if test `eval echo '${'$as_ac_var'}'` = yes; then
15378 cat >>confdefs.h <<_ACEOF
15379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15380 _ACEOF
15381
15382 fi
15383 done
15384
15385 if test "x$ac_cv_func_fork" = xyes; then
15386 echo "$as_me:$LINENO: checking for working fork" >&5
15387 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15388 if test "${ac_cv_func_fork_works+set}" = set; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 else
15391 if test "$cross_compiling" = yes; then
15392 ac_cv_func_fork_works=cross
15393 else
15394 cat >conftest.$ac_ext <<_ACEOF
15395 /* By Ruediger Kuhlmann. */
15396 #include <sys/types.h>
15397 #if HAVE_UNISTD_H
15398 # include <unistd.h>
15399 #endif
15400 /* Some systems only have a dummy stub for fork() */
15401 int main ()
15402 {
15403 if (fork() < 0)
15404 exit (1);
15405 exit (0);
15406 }
15407 _ACEOF
15408 rm -f conftest$ac_exeext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15410 (eval $ac_link) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15416 ac_status=$?
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_cv_func_fork_works=yes
15420 else
15421 echo "$as_me: program exited with status $ac_status" >&5
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 ( exit $ac_status )
15426 ac_cv_func_fork_works=no
15427 fi
15428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15429 fi
15430 fi
15431 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15432 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15433
15434 else
15435 ac_cv_func_fork_works=$ac_cv_func_fork
15436 fi
15437 if test "x$ac_cv_func_fork_works" = xcross; then
15438 case $host in
15439 *-*-amigaos* | *-*-msdosdjgpp*)
15440 # Override, as these systems have only a dummy fork() stub
15441 ac_cv_func_fork_works=no
15442 ;;
15443 *)
15444 ac_cv_func_fork_works=yes
15445 ;;
15446 esac
15447 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15448 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15449 fi
15450 ac_cv_func_vfork_works=$ac_cv_func_vfork
15451 if test "x$ac_cv_func_vfork" = xyes; then
15452 echo "$as_me:$LINENO: checking for working vfork" >&5
15453 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15454 if test "${ac_cv_func_vfork_works+set}" = set; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 else
15457 if test "$cross_compiling" = yes; then
15458 ac_cv_func_vfork_works=cross
15459 else
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h. */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466 /* Thanks to Paul Eggert for this test. */
15467 #include <stdio.h>
15468 #include <stdlib.h>
15469 #include <sys/types.h>
15470 #include <sys/stat.h>
15471 #include <sys/wait.h>
15472 #if HAVE_UNISTD_H
15473 # include <unistd.h>
15474 #endif
15475 #if HAVE_VFORK_H
15476 # include <vfork.h>
15477 #endif
15478 /* On some sparc systems, changes by the child to local and incoming
15479 argument registers are propagated back to the parent. The compiler
15480 is told about this with #include <vfork.h>, but some compilers
15481 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15482 static variable whose address is put into a register that is
15483 clobbered by the vfork. */
15484 static void
15485 #ifdef __cplusplus
15486 sparc_address_test (int arg)
15487 # else
15488 sparc_address_test (arg) int arg;
15489 #endif
15490 {
15491 static pid_t child;
15492 if (!child) {
15493 child = vfork ();
15494 if (child < 0) {
15495 perror ("vfork");
15496 _exit(2);
15497 }
15498 if (!child) {
15499 arg = getpid();
15500 write(-1, "", 0);
15501 _exit (arg);
15502 }
15503 }
15504 }
15505
15506 int
15507 main ()
15508 {
15509 pid_t parent = getpid ();
15510 pid_t child;
15511
15512 sparc_address_test (0);
15513
15514 child = vfork ();
15515
15516 if (child == 0) {
15517 /* Here is another test for sparc vfork register problems. This
15518 test uses lots of local variables, at least as many local
15519 variables as main has allocated so far including compiler
15520 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15521 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15522 reuse the register of parent for one of the local variables,
15523 since it will think that parent can't possibly be used any more
15524 in this routine. Assigning to the local variable will thus
15525 munge parent in the parent process. */
15526 pid_t
15527 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15528 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15529 /* Convince the compiler that p..p7 are live; otherwise, it might
15530 use the same hardware register for all 8 local variables. */
15531 if (p != p1 || p != p2 || p != p3 || p != p4
15532 || p != p5 || p != p6 || p != p7)
15533 _exit(1);
15534
15535 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15536 from child file descriptors. If the child closes a descriptor
15537 before it execs or exits, this munges the parent's descriptor
15538 as well. Test for this by closing stdout in the child. */
15539 _exit(close(fileno(stdout)) != 0);
15540 } else {
15541 int status;
15542 struct stat st;
15543
15544 while (wait(&status) != child)
15545 ;
15546 exit(
15547 /* Was there some problem with vforking? */
15548 child < 0
15549
15550 /* Did the child fail? (This shouldn't happen.) */
15551 || status
15552
15553 /* Did the vfork/compiler bug occur? */
15554 || parent != getpid()
15555
15556 /* Did the file descriptor bug occur? */
15557 || fstat(fileno(stdout), &st) != 0
15558 );
15559 }
15560 }
15561 _ACEOF
15562 rm -f conftest$ac_exeext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15564 (eval $ac_link) 2>&5
15565 ac_status=$?
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 ac_cv_func_vfork_works=yes
15574 else
15575 echo "$as_me: program exited with status $ac_status" >&5
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15578
15579 ( exit $ac_status )
15580 ac_cv_func_vfork_works=no
15581 fi
15582 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15583 fi
15584 fi
15585 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15586 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15587
15588 fi;
15589 if test "x$ac_cv_func_fork_works" = xcross; then
15590 ac_cv_func_vfork_works=$ac_cv_func_vfork
15591 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15592 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15593 fi
15594
15595 if test "x$ac_cv_func_vfork_works" = xyes; then
15596
15597 cat >>confdefs.h <<\_ACEOF
15598 #define HAVE_WORKING_VFORK 1
15599 _ACEOF
15600
15601 else
15602
15603 cat >>confdefs.h <<\_ACEOF
15604 #define vfork fork
15605 _ACEOF
15606
15607 fi
15608 if test "x$ac_cv_func_fork_works" = xyes; then
15609
15610 cat >>confdefs.h <<\_ACEOF
15611 #define HAVE_WORKING_FORK 1
15612 _ACEOF
15613
15614 fi
15615
15616
15617
15618 for ac_func in canonicalize_file_name realpath
15619 do
15620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15621 echo "$as_me:$LINENO: checking for $ac_func" >&5
15622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15623 if eval "test \"\${$as_ac_var+set}\" = set"; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 else
15626 cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h. */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15634 #define $ac_func innocuous_$ac_func
15635
15636 /* System header to define __stub macros and hopefully few prototypes,
15637 which can conflict with char $ac_func (); below.
15638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15639 <limits.h> exists even on freestanding compilers. */
15640
15641 #ifdef __STDC__
15642 # include <limits.h>
15643 #else
15644 # include <assert.h>
15645 #endif
15646
15647 #undef $ac_func
15648
15649 /* Override any gcc2 internal prototype to avoid an error. */
15650 #ifdef __cplusplus
15651 extern "C"
15652 {
15653 #endif
15654 /* We use char because int might match the return type of a gcc2
15655 builtin and then its argument prototype would still apply. */
15656 char $ac_func ();
15657 /* The GNU C library defines this for functions which it implements
15658 to always fail with ENOSYS. Some functions are actually named
15659 something starting with __ and the normal name is an alias. */
15660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15661 choke me
15662 #else
15663 char (*f) () = $ac_func;
15664 #endif
15665 #ifdef __cplusplus
15666 }
15667 #endif
15668
15669 int
15670 main ()
15671 {
15672 return f != $ac_func;
15673 ;
15674 return 0;
15675 }
15676 _ACEOF
15677 rm -f conftest.$ac_objext conftest$ac_exeext
15678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15679 (eval $ac_link) 2>conftest.er1
15680 ac_status=$?
15681 grep -v '^ *+' conftest.er1 >conftest.err
15682 rm -f conftest.er1
15683 cat conftest.err >&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
15686 { ac_try='test -z "$ac_c_werror_flag"
15687 || test ! -s conftest.err'
15688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15690 ac_status=$?
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; } &&
15693 { ac_try='test -s conftest$ac_exeext'
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15696 ac_status=$?
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; }; then
15699 eval "$as_ac_var=yes"
15700 else
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15703
15704 eval "$as_ac_var=no"
15705 fi
15706 rm -f conftest.err conftest.$ac_objext \
15707 conftest$ac_exeext conftest.$ac_ext
15708 fi
15709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15711 if test `eval echo '${'$as_ac_var'}'` = yes; then
15712 cat >>confdefs.h <<_ACEOF
15713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15714 _ACEOF
15715
15716 fi
15717 done
15718
15719
15720
15721 for ac_func in getuid getgid
15722 do
15723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15724 echo "$as_me:$LINENO: checking for $ac_func" >&5
15725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15726 if eval "test \"\${$as_ac_var+set}\" = set"; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 else
15729 cat >conftest.$ac_ext <<_ACEOF
15730 /* confdefs.h. */
15731 _ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15737 #define $ac_func innocuous_$ac_func
15738
15739 /* System header to define __stub macros and hopefully few prototypes,
15740 which can conflict with char $ac_func (); below.
15741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15742 <limits.h> exists even on freestanding compilers. */
15743
15744 #ifdef __STDC__
15745 # include <limits.h>
15746 #else
15747 # include <assert.h>
15748 #endif
15749
15750 #undef $ac_func
15751
15752 /* Override any gcc2 internal prototype to avoid an error. */
15753 #ifdef __cplusplus
15754 extern "C"
15755 {
15756 #endif
15757 /* We use char because int might match the return type of a gcc2
15758 builtin and then its argument prototype would still apply. */
15759 char $ac_func ();
15760 /* The GNU C library defines this for functions which it implements
15761 to always fail with ENOSYS. Some functions are actually named
15762 something starting with __ and the normal name is an alias. */
15763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15764 choke me
15765 #else
15766 char (*f) () = $ac_func;
15767 #endif
15768 #ifdef __cplusplus
15769 }
15770 #endif
15771
15772 int
15773 main ()
15774 {
15775 return f != $ac_func;
15776 ;
15777 return 0;
15778 }
15779 _ACEOF
15780 rm -f conftest.$ac_objext conftest$ac_exeext
15781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15782 (eval $ac_link) 2>conftest.er1
15783 ac_status=$?
15784 grep -v '^ *+' conftest.er1 >conftest.err
15785 rm -f conftest.er1
15786 cat conftest.err >&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } &&
15789 { ac_try='test -z "$ac_c_werror_flag"
15790 || test ! -s conftest.err'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; } &&
15796 { ac_try='test -s conftest$ac_exeext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 eval "$as_ac_var=yes"
15803 else
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15806
15807 eval "$as_ac_var=no"
15808 fi
15809 rm -f conftest.err conftest.$ac_objext \
15810 conftest$ac_exeext conftest.$ac_ext
15811 fi
15812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15814 if test `eval echo '${'$as_ac_var'}'` = yes; then
15815 cat >>confdefs.h <<_ACEOF
15816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15817 _ACEOF
15818
15819 fi
15820 done
15821
15822
15823 for ac_func in poll
15824 do
15825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15826 echo "$as_me:$LINENO: checking for $ac_func" >&5
15827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15828 if eval "test \"\${$as_ac_var+set}\" = set"; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 else
15831 cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h. */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15839 #define $ac_func innocuous_$ac_func
15840
15841 /* System header to define __stub macros and hopefully few prototypes,
15842 which can conflict with char $ac_func (); below.
15843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15844 <limits.h> exists even on freestanding compilers. */
15845
15846 #ifdef __STDC__
15847 # include <limits.h>
15848 #else
15849 # include <assert.h>
15850 #endif
15851
15852 #undef $ac_func
15853
15854 /* Override any gcc2 internal prototype to avoid an error. */
15855 #ifdef __cplusplus
15856 extern "C"
15857 {
15858 #endif
15859 /* We use char because int might match the return type of a gcc2
15860 builtin and then its argument prototype would still apply. */
15861 char $ac_func ();
15862 /* The GNU C library defines this for functions which it implements
15863 to always fail with ENOSYS. Some functions are actually named
15864 something starting with __ and the normal name is an alias. */
15865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15866 choke me
15867 #else
15868 char (*f) () = $ac_func;
15869 #endif
15870 #ifdef __cplusplus
15871 }
15872 #endif
15873
15874 int
15875 main ()
15876 {
15877 return f != $ac_func;
15878 ;
15879 return 0;
15880 }
15881 _ACEOF
15882 rm -f conftest.$ac_objext conftest$ac_exeext
15883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15884 (eval $ac_link) 2>conftest.er1
15885 ac_status=$?
15886 grep -v '^ *+' conftest.er1 >conftest.err
15887 rm -f conftest.er1
15888 cat conftest.err >&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } &&
15891 { ac_try='test -z "$ac_c_werror_flag"
15892 || test ! -s conftest.err'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15895 ac_status=$?
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; } &&
15898 { ac_try='test -s conftest$ac_exeext'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; }; then
15904 eval "$as_ac_var=yes"
15905 else
15906 echo "$as_me: failed program was:" >&5
15907 sed 's/^/| /' conftest.$ac_ext >&5
15908
15909 eval "$as_ac_var=no"
15910 fi
15911 rm -f conftest.err conftest.$ac_objext \
15912 conftest$ac_exeext conftest.$ac_ext
15913 fi
15914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15916 if test `eval echo '${'$as_ac_var'}'` = yes; then
15917 cat >>confdefs.h <<_ACEOF
15918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15919 _ACEOF
15920
15921 fi
15922 done
15923
15924
15925 for ac_func in pread64
15926 do
15927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15928 echo "$as_me:$LINENO: checking for $ac_func" >&5
15929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15930 if eval "test \"\${$as_ac_var+set}\" = set"; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933 cat >conftest.$ac_ext <<_ACEOF
15934 /* confdefs.h. */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15941 #define $ac_func innocuous_$ac_func
15942
15943 /* System header to define __stub macros and hopefully few prototypes,
15944 which can conflict with char $ac_func (); below.
15945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15946 <limits.h> exists even on freestanding compilers. */
15947
15948 #ifdef __STDC__
15949 # include <limits.h>
15950 #else
15951 # include <assert.h>
15952 #endif
15953
15954 #undef $ac_func
15955
15956 /* Override any gcc2 internal prototype to avoid an error. */
15957 #ifdef __cplusplus
15958 extern "C"
15959 {
15960 #endif
15961 /* We use char because int might match the return type of a gcc2
15962 builtin and then its argument prototype would still apply. */
15963 char $ac_func ();
15964 /* The GNU C library defines this for functions which it implements
15965 to always fail with ENOSYS. Some functions are actually named
15966 something starting with __ and the normal name is an alias. */
15967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15968 choke me
15969 #else
15970 char (*f) () = $ac_func;
15971 #endif
15972 #ifdef __cplusplus
15973 }
15974 #endif
15975
15976 int
15977 main ()
15978 {
15979 return f != $ac_func;
15980 ;
15981 return 0;
15982 }
15983 _ACEOF
15984 rm -f conftest.$ac_objext conftest$ac_exeext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15986 (eval $ac_link) 2>conftest.er1
15987 ac_status=$?
15988 grep -v '^ *+' conftest.er1 >conftest.err
15989 rm -f conftest.er1
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } &&
15993 { ac_try='test -z "$ac_c_werror_flag"
15994 || test ! -s conftest.err'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; } &&
16000 { ac_try='test -s conftest$ac_exeext'
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
16006 eval "$as_ac_var=yes"
16007 else
16008 echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16010
16011 eval "$as_ac_var=no"
16012 fi
16013 rm -f conftest.err conftest.$ac_objext \
16014 conftest$ac_exeext conftest.$ac_ext
16015 fi
16016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16018 if test `eval echo '${'$as_ac_var'}'` = yes; then
16019 cat >>confdefs.h <<_ACEOF
16020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16021 _ACEOF
16022
16023 fi
16024 done
16025
16026
16027 for ac_func in sbrk
16028 do
16029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16030 echo "$as_me:$LINENO: checking for $ac_func" >&5
16031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16032 if eval "test \"\${$as_ac_var+set}\" = set"; then
16033 echo $ECHO_N "(cached) $ECHO_C" >&6
16034 else
16035 cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h. */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16043 #define $ac_func innocuous_$ac_func
16044
16045 /* System header to define __stub macros and hopefully few prototypes,
16046 which can conflict with char $ac_func (); below.
16047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16048 <limits.h> exists even on freestanding compilers. */
16049
16050 #ifdef __STDC__
16051 # include <limits.h>
16052 #else
16053 # include <assert.h>
16054 #endif
16055
16056 #undef $ac_func
16057
16058 /* Override any gcc2 internal prototype to avoid an error. */
16059 #ifdef __cplusplus
16060 extern "C"
16061 {
16062 #endif
16063 /* We use char because int might match the return type of a gcc2
16064 builtin and then its argument prototype would still apply. */
16065 char $ac_func ();
16066 /* The GNU C library defines this for functions which it implements
16067 to always fail with ENOSYS. Some functions are actually named
16068 something starting with __ and the normal name is an alias. */
16069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16070 choke me
16071 #else
16072 char (*f) () = $ac_func;
16073 #endif
16074 #ifdef __cplusplus
16075 }
16076 #endif
16077
16078 int
16079 main ()
16080 {
16081 return f != $ac_func;
16082 ;
16083 return 0;
16084 }
16085 _ACEOF
16086 rm -f conftest.$ac_objext conftest$ac_exeext
16087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16088 (eval $ac_link) 2>conftest.er1
16089 ac_status=$?
16090 grep -v '^ *+' conftest.er1 >conftest.err
16091 rm -f conftest.er1
16092 cat conftest.err >&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); } &&
16095 { ac_try='test -z "$ac_c_werror_flag"
16096 || test ! -s conftest.err'
16097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098 (eval $ac_try) 2>&5
16099 ac_status=$?
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; } &&
16102 { ac_try='test -s conftest$ac_exeext'
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; }; then
16108 eval "$as_ac_var=yes"
16109 else
16110 echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16112
16113 eval "$as_ac_var=no"
16114 fi
16115 rm -f conftest.err conftest.$ac_objext \
16116 conftest$ac_exeext conftest.$ac_ext
16117 fi
16118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16120 if test `eval echo '${'$as_ac_var'}'` = yes; then
16121 cat >>confdefs.h <<_ACEOF
16122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16123 _ACEOF
16124
16125 fi
16126 done
16127
16128
16129
16130 for ac_func in setpgid setpgrp
16131 do
16132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16133 echo "$as_me:$LINENO: checking for $ac_func" >&5
16134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16135 if eval "test \"\${$as_ac_var+set}\" = set"; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 else
16138 cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h. */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16146 #define $ac_func innocuous_$ac_func
16147
16148 /* System header to define __stub macros and hopefully few prototypes,
16149 which can conflict with char $ac_func (); below.
16150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16151 <limits.h> exists even on freestanding compilers. */
16152
16153 #ifdef __STDC__
16154 # include <limits.h>
16155 #else
16156 # include <assert.h>
16157 #endif
16158
16159 #undef $ac_func
16160
16161 /* Override any gcc2 internal prototype to avoid an error. */
16162 #ifdef __cplusplus
16163 extern "C"
16164 {
16165 #endif
16166 /* We use char because int might match the return type of a gcc2
16167 builtin and then its argument prototype would still apply. */
16168 char $ac_func ();
16169 /* The GNU C library defines this for functions which it implements
16170 to always fail with ENOSYS. Some functions are actually named
16171 something starting with __ and the normal name is an alias. */
16172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16173 choke me
16174 #else
16175 char (*f) () = $ac_func;
16176 #endif
16177 #ifdef __cplusplus
16178 }
16179 #endif
16180
16181 int
16182 main ()
16183 {
16184 return f != $ac_func;
16185 ;
16186 return 0;
16187 }
16188 _ACEOF
16189 rm -f conftest.$ac_objext conftest$ac_exeext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16191 (eval $ac_link) 2>conftest.er1
16192 ac_status=$?
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
16198 { ac_try='test -z "$ac_c_werror_flag"
16199 || test ! -s conftest.err'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; } &&
16205 { ac_try='test -s conftest$ac_exeext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 eval "$as_ac_var=yes"
16212 else
16213 echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16215
16216 eval "$as_ac_var=no"
16217 fi
16218 rm -f conftest.err conftest.$ac_objext \
16219 conftest$ac_exeext conftest.$ac_ext
16220 fi
16221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16223 if test `eval echo '${'$as_ac_var'}'` = yes; then
16224 cat >>confdefs.h <<_ACEOF
16225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16226 _ACEOF
16227
16228 fi
16229 done
16230
16231
16232
16233
16234 for ac_func in sigaction sigprocmask sigsetmask
16235 do
16236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16237 echo "$as_me:$LINENO: checking for $ac_func" >&5
16238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16239 if eval "test \"\${$as_ac_var+set}\" = set"; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 else
16242 cat >conftest.$ac_ext <<_ACEOF
16243 /* confdefs.h. */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16250 #define $ac_func innocuous_$ac_func
16251
16252 /* System header to define __stub macros and hopefully few prototypes,
16253 which can conflict with char $ac_func (); below.
16254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16255 <limits.h> exists even on freestanding compilers. */
16256
16257 #ifdef __STDC__
16258 # include <limits.h>
16259 #else
16260 # include <assert.h>
16261 #endif
16262
16263 #undef $ac_func
16264
16265 /* Override any gcc2 internal prototype to avoid an error. */
16266 #ifdef __cplusplus
16267 extern "C"
16268 {
16269 #endif
16270 /* We use char because int might match the return type of a gcc2
16271 builtin and then its argument prototype would still apply. */
16272 char $ac_func ();
16273 /* The GNU C library defines this for functions which it implements
16274 to always fail with ENOSYS. Some functions are actually named
16275 something starting with __ and the normal name is an alias. */
16276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16277 choke me
16278 #else
16279 char (*f) () = $ac_func;
16280 #endif
16281 #ifdef __cplusplus
16282 }
16283 #endif
16284
16285 int
16286 main ()
16287 {
16288 return f != $ac_func;
16289 ;
16290 return 0;
16291 }
16292 _ACEOF
16293 rm -f conftest.$ac_objext conftest$ac_exeext
16294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16295 (eval $ac_link) 2>conftest.er1
16296 ac_status=$?
16297 grep -v '^ *+' conftest.er1 >conftest.err
16298 rm -f conftest.er1
16299 cat conftest.err >&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } &&
16302 { ac_try='test -z "$ac_c_werror_flag"
16303 || test ! -s conftest.err'
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; } &&
16309 { ac_try='test -s conftest$ac_exeext'
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; }; then
16315 eval "$as_ac_var=yes"
16316 else
16317 echo "$as_me: failed program was:" >&5
16318 sed 's/^/| /' conftest.$ac_ext >&5
16319
16320 eval "$as_ac_var=no"
16321 fi
16322 rm -f conftest.err conftest.$ac_objext \
16323 conftest$ac_exeext conftest.$ac_ext
16324 fi
16325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16327 if test `eval echo '${'$as_ac_var'}'` = yes; then
16328 cat >>confdefs.h <<_ACEOF
16329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16330 _ACEOF
16331
16332 fi
16333 done
16334
16335
16336 for ac_func in socketpair
16337 do
16338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16339 echo "$as_me:$LINENO: checking for $ac_func" >&5
16340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16341 if eval "test \"\${$as_ac_var+set}\" = set"; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 else
16344 cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h. */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16352 #define $ac_func innocuous_$ac_func
16353
16354 /* System header to define __stub macros and hopefully few prototypes,
16355 which can conflict with char $ac_func (); below.
16356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16357 <limits.h> exists even on freestanding compilers. */
16358
16359 #ifdef __STDC__
16360 # include <limits.h>
16361 #else
16362 # include <assert.h>
16363 #endif
16364
16365 #undef $ac_func
16366
16367 /* Override any gcc2 internal prototype to avoid an error. */
16368 #ifdef __cplusplus
16369 extern "C"
16370 {
16371 #endif
16372 /* We use char because int might match the return type of a gcc2
16373 builtin and then its argument prototype would still apply. */
16374 char $ac_func ();
16375 /* The GNU C library defines this for functions which it implements
16376 to always fail with ENOSYS. Some functions are actually named
16377 something starting with __ and the normal name is an alias. */
16378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16379 choke me
16380 #else
16381 char (*f) () = $ac_func;
16382 #endif
16383 #ifdef __cplusplus
16384 }
16385 #endif
16386
16387 int
16388 main ()
16389 {
16390 return f != $ac_func;
16391 ;
16392 return 0;
16393 }
16394 _ACEOF
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16397 (eval $ac_link) 2>conftest.er1
16398 ac_status=$?
16399 grep -v '^ *+' conftest.er1 >conftest.err
16400 rm -f conftest.er1
16401 cat conftest.err >&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
16404 { ac_try='test -z "$ac_c_werror_flag"
16405 || test ! -s conftest.err'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; } &&
16411 { ac_try='test -s conftest$ac_exeext'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 eval "$as_ac_var=yes"
16418 else
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16421
16422 eval "$as_ac_var=no"
16423 fi
16424 rm -f conftest.err conftest.$ac_objext \
16425 conftest$ac_exeext conftest.$ac_ext
16426 fi
16427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16429 if test `eval echo '${'$as_ac_var'}'` = yes; then
16430 cat >>confdefs.h <<_ACEOF
16431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16432 _ACEOF
16433
16434 fi
16435 done
16436
16437
16438 for ac_func in syscall
16439 do
16440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16441 echo "$as_me:$LINENO: checking for $ac_func" >&5
16442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16443 if eval "test \"\${$as_ac_var+set}\" = set"; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 else
16446 cat >conftest.$ac_ext <<_ACEOF
16447 /* confdefs.h. */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16454 #define $ac_func innocuous_$ac_func
16455
16456 /* System header to define __stub macros and hopefully few prototypes,
16457 which can conflict with char $ac_func (); below.
16458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16459 <limits.h> exists even on freestanding compilers. */
16460
16461 #ifdef __STDC__
16462 # include <limits.h>
16463 #else
16464 # include <assert.h>
16465 #endif
16466
16467 #undef $ac_func
16468
16469 /* Override any gcc2 internal prototype to avoid an error. */
16470 #ifdef __cplusplus
16471 extern "C"
16472 {
16473 #endif
16474 /* We use char because int might match the return type of a gcc2
16475 builtin and then its argument prototype would still apply. */
16476 char $ac_func ();
16477 /* The GNU C library defines this for functions which it implements
16478 to always fail with ENOSYS. Some functions are actually named
16479 something starting with __ and the normal name is an alias. */
16480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16481 choke me
16482 #else
16483 char (*f) () = $ac_func;
16484 #endif
16485 #ifdef __cplusplus
16486 }
16487 #endif
16488
16489 int
16490 main ()
16491 {
16492 return f != $ac_func;
16493 ;
16494 return 0;
16495 }
16496 _ACEOF
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16499 (eval $ac_link) 2>conftest.er1
16500 ac_status=$?
16501 grep -v '^ *+' conftest.er1 >conftest.err
16502 rm -f conftest.er1
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
16506 { ac_try='test -z "$ac_c_werror_flag"
16507 || test ! -s conftest.err'
16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509 (eval $ac_try) 2>&5
16510 ac_status=$?
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); }; } &&
16513 { ac_try='test -s conftest$ac_exeext'
16514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515 (eval $ac_try) 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; }; then
16519 eval "$as_ac_var=yes"
16520 else
16521 echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16523
16524 eval "$as_ac_var=no"
16525 fi
16526 rm -f conftest.err conftest.$ac_objext \
16527 conftest$ac_exeext conftest.$ac_ext
16528 fi
16529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16531 if test `eval echo '${'$as_ac_var'}'` = yes; then
16532 cat >>confdefs.h <<_ACEOF
16533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16534 _ACEOF
16535
16536 fi
16537 done
16538
16539
16540 for ac_func in ttrace
16541 do
16542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16543 echo "$as_me:$LINENO: checking for $ac_func" >&5
16544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16545 if eval "test \"\${$as_ac_var+set}\" = set"; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548 cat >conftest.$ac_ext <<_ACEOF
16549 /* confdefs.h. */
16550 _ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16556 #define $ac_func innocuous_$ac_func
16557
16558 /* System header to define __stub macros and hopefully few prototypes,
16559 which can conflict with char $ac_func (); below.
16560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16561 <limits.h> exists even on freestanding compilers. */
16562
16563 #ifdef __STDC__
16564 # include <limits.h>
16565 #else
16566 # include <assert.h>
16567 #endif
16568
16569 #undef $ac_func
16570
16571 /* Override any gcc2 internal prototype to avoid an error. */
16572 #ifdef __cplusplus
16573 extern "C"
16574 {
16575 #endif
16576 /* We use char because int might match the return type of a gcc2
16577 builtin and then its argument prototype would still apply. */
16578 char $ac_func ();
16579 /* The GNU C library defines this for functions which it implements
16580 to always fail with ENOSYS. Some functions are actually named
16581 something starting with __ and the normal name is an alias. */
16582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16583 choke me
16584 #else
16585 char (*f) () = $ac_func;
16586 #endif
16587 #ifdef __cplusplus
16588 }
16589 #endif
16590
16591 int
16592 main ()
16593 {
16594 return f != $ac_func;
16595 ;
16596 return 0;
16597 }
16598 _ACEOF
16599 rm -f conftest.$ac_objext conftest$ac_exeext
16600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16601 (eval $ac_link) 2>conftest.er1
16602 ac_status=$?
16603 grep -v '^ *+' conftest.er1 >conftest.err
16604 rm -f conftest.er1
16605 cat conftest.err >&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
16608 { ac_try='test -z "$ac_c_werror_flag"
16609 || test ! -s conftest.err'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; } &&
16615 { ac_try='test -s conftest$ac_exeext'
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; }; then
16621 eval "$as_ac_var=yes"
16622 else
16623 echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16625
16626 eval "$as_ac_var=no"
16627 fi
16628 rm -f conftest.err conftest.$ac_objext \
16629 conftest$ac_exeext conftest.$ac_ext
16630 fi
16631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16633 if test `eval echo '${'$as_ac_var'}'` = yes; then
16634 cat >>confdefs.h <<_ACEOF
16635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16636 _ACEOF
16637
16638 fi
16639 done
16640
16641
16642 for ac_func in wborder
16643 do
16644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16645 echo "$as_me:$LINENO: checking for $ac_func" >&5
16646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16647 if eval "test \"\${$as_ac_var+set}\" = set"; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650 cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h. */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16658 #define $ac_func innocuous_$ac_func
16659
16660 /* System header to define __stub macros and hopefully few prototypes,
16661 which can conflict with char $ac_func (); below.
16662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16663 <limits.h> exists even on freestanding compilers. */
16664
16665 #ifdef __STDC__
16666 # include <limits.h>
16667 #else
16668 # include <assert.h>
16669 #endif
16670
16671 #undef $ac_func
16672
16673 /* Override any gcc2 internal prototype to avoid an error. */
16674 #ifdef __cplusplus
16675 extern "C"
16676 {
16677 #endif
16678 /* We use char because int might match the return type of a gcc2
16679 builtin and then its argument prototype would still apply. */
16680 char $ac_func ();
16681 /* The GNU C library defines this for functions which it implements
16682 to always fail with ENOSYS. Some functions are actually named
16683 something starting with __ and the normal name is an alias. */
16684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16685 choke me
16686 #else
16687 char (*f) () = $ac_func;
16688 #endif
16689 #ifdef __cplusplus
16690 }
16691 #endif
16692
16693 int
16694 main ()
16695 {
16696 return f != $ac_func;
16697 ;
16698 return 0;
16699 }
16700 _ACEOF
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16703 (eval $ac_link) 2>conftest.er1
16704 ac_status=$?
16705 grep -v '^ *+' conftest.er1 >conftest.err
16706 rm -f conftest.er1
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
16710 { ac_try='test -z "$ac_c_werror_flag"
16711 || test ! -s conftest.err'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; } &&
16717 { ac_try='test -s conftest$ac_exeext'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 eval "$as_ac_var=yes"
16724 else
16725 echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16727
16728 eval "$as_ac_var=no"
16729 fi
16730 rm -f conftest.err conftest.$ac_objext \
16731 conftest$ac_exeext conftest.$ac_ext
16732 fi
16733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16735 if test `eval echo '${'$as_ac_var'}'` = yes; then
16736 cat >>confdefs.h <<_ACEOF
16737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16738 _ACEOF
16739
16740 fi
16741 done
16742
16743
16744 # Check the return and argument types of ptrace. No canned test for
16745 # this, so roll our own.
16746 gdb_ptrace_headers='
16747 #if HAVE_SYS_TYPES_H
16748 # include <sys/types.h>
16749 #endif
16750 #if HAVE_SYS_PTRACE_H
16751 # include <sys/ptrace.h>
16752 #endif
16753 #if HAVE_UNISTD_H
16754 # include <unistd.h>
16755 #endif
16756 '
16757 # There is no point in checking if we don't have a prototype.
16758 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16759 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16760 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16762 else
16763 cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h. */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 $gdb_ptrace_headers
16770
16771 int
16772 main ()
16773 {
16774 #ifndef ptrace
16775 char *p = (char *) ptrace;
16776 #endif
16777
16778 ;
16779 return 0;
16780 }
16781 _ACEOF
16782 rm -f conftest.$ac_objext
16783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16784 (eval $ac_compile) 2>conftest.er1
16785 ac_status=$?
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -z "$ac_c_werror_flag"
16792 || test ! -s conftest.err'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; } &&
16798 { ac_try='test -s conftest.$ac_objext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_cv_have_decl_ptrace=yes
16805 else
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16808
16809 ac_cv_have_decl_ptrace=no
16810 fi
16811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16812 fi
16813 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16814 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16815 if test $ac_cv_have_decl_ptrace = yes; then
16816
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_DECL_PTRACE 1
16819 _ACEOF
16820
16821
16822 else
16823 cat >>confdefs.h <<_ACEOF
16824 #define HAVE_DECL_PTRACE 0
16825 _ACEOF
16826
16827
16828 : ${gdb_cv_func_ptrace_ret='int'}
16829 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16830
16831 fi
16832
16833
16834 # Check return type.
16835 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16836 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16837 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839 else
16840 cat >conftest.$ac_ext <<_ACEOF
16841 /* confdefs.h. */
16842 _ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h. */
16846 $gdb_ptrace_headers
16847 int
16848 main ()
16849 {
16850 extern int ptrace ();
16851 ;
16852 return 0;
16853 }
16854 _ACEOF
16855 rm -f conftest.$ac_objext
16856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16857 (eval $ac_compile) 2>conftest.er1
16858 ac_status=$?
16859 grep -v '^ *+' conftest.er1 >conftest.err
16860 rm -f conftest.er1
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } &&
16864 { ac_try='test -z "$ac_c_werror_flag"
16865 || test ! -s conftest.err'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; } &&
16871 { ac_try='test -s conftest.$ac_objext'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
16877 gdb_cv_func_ptrace_ret='int'
16878 else
16879 echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16881
16882 gdb_cv_func_ptrace_ret='long'
16883 fi
16884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16885 fi
16886 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16887 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16888
16889 cat >>confdefs.h <<_ACEOF
16890 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16891 _ACEOF
16892
16893 # Check argument types.
16894 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16895 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16896 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16898 else
16899
16900 for gdb_arg1 in 'int' 'long'; do
16901 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16902 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16903 for gdb_arg4 in 'int' 'long'; do
16904 cat >conftest.$ac_ext <<_ACEOF
16905 /* confdefs.h. */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 $gdb_ptrace_headers
16911 int
16912 main ()
16913 {
16914
16915 extern $gdb_cv_func_ptrace_ret
16916 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16917
16918 ;
16919 return 0;
16920 }
16921 _ACEOF
16922 rm -f conftest.$ac_objext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16924 (eval $ac_compile) 2>conftest.er1
16925 ac_status=$?
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } &&
16931 { ac_try='test -z "$ac_c_werror_flag"
16932 || test ! -s conftest.err'
16933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16934 (eval $ac_try) 2>&5
16935 ac_status=$?
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; } &&
16938 { ac_try='test -s conftest.$ac_objext'
16939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940 (eval $ac_try) 2>&5
16941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; }; then
16944 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16945 break 4;
16946 else
16947 echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16949
16950 fi
16951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16952 for gdb_arg5 in 'int *' 'int' 'long'; do
16953 cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h. */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16959 $gdb_ptrace_headers
16960 int
16961 main ()
16962 {
16963
16964 extern $gdb_cv_func_ptrace_ret
16965 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16966
16967 ;
16968 return 0;
16969 }
16970 _ACEOF
16971 rm -f conftest.$ac_objext
16972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16973 (eval $ac_compile) 2>conftest.er1
16974 ac_status=$?
16975 grep -v '^ *+' conftest.er1 >conftest.err
16976 rm -f conftest.er1
16977 cat conftest.err >&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } &&
16980 { ac_try='test -z "$ac_c_werror_flag"
16981 || test ! -s conftest.err'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; } &&
16987 { ac_try='test -s conftest.$ac_objext'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
16993
16994 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16995 break 5;
16996 else
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000 fi
17001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17002 done
17003 done
17004 done
17005 done
17006 done
17007 # Provide a safe default value.
17008 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17009
17010 fi
17011 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
17012 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
17013 ac_save_IFS=$IFS; IFS=','
17014 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
17015 IFS=$ac_save_IFS
17016 shift
17017
17018 cat >>confdefs.h <<_ACEOF
17019 #define PTRACE_TYPE_ARG3 $3
17020 _ACEOF
17021
17022 if test -n "$5"; then
17023
17024 cat >>confdefs.h <<_ACEOF
17025 #define PTRACE_TYPE_ARG5 $5
17026 _ACEOF
17027
17028 fi
17029
17030 if test "$cross_compiling" = no; then
17031 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17032 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17033 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 else
17036 if test "$cross_compiling" = yes; then
17037 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17038 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17039 { (exit 1); exit 1; }; }
17040 else
17041 cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h. */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 #if HAVE_UNISTD_H
17048 # include <unistd.h>
17049 #endif
17050
17051 int
17052 main ()
17053 {
17054 /* If this system has a BSD-style setpgrp which takes arguments,
17055 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17056 exit successfully. */
17057 exit (setpgrp (1,1) == -1 ? 0 : 1);
17058 ;
17059 return 0;
17060 }
17061 _ACEOF
17062 rm -f conftest$ac_exeext
17063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17064 (eval $ac_link) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 ac_cv_func_setpgrp_void=no
17074 else
17075 echo "$as_me: program exited with status $ac_status" >&5
17076 echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17078
17079 ( exit $ac_status )
17080 ac_cv_func_setpgrp_void=yes
17081 fi
17082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17083 fi
17084 fi
17085 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17086 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17087 if test $ac_cv_func_setpgrp_void = yes; then
17088
17089 cat >>confdefs.h <<\_ACEOF
17090 #define SETPGRP_VOID 1
17091 _ACEOF
17092
17093 fi
17094
17095 else
17096 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17097 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17098 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17099 echo $ECHO_N "(cached) $ECHO_C" >&6
17100 else
17101 cat >conftest.$ac_ext <<_ACEOF
17102 /* confdefs.h. */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17107
17108 #include <unistd.h>
17109
17110 int
17111 main ()
17112 {
17113
17114 if (setpgrp(1,1) == -1)
17115 exit (0);
17116 else
17117 exit (1);
17118
17119 ;
17120 return 0;
17121 }
17122 _ACEOF
17123 rm -f conftest.$ac_objext
17124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17125 (eval $ac_compile) 2>conftest.er1
17126 ac_status=$?
17127 grep -v '^ *+' conftest.er1 >conftest.err
17128 rm -f conftest.er1
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } &&
17132 { ac_try='test -z "$ac_c_werror_flag"
17133 || test ! -s conftest.err'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try='test -s conftest.$ac_objext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 ac_cv_func_setpgrp_void=no
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17149
17150 ac_cv_func_setpgrp_void=yes
17151 fi
17152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17153 fi
17154 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17155 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17156 if test $ac_cv_func_setpgrp_void = yes; then
17157 cat >>confdefs.h <<\_ACEOF
17158 #define SETPGRP_VOID 1
17159 _ACEOF
17160
17161 fi
17162 fi
17163
17164 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
17165 # since sigsetjmp might only be defined as a macro.
17166 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17167 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
17168 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171 cat >conftest.$ac_ext <<_ACEOF
17172 /* confdefs.h. */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17177
17178 #include <setjmp.h>
17179
17180 int
17181 main ()
17182 {
17183 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
17184 ;
17185 return 0;
17186 }
17187 _ACEOF
17188 rm -f conftest.$ac_objext
17189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17190 (eval $ac_compile) 2>conftest.er1
17191 ac_status=$?
17192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -z "$ac_c_werror_flag"
17198 || test ! -s conftest.err'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest.$ac_objext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 gdb_cv_func_sigsetjmp=yes
17211 else
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17214
17215 gdb_cv_func_sigsetjmp=no
17216 fi
17217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17218 fi
17219 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
17220 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
17221 if test $gdb_cv_func_sigsetjmp = yes; then
17222
17223 cat >>confdefs.h <<\_ACEOF
17224 #define HAVE_SIGSETJMP 1
17225 _ACEOF
17226
17227 fi
17228
17229 # Assume we'll default to using the included libiberty regex.
17230 gdb_use_included_regex=yes
17231
17232 # However, if the system regex is GNU regex, then default to *not*
17233 # using the included regex.
17234 echo "$as_me:$LINENO: checking for GNU regex" >&5
17235 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
17236 if test "${gdb_cv_have_gnu_regex+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 else
17239 cat >conftest.$ac_ext <<_ACEOF
17240 /* confdefs.h. */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17245 #include <gnu-versions.h>
17246 int
17247 main ()
17248 {
17249 #define REGEX_INTERFACE_VERSION 1
17250 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
17251 # error "Version mismatch"
17252 #endif
17253 ;
17254 return 0;
17255 }
17256 _ACEOF
17257 rm -f conftest.$ac_objext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17259 (eval $ac_compile) 2>conftest.er1
17260 ac_status=$?
17261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -z "$ac_c_werror_flag"
17267 || test ! -s conftest.err'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } &&
17273 { ac_try='test -s conftest.$ac_objext'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
17279 gdb_cv_have_gnu_regex=yes
17280 else
17281 echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17283
17284 gdb_cv_have_gnu_regex=no
17285 fi
17286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17287 fi
17288 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
17289 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
17290 if test $gdb_cv_have_gnu_regex = yes; then
17291 gdb_use_included_regex=no
17292 fi
17293
17294
17295 # Check whether --with-included-regex or --without-included-regex was given.
17296 if test "${with_included_regex+set}" = set; then
17297 withval="$with_included_regex"
17298 gdb_with_regex=$withval
17299 else
17300 gdb_with_regex=$gdb_use_included_regex
17301 fi;
17302 if test "$gdb_with_regex" = yes; then
17303
17304 cat >>confdefs.h <<\_ACEOF
17305 #define USE_INCLUDED_REGEX 1
17306 _ACEOF
17307
17308 fi
17309
17310 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
17311 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
17312 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
17313 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17315 else
17316 cat >conftest.$ac_ext <<_ACEOF
17317 /* confdefs.h. */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17322 #include <sys/param.h>
17323 #include <sys/proc.h>
17324
17325
17326 int
17327 main ()
17328 {
17329 static struct thread ac_aggr;
17330 if (ac_aggr.td_pcb)
17331 return 0;
17332 ;
17333 return 0;
17334 }
17335 _ACEOF
17336 rm -f conftest.$ac_objext
17337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17338 (eval $ac_compile) 2>conftest.er1
17339 ac_status=$?
17340 grep -v '^ *+' conftest.er1 >conftest.err
17341 rm -f conftest.er1
17342 cat conftest.err >&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); } &&
17345 { ac_try='test -z "$ac_c_werror_flag"
17346 || test ! -s conftest.err'
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17349 ac_status=$?
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; } &&
17352 { ac_try='test -s conftest.$ac_objext'
17353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354 (eval $ac_try) 2>&5
17355 ac_status=$?
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; }; then
17358 ac_cv_member_struct_thread_td_pcb=yes
17359 else
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17362
17363 cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h. */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 #include <sys/param.h>
17370 #include <sys/proc.h>
17371
17372
17373 int
17374 main ()
17375 {
17376 static struct thread ac_aggr;
17377 if (sizeof ac_aggr.td_pcb)
17378 return 0;
17379 ;
17380 return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17385 (eval $ac_compile) 2>conftest.er1
17386 ac_status=$?
17387 grep -v '^ *+' conftest.er1 >conftest.err
17388 rm -f conftest.er1
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } &&
17392 { ac_try='test -z "$ac_c_werror_flag"
17393 || test ! -s conftest.err'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try='test -s conftest.$ac_objext'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; }; then
17405 ac_cv_member_struct_thread_td_pcb=yes
17406 else
17407 echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17409
17410 ac_cv_member_struct_thread_td_pcb=no
17411 fi
17412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17413 fi
17414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17415 fi
17416 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
17417 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
17418 if test $ac_cv_member_struct_thread_td_pcb = yes; then
17419
17420 cat >>confdefs.h <<_ACEOF
17421 #define HAVE_STRUCT_THREAD_TD_PCB 1
17422 _ACEOF
17423
17424
17425 fi
17426
17427
17428 # See if <sys/lwp.h> defines `struct lwp`.
17429 echo "$as_me:$LINENO: checking for struct lwp" >&5
17430 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
17431 if test "${gdb_cv_struct_lwp+set}" = set; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 else
17434 cat >conftest.$ac_ext <<_ACEOF
17435 /* confdefs.h. */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17440 #include <sys/param.h>
17441 #include <sys/lwp.h>
17442 int
17443 main ()
17444 {
17445 struct lwp l;
17446 ;
17447 return 0;
17448 }
17449 _ACEOF
17450 rm -f conftest.$ac_objext
17451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17452 (eval $ac_compile) 2>conftest.er1
17453 ac_status=$?
17454 grep -v '^ *+' conftest.er1 >conftest.err
17455 rm -f conftest.er1
17456 cat conftest.err >&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } &&
17459 { ac_try='test -z "$ac_c_werror_flag"
17460 || test ! -s conftest.err'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; } &&
17466 { ac_try='test -s conftest.$ac_objext'
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 gdb_cv_struct_lwp=yes
17473 else
17474 echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17476
17477 gdb_cv_struct_lwp=no
17478 fi
17479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17480 fi
17481 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
17482 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
17483 if test $gdb_cv_struct_lwp = yes; then
17484
17485 cat >>confdefs.h <<\_ACEOF
17486 #define HAVE_STRUCT_LWP 1
17487 _ACEOF
17488
17489 fi
17490
17491 # See if <machine/reg.h> degines `struct reg'.
17492 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
17493 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
17494 if test "${gdb_cv_struct_reg+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17496 else
17497 cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h. */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 #include <sys/types.h>
17504 #include <machine/reg.h>
17505 int
17506 main ()
17507 {
17508 struct reg r;
17509 ;
17510 return 0;
17511 }
17512 _ACEOF
17513 rm -f conftest.$ac_objext
17514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17515 (eval $ac_compile) 2>conftest.er1
17516 ac_status=$?
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
17522 { ac_try='test -z "$ac_c_werror_flag"
17523 || test ! -s conftest.err'
17524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17525 (eval $ac_try) 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; } &&
17529 { ac_try='test -s conftest.$ac_objext'
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17532 ac_status=$?
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; }; then
17535 gdb_cv_struct_reg=yes
17536 else
17537 echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17539
17540 gdb_cv_struct_reg=no
17541 fi
17542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17543 fi
17544 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
17545 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
17546 if test $gdb_cv_struct_reg = yes; then
17547
17548 cat >>confdefs.h <<\_ACEOF
17549 #define HAVE_STRUCT_REG 1
17550 _ACEOF
17551
17552 fi
17553
17554 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
17555 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
17556 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
17557 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
17558 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561 cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h. */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17567 #include <machine/reg.h>
17568
17569 int
17570 main ()
17571 {
17572 static struct reg ac_aggr;
17573 if (ac_aggr.r_fs)
17574 return 0;
17575 ;
17576 return 0;
17577 }
17578 _ACEOF
17579 rm -f conftest.$ac_objext
17580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17581 (eval $ac_compile) 2>conftest.er1
17582 ac_status=$?
17583 grep -v '^ *+' conftest.er1 >conftest.err
17584 rm -f conftest.er1
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try='test -z "$ac_c_werror_flag"
17589 || test ! -s conftest.err'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; } &&
17595 { ac_try='test -s conftest.$ac_objext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_member_struct_reg_r_fs=yes
17602 else
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 cat >conftest.$ac_ext <<_ACEOF
17607 /* confdefs.h. */
17608 _ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h. */
17612 #include <machine/reg.h>
17613
17614 int
17615 main ()
17616 {
17617 static struct reg ac_aggr;
17618 if (sizeof ac_aggr.r_fs)
17619 return 0;
17620 ;
17621 return 0;
17622 }
17623 _ACEOF
17624 rm -f conftest.$ac_objext
17625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17626 (eval $ac_compile) 2>conftest.er1
17627 ac_status=$?
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
17633 { ac_try='test -z "$ac_c_werror_flag"
17634 || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest.$ac_objext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_member_struct_reg_r_fs=yes
17647 else
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651 ac_cv_member_struct_reg_r_fs=no
17652 fi
17653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17654 fi
17655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17656 fi
17657 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17658 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17659 if test $ac_cv_member_struct_reg_r_fs = yes; then
17660
17661 cat >>confdefs.h <<_ACEOF
17662 #define HAVE_STRUCT_REG_R_FS 1
17663 _ACEOF
17664
17665
17666 fi
17667 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17668 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17669 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17671 else
17672 cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h. */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17678 #include <machine/reg.h>
17679
17680 int
17681 main ()
17682 {
17683 static struct reg ac_aggr;
17684 if (ac_aggr.r_gs)
17685 return 0;
17686 ;
17687 return 0;
17688 }
17689 _ACEOF
17690 rm -f conftest.$ac_objext
17691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17692 (eval $ac_compile) 2>conftest.er1
17693 ac_status=$?
17694 grep -v '^ *+' conftest.er1 >conftest.err
17695 rm -f conftest.er1
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try='test -z "$ac_c_werror_flag"
17700 || test ! -s conftest.err'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest.$ac_objext'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 ac_cv_member_struct_reg_r_gs=yes
17713 else
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17716
17717 cat >conftest.$ac_ext <<_ACEOF
17718 /* confdefs.h. */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17723 #include <machine/reg.h>
17724
17725 int
17726 main ()
17727 {
17728 static struct reg ac_aggr;
17729 if (sizeof ac_aggr.r_gs)
17730 return 0;
17731 ;
17732 return 0;
17733 }
17734 _ACEOF
17735 rm -f conftest.$ac_objext
17736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17737 (eval $ac_compile) 2>conftest.er1
17738 ac_status=$?
17739 grep -v '^ *+' conftest.er1 >conftest.err
17740 rm -f conftest.er1
17741 cat conftest.err >&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
17744 { ac_try='test -z "$ac_c_werror_flag"
17745 || test ! -s conftest.err'
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; } &&
17751 { ac_try='test -s conftest.$ac_objext'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 ac_cv_member_struct_reg_r_gs=yes
17758 else
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17761
17762 ac_cv_member_struct_reg_r_gs=no
17763 fi
17764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17765 fi
17766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17767 fi
17768 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17769 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17770 if test $ac_cv_member_struct_reg_r_gs = yes; then
17771
17772 cat >>confdefs.h <<_ACEOF
17773 #define HAVE_STRUCT_REG_R_GS 1
17774 _ACEOF
17775
17776
17777 fi
17778
17779
17780 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17781 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17782 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17783 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786 cat >conftest.$ac_ext <<_ACEOF
17787 /* confdefs.h. */
17788 _ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h. */
17792 #include <sys/ptrace.h>
17793 int
17794 main ()
17795 {
17796 PTRACE_GETREGS;
17797 ;
17798 return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17803 (eval $ac_compile) 2>conftest.er1
17804 ac_status=$?
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
17810 { ac_try='test -z "$ac_c_werror_flag"
17811 || test ! -s conftest.err'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest.$ac_objext'
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823 gdb_cv_have_ptrace_getregs=yes
17824 else
17825 echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17827
17828 gdb_cv_have_ptrace_getregs=no
17829 fi
17830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17831 fi
17832
17833 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17834 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17835 if test $gdb_cv_have_ptrace_getregs = yes; then
17836
17837 cat >>confdefs.h <<\_ACEOF
17838 #define HAVE_PTRACE_GETREGS 1
17839 _ACEOF
17840
17841 fi
17842
17843 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17844 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17845 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17846 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17848 else
17849 cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h. */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 #include <sys/ptrace.h>
17856 int
17857 main ()
17858 {
17859 PTRACE_GETFPXREGS;
17860 ;
17861 return 0;
17862 }
17863 _ACEOF
17864 rm -f conftest.$ac_objext
17865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17866 (eval $ac_compile) 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } &&
17873 { ac_try='test -z "$ac_c_werror_flag"
17874 || test ! -s conftest.err'
17875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17877 ac_status=$?
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; } &&
17880 { ac_try='test -s conftest.$ac_objext'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; }; then
17886 gdb_cv_have_ptrace_getfpxregs=yes
17887 else
17888 echo "$as_me: failed program was:" >&5
17889 sed 's/^/| /' conftest.$ac_ext >&5
17890
17891 gdb_cv_have_ptrace_getfpxregs=no
17892 fi
17893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17894 fi
17895
17896 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17897 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17898 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17899
17900 cat >>confdefs.h <<\_ACEOF
17901 #define HAVE_PTRACE_GETFPXREGS 1
17902 _ACEOF
17903
17904 fi
17905
17906 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17907 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17908 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17909 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 else
17912 cat >conftest.$ac_ext <<_ACEOF
17913 /* confdefs.h. */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17918 #include <sys/types.h>
17919 #include <sys/ptrace.h>
17920 int
17921 main ()
17922 {
17923 PT_GETDBREGS;
17924 ;
17925 return 0;
17926 }
17927 _ACEOF
17928 rm -f conftest.$ac_objext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17930 (eval $ac_compile) 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try='test -z "$ac_c_werror_flag"
17938 || test ! -s conftest.err'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest.$ac_objext'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 gdb_cv_have_pt_getdbregs=yes
17951 else
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17954
17955 gdb_cv_have_pt_getdbregs=no
17956 fi
17957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17958 fi
17959
17960 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17961 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17962 if test $gdb_cv_have_pt_getdbregs = yes; then
17963
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_PT_GETDBREGS 1
17966 _ACEOF
17967
17968 fi
17969
17970 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17971 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17972 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17973 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 else
17976 cat >conftest.$ac_ext <<_ACEOF
17977 /* confdefs.h. */
17978 _ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h. */
17982 #include <sys/types.h>
17983 #include <sys/ptrace.h>
17984 int
17985 main ()
17986 {
17987 PT_GETXMMREGS;
17988 ;
17989 return 0;
17990 }
17991 _ACEOF
17992 rm -f conftest.$ac_objext
17993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17994 (eval $ac_compile) 2>conftest.er1
17995 ac_status=$?
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag"
18002 || test ! -s conftest.err'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; } &&
18008 { ac_try='test -s conftest.$ac_objext'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 gdb_cv_have_pt_getxmmregs=yes
18015 else
18016 echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019 gdb_cv_have_pt_getxmmregs=no
18020 fi
18021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18022 fi
18023
18024 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
18025 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
18026 if test $gdb_cv_have_pt_getxmmregs = yes; then
18027
18028 cat >>confdefs.h <<\_ACEOF
18029 #define HAVE_PT_GETXMMREGS 1
18030 _ACEOF
18031
18032 fi
18033
18034 # If we are configured native on GNU/Linux, work around problems with
18035 # sys/procfs.h
18036 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
18037
18038 if test "${target}" = "${host}"; then
18039 case "${host}" in
18040 i[3456]86-*-linux*)
18041
18042 cat >>confdefs.h <<\_ACEOF
18043 #define START_INFERIOR_TRAPS_EXPECTED 2
18044 _ACEOF
18045
18046
18047 cat >>confdefs.h <<\_ACEOF
18048 #define sys_quotactl 1
18049 _ACEOF
18050
18051 ;;
18052 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
18053
18054 cat >>confdefs.h <<\_ACEOF
18055 #define NEW_PROC_API 1
18056 _ACEOF
18057
18058 ;;
18059 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
18060
18061 cat >>confdefs.h <<\_ACEOF
18062 #define NEW_PROC_API 1
18063 _ACEOF
18064
18065 ;;
18066 mips-sgi-irix5*)
18067 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
18068
18069 cat >>confdefs.h <<\_ACEOF
18070 #define _KMEMUSER 1
18071 _ACEOF
18072
18073 ;;
18074 esac
18075 fi
18076
18077 if test "$ac_cv_header_sys_procfs_h" = yes; then
18078 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18079 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18080 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18082 else
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h. */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089
18090 #define _SYSCALL32
18091 #include <sys/procfs.h>
18092 int
18093 main ()
18094 {
18095 pstatus_t avar
18096 ;
18097 return 0;
18098 }
18099 _ACEOF
18100 rm -f conftest.$ac_objext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18102 (eval $ac_compile) 2>conftest.er1
18103 ac_status=$?
18104 grep -v '^ *+' conftest.er1 >conftest.err
18105 rm -f conftest.er1
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } &&
18109 { ac_try='test -z "$ac_c_werror_flag"
18110 || test ! -s conftest.err'
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; } &&
18116 { ac_try='test -s conftest.$ac_objext'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18123 else
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 bfd_cv_have_sys_procfs_type_pstatus_t=no
18128
18129 fi
18130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18131 fi
18132
18133 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18134
18135 cat >>confdefs.h <<\_ACEOF
18136 #define HAVE_PSTATUS_T 1
18137 _ACEOF
18138
18139 fi
18140 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18141 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18142
18143 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
18144 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
18145 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148 cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h. */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154
18155 #define _SYSCALL32
18156 #include <sys/procfs.h>
18157 int
18158 main ()
18159 {
18160 prrun_t avar
18161 ;
18162 return 0;
18163 }
18164 _ACEOF
18165 rm -f conftest.$ac_objext
18166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18167 (eval $ac_compile) 2>conftest.er1
18168 ac_status=$?
18169 grep -v '^ *+' conftest.er1 >conftest.err
18170 rm -f conftest.er1
18171 cat conftest.err >&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); } &&
18174 { ac_try='test -z "$ac_c_werror_flag"
18175 || test ! -s conftest.err'
18176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18177 (eval $ac_try) 2>&5
18178 ac_status=$?
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; } &&
18181 { ac_try='test -s conftest.$ac_objext'
18182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18183 (eval $ac_try) 2>&5
18184 ac_status=$?
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); }; }; then
18187 bfd_cv_have_sys_procfs_type_prrun_t=yes
18188 else
18189 echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18191
18192 bfd_cv_have_sys_procfs_type_prrun_t=no
18193
18194 fi
18195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18196 fi
18197
18198 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
18199
18200 cat >>confdefs.h <<\_ACEOF
18201 #define HAVE_PRRUN_T 1
18202 _ACEOF
18203
18204 fi
18205 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
18206 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
18207
18208 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
18209 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
18210 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
18211 echo $ECHO_N "(cached) $ECHO_C" >&6
18212 else
18213 cat >conftest.$ac_ext <<_ACEOF
18214 /* confdefs.h. */
18215 _ACEOF
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h. */
18219
18220 #define _SYSCALL32
18221 #include <sys/procfs.h>
18222 int
18223 main ()
18224 {
18225 gregset_t avar
18226 ;
18227 return 0;
18228 }
18229 _ACEOF
18230 rm -f conftest.$ac_objext
18231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18232 (eval $ac_compile) 2>conftest.er1
18233 ac_status=$?
18234 grep -v '^ *+' conftest.er1 >conftest.err
18235 rm -f conftest.er1
18236 cat conftest.err >&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); } &&
18239 { ac_try='test -z "$ac_c_werror_flag"
18240 || test ! -s conftest.err'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try='test -s conftest.$ac_objext'
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; }; then
18252 bfd_cv_have_sys_procfs_type_gregset_t=yes
18253 else
18254 echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18256
18257 bfd_cv_have_sys_procfs_type_gregset_t=no
18258
18259 fi
18260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18261 fi
18262
18263 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
18264
18265 cat >>confdefs.h <<\_ACEOF
18266 #define HAVE_GREGSET_T 1
18267 _ACEOF
18268
18269 fi
18270 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
18271 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
18272
18273 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
18274 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
18275 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18277 else
18278 cat >conftest.$ac_ext <<_ACEOF
18279 /* confdefs.h. */
18280 _ACEOF
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h. */
18284
18285 #define _SYSCALL32
18286 #include <sys/procfs.h>
18287 int
18288 main ()
18289 {
18290 fpregset_t avar
18291 ;
18292 return 0;
18293 }
18294 _ACEOF
18295 rm -f conftest.$ac_objext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18297 (eval $ac_compile) 2>conftest.er1
18298 ac_status=$?
18299 grep -v '^ *+' conftest.er1 >conftest.err
18300 rm -f conftest.er1
18301 cat conftest.err >&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } &&
18304 { ac_try='test -z "$ac_c_werror_flag"
18305 || test ! -s conftest.err'
18306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307 (eval $ac_try) 2>&5
18308 ac_status=$?
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; } &&
18311 { ac_try='test -s conftest.$ac_objext'
18312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313 (eval $ac_try) 2>&5
18314 ac_status=$?
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; }; then
18317 bfd_cv_have_sys_procfs_type_fpregset_t=yes
18318 else
18319 echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18321
18322 bfd_cv_have_sys_procfs_type_fpregset_t=no
18323
18324 fi
18325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18326 fi
18327
18328 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
18329
18330 cat >>confdefs.h <<\_ACEOF
18331 #define HAVE_FPREGSET_T 1
18332 _ACEOF
18333
18334 fi
18335 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18336 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
18337
18338 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18339 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18340 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18343 cat >conftest.$ac_ext <<_ACEOF
18344 /* confdefs.h. */
18345 _ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h. */
18349
18350 #define _SYSCALL32
18351 #include <sys/procfs.h>
18352 int
18353 main ()
18354 {
18355 prgregset_t avar
18356 ;
18357 return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest.$ac_objext
18361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18362 (eval $ac_compile) 2>conftest.er1
18363 ac_status=$?
18364 grep -v '^ *+' conftest.er1 >conftest.err
18365 rm -f conftest.er1
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
18369 { ac_try='test -z "$ac_c_werror_flag"
18370 || test ! -s conftest.err'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest.$ac_objext'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 bfd_cv_have_sys_procfs_type_prgregset_t=yes
18383 else
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18386
18387 bfd_cv_have_sys_procfs_type_prgregset_t=no
18388
18389 fi
18390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18391 fi
18392
18393 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
18394
18395 cat >>confdefs.h <<\_ACEOF
18396 #define HAVE_PRGREGSET_T 1
18397 _ACEOF
18398
18399 fi
18400 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18401 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
18402
18403 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18404 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18405 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18406 echo $ECHO_N "(cached) $ECHO_C" >&6
18407 else
18408 cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h. */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414
18415 #define _SYSCALL32
18416 #include <sys/procfs.h>
18417 int
18418 main ()
18419 {
18420 prfpregset_t avar
18421 ;
18422 return 0;
18423 }
18424 _ACEOF
18425 rm -f conftest.$ac_objext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18427 (eval $ac_compile) 2>conftest.er1
18428 ac_status=$?
18429 grep -v '^ *+' conftest.er1 >conftest.err
18430 rm -f conftest.er1
18431 cat conftest.err >&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
18434 { ac_try='test -z "$ac_c_werror_flag"
18435 || test ! -s conftest.err'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest.$ac_objext'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
18448 else
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18451
18452 bfd_cv_have_sys_procfs_type_prfpregset_t=no
18453
18454 fi
18455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18456 fi
18457
18458 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18459
18460 cat >>confdefs.h <<\_ACEOF
18461 #define HAVE_PRFPREGSET_T 1
18462 _ACEOF
18463
18464 fi
18465 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18466 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
18467
18468 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18469 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18470 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18472 else
18473 cat >conftest.$ac_ext <<_ACEOF
18474 /* confdefs.h. */
18475 _ACEOF
18476 cat confdefs.h >>conftest.$ac_ext
18477 cat >>conftest.$ac_ext <<_ACEOF
18478 /* end confdefs.h. */
18479
18480 #define _SYSCALL32
18481 #include <sys/procfs.h>
18482 int
18483 main ()
18484 {
18485 prgregset32_t avar
18486 ;
18487 return 0;
18488 }
18489 _ACEOF
18490 rm -f conftest.$ac_objext
18491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18492 (eval $ac_compile) 2>conftest.er1
18493 ac_status=$?
18494 grep -v '^ *+' conftest.er1 >conftest.err
18495 rm -f conftest.er1
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -z "$ac_c_werror_flag"
18500 || test ! -s conftest.err'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest.$ac_objext'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18512 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
18513 else
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18516
18517 bfd_cv_have_sys_procfs_type_prgregset32_t=no
18518
18519 fi
18520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18521 fi
18522
18523 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
18524
18525 cat >>confdefs.h <<\_ACEOF
18526 #define HAVE_PRGREGSET32_T 1
18527 _ACEOF
18528
18529 fi
18530 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18531 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
18532
18533 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18534 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18535 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18537 else
18538 cat >conftest.$ac_ext <<_ACEOF
18539 /* confdefs.h. */
18540 _ACEOF
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h. */
18544
18545 #define _SYSCALL32
18546 #include <sys/procfs.h>
18547 int
18548 main ()
18549 {
18550 prfpregset32_t avar
18551 ;
18552 return 0;
18553 }
18554 _ACEOF
18555 rm -f conftest.$ac_objext
18556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18557 (eval $ac_compile) 2>conftest.er1
18558 ac_status=$?
18559 grep -v '^ *+' conftest.er1 >conftest.err
18560 rm -f conftest.er1
18561 cat conftest.err >&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); } &&
18564 { ac_try='test -z "$ac_c_werror_flag"
18565 || test ! -s conftest.err'
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest.$ac_objext'
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
18577 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
18578 else
18579 echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18581
18582 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18583
18584 fi
18585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18586 fi
18587
18588 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
18589
18590 cat >>confdefs.h <<\_ACEOF
18591 #define HAVE_PRFPREGSET32_T 1
18592 _ACEOF
18593
18594 fi
18595 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18596 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18597
18598 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18599 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18600 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 else
18603 cat >conftest.$ac_ext <<_ACEOF
18604 /* confdefs.h. */
18605 _ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18609
18610 #define _SYSCALL32
18611 #include <sys/procfs.h>
18612 int
18613 main ()
18614 {
18615 lwpid_t avar
18616 ;
18617 return 0;
18618 }
18619 _ACEOF
18620 rm -f conftest.$ac_objext
18621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18622 (eval $ac_compile) 2>conftest.er1
18623 ac_status=$?
18624 grep -v '^ *+' conftest.er1 >conftest.err
18625 rm -f conftest.er1
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } &&
18629 { ac_try='test -z "$ac_c_werror_flag"
18630 || test ! -s conftest.err'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest.$ac_objext'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 bfd_cv_have_sys_procfs_type_lwpid_t=yes
18643 else
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18646
18647 bfd_cv_have_sys_procfs_type_lwpid_t=no
18648
18649 fi
18650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18651 fi
18652
18653 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18654
18655 cat >>confdefs.h <<\_ACEOF
18656 #define HAVE_LWPID_T 1
18657 _ACEOF
18658
18659 fi
18660 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18661 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18662
18663 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18664 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18665 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18667 else
18668 cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h. */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18674
18675 #define _SYSCALL32
18676 #include <sys/procfs.h>
18677 int
18678 main ()
18679 {
18680 psaddr_t avar
18681 ;
18682 return 0;
18683 }
18684 _ACEOF
18685 rm -f conftest.$ac_objext
18686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18687 (eval $ac_compile) 2>conftest.er1
18688 ac_status=$?
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try='test -z "$ac_c_werror_flag"
18695 || test ! -s conftest.err'
18696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697 (eval $ac_try) 2>&5
18698 ac_status=$?
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; } &&
18701 { ac_try='test -s conftest.$ac_objext'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18708 else
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18711
18712 bfd_cv_have_sys_procfs_type_psaddr_t=no
18713
18714 fi
18715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18716 fi
18717
18718 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18719
18720 cat >>confdefs.h <<\_ACEOF
18721 #define HAVE_PSADDR_T 1
18722 _ACEOF
18723
18724 fi
18725 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18726 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18727
18728 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18729 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18730 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18732 else
18733 cat >conftest.$ac_ext <<_ACEOF
18734 /* confdefs.h. */
18735 _ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h. */
18739
18740 #define _SYSCALL32
18741 #include <sys/procfs.h>
18742 int
18743 main ()
18744 {
18745 prsysent_t avar
18746 ;
18747 return 0;
18748 }
18749 _ACEOF
18750 rm -f conftest.$ac_objext
18751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18752 (eval $ac_compile) 2>conftest.er1
18753 ac_status=$?
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_c_werror_flag"
18760 || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try='test -s conftest.$ac_objext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18773 else
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18776
18777 bfd_cv_have_sys_procfs_type_prsysent_t=no
18778
18779 fi
18780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18781 fi
18782
18783 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18784
18785 cat >>confdefs.h <<\_ACEOF
18786 #define HAVE_PRSYSENT_T 1
18787 _ACEOF
18788
18789 fi
18790 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18791 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18792
18793 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18794 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18795 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18797 else
18798 cat >conftest.$ac_ext <<_ACEOF
18799 /* confdefs.h. */
18800 _ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h. */
18804
18805 #define _SYSCALL32
18806 #include <sys/procfs.h>
18807 int
18808 main ()
18809 {
18810 pr_sigset_t avar
18811 ;
18812 return 0;
18813 }
18814 _ACEOF
18815 rm -f conftest.$ac_objext
18816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18817 (eval $ac_compile) 2>conftest.er1
18818 ac_status=$?
18819 grep -v '^ *+' conftest.er1 >conftest.err
18820 rm -f conftest.er1
18821 cat conftest.err >&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } &&
18824 { ac_try='test -z "$ac_c_werror_flag"
18825 || test ! -s conftest.err'
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18828 ac_status=$?
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; } &&
18831 { ac_try='test -s conftest.$ac_objext'
18832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833 (eval $ac_try) 2>&5
18834 ac_status=$?
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; }; then
18837 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18838 else
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18841
18842 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18843
18844 fi
18845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18846 fi
18847
18848 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18849
18850 cat >>confdefs.h <<\_ACEOF
18851 #define HAVE_PR_SIGSET_T 1
18852 _ACEOF
18853
18854 fi
18855 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18856 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18857
18858 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18859 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18860 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
18862 else
18863 cat >conftest.$ac_ext <<_ACEOF
18864 /* confdefs.h. */
18865 _ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h. */
18869
18870 #define _SYSCALL32
18871 #include <sys/procfs.h>
18872 int
18873 main ()
18874 {
18875 pr_sigaction64_t avar
18876 ;
18877 return 0;
18878 }
18879 _ACEOF
18880 rm -f conftest.$ac_objext
18881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18882 (eval $ac_compile) 2>conftest.er1
18883 ac_status=$?
18884 grep -v '^ *+' conftest.er1 >conftest.err
18885 rm -f conftest.er1
18886 cat conftest.err >&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } &&
18889 { ac_try='test -z "$ac_c_werror_flag"
18890 || test ! -s conftest.err'
18891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18892 (eval $ac_try) 2>&5
18893 ac_status=$?
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; } &&
18896 { ac_try='test -s conftest.$ac_objext'
18897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18899 ac_status=$?
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18902 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18903 else
18904 echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18906
18907 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18908
18909 fi
18910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18911 fi
18912
18913 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18914
18915 cat >>confdefs.h <<\_ACEOF
18916 #define HAVE_PR_SIGACTION64_T 1
18917 _ACEOF
18918
18919 fi
18920 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18921 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18922
18923 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18924 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18925 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18927 else
18928 cat >conftest.$ac_ext <<_ACEOF
18929 /* confdefs.h. */
18930 _ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18934
18935 #define _SYSCALL32
18936 #include <sys/procfs.h>
18937 int
18938 main ()
18939 {
18940 pr_siginfo64_t avar
18941 ;
18942 return 0;
18943 }
18944 _ACEOF
18945 rm -f conftest.$ac_objext
18946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18947 (eval $ac_compile) 2>conftest.er1
18948 ac_status=$?
18949 grep -v '^ *+' conftest.er1 >conftest.err
18950 rm -f conftest.er1
18951 cat conftest.err >&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
18954 { ac_try='test -z "$ac_c_werror_flag"
18955 || test ! -s conftest.err'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest.$ac_objext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18968 else
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18973
18974 fi
18975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18976 fi
18977
18978 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18979
18980 cat >>confdefs.h <<\_ACEOF
18981 #define HAVE_PR_SIGINFO64_T 1
18982 _ACEOF
18983
18984 fi
18985 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18986 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18987
18988
18989
18990
18991
18992 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18993 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18994 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18995 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998 if test "$cross_compiling" = yes; then
18999 gdb_cv_prfpregset_t_broken=yes
19000 else
19001 cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h. */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 #include <sys/procfs.h>
19008 int main ()
19009 {
19010 if (sizeof (prfpregset_t) == sizeof (void *))
19011 return 1;
19012 return 0;
19013 }
19014 _ACEOF
19015 rm -f conftest$ac_exeext
19016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19017 (eval $ac_link) 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19023 ac_status=$?
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026 gdb_cv_prfpregset_t_broken=no
19027 else
19028 echo "$as_me: program exited with status $ac_status" >&5
19029 echo "$as_me: failed program was:" >&5
19030 sed 's/^/| /' conftest.$ac_ext >&5
19031
19032 ( exit $ac_status )
19033 gdb_cv_prfpregset_t_broken=yes
19034 fi
19035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19036 fi
19037 fi
19038
19039 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
19040 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
19041 if test $gdb_cv_prfpregset_t_broken = yes; then
19042
19043 cat >>confdefs.h <<\_ACEOF
19044 #define PRFPREGSET_T_BROKEN 1
19045 _ACEOF
19046
19047 fi
19048 fi
19049
19050
19051 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
19052 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
19053 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19055 else
19056 cat >conftest.$ac_ext <<_ACEOF
19057 /* confdefs.h. */
19058 _ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19062 #include <unistd.h>
19063 #include <sys/types.h>
19064 #include <sys/procfs.h>
19065
19066 int
19067 main ()
19068 {
19069
19070 int dummy;;
19071 dummy = ioctl(0, PIOCSET, &dummy);
19072
19073 ;
19074 return 0;
19075 }
19076 _ACEOF
19077 rm -f conftest.$ac_objext
19078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19079 (eval $ac_compile) 2>conftest.er1
19080 ac_status=$?
19081 grep -v '^ *+' conftest.er1 >conftest.err
19082 rm -f conftest.er1
19083 cat conftest.err >&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } &&
19086 { ac_try='test -z "$ac_c_werror_flag"
19087 || test ! -s conftest.err'
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; } &&
19093 { ac_try='test -s conftest.$ac_objext'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 gdb_cv_have_procfs_piocset=yes
19100 else
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104 gdb_cv_have_procfs_piocset=no
19105 fi
19106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19107 fi
19108
19109 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
19110 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
19111 if test $gdb_cv_have_procfs_piocset = yes; then
19112
19113 cat >>confdefs.h <<\_ACEOF
19114 #define HAVE_PROCFS_PIOCSET 1
19115 _ACEOF
19116
19117 fi
19118 fi
19119
19120 if test ${host} = ${target} ; then
19121
19122 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
19123 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
19124 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
19125 echo $ECHO_N "(cached) $ECHO_C" >&6
19126 else
19127 cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h. */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19133 #include <link.h>
19134 int
19135 main ()
19136 {
19137 struct link_map lm; (void) lm.l_addr;
19138 ;
19139 return 0;
19140 }
19141 _ACEOF
19142 rm -f conftest.$ac_objext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19144 (eval $ac_compile) 2>conftest.er1
19145 ac_status=$?
19146 grep -v '^ *+' conftest.er1 >conftest.err
19147 rm -f conftest.er1
19148 cat conftest.err >&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } &&
19151 { ac_try='test -z "$ac_c_werror_flag"
19152 || test ! -s conftest.err'
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; } &&
19158 { ac_try='test -s conftest.$ac_objext'
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; }; then
19164 gdb_cv_have_struct_link_map_with_l_members=yes
19165 else
19166 echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19168
19169 gdb_cv_have_struct_link_map_with_l_members=no
19170 fi
19171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19172 fi
19173
19174 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19175 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
19176 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
19177
19178 cat >>confdefs.h <<\_ACEOF
19179 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
19180 _ACEOF
19181
19182 fi
19183
19184
19185 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
19186 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
19187 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190 cat >conftest.$ac_ext <<_ACEOF
19191 /* confdefs.h. */
19192 _ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19196 #include <sys/types.h>
19197 #include <link.h>
19198 int
19199 main ()
19200 {
19201 struct link_map lm; (void) lm.lm_addr;
19202 ;
19203 return 0;
19204 }
19205 _ACEOF
19206 rm -f conftest.$ac_objext
19207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19208 (eval $ac_compile) 2>conftest.er1
19209 ac_status=$?
19210 grep -v '^ *+' conftest.er1 >conftest.err
19211 rm -f conftest.er1
19212 cat conftest.err >&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } &&
19215 { ac_try='test -z "$ac_c_werror_flag"
19216 || test ! -s conftest.err'
19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19219 ac_status=$?
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; } &&
19222 { ac_try='test -s conftest.$ac_objext'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; }; then
19228 gdb_cv_have_struct_link_map_with_lm_members=yes
19229 else
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19232
19233 gdb_cv_have_struct_link_map_with_lm_members=no
19234 fi
19235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19236 fi
19237
19238 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
19239 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
19240 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
19241
19242 cat >>confdefs.h <<\_ACEOF
19243 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
19244 _ACEOF
19245
19246 fi
19247
19248
19249 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
19250 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
19251 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254 cat >conftest.$ac_ext <<_ACEOF
19255 /* confdefs.h. */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19260 #include <sys/types.h>
19261 #ifdef HAVE_NLIST_H
19262 #include <nlist.h>
19263 #endif
19264 #include <link.h>
19265 int
19266 main ()
19267 {
19268 struct so_map lm; (void) lm.som_addr;
19269 ;
19270 return 0;
19271 }
19272 _ACEOF
19273 rm -f conftest.$ac_objext
19274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275 (eval $ac_compile) 2>conftest.er1
19276 ac_status=$?
19277 grep -v '^ *+' conftest.er1 >conftest.err
19278 rm -f conftest.er1
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -z "$ac_c_werror_flag"
19283 || test ! -s conftest.err'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 gdb_cv_have_struct_so_map_with_som_members=yes
19296 else
19297 echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19299
19300 gdb_cv_have_struct_so_map_with_som_members=no
19301 fi
19302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19303 fi
19304
19305 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19306 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
19307 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
19308
19309 cat >>confdefs.h <<\_ACEOF
19310 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
19311 _ACEOF
19312
19313 fi
19314
19315
19316 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19317 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19318 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
19320 else
19321 cat >conftest.$ac_ext <<_ACEOF
19322 /* confdefs.h. */
19323 _ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h. */
19327 #define _SYSCALL32
19328 #include <sys/link.h>
19329 int
19330 main ()
19331 {
19332 struct link_map32 l;
19333 ;
19334 return 0;
19335 }
19336 _ACEOF
19337 rm -f conftest.$ac_objext
19338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19339 (eval $ac_compile) 2>conftest.er1
19340 ac_status=$?
19341 grep -v '^ *+' conftest.er1 >conftest.err
19342 rm -f conftest.er1
19343 cat conftest.err >&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } &&
19346 { ac_try='test -z "$ac_c_werror_flag"
19347 || test ! -s conftest.err'
19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; } &&
19353 { ac_try='test -s conftest.$ac_objext'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; }; then
19359 gdb_cv_have_struct_link_map32=yes
19360 else
19361 echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19363
19364 gdb_cv_have_struct_link_map32=no
19365 fi
19366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19367 fi
19368
19369 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19370 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
19371 if test $gdb_cv_have_struct_link_map32 = yes; then
19372
19373 cat >>confdefs.h <<\_ACEOF
19374 #define HAVE_STRUCT_LINK_MAP32 1
19375 _ACEOF
19376
19377
19378 cat >>confdefs.h <<\_ACEOF
19379 #define _SYSCALL32 1
19380 _ACEOF
19381
19382 fi
19383 fi
19384
19385 # Check if the compiler supports the `long long' type.
19386
19387 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19388 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19389 if test "${gdb_cv_c_long_long+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19392 cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h. */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398 extern long long foo;
19399 int
19400 main ()
19401 {
19402 switch (foo & 2) { case 0: return 1; }
19403 ;
19404 return 0;
19405 }
19406 _ACEOF
19407 rm -f conftest.$ac_objext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19409 (eval $ac_compile) 2>conftest.er1
19410 ac_status=$?
19411 grep -v '^ *+' conftest.er1 >conftest.err
19412 rm -f conftest.er1
19413 cat conftest.err >&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } &&
19416 { ac_try='test -z "$ac_c_werror_flag"
19417 || test ! -s conftest.err'
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; } &&
19423 { ac_try='test -s conftest.$ac_objext'
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19426 ac_status=$?
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429 gdb_cv_c_long_long=yes
19430 else
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434 gdb_cv_c_long_long=no
19435 fi
19436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19437 fi
19438 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19439 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
19440 if test $gdb_cv_c_long_long = yes; then
19441
19442 cat >>confdefs.h <<\_ACEOF
19443 #define CC_HAS_LONG_LONG 1
19444 _ACEOF
19445
19446 fi
19447
19448 # Check if the compiler and runtime support printing long longs.
19449
19450 echo "$as_me:$LINENO: checking for long long support in printf" >&5
19451 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19452 if test "${gdb_cv_printf_has_long_long+set}" = set; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19454 else
19455 if test "$cross_compiling" = yes; then
19456 gdb_cv_printf_has_long_long=no
19457 else
19458 cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h. */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19464 $ac_includes_default
19465 int
19466 main ()
19467 {
19468 char buf[32];
19469 long long l = 0;
19470 l = (l << 16) + 0x0123;
19471 l = (l << 16) + 0x4567;
19472 l = (l << 16) + 0x89ab;
19473 l = (l << 16) + 0xcdef;
19474 sprintf (buf, "0x%016llx", l);
19475 return (strcmp ("0x0123456789abcdef", buf));
19476 ;
19477 return 0;
19478 }
19479 _ACEOF
19480 rm -f conftest$ac_exeext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19482 (eval $ac_link) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19488 ac_status=$?
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; }; then
19491 gdb_cv_printf_has_long_long=yes
19492 else
19493 echo "$as_me: program exited with status $ac_status" >&5
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497 ( exit $ac_status )
19498 gdb_cv_printf_has_long_long=no
19499 fi
19500 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19501 fi
19502 fi
19503 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19504 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
19505 if test $gdb_cv_printf_has_long_long = yes; then
19506
19507 cat >>confdefs.h <<\_ACEOF
19508 #define PRINTF_HAS_LONG_LONG 1
19509 _ACEOF
19510
19511 fi
19512
19513 # Check if the compiler supports the `long double' type. We can't use
19514 # AC_C_LONG_DOUBLE because that one does additional checks on the
19515 # constants defined in <float.h> that fail on some systems,
19516 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
19517
19518 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19519 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
19520 if test "${gdb_cv_c_long_double+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523 cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h. */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 long double foo;
19530 _ACEOF
19531 rm -f conftest.$ac_objext
19532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19533 (eval $ac_compile) 2>conftest.er1
19534 ac_status=$?
19535 grep -v '^ *+' conftest.er1 >conftest.err
19536 rm -f conftest.er1
19537 cat conftest.err >&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } &&
19540 { ac_try='test -z "$ac_c_werror_flag"
19541 || test ! -s conftest.err'
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; } &&
19547 { ac_try='test -s conftest.$ac_objext'
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19550 ac_status=$?
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; }; then
19553 gdb_cv_c_long_double=yes
19554 else
19555 echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19557
19558 gdb_cv_c_long_double=no
19559 fi
19560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19561 fi
19562 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19563 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19564 if test $gdb_cv_c_long_double = yes; then
19565
19566 cat >>confdefs.h <<\_ACEOF
19567 #define HAVE_LONG_DOUBLE 1
19568 _ACEOF
19569
19570 fi
19571
19572 # Check if the compiler and runtime support printing long doubles.
19573
19574 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19575 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19576 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 else
19579 if test "$cross_compiling" = yes; then
19580 gdb_cv_printf_has_long_double=no
19581 else
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h. */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588 $ac_includes_default
19589 int
19590 main ()
19591 {
19592 char buf[16];
19593 long double f = 3.141592653;
19594 sprintf (buf, "%Lg", f);
19595 return (strncmp ("3.14159", buf, 7));
19596 ;
19597 return 0;
19598 }
19599 _ACEOF
19600 rm -f conftest$ac_exeext
19601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19602 (eval $ac_link) 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607 (eval $ac_try) 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; }; then
19611 gdb_cv_printf_has_long_double=yes
19612 else
19613 echo "$as_me: program exited with status $ac_status" >&5
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617 ( exit $ac_status )
19618 gdb_cv_printf_has_long_double=no
19619 fi
19620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19621 fi
19622 fi
19623 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19624 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19625 if test $gdb_cv_printf_has_long_double = yes; then
19626
19627 cat >>confdefs.h <<\_ACEOF
19628 #define PRINTF_HAS_LONG_DOUBLE 1
19629 _ACEOF
19630
19631 fi
19632
19633 # Check if the compiler and runtime support scanning long doubles.
19634
19635 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19636 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19637 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19639 else
19640 if test "$cross_compiling" = yes; then
19641 gdb_cv_scanf_has_long_double=no
19642 else
19643 cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h. */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19649 #include <stdio.h>
19650 int
19651 main ()
19652 {
19653 char *buf = "3.141592653";
19654 long double f = 0;
19655 sscanf (buf, "%Lg", &f);
19656 return !(f > 3.14159 && f < 3.14160);
19657 ;
19658 return 0;
19659 }
19660 _ACEOF
19661 rm -f conftest$ac_exeext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19663 (eval $ac_link) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19672 gdb_cv_scanf_has_long_double=yes
19673 else
19674 echo "$as_me: program exited with status $ac_status" >&5
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19677
19678 ( exit $ac_status )
19679 gdb_cv_scanf_has_long_double=no
19680 fi
19681 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19682 fi
19683 fi
19684 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19685 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19686 if test $gdb_cv_scanf_has_long_double = yes; then
19687
19688 cat >>confdefs.h <<\_ACEOF
19689 #define SCANF_HAS_LONG_DOUBLE 1
19690 _ACEOF
19691
19692 fi
19693
19694 case ${host_os} in
19695 aix*)
19696 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19697 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19698 if test "${gdb_cv_bigtoc+set}" = set; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19700 else
19701
19702 SAVE_LDFLAGS=$LDFLAGS
19703
19704 case $GCC in
19705 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19706 *) gdb_cv_bigtoc=-bbigtoc ;;
19707 esac
19708
19709 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19710 cat >conftest.$ac_ext <<_ACEOF
19711 /* confdefs.h. */
19712 _ACEOF
19713 cat confdefs.h >>conftest.$ac_ext
19714 cat >>conftest.$ac_ext <<_ACEOF
19715 /* end confdefs.h. */
19716
19717 int
19718 main ()
19719 {
19720 int i;
19721 ;
19722 return 0;
19723 }
19724 _ACEOF
19725 rm -f conftest.$ac_objext conftest$ac_exeext
19726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19727 (eval $ac_link) 2>conftest.er1
19728 ac_status=$?
19729 grep -v '^ *+' conftest.er1 >conftest.err
19730 rm -f conftest.er1
19731 cat conftest.err >&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } &&
19734 { ac_try='test -z "$ac_c_werror_flag"
19735 || test ! -s conftest.err'
19736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737 (eval $ac_try) 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; } &&
19741 { ac_try='test -s conftest$ac_exeext'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19747 :
19748 else
19749 echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19751
19752 gdb_cv_bigtoc=
19753 fi
19754 rm -f conftest.err conftest.$ac_objext \
19755 conftest$ac_exeext conftest.$ac_ext
19756 LDFLAGS="${SAVE_LDFLAGS}"
19757
19758 fi
19759 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19760 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19761 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19762 ;;
19763 esac
19764
19765
19766
19767 if test ${build} = ${host} -a ${host} = ${target} ; then
19768 case ${host_os} in
19769 hpux*)
19770 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19771 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19772 if test -f /usr/include/dce/cma_config.h ; then
19773 if test "$GCC" = "yes" ; then
19774 echo "$as_me:$LINENO: result: yes" >&5
19775 echo "${ECHO_T}yes" >&6
19776
19777 cat >>confdefs.h <<\_ACEOF
19778 #define HAVE_HPUX_THREAD_SUPPORT 1
19779 _ACEOF
19780
19781 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19782 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19783 else
19784 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19785 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19786 fi
19787 else
19788 echo "$as_me:$LINENO: result: no" >&5
19789 echo "${ECHO_T}no" >&6
19790 fi
19791 ;;
19792 solaris*)
19793 # See if thread_db library is around for Solaris thread debugging.
19794 # Note that we must explicitly test for version 1 of the library
19795 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19796 # the same API.
19797 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19798 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19799 if test -f /usr/lib/libthread_db.so.1 ; then
19800 echo "$as_me:$LINENO: result: yes" >&5
19801 echo "${ECHO_T}yes" >&6
19802
19803 cat >>confdefs.h <<\_ACEOF
19804 #define HAVE_THREAD_DB_LIB 1
19805 _ACEOF
19806
19807 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19808 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19809
19810 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19811 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19812 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 else
19815 ac_check_lib_save_LIBS=$LIBS
19816 LIBS="-ldl $LIBS"
19817 cat >conftest.$ac_ext <<_ACEOF
19818 /* confdefs.h. */
19819 _ACEOF
19820 cat confdefs.h >>conftest.$ac_ext
19821 cat >>conftest.$ac_ext <<_ACEOF
19822 /* end confdefs.h. */
19823
19824 /* Override any gcc2 internal prototype to avoid an error. */
19825 #ifdef __cplusplus
19826 extern "C"
19827 #endif
19828 /* We use char because int might match the return type of a gcc2
19829 builtin and then its argument prototype would still apply. */
19830 char dlopen ();
19831 int
19832 main ()
19833 {
19834 dlopen ();
19835 ;
19836 return 0;
19837 }
19838 _ACEOF
19839 rm -f conftest.$ac_objext conftest$ac_exeext
19840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19841 (eval $ac_link) 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
19848 { ac_try='test -z "$ac_c_werror_flag"
19849 || test ! -s conftest.err'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; } &&
19855 { ac_try='test -s conftest$ac_exeext'
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; }; then
19861 ac_cv_lib_dl_dlopen=yes
19862 else
19863 echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19865
19866 ac_cv_lib_dl_dlopen=no
19867 fi
19868 rm -f conftest.err conftest.$ac_objext \
19869 conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19871 fi
19872 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19873 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19874 if test $ac_cv_lib_dl_dlopen = yes; then
19875 cat >>confdefs.h <<_ACEOF
19876 #define HAVE_LIBDL 1
19877 _ACEOF
19878
19879 LIBS="-ldl $LIBS"
19880
19881 fi
19882
19883 if test "$GCC" = "yes" ; then
19884 # The GNU linker requires the -export-dynamic option to make
19885 # all symbols visible in the dynamic symbol table.
19886 hold_ldflags=$LDFLAGS
19887 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19888 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19889 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19890 cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h. */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19896
19897 int
19898 main ()
19899 {
19900 int i;
19901 ;
19902 return 0;
19903 }
19904 _ACEOF
19905 rm -f conftest.$ac_objext conftest$ac_exeext
19906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19907 (eval $ac_link) 2>conftest.er1
19908 ac_status=$?
19909 grep -v '^ *+' conftest.er1 >conftest.err
19910 rm -f conftest.er1
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
19914 { ac_try='test -z "$ac_c_werror_flag"
19915 || test ! -s conftest.err'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; } &&
19921 { ac_try='test -s conftest$ac_exeext'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 found=yes
19928 else
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19931
19932 found=no
19933 fi
19934 rm -f conftest.err conftest.$ac_objext \
19935 conftest$ac_exeext conftest.$ac_ext
19936 LDFLAGS=$hold_ldflags
19937 echo "$as_me:$LINENO: result: $found" >&5
19938 echo "${ECHO_T}$found" >&6
19939 if test $found = yes; then
19940 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19941 fi
19942 fi
19943 # Sun randomly tweaked the prototypes in <proc_service.h>
19944 # at one point.
19945 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19946 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19947 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19948 echo $ECHO_N "(cached) $ECHO_C" >&6
19949 else
19950
19951 cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h. */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19957
19958 #include <proc_service.h>
19959 ps_err_e ps_pdwrite
19960 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19961
19962 int
19963 main ()
19964 {
19965
19966 ;
19967 return 0;
19968 }
19969 _ACEOF
19970 rm -f conftest.$ac_objext
19971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19972 (eval $ac_compile) 2>conftest.er1
19973 ac_status=$?
19974 grep -v '^ *+' conftest.er1 >conftest.err
19975 rm -f conftest.er1
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } &&
19979 { ac_try='test -z "$ac_c_werror_flag"
19980 || test ! -s conftest.err'
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; } &&
19986 { ac_try='test -s conftest.$ac_objext'
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; }; then
19992 gdb_cv_proc_service_is_old=no
19993 else
19994 echo "$as_me: failed program was:" >&5
19995 sed 's/^/| /' conftest.$ac_ext >&5
19996
19997 gdb_cv_proc_service_is_old=yes
19998 fi
19999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20000
20001 fi
20002
20003 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
20004 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
20005 if test $gdb_cv_proc_service_is_old = yes; then
20006
20007 cat >>confdefs.h <<\_ACEOF
20008 #define PROC_SERVICE_IS_OLD 1
20009 _ACEOF
20010
20011 fi
20012 else
20013 echo "$as_me:$LINENO: result: no" >&5
20014 echo "${ECHO_T}no" >&6
20015 fi
20016 ;;
20017 aix*)
20018 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
20019 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
20020 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
20022 else
20023 cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h. */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 #include <sys/pthdebug.h>
20030 int
20031 main ()
20032 {
20033 #ifndef PTHDB_VERSION_3
20034 #error
20035 #endif
20036 ;
20037 return 0;
20038 }
20039 _ACEOF
20040 rm -f conftest.$ac_objext
20041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20042 (eval $ac_compile) 2>conftest.er1
20043 ac_status=$?
20044 grep -v '^ *+' conftest.er1 >conftest.err
20045 rm -f conftest.er1
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } &&
20049 { ac_try='test -z "$ac_c_werror_flag"
20050 || test ! -s conftest.err'
20051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052 (eval $ac_try) 2>&5
20053 ac_status=$?
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; } &&
20056 { ac_try='test -s conftest.$ac_objext'
20057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20058 (eval $ac_try) 2>&5
20059 ac_status=$?
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; }; then
20062 gdb_cv_have_aix_thread_debug=yes
20063 else
20064 echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20066
20067 gdb_cv_have_aix_thread_debug=no
20068 fi
20069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20070 fi
20071
20072 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
20073 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
20074 if test $gdb_cv_have_aix_thread_debug = yes; then
20075 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
20076 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
20077 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
20078 fi
20079 ;;
20080 esac
20081
20082 fi
20083
20084 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
20085 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
20086 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
20087 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 else
20090 cat >conftest.$ac_ext <<_ACEOF
20091 /* confdefs.h. */
20092 _ACEOF
20093 cat confdefs.h >>conftest.$ac_ext
20094 cat >>conftest.$ac_ext <<_ACEOF
20095 /* end confdefs.h. */
20096 #include <thread_db.h>
20097 int
20098 main ()
20099 {
20100 int i = TD_NOTALLOC;
20101 ;
20102 return 0;
20103 }
20104 _ACEOF
20105 rm -f conftest.$ac_objext
20106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20107 (eval $ac_compile) 2>conftest.er1
20108 ac_status=$?
20109 grep -v '^ *+' conftest.er1 >conftest.err
20110 rm -f conftest.er1
20111 cat conftest.err >&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } &&
20114 { ac_try='test -z "$ac_c_werror_flag"
20115 || test ! -s conftest.err'
20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20118 ac_status=$?
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; } &&
20121 { ac_try='test -s conftest.$ac_objext'
20122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20123 (eval $ac_try) 2>&5
20124 ac_status=$?
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; }; then
20127 gdb_cv_thread_db_h_has_td_notalloc=yes
20128 else
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20131
20132 gdb_cv_thread_db_h_has_td_notalloc=no
20133
20134 fi
20135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20136
20137 fi
20138 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
20139 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
20140 fi
20141 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
20142
20143 cat >>confdefs.h <<\_ACEOF
20144 #define THREAD_DB_HAS_TD_NOTALLOC 1
20145 _ACEOF
20146
20147 fi
20148
20149 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
20150 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
20151 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
20152 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 else
20155 cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h. */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20161 #include <sys/syscall.h>
20162 int
20163 main ()
20164 {
20165 int i = __NR_tkill;
20166 ;
20167 return 0;
20168 }
20169 _ACEOF
20170 rm -f conftest.$ac_objext
20171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20172 (eval $ac_compile) 2>conftest.er1
20173 ac_status=$?
20174 grep -v '^ *+' conftest.er1 >conftest.err
20175 rm -f conftest.er1
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } &&
20179 { ac_try='test -z "$ac_c_werror_flag"
20180 || test ! -s conftest.err'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try='test -s conftest.$ac_objext'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 gdb_cv_sys_syscall_h_has_tkill=yes
20193 else
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20196
20197 gdb_cv_sys_syscall_h_has_tkill=no
20198
20199 fi
20200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20201
20202 fi
20203 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
20204 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
20205 fi
20206 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
20207
20208 cat >>confdefs.h <<\_ACEOF
20209 #define HAVE_TKILL_SYSCALL 1
20210 _ACEOF
20211
20212 fi
20213
20214
20215
20216 # Check whether --with-sysroot or --without-sysroot was given.
20217 if test "${with_sysroot+set}" = set; then
20218 withval="$with_sysroot"
20219
20220 case ${with_sysroot} in
20221 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
20222 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
20223 esac
20224
20225 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
20226
20227 if test "x$exec_prefix" = xNONE; then
20228 if test "x$prefix" = xNONE; then
20229 test_prefix=/usr/local
20230 else
20231 test_prefix=$prefix
20232 fi
20233 else
20234 test_prefix=$exec_prefix
20235 fi
20236 case ${TARGET_SYSTEM_ROOT} in
20237 "${test_prefix}"|"${test_prefix}/"*|\
20238 '${exec_prefix}'|'${exec_prefix}/'*)
20239 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
20240 TARGET_SYSTEM_ROOT_DEFINE="$t"
20241 ;;
20242 esac
20243
20244 else
20245
20246 TARGET_SYSTEM_ROOT=
20247 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
20248
20249 fi;
20250
20251
20252
20253 # Check whether --enable-werror or --disable-werror was given.
20254 if test "${enable_werror+set}" = set; then
20255 enableval="$enable_werror"
20256 case "${enableval}" in
20257 yes | y) ERROR_ON_WARNING="yes" ;;
20258 no | n) ERROR_ON_WARNING="no" ;;
20259 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
20260 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
20261 { (exit 1); exit 1; }; } ;;
20262 esac
20263 fi;
20264
20265 # Enable -Werror by default when using gcc
20266 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
20267 ERROR_ON_WARNING=yes
20268 fi
20269
20270 WERROR_CFLAGS=""
20271 if test "${ERROR_ON_WARNING}" = yes ; then
20272 WERROR_CFLAGS="-Werror"
20273 fi
20274
20275 # NOTE: Don't add -Wall or -Wunused, they both include
20276 # -Wunused-parameter which reports bogus warnings.
20277 # NOTE: If you add to this list, remember to update
20278 # gdb/doc/gdbint.texinfo.
20279 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
20280 -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
20281 -Wunused-label -Wunused-function -Wno-pointer-sign"
20282
20283 # GCC supports -Wuninitialized only with -O or -On, n != 0.
20284 if test x${CFLAGS+set} = xset; then
20285 case "${CFLAGS}" in
20286 *"-O0"* ) ;;
20287 *"-O"* )
20288 build_warnings="${build_warnings} -Wuninitialized"
20289 ;;
20290 esac
20291 else
20292 build_warnings="${build_warnings} -Wuninitialized"
20293 fi
20294
20295 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
20296 # -Wunused-function -Wunused-variable -Wunused-value
20297 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
20298 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
20299 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
20300 # -Woverloaded-virtual -Winline -Werror"
20301 # Check whether --enable-build-warnings or --disable-build-warnings was given.
20302 if test "${enable_build_warnings+set}" = set; then
20303 enableval="$enable_build_warnings"
20304 case "${enableval}" in
20305 yes) ;;
20306 no) build_warnings="-w";;
20307 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20308 build_warnings="${build_warnings} ${t}";;
20309 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20310 build_warnings="${t} ${build_warnings}";;
20311 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20312 esac
20313 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20314 echo "Setting compiler warning flags = $build_warnings" 6>&1
20315 fi
20316 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20317 if test "${enable_gdb_build_warnings+set}" = set; then
20318 enableval="$enable_gdb_build_warnings"
20319 case "${enableval}" in
20320 yes) ;;
20321 no) build_warnings="-w";;
20322 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20323 build_warnings="${build_warnings} ${t}";;
20324 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20325 build_warnings="${t} ${build_warnings}";;
20326 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20327 esac
20328 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20329 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20330 fi
20331 fi; WARN_CFLAGS=""
20332 if test "x${build_warnings}" != x -a "x$GCC" = xyes
20333 then
20334 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20335 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20336 # Separate out the -Werror flag as some files just cannot be
20337 # compiled with it enabled.
20338 for w in ${build_warnings}; do
20339 case $w in
20340 -Werr*) WERROR_CFLAGS=-Werror ;;
20341 *) # Check that GCC accepts it
20342 saved_CFLAGS="$CFLAGS"
20343 CFLAGS="$CFLAGS $w"
20344 cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h. */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350
20351 int
20352 main ()
20353 {
20354
20355 ;
20356 return 0;
20357 }
20358 _ACEOF
20359 rm -f conftest.$ac_objext
20360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361 (eval $ac_compile) 2>conftest.er1
20362 ac_status=$?
20363 grep -v '^ *+' conftest.er1 >conftest.err
20364 rm -f conftest.er1
20365 cat conftest.err >&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } &&
20368 { ac_try='test -z "$ac_c_werror_flag"
20369 || test ! -s conftest.err'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try='test -s conftest.$ac_objext'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 WARN_CFLAGS="${WARN_CFLAGS} $w"
20382 else
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20385
20386 fi
20387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20388 CFLAGS="$saved_CFLAGS"
20389 esac
20390 done
20391 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20392 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
20393 fi
20394
20395
20396
20397 # In the Cygwin environment, we need some additional flags.
20398 echo "$as_me:$LINENO: checking for cygwin" >&5
20399 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20400 if test "${gdb_cv_os_cygwin+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20402 else
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h. */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409
20410 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20411 lose
20412 #endif
20413 _ACEOF
20414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20415 $EGREP "lose" >/dev/null 2>&1; then
20416 gdb_cv_os_cygwin=yes
20417 else
20418 gdb_cv_os_cygwin=no
20419 fi
20420 rm -f conftest*
20421
20422 fi
20423 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20424 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20425
20426
20427 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20428 case ${host} in
20429 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20430 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20431 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
20432 esac
20433
20434
20435 # libreadline needs libuser32.a in a cygwin environment
20436 WIN32LIBS=
20437 if test x$gdb_cv_os_cygwin = xyes; then
20438 WIN32LIBS="-luser32"
20439 case "${target}" in
20440 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20441 ;;
20442 esac
20443 fi
20444
20445 # The ser-tcp.c module requires sockets.
20446 case ${host} in
20447 *mingw32*)
20448
20449 cat >>confdefs.h <<\_ACEOF
20450 #define USE_WIN32API 1
20451 _ACEOF
20452
20453 WIN32LIBS="$WIN32LIBS -lws2_32"
20454 ;;
20455 esac
20456
20457
20458 # Add any host-specific objects to GDB.
20459 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20460
20461 LIBGUI="../libgui/src/libgui.a"
20462 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20463
20464
20465
20466 WIN32LDAPP=
20467
20468
20469
20470 case "${host}" in
20471 *-*-cygwin*)
20472 configdir="win"
20473 ;;
20474 *)
20475 configdir="unix"
20476 ;;
20477 esac
20478
20479 GDBTKLIBS=
20480 if test "${enable_gdbtk}" = "yes"; then
20481
20482 # Gdbtk must have an absolute path to srcdir in order to run
20483 # properly when not installed.
20484 here=`pwd`
20485 cd ${srcdir}
20486 GDBTK_SRC_DIR=`pwd`
20487 cd $here
20488
20489
20490 #
20491 # Ok, lets find the tcl configuration
20492 # First, look for one uninstalled.
20493 # the alternative search directory is invoked by --with-tclconfig
20494 #
20495
20496 if test x"${no_tcl}" = x ; then
20497 # we reset no_tcl in case something fails here
20498 no_tcl=true
20499
20500 # Check whether --with-tclconfig or --without-tclconfig was given.
20501 if test "${with_tclconfig+set}" = set; then
20502 withval="$with_tclconfig"
20503 with_tclconfig=${withval}
20504 fi;
20505 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20506 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20507 if test "${ac_cv_c_tclconfig+set}" = set; then
20508 echo $ECHO_N "(cached) $ECHO_C" >&6
20509 else
20510
20511
20512 # First check to see if --with-tclconfig was specified.
20513 if test x"${with_tclconfig}" != x ; then
20514 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20515 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20516 else
20517 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20518 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20519 { (exit 1); exit 1; }; }
20520 fi
20521 fi
20522
20523 # then check for a private Tcl installation
20524 if test x"${ac_cv_c_tclconfig}" = x ; then
20525 for i in \
20526 ../tcl \
20527 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20528 ../../tcl \
20529 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20530 ../../../tcl \
20531 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20532 if test -f "$i/${configdir}/tclConfig.sh" ; then
20533 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20534 break
20535 fi
20536 done
20537 fi
20538 # check in a few common install locations
20539 if test x"${ac_cv_c_tclconfig}" = x ; then
20540 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20541 if test -f "$i/tclConfig.sh" ; then
20542 ac_cv_c_tclconfig=`(cd $i; pwd)`
20543 break
20544 fi
20545 done
20546 fi
20547 # check in a few other private locations
20548 if test x"${ac_cv_c_tclconfig}" = x ; then
20549 for i in \
20550 ${srcdir}/../tcl \
20551 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20552 if test -f "$i/${configdir}/tclConfig.sh" ; then
20553 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20554 break
20555 fi
20556 done
20557 fi
20558
20559 fi
20560
20561 if test x"${ac_cv_c_tclconfig}" = x ; then
20562 TCLCONFIG="# no Tcl configs found"
20563 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20564 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20565 else
20566 no_tcl=
20567 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
20568 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20569 echo "${ECHO_T}found $TCLCONFIG" >&6
20570 fi
20571 fi
20572
20573 if test -z "${no_tcl}"; then
20574
20575 . $TCLCONFIG
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603 #
20604 # Ok, lets find the tk configuration
20605 # First, look for one uninstalled.
20606 # the alternative search directory is invoked by --with-tkconfig
20607 #
20608
20609 if test x"${no_tk}" = x ; then
20610 # we reset no_tk in case something fails here
20611 no_tk=true
20612
20613 # Check whether --with-tkconfig or --without-tkconfig was given.
20614 if test "${with_tkconfig+set}" = set; then
20615 withval="$with_tkconfig"
20616 with_tkconfig=${withval}
20617 fi;
20618 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20619 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20620 if test "${ac_cv_c_tkconfig+set}" = set; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 else
20623
20624
20625 # First check to see if --with-tkconfig was specified.
20626 if test x"${with_tkconfig}" != x ; then
20627 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20628 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20629 else
20630 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20631 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20632 { (exit 1); exit 1; }; }
20633 fi
20634 fi
20635
20636 # then check for a private Tk library
20637 if test x"${ac_cv_c_tkconfig}" = x ; then
20638 for i in \
20639 ../tk \
20640 `ls -dr ../tk[4-9]* 2>/dev/null` \
20641 ../../tk \
20642 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20643 ../../../tk \
20644 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20645 if test -f "$i/${configdir}/tkConfig.sh" ; then
20646 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20647 break
20648 fi
20649 done
20650 fi
20651 # check in a few common install locations
20652 if test x"${ac_cv_c_tkconfig}" = x ; then
20653 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20654 if test -f "$i/tkConfig.sh" ; then
20655 ac_cv_c_tkconfig=`(cd $i; pwd)`
20656 break
20657 fi
20658 done
20659 fi
20660 # check in a few other private locations
20661 if test x"${ac_cv_c_tkconfig}" = x ; then
20662 for i in \
20663 ${srcdir}/../tk \
20664 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20665 if test -f "$i/${configdir}/tkConfig.sh" ; then
20666 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20667 break
20668 fi
20669 done
20670 fi
20671
20672 fi
20673
20674 if test x"${ac_cv_c_tkconfig}" = x ; then
20675 TKCONFIG="# no Tk configs found"
20676 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20677 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20678 else
20679 no_tk=
20680 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20681 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20682 echo "${ECHO_T}found $TKCONFIG" >&6
20683 fi
20684 fi
20685
20686
20687
20688 # now look for Tcl library stuff
20689
20690 tcldir="../tcl/${configdir}/"
20691
20692 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20693
20694 # If $no_tk is nonempty, then we can't do Tk, and there is no
20695 # point to doing Tcl.
20696 if test -z "${no_tk}"; then
20697
20698 if test -f "$TKCONFIG" ; then
20699 . $TKCONFIG
20700 fi
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715 #
20716 # Ok, lets find the tcl source trees so we can use the headers
20717 # Warning: transition of version 9 to 10 will break this algorithm
20718 # because 10 sorts before 9. We also look for just tcl. We have to
20719 # be careful that we don't match stuff like tclX by accident.
20720 # the alternative search directory is involked by --with-tclinclude
20721 #
20722
20723 no_tcl=true
20724 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20725 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20726
20727 # Check whether --with-tclinclude or --without-tclinclude was given.
20728 if test "${with_tclinclude+set}" = set; then
20729 withval="$with_tclinclude"
20730 with_tclinclude=${withval}
20731 fi;
20732 if test "${ac_cv_c_tclh+set}" = set; then
20733 echo $ECHO_N "(cached) $ECHO_C" >&6
20734 else
20735
20736 # first check to see if --with-tclinclude was specified
20737 if test x"${with_tclinclude}" != x ; then
20738 if test -f ${with_tclinclude}/tclInt.h ; then
20739 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20740 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20741 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20742 else
20743 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20744 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20745 { (exit 1); exit 1; }; }
20746 fi
20747 fi
20748
20749 # next check if it came with Tcl configuration file
20750 if test x"${ac_cv_c_tclconfig}" = x ; then
20751 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20752 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20753 fi
20754 fi
20755
20756 # next check in private source directory
20757 #
20758 # since ls returns lowest version numbers first, reverse its output
20759 if test x"${ac_cv_c_tclh}" = x ; then
20760 for i in \
20761 ${srcdir}/../tcl \
20762 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20763 ${srcdir}/../../tcl \
20764 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20765 ${srcdir}/../../../tcl \
20766 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20767 if test -f $i/generic/tclInt.h ; then
20768 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20769 break
20770 fi
20771 done
20772 fi
20773 # finally check in a few common install locations
20774 #
20775 # since ls returns lowest version numbers first, reverse its output
20776 if test x"${ac_cv_c_tclh}" = x ; then
20777 for i in \
20778 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20779 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20780 /usr/local/src/tcl \
20781 /usr/local/lib/tcl \
20782 ${prefix}/include ; do
20783 if test -f $i/generic/tclInt.h ; then
20784 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20785 break
20786 fi
20787 done
20788 fi
20789 # see if one is installed
20790 if test x"${ac_cv_c_tclh}" = x ; then
20791 if test "${ac_cv_header_tclInt_h+set}" = set; then
20792 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20793 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20794 if test "${ac_cv_header_tclInt_h+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20796 fi
20797 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20798 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20799 else
20800 # Is the header compilable?
20801 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20802 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20803 cat >conftest.$ac_ext <<_ACEOF
20804 /* confdefs.h. */
20805 _ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h. */
20809 $ac_includes_default
20810 #include <tclInt.h>
20811 _ACEOF
20812 rm -f conftest.$ac_objext
20813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20814 (eval $ac_compile) 2>conftest.er1
20815 ac_status=$?
20816 grep -v '^ *+' conftest.er1 >conftest.err
20817 rm -f conftest.er1
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } &&
20821 { ac_try='test -z "$ac_c_werror_flag"
20822 || test ! -s conftest.err'
20823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824 (eval $ac_try) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; } &&
20828 { ac_try='test -s conftest.$ac_objext'
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; }; then
20834 ac_header_compiler=yes
20835 else
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20838
20839 ac_header_compiler=no
20840 fi
20841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20843 echo "${ECHO_T}$ac_header_compiler" >&6
20844
20845 # Is the header present?
20846 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20847 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20848 cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h. */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 #include <tclInt.h>
20855 _ACEOF
20856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20858 ac_status=$?
20859 grep -v '^ *+' conftest.er1 >conftest.err
20860 rm -f conftest.er1
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } >/dev/null; then
20864 if test -s conftest.err; then
20865 ac_cpp_err=$ac_c_preproc_warn_flag
20866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20867 else
20868 ac_cpp_err=
20869 fi
20870 else
20871 ac_cpp_err=yes
20872 fi
20873 if test -z "$ac_cpp_err"; then
20874 ac_header_preproc=yes
20875 else
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879 ac_header_preproc=no
20880 fi
20881 rm -f conftest.err conftest.$ac_ext
20882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20883 echo "${ECHO_T}$ac_header_preproc" >&6
20884
20885 # So? What about this header?
20886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20887 yes:no: )
20888 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20889 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20890 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20891 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20892 ac_header_preproc=yes
20893 ;;
20894 no:yes:* )
20895 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20896 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20897 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20898 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20899 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20900 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20901 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20902 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20903 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20904 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20905 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20906 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20907 (
20908 cat <<\_ASBOX
20909 ## ------------------------------------------ ##
20910 ## Report this to the AC_PACKAGE_NAME lists. ##
20911 ## ------------------------------------------ ##
20912 _ASBOX
20913 ) |
20914 sed "s/^/$as_me: WARNING: /" >&2
20915 ;;
20916 esac
20917 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20918 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20919 if test "${ac_cv_header_tclInt_h+set}" = set; then
20920 echo $ECHO_N "(cached) $ECHO_C" >&6
20921 else
20922 ac_cv_header_tclInt_h=$ac_header_preproc
20923 fi
20924 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20925 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20926
20927 fi
20928 if test $ac_cv_header_tclInt_h = yes; then
20929 ac_cv_c_tclh=installed
20930 else
20931 ac_cv_c_tclh=""
20932 fi
20933
20934
20935 fi
20936
20937 fi
20938
20939 if test x"${ac_cv_c_tclh}" = x ; then
20940 TCLHDIR="# no Tcl private headers found"
20941 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20942 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20943 { (exit 1); exit 1; }; }
20944 fi
20945 if test x"${ac_cv_c_tclh}" != x ; then
20946 no_tcl=""
20947 if test x"${ac_cv_c_tclh}" = x"installed" ; then
20948 echo "$as_me:$LINENO: result: is installed" >&5
20949 echo "${ECHO_T}is installed" >&6
20950 TCLHDIR=""
20951 else
20952 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20953 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20954 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20955 TCLHDIR="-I${ac_cv_c_tclh}"
20956 fi
20957 fi
20958
20959
20960
20961
20962 #
20963 # Ok, lets find the tk source trees so we can use the headers
20964 # If the directory (presumably symlink) named "tk" exists, use that one
20965 # in preference to any others. Same logic is used when choosing library
20966 # and again with Tcl. The search order is the best place to look first, then in
20967 # decreasing significance. The loop breaks if the trigger file is found.
20968 # Note the gross little conversion here of srcdir by cd'ing to the found
20969 # directory. This converts the path from a relative to an absolute, so
20970 # recursive cache variables for the path will work right. We check all
20971 # the possible paths in one loop rather than many seperate loops to speed
20972 # things up.
20973 # the alternative search directory is involked by --with-tkinclude
20974 #
20975 no_tk=true
20976 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20977 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20978
20979 # Check whether --with-tkinclude or --without-tkinclude was given.
20980 if test "${with_tkinclude+set}" = set; then
20981 withval="$with_tkinclude"
20982 with_tkinclude=${withval}
20983 fi;
20984 if test "${ac_cv_c_tkh+set}" = set; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 else
20987
20988 # first check to see if --with-tkinclude was specified
20989 if test x"${with_tkinclude}" != x ; then
20990 if test -f ${with_tkinclude}/tk.h ; then
20991 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20992 elif test -f ${with_tkinclude}/generic/tk.h ; then
20993 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20994 else
20995 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20996 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20997 { (exit 1); exit 1; }; }
20998 fi
20999 fi
21000
21001 # next check if it came with Tk configuration file
21002 if test x"${ac_cv_c_tkconfig}" = x ; then
21003 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
21004 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
21005 fi
21006 fi
21007
21008 # next check in private source directory
21009 #
21010 # since ls returns lowest version numbers first, reverse its output
21011 if test x"${ac_cv_c_tkh}" = x ; then
21012 for i in \
21013 ${srcdir}/../tk \
21014 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
21015 ${srcdir}/../../tk \
21016 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
21017 ${srcdir}/../../../tk \
21018 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
21019 if test -f $i/generic/tk.h ; then
21020 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21021 break
21022 fi
21023 done
21024 fi
21025 # finally check in a few common install locations
21026 #
21027 # since ls returns lowest version numbers first, reverse its output
21028 if test x"${ac_cv_c_tkh}" = x ; then
21029 for i in \
21030 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
21031 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
21032 /usr/local/src/tk \
21033 /usr/local/lib/tk \
21034 ${prefix}/include ; do
21035 if test -f $i/generic/tk.h ; then
21036 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21037 break
21038 fi
21039 done
21040 fi
21041 # see if one is installed
21042 if test x"${ac_cv_c_tkh}" = x ; then
21043 if test "${ac_cv_header_tk_h+set}" = set; then
21044 echo "$as_me:$LINENO: checking for tk.h" >&5
21045 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
21046 if test "${ac_cv_header_tk_h+set}" = set; then
21047 echo $ECHO_N "(cached) $ECHO_C" >&6
21048 fi
21049 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21050 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
21051 else
21052 # Is the header compilable?
21053 echo "$as_me:$LINENO: checking tk.h usability" >&5
21054 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
21055 cat >conftest.$ac_ext <<_ACEOF
21056 /* confdefs.h. */
21057 _ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21061 $ac_includes_default
21062 #include <tk.h>
21063 _ACEOF
21064 rm -f conftest.$ac_objext
21065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21066 (eval $ac_compile) 2>conftest.er1
21067 ac_status=$?
21068 grep -v '^ *+' conftest.er1 >conftest.err
21069 rm -f conftest.er1
21070 cat conftest.err >&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } &&
21073 { ac_try='test -z "$ac_c_werror_flag"
21074 || test ! -s conftest.err'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21077 ac_status=$?
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; } &&
21080 { ac_try='test -s conftest.$ac_objext'
21081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082 (eval $ac_try) 2>&5
21083 ac_status=$?
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); }; }; then
21086 ac_header_compiler=yes
21087 else
21088 echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21090
21091 ac_header_compiler=no
21092 fi
21093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21095 echo "${ECHO_T}$ac_header_compiler" >&6
21096
21097 # Is the header present?
21098 echo "$as_me:$LINENO: checking tk.h presence" >&5
21099 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
21100 cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h. */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21106 #include <tk.h>
21107 _ACEOF
21108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21110 ac_status=$?
21111 grep -v '^ *+' conftest.er1 >conftest.err
21112 rm -f conftest.er1
21113 cat conftest.err >&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } >/dev/null; then
21116 if test -s conftest.err; then
21117 ac_cpp_err=$ac_c_preproc_warn_flag
21118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21119 else
21120 ac_cpp_err=
21121 fi
21122 else
21123 ac_cpp_err=yes
21124 fi
21125 if test -z "$ac_cpp_err"; then
21126 ac_header_preproc=yes
21127 else
21128 echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21130
21131 ac_header_preproc=no
21132 fi
21133 rm -f conftest.err conftest.$ac_ext
21134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21135 echo "${ECHO_T}$ac_header_preproc" >&6
21136
21137 # So? What about this header?
21138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21139 yes:no: )
21140 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
21141 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21142 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
21143 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
21144 ac_header_preproc=yes
21145 ;;
21146 no:yes:* )
21147 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
21148 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
21150 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
21151 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
21152 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
21153 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
21154 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
21156 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
21158 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
21159 (
21160 cat <<\_ASBOX
21161 ## ------------------------------------------ ##
21162 ## Report this to the AC_PACKAGE_NAME lists. ##
21163 ## ------------------------------------------ ##
21164 _ASBOX
21165 ) |
21166 sed "s/^/$as_me: WARNING: /" >&2
21167 ;;
21168 esac
21169 echo "$as_me:$LINENO: checking for tk.h" >&5
21170 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
21171 if test "${ac_cv_header_tk_h+set}" = set; then
21172 echo $ECHO_N "(cached) $ECHO_C" >&6
21173 else
21174 ac_cv_header_tk_h=$ac_header_preproc
21175 fi
21176 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21177 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
21178
21179 fi
21180 if test $ac_cv_header_tk_h = yes; then
21181 ac_cv_c_tkh=installed
21182 else
21183 ac_cv_c_tkh=""
21184 fi
21185
21186
21187 fi
21188
21189 fi
21190
21191 if test x"${ac_cv_c_tkh}" != x ; then
21192 no_tk=""
21193 if test x"${ac_cv_c_tkh}" = x"installed" ; then
21194 echo "$as_me:$LINENO: result: is installed" >&5
21195 echo "${ECHO_T}is installed" >&6
21196 TKHDIR=""
21197 else
21198 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
21199 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
21200 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
21201 TKHDIR="-I${ac_cv_c_tkh}"
21202 fi
21203 else
21204 TKHDIR="# no Tk directory found"
21205 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
21206 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
21207 no_tk=true
21208 fi
21209
21210
21211
21212
21213 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
21214 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
21215 if test x"${ac_cv_c_itclh}" = x ; then
21216 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
21217 if test -f $i/generic/itcl.h ; then
21218 ac_cv_c_itclh=`(cd $i/generic; pwd)`
21219 break
21220 fi
21221 done
21222 fi
21223 if test x"${ac_cv_c_itclh}" = x ; then
21224 ITCLHDIR="# no Itcl private headers found"
21225 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
21226 echo "$as_me: error: Can't find Itcl private headers" >&2;}
21227 { (exit 1); exit 1; }; }
21228 fi
21229 if test x"${ac_cv_c_itclh}" != x ; then
21230 ITCLHDIR="-I${ac_cv_c_itclh}"
21231 fi
21232 # should always be here
21233 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
21234
21235 #AC_SUBST(ITCLLIB)
21236
21237
21238 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
21239 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
21240 if test x"${ac_cv_c_itkh}" = x ; then
21241 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
21242 if test -f $i/generic/itk.h ; then
21243 ac_cv_c_itkh=`(cd $i/generic; pwd)`
21244 break
21245 fi
21246 done
21247 fi
21248 if test x"${ac_cv_c_itkh}" = x ; then
21249 ITKHDIR="# no Itk private headers found"
21250 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
21251 echo "$as_me: error: Can't find Itk private headers" >&2;}
21252 { (exit 1); exit 1; }; }
21253 fi
21254 if test x"${ac_cv_c_itkh}" != x ; then
21255 ITKHDIR="-I${ac_cv_c_itkh}"
21256 fi
21257 # should always be here
21258 # ITKLIB="../itcl/itk/unix/libitk.a"
21259
21260 #AC_SUBST(ITKLIB)
21261
21262
21263
21264 # now look for Tk library stuff
21265
21266 tkdir="../tk/${configdir}/"
21267
21268 TK_DEPS="${tkdir}${TK_LIB_FILE}"
21269
21270 # now look for Itcl library stuff
21271
21272
21273 #
21274 # Ok, lets find the itcl configuration
21275 # First, look for one uninstalled.
21276 # the alternative search directory is invoked by --with-itclconfig
21277 #
21278
21279 if test x"${no_itcl}" = x ; then
21280 # we reset no_itcl in case something fails here
21281 no_itcl=true
21282
21283 # Check whether --with-itclconfig or --without-itclconfig was given.
21284 if test "${with_itclconfig+set}" = set; then
21285 withval="$with_itclconfig"
21286 with_itclconfig=${withval}
21287 fi;
21288 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
21289 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
21290 if test "${ac_cv_c_itclconfig+set}" = set; then
21291 echo $ECHO_N "(cached) $ECHO_C" >&6
21292 else
21293
21294
21295 # First check to see if --with-itclconfig was specified.
21296 if test x"${with_itclconfig}" != x ; then
21297 if test -f "${with_itclconfig}/itclConfig.sh" ; then
21298 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
21299 else
21300 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
21301 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
21302 { (exit 1); exit 1; }; }
21303 fi
21304 fi
21305
21306 # then check for a private Itcl library
21307 if test x"${ac_cv_c_itclconfig}" = x ; then
21308 for i in \
21309 ../itcl/itcl \
21310 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
21311 ../../itcl \
21312 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
21313 ../../../itcl \
21314 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
21315 if test -f "$i/itclConfig.sh" ; then
21316 ac_cv_c_itclconfig=`(cd $i; pwd)`
21317 break
21318 fi
21319 done
21320 fi
21321 # check in a few common install locations
21322 if test x"${ac_cv_c_itclconfig}" = x ; then
21323 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21324 if test -f "$i/itclConfig.sh" ; then
21325 ac_cv_c_itclconfig=`(cd $i; pwd)`
21326 break
21327 fi
21328 done
21329 fi
21330 # check in a few other private locations
21331 if test x"${ac_cv_c_itclconfig}" = x ; then
21332 for i in \
21333 ${srcdir}/../itcl/itcl \
21334 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
21335 if test -f "$i/itclConfig.sh" ; then
21336 ac_cv_c_itclconfig=`(cd $i; pwd)`
21337 break
21338 fi
21339 done
21340 fi
21341
21342 fi
21343
21344 if test x"${ac_cv_c_itclconfig}" = x ; then
21345 ITCLCONFIG="# no Itcl configs found"
21346 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21347 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
21348 else
21349 no_itcl=
21350 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
21351 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21352 echo "${ECHO_T}found $ITCLCONFIG" >&6
21353 fi
21354 fi
21355
21356 if test -z "${no_itcl}"; then
21357
21358 if test -f "$ITCLCONFIG" ; then
21359 . $ITCLCONFIG
21360 fi
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
21374 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
21375 fi
21376
21377
21378 # now look for Itk library stuff
21379
21380 #
21381 # Ok, lets find the itk configuration
21382 # First, look for one uninstalled.
21383 # the alternative search directory is invoked by --with-itkconfig
21384 #
21385
21386 if test x"${no_itk}" = x ; then
21387 # we reset no_itk in case something fails here
21388 no_itk=true
21389
21390 # Check whether --with-itkconfig or --without-itkconfig was given.
21391 if test "${with_itkconfig+set}" = set; then
21392 withval="$with_itkconfig"
21393 with_itkconfig=${withval}
21394 fi;
21395 echo "$as_me:$LINENO: checking for Itk configuration" >&5
21396 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21397 if test "${ac_cv_c_itkconfig+set}" = set; then
21398 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 else
21400
21401
21402 # First check to see if --with-itkconfig was specified.
21403 if test x"${with_itkconfig}" != x ; then
21404 if test -f "${with_itkconfig}/itkConfig.sh" ; then
21405 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
21406 else
21407 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21408 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21409 { (exit 1); exit 1; }; }
21410 fi
21411 fi
21412
21413 # then check for a private Itk library
21414 if test x"${ac_cv_c_itkconfig}" = x ; then
21415 for i in \
21416 ../itcl/itk \
21417 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21418 ../../itk \
21419 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21420 ../../../itk \
21421 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21422 if test -f "$i/itkConfig.sh" ; then
21423 ac_cv_c_itkconfig=`(cd $i; pwd)`
21424 break
21425 fi
21426 done
21427 fi
21428 # check in a few common install locations
21429 if test x"${ac_cv_c_itkconfig}" = x ; then
21430 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21431 if test -f "$i/itkConfig.sh" ; then
21432 ac_cv_c_itkconfig=`(cd $i; pwd)`
21433 break
21434 fi
21435 done
21436 fi
21437 # check in a few other private locations
21438 if test x"${ac_cv_c_itkconfig}" = x ; then
21439 for i in \
21440 ${srcdir}/../itcl/itk \
21441 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21442 if test -f "$i/itkConfig.sh" ; then
21443 ac_cv_c_itkconfig=`(cd $i; pwd)`
21444 break
21445 fi
21446 done
21447 fi
21448
21449 fi
21450
21451 if test x"${ac_cv_c_itkconfig}" = x ; then
21452 ITKCONFIG="# no Itk configs found"
21453 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21454 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
21455 else
21456 no_itk=
21457 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
21458 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21459 echo "${ECHO_T}found $ITKCONFIG" >&6
21460 fi
21461 fi
21462
21463
21464 if test -z "${no_itcl}"; then
21465
21466 if test -f "$ITKCONFIG" ; then
21467 . $ITKCONFIG
21468 fi
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481 ITKLIB="${ITK_BUILD_LIB_SPEC}"
21482 ITK_DEPS="${ITK_LIB_FULL_PATH}"
21483 fi
21484
21485 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
21486
21487 # Include some libraries that Tcl and Tk want.
21488 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
21489 # Yes, the ordering seems wrong here. But it isn't.
21490 # TK_LIBS is the list of libraries that need to be linked
21491 # after Tcl/Tk. Note that this isn't put into LIBS. If it
21492 # were in LIBS then any link tests after this point would
21493 # try to include things like `$(LIBGUI)', which wouldn't work.
21494 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
21495
21496 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21497 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21498 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
21499 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21500 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21501 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21502 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
21503
21504 if test x$gdb_cv_os_cygwin = xyes; then
21505 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21506 WIN32LDAPP="-Wl,--subsystem,console"
21507 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21508 fi
21509 fi
21510 fi
21511
21512
21513
21514 subdirs="$subdirs gdbtk"
21515
21516 fi
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531 echo "$as_me:$LINENO: checking for X" >&5
21532 echo $ECHO_N "checking for X... $ECHO_C" >&6
21533
21534
21535 # Check whether --with-x or --without-x was given.
21536 if test "${with_x+set}" = set; then
21537 withval="$with_x"
21538
21539 fi;
21540 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21541 if test "x$with_x" = xno; then
21542 # The user explicitly disabled X.
21543 have_x=disabled
21544 else
21545 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21546 # Both variables are already set.
21547 have_x=yes
21548 else
21549 if test "${ac_cv_have_x+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21551 else
21552 # One or both of the vars are not set, and there is no cached value.
21553 ac_x_includes=no ac_x_libraries=no
21554 rm -fr conftest.dir
21555 if mkdir conftest.dir; then
21556 cd conftest.dir
21557 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21558 cat >Imakefile <<'_ACEOF'
21559 acfindx:
21560 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21561 _ACEOF
21562 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21563 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21564 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21565 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21566 for ac_extension in a so sl; do
21567 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21568 test -f $ac_im_libdir/libX11.$ac_extension; then
21569 ac_im_usrlibdir=$ac_im_libdir; break
21570 fi
21571 done
21572 # Screen out bogus values from the imake configuration. They are
21573 # bogus both because they are the default anyway, and because
21574 # using them would break gcc on systems where it needs fixed includes.
21575 case $ac_im_incroot in
21576 /usr/include) ;;
21577 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21578 esac
21579 case $ac_im_usrlibdir in
21580 /usr/lib | /lib) ;;
21581 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21582 esac
21583 fi
21584 cd ..
21585 rm -fr conftest.dir
21586 fi
21587
21588 # Standard set of common directories for X headers.
21589 # Check X11 before X11Rn because it is often a symlink to the current release.
21590 ac_x_header_dirs='
21591 /usr/X11/include
21592 /usr/X11R6/include
21593 /usr/X11R5/include
21594 /usr/X11R4/include
21595
21596 /usr/include/X11
21597 /usr/include/X11R6
21598 /usr/include/X11R5
21599 /usr/include/X11R4
21600
21601 /usr/local/X11/include
21602 /usr/local/X11R6/include
21603 /usr/local/X11R5/include
21604 /usr/local/X11R4/include
21605
21606 /usr/local/include/X11
21607 /usr/local/include/X11R6
21608 /usr/local/include/X11R5
21609 /usr/local/include/X11R4
21610
21611 /usr/X386/include
21612 /usr/x386/include
21613 /usr/XFree86/include/X11
21614
21615 /usr/include
21616 /usr/local/include
21617 /usr/unsupported/include
21618 /usr/athena/include
21619 /usr/local/x11r5/include
21620 /usr/lpp/Xamples/include
21621
21622 /usr/openwin/include
21623 /usr/openwin/share/include'
21624
21625 if test "$ac_x_includes" = no; then
21626 # Guess where to find include files, by looking for Intrinsic.h.
21627 # First, try using that file with no special directory specified.
21628 cat >conftest.$ac_ext <<_ACEOF
21629 /* confdefs.h. */
21630 _ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h. */
21634 #include <X11/Intrinsic.h>
21635 _ACEOF
21636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21638 ac_status=$?
21639 grep -v '^ *+' conftest.er1 >conftest.err
21640 rm -f conftest.er1
21641 cat conftest.err >&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } >/dev/null; then
21644 if test -s conftest.err; then
21645 ac_cpp_err=$ac_c_preproc_warn_flag
21646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21647 else
21648 ac_cpp_err=
21649 fi
21650 else
21651 ac_cpp_err=yes
21652 fi
21653 if test -z "$ac_cpp_err"; then
21654 # We can compile using X headers with no special include directory.
21655 ac_x_includes=
21656 else
21657 echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21659
21660 for ac_dir in $ac_x_header_dirs; do
21661 if test -r "$ac_dir/X11/Intrinsic.h"; then
21662 ac_x_includes=$ac_dir
21663 break
21664 fi
21665 done
21666 fi
21667 rm -f conftest.err conftest.$ac_ext
21668 fi # $ac_x_includes = no
21669
21670 if test "$ac_x_libraries" = no; then
21671 # Check for the libraries.
21672 # See if we find them without any special options.
21673 # Don't add to $LIBS permanently.
21674 ac_save_LIBS=$LIBS
21675 LIBS="-lXt $LIBS"
21676 cat >conftest.$ac_ext <<_ACEOF
21677 /* confdefs.h. */
21678 _ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 #include <X11/Intrinsic.h>
21683 int
21684 main ()
21685 {
21686 XtMalloc (0)
21687 ;
21688 return 0;
21689 }
21690 _ACEOF
21691 rm -f conftest.$ac_objext conftest$ac_exeext
21692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21693 (eval $ac_link) 2>conftest.er1
21694 ac_status=$?
21695 grep -v '^ *+' conftest.er1 >conftest.err
21696 rm -f conftest.er1
21697 cat conftest.err >&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } &&
21700 { ac_try='test -z "$ac_c_werror_flag"
21701 || test ! -s conftest.err'
21702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703 (eval $ac_try) 2>&5
21704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; } &&
21707 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21713 LIBS=$ac_save_LIBS
21714 # We can link X programs with no special library path.
21715 ac_x_libraries=
21716 else
21717 echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21719
21720 LIBS=$ac_save_LIBS
21721 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21722 do
21723 # Don't even attempt the hair of trying to link an X program!
21724 for ac_extension in a so sl; do
21725 if test -r $ac_dir/libXt.$ac_extension; then
21726 ac_x_libraries=$ac_dir
21727 break 2
21728 fi
21729 done
21730 done
21731 fi
21732 rm -f conftest.err conftest.$ac_objext \
21733 conftest$ac_exeext conftest.$ac_ext
21734 fi # $ac_x_libraries = no
21735
21736 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21737 # Didn't find X anywhere. Cache the known absence of X.
21738 ac_cv_have_x="have_x=no"
21739 else
21740 # Record where we found X for the cache.
21741 ac_cv_have_x="have_x=yes \
21742 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21743 fi
21744 fi
21745
21746 fi
21747 eval "$ac_cv_have_x"
21748 fi # $with_x != no
21749
21750 if test "$have_x" != yes; then
21751 echo "$as_me:$LINENO: result: $have_x" >&5
21752 echo "${ECHO_T}$have_x" >&6
21753 no_x=yes
21754 else
21755 # If each of the values was on the command line, it overrides each guess.
21756 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21757 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21758 # Update the cache value to reflect the command line values.
21759 ac_cv_have_x="have_x=yes \
21760 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21761 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21762 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21763 fi
21764
21765
21766 # Check whether we should enable the TUI, but only do so if we really
21767 # can.
21768 if test x"$enable_tui" = xyes; then
21769 if test -d $srcdir/tui; then
21770 if test "$ac_cv_search_waddstr" != no; then
21771 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21772 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21773 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21774 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21775 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21776 CONFIG_ALL="${CONFIG_ALL} all-tui"
21777 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21778 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21779 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21780 else
21781 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21782 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21783 fi
21784 fi
21785 fi
21786
21787 # Unlike the sim directory, whether a simulator is linked is controlled by
21788 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21789 # This code just checks for a few cases where we'd like to ignore those
21790 # definitions, even when they're present in the '.mt' file. These cases
21791 # are when --disable-sim is specified, or if the simulator directory is
21792 # not part of the source tree.
21793 #
21794 # Check whether --enable-sim or --disable-sim was given.
21795 if test "${enable_sim+set}" = set; then
21796 enableval="$enable_sim"
21797 echo "enable_sim = $enable_sim";
21798 echo "enableval = ${enableval}";
21799 case "${enableval}" in
21800 yes) ignore_sim=false ;;
21801 no) ignore_sim=true ;;
21802 *) ignore_sim=false ;;
21803 esac
21804 else
21805 ignore_sim=false
21806 fi;
21807
21808 if test ! -d "${srcdir}/../sim"; then
21809 ignore_sim=true
21810 fi
21811
21812 if test "${ignore_sim}" = "true"; then
21813 IGNORE_SIM="SIM="
21814 IGNORE_SIM_OBS="SIM_OBS="
21815 else
21816 IGNORE_SIM=""
21817 IGNORE_SIM_OBS=""
21818
21819 cat >>confdefs.h <<\_ACEOF
21820 #define WITH_SIM 1
21821 _ACEOF
21822
21823 fi
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838 # List of host floatformats.
21839
21840 cat >>confdefs.h <<_ACEOF
21841 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21842 _ACEOF
21843
21844
21845 cat >>confdefs.h <<_ACEOF
21846 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21847 _ACEOF
21848
21849
21850 cat >>confdefs.h <<_ACEOF
21851 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21852 _ACEOF
21853
21854
21855 # target_subdir is used by the testsuite to find the target libraries.
21856 target_subdir=
21857 if test "${host}" != "${target}"; then
21858 target_subdir="${target_alias}/"
21859 fi
21860
21861
21862 frags=
21863 if test "${target}" = "${host}"; then
21864 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21865 if test ! -f ${host_makefile_frag}; then
21866 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21867 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21868 { (exit 1); exit 1; }; }
21869 fi
21870 frags="$frags $host_makefile_frag"
21871 else
21872 host_makefile_frag=/dev/null
21873 fi
21874
21875 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21876 if test ! -f ${target_makefile_frag}; then
21877 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21878 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21879 { (exit 1); exit 1; }; }
21880 fi
21881 frags="$frags $target_makefile_frag"
21882
21883
21884
21885
21886
21887 hostfile=`sed -n '
21888 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21889 ' ${host_makefile_frag}`
21890
21891 targetfile=`sed -n '
21892 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21893 ' ${target_makefile_frag}`
21894
21895 if test "${target}" = "${host}"; then
21896 # We pick this up from the host configuration file (.mh) because we
21897 # do not have a native configuration Makefile fragment.
21898 nativefile=`sed -n '
21899 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21900 ' ${host_makefile_frag}`
21901 fi
21902
21903
21904 if test x"${gdb_osabi}" != x ; then
21905
21906 cat >>confdefs.h <<_ACEOF
21907 #define GDB_OSABI_DEFAULT $gdb_osabi
21908 _ACEOF
21909
21910 fi
21911
21912 # Enable multi-ice-gdb-server.
21913 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21914 if test "${enable_multi_ice+set}" = set; then
21915 enableval="$enable_multi_ice"
21916 case $enableval in
21917 yes | no)
21918 ;;
21919 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21920 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21921 { (exit 1); exit 1; }; } ;;
21922 esac
21923 fi;
21924 if test "x$enable_multi_ice" = xyes; then
21925
21926
21927 subdirs="$subdirs multi-ice"
21928
21929 fi
21930
21931 # We only build gdbserver automatically if host and target are the same.
21932 if test "x$target" = "x$host"; then
21933 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21934 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21935 if test "x$build_gdbserver" = xyes; then
21936 echo "$as_me:$LINENO: result: yes" >&5
21937 echo "${ECHO_T}yes" >&6
21938
21939
21940 subdirs="$subdirs gdbserver"
21941
21942 else
21943 echo "$as_me:$LINENO: result: no" >&5
21944 echo "${ECHO_T}no" >&6
21945 fi
21946 fi
21947
21948 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21949 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21950 # to an empty version.
21951
21952 files=
21953 links=
21954
21955 rm -f xm.h
21956 xm_h=""
21957 if test "${hostfile}" != ""; then
21958 xm_h=xm.h
21959 case "${hostfile}" in
21960 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21961 * ) GDB_XM_FILE="${hostfile}"
21962 esac
21963 files="${files} ${GDB_XM_FILE}"
21964 links="${links} xm.h"
21965
21966 cat >>confdefs.h <<_ACEOF
21967 #define GDB_XM_FILE "${GDB_XM_FILE}"
21968 _ACEOF
21969
21970 fi
21971
21972
21973 rm -f tm.h
21974 tm_h=""
21975 if test "${targetfile}" != ""; then
21976 tm_h=tm.h
21977 case "${targetfile}" in
21978 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21979 * ) GDB_TM_FILE="${targetfile}"
21980 esac
21981 files="${files} ${GDB_TM_FILE}"
21982 links="${links} tm.h"
21983
21984 cat >>confdefs.h <<_ACEOF
21985 #define GDB_TM_FILE "${GDB_TM_FILE}"
21986 _ACEOF
21987
21988 fi
21989
21990
21991 rm -f nm.h
21992 nm_h=""
21993 if test "${nativefile}" != ""; then
21994 nm_h=nm.h
21995 case "${nativefile}" in
21996 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21997 * ) GDB_NM_FILE="${nativefile}"
21998 esac
21999 files="${files} ${GDB_NM_FILE}"
22000 links="${links} nm.h"
22001
22002 cat >>confdefs.h <<_ACEOF
22003 #define GDB_NM_FILE "${GDB_NM_FILE}"
22004 _ACEOF
22005
22006 fi
22007
22008
22009 ac_sources="$files"
22010 ac_dests="$links"
22011 while test -n "$ac_sources"; do
22012 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22013 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22014 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22015 done
22016 ac_config_links="$ac_config_links $ac_config_links_1"
22017
22018
22019
22020
22021
22022
22023 cat >>confdefs.h <<\_ACEOF
22024 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
22025 _ACEOF
22026
22027
22028
22029
22030
22031 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22032 if test "${with_libiconv_prefix+set}" = set; then
22033 withval="$with_libiconv_prefix"
22034
22035 for dir in `echo "$withval" | tr : ' '`; do
22036 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
22037 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
22038 done
22039
22040 fi;
22041
22042 echo "$as_me:$LINENO: checking for iconv" >&5
22043 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22044 if test "${am_cv_func_iconv+set}" = set; then
22045 echo $ECHO_N "(cached) $ECHO_C" >&6
22046 else
22047
22048 am_cv_func_iconv="no, consider installing GNU libiconv"
22049 am_cv_lib_iconv=no
22050 cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h. */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22056 #include <stdlib.h>
22057 #include <iconv.h>
22058 int
22059 main ()
22060 {
22061 iconv_t cd = iconv_open("","");
22062 iconv(cd,NULL,NULL,NULL,NULL);
22063 iconv_close(cd);
22064 ;
22065 return 0;
22066 }
22067 _ACEOF
22068 rm -f conftest.$ac_objext conftest$ac_exeext
22069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22070 (eval $ac_link) 2>conftest.er1
22071 ac_status=$?
22072 grep -v '^ *+' conftest.er1 >conftest.err
22073 rm -f conftest.er1
22074 cat conftest.err >&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); } &&
22077 { ac_try='test -z "$ac_c_werror_flag"
22078 || test ! -s conftest.err'
22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22081 ac_status=$?
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; } &&
22084 { ac_try='test -s conftest$ac_exeext'
22085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086 (eval $ac_try) 2>&5
22087 ac_status=$?
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); }; }; then
22090 am_cv_func_iconv=yes
22091 else
22092 echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22094
22095 fi
22096 rm -f conftest.err conftest.$ac_objext \
22097 conftest$ac_exeext conftest.$ac_ext
22098 if test "$am_cv_func_iconv" != yes; then
22099 am_save_LIBS="$LIBS"
22100 LIBS="$LIBS -liconv"
22101 cat >conftest.$ac_ext <<_ACEOF
22102 /* confdefs.h. */
22103 _ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22107 #include <stdlib.h>
22108 #include <iconv.h>
22109 int
22110 main ()
22111 {
22112 iconv_t cd = iconv_open("","");
22113 iconv(cd,NULL,NULL,NULL,NULL);
22114 iconv_close(cd);
22115 ;
22116 return 0;
22117 }
22118 _ACEOF
22119 rm -f conftest.$ac_objext conftest$ac_exeext
22120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22121 (eval $ac_link) 2>conftest.er1
22122 ac_status=$?
22123 grep -v '^ *+' conftest.er1 >conftest.err
22124 rm -f conftest.er1
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } &&
22128 { ac_try='test -z "$ac_c_werror_flag"
22129 || test ! -s conftest.err'
22130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22132 ac_status=$?
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; } &&
22135 { ac_try='test -s conftest$ac_exeext'
22136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137 (eval $ac_try) 2>&5
22138 ac_status=$?
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; }; then
22141 am_cv_lib_iconv=yes
22142 am_cv_func_iconv=yes
22143 else
22144 echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22146
22147 fi
22148 rm -f conftest.err conftest.$ac_objext \
22149 conftest$ac_exeext conftest.$ac_ext
22150 LIBS="$am_save_LIBS"
22151 fi
22152
22153 fi
22154 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22155 echo "${ECHO_T}$am_cv_func_iconv" >&6
22156 if test "$am_cv_func_iconv" = yes; then
22157
22158 cat >>confdefs.h <<\_ACEOF
22159 #define HAVE_ICONV 1
22160 _ACEOF
22161
22162 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22163 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22164 if test "${am_cv_proto_iconv+set}" = set; then
22165 echo $ECHO_N "(cached) $ECHO_C" >&6
22166 else
22167
22168 cat >conftest.$ac_ext <<_ACEOF
22169 /* confdefs.h. */
22170 _ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22174
22175 #include <stdlib.h>
22176 #include <iconv.h>
22177 extern
22178 #ifdef __cplusplus
22179 "C"
22180 #endif
22181 #if defined(__STDC__) || defined(__cplusplus)
22182 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22183 #else
22184 size_t iconv();
22185 #endif
22186
22187 int
22188 main ()
22189 {
22190
22191 ;
22192 return 0;
22193 }
22194 _ACEOF
22195 rm -f conftest.$ac_objext
22196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22197 (eval $ac_compile) 2>conftest.er1
22198 ac_status=$?
22199 grep -v '^ *+' conftest.er1 >conftest.err
22200 rm -f conftest.er1
22201 cat conftest.err >&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } &&
22204 { ac_try='test -z "$ac_c_werror_flag"
22205 || test ! -s conftest.err'
22206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207 (eval $ac_try) 2>&5
22208 ac_status=$?
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); }; } &&
22211 { ac_try='test -s conftest.$ac_objext'
22212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213 (eval $ac_try) 2>&5
22214 ac_status=$?
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); }; }; then
22217 am_cv_proto_iconv_arg1=""
22218 else
22219 echo "$as_me: failed program was:" >&5
22220 sed 's/^/| /' conftest.$ac_ext >&5
22221
22222 am_cv_proto_iconv_arg1="const"
22223 fi
22224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22225 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);"
22226 fi
22227
22228 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22229 echo "$as_me:$LINENO: result: ${ac_t:-
22230 }$am_cv_proto_iconv" >&5
22231 echo "${ECHO_T}${ac_t:-
22232 }$am_cv_proto_iconv" >&6
22233
22234 cat >>confdefs.h <<_ACEOF
22235 #define ICONV_CONST $am_cv_proto_iconv_arg1
22236 _ACEOF
22237
22238 fi
22239 LIBICONV=
22240 if test "$am_cv_lib_iconv" = yes; then
22241 LIBICONV="-liconv"
22242 fi
22243
22244
22245
22246 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
22247 ac_config_commands="$ac_config_commands default"
22248 cat >confcache <<\_ACEOF
22249 # This file is a shell script that caches the results of configure
22250 # tests run on this system so they can be shared between configure
22251 # scripts and configure runs, see configure's option --config-cache.
22252 # It is not useful on other systems. If it contains results you don't
22253 # want to keep, you may remove or edit it.
22254 #
22255 # config.status only pays attention to the cache file if you give it
22256 # the --recheck option to rerun configure.
22257 #
22258 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22259 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22260 # following values.
22261
22262 _ACEOF
22263
22264 # The following way of writing the cache mishandles newlines in values,
22265 # but we know of no workaround that is simple, portable, and efficient.
22266 # So, don't put newlines in cache variables' values.
22267 # Ultrix sh set writes to stderr and can't be redirected directly,
22268 # and sets the high bit in the cache file unless we assign to the vars.
22269 {
22270 (set) 2>&1 |
22271 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22272 *ac_space=\ *)
22273 # `set' does not quote correctly, so add quotes (double-quote
22274 # substitution turns \\\\ into \\, and sed turns \\ into \).
22275 sed -n \
22276 "s/'/'\\\\''/g;
22277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22278 ;;
22279 *)
22280 # `set' quotes correctly as required by POSIX, so do not add quotes.
22281 sed -n \
22282 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22283 ;;
22284 esac;
22285 } |
22286 sed '
22287 t clear
22288 : clear
22289 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22290 t end
22291 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22292 : end' >>confcache
22293 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22294 if test -w $cache_file; then
22295 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22296 cat confcache >$cache_file
22297 else
22298 echo "not updating unwritable cache $cache_file"
22299 fi
22300 fi
22301 rm -f confcache
22302
22303 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22304 # Let make expand exec_prefix.
22305 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22306
22307 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22308 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22309 # trailing colons and then remove the whole line if VPATH becomes empty
22310 # (actually we leave an empty line to preserve line numbers).
22311 if test "x$srcdir" = x.; then
22312 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22313 s/:*\$(srcdir):*/:/;
22314 s/:*\${srcdir}:*/:/;
22315 s/:*@srcdir@:*/:/;
22316 s/^\([^=]*=[ ]*\):*/\1/;
22317 s/:*$//;
22318 s/^[^=]*=[ ]*$//;
22319 }'
22320 fi
22321
22322 DEFS=-DHAVE_CONFIG_H
22323
22324 ac_libobjs=
22325 ac_ltlibobjs=
22326 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22327 # 1. Remove the extension, and $U if already installed.
22328 ac_i=`echo "$ac_i" |
22329 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22330 # 2. Add them.
22331 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22332 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22333 done
22334 LIBOBJS=$ac_libobjs
22335
22336 LTLIBOBJS=$ac_ltlibobjs
22337
22338
22339 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22340 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22341 Usually this means the macro was only invoked conditionally." >&5
22342 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22343 Usually this means the macro was only invoked conditionally." >&2;}
22344 { (exit 1); exit 1; }; }
22345 fi
22346
22347 : ${CONFIG_STATUS=./config.status}
22348 ac_clean_files_save=$ac_clean_files
22349 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22350 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22351 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22352 cat >$CONFIG_STATUS <<_ACEOF
22353 #! $SHELL
22354 # Generated by $as_me.
22355 # Run this file to recreate the current configuration.
22356 # Compiler output produced by configure, useful for debugging
22357 # configure, is in config.log if it exists.
22358
22359 debug=false
22360 ac_cs_recheck=false
22361 ac_cs_silent=false
22362 SHELL=\${CONFIG_SHELL-$SHELL}
22363 _ACEOF
22364
22365 cat >>$CONFIG_STATUS <<\_ACEOF
22366 ## --------------------- ##
22367 ## M4sh Initialization. ##
22368 ## --------------------- ##
22369
22370 # Be Bourne compatible
22371 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22372 emulate sh
22373 NULLCMD=:
22374 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22375 # is contrary to our usage. Disable this feature.
22376 alias -g '${1+"$@"}'='"$@"'
22377 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22378 set -o posix
22379 fi
22380 DUALCASE=1; export DUALCASE # for MKS sh
22381
22382 # Support unset when possible.
22383 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22384 as_unset=unset
22385 else
22386 as_unset=false
22387 fi
22388
22389
22390 # Work around bugs in pre-3.0 UWIN ksh.
22391 $as_unset ENV MAIL MAILPATH
22392 PS1='$ '
22393 PS2='> '
22394 PS4='+ '
22395
22396 # NLS nuisances.
22397 for as_var in \
22398 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22399 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22400 LC_TELEPHONE LC_TIME
22401 do
22402 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22403 eval $as_var=C; export $as_var
22404 else
22405 $as_unset $as_var
22406 fi
22407 done
22408
22409 # Required to use basename.
22410 if expr a : '\(a\)' >/dev/null 2>&1; then
22411 as_expr=expr
22412 else
22413 as_expr=false
22414 fi
22415
22416 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22417 as_basename=basename
22418 else
22419 as_basename=false
22420 fi
22421
22422
22423 # Name of the executable.
22424 as_me=`$as_basename "$0" ||
22425 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22426 X"$0" : 'X\(//\)$' \| \
22427 X"$0" : 'X\(/\)$' \| \
22428 . : '\(.\)' 2>/dev/null ||
22429 echo X/"$0" |
22430 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22431 /^X\/\(\/\/\)$/{ s//\1/; q; }
22432 /^X\/\(\/\).*/{ s//\1/; q; }
22433 s/.*/./; q'`
22434
22435
22436 # PATH needs CR, and LINENO needs CR and PATH.
22437 # Avoid depending upon Character Ranges.
22438 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22439 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22440 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22441 as_cr_digits='0123456789'
22442 as_cr_alnum=$as_cr_Letters$as_cr_digits
22443
22444 # The user is always right.
22445 if test "${PATH_SEPARATOR+set}" != set; then
22446 echo "#! /bin/sh" >conf$$.sh
22447 echo "exit 0" >>conf$$.sh
22448 chmod +x conf$$.sh
22449 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22450 PATH_SEPARATOR=';'
22451 else
22452 PATH_SEPARATOR=:
22453 fi
22454 rm -f conf$$.sh
22455 fi
22456
22457
22458 as_lineno_1=$LINENO
22459 as_lineno_2=$LINENO
22460 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22461 test "x$as_lineno_1" != "x$as_lineno_2" &&
22462 test "x$as_lineno_3" = "x$as_lineno_2" || {
22463 # Find who we are. Look in the path if we contain no path at all
22464 # relative or not.
22465 case $0 in
22466 *[\\/]* ) as_myself=$0 ;;
22467 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22468 for as_dir in $PATH
22469 do
22470 IFS=$as_save_IFS
22471 test -z "$as_dir" && as_dir=.
22472 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22473 done
22474
22475 ;;
22476 esac
22477 # We did not find ourselves, most probably we were run as `sh COMMAND'
22478 # in which case we are not to be found in the path.
22479 if test "x$as_myself" = x; then
22480 as_myself=$0
22481 fi
22482 if test ! -f "$as_myself"; then
22483 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22484 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22485 { (exit 1); exit 1; }; }
22486 fi
22487 case $CONFIG_SHELL in
22488 '')
22489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22490 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22491 do
22492 IFS=$as_save_IFS
22493 test -z "$as_dir" && as_dir=.
22494 for as_base in sh bash ksh sh5; do
22495 case $as_dir in
22496 /*)
22497 if ("$as_dir/$as_base" -c '
22498 as_lineno_1=$LINENO
22499 as_lineno_2=$LINENO
22500 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22501 test "x$as_lineno_1" != "x$as_lineno_2" &&
22502 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22503 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22504 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22505 CONFIG_SHELL=$as_dir/$as_base
22506 export CONFIG_SHELL
22507 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22508 fi;;
22509 esac
22510 done
22511 done
22512 ;;
22513 esac
22514
22515 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22516 # uniformly replaced by the line number. The first 'sed' inserts a
22517 # line-number line before each line; the second 'sed' does the real
22518 # work. The second script uses 'N' to pair each line-number line
22519 # with the numbered line, and appends trailing '-' during
22520 # substitution so that $LINENO is not a special case at line end.
22521 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22522 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22523 sed '=' <$as_myself |
22524 sed '
22525 N
22526 s,$,-,
22527 : loop
22528 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22529 t loop
22530 s,-$,,
22531 s,^['$as_cr_digits']*\n,,
22532 ' >$as_me.lineno &&
22533 chmod +x $as_me.lineno ||
22534 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22535 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22536 { (exit 1); exit 1; }; }
22537
22538 # Don't try to exec as it changes $[0], causing all sort of problems
22539 # (the dirname of $[0] is not the place where we might find the
22540 # original and so on. Autoconf is especially sensible to this).
22541 . ./$as_me.lineno
22542 # Exit status is that of the last command.
22543 exit
22544 }
22545
22546
22547 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22548 *c*,-n*) ECHO_N= ECHO_C='
22549 ' ECHO_T=' ' ;;
22550 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22551 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22552 esac
22553
22554 if expr a : '\(a\)' >/dev/null 2>&1; then
22555 as_expr=expr
22556 else
22557 as_expr=false
22558 fi
22559
22560 rm -f conf$$ conf$$.exe conf$$.file
22561 echo >conf$$.file
22562 if ln -s conf$$.file conf$$ 2>/dev/null; then
22563 # We could just check for DJGPP; but this test a) works b) is more generic
22564 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22565 if test -f conf$$.exe; then
22566 # Don't use ln at all; we don't have any links
22567 as_ln_s='cp -p'
22568 else
22569 as_ln_s='ln -s'
22570 fi
22571 elif ln conf$$.file conf$$ 2>/dev/null; then
22572 as_ln_s=ln
22573 else
22574 as_ln_s='cp -p'
22575 fi
22576 rm -f conf$$ conf$$.exe conf$$.file
22577
22578 if mkdir -p . 2>/dev/null; then
22579 as_mkdir_p=:
22580 else
22581 test -d ./-p && rmdir ./-p
22582 as_mkdir_p=false
22583 fi
22584
22585 as_executable_p="test -f"
22586
22587 # Sed expression to map a string onto a valid CPP name.
22588 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22589
22590 # Sed expression to map a string onto a valid variable name.
22591 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22592
22593
22594 # IFS
22595 # We need space, tab and new line, in precisely that order.
22596 as_nl='
22597 '
22598 IFS=" $as_nl"
22599
22600 # CDPATH.
22601 $as_unset CDPATH
22602
22603 exec 6>&1
22604
22605 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22606 # report actual input values of CONFIG_FILES etc. instead of their
22607 # values after options handling. Logging --version etc. is OK.
22608 exec 5>>config.log
22609 {
22610 echo
22611 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22612 ## Running $as_me. ##
22613 _ASBOX
22614 } >&5
22615 cat >&5 <<_CSEOF
22616
22617 This file was extended by $as_me, which was
22618 generated by GNU Autoconf 2.59. Invocation command line was
22619
22620 CONFIG_FILES = $CONFIG_FILES
22621 CONFIG_HEADERS = $CONFIG_HEADERS
22622 CONFIG_LINKS = $CONFIG_LINKS
22623 CONFIG_COMMANDS = $CONFIG_COMMANDS
22624 $ $0 $@
22625
22626 _CSEOF
22627 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22628 echo >&5
22629 _ACEOF
22630
22631 # Files that config.status was made for.
22632 if test -n "$ac_config_files"; then
22633 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22634 fi
22635
22636 if test -n "$ac_config_headers"; then
22637 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22638 fi
22639
22640 if test -n "$ac_config_links"; then
22641 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22642 fi
22643
22644 if test -n "$ac_config_commands"; then
22645 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22646 fi
22647
22648 cat >>$CONFIG_STATUS <<\_ACEOF
22649
22650 ac_cs_usage="\
22651 \`$as_me' instantiates files from templates according to the
22652 current configuration.
22653
22654 Usage: $0 [OPTIONS] [FILE]...
22655
22656 -h, --help print this help, then exit
22657 -V, --version print version number, then exit
22658 -q, --quiet do not print progress messages
22659 -d, --debug don't remove temporary files
22660 --recheck update $as_me by reconfiguring in the same conditions
22661 --file=FILE[:TEMPLATE]
22662 instantiate the configuration file FILE
22663 --header=FILE[:TEMPLATE]
22664 instantiate the configuration header FILE
22665
22666 Configuration files:
22667 $config_files
22668
22669 Configuration headers:
22670 $config_headers
22671
22672 Configuration links:
22673 $config_links
22674
22675 Configuration commands:
22676 $config_commands
22677
22678 Report bugs to <bug-autoconf@gnu.org>."
22679 _ACEOF
22680
22681 cat >>$CONFIG_STATUS <<_ACEOF
22682 ac_cs_version="\\
22683 config.status
22684 configured by $0, generated by GNU Autoconf 2.59,
22685 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22686
22687 Copyright (C) 2003 Free Software Foundation, Inc.
22688 This config.status script is free software; the Free Software Foundation
22689 gives unlimited permission to copy, distribute and modify it."
22690 srcdir=$srcdir
22691 INSTALL="$INSTALL"
22692 _ACEOF
22693
22694 cat >>$CONFIG_STATUS <<\_ACEOF
22695 # If no file are specified by the user, then we need to provide default
22696 # value. By we need to know if files were specified by the user.
22697 ac_need_defaults=:
22698 while test $# != 0
22699 do
22700 case $1 in
22701 --*=*)
22702 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22703 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22704 ac_shift=:
22705 ;;
22706 -*)
22707 ac_option=$1
22708 ac_optarg=$2
22709 ac_shift=shift
22710 ;;
22711 *) # This is not an option, so the user has probably given explicit
22712 # arguments.
22713 ac_option=$1
22714 ac_need_defaults=false;;
22715 esac
22716
22717 case $ac_option in
22718 # Handling of the options.
22719 _ACEOF
22720 cat >>$CONFIG_STATUS <<\_ACEOF
22721 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22722 ac_cs_recheck=: ;;
22723 --version | --vers* | -V )
22724 echo "$ac_cs_version"; exit 0 ;;
22725 --he | --h)
22726 # Conflict between --help and --header
22727 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22728 Try \`$0 --help' for more information." >&5
22729 echo "$as_me: error: ambiguous option: $1
22730 Try \`$0 --help' for more information." >&2;}
22731 { (exit 1); exit 1; }; };;
22732 --help | --hel | -h )
22733 echo "$ac_cs_usage"; exit 0 ;;
22734 --debug | --d* | -d )
22735 debug=: ;;
22736 --file | --fil | --fi | --f )
22737 $ac_shift
22738 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22739 ac_need_defaults=false;;
22740 --header | --heade | --head | --hea )
22741 $ac_shift
22742 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22743 ac_need_defaults=false;;
22744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22745 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22746 ac_cs_silent=: ;;
22747
22748 # This is an error.
22749 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22750 Try \`$0 --help' for more information." >&5
22751 echo "$as_me: error: unrecognized option: $1
22752 Try \`$0 --help' for more information." >&2;}
22753 { (exit 1); exit 1; }; } ;;
22754
22755 *) ac_config_targets="$ac_config_targets $1" ;;
22756
22757 esac
22758 shift
22759 done
22760
22761 ac_configure_extra_args=
22762
22763 if $ac_cs_silent; then
22764 exec 6>/dev/null
22765 ac_configure_extra_args="$ac_configure_extra_args --silent"
22766 fi
22767
22768 _ACEOF
22769 cat >>$CONFIG_STATUS <<_ACEOF
22770 if \$ac_cs_recheck; then
22771 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22772 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22773 fi
22774
22775 _ACEOF
22776
22777 cat >>$CONFIG_STATUS <<_ACEOF
22778 #
22779 # INIT-COMMANDS section.
22780 #
22781
22782
22783 GCC="$GCC"
22784 CC="$CC"
22785 acx_cv_header_stdint="$acx_cv_header_stdint"
22786 acx_cv_type_int8_t="$acx_cv_type_int8_t"
22787 acx_cv_type_int16_t="$acx_cv_type_int16_t"
22788 acx_cv_type_int32_t="$acx_cv_type_int32_t"
22789 acx_cv_type_int64_t="$acx_cv_type_int64_t"
22790 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
22791 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
22792 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
22793 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
22794 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
22795 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
22796 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
22797 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
22798 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
22799
22800
22801 gdb_host_cpu=$gdb_host_cpu
22802 gdb_target_cpu=$gdb_target_cpu
22803 nativefile=$nativefile
22804
22805
22806 _ACEOF
22807
22808
22809
22810 cat >>$CONFIG_STATUS <<\_ACEOF
22811 for ac_config_target in $ac_config_targets
22812 do
22813 case "$ac_config_target" in
22814 # Handling of arguments.
22815 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22816 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22817 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22818 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
22819 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22820 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22821 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22822 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22823 { (exit 1); exit 1; }; };;
22824 esac
22825 done
22826
22827 # If the user did not use the arguments to specify the items to instantiate,
22828 # then the envvar interface is used. Set only those that are not.
22829 # We use the long form for the default assignment because of an extremely
22830 # bizarre bug on SunOS 4.1.3.
22831 if $ac_need_defaults; then
22832 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22833 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22834 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22835 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22836 fi
22837
22838 # Have a temporary directory for convenience. Make it in the build tree
22839 # simply because there is no reason to put it here, and in addition,
22840 # creating and moving files from /tmp can sometimes cause problems.
22841 # Create a temporary directory, and hook for its removal unless debugging.
22842 $debug ||
22843 {
22844 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22845 trap '{ (exit 1); exit 1; }' 1 2 13 15
22846 }
22847
22848 # Create a (secure) tmp directory for tmp files.
22849
22850 {
22851 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22852 test -n "$tmp" && test -d "$tmp"
22853 } ||
22854 {
22855 tmp=./confstat$$-$RANDOM
22856 (umask 077 && mkdir $tmp)
22857 } ||
22858 {
22859 echo "$me: cannot create a temporary directory in ." >&2
22860 { (exit 1); exit 1; }
22861 }
22862
22863 _ACEOF
22864
22865 cat >>$CONFIG_STATUS <<_ACEOF
22866
22867 #
22868 # CONFIG_FILES section.
22869 #
22870
22871 # No need to generate the scripts if there are no CONFIG_FILES.
22872 # This happens for instance when ./config.status config.h
22873 if test -n "\$CONFIG_FILES"; then
22874 # Protect against being on the right side of a sed subst in config.status.
22875 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22876 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22877 s,@SHELL@,$SHELL,;t t
22878 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22879 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22880 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22881 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22882 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22883 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22884 s,@exec_prefix@,$exec_prefix,;t t
22885 s,@prefix@,$prefix,;t t
22886 s,@program_transform_name@,$program_transform_name,;t t
22887 s,@bindir@,$bindir,;t t
22888 s,@sbindir@,$sbindir,;t t
22889 s,@libexecdir@,$libexecdir,;t t
22890 s,@datadir@,$datadir,;t t
22891 s,@sysconfdir@,$sysconfdir,;t t
22892 s,@sharedstatedir@,$sharedstatedir,;t t
22893 s,@localstatedir@,$localstatedir,;t t
22894 s,@libdir@,$libdir,;t t
22895 s,@includedir@,$includedir,;t t
22896 s,@oldincludedir@,$oldincludedir,;t t
22897 s,@infodir@,$infodir,;t t
22898 s,@mandir@,$mandir,;t t
22899 s,@build_alias@,$build_alias,;t t
22900 s,@host_alias@,$host_alias,;t t
22901 s,@target_alias@,$target_alias,;t t
22902 s,@DEFS@,$DEFS,;t t
22903 s,@ECHO_C@,$ECHO_C,;t t
22904 s,@ECHO_N@,$ECHO_N,;t t
22905 s,@ECHO_T@,$ECHO_T,;t t
22906 s,@LIBS@,$LIBS,;t t
22907 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22908 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22909 s,@MAINT@,$MAINT,;t t
22910 s,@CC@,$CC,;t t
22911 s,@CFLAGS@,$CFLAGS,;t t
22912 s,@LDFLAGS@,$LDFLAGS,;t t
22913 s,@CPPFLAGS@,$CPPFLAGS,;t t
22914 s,@ac_ct_CC@,$ac_ct_CC,;t t
22915 s,@EXEEXT@,$EXEEXT,;t t
22916 s,@OBJEXT@,$OBJEXT,;t t
22917 s,@CPP@,$CPP,;t t
22918 s,@EGREP@,$EGREP,;t t
22919 s,@build@,$build,;t t
22920 s,@build_cpu@,$build_cpu,;t t
22921 s,@build_vendor@,$build_vendor,;t t
22922 s,@build_os@,$build_os,;t t
22923 s,@host@,$host,;t t
22924 s,@host_cpu@,$host_cpu,;t t
22925 s,@host_vendor@,$host_vendor,;t t
22926 s,@host_os@,$host_os,;t t
22927 s,@target@,$target,;t t
22928 s,@target_cpu@,$target_cpu,;t t
22929 s,@target_vendor@,$target_vendor,;t t
22930 s,@target_os@,$target_os,;t t
22931 s,@USE_NLS@,$USE_NLS,;t t
22932 s,@LIBINTL@,$LIBINTL,;t t
22933 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
22934 s,@INCINTL@,$INCINTL,;t t
22935 s,@XGETTEXT@,$XGETTEXT,;t t
22936 s,@GMSGFMT@,$GMSGFMT,;t t
22937 s,@POSUB@,$POSUB,;t t
22938 s,@CATALOGS@,$CATALOGS,;t t
22939 s,@DATADIRNAME@,$DATADIRNAME,;t t
22940 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22941 s,@GENCAT@,$GENCAT,;t t
22942 s,@CATOBJEXT@,$CATOBJEXT,;t t
22943 s,@localedir@,$localedir,;t t
22944 s,@PACKAGE@,$PACKAGE,;t t
22945 s,@subdirs@,$subdirs,;t t
22946 s,@AWK@,$AWK,;t t
22947 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22948 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22949 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22950 s,@LN_S@,$LN_S,;t t
22951 s,@RANLIB@,$RANLIB,;t t
22952 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22953 s,@YACC@,$YACC,;t t
22954 s,@AR@,$AR,;t t
22955 s,@ac_ct_AR@,$ac_ct_AR,;t t
22956 s,@DLLTOOL@,$DLLTOOL,;t t
22957 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22958 s,@WINDRES@,$WINDRES,;t t
22959 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22960 s,@MIG@,$MIG,;t t
22961 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22962 s,@ALLOCA@,$ALLOCA,;t t
22963 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22964 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22965 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22966 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22967 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22968 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22969 s,@WIN32LIBS@,$WIN32LIBS,;t t
22970 s,@LIBGUI@,$LIBGUI,;t t
22971 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22972 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22973 s,@TCL_VERSION@,$TCL_VERSION,;t t
22974 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22975 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22976 s,@TCL_CC@,$TCL_CC,;t t
22977 s,@TCL_DEFS@,$TCL_DEFS,;t t
22978 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22979 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22980 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22981 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22982 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22983 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22984 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22985 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22986 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22987 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22988 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22989 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22990 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22991 s,@TK_VERSION@,$TK_VERSION,;t t
22992 s,@TK_DEFS@,$TK_DEFS,;t t
22993 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22994 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22995 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22996 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22997 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22998 s,@TCLHDIR@,$TCLHDIR,;t t
22999 s,@TKHDIR@,$TKHDIR,;t t
23000 s,@ITCLHDIR@,$ITCLHDIR,;t t
23001 s,@ITKHDIR@,$ITKHDIR,;t t
23002 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
23003 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
23004 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
23005 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
23006 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
23007 s,@ITK_VERSION@,$ITK_VERSION,;t t
23008 s,@ITK_DEFS@,$ITK_DEFS,;t t
23009 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
23010 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
23011 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
23012 s,@X_CFLAGS@,$X_CFLAGS,;t t
23013 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
23014 s,@X_LIBS@,$X_LIBS,;t t
23015 s,@TCL_DEPS@,$TCL_DEPS,;t t
23016 s,@TK_DEPS@,$TK_DEPS,;t t
23017 s,@ITCLLIB@,$ITCLLIB,;t t
23018 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
23019 s,@ITKLIB@,$ITKLIB,;t t
23020 s,@ITK_DEPS@,$ITK_DEPS,;t t
23021 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
23022 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
23023 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
23024 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
23025 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
23026 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
23027 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
23028 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
23029 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
23030 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
23031 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
23032 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
23033 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
23034 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
23035 s,@target_subdir@,$target_subdir,;t t
23036 s,@frags@,$frags,;t t
23037 s,@xm_h@,$xm_h,;t t
23038 s,@tm_h@,$tm_h,;t t
23039 s,@nm_h@,$nm_h,;t t
23040 s,@LIBICONV@,$LIBICONV,;t t
23041 s,@LIBOBJS@,$LIBOBJS,;t t
23042 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23043 /@host_makefile_frag@/r $host_makefile_frag
23044 s,@host_makefile_frag@,,;t t
23045 /@target_makefile_frag@/r $target_makefile_frag
23046 s,@target_makefile_frag@,,;t t
23047 CEOF
23048
23049 _ACEOF
23050
23051 cat >>$CONFIG_STATUS <<\_ACEOF
23052 # Split the substitutions into bite-sized pieces for seds with
23053 # small command number limits, like on Digital OSF/1 and HP-UX.
23054 ac_max_sed_lines=48
23055 ac_sed_frag=1 # Number of current file.
23056 ac_beg=1 # First line for current file.
23057 ac_end=$ac_max_sed_lines # Line after last line for current file.
23058 ac_more_lines=:
23059 ac_sed_cmds=
23060 while $ac_more_lines; do
23061 if test $ac_beg -gt 1; then
23062 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23063 else
23064 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23065 fi
23066 if test ! -s $tmp/subs.frag; then
23067 ac_more_lines=false
23068 else
23069 # The purpose of the label and of the branching condition is to
23070 # speed up the sed processing (if there are no `@' at all, there
23071 # is no need to browse any of the substitutions).
23072 # These are the two extra sed commands mentioned above.
23073 (echo ':t
23074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23075 if test -z "$ac_sed_cmds"; then
23076 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23077 else
23078 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23079 fi
23080 ac_sed_frag=`expr $ac_sed_frag + 1`
23081 ac_beg=$ac_end
23082 ac_end=`expr $ac_end + $ac_max_sed_lines`
23083 fi
23084 done
23085 if test -z "$ac_sed_cmds"; then
23086 ac_sed_cmds=cat
23087 fi
23088 fi # test -n "$CONFIG_FILES"
23089
23090 _ACEOF
23091 cat >>$CONFIG_STATUS <<\_ACEOF
23092 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23094 case $ac_file in
23095 - | *:- | *:-:* ) # input from stdin
23096 cat >$tmp/stdin
23097 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23099 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23101 * ) ac_file_in=$ac_file.in ;;
23102 esac
23103
23104 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23105 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23106 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23107 X"$ac_file" : 'X\(//\)[^/]' \| \
23108 X"$ac_file" : 'X\(//\)$' \| \
23109 X"$ac_file" : 'X\(/\)' \| \
23110 . : '\(.\)' 2>/dev/null ||
23111 echo X"$ac_file" |
23112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23114 /^X\(\/\/\)$/{ s//\1/; q; }
23115 /^X\(\/\).*/{ s//\1/; q; }
23116 s/.*/./; q'`
23117 { if $as_mkdir_p; then
23118 mkdir -p "$ac_dir"
23119 else
23120 as_dir="$ac_dir"
23121 as_dirs=
23122 while test ! -d "$as_dir"; do
23123 as_dirs="$as_dir $as_dirs"
23124 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23126 X"$as_dir" : 'X\(//\)[^/]' \| \
23127 X"$as_dir" : 'X\(//\)$' \| \
23128 X"$as_dir" : 'X\(/\)' \| \
23129 . : '\(.\)' 2>/dev/null ||
23130 echo X"$as_dir" |
23131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23133 /^X\(\/\/\)$/{ s//\1/; q; }
23134 /^X\(\/\).*/{ s//\1/; q; }
23135 s/.*/./; q'`
23136 done
23137 test ! -n "$as_dirs" || mkdir $as_dirs
23138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23139 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23140 { (exit 1); exit 1; }; }; }
23141
23142 ac_builddir=.
23143
23144 if test "$ac_dir" != .; then
23145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23146 # A "../" for each directory in $ac_dir_suffix.
23147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23148 else
23149 ac_dir_suffix= ac_top_builddir=
23150 fi
23151
23152 case $srcdir in
23153 .) # No --srcdir option. We are building in place.
23154 ac_srcdir=.
23155 if test -z "$ac_top_builddir"; then
23156 ac_top_srcdir=.
23157 else
23158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23159 fi ;;
23160 [\\/]* | ?:[\\/]* ) # Absolute path.
23161 ac_srcdir=$srcdir$ac_dir_suffix;
23162 ac_top_srcdir=$srcdir ;;
23163 *) # Relative path.
23164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23165 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23166 esac
23167
23168 # Do not use `cd foo && pwd` to compute absolute paths, because
23169 # the directories may not exist.
23170 case `pwd` in
23171 .) ac_abs_builddir="$ac_dir";;
23172 *)
23173 case "$ac_dir" in
23174 .) ac_abs_builddir=`pwd`;;
23175 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23176 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23177 esac;;
23178 esac
23179 case $ac_abs_builddir in
23180 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23181 *)
23182 case ${ac_top_builddir}. in
23183 .) ac_abs_top_builddir=$ac_abs_builddir;;
23184 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23185 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23186 esac;;
23187 esac
23188 case $ac_abs_builddir in
23189 .) ac_abs_srcdir=$ac_srcdir;;
23190 *)
23191 case $ac_srcdir in
23192 .) ac_abs_srcdir=$ac_abs_builddir;;
23193 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23194 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23195 esac;;
23196 esac
23197 case $ac_abs_builddir in
23198 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23199 *)
23200 case $ac_top_srcdir in
23201 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23202 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23203 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23204 esac;;
23205 esac
23206
23207
23208 case $INSTALL in
23209 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23210 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23211 esac
23212
23213 if test x"$ac_file" != x-; then
23214 { echo "$as_me:$LINENO: creating $ac_file" >&5
23215 echo "$as_me: creating $ac_file" >&6;}
23216 rm -f "$ac_file"
23217 fi
23218 # Let's still pretend it is `configure' which instantiates (i.e., don't
23219 # use $as_me), people would be surprised to read:
23220 # /* config.h. Generated by config.status. */
23221 if test x"$ac_file" = x-; then
23222 configure_input=
23223 else
23224 configure_input="$ac_file. "
23225 fi
23226 configure_input=$configure_input"Generated from `echo $ac_file_in |
23227 sed 's,.*/,,'` by configure."
23228
23229 # First look for the input files in the build tree, otherwise in the
23230 # src tree.
23231 ac_file_inputs=`IFS=:
23232 for f in $ac_file_in; do
23233 case $f in
23234 -) echo $tmp/stdin ;;
23235 [\\/$]*)
23236 # Absolute (can't be DOS-style, as IFS=:)
23237 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23238 echo "$as_me: error: cannot find input file: $f" >&2;}
23239 { (exit 1); exit 1; }; }
23240 echo "$f";;
23241 *) # Relative
23242 if test -f "$f"; then
23243 # Build tree
23244 echo "$f"
23245 elif test -f "$srcdir/$f"; then
23246 # Source tree
23247 echo "$srcdir/$f"
23248 else
23249 # /dev/null tree
23250 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23251 echo "$as_me: error: cannot find input file: $f" >&2;}
23252 { (exit 1); exit 1; }; }
23253 fi;;
23254 esac
23255 done` || { (exit 1); exit 1; }
23256 _ACEOF
23257 cat >>$CONFIG_STATUS <<_ACEOF
23258 sed "$ac_vpsub
23259 $extrasub
23260 _ACEOF
23261 cat >>$CONFIG_STATUS <<\_ACEOF
23262 :t
23263 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23264 s,@configure_input@,$configure_input,;t t
23265 s,@srcdir@,$ac_srcdir,;t t
23266 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23267 s,@top_srcdir@,$ac_top_srcdir,;t t
23268 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23269 s,@builddir@,$ac_builddir,;t t
23270 s,@abs_builddir@,$ac_abs_builddir,;t t
23271 s,@top_builddir@,$ac_top_builddir,;t t
23272 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23273 s,@INSTALL@,$ac_INSTALL,;t t
23274 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23275 rm -f $tmp/stdin
23276 if test x"$ac_file" != x-; then
23277 mv $tmp/out $ac_file
23278 else
23279 cat $tmp/out
23280 rm -f $tmp/out
23281 fi
23282
23283 done
23284 _ACEOF
23285 cat >>$CONFIG_STATUS <<\_ACEOF
23286
23287 #
23288 # CONFIG_HEADER section.
23289 #
23290
23291 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23292 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23293 #
23294 # ac_d sets the value in "#define NAME VALUE" lines.
23295 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23296 ac_dB='[ ].*$,\1#\2'
23297 ac_dC=' '
23298 ac_dD=',;t'
23299 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23300 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23301 ac_uB='$,\1#\2define\3'
23302 ac_uC=' '
23303 ac_uD=',;t'
23304
23305 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23306 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23307 case $ac_file in
23308 - | *:- | *:-:* ) # input from stdin
23309 cat >$tmp/stdin
23310 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23312 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23313 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23314 * ) ac_file_in=$ac_file.in ;;
23315 esac
23316
23317 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23318 echo "$as_me: creating $ac_file" >&6;}
23319
23320 # First look for the input files in the build tree, otherwise in the
23321 # src tree.
23322 ac_file_inputs=`IFS=:
23323 for f in $ac_file_in; do
23324 case $f in
23325 -) echo $tmp/stdin ;;
23326 [\\/$]*)
23327 # Absolute (can't be DOS-style, as IFS=:)
23328 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23329 echo "$as_me: error: cannot find input file: $f" >&2;}
23330 { (exit 1); exit 1; }; }
23331 # Do quote $f, to prevent DOS paths from being IFS'd.
23332 echo "$f";;
23333 *) # Relative
23334 if test -f "$f"; then
23335 # Build tree
23336 echo "$f"
23337 elif test -f "$srcdir/$f"; then
23338 # Source tree
23339 echo "$srcdir/$f"
23340 else
23341 # /dev/null tree
23342 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23343 echo "$as_me: error: cannot find input file: $f" >&2;}
23344 { (exit 1); exit 1; }; }
23345 fi;;
23346 esac
23347 done` || { (exit 1); exit 1; }
23348 # Remove the trailing spaces.
23349 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23350
23351 _ACEOF
23352
23353 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23354 # `conftest.undefs', that substitutes the proper values into
23355 # config.h.in to produce config.h. The first handles `#define'
23356 # templates, and the second `#undef' templates.
23357 # And first: Protect against being on the right side of a sed subst in
23358 # config.status. Protect against being in an unquoted here document
23359 # in config.status.
23360 rm -f conftest.defines conftest.undefs
23361 # Using a here document instead of a string reduces the quoting nightmare.
23362 # Putting comments in sed scripts is not portable.
23363 #
23364 # `end' is used to avoid that the second main sed command (meant for
23365 # 0-ary CPP macros) applies to n-ary macro definitions.
23366 # See the Autoconf documentation for `clear'.
23367 cat >confdef2sed.sed <<\_ACEOF
23368 s/[\\&,]/\\&/g
23369 s,[\\$`],\\&,g
23370 t clear
23371 : clear
23372 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23373 t end
23374 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23375 : end
23376 _ACEOF
23377 # If some macros were called several times there might be several times
23378 # the same #defines, which is useless. Nevertheless, we may not want to
23379 # sort them, since we want the *last* AC-DEFINE to be honored.
23380 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23381 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23382 rm -f confdef2sed.sed
23383
23384 # This sed command replaces #undef with comments. This is necessary, for
23385 # example, in the case of _POSIX_SOURCE, which is predefined and required
23386 # on some systems where configure will not decide to define it.
23387 cat >>conftest.undefs <<\_ACEOF
23388 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23389 _ACEOF
23390
23391 # Break up conftest.defines because some shells have a limit on the size
23392 # of here documents, and old seds have small limits too (100 cmds).
23393 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23394 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23395 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23396 echo ' :' >>$CONFIG_STATUS
23397 rm -f conftest.tail
23398 while grep . conftest.defines >/dev/null
23399 do
23400 # Write a limited-size here document to $tmp/defines.sed.
23401 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23402 # Speed up: don't consider the non `#define' lines.
23403 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23404 # Work around the forget-to-reset-the-flag bug.
23405 echo 't clr' >>$CONFIG_STATUS
23406 echo ': clr' >>$CONFIG_STATUS
23407 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23408 echo 'CEOF
23409 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23410 rm -f $tmp/in
23411 mv $tmp/out $tmp/in
23412 ' >>$CONFIG_STATUS
23413 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23414 rm -f conftest.defines
23415 mv conftest.tail conftest.defines
23416 done
23417 rm -f conftest.defines
23418 echo ' fi # grep' >>$CONFIG_STATUS
23419 echo >>$CONFIG_STATUS
23420
23421 # Break up conftest.undefs because some shells have a limit on the size
23422 # of here documents, and old seds have small limits too (100 cmds).
23423 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23424 rm -f conftest.tail
23425 while grep . conftest.undefs >/dev/null
23426 do
23427 # Write a limited-size here document to $tmp/undefs.sed.
23428 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23429 # Speed up: don't consider the non `#undef'
23430 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23431 # Work around the forget-to-reset-the-flag bug.
23432 echo 't clr' >>$CONFIG_STATUS
23433 echo ': clr' >>$CONFIG_STATUS
23434 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23435 echo 'CEOF
23436 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23437 rm -f $tmp/in
23438 mv $tmp/out $tmp/in
23439 ' >>$CONFIG_STATUS
23440 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23441 rm -f conftest.undefs
23442 mv conftest.tail conftest.undefs
23443 done
23444 rm -f conftest.undefs
23445
23446 cat >>$CONFIG_STATUS <<\_ACEOF
23447 # Let's still pretend it is `configure' which instantiates (i.e., don't
23448 # use $as_me), people would be surprised to read:
23449 # /* config.h. Generated by config.status. */
23450 if test x"$ac_file" = x-; then
23451 echo "/* Generated by configure. */" >$tmp/config.h
23452 else
23453 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23454 fi
23455 cat $tmp/in >>$tmp/config.h
23456 rm -f $tmp/in
23457 if test x"$ac_file" != x-; then
23458 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23459 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23460 echo "$as_me: $ac_file is unchanged" >&6;}
23461 else
23462 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23463 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23464 X"$ac_file" : 'X\(//\)[^/]' \| \
23465 X"$ac_file" : 'X\(//\)$' \| \
23466 X"$ac_file" : 'X\(/\)' \| \
23467 . : '\(.\)' 2>/dev/null ||
23468 echo X"$ac_file" |
23469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23471 /^X\(\/\/\)$/{ s//\1/; q; }
23472 /^X\(\/\).*/{ s//\1/; q; }
23473 s/.*/./; q'`
23474 { if $as_mkdir_p; then
23475 mkdir -p "$ac_dir"
23476 else
23477 as_dir="$ac_dir"
23478 as_dirs=
23479 while test ! -d "$as_dir"; do
23480 as_dirs="$as_dir $as_dirs"
23481 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23482 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23483 X"$as_dir" : 'X\(//\)[^/]' \| \
23484 X"$as_dir" : 'X\(//\)$' \| \
23485 X"$as_dir" : 'X\(/\)' \| \
23486 . : '\(.\)' 2>/dev/null ||
23487 echo X"$as_dir" |
23488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23490 /^X\(\/\/\)$/{ s//\1/; q; }
23491 /^X\(\/\).*/{ s//\1/; q; }
23492 s/.*/./; q'`
23493 done
23494 test ! -n "$as_dirs" || mkdir $as_dirs
23495 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23496 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23497 { (exit 1); exit 1; }; }; }
23498
23499 rm -f $ac_file
23500 mv $tmp/config.h $ac_file
23501 fi
23502 else
23503 cat $tmp/config.h
23504 rm -f $tmp/config.h
23505 fi
23506 done
23507 _ACEOF
23508 cat >>$CONFIG_STATUS <<\_ACEOF
23509
23510 #
23511 # CONFIG_LINKS section.
23512 #
23513
23514 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23515 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23516 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23517
23518 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23519 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23520
23521 if test ! -r $srcdir/$ac_source; then
23522 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23523 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23524 { (exit 1); exit 1; }; }
23525 fi
23526 rm -f $ac_dest
23527
23528 # Make relative symlinks.
23529 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23530 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23531 X"$ac_dest" : 'X\(//\)[^/]' \| \
23532 X"$ac_dest" : 'X\(//\)$' \| \
23533 X"$ac_dest" : 'X\(/\)' \| \
23534 . : '\(.\)' 2>/dev/null ||
23535 echo X"$ac_dest" |
23536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23538 /^X\(\/\/\)$/{ s//\1/; q; }
23539 /^X\(\/\).*/{ s//\1/; q; }
23540 s/.*/./; q'`
23541 { if $as_mkdir_p; then
23542 mkdir -p "$ac_dest_dir"
23543 else
23544 as_dir="$ac_dest_dir"
23545 as_dirs=
23546 while test ! -d "$as_dir"; do
23547 as_dirs="$as_dir $as_dirs"
23548 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23549 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23550 X"$as_dir" : 'X\(//\)[^/]' \| \
23551 X"$as_dir" : 'X\(//\)$' \| \
23552 X"$as_dir" : 'X\(/\)' \| \
23553 . : '\(.\)' 2>/dev/null ||
23554 echo X"$as_dir" |
23555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23556 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23557 /^X\(\/\/\)$/{ s//\1/; q; }
23558 /^X\(\/\).*/{ s//\1/; q; }
23559 s/.*/./; q'`
23560 done
23561 test ! -n "$as_dirs" || mkdir $as_dirs
23562 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23563 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23564 { (exit 1); exit 1; }; }; }
23565
23566 ac_builddir=.
23567
23568 if test "$ac_dest_dir" != .; then
23569 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23570 # A "../" for each directory in $ac_dir_suffix.
23571 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23572 else
23573 ac_dir_suffix= ac_top_builddir=
23574 fi
23575
23576 case $srcdir in
23577 .) # No --srcdir option. We are building in place.
23578 ac_srcdir=.
23579 if test -z "$ac_top_builddir"; then
23580 ac_top_srcdir=.
23581 else
23582 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23583 fi ;;
23584 [\\/]* | ?:[\\/]* ) # Absolute path.
23585 ac_srcdir=$srcdir$ac_dir_suffix;
23586 ac_top_srcdir=$srcdir ;;
23587 *) # Relative path.
23588 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23589 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23590 esac
23591
23592 # Do not use `cd foo && pwd` to compute absolute paths, because
23593 # the directories may not exist.
23594 case `pwd` in
23595 .) ac_abs_builddir="$ac_dest_dir";;
23596 *)
23597 case "$ac_dest_dir" in
23598 .) ac_abs_builddir=`pwd`;;
23599 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23600 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23601 esac;;
23602 esac
23603 case $ac_abs_builddir in
23604 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23605 *)
23606 case ${ac_top_builddir}. in
23607 .) ac_abs_top_builddir=$ac_abs_builddir;;
23608 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23609 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23610 esac;;
23611 esac
23612 case $ac_abs_builddir in
23613 .) ac_abs_srcdir=$ac_srcdir;;
23614 *)
23615 case $ac_srcdir in
23616 .) ac_abs_srcdir=$ac_abs_builddir;;
23617 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23618 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23619 esac;;
23620 esac
23621 case $ac_abs_builddir in
23622 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23623 *)
23624 case $ac_top_srcdir in
23625 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23626 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23627 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23628 esac;;
23629 esac
23630
23631
23632 case $srcdir in
23633 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23634 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23635 esac
23636
23637 # Try a symlink, then a hard link, then a copy.
23638 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23639 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23640 cp -p $srcdir/$ac_source $ac_dest ||
23641 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23642 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23643 { (exit 1); exit 1; }; }
23644 done
23645 _ACEOF
23646 cat >>$CONFIG_STATUS <<\_ACEOF
23647
23648 #
23649 # CONFIG_COMMANDS section.
23650 #
23651 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23652 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23653 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23654 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23655 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23656 X"$ac_dest" : 'X\(//\)[^/]' \| \
23657 X"$ac_dest" : 'X\(//\)$' \| \
23658 X"$ac_dest" : 'X\(/\)' \| \
23659 . : '\(.\)' 2>/dev/null ||
23660 echo X"$ac_dest" |
23661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23663 /^X\(\/\/\)$/{ s//\1/; q; }
23664 /^X\(\/\).*/{ s//\1/; q; }
23665 s/.*/./; q'`
23666 { if $as_mkdir_p; then
23667 mkdir -p "$ac_dir"
23668 else
23669 as_dir="$ac_dir"
23670 as_dirs=
23671 while test ! -d "$as_dir"; do
23672 as_dirs="$as_dir $as_dirs"
23673 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23675 X"$as_dir" : 'X\(//\)[^/]' \| \
23676 X"$as_dir" : 'X\(//\)$' \| \
23677 X"$as_dir" : 'X\(/\)' \| \
23678 . : '\(.\)' 2>/dev/null ||
23679 echo X"$as_dir" |
23680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23682 /^X\(\/\/\)$/{ s//\1/; q; }
23683 /^X\(\/\).*/{ s//\1/; q; }
23684 s/.*/./; q'`
23685 done
23686 test ! -n "$as_dirs" || mkdir $as_dirs
23687 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23688 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23689 { (exit 1); exit 1; }; }; }
23690
23691 ac_builddir=.
23692
23693 if test "$ac_dir" != .; then
23694 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23695 # A "../" for each directory in $ac_dir_suffix.
23696 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23697 else
23698 ac_dir_suffix= ac_top_builddir=
23699 fi
23700
23701 case $srcdir in
23702 .) # No --srcdir option. We are building in place.
23703 ac_srcdir=.
23704 if test -z "$ac_top_builddir"; then
23705 ac_top_srcdir=.
23706 else
23707 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23708 fi ;;
23709 [\\/]* | ?:[\\/]* ) # Absolute path.
23710 ac_srcdir=$srcdir$ac_dir_suffix;
23711 ac_top_srcdir=$srcdir ;;
23712 *) # Relative path.
23713 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23714 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23715 esac
23716
23717 # Do not use `cd foo && pwd` to compute absolute paths, because
23718 # the directories may not exist.
23719 case `pwd` in
23720 .) ac_abs_builddir="$ac_dir";;
23721 *)
23722 case "$ac_dir" in
23723 .) ac_abs_builddir=`pwd`;;
23724 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23725 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23726 esac;;
23727 esac
23728 case $ac_abs_builddir in
23729 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23730 *)
23731 case ${ac_top_builddir}. in
23732 .) ac_abs_top_builddir=$ac_abs_builddir;;
23733 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23734 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23735 esac;;
23736 esac
23737 case $ac_abs_builddir in
23738 .) ac_abs_srcdir=$ac_srcdir;;
23739 *)
23740 case $ac_srcdir in
23741 .) ac_abs_srcdir=$ac_abs_builddir;;
23742 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23743 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23744 esac;;
23745 esac
23746 case $ac_abs_builddir in
23747 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23748 *)
23749 case $ac_top_srcdir in
23750 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23751 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23752 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23753 esac;;
23754 esac
23755
23756
23757 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23758 echo "$as_me: executing $ac_dest commands" >&6;}
23759 case $ac_dest in
23760 gdb_stdint.h )
23761 if test "$GCC" = yes; then
23762 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23763 else
23764 echo "/* generated for $CC */" > tmp-stdint.h
23765 fi
23766
23767 sed 's/^ *//' >> tmp-stdint.h <<EOF
23768
23769 #ifndef GCC_GENERATED_STDINT_H
23770 #define GCC_GENERATED_STDINT_H 1
23771
23772 #include <sys/types.h>
23773 EOF
23774
23775 if test "$acx_cv_header_stdint" != stdint.h; then
23776 echo "#include <stddef.h>" >> tmp-stdint.h
23777 fi
23778 if test "$acx_cv_header_stdint" != stddef.h; then
23779 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23780 fi
23781
23782 sed 's/^ *//' >> tmp-stdint.h <<EOF
23783 /* glibc uses these symbols as guards to prevent redefinitions. */
23784 #ifdef __int8_t_defined
23785 #define _INT8_T
23786 #define _INT16_T
23787 #define _INT32_T
23788 #endif
23789 #ifdef __uint32_t_defined
23790 #define _UINT32_T
23791 #endif
23792
23793 EOF
23794
23795 # ----------------- done header, emit basic int types -------------
23796 if test "$acx_cv_header_stdint" = stddef.h; then
23797 sed 's/^ *//' >> tmp-stdint.h <<EOF
23798
23799 #ifndef _UINT8_T
23800 #define _UINT8_T
23801 typedef unsigned $acx_cv_type_int8_t uint8_t;
23802 #endif
23803
23804 #ifndef _UINT16_T
23805 #define _UINT16_T
23806 typedef unsigned $acx_cv_type_int16_t uint16_t;
23807 #endif
23808
23809 #ifndef _UINT32_T
23810 #define _UINT32_T
23811 typedef unsigned $acx_cv_type_int32_t uint32_t;
23812 #endif
23813
23814 #ifndef _INT8_T
23815 #define _INT8_T
23816 typedef $acx_cv_type_int8_t int8_t;
23817 #endif
23818
23819 #ifndef _INT16_T
23820 #define _INT16_T
23821 typedef $acx_cv_type_int16_t int16_t;
23822 #endif
23823
23824 #ifndef _INT32_T
23825 #define _INT32_T
23826 typedef $acx_cv_type_int32_t int32_t;
23827 #endif
23828 EOF
23829 elif test "$ac_cv_type_u_int32_t" = yes; then
23830 sed 's/^ *//' >> tmp-stdint.h <<EOF
23831
23832 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23833 #ifndef _INT8_T
23834 #define _INT8_T
23835 #endif
23836 #ifndef _INT16_T
23837 #define _INT16_T
23838 #endif
23839 #ifndef _INT32_T
23840 #define _INT32_T
23841 #endif
23842
23843 #ifndef _UINT8_T
23844 #define _UINT8_T
23845 typedef u_int8_t uint8_t;
23846 #endif
23847
23848 #ifndef _UINT16_T
23849 #define _UINT16_T
23850 typedef u_int16_t uint16_t;
23851 #endif
23852
23853 #ifndef _UINT32_T
23854 #define _UINT32_T
23855 typedef u_int32_t uint32_t;
23856 #endif
23857 EOF
23858 else
23859 sed 's/^ *//' >> tmp-stdint.h <<EOF
23860
23861 /* Some systems have guard macros to prevent redefinitions, define them. */
23862 #ifndef _INT8_T
23863 #define _INT8_T
23864 #endif
23865 #ifndef _INT16_T
23866 #define _INT16_T
23867 #endif
23868 #ifndef _INT32_T
23869 #define _INT32_T
23870 #endif
23871 #ifndef _UINT8_T
23872 #define _UINT8_T
23873 #endif
23874 #ifndef _UINT16_T
23875 #define _UINT16_T
23876 #endif
23877 #ifndef _UINT32_T
23878 #define _UINT32_T
23879 #endif
23880 EOF
23881 fi
23882
23883 # ------------- done basic int types, emit int64_t types ------------
23884 if test "$ac_cv_type_uint64_t" = yes; then
23885 sed 's/^ *//' >> tmp-stdint.h <<EOF
23886
23887 /* system headers have good uint64_t and int64_t */
23888 #ifndef _INT64_T
23889 #define _INT64_T
23890 #endif
23891 #ifndef _UINT64_T
23892 #define _UINT64_T
23893 #endif
23894 EOF
23895 elif test "$ac_cv_type_u_int64_t" = yes; then
23896 sed 's/^ *//' >> tmp-stdint.h <<EOF
23897
23898 /* system headers have an u_int64_t (and int64_t) */
23899 #ifndef _INT64_T
23900 #define _INT64_T
23901 #endif
23902 #ifndef _UINT64_T
23903 #define _UINT64_T
23904 typedef u_int64_t uint64_t;
23905 #endif
23906 EOF
23907 elif test -n "$acx_cv_type_int64_t"; then
23908 sed 's/^ *//' >> tmp-stdint.h <<EOF
23909
23910 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23911 #ifndef _INT64_T
23912 #define _INT64_T
23913 typedef $acx_cv_type_int64_t int64_t;
23914 #endif
23915 #ifndef _UINT64_T
23916 #define _UINT64_T
23917 typedef unsigned $acx_cv_type_int64_t uint64_t;
23918 #endif
23919 EOF
23920 else
23921 sed 's/^ *//' >> tmp-stdint.h <<EOF
23922
23923 /* some common heuristics for int64_t, using compiler-specific tests */
23924 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23925 #ifndef _INT64_T
23926 #define _INT64_T
23927 typedef long long int64_t;
23928 #endif
23929 #ifndef _UINT64_T
23930 #define _UINT64_T
23931 typedef unsigned long long uint64_t;
23932 #endif
23933
23934 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23935 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23936 does not implement __extension__. But that compiler doesn't define
23937 __GNUC_MINOR__. */
23938 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23939 # define __extension__
23940 # endif
23941
23942 # ifndef _INT64_T
23943 # define _INT64_T
23944 __extension__ typedef long long int64_t;
23945 # endif
23946 # ifndef _UINT64_T
23947 # define _UINT64_T
23948 __extension__ typedef unsigned long long uint64_t;
23949 # endif
23950
23951 #elif !defined __STRICT_ANSI__
23952 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23953
23954 # ifndef _INT64_T
23955 # define _INT64_T
23956 typedef __int64 int64_t;
23957 # endif
23958 # ifndef _UINT64_T
23959 # define _UINT64_T
23960 typedef unsigned __int64 uint64_t;
23961 # endif
23962 # endif /* compiler */
23963
23964 #endif /* ANSI version */
23965 EOF
23966 fi
23967
23968 # ------------- done int64_t types, emit intptr types ------------
23969 if test "$ac_cv_type_uintptr_t" != yes; then
23970 sed 's/^ *//' >> tmp-stdint.h <<EOF
23971
23972 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23973 typedef u$acx_cv_type_intptr_t uintptr_t;
23974 typedef $acx_cv_type_intptr_t intptr_t;
23975 EOF
23976 fi
23977
23978 # ------------- done intptr types, emit int_least types ------------
23979 if test "$ac_cv_type_int_least32_t" != yes; then
23980 sed 's/^ *//' >> tmp-stdint.h <<EOF
23981
23982 /* Define int_least types */
23983 typedef int8_t int_least8_t;
23984 typedef int16_t int_least16_t;
23985 typedef int32_t int_least32_t;
23986 #ifdef _INT64_T
23987 typedef int64_t int_least64_t;
23988 #endif
23989
23990 typedef uint8_t uint_least8_t;
23991 typedef uint16_t uint_least16_t;
23992 typedef uint32_t uint_least32_t;
23993 #ifdef _UINT64_T
23994 typedef uint64_t uint_least64_t;
23995 #endif
23996 EOF
23997 fi
23998
23999 # ------------- done intptr types, emit int_fast types ------------
24000 if test "$ac_cv_type_int_fast32_t" != yes; then
24001 sed 's/^ *//' >> tmp-stdint.h <<EOF
24002
24003 /* Define int_fast types. short is often slow */
24004 typedef int8_t int_fast8_t;
24005 typedef int int_fast16_t;
24006 typedef int32_t int_fast32_t;
24007 #ifdef _INT64_T
24008 typedef int64_t int_fast64_t;
24009 #endif
24010
24011 typedef uint8_t uint_fast8_t;
24012 typedef unsigned int uint_fast16_t;
24013 typedef uint32_t uint_fast32_t;
24014 #ifdef _UINT64_T
24015 typedef uint64_t uint_fast64_t;
24016 #endif
24017 EOF
24018 fi
24019
24020 if test "$ac_cv_type_uintmax_t" != yes; then
24021 sed 's/^ *//' >> tmp-stdint.h <<EOF
24022
24023 /* Define intmax based on what we found */
24024 #ifdef _INT64_T
24025 typedef int64_t intmax_t;
24026 #else
24027 typedef long intmax_t;
24028 #endif
24029 #ifdef _UINT64_T
24030 typedef uint64_t uintmax_t;
24031 #else
24032 typedef unsigned long uintmax_t;
24033 #endif
24034 EOF
24035 fi
24036
24037 sed 's/^ *//' >> tmp-stdint.h <<EOF
24038
24039 #endif /* GCC_GENERATED_STDINT_H */
24040 EOF
24041
24042 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
24043 rm -f tmp-stdint.h
24044 else
24045 mv -f tmp-stdint.h gdb_stdint.h
24046 fi
24047
24048 ;;
24049 default )
24050
24051 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
24052 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
24053 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
24054 mv -f Makefile.tmp Makefile
24055
24056
24057 case x$CONFIG_HEADERS in
24058 xconfig.h:config.in)
24059 echo > stamp-h ;;
24060 esac
24061 ;;
24062 esac
24063 done
24064 _ACEOF
24065
24066 cat >>$CONFIG_STATUS <<\_ACEOF
24067
24068 { (exit 0); exit 0; }
24069 _ACEOF
24070 chmod +x $CONFIG_STATUS
24071 ac_clean_files=$ac_clean_files_save
24072
24073
24074 # configure is writing to config.log, and then calls config.status.
24075 # config.status does its own redirection, appending to config.log.
24076 # Unfortunately, on DOS this fails, as config.log is still kept open
24077 # by configure, so config.status won't be able to write to it; its
24078 # output is simply discarded. So we exec the FD to /dev/null,
24079 # effectively closing config.log, so it can be properly (re)opened and
24080 # appended to by config.status. When coming back to configure, we
24081 # need to make the FD available again.
24082 if test "$no_create" != yes; then
24083 ac_cs_success=:
24084 ac_config_status_args=
24085 test "$silent" = yes &&
24086 ac_config_status_args="$ac_config_status_args --quiet"
24087 exec 5>/dev/null
24088 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24089 exec 5>>config.log
24090 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24091 # would make configure fail if this is the last instruction.
24092 $ac_cs_success || { (exit 1); exit 1; }
24093 fi
24094
24095 #
24096 # CONFIG_SUBDIRS section.
24097 #
24098 if test "$no_recursion" != yes; then
24099
24100 # Remove --cache-file and --srcdir arguments so they do not pile up.
24101 ac_sub_configure_args=
24102 ac_prev=
24103 for ac_arg in $ac_configure_args; do
24104 if test -n "$ac_prev"; then
24105 ac_prev=
24106 continue
24107 fi
24108 case $ac_arg in
24109 -cache-file | --cache-file | --cache-fil | --cache-fi \
24110 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24111 ac_prev=cache_file ;;
24112 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24113 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24114 | --c=*)
24115 ;;
24116 --config-cache | -C)
24117 ;;
24118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24119 ac_prev=srcdir ;;
24120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24121 ;;
24122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24123 ac_prev=prefix ;;
24124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24125 ;;
24126 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24127 esac
24128 done
24129
24130 # Always prepend --prefix to ensure using the same prefix
24131 # in subdir configurations.
24132 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24133
24134 ac_popdir=`pwd`
24135 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24136
24137 # Do not complain, so a configure script can configure whichever
24138 # parts of a large source tree are present.
24139 test -d $srcdir/$ac_dir || continue
24140
24141 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24142 echo "$as_me: configuring in $ac_dir" >&6;}
24143 { if $as_mkdir_p; then
24144 mkdir -p "$ac_dir"
24145 else
24146 as_dir="$ac_dir"
24147 as_dirs=
24148 while test ! -d "$as_dir"; do
24149 as_dirs="$as_dir $as_dirs"
24150 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24152 X"$as_dir" : 'X\(//\)[^/]' \| \
24153 X"$as_dir" : 'X\(//\)$' \| \
24154 X"$as_dir" : 'X\(/\)' \| \
24155 . : '\(.\)' 2>/dev/null ||
24156 echo X"$as_dir" |
24157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24159 /^X\(\/\/\)$/{ s//\1/; q; }
24160 /^X\(\/\).*/{ s//\1/; q; }
24161 s/.*/./; q'`
24162 done
24163 test ! -n "$as_dirs" || mkdir $as_dirs
24164 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24166 { (exit 1); exit 1; }; }; }
24167
24168 ac_builddir=.
24169
24170 if test "$ac_dir" != .; then
24171 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24172 # A "../" for each directory in $ac_dir_suffix.
24173 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24174 else
24175 ac_dir_suffix= ac_top_builddir=
24176 fi
24177
24178 case $srcdir in
24179 .) # No --srcdir option. We are building in place.
24180 ac_srcdir=.
24181 if test -z "$ac_top_builddir"; then
24182 ac_top_srcdir=.
24183 else
24184 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24185 fi ;;
24186 [\\/]* | ?:[\\/]* ) # Absolute path.
24187 ac_srcdir=$srcdir$ac_dir_suffix;
24188 ac_top_srcdir=$srcdir ;;
24189 *) # Relative path.
24190 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24191 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24192 esac
24193
24194 # Do not use `cd foo && pwd` to compute absolute paths, because
24195 # the directories may not exist.
24196 case `pwd` in
24197 .) ac_abs_builddir="$ac_dir";;
24198 *)
24199 case "$ac_dir" in
24200 .) ac_abs_builddir=`pwd`;;
24201 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24202 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24203 esac;;
24204 esac
24205 case $ac_abs_builddir in
24206 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24207 *)
24208 case ${ac_top_builddir}. in
24209 .) ac_abs_top_builddir=$ac_abs_builddir;;
24210 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24211 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24212 esac;;
24213 esac
24214 case $ac_abs_builddir in
24215 .) ac_abs_srcdir=$ac_srcdir;;
24216 *)
24217 case $ac_srcdir in
24218 .) ac_abs_srcdir=$ac_abs_builddir;;
24219 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24220 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24221 esac;;
24222 esac
24223 case $ac_abs_builddir in
24224 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24225 *)
24226 case $ac_top_srcdir in
24227 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24228 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24229 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24230 esac;;
24231 esac
24232
24233
24234 cd $ac_dir
24235
24236 # Check for guested configure; otherwise get Cygnus style configure.
24237 if test -f $ac_srcdir/configure.gnu; then
24238 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24239 elif test -f $ac_srcdir/configure; then
24240 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24241 elif test -f $ac_srcdir/configure.in; then
24242 ac_sub_configure=$ac_configure
24243 else
24244 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24245 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24246 ac_sub_configure=
24247 fi
24248
24249 # The recursion is here.
24250 if test -n "$ac_sub_configure"; then
24251 # Make the cache file name correct relative to the subdirectory.
24252 case $cache_file in
24253 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24254 *) # Relative path.
24255 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24256 esac
24257
24258 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24259 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24260 # The eval makes quoting arguments work.
24261 eval $ac_sub_configure $ac_sub_configure_args \
24262 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24263 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24264 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24265 { (exit 1); exit 1; }; }
24266 fi
24267
24268 cd $ac_popdir
24269 done
24270 fi
24271
24272
24273 exit 0
This page took 0.973156 seconds and 4 git commands to generate.