* configure.tgt: Remove hppa*64*-*-hpux11* special case.
[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 READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR 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 --disable-rpath do not hardcode runtime library paths
869 --enable-werror treat compile warnings as errors
870 --enable-build-warnings Enable build-time compiler warnings if gcc is used
871 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
872 --enable-sim Link gdb with simulator
873 --enable-multi-ice build the multi-ice-gdb-server
874
875 Optional Packages:
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
879 --with-libunwind Use libunwind frame unwinding support
880 --with-system-readline use installed readline library
881 --with-expat include expat support (auto/yes/no)
882 --with-gnu-ld assume the C compiler uses GNU ld default=no
883 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
884 --without-libexpat-prefix don't search for libexpat in includedir and libdir
885 --without-included-regex don't use included regex; this is the default
886 on systems with version 2 of the GNU C library
887 (use with caution on other system)
888 --with-sysroot=DIR Search for usr/lib et al within DIR.
889 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
890 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
891 --with-tclinclude=DIR Directory where tcl private headers are
892 --with-tkinclude=DIR Directory where tk private headers are
893 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
894 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
895 --with-x use the X Window System
896 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
897
898 Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
905 CPP C preprocessor
906
907 Use these variables to override the choices made by `configure' or to help
908 it to find libraries and programs with nonstandard names/locations.
909
910 _ACEOF
911 fi
912
913 if test "$ac_init_help" = "recursive"; then
914 # If there are subdirs, report their specific --help.
915 ac_popdir=`pwd`
916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 test -d $ac_dir || continue
918 ac_builddir=.
919
920 if test "$ac_dir" != .; then
921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922 # A "../" for each directory in $ac_dir_suffix.
923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 else
925 ac_dir_suffix= ac_top_builddir=
926 fi
927
928 case $srcdir in
929 .) # No --srcdir option. We are building in place.
930 ac_srcdir=.
931 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=.
933 else
934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 fi ;;
936 [\\/]* | ?:[\\/]* ) # Absolute path.
937 ac_srcdir=$srcdir$ac_dir_suffix;
938 ac_top_srcdir=$srcdir ;;
939 *) # Relative path.
940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 esac
943
944 # Do not use `cd foo && pwd` to compute absolute paths, because
945 # the directories may not exist.
946 case `pwd` in
947 .) ac_abs_builddir="$ac_dir";;
948 *)
949 case "$ac_dir" in
950 .) ac_abs_builddir=`pwd`;;
951 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
952 *) ac_abs_builddir=`pwd`/"$ac_dir";;
953 esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *)
958 case ${ac_top_builddir}. in
959 .) ac_abs_top_builddir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962 esac;;
963 esac
964 case $ac_abs_builddir in
965 .) ac_abs_srcdir=$ac_srcdir;;
966 *)
967 case $ac_srcdir in
968 .) ac_abs_srcdir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
970 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971 esac;;
972 esac
973 case $ac_abs_builddir in
974 .) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *)
976 case $ac_top_srcdir in
977 .) ac_abs_top_srcdir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980 esac;;
981 esac
982
983 cd $ac_dir
984 # Check for guested configure; otherwise get Cygnus style configure.
985 if test -f $ac_srcdir/configure.gnu; then
986 echo
987 $SHELL $ac_srcdir/configure.gnu --help=recursive
988 elif test -f $ac_srcdir/configure; then
989 echo
990 $SHELL $ac_srcdir/configure --help=recursive
991 elif test -f $ac_srcdir/configure.ac ||
992 test -f $ac_srcdir/configure.in; then
993 echo
994 $ac_configure --help
995 else
996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
997 fi
998 cd $ac_popdir
999 done
1000 fi
1001
1002 test -n "$ac_init_help" && exit 0
1003 if $ac_init_version; then
1004 cat <<\_ACEOF
1005
1006 Copyright (C) 2003 Free Software Foundation, Inc.
1007 This configure script is free software; the Free Software Foundation
1008 gives unlimited permission to copy, distribute and modify it.
1009 _ACEOF
1010 exit 0
1011 fi
1012 exec 5>config.log
1013 cat >&5 <<_ACEOF
1014 This file contains any messages produced by compilers while
1015 running configure, to aid debugging if configure makes a mistake.
1016
1017 It was created by $as_me, which was
1018 generated by GNU Autoconf 2.59. Invocation command line was
1019
1020 $ $0 $@
1021
1022 _ACEOF
1023 {
1024 cat <<_ASUNAME
1025 ## --------- ##
1026 ## Platform. ##
1027 ## --------- ##
1028
1029 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1030 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1031 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1032 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1033 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1034
1035 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1036 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1037
1038 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1039 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1040 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1041 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1042 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1043 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1044 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1045
1046 _ASUNAME
1047
1048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049 for as_dir in $PATH
1050 do
1051 IFS=$as_save_IFS
1052 test -z "$as_dir" && as_dir=.
1053 echo "PATH: $as_dir"
1054 done
1055
1056 } >&5
1057
1058 cat >&5 <<_ACEOF
1059
1060
1061 ## ----------- ##
1062 ## Core tests. ##
1063 ## ----------- ##
1064
1065 _ACEOF
1066
1067
1068 # Keep a trace of the command line.
1069 # Strip out --no-create and --no-recursion so they do not pile up.
1070 # Strip out --silent because we don't want to record it for future runs.
1071 # Also quote any args containing shell meta-characters.
1072 # Make two passes to allow for proper duplicate-argument suppression.
1073 ac_configure_args=
1074 ac_configure_args0=
1075 ac_configure_args1=
1076 ac_sep=
1077 ac_must_keep_next=false
1078 for ac_pass in 1 2
1079 do
1080 for ac_arg
1081 do
1082 case $ac_arg in
1083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 continue ;;
1087 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1088 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089 esac
1090 case $ac_pass in
1091 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1092 2)
1093 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1094 if test $ac_must_keep_next = true; then
1095 ac_must_keep_next=false # Got value, back to normal.
1096 else
1097 case $ac_arg in
1098 *=* | --config-cache | -C | -disable-* | --disable-* \
1099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1101 | -with-* | --with-* | -without-* | --without-* | --x)
1102 case "$ac_configure_args0 " in
1103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104 esac
1105 ;;
1106 -* ) ac_must_keep_next=true ;;
1107 esac
1108 fi
1109 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1110 # Get rid of the leading space.
1111 ac_sep=" "
1112 ;;
1113 esac
1114 done
1115 done
1116 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1117 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1118
1119 # When interrupted or exit'd, cleanup temporary files, and complete
1120 # config.log. We remove comments because anyway the quotes in there
1121 # would cause problems or look ugly.
1122 # WARNING: Be sure not to use single quotes in there, as some shells,
1123 # such as our DU 5.0 friend, will then `close' the trap.
1124 trap 'exit_status=$?
1125 # Save into config.log some information that might help in debugging.
1126 {
1127 echo
1128
1129 cat <<\_ASBOX
1130 ## ---------------- ##
1131 ## Cache variables. ##
1132 ## ---------------- ##
1133 _ASBOX
1134 echo
1135 # The following way of writing the cache mishandles newlines in values,
1136 {
1137 (set) 2>&1 |
1138 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139 *ac_space=\ *)
1140 sed -n \
1141 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 ;;
1144 *)
1145 sed -n \
1146 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1147 ;;
1148 esac;
1149 }
1150 echo
1151
1152 cat <<\_ASBOX
1153 ## ----------------- ##
1154 ## Output variables. ##
1155 ## ----------------- ##
1156 _ASBOX
1157 echo
1158 for ac_var in $ac_subst_vars
1159 do
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1164
1165 if test -n "$ac_subst_files"; then
1166 cat <<\_ASBOX
1167 ## ------------- ##
1168 ## Output files. ##
1169 ## ------------- ##
1170 _ASBOX
1171 echo
1172 for ac_var in $ac_subst_files
1173 do
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
1176 done | sort
1177 echo
1178 fi
1179
1180 if test -s confdefs.h; then
1181 cat <<\_ASBOX
1182 ## ----------- ##
1183 ## confdefs.h. ##
1184 ## ----------- ##
1185 _ASBOX
1186 echo
1187 sed "/^$/d" confdefs.h | sort
1188 echo
1189 fi
1190 test "$ac_signal" != 0 &&
1191 echo "$as_me: caught signal $ac_signal"
1192 echo "$as_me: exit $exit_status"
1193 } >&5
1194 rm -f core *.core &&
1195 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1196 exit $exit_status
1197 ' 0
1198 for ac_signal in 1 2 13 15; do
1199 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200 done
1201 ac_signal=0
1202
1203 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1204 rm -rf conftest* confdefs.h
1205 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206 echo >confdefs.h
1207
1208 # Predefined preprocessor variables.
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_NAME "$PACKAGE_NAME"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_STRING "$PACKAGE_STRING"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232 _ACEOF
1233
1234
1235 # Let the site file select an alternate cache file if it wants to.
1236 # Prefer explicitly selected file to automatically selected ones.
1237 if test -z "$CONFIG_SITE"; then
1238 if test "x$prefix" != xNONE; then
1239 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1240 else
1241 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242 fi
1243 fi
1244 for ac_site_file in $CONFIG_SITE; do
1245 if test -r "$ac_site_file"; then
1246 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1247 echo "$as_me: loading site script $ac_site_file" >&6;}
1248 sed 's/^/| /' "$ac_site_file" >&5
1249 . "$ac_site_file"
1250 fi
1251 done
1252
1253 if test -r "$cache_file"; then
1254 # Some versions of bash will fail to source /dev/null (special
1255 # files actually), so we avoid doing that.
1256 if test -f "$cache_file"; then
1257 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1258 echo "$as_me: loading cache $cache_file" >&6;}
1259 case $cache_file in
1260 [\\/]* | ?:[\\/]* ) . $cache_file;;
1261 *) . ./$cache_file;;
1262 esac
1263 fi
1264 else
1265 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1266 echo "$as_me: creating cache $cache_file" >&6;}
1267 >$cache_file
1268 fi
1269
1270 # Check that the precious variables saved in the cache have kept the same
1271 # value.
1272 ac_cache_corrupted=false
1273 for ac_var in `(set) 2>&1 |
1274 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1275 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1276 eval ac_new_set=\$ac_env_${ac_var}_set
1277 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1278 eval ac_new_val="\$ac_env_${ac_var}_value"
1279 case $ac_old_set,$ac_new_set in
1280 set,)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,set)
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1286 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1288 ,);;
1289 *)
1290 if test "x$ac_old_val" != "x$ac_new_val"; then
1291 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1292 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1293 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1294 echo "$as_me: former value: $ac_old_val" >&2;}
1295 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1296 echo "$as_me: current value: $ac_new_val" >&2;}
1297 ac_cache_corrupted=:
1298 fi;;
1299 esac
1300 # Pass precious variables to config.status.
1301 if test "$ac_new_set" = set; then
1302 case $ac_new_val in
1303 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1305 *) ac_arg=$ac_var=$ac_new_val ;;
1306 esac
1307 case " $ac_configure_args " in
1308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1309 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310 esac
1311 fi
1312 done
1313 if $ac_cache_corrupted; then
1314 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1315 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1316 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1317 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1318 { (exit 1); exit 1; }; }
1319 fi
1320
1321 ac_ext=c
1322 ac_cpp='$CPP $CPPFLAGS'
1323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345 ac_config_headers="$ac_config_headers config.h:config.in"
1346
1347 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1348 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1349 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1350 if test "${enable_maintainer_mode+set}" = set; then
1351 enableval="$enable_maintainer_mode"
1352 USE_MAINTAINER_MODE=$enableval
1353 else
1354 USE_MAINTAINER_MODE=no
1355 fi;
1356 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1357 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1358
1359
1360 if test $USE_MAINTAINER_MODE = yes; then
1361 MAINTAINER_MODE_TRUE=
1362 MAINTAINER_MODE_FALSE='#'
1363 else
1364 MAINTAINER_MODE_TRUE='#'
1365 MAINTAINER_MODE_FALSE=
1366 fi
1367
1368 MAINT=$MAINTAINER_MODE_TRUE
1369
1370
1371
1372 ac_ext=c
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377 if test -n "$ac_tool_prefix"; then
1378 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1379 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_CC+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 if test -n "$CC"; then
1386 ac_cv_prog_CC="$CC" # Let the user override the test.
1387 else
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 for as_dir in $PATH
1390 do
1391 IFS=$as_save_IFS
1392 test -z "$as_dir" && as_dir=.
1393 for ac_exec_ext in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397 break 2
1398 fi
1399 done
1400 done
1401
1402 fi
1403 fi
1404 CC=$ac_cv_prog_CC
1405 if test -n "$CC"; then
1406 echo "$as_me:$LINENO: result: $CC" >&5
1407 echo "${ECHO_T}$CC" >&6
1408 else
1409 echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1411 fi
1412
1413 fi
1414 if test -z "$ac_cv_prog_CC"; then
1415 ac_ct_CC=$CC
1416 # Extract the first word of "gcc", so it can be a program name with args.
1417 set dummy gcc; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423 if test -n "$ac_ct_CC"; then
1424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1425 else
1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 for as_dir in $PATH
1428 do
1429 IFS=$as_save_IFS
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433 ac_cv_prog_ac_ct_CC="gcc"
1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435 break 2
1436 fi
1437 done
1438 done
1439
1440 fi
1441 fi
1442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1443 if test -n "$ac_ct_CC"; then
1444 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1445 echo "${ECHO_T}$ac_ct_CC" >&6
1446 else
1447 echo "$as_me:$LINENO: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1449 fi
1450
1451 CC=$ac_ct_CC
1452 else
1453 CC="$ac_cv_prog_CC"
1454 fi
1455
1456 if test -z "$CC"; then
1457 if test -n "$ac_tool_prefix"; then
1458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1459 set dummy ${ac_tool_prefix}cc; ac_word=$2
1460 echo "$as_me:$LINENO: checking for $ac_word" >&5
1461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462 if test "${ac_cv_prog_CC+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465 if test -n "$CC"; then
1466 ac_cv_prog_CC="$CC" # Let the user override the test.
1467 else
1468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469 for as_dir in $PATH
1470 do
1471 IFS=$as_save_IFS
1472 test -z "$as_dir" && as_dir=.
1473 for ac_exec_ext in '' $ac_executable_extensions; do
1474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1475 ac_cv_prog_CC="${ac_tool_prefix}cc"
1476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477 break 2
1478 fi
1479 done
1480 done
1481
1482 fi
1483 fi
1484 CC=$ac_cv_prog_CC
1485 if test -n "$CC"; then
1486 echo "$as_me:$LINENO: result: $CC" >&5
1487 echo "${ECHO_T}$CC" >&6
1488 else
1489 echo "$as_me:$LINENO: result: no" >&5
1490 echo "${ECHO_T}no" >&6
1491 fi
1492
1493 fi
1494 if test -z "$ac_cv_prog_CC"; then
1495 ac_ct_CC=$CC
1496 # Extract the first word of "cc", so it can be a program name with args.
1497 set dummy cc; ac_word=$2
1498 echo "$as_me:$LINENO: checking for $ac_word" >&5
1499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 else
1503 if test -n "$ac_ct_CC"; then
1504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1505 else
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 for as_dir in $PATH
1508 do
1509 IFS=$as_save_IFS
1510 test -z "$as_dir" && as_dir=.
1511 for ac_exec_ext in '' $ac_executable_extensions; do
1512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513 ac_cv_prog_ac_ct_CC="cc"
1514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515 break 2
1516 fi
1517 done
1518 done
1519
1520 fi
1521 fi
1522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1523 if test -n "$ac_ct_CC"; then
1524 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1525 echo "${ECHO_T}$ac_ct_CC" >&6
1526 else
1527 echo "$as_me:$LINENO: result: no" >&5
1528 echo "${ECHO_T}no" >&6
1529 fi
1530
1531 CC=$ac_ct_CC
1532 else
1533 CC="$ac_cv_prog_CC"
1534 fi
1535
1536 fi
1537 if test -z "$CC"; then
1538 # Extract the first word of "cc", so it can be a program name with args.
1539 set dummy cc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1547 else
1548 ac_prog_rejected=no
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1551 do
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1557 ac_prog_rejected=yes
1558 continue
1559 fi
1560 ac_cv_prog_CC="cc"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562 break 2
1563 fi
1564 done
1565 done
1566
1567 if test $ac_prog_rejected = yes; then
1568 # We found a bogon in the path, so make sure we never use it.
1569 set dummy $ac_cv_prog_CC
1570 shift
1571 if test $# != 0; then
1572 # We chose a different compiler from the bogus one.
1573 # However, it has the same basename, so the bogon will be chosen
1574 # first if we set CC to just the basename; use the full file name.
1575 shift
1576 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1577 fi
1578 fi
1579 fi
1580 fi
1581 CC=$ac_cv_prog_CC
1582 if test -n "$CC"; then
1583 echo "$as_me:$LINENO: result: $CC" >&5
1584 echo "${ECHO_T}$CC" >&6
1585 else
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 fi
1589
1590 fi
1591 if test -z "$CC"; then
1592 if test -n "$ac_tool_prefix"; then
1593 for ac_prog in cl
1594 do
1595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604 else
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1615 fi
1616 done
1617 done
1618
1619 fi
1620 fi
1621 CC=$ac_cv_prog_CC
1622 if test -n "$CC"; then
1623 echo "$as_me:$LINENO: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1625 else
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1628 fi
1629
1630 test -n "$CC" && break
1631 done
1632 fi
1633 if test -z "$CC"; then
1634 ac_ct_CC=$CC
1635 for ac_prog in cl
1636 do
1637 # Extract the first word of "$ac_prog", so it can be a program name with args.
1638 set dummy $ac_prog; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646 else
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1649 do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_ac_ct_CC="$ac_prog"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 break 2
1657 fi
1658 done
1659 done
1660
1661 fi
1662 fi
1663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664 if test -n "$ac_ct_CC"; then
1665 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666 echo "${ECHO_T}$ac_ct_CC" >&6
1667 else
1668 echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1670 fi
1671
1672 test -n "$ac_ct_CC" && break
1673 done
1674
1675 CC=$ac_ct_CC
1676 fi
1677
1678 fi
1679
1680
1681 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1682 See \`config.log' for more details." >&5
1683 echo "$as_me: error: no acceptable C compiler found in \$PATH
1684 See \`config.log' for more details." >&2;}
1685 { (exit 1); exit 1; }; }
1686
1687 # Provide some information about the compiler.
1688 echo "$as_me:$LINENO:" \
1689 "checking for C compiler version" >&5
1690 ac_compiler=`set X $ac_compile; echo $2`
1691 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1692 (eval $ac_compiler --version </dev/null >&5) 2>&5
1693 ac_status=$?
1694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695 (exit $ac_status); }
1696 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1697 (eval $ac_compiler -v </dev/null >&5) 2>&5
1698 ac_status=$?
1699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700 (exit $ac_status); }
1701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1702 (eval $ac_compiler -V </dev/null >&5) 2>&5
1703 ac_status=$?
1704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1706
1707 cat >conftest.$ac_ext <<_ACEOF
1708 /* confdefs.h. */
1709 _ACEOF
1710 cat confdefs.h >>conftest.$ac_ext
1711 cat >>conftest.$ac_ext <<_ACEOF
1712 /* end confdefs.h. */
1713
1714 int
1715 main ()
1716 {
1717
1718 ;
1719 return 0;
1720 }
1721 _ACEOF
1722 ac_clean_files_save=$ac_clean_files
1723 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1724 # Try to create an executable without -o first, disregard a.out.
1725 # It will help us diagnose broken compilers, and finding out an intuition
1726 # of exeext.
1727 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1728 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1729 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1730 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1731 (eval $ac_link_default) 2>&5
1732 ac_status=$?
1733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734 (exit $ac_status); }; then
1735 # Find the output, starting from the most likely. This scheme is
1736 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1737 # resort.
1738
1739 # Be careful to initialize this variable, since it used to be cached.
1740 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1741 ac_cv_exeext=
1742 # b.out is created by i960 compilers.
1743 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1744 do
1745 test -f "$ac_file" || continue
1746 case $ac_file in
1747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1748 ;;
1749 conftest.$ac_ext )
1750 # This is the source file.
1751 ;;
1752 [ab].out )
1753 # We found the default executable, but exeext='' is most
1754 # certainly right.
1755 break;;
1756 *.* )
1757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758 # FIXME: I believe we export ac_cv_exeext for Libtool,
1759 # but it would be cool to find out if it's true. Does anybody
1760 # maintain Libtool? --akim.
1761 export ac_cv_exeext
1762 break;;
1763 * )
1764 break;;
1765 esac
1766 done
1767 else
1768 echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1772 See \`config.log' for more details." >&5
1773 echo "$as_me: error: C compiler cannot create executables
1774 See \`config.log' for more details." >&2;}
1775 { (exit 77); exit 77; }; }
1776 fi
1777
1778 ac_exeext=$ac_cv_exeext
1779 echo "$as_me:$LINENO: result: $ac_file" >&5
1780 echo "${ECHO_T}$ac_file" >&6
1781
1782 # Check the compiler produces executables we can run. If not, either
1783 # the compiler is broken, or we cross compile.
1784 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1785 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1786 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1787 # If not cross compiling, check that we can run a simple program.
1788 if test "$cross_compiling" != yes; then
1789 if { ac_try='./$ac_file'
1790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1791 (eval $ac_try) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1795 cross_compiling=no
1796 else
1797 if test "$cross_compiling" = maybe; then
1798 cross_compiling=yes
1799 else
1800 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1801 If you meant to cross compile, use \`--host'.
1802 See \`config.log' for more details." >&5
1803 echo "$as_me: error: cannot run C compiled programs.
1804 If you meant to cross compile, use \`--host'.
1805 See \`config.log' for more details." >&2;}
1806 { (exit 1); exit 1; }; }
1807 fi
1808 fi
1809 fi
1810 echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1812
1813 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1814 ac_clean_files=$ac_clean_files_save
1815 # Check the compiler produces executables we can run. If not, either
1816 # the compiler is broken, or we cross compile.
1817 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1818 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1819 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1820 echo "${ECHO_T}$cross_compiling" >&6
1821
1822 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1823 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1825 (eval $ac_link) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
1829 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1830 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1831 # work properly (i.e., refer to `conftest.exe'), while it won't with
1832 # `rm'.
1833 for ac_file in conftest.exe conftest conftest.*; do
1834 test -f "$ac_file" || continue
1835 case $ac_file in
1836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1838 export ac_cv_exeext
1839 break;;
1840 * ) break;;
1841 esac
1842 done
1843 else
1844 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1845 See \`config.log' for more details." >&5
1846 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1847 See \`config.log' for more details." >&2;}
1848 { (exit 1); exit 1; }; }
1849 fi
1850
1851 rm -f conftest$ac_cv_exeext
1852 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1853 echo "${ECHO_T}$ac_cv_exeext" >&6
1854
1855 rm -f conftest.$ac_ext
1856 EXEEXT=$ac_cv_exeext
1857 ac_exeext=$EXEEXT
1858 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1859 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1860 if test "${ac_cv_objext+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 else
1863 cat >conftest.$ac_ext <<_ACEOF
1864 /* confdefs.h. */
1865 _ACEOF
1866 cat confdefs.h >>conftest.$ac_ext
1867 cat >>conftest.$ac_ext <<_ACEOF
1868 /* end confdefs.h. */
1869
1870 int
1871 main ()
1872 {
1873
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 rm -f conftest.o conftest.obj
1879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1880 (eval $ac_compile) 2>&5
1881 ac_status=$?
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
1884 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1885 case $ac_file in
1886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1887 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1888 break;;
1889 esac
1890 done
1891 else
1892 echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1896 See \`config.log' for more details." >&5
1897 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1898 See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
1900 fi
1901
1902 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1903 fi
1904 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1905 echo "${ECHO_T}$ac_cv_objext" >&6
1906 OBJEXT=$ac_cv_objext
1907 ac_objext=$OBJEXT
1908 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1909 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1910 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913 cat >conftest.$ac_ext <<_ACEOF
1914 /* confdefs.h. */
1915 _ACEOF
1916 cat confdefs.h >>conftest.$ac_ext
1917 cat >>conftest.$ac_ext <<_ACEOF
1918 /* end confdefs.h. */
1919
1920 int
1921 main ()
1922 {
1923 #ifndef __GNUC__
1924 choke me
1925 #endif
1926
1927 ;
1928 return 0;
1929 }
1930 _ACEOF
1931 rm -f conftest.$ac_objext
1932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933 (eval $ac_compile) 2>conftest.er1
1934 ac_status=$?
1935 grep -v '^ *+' conftest.er1 >conftest.err
1936 rm -f conftest.er1
1937 cat conftest.err >&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); } &&
1940 { ac_try='test -z "$ac_c_werror_flag"
1941 || test ! -s conftest.err'
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); }; } &&
1947 { ac_try='test -s conftest.$ac_objext'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949 (eval $ac_try) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1953 ac_compiler_gnu=yes
1954 else
1955 echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1957
1958 ac_compiler_gnu=no
1959 fi
1960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1962
1963 fi
1964 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1965 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1966 GCC=`test $ac_compiler_gnu = yes && echo yes`
1967 ac_test_CFLAGS=${CFLAGS+set}
1968 ac_save_CFLAGS=$CFLAGS
1969 CFLAGS="-g"
1970 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1971 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1972 if test "${ac_cv_prog_cc_g+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 cat >conftest.$ac_ext <<_ACEOF
1976 /* confdefs.h. */
1977 _ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1981
1982 int
1983 main ()
1984 {
1985
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>conftest.er1
1993 ac_status=$?
1994 grep -v '^ *+' conftest.er1 >conftest.err
1995 rm -f conftest.er1
1996 cat conftest.err >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -z "$ac_c_werror_flag"
2000 || test ! -s conftest.err'
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); }; } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 (eval $ac_try) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 ac_cv_prog_cc_g=yes
2013 else
2014 echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017 ac_cv_prog_cc_g=no
2018 fi
2019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020 fi
2021 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2022 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2023 if test "$ac_test_CFLAGS" = set; then
2024 CFLAGS=$ac_save_CFLAGS
2025 elif test $ac_cv_prog_cc_g = yes; then
2026 if test "$GCC" = yes; then
2027 CFLAGS="-g -O2"
2028 else
2029 CFLAGS="-g"
2030 fi
2031 else
2032 if test "$GCC" = yes; then
2033 CFLAGS="-O2"
2034 else
2035 CFLAGS=
2036 fi
2037 fi
2038 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2039 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2040 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 ac_cv_prog_cc_stdc=no
2044 ac_save_CC=$CC
2045 cat >conftest.$ac_ext <<_ACEOF
2046 /* confdefs.h. */
2047 _ACEOF
2048 cat confdefs.h >>conftest.$ac_ext
2049 cat >>conftest.$ac_ext <<_ACEOF
2050 /* end confdefs.h. */
2051 #include <stdarg.h>
2052 #include <stdio.h>
2053 #include <sys/types.h>
2054 #include <sys/stat.h>
2055 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2056 struct buf { int x; };
2057 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2058 static char *e (p, i)
2059 char **p;
2060 int i;
2061 {
2062 return p[i];
2063 }
2064 static char *f (char * (*g) (char **, int), char **p, ...)
2065 {
2066 char *s;
2067 va_list v;
2068 va_start (v,p);
2069 s = g (p, va_arg (v,int));
2070 va_end (v);
2071 return s;
2072 }
2073
2074 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2075 function prototypes and stuff, but not '\xHH' hex character constants.
2076 These don't provoke an error unfortunately, instead are silently treated
2077 as 'x'. The following induces an error, until -std1 is added to get
2078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2079 array size at least. It's necessary to write '\x00'==0 to get something
2080 that's true only with -std1. */
2081 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2082
2083 int test (int i, double x);
2084 struct s1 {int (*f) (int a);};
2085 struct s2 {int (*f) (double a);};
2086 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2087 int argc;
2088 char **argv;
2089 int
2090 main ()
2091 {
2092 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2093 ;
2094 return 0;
2095 }
2096 _ACEOF
2097 # Don't try gcc -ansi; that turns off useful extensions and
2098 # breaks some systems' header files.
2099 # AIX -qlanglvl=ansi
2100 # Ultrix and OSF/1 -std1
2101 # HP-UX 10.20 and later -Ae
2102 # HP-UX older versions -Aa -D_HPUX_SOURCE
2103 # SVR4 -Xc -D__EXTENSIONS__
2104 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2105 do
2106 CC="$ac_save_CC $ac_arg"
2107 rm -f conftest.$ac_objext
2108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>conftest.er1
2110 ac_status=$?
2111 grep -v '^ *+' conftest.er1 >conftest.err
2112 rm -f conftest.er1
2113 cat conftest.err >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -z "$ac_c_werror_flag"
2117 || test ! -s conftest.err'
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); }; } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2129 ac_cv_prog_cc_stdc=$ac_arg
2130 break
2131 else
2132 echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2134
2135 fi
2136 rm -f conftest.err conftest.$ac_objext
2137 done
2138 rm -f conftest.$ac_ext conftest.$ac_objext
2139 CC=$ac_save_CC
2140
2141 fi
2142
2143 case "x$ac_cv_prog_cc_stdc" in
2144 x|xno)
2145 echo "$as_me:$LINENO: result: none needed" >&5
2146 echo "${ECHO_T}none needed" >&6 ;;
2147 *)
2148 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2149 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2150 CC="$CC $ac_cv_prog_cc_stdc" ;;
2151 esac
2152
2153 # Some people use a C++ compiler to compile C. Since we use `exit',
2154 # in C++ we need to declare it. In case someone uses the same compiler
2155 # for both compiling C and C++ we need to have the C++ compiler decide
2156 # the declaration of exit, since it's the most demanding environment.
2157 cat >conftest.$ac_ext <<_ACEOF
2158 #ifndef __cplusplus
2159 choke me
2160 #endif
2161 _ACEOF
2162 rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2165 ac_status=$?
2166 grep -v '^ *+' conftest.er1 >conftest.err
2167 rm -f conftest.er1
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag"
2172 || test ! -s conftest.err'
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); }; } &&
2178 { ac_try='test -s conftest.$ac_objext'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; }; then
2184 for ac_declaration in \
2185 '' \
2186 'extern "C" void std::exit (int) throw (); using std::exit;' \
2187 'extern "C" void std::exit (int); using std::exit;' \
2188 'extern "C" void exit (int) throw ();' \
2189 'extern "C" void exit (int);' \
2190 'void exit (int);'
2191 do
2192 cat >conftest.$ac_ext <<_ACEOF
2193 /* confdefs.h. */
2194 _ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h. */
2198 $ac_declaration
2199 #include <stdlib.h>
2200 int
2201 main ()
2202 {
2203 exit (42);
2204 ;
2205 return 0;
2206 }
2207 _ACEOF
2208 rm -f conftest.$ac_objext
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>conftest.er1
2211 ac_status=$?
2212 grep -v '^ *+' conftest.er1 >conftest.err
2213 rm -f conftest.er1
2214 cat conftest.err >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); } &&
2217 { ac_try='test -z "$ac_c_werror_flag"
2218 || test ! -s conftest.err'
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); }; } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 :
2231 else
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 continue
2236 fi
2237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2238 cat >conftest.$ac_ext <<_ACEOF
2239 /* confdefs.h. */
2240 _ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2244 $ac_declaration
2245 int
2246 main ()
2247 {
2248 exit (42);
2249 ;
2250 return 0;
2251 }
2252 _ACEOF
2253 rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>conftest.er1
2256 ac_status=$?
2257 grep -v '^ *+' conftest.er1 >conftest.err
2258 rm -f conftest.er1
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -z "$ac_c_werror_flag"
2263 || test ! -s conftest.err'
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); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 break
2276 else
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 fi
2281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282 done
2283 rm -f conftest*
2284 if test -n "$ac_declaration"; then
2285 echo '#ifdef __cplusplus' >>confdefs.h
2286 echo $ac_declaration >>confdefs.h
2287 echo '#endif' >>confdefs.h
2288 fi
2289
2290 else
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2293
2294 fi
2295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296 ac_ext=c
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301
2302
2303 cat >>confdefs.h <<\_ACEOF
2304 #define _GNU_SOURCE 1
2305 _ACEOF
2306
2307
2308
2309 ac_ext=c
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2315 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2316 # On Suns, sometimes $CPP names a directory.
2317 if test -n "$CPP" && test -d "$CPP"; then
2318 CPP=
2319 fi
2320 if test -z "$CPP"; then
2321 if test "${ac_cv_prog_CPP+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324 # Double quotes because CPP needs to be expanded
2325 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2326 do
2327 ac_preproc_ok=false
2328 for ac_c_preproc_warn_flag in '' yes
2329 do
2330 # Use a header file that comes with gcc, so configuring glibc
2331 # with a fresh cross-compiler works.
2332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2333 # <limits.h> exists even on freestanding compilers.
2334 # On the NeXT, cc -E runs the code through the compiler's parser,
2335 # not just through cpp. "Syntax error" is here to catch this case.
2336 cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2342 #ifdef __STDC__
2343 # include <limits.h>
2344 #else
2345 # include <assert.h>
2346 #endif
2347 Syntax error
2348 _ACEOF
2349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2351 ac_status=$?
2352 grep -v '^ *+' conftest.er1 >conftest.err
2353 rm -f conftest.er1
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } >/dev/null; then
2357 if test -s conftest.err; then
2358 ac_cpp_err=$ac_c_preproc_warn_flag
2359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2360 else
2361 ac_cpp_err=
2362 fi
2363 else
2364 ac_cpp_err=yes
2365 fi
2366 if test -z "$ac_cpp_err"; then
2367 :
2368 else
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 # Broken: fails on valid input.
2373 continue
2374 fi
2375 rm -f conftest.err conftest.$ac_ext
2376
2377 # OK, works on sane cases. Now check whether non-existent headers
2378 # can be detected and how.
2379 cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h. */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2385 #include <ac_nonexistent.h>
2386 _ACEOF
2387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } >/dev/null; then
2395 if test -s conftest.err; then
2396 ac_cpp_err=$ac_c_preproc_warn_flag
2397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2398 else
2399 ac_cpp_err=
2400 fi
2401 else
2402 ac_cpp_err=yes
2403 fi
2404 if test -z "$ac_cpp_err"; then
2405 # Broken: success on invalid input.
2406 continue
2407 else
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2410
2411 # Passes both tests.
2412 ac_preproc_ok=:
2413 break
2414 fi
2415 rm -f conftest.err conftest.$ac_ext
2416
2417 done
2418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2419 rm -f conftest.err conftest.$ac_ext
2420 if $ac_preproc_ok; then
2421 break
2422 fi
2423
2424 done
2425 ac_cv_prog_CPP=$CPP
2426
2427 fi
2428 CPP=$ac_cv_prog_CPP
2429 else
2430 ac_cv_prog_CPP=$CPP
2431 fi
2432 echo "$as_me:$LINENO: result: $CPP" >&5
2433 echo "${ECHO_T}$CPP" >&6
2434 ac_preproc_ok=false
2435 for ac_c_preproc_warn_flag in '' yes
2436 do
2437 # Use a header file that comes with gcc, so configuring glibc
2438 # with a fresh cross-compiler works.
2439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2440 # <limits.h> exists even on freestanding compilers.
2441 # On the NeXT, cc -E runs the code through the compiler's parser,
2442 # not just through cpp. "Syntax error" is here to catch this case.
2443 cat >conftest.$ac_ext <<_ACEOF
2444 /* confdefs.h. */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2449 #ifdef __STDC__
2450 # include <limits.h>
2451 #else
2452 # include <assert.h>
2453 #endif
2454 Syntax error
2455 _ACEOF
2456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } >/dev/null; then
2464 if test -s conftest.err; then
2465 ac_cpp_err=$ac_c_preproc_warn_flag
2466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2467 else
2468 ac_cpp_err=
2469 fi
2470 else
2471 ac_cpp_err=yes
2472 fi
2473 if test -z "$ac_cpp_err"; then
2474 :
2475 else
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 # Broken: fails on valid input.
2480 continue
2481 fi
2482 rm -f conftest.err conftest.$ac_ext
2483
2484 # OK, works on sane cases. Now check whether non-existent headers
2485 # can be detected and how.
2486 cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h. */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2492 #include <ac_nonexistent.h>
2493 _ACEOF
2494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } >/dev/null; then
2502 if test -s conftest.err; then
2503 ac_cpp_err=$ac_c_preproc_warn_flag
2504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2505 else
2506 ac_cpp_err=
2507 fi
2508 else
2509 ac_cpp_err=yes
2510 fi
2511 if test -z "$ac_cpp_err"; then
2512 # Broken: success on invalid input.
2513 continue
2514 else
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2517
2518 # Passes both tests.
2519 ac_preproc_ok=:
2520 break
2521 fi
2522 rm -f conftest.err conftest.$ac_ext
2523
2524 done
2525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2526 rm -f conftest.err conftest.$ac_ext
2527 if $ac_preproc_ok; then
2528 :
2529 else
2530 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2535 fi
2536
2537 ac_ext=c
2538 ac_cpp='$CPP $CPPFLAGS'
2539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542
2543
2544 echo "$as_me:$LINENO: checking for egrep" >&5
2545 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2546 if test "${ac_cv_prog_egrep+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2550 then ac_cv_prog_egrep='grep -E'
2551 else ac_cv_prog_egrep='egrep'
2552 fi
2553 fi
2554 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2555 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2556 EGREP=$ac_cv_prog_egrep
2557
2558
2559
2560 echo "$as_me:$LINENO: checking for AIX" >&5
2561 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2568 #ifdef _AIX
2569 yes
2570 #endif
2571
2572 _ACEOF
2573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2574 $EGREP "yes" >/dev/null 2>&1; then
2575 echo "$as_me:$LINENO: result: yes" >&5
2576 echo "${ECHO_T}yes" >&6
2577 cat >>confdefs.h <<\_ACEOF
2578 #define _ALL_SOURCE 1
2579 _ACEOF
2580
2581 else
2582 echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2584 fi
2585 rm -f conftest*
2586
2587
2588 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2589 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2590 if test "${ac_cv_search_strerror+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593 ac_func_search_save_LIBS=$LIBS
2594 ac_cv_search_strerror=no
2595 cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h. */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2601
2602 /* Override any gcc2 internal prototype to avoid an error. */
2603 #ifdef __cplusplus
2604 extern "C"
2605 #endif
2606 /* We use char because int might match the return type of a gcc2
2607 builtin and then its argument prototype would still apply. */
2608 char strerror ();
2609 int
2610 main ()
2611 {
2612 strerror ();
2613 ;
2614 return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext conftest$ac_exeext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2619 (eval $ac_link) 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
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); }; } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 ac_cv_search_strerror="none required"
2640 else
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 fi
2645 rm -f conftest.err conftest.$ac_objext \
2646 conftest$ac_exeext conftest.$ac_ext
2647 if test "$ac_cv_search_strerror" = no; then
2648 for ac_lib in cposix; do
2649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2650 cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h. */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2656
2657 /* Override any gcc2 internal prototype to avoid an error. */
2658 #ifdef __cplusplus
2659 extern "C"
2660 #endif
2661 /* We use char because int might match the return type of a gcc2
2662 builtin and then its argument prototype would still apply. */
2663 char strerror ();
2664 int
2665 main ()
2666 {
2667 strerror ();
2668 ;
2669 return 0;
2670 }
2671 _ACEOF
2672 rm -f conftest.$ac_objext conftest$ac_exeext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2674 (eval $ac_link) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
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); }; } &&
2688 { ac_try='test -s conftest$ac_exeext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_search_strerror="-l$ac_lib"
2695 break
2696 else
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700 fi
2701 rm -f conftest.err conftest.$ac_objext \
2702 conftest$ac_exeext conftest.$ac_ext
2703 done
2704 fi
2705 LIBS=$ac_func_search_save_LIBS
2706 fi
2707 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2708 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2709 if test "$ac_cv_search_strerror" != no; then
2710 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2711
2712 fi
2713
2714
2715
2716
2717 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2718 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2719 if test "${am_cv_prog_cc_stdc+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722 am_cv_prog_cc_stdc=no
2723 ac_save_CC="$CC"
2724 # Don't try gcc -ansi; that turns off useful extensions and
2725 # breaks some systems' header files.
2726 # AIX -qlanglvl=ansi
2727 # Ultrix and OSF/1 -std1
2728 # HP-UX 10.20 and later -Ae
2729 # HP-UX older versions -Aa -D_HPUX_SOURCE
2730 # SVR4 -Xc -D__EXTENSIONS__
2731 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732 do
2733 CC="$ac_save_CC $ac_arg"
2734 cat >conftest.$ac_ext <<_ACEOF
2735 /* confdefs.h. */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2740 #include <stdarg.h>
2741 #include <stdio.h>
2742 #include <sys/types.h>
2743 #include <sys/stat.h>
2744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2745 struct buf { int x; };
2746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2747 static char *e (p, i)
2748 char **p;
2749 int i;
2750 {
2751 return p[i];
2752 }
2753 static char *f (char * (*g) (char **, int), char **p, ...)
2754 {
2755 char *s;
2756 va_list v;
2757 va_start (v,p);
2758 s = g (p, va_arg (v,int));
2759 va_end (v);
2760 return s;
2761 }
2762 int test (int i, double x);
2763 struct s1 {int (*f) (int a);};
2764 struct s2 {int (*f) (double a);};
2765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2766 int argc;
2767 char **argv;
2768
2769 int
2770 main ()
2771 {
2772
2773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2774
2775 ;
2776 return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
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); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 am_cv_prog_cc_stdc="$ac_arg"; break
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 fi
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808 done
2809 CC="$ac_save_CC"
2810
2811 fi
2812
2813 if test -z "$am_cv_prog_cc_stdc"; then
2814 echo "$as_me:$LINENO: result: none needed" >&5
2815 echo "${ECHO_T}none needed" >&6
2816 else
2817 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2818 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2819 fi
2820 case "x$am_cv_prog_cc_stdc" in
2821 x|xno) ;;
2822 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2823 esac
2824
2825
2826 ac_aux_dir=
2827 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2828 if test -f $ac_dir/install-sh; then
2829 ac_aux_dir=$ac_dir
2830 ac_install_sh="$ac_aux_dir/install-sh -c"
2831 break
2832 elif test -f $ac_dir/install.sh; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/install.sh -c"
2835 break
2836 elif test -f $ac_dir/shtool; then
2837 ac_aux_dir=$ac_dir
2838 ac_install_sh="$ac_aux_dir/shtool install -c"
2839 break
2840 fi
2841 done
2842 if test -z "$ac_aux_dir"; then
2843 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2844 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2845 { (exit 1); exit 1; }; }
2846 fi
2847 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2848 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2849 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2850
2851 # Make sure we can run config.sub.
2852 $ac_config_sub sun4 >/dev/null 2>&1 ||
2853 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2854 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2855 { (exit 1); exit 1; }; }
2856
2857 echo "$as_me:$LINENO: checking build system type" >&5
2858 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2859 if test "${ac_cv_build+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 ac_cv_build_alias=$build_alias
2863 test -z "$ac_cv_build_alias" &&
2864 ac_cv_build_alias=`$ac_config_guess`
2865 test -z "$ac_cv_build_alias" &&
2866 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2867 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2868 { (exit 1); exit 1; }; }
2869 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2870 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2871 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2872 { (exit 1); exit 1; }; }
2873
2874 fi
2875 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2876 echo "${ECHO_T}$ac_cv_build" >&6
2877 build=$ac_cv_build
2878 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2879 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2880 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2881
2882
2883 echo "$as_me:$LINENO: checking host system type" >&5
2884 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2885 if test "${ac_cv_host+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888 ac_cv_host_alias=$host_alias
2889 test -z "$ac_cv_host_alias" &&
2890 ac_cv_host_alias=$ac_cv_build_alias
2891 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2892 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2893 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2894 { (exit 1); exit 1; }; }
2895
2896 fi
2897 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2898 echo "${ECHO_T}$ac_cv_host" >&6
2899 host=$ac_cv_host
2900 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2901 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2902 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2903
2904
2905 echo "$as_me:$LINENO: checking target system type" >&5
2906 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2907 if test "${ac_cv_target+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 ac_cv_target_alias=$target_alias
2911 test "x$ac_cv_target_alias" = "x" &&
2912 ac_cv_target_alias=$ac_cv_host_alias
2913 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2915 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2916 { (exit 1); exit 1; }; }
2917
2918 fi
2919 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2920 echo "${ECHO_T}$ac_cv_target" >&6
2921 target=$ac_cv_target
2922 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2923 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2924 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2925
2926
2927 # The aliases save the names the user supplied, while $host etc.
2928 # will get canonicalized.
2929 test -n "$target_alias" &&
2930 test "$program_prefix$program_suffix$program_transform_name" = \
2931 NONENONEs,x,x, &&
2932 program_prefix=${target_alias}-
2933
2934
2935 CONFIG_OBS=
2936 CONFIG_DEPS=
2937 CONFIG_SRCS=
2938 ENABLE_CFLAGS=
2939
2940 CONFIG_ALL=
2941 CONFIG_CLEAN=
2942 CONFIG_INSTALL=
2943 CONFIG_UNINSTALL=
2944
2945 # If we haven't got the data from the intl directory,
2946 # assume NLS is disabled.
2947 USE_NLS=no
2948 LIBINTL=
2949 LIBINTL_DEP=
2950 INCINTL=
2951 XGETTEXT=
2952 GMSGFMT=
2953 POSUB=
2954
2955 if test -f ../intl/config.intl; then
2956 . ../intl/config.intl
2957 fi
2958 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2959 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2960 if test x"$USE_NLS" != xyes; then
2961 echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2963 else
2964 echo "$as_me:$LINENO: result: yes" >&5
2965 echo "${ECHO_T}yes" >&6
2966
2967 cat >>confdefs.h <<\_ACEOF
2968 #define ENABLE_NLS 1
2969 _ACEOF
2970
2971
2972 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2973 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2974 # Look for .po and .gmo files in the source directory.
2975 CATALOGS=
2976 XLINGUAS=
2977 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2978 # If there aren't any .gmo files the shell will give us the
2979 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2980 # weeded out.
2981 case "$cat" in *\**)
2982 continue;;
2983 esac
2984 # The quadruple backslash is collapsed to a double backslash
2985 # by the backticks, then collapsed again by the double quotes,
2986 # leaving us with one backslash in the sed expression (right
2987 # before the dot that mustn't act as a wildcard).
2988 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2989 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2990 # The user is allowed to set LINGUAS to a list of languages to
2991 # install catalogs for. If it's empty that means "all of them."
2992 if test "x$LINGUAS" = x; then
2993 CATALOGS="$CATALOGS $cat"
2994 XLINGUAS="$XLINGUAS $lang"
2995 else
2996 case "$LINGUAS" in *$lang*)
2997 CATALOGS="$CATALOGS $cat"
2998 XLINGUAS="$XLINGUAS $lang"
2999 ;;
3000 esac
3001 fi
3002 done
3003 LINGUAS="$XLINGUAS"
3004 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3005 echo "${ECHO_T}$LINGUAS" >&6
3006
3007
3008 DATADIRNAME=share
3009
3010 INSTOBJEXT=.mo
3011
3012 GENCAT=gencat
3013
3014 CATOBJEXT=.gmo
3015
3016 fi
3017
3018 localedir='${datadir}/locale'
3019
3020
3021 if test x"$USE_NLS" = xyes; then
3022 CONFIG_ALL="$CONFIG_ALL all-po"
3023 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3024 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3025 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3026 fi
3027
3028 PACKAGE=gdb
3029
3030 cat >>confdefs.h <<_ACEOF
3031 #define PACKAGE "$PACKAGE"
3032 _ACEOF
3033
3034
3035
3036 debugdir=${libdir}/debug
3037
3038
3039 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
3040 if test "${with_separate_debug_dir+set}" = set; then
3041 withval="$with_separate_debug_dir"
3042 debugdir="${withval}"
3043 fi;
3044
3045
3046 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3048 ac_define_dir=`eval echo $debugdir`
3049 ac_define_dir=`eval echo $ac_define_dir`
3050
3051 cat >>confdefs.h <<_ACEOF
3052 #define DEBUGDIR "$ac_define_dir"
3053 _ACEOF
3054
3055
3056 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3057
3058 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3059 if test "x$prefix" = xNONE; then
3060 test_prefix=/usr/local
3061 else
3062 test_prefix=$prefix
3063 fi
3064 else
3065 test_prefix=$exec_prefix
3066 fi
3067 case ${debugdir} in
3068 "${test_prefix}"|"${test_prefix}/"*|\
3069 '${exec_prefix}'|'${exec_prefix}/'*)
3070
3071 cat >>confdefs.h <<\_ACEOF
3072 #define DEBUGDIR_RELOCATABLE 1
3073 _ACEOF
3074
3075 ;;
3076 esac
3077
3078
3079
3080 subdirs="$subdirs doc testsuite"
3081
3082
3083 # Provide defaults for some variables set by the per-host and per-target
3084 # configuration.
3085 gdb_host_obs=posix-hdep.o
3086
3087 if test "${target}" = "${host}"; then
3088 gdb_native=yes
3089 else
3090 gdb_native=no
3091 fi
3092
3093 . $srcdir/configure.host
3094
3095 . $srcdir/configure.tgt
3096
3097 # Fetch the default architecture and default target vector from BFD.
3098 targ=$target; . $srcdir/../bfd/config.bfd
3099
3100 # We only want the first architecture, so strip off the others if
3101 # there is more than one.
3102 targ_archs=`echo $targ_archs | sed 's/ .*//'`
3103
3104 if test "x$targ_archs" != x; then
3105
3106 cat >>confdefs.h <<_ACEOF
3107 #define DEFAULT_BFD_ARCH $targ_archs
3108 _ACEOF
3109
3110 fi
3111 if test "x$targ_defvec" != x; then
3112
3113 cat >>confdefs.h <<_ACEOF
3114 #define DEFAULT_BFD_VEC $targ_defvec
3115 _ACEOF
3116
3117 fi
3118
3119 test "$program_prefix" != NONE &&
3120 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3121 # Use a double $ so make ignores it.
3122 test "$program_suffix" != NONE &&
3123 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3124 # Double any \ or $. echo might interpret backslashes.
3125 # By default was `s,x,x', remove it if useless.
3126 cat <<\_ACEOF >conftest.sed
3127 s/[\\$]/&&/g;s/;s,x,x,$//
3128 _ACEOF
3129 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3130 rm conftest.sed
3131
3132
3133 # The CLI cannot be disabled yet, but may be in the future.
3134
3135 # Enable CLI.
3136 # Check whether --enable-gdbcli or --disable-gdbcli was given.
3137 if test "${enable_gdbcli+set}" = set; then
3138 enableval="$enable_gdbcli"
3139 case $enableval in
3140 yes)
3141 ;;
3142 no)
3143 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3144 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3145 { (exit 1); exit 1; }; } ;;
3146 *)
3147 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3148 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3149 { (exit 1); exit 1; }; } ;;
3150 esac
3151 else
3152 enable_gdbcli=yes
3153 fi;
3154 if test x"$enable_gdbcli" = xyes; then
3155 if test -d $srcdir/cli; then
3156 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3157 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3158 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3159 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3160 fi
3161 fi
3162
3163 # Enable MI.
3164 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3165 if test "${enable_gdbmi+set}" = set; then
3166 enableval="$enable_gdbmi"
3167 case $enableval in
3168 yes | no)
3169 ;;
3170 *)
3171 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3172 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3173 { (exit 1); exit 1; }; } ;;
3174 esac
3175 else
3176 enable_gdbmi=yes
3177 fi;
3178 if test x"$enable_gdbmi" = xyes; then
3179 if test -d $srcdir/mi; then
3180 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3181 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3182 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3183 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3184 fi
3185 fi
3186
3187 # Enable TUI.
3188 # Check whether --enable-tui or --disable-tui was given.
3189 if test "${enable_tui+set}" = set; then
3190 enableval="$enable_tui"
3191 case $enableval in
3192 yes | no)
3193 ;;
3194 *)
3195 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3196 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3197 { (exit 1); exit 1; }; } ;;
3198 esac
3199 else
3200 enable_tui=yes
3201 fi;
3202
3203 # Enable gdbtk.
3204 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3205 if test "${enable_gdbtk+set}" = set; then
3206 enableval="$enable_gdbtk"
3207 case $enableval in
3208 yes | no)
3209 ;;
3210 *)
3211 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3212 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3213 { (exit 1); exit 1; }; } ;;
3214 esac
3215 else
3216 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
3217 enable_gdbtk=yes
3218 else
3219 enable_gdbtk=no
3220 fi
3221 fi;
3222 # We unconditionally disable gdbtk tests on selected platforms.
3223 case $host_os in
3224 go32* | windows*)
3225 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3226 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3227 enable_gdbtk=no ;;
3228 esac
3229
3230 # Libunwind support.
3231 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3232 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3233 if test "${ac_cv_header_stdc+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242 #include <stdlib.h>
3243 #include <stdarg.h>
3244 #include <string.h>
3245 #include <float.h>
3246
3247 int
3248 main ()
3249 {
3250
3251 ;
3252 return 0;
3253 }
3254 _ACEOF
3255 rm -f conftest.$ac_objext
3256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257 (eval $ac_compile) 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -z "$ac_c_werror_flag"
3265 || test ! -s conftest.err'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; } &&
3271 { ac_try='test -s conftest.$ac_objext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 ac_cv_header_stdc=yes
3278 else
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 ac_cv_header_stdc=no
3283 fi
3284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3285
3286 if test $ac_cv_header_stdc = yes; then
3287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3288 cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h. */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294 #include <string.h>
3295
3296 _ACEOF
3297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3298 $EGREP "memchr" >/dev/null 2>&1; then
3299 :
3300 else
3301 ac_cv_header_stdc=no
3302 fi
3303 rm -f conftest*
3304
3305 fi
3306
3307 if test $ac_cv_header_stdc = yes; then
3308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3309 cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h. */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3315 #include <stdlib.h>
3316
3317 _ACEOF
3318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3319 $EGREP "free" >/dev/null 2>&1; then
3320 :
3321 else
3322 ac_cv_header_stdc=no
3323 fi
3324 rm -f conftest*
3325
3326 fi
3327
3328 if test $ac_cv_header_stdc = yes; then
3329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3330 if test "$cross_compiling" = yes; then
3331 :
3332 else
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <ctype.h>
3340 #if ((' ' & 0x0FF) == 0x020)
3341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3343 #else
3344 # define ISLOWER(c) \
3345 (('a' <= (c) && (c) <= 'i') \
3346 || ('j' <= (c) && (c) <= 'r') \
3347 || ('s' <= (c) && (c) <= 'z'))
3348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3349 #endif
3350
3351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3352 int
3353 main ()
3354 {
3355 int i;
3356 for (i = 0; i < 256; i++)
3357 if (XOR (islower (i), ISLOWER (i))
3358 || toupper (i) != TOUPPER (i))
3359 exit(2);
3360 exit (0);
3361 }
3362 _ACEOF
3363 rm -f conftest$ac_exeext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 :
3375 else
3376 echo "$as_me: program exited with status $ac_status" >&5
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3379
3380 ( exit $ac_status )
3381 ac_cv_header_stdc=no
3382 fi
3383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3384 fi
3385 fi
3386 fi
3387 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3388 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3389 if test $ac_cv_header_stdc = yes; then
3390
3391 cat >>confdefs.h <<\_ACEOF
3392 #define STDC_HEADERS 1
3393 _ACEOF
3394
3395 fi
3396
3397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3408 inttypes.h stdint.h unistd.h
3409 do
3410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3411 echo "$as_me:$LINENO: checking for $ac_header" >&5
3412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h. */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 $ac_includes_default
3423
3424 #include <$ac_header>
3425 _ACEOF
3426 rm -f conftest.$ac_objext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -z "$ac_c_werror_flag"
3436 || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 eval "$as_ac_Header=yes"
3449 else
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 eval "$as_ac_Header=no"
3454 fi
3455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456 fi
3457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3460 cat >>confdefs.h <<_ACEOF
3461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3462 _ACEOF
3463
3464 fi
3465
3466 done
3467
3468
3469
3470 # Check whether --with-libunwind or --without-libunwind was given.
3471 if test "${with_libunwind+set}" = set; then
3472 withval="$with_libunwind"
3473 case "${withval}" in
3474 yes) enable_libunwind=yes ;;
3475 no) enable_libunwind=no ;;
3476 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3477 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3478 { (exit 1); exit 1; }; } ;;
3479 esac
3480 else
3481
3482
3483 for ac_header in libunwind.h
3484 do
3485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3487 echo "$as_me:$LINENO: checking for $ac_header" >&5
3488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 fi
3492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3494 else
3495 # Is the header compilable?
3496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h. */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 $ac_includes_default
3505 #include <$ac_header>
3506 _ACEOF
3507 rm -f conftest.$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_header_compiler=yes
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534 ac_header_compiler=no
3535 fi
3536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3538 echo "${ECHO_T}$ac_header_compiler" >&6
3539
3540 # Is the header present?
3541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3543 cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 #include <$ac_header>
3550 _ACEOF
3551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 else
3563 ac_cpp_err=
3564 fi
3565 else
3566 ac_cpp_err=yes
3567 fi
3568 if test -z "$ac_cpp_err"; then
3569 ac_header_preproc=yes
3570 else
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574 ac_header_preproc=no
3575 fi
3576 rm -f conftest.err conftest.$ac_ext
3577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3578 echo "${ECHO_T}$ac_header_preproc" >&6
3579
3580 # So? What about this header?
3581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3582 yes:no: )
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3587 ac_header_preproc=yes
3588 ;;
3589 no:yes:* )
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3602 (
3603 cat <<\_ASBOX
3604 ## ------------------------------------------ ##
3605 ## Report this to the AC_PACKAGE_NAME lists. ##
3606 ## ------------------------------------------ ##
3607 _ASBOX
3608 ) |
3609 sed "s/^/$as_me: WARNING: /" >&2
3610 ;;
3611 esac
3612 echo "$as_me:$LINENO: checking for $ac_header" >&5
3613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 eval "$as_ac_Header=\$ac_header_preproc"
3618 fi
3619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3621
3622 fi
3623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3624 cat >>confdefs.h <<_ACEOF
3625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3626 _ACEOF
3627
3628 fi
3629
3630 done
3631
3632
3633 for ac_header in libunwind-ia64.h
3634 do
3635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3637 echo "$as_me:$LINENO: checking for $ac_header" >&5
3638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 fi
3642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3644 else
3645 # Is the header compilable?
3646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3648 cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h. */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 $ac_includes_default
3655 #include <$ac_header>
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_header_compiler=yes
3680 else
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 ac_header_compiler=no
3685 fi
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3688 echo "${ECHO_T}$ac_header_compiler" >&6
3689
3690 # Is the header present?
3691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3693 cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h. */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 #include <$ac_header>
3700 _ACEOF
3701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null; then
3709 if test -s conftest.err; then
3710 ac_cpp_err=$ac_c_preproc_warn_flag
3711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712 else
3713 ac_cpp_err=
3714 fi
3715 else
3716 ac_cpp_err=yes
3717 fi
3718 if test -z "$ac_cpp_err"; then
3719 ac_header_preproc=yes
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 ac_header_preproc=no
3725 fi
3726 rm -f conftest.err conftest.$ac_ext
3727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3728 echo "${ECHO_T}$ac_header_preproc" >&6
3729
3730 # So? What about this header?
3731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3732 yes:no: )
3733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3737 ac_header_preproc=yes
3738 ;;
3739 no:yes:* )
3740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3752 (
3753 cat <<\_ASBOX
3754 ## ------------------------------------------ ##
3755 ## Report this to the AC_PACKAGE_NAME lists. ##
3756 ## ------------------------------------------ ##
3757 _ASBOX
3758 ) |
3759 sed "s/^/$as_me: WARNING: /" >&2
3760 ;;
3761 esac
3762 echo "$as_me:$LINENO: checking for $ac_header" >&5
3763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767 eval "$as_ac_Header=\$ac_header_preproc"
3768 fi
3769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3771
3772 fi
3773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3774 cat >>confdefs.h <<_ACEOF
3775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3776 _ACEOF
3777
3778 fi
3779
3780 done
3781
3782 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3783 enable_libunwind=yes;
3784 fi
3785
3786 fi;
3787
3788 if test x"$enable_libunwind" = xyes; then
3789
3790 for ac_header in libunwind.h
3791 do
3792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3794 echo "$as_me:$LINENO: checking for $ac_header" >&5
3795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 fi
3799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3801 else
3802 # Is the header compilable?
3803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3805 cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h. */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811 $ac_includes_default
3812 #include <$ac_header>
3813 _ACEOF
3814 rm -f conftest.$ac_objext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
3823 { ac_try='test -z "$ac_c_werror_flag"
3824 || test ! -s conftest.err'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_header_compiler=yes
3837 else
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841 ac_header_compiler=no
3842 fi
3843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3845 echo "${ECHO_T}$ac_header_compiler" >&6
3846
3847 # Is the header present?
3848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 #include <$ac_header>
3857 _ACEOF
3858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } >/dev/null; then
3866 if test -s conftest.err; then
3867 ac_cpp_err=$ac_c_preproc_warn_flag
3868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3869 else
3870 ac_cpp_err=
3871 fi
3872 else
3873 ac_cpp_err=yes
3874 fi
3875 if test -z "$ac_cpp_err"; then
3876 ac_header_preproc=yes
3877 else
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 ac_header_preproc=no
3882 fi
3883 rm -f conftest.err conftest.$ac_ext
3884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3885 echo "${ECHO_T}$ac_header_preproc" >&6
3886
3887 # So? What about this header?
3888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3889 yes:no: )
3890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3894 ac_header_preproc=yes
3895 ;;
3896 no:yes:* )
3897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3909 (
3910 cat <<\_ASBOX
3911 ## ------------------------------------------ ##
3912 ## Report this to the AC_PACKAGE_NAME lists. ##
3913 ## ------------------------------------------ ##
3914 _ASBOX
3915 ) |
3916 sed "s/^/$as_me: WARNING: /" >&2
3917 ;;
3918 esac
3919 echo "$as_me:$LINENO: checking for $ac_header" >&5
3920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924 eval "$as_ac_Header=\$ac_header_preproc"
3925 fi
3926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3928
3929 fi
3930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3931 cat >>confdefs.h <<_ACEOF
3932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3933 _ACEOF
3934
3935 fi
3936
3937 done
3938
3939
3940 for ac_header in libunwind-ia64.h
3941 do
3942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3944 echo "$as_me:$LINENO: checking for $ac_header" >&5
3945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 fi
3949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3951 else
3952 # Is the header compilable?
3953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h. */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 $ac_includes_default
3962 #include <$ac_header>
3963 _ACEOF
3964 rm -f conftest.$ac_objext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966 (eval $ac_compile) 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } &&
3973 { ac_try='test -z "$ac_c_werror_flag"
3974 || test ! -s conftest.err'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 (eval $ac_try) 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_header_compiler=yes
3987 else
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3990
3991 ac_header_compiler=no
3992 fi
3993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3995 echo "${ECHO_T}$ac_header_compiler" >&6
3996
3997 # Is the header present?
3998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 #include <$ac_header>
4007 _ACEOF
4008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } >/dev/null; then
4016 if test -s conftest.err; then
4017 ac_cpp_err=$ac_c_preproc_warn_flag
4018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4019 else
4020 ac_cpp_err=
4021 fi
4022 else
4023 ac_cpp_err=yes
4024 fi
4025 if test -z "$ac_cpp_err"; then
4026 ac_header_preproc=yes
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 ac_header_preproc=no
4032 fi
4033 rm -f conftest.err conftest.$ac_ext
4034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4035 echo "${ECHO_T}$ac_header_preproc" >&6
4036
4037 # So? What about this header?
4038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4039 yes:no: )
4040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4044 ac_header_preproc=yes
4045 ;;
4046 no:yes:* )
4047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4059 (
4060 cat <<\_ASBOX
4061 ## ------------------------------------------ ##
4062 ## Report this to the AC_PACKAGE_NAME lists. ##
4063 ## ------------------------------------------ ##
4064 _ASBOX
4065 ) |
4066 sed "s/^/$as_me: WARNING: /" >&2
4067 ;;
4068 esac
4069 echo "$as_me:$LINENO: checking for $ac_header" >&5
4070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 eval "$as_ac_Header=\$ac_header_preproc"
4075 fi
4076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4078
4079 fi
4080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083 _ACEOF
4084
4085 fi
4086
4087 done
4088
4089
4090 cat >>confdefs.h <<\_ACEOF
4091 #define HAVE_LIBUNWIND 1
4092 _ACEOF
4093
4094 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4095 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4096 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4097 fi
4098
4099 # Profiling support.
4100 # Check whether --enable-profiling or --disable-profiling was given.
4101 if test "${enable_profiling+set}" = set; then
4102 enableval="$enable_profiling"
4103 case $enableval in
4104 yes | no)
4105 ;;
4106 *)
4107 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4108 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4109 { (exit 1); exit 1; }; } ;;
4110 esac
4111 else
4112 enable_profiling=no
4113 fi;
4114
4115
4116
4117 for ac_func in monstartup _mcleanup
4118 do
4119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4120 echo "$as_me:$LINENO: checking for $ac_func" >&5
4121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4122 if eval "test \"\${$as_ac_var+set}\" = set"; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4133 #define $ac_func innocuous_$ac_func
4134
4135 /* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char $ac_func (); below.
4137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 <limits.h> exists even on freestanding compilers. */
4139
4140 #ifdef __STDC__
4141 # include <limits.h>
4142 #else
4143 # include <assert.h>
4144 #endif
4145
4146 #undef $ac_func
4147
4148 /* Override any gcc2 internal prototype to avoid an error. */
4149 #ifdef __cplusplus
4150 extern "C"
4151 {
4152 #endif
4153 /* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
4155 char $ac_func ();
4156 /* The GNU C library defines this for functions which it implements
4157 to always fail with ENOSYS. Some functions are actually named
4158 something starting with __ and the normal name is an alias. */
4159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4160 choke me
4161 #else
4162 char (*f) () = $ac_func;
4163 #endif
4164 #ifdef __cplusplus
4165 }
4166 #endif
4167
4168 int
4169 main ()
4170 {
4171 return f != $ac_func;
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 rm -f conftest.$ac_objext conftest$ac_exeext
4177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4178 (eval $ac_link) 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag"
4186 || test ! -s conftest.err'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; } &&
4192 { ac_try='test -s conftest$ac_exeext'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 (eval $ac_try) 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4198 eval "$as_ac_var=yes"
4199 else
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203 eval "$as_ac_var=no"
4204 fi
4205 rm -f conftest.err conftest.$ac_objext \
4206 conftest$ac_exeext conftest.$ac_ext
4207 fi
4208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4210 if test `eval echo '${'$as_ac_var'}'` = yes; then
4211 cat >>confdefs.h <<_ACEOF
4212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4213 _ACEOF
4214
4215 fi
4216 done
4217
4218 echo "$as_me:$LINENO: checking for _etext" >&5
4219 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
4220 if test "${ac_cv_var__etext+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <stdlib.h>
4230 extern char _etext;
4231
4232 int
4233 main ()
4234 {
4235 free (&_etext);
4236 ;
4237 return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext conftest$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag"
4250 || test ! -s conftest.err'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest$ac_exeext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_cv_var__etext=yes
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4266
4267 ac_cv_var__etext=no
4268 fi
4269 rm -f conftest.err conftest.$ac_objext \
4270 conftest$ac_exeext conftest.$ac_ext
4271 fi
4272 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4273 echo "${ECHO_T}$ac_cv_var__etext" >&6
4274 if test $ac_cv_var__etext = yes; then
4275
4276 cat >>confdefs.h <<\_ACEOF
4277 #define HAVE__ETEXT 1
4278 _ACEOF
4279
4280 fi
4281 echo "$as_me:$LINENO: checking for etext" >&5
4282 echo $ECHO_N "checking for etext... $ECHO_C" >&6
4283 if test "${ac_cv_var_etext+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 cat >conftest.$ac_ext <<_ACEOF
4287 /* confdefs.h. */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4292 #include <stdlib.h>
4293 extern char etext;
4294
4295 int
4296 main ()
4297 {
4298 free (&etext);
4299 ;
4300 return 0;
4301 }
4302 _ACEOF
4303 rm -f conftest.$ac_objext conftest$ac_exeext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest$ac_exeext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 ac_cv_var_etext=yes
4326 else
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 ac_cv_var_etext=no
4331 fi
4332 rm -f conftest.err conftest.$ac_objext \
4333 conftest$ac_exeext conftest.$ac_ext
4334 fi
4335 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
4336 echo "${ECHO_T}$ac_cv_var_etext" >&6
4337 if test $ac_cv_var_etext = yes; then
4338
4339 cat >>confdefs.h <<\_ACEOF
4340 #define HAVE_ETEXT 1
4341 _ACEOF
4342
4343 fi
4344 if test "$enable_profiling" = yes ; then
4345 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4346 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4347 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4348 { (exit 1); exit 1; }; }
4349 fi
4350 PROFILE_CFLAGS=-pg
4351 OLD_CFLAGS="$CFLAGS"
4352 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4353
4354 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4355 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
4356 if test "${ac_cv_cc_supports_pg+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359 cat >conftest.$ac_ext <<_ACEOF
4360 /* confdefs.h. */
4361 _ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4365
4366 int
4367 main ()
4368 {
4369 int x;
4370 ;
4371 return 0;
4372 }
4373 _ACEOF
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest.$ac_objext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 ac_cv_cc_supports_pg=yes
4397 else
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4400
4401 ac_cv_cc_supports_pg=no
4402 fi
4403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4404 fi
4405 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4406 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
4407
4408 if test $ac_cv_cc_supports_pg = no; then
4409 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4410 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4411 { (exit 1); exit 1; }; }
4412 fi
4413
4414 CFLAGS="$OLD_CFLAGS"
4415 fi
4416
4417 # --------------------- #
4418 # Checks for programs. #
4419 # --------------------- #
4420
4421 for ac_prog in gawk mawk nawk awk
4422 do
4423 # Extract the first word of "$ac_prog", so it can be a program name with args.
4424 set dummy $ac_prog; ac_word=$2
4425 echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427 if test "${ac_cv_prog_AWK+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 if test -n "$AWK"; then
4431 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_AWK="$ac_prog"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444 done
4445 done
4446
4447 fi
4448 fi
4449 AWK=$ac_cv_prog_AWK
4450 if test -n "$AWK"; then
4451 echo "$as_me:$LINENO: result: $AWK" >&5
4452 echo "${ECHO_T}$AWK" >&6
4453 else
4454 echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4456 fi
4457
4458 test -n "$AWK" && break
4459 done
4460
4461 # Find a good install program. We prefer a C program (faster),
4462 # so one script is as good as another. But avoid the broken or
4463 # incompatible versions:
4464 # SysV /etc/install, /usr/sbin/install
4465 # SunOS /usr/etc/install
4466 # IRIX /sbin/install
4467 # AIX /bin/install
4468 # AmigaOS /C/install, which installs bootblocks on floppy discs
4469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4472 # OS/2's system install, which has a completely different semantic
4473 # ./install, which can be erroneously created by make from ./install.sh.
4474 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4475 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4476 if test -z "$INSTALL"; then
4477 if test "${ac_cv_path_install+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 # Account for people who put trailing slashes in PATH elements.
4486 case $as_dir/ in
4487 ./ | .// | /cC/* | \
4488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4490 /usr/ucb/* ) ;;
4491 *)
4492 # OSF1 and SCO ODT 3.0 have their own names for install.
4493 # Don't use installbsd from OSF since it installs stuff as root
4494 # by default.
4495 for ac_prog in ginstall scoinst install; do
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4498 if test $ac_prog = install &&
4499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4500 # AIX install. It has an incompatible calling convention.
4501 :
4502 elif test $ac_prog = install &&
4503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4504 # program-specific install script used by HP pwplus--don't use.
4505 :
4506 else
4507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4508 break 3
4509 fi
4510 fi
4511 done
4512 done
4513 ;;
4514 esac
4515 done
4516
4517
4518 fi
4519 if test "${ac_cv_path_install+set}" = set; then
4520 INSTALL=$ac_cv_path_install
4521 else
4522 # As a last resort, use the slow shell script. We don't cache a
4523 # path for INSTALL within a source directory, because that will
4524 # break other packages using the cache if that directory is
4525 # removed, or if the path is relative.
4526 INSTALL=$ac_install_sh
4527 fi
4528 fi
4529 echo "$as_me:$LINENO: result: $INSTALL" >&5
4530 echo "${ECHO_T}$INSTALL" >&6
4531
4532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4533 # It thinks the first close brace ends the variable substitution.
4534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4535
4536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4537
4538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4539
4540 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4541 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4542 LN_S=$as_ln_s
4543 if test "$LN_S" = "ln -s"; then
4544 echo "$as_me:$LINENO: result: yes" >&5
4545 echo "${ECHO_T}yes" >&6
4546 else
4547 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4548 echo "${ECHO_T}no, using $LN_S" >&6
4549 fi
4550
4551 if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4553 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4554 echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4556 if test "${ac_cv_prog_RANLIB+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 if test -n "$RANLIB"; then
4560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573 done
4574 done
4575
4576 fi
4577 fi
4578 RANLIB=$ac_cv_prog_RANLIB
4579 if test -n "$RANLIB"; then
4580 echo "$as_me:$LINENO: result: $RANLIB" >&5
4581 echo "${ECHO_T}$RANLIB" >&6
4582 else
4583 echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6
4585 fi
4586
4587 fi
4588 if test -z "$ac_cv_prog_RANLIB"; then
4589 ac_ct_RANLIB=$RANLIB
4590 # Extract the first word of "ranlib", so it can be a program name with args.
4591 set dummy ranlib; ac_word=$2
4592 echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 if test -n "$ac_ct_RANLIB"; then
4598 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_ac_ct_RANLIB="ranlib"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611 done
4612 done
4613
4614 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4615 fi
4616 fi
4617 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4618 if test -n "$ac_ct_RANLIB"; then
4619 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4620 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4621 else
4622 echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4624 fi
4625
4626 RANLIB=$ac_ct_RANLIB
4627 else
4628 RANLIB="$ac_cv_prog_RANLIB"
4629 fi
4630
4631 for ac_prog in 'bison -y' byacc
4632 do
4633 # Extract the first word of "$ac_prog", so it can be a program name with args.
4634 set dummy $ac_prog; ac_word=$2
4635 echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4637 if test "${ac_cv_prog_YACC+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 if test -n "$YACC"; then
4641 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_YACC="$ac_prog"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654 done
4655 done
4656
4657 fi
4658 fi
4659 YACC=$ac_cv_prog_YACC
4660 if test -n "$YACC"; then
4661 echo "$as_me:$LINENO: result: $YACC" >&5
4662 echo "${ECHO_T}$YACC" >&6
4663 else
4664 echo "$as_me:$LINENO: result: no" >&5
4665 echo "${ECHO_T}no" >&6
4666 fi
4667
4668 test -n "$YACC" && break
4669 done
4670 test -n "$YACC" || YACC="yacc"
4671
4672
4673 if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4675 set dummy ${ac_tool_prefix}ar; ac_word=$2
4676 echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4678 if test "${ac_cv_prog_AR+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681 if test -n "$AR"; then
4682 ac_cv_prog_AR="$AR" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691 ac_cv_prog_AR="${ac_tool_prefix}ar"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4694 fi
4695 done
4696 done
4697
4698 fi
4699 fi
4700 AR=$ac_cv_prog_AR
4701 if test -n "$AR"; then
4702 echo "$as_me:$LINENO: result: $AR" >&5
4703 echo "${ECHO_T}$AR" >&6
4704 else
4705 echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6
4707 fi
4708
4709 fi
4710 if test -z "$ac_cv_prog_AR"; then
4711 ac_ct_AR=$AR
4712 # Extract the first word of "ar", so it can be a program name with args.
4713 set dummy ar; ac_word=$2
4714 echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4716 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719 if test -n "$ac_ct_AR"; then
4720 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4721 else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4724 do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_prog_ac_ct_AR="ar"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733 done
4734 done
4735
4736 fi
4737 fi
4738 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4739 if test -n "$ac_ct_AR"; then
4740 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4741 echo "${ECHO_T}$ac_ct_AR" >&6
4742 else
4743 echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6
4745 fi
4746
4747 AR=$ac_ct_AR
4748 else
4749 AR="$ac_cv_prog_AR"
4750 fi
4751
4752 if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4754 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4755 echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4757 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 if test -n "$DLLTOOL"; then
4761 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774 done
4775 done
4776
4777 fi
4778 fi
4779 DLLTOOL=$ac_cv_prog_DLLTOOL
4780 if test -n "$DLLTOOL"; then
4781 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4782 echo "${ECHO_T}$DLLTOOL" >&6
4783 else
4784 echo "$as_me:$LINENO: result: no" >&5
4785 echo "${ECHO_T}no" >&6
4786 fi
4787
4788 fi
4789 if test -z "$ac_cv_prog_DLLTOOL"; then
4790 ac_ct_DLLTOOL=$DLLTOOL
4791 # Extract the first word of "dlltool", so it can be a program name with args.
4792 set dummy dlltool; ac_word=$2
4793 echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4795 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798 if test -n "$ac_ct_DLLTOOL"; then
4799 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812 done
4813 done
4814
4815 fi
4816 fi
4817 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4818 if test -n "$ac_ct_DLLTOOL"; then
4819 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4820 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4821 else
4822 echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6
4824 fi
4825
4826 DLLTOOL=$ac_ct_DLLTOOL
4827 else
4828 DLLTOOL="$ac_cv_prog_DLLTOOL"
4829 fi
4830
4831 if test -n "$ac_tool_prefix"; then
4832 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4833 set dummy ${ac_tool_prefix}windres; ac_word=$2
4834 echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4836 if test "${ac_cv_prog_WINDRES+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 if test -n "$WINDRES"; then
4840 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4844 do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853 done
4854 done
4855
4856 fi
4857 fi
4858 WINDRES=$ac_cv_prog_WINDRES
4859 if test -n "$WINDRES"; then
4860 echo "$as_me:$LINENO: result: $WINDRES" >&5
4861 echo "${ECHO_T}$WINDRES" >&6
4862 else
4863 echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6
4865 fi
4866
4867 fi
4868 if test -z "$ac_cv_prog_WINDRES"; then
4869 ac_ct_WINDRES=$WINDRES
4870 # Extract the first word of "windres", so it can be a program name with args.
4871 set dummy windres; ac_word=$2
4872 echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4874 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877 if test -n "$ac_ct_WINDRES"; then
4878 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4887 ac_cv_prog_ac_ct_WINDRES="windres"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4890 fi
4891 done
4892 done
4893
4894 fi
4895 fi
4896 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4897 if test -n "$ac_ct_WINDRES"; then
4898 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4899 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4900 else
4901 echo "$as_me:$LINENO: result: no" >&5
4902 echo "${ECHO_T}no" >&6
4903 fi
4904
4905 WINDRES=$ac_ct_WINDRES
4906 else
4907 WINDRES="$ac_cv_prog_WINDRES"
4908 fi
4909
4910
4911 # Needed for GNU/Hurd.
4912 if test -n "$ac_tool_prefix"; then
4913 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4914 set dummy ${ac_tool_prefix}mig; ac_word=$2
4915 echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4917 if test "${ac_cv_prog_MIG+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 if test -n "$MIG"; then
4921 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4933 fi
4934 done
4935 done
4936
4937 fi
4938 fi
4939 MIG=$ac_cv_prog_MIG
4940 if test -n "$MIG"; then
4941 echo "$as_me:$LINENO: result: $MIG" >&5
4942 echo "${ECHO_T}$MIG" >&6
4943 else
4944 echo "$as_me:$LINENO: result: no" >&5
4945 echo "${ECHO_T}no" >&6
4946 fi
4947
4948 fi
4949 if test -z "$ac_cv_prog_MIG"; then
4950 ac_ct_MIG=$MIG
4951 # Extract the first word of "mig", so it can be a program name with args.
4952 set dummy mig; ac_word=$2
4953 echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4955 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958 if test -n "$ac_ct_MIG"; then
4959 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_ac_ct_MIG="mig"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972 done
4973 done
4974
4975 fi
4976 fi
4977 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4978 if test -n "$ac_ct_MIG"; then
4979 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4980 echo "${ECHO_T}$ac_ct_MIG" >&6
4981 else
4982 echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4984 fi
4985
4986 MIG=$ac_ct_MIG
4987 else
4988 MIG="$ac_cv_prog_MIG"
4989 fi
4990
4991
4992 # ---------------------- #
4993 # Checks for libraries. #
4994 # ---------------------- #
4995
4996 # We might need to link with -lm; most simulators need it.
4997
4998 echo "$as_me:$LINENO: checking for main in -lm" >&5
4999 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5000 if test "${ac_cv_lib_m_main+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003 ac_check_lib_save_LIBS=$LIBS
5004 LIBS="-lm $LIBS"
5005 cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h. */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011
5012
5013 int
5014 main ()
5015 {
5016 main ();
5017 ;
5018 return 0;
5019 }
5020 _ACEOF
5021 rm -f conftest.$ac_objext conftest$ac_exeext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5023 (eval $ac_link) 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest$ac_exeext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_lib_m_main=yes
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 ac_cv_lib_m_main=no
5049 fi
5050 rm -f conftest.err conftest.$ac_objext \
5051 conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5053 fi
5054 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5055 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5056 if test $ac_cv_lib_m_main = yes; then
5057 cat >>confdefs.h <<_ACEOF
5058 #define HAVE_LIBM 1
5059 _ACEOF
5060
5061 LIBS="-lm $LIBS"
5062
5063 fi
5064
5065
5066 # We need to link with -lw to get `wctype' on Solaris before Solaris
5067 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5068 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5069 # is known to have this problem). Therefore we avoid libw if we can.
5070 echo "$as_me:$LINENO: checking for wctype" >&5
5071 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
5072 if test "${ac_cv_func_wctype+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
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 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5083 #define wctype innocuous_wctype
5084
5085 /* System header to define __stub macros and hopefully few prototypes,
5086 which can conflict with char wctype (); below.
5087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088 <limits.h> exists even on freestanding compilers. */
5089
5090 #ifdef __STDC__
5091 # include <limits.h>
5092 #else
5093 # include <assert.h>
5094 #endif
5095
5096 #undef wctype
5097
5098 /* Override any gcc2 internal prototype to avoid an error. */
5099 #ifdef __cplusplus
5100 extern "C"
5101 {
5102 #endif
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5105 char wctype ();
5106 /* The GNU C library defines this for functions which it implements
5107 to always fail with ENOSYS. Some functions are actually named
5108 something starting with __ and the normal name is an alias. */
5109 #if defined (__stub_wctype) || defined (__stub___wctype)
5110 choke me
5111 #else
5112 char (*f) () = wctype;
5113 #endif
5114 #ifdef __cplusplus
5115 }
5116 #endif
5117
5118 int
5119 main ()
5120 {
5121 return f != wctype;
5122 ;
5123 return 0;
5124 }
5125 _ACEOF
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>conftest.er1
5129 ac_status=$?
5130 grep -v '^ *+' conftest.er1 >conftest.err
5131 rm -f conftest.er1
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
5135 { ac_try='test -z "$ac_c_werror_flag"
5136 || test ! -s conftest.err'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_func_wctype=yes
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 ac_cv_func_wctype=no
5154 fi
5155 rm -f conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5157 fi
5158 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5159 echo "${ECHO_T}$ac_cv_func_wctype" >&6
5160 if test $ac_cv_func_wctype = yes; then
5161 :
5162 else
5163
5164 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5165 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
5166 if test "${ac_cv_lib_w_wctype+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169 ac_check_lib_save_LIBS=$LIBS
5170 LIBS="-lw $LIBS"
5171 cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h. */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 #ifdef __cplusplus
5180 extern "C"
5181 #endif
5182 /* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
5184 char wctype ();
5185 int
5186 main ()
5187 {
5188 wctype ();
5189 ;
5190 return 0;
5191 }
5192 _ACEOF
5193 rm -f conftest.$ac_objext conftest$ac_exeext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5195 (eval $ac_link) 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -z "$ac_c_werror_flag"
5203 || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try='test -s conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_lib_w_wctype=yes
5216 else
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5219
5220 ac_cv_lib_w_wctype=no
5221 fi
5222 rm -f conftest.err conftest.$ac_objext \
5223 conftest$ac_exeext conftest.$ac_ext
5224 LIBS=$ac_check_lib_save_LIBS
5225 fi
5226 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5227 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
5228 if test $ac_cv_lib_w_wctype = yes; then
5229 cat >>confdefs.h <<_ACEOF
5230 #define HAVE_LIBW 1
5231 _ACEOF
5232
5233 LIBS="-lw $LIBS"
5234
5235 fi
5236
5237 fi
5238
5239
5240 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
5241 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5242 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5243 if test "${ac_cv_search_gethostbyname+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 ac_func_search_save_LIBS=$LIBS
5247 ac_cv_search_gethostbyname=no
5248 cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254
5255 /* Override any gcc2 internal prototype to avoid an error. */
5256 #ifdef __cplusplus
5257 extern "C"
5258 #endif
5259 /* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
5261 char gethostbyname ();
5262 int
5263 main ()
5264 {
5265 gethostbyname ();
5266 ;
5267 return 0;
5268 }
5269 _ACEOF
5270 rm -f conftest.$ac_objext conftest$ac_exeext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272 (eval $ac_link) 2>conftest.er1
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
5279 { ac_try='test -z "$ac_c_werror_flag"
5280 || test ! -s conftest.err'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 (eval $ac_try) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; } &&
5286 { ac_try='test -s conftest$ac_exeext'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 (eval $ac_try) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_search_gethostbyname="none required"
5293 else
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 fi
5298 rm -f conftest.err conftest.$ac_objext \
5299 conftest$ac_exeext conftest.$ac_ext
5300 if test "$ac_cv_search_gethostbyname" = no; then
5301 for ac_lib in nsl; do
5302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5303 cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h. */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5309
5310 /* Override any gcc2 internal prototype to avoid an error. */
5311 #ifdef __cplusplus
5312 extern "C"
5313 #endif
5314 /* We use char because int might match the return type of a gcc2
5315 builtin and then its argument prototype would still apply. */
5316 char gethostbyname ();
5317 int
5318 main ()
5319 {
5320 gethostbyname ();
5321 ;
5322 return 0;
5323 }
5324 _ACEOF
5325 rm -f conftest.$ac_objext conftest$ac_exeext
5326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5327 (eval $ac_link) 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -z "$ac_c_werror_flag"
5335 || test ! -s conftest.err'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; } &&
5341 { ac_try='test -s conftest$ac_exeext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 (eval $ac_try) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_cv_search_gethostbyname="-l$ac_lib"
5348 break
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 fi
5354 rm -f conftest.err conftest.$ac_objext \
5355 conftest$ac_exeext conftest.$ac_ext
5356 done
5357 fi
5358 LIBS=$ac_func_search_save_LIBS
5359 fi
5360 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5361 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5362 if test "$ac_cv_search_gethostbyname" != no; then
5363 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5364
5365 fi
5366
5367
5368 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
5369 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5370 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5371 if test "${ac_cv_search_socketpair+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374 ac_func_search_save_LIBS=$LIBS
5375 ac_cv_search_socketpair=no
5376 cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h. */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382
5383 /* Override any gcc2 internal prototype to avoid an error. */
5384 #ifdef __cplusplus
5385 extern "C"
5386 #endif
5387 /* We use char because int might match the return type of a gcc2
5388 builtin and then its argument prototype would still apply. */
5389 char socketpair ();
5390 int
5391 main ()
5392 {
5393 socketpair ();
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 rm -f conftest.$ac_objext conftest$ac_exeext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5400 (eval $ac_link) 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -z "$ac_c_werror_flag"
5408 || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 (eval $ac_try) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest$ac_exeext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 (eval $ac_try) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_search_socketpair="none required"
5421 else
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 fi
5426 rm -f conftest.err conftest.$ac_objext \
5427 conftest$ac_exeext conftest.$ac_ext
5428 if test "$ac_cv_search_socketpair" = no; then
5429 for ac_lib in socket; do
5430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437
5438 /* Override any gcc2 internal prototype to avoid an error. */
5439 #ifdef __cplusplus
5440 extern "C"
5441 #endif
5442 /* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5444 char socketpair ();
5445 int
5446 main ()
5447 {
5448 socketpair ();
5449 ;
5450 return 0;
5451 }
5452 _ACEOF
5453 rm -f conftest.$ac_objext conftest$ac_exeext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455 (eval $ac_link) 2>conftest.er1
5456 ac_status=$?
5457 grep -v '^ *+' conftest.er1 >conftest.err
5458 rm -f conftest.er1
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_search_socketpair="-l$ac_lib"
5476 break
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481 fi
5482 rm -f conftest.err conftest.$ac_objext \
5483 conftest$ac_exeext conftest.$ac_ext
5484 done
5485 fi
5486 LIBS=$ac_func_search_save_LIBS
5487 fi
5488 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5489 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5490 if test "$ac_cv_search_socketpair" != no; then
5491 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5492
5493 fi
5494
5495
5496 # For the TUI, we need enhanced curses functionality.
5497 #
5498 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5499 # curses library because the latter might not provide all the
5500 # functionality we need. However, this leads to problems on systems
5501 # where the linker searches /usr/local/lib, but the compiler doesn't
5502 # search /usr/local/include, if ncurses is installed in /usr/local. A
5503 # default installation of ncurses on alpha*-dec-osf* will lead to such
5504 # a situation.
5505 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5506 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
5507 if test "${ac_cv_search_waddstr+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 ac_func_search_save_LIBS=$LIBS
5511 ac_cv_search_waddstr=no
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518
5519 /* Override any gcc2 internal prototype to avoid an error. */
5520 #ifdef __cplusplus
5521 extern "C"
5522 #endif
5523 /* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
5525 char waddstr ();
5526 int
5527 main ()
5528 {
5529 waddstr ();
5530 ;
5531 return 0;
5532 }
5533 _ACEOF
5534 rm -f conftest.$ac_objext conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
5543 { ac_try='test -z "$ac_c_werror_flag"
5544 || test ! -s conftest.err'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest$ac_exeext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_search_waddstr="none required"
5557 else
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5560
5561 fi
5562 rm -f conftest.err conftest.$ac_objext \
5563 conftest$ac_exeext conftest.$ac_ext
5564 if test "$ac_cv_search_waddstr" = no; then
5565 for ac_lib in ncurses cursesX curses; do
5566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5567 cat >conftest.$ac_ext <<_ACEOF
5568 /* confdefs.h. */
5569 _ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h. */
5573
5574 /* Override any gcc2 internal prototype to avoid an error. */
5575 #ifdef __cplusplus
5576 extern "C"
5577 #endif
5578 /* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5580 char waddstr ();
5581 int
5582 main ()
5583 {
5584 waddstr ();
5585 ;
5586 return 0;
5587 }
5588 _ACEOF
5589 rm -f conftest.$ac_objext conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -z "$ac_c_werror_flag"
5599 || test ! -s conftest.err'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try='test -s conftest$ac_exeext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 (eval $ac_try) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_search_waddstr="-l$ac_lib"
5612 break
5613 else
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5616
5617 fi
5618 rm -f conftest.err conftest.$ac_objext \
5619 conftest$ac_exeext conftest.$ac_ext
5620 done
5621 fi
5622 LIBS=$ac_func_search_save_LIBS
5623 fi
5624 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5625 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5626 if test "$ac_cv_search_waddstr" != no; then
5627 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
5628
5629 fi
5630
5631
5632 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
5633 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
5634 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
5635 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638 ac_func_search_save_LIBS=$LIBS
5639 ac_cv_search_dlgetmodinfo=no
5640 cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h. */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646
5647 /* Override any gcc2 internal prototype to avoid an error. */
5648 #ifdef __cplusplus
5649 extern "C"
5650 #endif
5651 /* We use char because int might match the return type of a gcc2
5652 builtin and then its argument prototype would still apply. */
5653 char dlgetmodinfo ();
5654 int
5655 main ()
5656 {
5657 dlgetmodinfo ();
5658 ;
5659 return 0;
5660 }
5661 _ACEOF
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664 (eval $ac_link) 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_search_dlgetmodinfo="none required"
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689 fi
5690 rm -f conftest.err conftest.$ac_objext \
5691 conftest$ac_exeext conftest.$ac_ext
5692 if test "$ac_cv_search_dlgetmodinfo" = no; then
5693 for ac_lib in dl xpdl; do
5694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5695 cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h. */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701
5702 /* Override any gcc2 internal prototype to avoid an error. */
5703 #ifdef __cplusplus
5704 extern "C"
5705 #endif
5706 /* We use char because int might match the return type of a gcc2
5707 builtin and then its argument prototype would still apply. */
5708 char dlgetmodinfo ();
5709 int
5710 main ()
5711 {
5712 dlgetmodinfo ();
5713 ;
5714 return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -z "$ac_c_werror_flag"
5727 || test ! -s conftest.err'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; } &&
5733 { ac_try='test -s conftest$ac_exeext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 ac_cv_search_dlgetmodinfo="-l$ac_lib"
5740 break
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5744
5745 fi
5746 rm -f conftest.err conftest.$ac_objext \
5747 conftest$ac_exeext conftest.$ac_ext
5748 done
5749 fi
5750 LIBS=$ac_func_search_save_LIBS
5751 fi
5752 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
5753 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
5754 if test "$ac_cv_search_dlgetmodinfo" != no; then
5755 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
5756
5757 fi
5758
5759
5760 # Since GDB uses Readline, we need termcap functionality. In many
5761 # cases this will be provided by the curses library, but some systems
5762 # have a seperate termcap library, or no curses library at all.
5763
5764 case $host_os in
5765 cygwin*)
5766 if test -d $srcdir/libtermcap; then
5767 LIBS="../libtermcap/libtermcap.a $LIBS"
5768 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5769 fi ;;
5770 go32* | *djgpp*)
5771 ac_cv_search_tgetent="none required"
5772 ;;
5773 *mingw32*)
5774 ac_cv_search_tgetent="none required"
5775 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5776 ;;
5777 esac
5778
5779 # These are the libraries checked by Readline.
5780 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5781 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5782 if test "${ac_cv_search_tgetent+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785 ac_func_search_save_LIBS=$LIBS
5786 ac_cv_search_tgetent=no
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793
5794 /* Override any gcc2 internal prototype to avoid an error. */
5795 #ifdef __cplusplus
5796 extern "C"
5797 #endif
5798 /* We use char because int might match the return type of a gcc2
5799 builtin and then its argument prototype would still apply. */
5800 char tgetent ();
5801 int
5802 main ()
5803 {
5804 tgetent ();
5805 ;
5806 return 0;
5807 }
5808 _ACEOF
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811 (eval $ac_link) 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -z "$ac_c_werror_flag"
5819 || test ! -s conftest.err'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 (eval $ac_try) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest$ac_exeext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 ac_cv_search_tgetent="none required"
5832 else
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5835
5836 fi
5837 rm -f conftest.err conftest.$ac_objext \
5838 conftest$ac_exeext conftest.$ac_ext
5839 if test "$ac_cv_search_tgetent" = no; then
5840 for ac_lib in termcap tinfo curses ncurses; do
5841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848
5849 /* Override any gcc2 internal prototype to avoid an error. */
5850 #ifdef __cplusplus
5851 extern "C"
5852 #endif
5853 /* We use char because int might match the return type of a gcc2
5854 builtin and then its argument prototype would still apply. */
5855 char tgetent ();
5856 int
5857 main ()
5858 {
5859 tgetent ();
5860 ;
5861 return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866 (eval $ac_link) 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest$ac_exeext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_search_tgetent="-l$ac_lib"
5887 break
5888 else
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892 fi
5893 rm -f conftest.err conftest.$ac_objext \
5894 conftest$ac_exeext conftest.$ac_ext
5895 done
5896 fi
5897 LIBS=$ac_func_search_save_LIBS
5898 fi
5899 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5900 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5901 if test "$ac_cv_search_tgetent" != no; then
5902 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5903
5904 fi
5905
5906
5907 if test "$ac_cv_search_tgetent" = no; then
5908 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5909 echo "$as_me: error: no termcap library found" >&2;}
5910 { (exit 1); exit 1; }; }
5911 fi
5912
5913
5914 # Check whether --with-system-readline or --without-system-readline was given.
5915 if test "${with_system_readline+set}" = set; then
5916 withval="$with_system_readline"
5917
5918 fi;
5919
5920 if test "$with_system_readline" = yes; then
5921 READLINE=-lreadline
5922 READLINE_DEPS=
5923 READLINE_CFLAGS=
5924 else
5925 READLINE='$(READLINE_DIR)/libreadline.a'
5926 READLINE_DEPS='$(READLINE)'
5927 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
5928 fi
5929
5930
5931
5932
5933
5934 # Check whether --with-expat or --without-expat was given.
5935 if test "${with_expat+set}" = set; then
5936 withval="$with_expat"
5937
5938 else
5939 with_expat=auto
5940 fi;
5941 echo "$as_me:$LINENO: checking whether to use expat" >&5
5942 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
5943 echo "$as_me:$LINENO: result: $with_expat" >&5
5944 echo "${ECHO_T}$with_expat" >&6
5945
5946 if test "${with_expat}" = no; then
5947 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
5948 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
5949 HAVE_LIBEXPAT=no
5950 else
5951
5952 if test "X$prefix" = "XNONE"; then
5953 acl_final_prefix="$ac_default_prefix"
5954 else
5955 acl_final_prefix="$prefix"
5956 fi
5957 if test "X$exec_prefix" = "XNONE"; then
5958 acl_final_exec_prefix='${prefix}'
5959 else
5960 acl_final_exec_prefix="$exec_prefix"
5961 fi
5962 acl_save_prefix="$prefix"
5963 prefix="$acl_final_prefix"
5964 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5965 prefix="$acl_save_prefix"
5966
5967
5968 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5969 if test "${with_gnu_ld+set}" = set; then
5970 withval="$with_gnu_ld"
5971 test "$withval" = no || with_gnu_ld=yes
5972 else
5973 with_gnu_ld=no
5974 fi;
5975 # Prepare PATH_SEPARATOR.
5976 # The user is always right.
5977 if test "${PATH_SEPARATOR+set}" != set; then
5978 echo "#! /bin/sh" >conf$$.sh
5979 echo "exit 0" >>conf$$.sh
5980 chmod +x conf$$.sh
5981 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5982 PATH_SEPARATOR=';'
5983 else
5984 PATH_SEPARATOR=:
5985 fi
5986 rm -f conf$$.sh
5987 fi
5988 ac_prog=ld
5989 if test "$GCC" = yes; then
5990 # Check if gcc -print-prog-name=ld gives a path.
5991 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5992 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5993 case $host in
5994 *-*-mingw*)
5995 # gcc leaves a trailing carriage return which upsets mingw
5996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5997 *)
5998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5999 esac
6000 case $ac_prog in
6001 # Accept absolute paths.
6002 [\\/]* | [A-Za-z]:[\\/]*)
6003 re_direlt='/[^/][^/]*/\.\./'
6004 # Canonicalize the path of ld
6005 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6006 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6007 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6008 done
6009 test -z "$LD" && LD="$ac_prog"
6010 ;;
6011 "")
6012 # If it fails, then pretend we aren't using GCC.
6013 ac_prog=ld
6014 ;;
6015 *)
6016 # If it is relative, then search for the first ld in PATH.
6017 with_gnu_ld=unknown
6018 ;;
6019 esac
6020 elif test "$with_gnu_ld" = yes; then
6021 echo "$as_me:$LINENO: checking for GNU ld" >&5
6022 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6023 else
6024 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6025 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6026 fi
6027 if test "${acl_cv_path_LD+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030 if test -z "$LD"; then
6031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6032 for ac_dir in $PATH; do
6033 test -z "$ac_dir" && ac_dir=.
6034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6035 acl_cv_path_LD="$ac_dir/$ac_prog"
6036 # Check to see if the program is GNU ld. I'd rather use --version,
6037 # but apparently some GNU ld's only accept -v.
6038 # Break only if it was the GNU/non-GNU ld that we prefer.
6039 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6040 test "$with_gnu_ld" != no && break
6041 else
6042 test "$with_gnu_ld" != yes && break
6043 fi
6044 fi
6045 done
6046 IFS="$ac_save_ifs"
6047 else
6048 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6049 fi
6050 fi
6051
6052 LD="$acl_cv_path_LD"
6053 if test -n "$LD"; then
6054 echo "$as_me:$LINENO: result: $LD" >&5
6055 echo "${ECHO_T}$LD" >&6
6056 else
6057 echo "$as_me:$LINENO: result: no" >&5
6058 echo "${ECHO_T}no" >&6
6059 fi
6060 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6061 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6062 { (exit 1); exit 1; }; }
6063 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6064 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6065 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6069 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6070 acl_cv_prog_gnu_ld=yes
6071 else
6072 acl_cv_prog_gnu_ld=no
6073 fi
6074 fi
6075 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6076 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6077 with_gnu_ld=$acl_cv_prog_gnu_ld
6078
6079
6080
6081 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6082 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6083 if test "${acl_cv_rpath+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086
6087 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6088 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6089 . ./conftest.sh
6090 rm -f ./conftest.sh
6091 acl_cv_rpath=done
6092
6093 fi
6094 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6095 echo "${ECHO_T}$acl_cv_rpath" >&6
6096 wl="$acl_cv_wl"
6097 libext="$acl_cv_libext"
6098 shlibext="$acl_cv_shlibext"
6099 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6100 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6101 hardcode_direct="$acl_cv_hardcode_direct"
6102 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6103 # Check whether --enable-rpath or --disable-rpath was given.
6104 if test "${enable_rpath+set}" = set; then
6105 enableval="$enable_rpath"
6106 :
6107 else
6108 enable_rpath=yes
6109 fi;
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119 use_additional=yes
6120
6121 acl_save_prefix="$prefix"
6122 prefix="$acl_final_prefix"
6123 acl_save_exec_prefix="$exec_prefix"
6124 exec_prefix="$acl_final_exec_prefix"
6125
6126 eval additional_includedir=\"$includedir\"
6127 eval additional_libdir=\"$libdir\"
6128
6129 exec_prefix="$acl_save_exec_prefix"
6130 prefix="$acl_save_prefix"
6131
6132
6133 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
6134 if test "${with_libexpat_prefix+set}" = set; then
6135 withval="$with_libexpat_prefix"
6136
6137 if test "X$withval" = "Xno"; then
6138 use_additional=no
6139 else
6140 if test "X$withval" = "X"; then
6141
6142 acl_save_prefix="$prefix"
6143 prefix="$acl_final_prefix"
6144 acl_save_exec_prefix="$exec_prefix"
6145 exec_prefix="$acl_final_exec_prefix"
6146
6147 eval additional_includedir=\"$includedir\"
6148 eval additional_libdir=\"$libdir\"
6149
6150 exec_prefix="$acl_save_exec_prefix"
6151 prefix="$acl_save_prefix"
6152
6153 else
6154 additional_includedir="$withval/include"
6155 additional_libdir="$withval/lib"
6156 fi
6157 fi
6158
6159 fi;
6160 LIBEXPAT=
6161 LTLIBEXPAT=
6162 INCEXPAT=
6163 rpathdirs=
6164 ltrpathdirs=
6165 names_already_handled=
6166 names_next_round='expat '
6167 while test -n "$names_next_round"; do
6168 names_this_round="$names_next_round"
6169 names_next_round=
6170 for name in $names_this_round; do
6171 already_handled=
6172 for n in $names_already_handled; do
6173 if test "$n" = "$name"; then
6174 already_handled=yes
6175 break
6176 fi
6177 done
6178 if test -z "$already_handled"; then
6179 names_already_handled="$names_already_handled $name"
6180 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6181 eval value=\"\$HAVE_LIB$uppername\"
6182 if test -n "$value"; then
6183 if test "$value" = yes; then
6184 eval value=\"\$LIB$uppername\"
6185 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
6186 eval value=\"\$LTLIB$uppername\"
6187 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
6188 else
6189 :
6190 fi
6191 else
6192 found_dir=
6193 found_la=
6194 found_so=
6195 found_a=
6196 if test $use_additional = yes; then
6197 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6198 found_dir="$additional_libdir"
6199 found_so="$additional_libdir/lib$name.$shlibext"
6200 if test -f "$additional_libdir/lib$name.la"; then
6201 found_la="$additional_libdir/lib$name.la"
6202 fi
6203 else
6204 if test -f "$additional_libdir/lib$name.$libext"; then
6205 found_dir="$additional_libdir"
6206 found_a="$additional_libdir/lib$name.$libext"
6207 if test -f "$additional_libdir/lib$name.la"; then
6208 found_la="$additional_libdir/lib$name.la"
6209 fi
6210 fi
6211 fi
6212 fi
6213 if test "X$found_dir" = "X"; then
6214 for x in $LDFLAGS $LTLIBEXPAT; do
6215
6216 acl_save_prefix="$prefix"
6217 prefix="$acl_final_prefix"
6218 acl_save_exec_prefix="$exec_prefix"
6219 exec_prefix="$acl_final_exec_prefix"
6220 eval x=\"$x\"
6221 exec_prefix="$acl_save_exec_prefix"
6222 prefix="$acl_save_prefix"
6223
6224 case "$x" in
6225 -L*)
6226 dir=`echo "X$x" | sed -e 's/^X-L//'`
6227 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6228 found_dir="$dir"
6229 found_so="$dir/lib$name.$shlibext"
6230 if test -f "$dir/lib$name.la"; then
6231 found_la="$dir/lib$name.la"
6232 fi
6233 else
6234 if test -f "$dir/lib$name.$libext"; then
6235 found_dir="$dir"
6236 found_a="$dir/lib$name.$libext"
6237 if test -f "$dir/lib$name.la"; then
6238 found_la="$dir/lib$name.la"
6239 fi
6240 fi
6241 fi
6242 ;;
6243 esac
6244 if test "X$found_dir" != "X"; then
6245 break
6246 fi
6247 done
6248 fi
6249 if test "X$found_dir" != "X"; then
6250 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6251 if test "X$found_so" != "X"; then
6252 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6253 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6254 else
6255 haveit=
6256 for x in $ltrpathdirs; do
6257 if test "X$x" = "X$found_dir"; then
6258 haveit=yes
6259 break
6260 fi
6261 done
6262 if test -z "$haveit"; then
6263 ltrpathdirs="$ltrpathdirs $found_dir"
6264 fi
6265 if test "$hardcode_direct" = yes; then
6266 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6267 else
6268 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6269 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6270 haveit=
6271 for x in $rpathdirs; do
6272 if test "X$x" = "X$found_dir"; then
6273 haveit=yes
6274 break
6275 fi
6276 done
6277 if test -z "$haveit"; then
6278 rpathdirs="$rpathdirs $found_dir"
6279 fi
6280 else
6281 haveit=
6282 for x in $LDFLAGS $LIBEXPAT; do
6283
6284 acl_save_prefix="$prefix"
6285 prefix="$acl_final_prefix"
6286 acl_save_exec_prefix="$exec_prefix"
6287 exec_prefix="$acl_final_exec_prefix"
6288 eval x=\"$x\"
6289 exec_prefix="$acl_save_exec_prefix"
6290 prefix="$acl_save_prefix"
6291
6292 if test "X$x" = "X-L$found_dir"; then
6293 haveit=yes
6294 break
6295 fi
6296 done
6297 if test -z "$haveit"; then
6298 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6299 fi
6300 if test "$hardcode_minus_L" != no; then
6301 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6302 else
6303 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6304 fi
6305 fi
6306 fi
6307 fi
6308 else
6309 if test "X$found_a" != "X"; then
6310 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6311 else
6312 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6313 fi
6314 fi
6315 additional_includedir=
6316 case "$found_dir" in
6317 */lib | */lib/)
6318 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6319 additional_includedir="$basedir/include"
6320 ;;
6321 esac
6322 if test "X$additional_includedir" != "X"; then
6323 if test "X$additional_includedir" != "X/usr/include"; then
6324 haveit=
6325 if test "X$additional_includedir" = "X/usr/local/include"; then
6326 if test -n "$GCC"; then
6327 case $host_os in
6328 linux*) haveit=yes;;
6329 esac
6330 fi
6331 fi
6332 if test -z "$haveit"; then
6333 for x in $CPPFLAGS $INCEXPAT; do
6334
6335 acl_save_prefix="$prefix"
6336 prefix="$acl_final_prefix"
6337 acl_save_exec_prefix="$exec_prefix"
6338 exec_prefix="$acl_final_exec_prefix"
6339 eval x=\"$x\"
6340 exec_prefix="$acl_save_exec_prefix"
6341 prefix="$acl_save_prefix"
6342
6343 if test "X$x" = "X-I$additional_includedir"; then
6344 haveit=yes
6345 break
6346 fi
6347 done
6348 if test -z "$haveit"; then
6349 if test -d "$additional_includedir"; then
6350 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6351 fi
6352 fi
6353 fi
6354 fi
6355 fi
6356 if test -n "$found_la"; then
6357 save_libdir="$libdir"
6358 case "$found_la" in
6359 */* | *\\*) . "$found_la" ;;
6360 *) . "./$found_la" ;;
6361 esac
6362 libdir="$save_libdir"
6363 for dep in $dependency_libs; do
6364 case "$dep" in
6365 -L*)
6366 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6367 if test "X$additional_libdir" != "X/usr/lib"; then
6368 haveit=
6369 if test "X$additional_libdir" = "X/usr/local/lib"; then
6370 if test -n "$GCC"; then
6371 case $host_os in
6372 linux*) haveit=yes;;
6373 esac
6374 fi
6375 fi
6376 if test -z "$haveit"; then
6377 haveit=
6378 for x in $LDFLAGS $LIBEXPAT; do
6379
6380 acl_save_prefix="$prefix"
6381 prefix="$acl_final_prefix"
6382 acl_save_exec_prefix="$exec_prefix"
6383 exec_prefix="$acl_final_exec_prefix"
6384 eval x=\"$x\"
6385 exec_prefix="$acl_save_exec_prefix"
6386 prefix="$acl_save_prefix"
6387
6388 if test "X$x" = "X-L$additional_libdir"; then
6389 haveit=yes
6390 break
6391 fi
6392 done
6393 if test -z "$haveit"; then
6394 if test -d "$additional_libdir"; then
6395 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6396 fi
6397 fi
6398 haveit=
6399 for x in $LDFLAGS $LTLIBEXPAT; do
6400
6401 acl_save_prefix="$prefix"
6402 prefix="$acl_final_prefix"
6403 acl_save_exec_prefix="$exec_prefix"
6404 exec_prefix="$acl_final_exec_prefix"
6405 eval x=\"$x\"
6406 exec_prefix="$acl_save_exec_prefix"
6407 prefix="$acl_save_prefix"
6408
6409 if test "X$x" = "X-L$additional_libdir"; then
6410 haveit=yes
6411 break
6412 fi
6413 done
6414 if test -z "$haveit"; then
6415 if test -d "$additional_libdir"; then
6416 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6417 fi
6418 fi
6419 fi
6420 fi
6421 ;;
6422 -R*)
6423 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6424 if test "$enable_rpath" != no; then
6425 haveit=
6426 for x in $rpathdirs; do
6427 if test "X$x" = "X$dir"; then
6428 haveit=yes
6429 break
6430 fi
6431 done
6432 if test -z "$haveit"; then
6433 rpathdirs="$rpathdirs $dir"
6434 fi
6435 haveit=
6436 for x in $ltrpathdirs; do
6437 if test "X$x" = "X$dir"; then
6438 haveit=yes
6439 break
6440 fi
6441 done
6442 if test -z "$haveit"; then
6443 ltrpathdirs="$ltrpathdirs $dir"
6444 fi
6445 fi
6446 ;;
6447 -l*)
6448 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6449 ;;
6450 *.la)
6451 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6452 ;;
6453 *)
6454 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6455 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6456 ;;
6457 esac
6458 done
6459 fi
6460 else
6461 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6462 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6463 fi
6464 fi
6465 fi
6466 done
6467 done
6468 if test "X$rpathdirs" != "X"; then
6469 if test -n "$hardcode_libdir_separator"; then
6470 alldirs=
6471 for found_dir in $rpathdirs; do
6472 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6473 done
6474 acl_save_libdir="$libdir"
6475 libdir="$alldirs"
6476 eval flag=\"$hardcode_libdir_flag_spec\"
6477 libdir="$acl_save_libdir"
6478 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6479 else
6480 for found_dir in $rpathdirs; do
6481 acl_save_libdir="$libdir"
6482 libdir="$found_dir"
6483 eval flag=\"$hardcode_libdir_flag_spec\"
6484 libdir="$acl_save_libdir"
6485 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6486 done
6487 fi
6488 fi
6489 if test "X$ltrpathdirs" != "X"; then
6490 for found_dir in $ltrpathdirs; do
6491 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6492 done
6493 fi
6494
6495
6496 ac_save_CPPFLAGS="$CPPFLAGS"
6497
6498 for element in $INCEXPAT; do
6499 haveit=
6500 for x in $CPPFLAGS; do
6501
6502 acl_save_prefix="$prefix"
6503 prefix="$acl_final_prefix"
6504 acl_save_exec_prefix="$exec_prefix"
6505 exec_prefix="$acl_final_exec_prefix"
6506 eval x=\"$x\"
6507 exec_prefix="$acl_save_exec_prefix"
6508 prefix="$acl_save_prefix"
6509
6510 if test "X$x" = "X$element"; then
6511 haveit=yes
6512 break
6513 fi
6514 done
6515 if test -z "$haveit"; then
6516 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6517 fi
6518 done
6519
6520
6521 echo "$as_me:$LINENO: checking for libexpat" >&5
6522 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6523 if test "${ac_cv_libexpat+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526
6527 ac_save_LIBS="$LIBS"
6528 LIBS="$LIBS $LIBEXPAT"
6529 cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h. */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 #include "expat.h"
6536 int
6537 main ()
6538 {
6539 XML_Parser p = XML_ParserCreate (0);
6540 ;
6541 return 0;
6542 }
6543 _ACEOF
6544 rm -f conftest.$ac_objext conftest$ac_exeext
6545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6546 (eval $ac_link) 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_c_werror_flag"
6554 || test ! -s conftest.err'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; } &&
6560 { ac_try='test -s conftest$ac_exeext'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; }; then
6566 ac_cv_libexpat=yes
6567 else
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6570
6571 ac_cv_libexpat=no
6572 fi
6573 rm -f conftest.err conftest.$ac_objext \
6574 conftest$ac_exeext conftest.$ac_ext
6575 LIBS="$ac_save_LIBS"
6576
6577 fi
6578 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6579 echo "${ECHO_T}$ac_cv_libexpat" >&6
6580 if test "$ac_cv_libexpat" = yes; then
6581 HAVE_LIBEXPAT=yes
6582
6583 cat >>confdefs.h <<\_ACEOF
6584 #define HAVE_LIBEXPAT 1
6585 _ACEOF
6586
6587 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6588 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6589 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6590 echo "${ECHO_T}$LIBEXPAT" >&6
6591 else
6592 HAVE_LIBEXPAT=no
6593 CPPFLAGS="$ac_save_CPPFLAGS"
6594 LIBEXPAT=
6595 LTLIBEXPAT=
6596 fi
6597
6598
6599
6600
6601
6602
6603 if test "$HAVE_LIBEXPAT" != yes; then
6604 if test "$with_expat" = yes; then
6605 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
6606 echo "$as_me: error: expat is missing or unusable" >&2;}
6607 { (exit 1); exit 1; }; }
6608 else
6609 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
6610 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
6611 fi
6612 else
6613 save_LIBS=$LIBS
6614 LIBS="$LIBS $LIBEXPAT"
6615
6616 for ac_func in XML_StopParser
6617 do
6618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6619 echo "$as_me:$LINENO: checking for $ac_func" >&5
6620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6621 if eval "test \"\${$as_ac_var+set}\" = set"; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6632 #define $ac_func innocuous_$ac_func
6633
6634 /* System header to define __stub macros and hopefully few prototypes,
6635 which can conflict with char $ac_func (); below.
6636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6637 <limits.h> exists even on freestanding compilers. */
6638
6639 #ifdef __STDC__
6640 # include <limits.h>
6641 #else
6642 # include <assert.h>
6643 #endif
6644
6645 #undef $ac_func
6646
6647 /* Override any gcc2 internal prototype to avoid an error. */
6648 #ifdef __cplusplus
6649 extern "C"
6650 {
6651 #endif
6652 /* We use char because int might match the return type of a gcc2
6653 builtin and then its argument prototype would still apply. */
6654 char $ac_func ();
6655 /* The GNU C library defines this for functions which it implements
6656 to always fail with ENOSYS. Some functions are actually named
6657 something starting with __ and the normal name is an alias. */
6658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6659 choke me
6660 #else
6661 char (*f) () = $ac_func;
6662 #endif
6663 #ifdef __cplusplus
6664 }
6665 #endif
6666
6667 int
6668 main ()
6669 {
6670 return f != $ac_func;
6671 ;
6672 return 0;
6673 }
6674 _ACEOF
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -z "$ac_c_werror_flag"
6685 || test ! -s conftest.err'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 (eval $ac_try) 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; } &&
6691 { ac_try='test -s conftest$ac_exeext'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 (eval $ac_try) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
6697 eval "$as_ac_var=yes"
6698 else
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6701
6702 eval "$as_ac_var=no"
6703 fi
6704 rm -f conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
6706 fi
6707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6709 if test `eval echo '${'$as_ac_var'}'` = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6712 _ACEOF
6713
6714 fi
6715 done
6716
6717 LIBS=$save_LIBS
6718 fi
6719 fi
6720
6721 # ------------------------- #
6722 # Checks for header files. #
6723 # ------------------------- #
6724
6725
6726
6727
6728
6729
6730 ac_header_dirent=no
6731 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6732 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6733 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6734 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h. */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 #include <sys/types.h>
6745 #include <$ac_hdr>
6746
6747 int
6748 main ()
6749 {
6750 if ((DIR *) 0)
6751 return 0;
6752 ;
6753 return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 eval "$as_ac_Header=yes"
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783 eval "$as_ac_Header=no"
6784 fi
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6786 fi
6787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6790 cat >>confdefs.h <<_ACEOF
6791 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6792 _ACEOF
6793
6794 ac_header_dirent=$ac_hdr; break
6795 fi
6796
6797 done
6798 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6799 if test $ac_header_dirent = dirent.h; then
6800 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6801 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6802 if test "${ac_cv_search_opendir+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805 ac_func_search_save_LIBS=$LIBS
6806 ac_cv_search_opendir=no
6807 cat >conftest.$ac_ext <<_ACEOF
6808 /* confdefs.h. */
6809 _ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6813
6814 /* Override any gcc2 internal prototype to avoid an error. */
6815 #ifdef __cplusplus
6816 extern "C"
6817 #endif
6818 /* We use char because int might match the return type of a gcc2
6819 builtin and then its argument prototype would still apply. */
6820 char opendir ();
6821 int
6822 main ()
6823 {
6824 opendir ();
6825 ;
6826 return 0;
6827 }
6828 _ACEOF
6829 rm -f conftest.$ac_objext conftest$ac_exeext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6831 (eval $ac_link) 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -z "$ac_c_werror_flag"
6839 || test ! -s conftest.err'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try='test -s conftest$ac_exeext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_cv_search_opendir="none required"
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6855
6856 fi
6857 rm -f conftest.err conftest.$ac_objext \
6858 conftest$ac_exeext conftest.$ac_ext
6859 if test "$ac_cv_search_opendir" = no; then
6860 for ac_lib in dir; do
6861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868
6869 /* Override any gcc2 internal prototype to avoid an error. */
6870 #ifdef __cplusplus
6871 extern "C"
6872 #endif
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6875 char opendir ();
6876 int
6877 main ()
6878 {
6879 opendir ();
6880 ;
6881 return 0;
6882 }
6883 _ACEOF
6884 rm -f conftest.$ac_objext conftest$ac_exeext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6886 (eval $ac_link) 2>conftest.er1
6887 ac_status=$?
6888 grep -v '^ *+' conftest.er1 >conftest.err
6889 rm -f conftest.er1
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } &&
6893 { ac_try='test -z "$ac_c_werror_flag"
6894 || test ! -s conftest.err'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 (eval $ac_try) 2>&5
6897 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; } &&
6900 { ac_try='test -s conftest$ac_exeext'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 (eval $ac_try) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6906 ac_cv_search_opendir="-l$ac_lib"
6907 break
6908 else
6909 echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6911
6912 fi
6913 rm -f conftest.err conftest.$ac_objext \
6914 conftest$ac_exeext conftest.$ac_ext
6915 done
6916 fi
6917 LIBS=$ac_func_search_save_LIBS
6918 fi
6919 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6920 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6921 if test "$ac_cv_search_opendir" != no; then
6922 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6923
6924 fi
6925
6926 else
6927 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6928 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6929 if test "${ac_cv_search_opendir+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 ac_func_search_save_LIBS=$LIBS
6933 ac_cv_search_opendir=no
6934 cat >conftest.$ac_ext <<_ACEOF
6935 /* confdefs.h. */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6940
6941 /* Override any gcc2 internal prototype to avoid an error. */
6942 #ifdef __cplusplus
6943 extern "C"
6944 #endif
6945 /* We use char because int might match the return type of a gcc2
6946 builtin and then its argument prototype would still apply. */
6947 char opendir ();
6948 int
6949 main ()
6950 {
6951 opendir ();
6952 ;
6953 return 0;
6954 }
6955 _ACEOF
6956 rm -f conftest.$ac_objext conftest$ac_exeext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958 (eval $ac_link) 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
6965 { ac_try='test -z "$ac_c_werror_flag"
6966 || test ! -s conftest.err'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; } &&
6972 { ac_try='test -s conftest$ac_exeext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 ac_cv_search_opendir="none required"
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6982
6983 fi
6984 rm -f conftest.err conftest.$ac_objext \
6985 conftest$ac_exeext conftest.$ac_ext
6986 if test "$ac_cv_search_opendir" = no; then
6987 for ac_lib in x; do
6988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6989 cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995
6996 /* Override any gcc2 internal prototype to avoid an error. */
6997 #ifdef __cplusplus
6998 extern "C"
6999 #endif
7000 /* We use char because int might match the return type of a gcc2
7001 builtin and then its argument prototype would still apply. */
7002 char opendir ();
7003 int
7004 main ()
7005 {
7006 opendir ();
7007 ;
7008 return 0;
7009 }
7010 _ACEOF
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag"
7021 || test ! -s conftest.err'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; } &&
7027 { ac_try='test -s conftest$ac_exeext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 (eval $ac_try) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7033 ac_cv_search_opendir="-l$ac_lib"
7034 break
7035 else
7036 echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7038
7039 fi
7040 rm -f conftest.err conftest.$ac_objext \
7041 conftest$ac_exeext conftest.$ac_ext
7042 done
7043 fi
7044 LIBS=$ac_func_search_save_LIBS
7045 fi
7046 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7047 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7048 if test "$ac_cv_search_opendir" != no; then
7049 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7050
7051 fi
7052
7053 fi
7054
7055 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7056 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7057 if test "${ac_cv_header_stat_broken+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060 cat >conftest.$ac_ext <<_ACEOF
7061 /* confdefs.h. */
7062 _ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h. */
7066 #include <sys/types.h>
7067 #include <sys/stat.h>
7068
7069 #if defined(S_ISBLK) && defined(S_IFDIR)
7070 # if S_ISBLK (S_IFDIR)
7071 You lose.
7072 # endif
7073 #endif
7074
7075 #if defined(S_ISBLK) && defined(S_IFCHR)
7076 # if S_ISBLK (S_IFCHR)
7077 You lose.
7078 # endif
7079 #endif
7080
7081 #if defined(S_ISLNK) && defined(S_IFREG)
7082 # if S_ISLNK (S_IFREG)
7083 You lose.
7084 # endif
7085 #endif
7086
7087 #if defined(S_ISSOCK) && defined(S_IFREG)
7088 # if S_ISSOCK (S_IFREG)
7089 You lose.
7090 # endif
7091 #endif
7092
7093 _ACEOF
7094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095 $EGREP "You lose" >/dev/null 2>&1; then
7096 ac_cv_header_stat_broken=yes
7097 else
7098 ac_cv_header_stat_broken=no
7099 fi
7100 rm -f conftest*
7101
7102 fi
7103 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7104 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7105 if test $ac_cv_header_stat_broken = yes; then
7106
7107 cat >>confdefs.h <<\_ACEOF
7108 #define STAT_MACROS_BROKEN 1
7109 _ACEOF
7110
7111 fi
7112
7113 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7114 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7115 if test "${ac_cv_header_stdc+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118 cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h. */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <stdlib.h>
7125 #include <stdarg.h>
7126 #include <string.h>
7127 #include <float.h>
7128
7129 int
7130 main ()
7131 {
7132
7133 ;
7134 return 0;
7135 }
7136 _ACEOF
7137 rm -f conftest.$ac_objext
7138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7139 (eval $ac_compile) 2>conftest.er1
7140 ac_status=$?
7141 grep -v '^ *+' conftest.er1 >conftest.err
7142 rm -f conftest.er1
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } &&
7146 { ac_try='test -z "$ac_c_werror_flag"
7147 || test ! -s conftest.err'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 (eval $ac_try) 2>&5
7150 ac_status=$?
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; } &&
7153 { ac_try='test -s conftest.$ac_objext'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 (eval $ac_try) 2>&5
7156 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; }; then
7159 ac_cv_header_stdc=yes
7160 else
7161 echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7163
7164 ac_cv_header_stdc=no
7165 fi
7166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7167
7168 if test $ac_cv_header_stdc = yes; then
7169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7170 cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h. */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 #include <string.h>
7177
7178 _ACEOF
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180 $EGREP "memchr" >/dev/null 2>&1; then
7181 :
7182 else
7183 ac_cv_header_stdc=no
7184 fi
7185 rm -f conftest*
7186
7187 fi
7188
7189 if test $ac_cv_header_stdc = yes; then
7190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 #include <stdlib.h>
7198
7199 _ACEOF
7200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7201 $EGREP "free" >/dev/null 2>&1; then
7202 :
7203 else
7204 ac_cv_header_stdc=no
7205 fi
7206 rm -f conftest*
7207
7208 fi
7209
7210 if test $ac_cv_header_stdc = yes; then
7211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7212 if test "$cross_compiling" = yes; then
7213 :
7214 else
7215 cat >conftest.$ac_ext <<_ACEOF
7216 /* confdefs.h. */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7221 #include <ctype.h>
7222 #if ((' ' & 0x0FF) == 0x020)
7223 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7224 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7225 #else
7226 # define ISLOWER(c) \
7227 (('a' <= (c) && (c) <= 'i') \
7228 || ('j' <= (c) && (c) <= 'r') \
7229 || ('s' <= (c) && (c) <= 'z'))
7230 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7231 #endif
7232
7233 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7234 int
7235 main ()
7236 {
7237 int i;
7238 for (i = 0; i < 256; i++)
7239 if (XOR (islower (i), ISLOWER (i))
7240 || toupper (i) != TOUPPER (i))
7241 exit(2);
7242 exit (0);
7243 }
7244 _ACEOF
7245 rm -f conftest$ac_exeext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7247 (eval $ac_link) 2>&5
7248 ac_status=$?
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 (eval $ac_try) 2>&5
7253 ac_status=$?
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; }; then
7256 :
7257 else
7258 echo "$as_me: program exited with status $ac_status" >&5
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7261
7262 ( exit $ac_status )
7263 ac_cv_header_stdc=no
7264 fi
7265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7266 fi
7267 fi
7268 fi
7269 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7270 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7271 if test $ac_cv_header_stdc = yes; then
7272
7273 cat >>confdefs.h <<\_ACEOF
7274 #define STDC_HEADERS 1
7275 _ACEOF
7276
7277 fi
7278
7279
7280 for ac_header in nlist.h
7281 do
7282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7284 echo "$as_me:$LINENO: checking for $ac_header" >&5
7285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 fi
7289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7291 else
7292 # Is the header compilable?
7293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7295 cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h. */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 $ac_includes_default
7302 #include <$ac_header>
7303 _ACEOF
7304 rm -f conftest.$ac_objext
7305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7306 (eval $ac_compile) 2>conftest.er1
7307 ac_status=$?
7308 grep -v '^ *+' conftest.er1 >conftest.err
7309 rm -f conftest.er1
7310 cat conftest.err >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } &&
7313 { ac_try='test -z "$ac_c_werror_flag"
7314 || test ! -s conftest.err'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 (eval $ac_try) 2>&5
7317 ac_status=$?
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; } &&
7320 { ac_try='test -s conftest.$ac_objext'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 (eval $ac_try) 2>&5
7323 ac_status=$?
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7326 ac_header_compiler=yes
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7330
7331 ac_header_compiler=no
7332 fi
7333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7335 echo "${ECHO_T}$ac_header_compiler" >&6
7336
7337 # Is the header present?
7338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 #include <$ac_header>
7347 _ACEOF
7348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7350 ac_status=$?
7351 grep -v '^ *+' conftest.er1 >conftest.err
7352 rm -f conftest.er1
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } >/dev/null; then
7356 if test -s conftest.err; then
7357 ac_cpp_err=$ac_c_preproc_warn_flag
7358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7359 else
7360 ac_cpp_err=
7361 fi
7362 else
7363 ac_cpp_err=yes
7364 fi
7365 if test -z "$ac_cpp_err"; then
7366 ac_header_preproc=yes
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 ac_header_preproc=no
7372 fi
7373 rm -f conftest.err conftest.$ac_ext
7374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7375 echo "${ECHO_T}$ac_header_preproc" >&6
7376
7377 # So? What about this header?
7378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7379 yes:no: )
7380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7384 ac_header_preproc=yes
7385 ;;
7386 no:yes:* )
7387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7399 (
7400 cat <<\_ASBOX
7401 ## ------------------------------------------ ##
7402 ## Report this to the AC_PACKAGE_NAME lists. ##
7403 ## ------------------------------------------ ##
7404 _ASBOX
7405 ) |
7406 sed "s/^/$as_me: WARNING: /" >&2
7407 ;;
7408 esac
7409 echo "$as_me:$LINENO: checking for $ac_header" >&5
7410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 eval "$as_ac_Header=\$ac_header_preproc"
7415 fi
7416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7418
7419 fi
7420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7421 cat >>confdefs.h <<_ACEOF
7422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7423 _ACEOF
7424
7425 fi
7426
7427 done
7428
7429
7430 for ac_header in link.h
7431 do
7432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7433 echo "$as_me:$LINENO: checking for $ac_header" >&5
7434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438 cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h. */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 #if HAVE_SYS_TYPES_H
7445 # include <sys/types.h>
7446 #endif
7447 #if HAVE_NLIST_H
7448 # include <nlist.h>
7449 #endif
7450
7451
7452 #include <$ac_header>
7453 _ACEOF
7454 rm -f conftest.$ac_objext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456 (eval $ac_compile) 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 eval "$as_ac_Header=yes"
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481 eval "$as_ac_Header=no"
7482 fi
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484 fi
7485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7488 cat >>confdefs.h <<_ACEOF
7489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7490 _ACEOF
7491
7492 fi
7493
7494 done
7495
7496
7497 for ac_header in machine/reg.h
7498 do
7499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7501 echo "$as_me:$LINENO: checking for $ac_header" >&5
7502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
7509 # Is the header compilable?
7510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7512 cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h. */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518 $ac_includes_default
7519 #include <$ac_header>
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -z "$ac_c_werror_flag"
7531 || test ! -s conftest.err'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_header_compiler=yes
7544 else
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7547
7548 ac_header_compiler=no
7549 fi
7550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7552 echo "${ECHO_T}$ac_header_compiler" >&6
7553
7554 # Is the header present?
7555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h. */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 #include <$ac_header>
7564 _ACEOF
7565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7567 ac_status=$?
7568 grep -v '^ *+' conftest.er1 >conftest.err
7569 rm -f conftest.er1
7570 cat conftest.err >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } >/dev/null; then
7573 if test -s conftest.err; then
7574 ac_cpp_err=$ac_c_preproc_warn_flag
7575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7576 else
7577 ac_cpp_err=
7578 fi
7579 else
7580 ac_cpp_err=yes
7581 fi
7582 if test -z "$ac_cpp_err"; then
7583 ac_header_preproc=yes
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588 ac_header_preproc=no
7589 fi
7590 rm -f conftest.err conftest.$ac_ext
7591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7592 echo "${ECHO_T}$ac_header_preproc" >&6
7593
7594 # So? What about this header?
7595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7596 yes:no: )
7597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7601 ac_header_preproc=yes
7602 ;;
7603 no:yes:* )
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7616 (
7617 cat <<\_ASBOX
7618 ## ------------------------------------------ ##
7619 ## Report this to the AC_PACKAGE_NAME lists. ##
7620 ## ------------------------------------------ ##
7621 _ASBOX
7622 ) |
7623 sed "s/^/$as_me: WARNING: /" >&2
7624 ;;
7625 esac
7626 echo "$as_me:$LINENO: checking for $ac_header" >&5
7627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631 eval "$as_ac_Header=\$ac_header_preproc"
7632 fi
7633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7635
7636 fi
7637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7638 cat >>confdefs.h <<_ACEOF
7639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7640 _ACEOF
7641
7642 fi
7643
7644 done
7645
7646
7647
7648 for ac_header in poll.h sys/poll.h
7649 do
7650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo "$as_me:$LINENO: checking for $ac_header" >&5
7653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 fi
7657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7659 else
7660 # Is the header compilable?
7661 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7663 cat >conftest.$ac_ext <<_ACEOF
7664 /* confdefs.h. */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 $ac_includes_default
7670 #include <$ac_header>
7671 _ACEOF
7672 rm -f conftest.$ac_objext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7674 (eval $ac_compile) 2>conftest.er1
7675 ac_status=$?
7676 grep -v '^ *+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try='test -z "$ac_c_werror_flag"
7682 || test ! -s conftest.err'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; } &&
7688 { ac_try='test -s conftest.$ac_objext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 (eval $ac_try) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 ac_header_compiler=yes
7695 else
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7698
7699 ac_header_compiler=no
7700 fi
7701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7703 echo "${ECHO_T}$ac_header_compiler" >&6
7704
7705 # Is the header present?
7706 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h. */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 #include <$ac_header>
7715 _ACEOF
7716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } >/dev/null; then
7724 if test -s conftest.err; then
7725 ac_cpp_err=$ac_c_preproc_warn_flag
7726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7727 else
7728 ac_cpp_err=
7729 fi
7730 else
7731 ac_cpp_err=yes
7732 fi
7733 if test -z "$ac_cpp_err"; then
7734 ac_header_preproc=yes
7735 else
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7738
7739 ac_header_preproc=no
7740 fi
7741 rm -f conftest.err conftest.$ac_ext
7742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7743 echo "${ECHO_T}$ac_header_preproc" >&6
7744
7745 # So? What about this header?
7746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7747 yes:no: )
7748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7752 ac_header_preproc=yes
7753 ;;
7754 no:yes:* )
7755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7767 (
7768 cat <<\_ASBOX
7769 ## ------------------------------------------ ##
7770 ## Report this to the AC_PACKAGE_NAME lists. ##
7771 ## ------------------------------------------ ##
7772 _ASBOX
7773 ) |
7774 sed "s/^/$as_me: WARNING: /" >&2
7775 ;;
7776 esac
7777 echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782 eval "$as_ac_Header=\$ac_header_preproc"
7783 fi
7784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7786
7787 fi
7788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7789 cat >>confdefs.h <<_ACEOF
7790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7791 _ACEOF
7792
7793 fi
7794
7795 done
7796
7797
7798
7799
7800 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7801 do
7802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804 echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 fi
7809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7811 else
7812 # Is the header compilable?
7813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h. */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 $ac_includes_default
7822 #include <$ac_header>
7823 _ACEOF
7824 rm -f conftest.$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826 (eval $ac_compile) 2>conftest.er1
7827 ac_status=$?
7828 grep -v '^ *+' conftest.er1 >conftest.err
7829 rm -f conftest.er1
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag"
7834 || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 (eval $ac_try) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try='test -s conftest.$ac_objext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 (eval $ac_try) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_header_compiler=yes
7847 else
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7850
7851 ac_header_compiler=no
7852 fi
7853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7855 echo "${ECHO_T}$ac_header_compiler" >&6
7856
7857 # Is the header present?
7858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7860 cat >conftest.$ac_ext <<_ACEOF
7861 /* confdefs.h. */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7866 #include <$ac_header>
7867 _ACEOF
7868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } >/dev/null; then
7876 if test -s conftest.err; then
7877 ac_cpp_err=$ac_c_preproc_warn_flag
7878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7879 else
7880 ac_cpp_err=
7881 fi
7882 else
7883 ac_cpp_err=yes
7884 fi
7885 if test -z "$ac_cpp_err"; then
7886 ac_header_preproc=yes
7887 else
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 ac_header_preproc=no
7892 fi
7893 rm -f conftest.err conftest.$ac_ext
7894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7895 echo "${ECHO_T}$ac_header_preproc" >&6
7896
7897 # So? What about this header?
7898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7899 yes:no: )
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7904 ac_header_preproc=yes
7905 ;;
7906 no:yes:* )
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7919 (
7920 cat <<\_ASBOX
7921 ## ------------------------------------------ ##
7922 ## Report this to the AC_PACKAGE_NAME lists. ##
7923 ## ------------------------------------------ ##
7924 _ASBOX
7925 ) |
7926 sed "s/^/$as_me: WARNING: /" >&2
7927 ;;
7928 esac
7929 echo "$as_me:$LINENO: checking for $ac_header" >&5
7930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934 eval "$as_ac_Header=\$ac_header_preproc"
7935 fi
7936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7938
7939 fi
7940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7941 cat >>confdefs.h <<_ACEOF
7942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7943 _ACEOF
7944
7945 fi
7946
7947 done
7948
7949
7950 for ac_header in signal.h
7951 do
7952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7954 echo "$as_me:$LINENO: checking for $ac_header" >&5
7955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 fi
7959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7961 else
7962 # Is the header compilable?
7963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7965 cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h. */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7971 $ac_includes_default
7972 #include <$ac_header>
7973 _ACEOF
7974 rm -f conftest.$ac_objext
7975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7976 (eval $ac_compile) 2>conftest.er1
7977 ac_status=$?
7978 grep -v '^ *+' conftest.er1 >conftest.err
7979 rm -f conftest.er1
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } &&
7983 { ac_try='test -z "$ac_c_werror_flag"
7984 || test ! -s conftest.err'
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 (eval $ac_try) 2>&5
7987 ac_status=$?
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; } &&
7990 { ac_try='test -s conftest.$ac_objext'
7991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992 (eval $ac_try) 2>&5
7993 ac_status=$?
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); }; }; then
7996 ac_header_compiler=yes
7997 else
7998 echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8000
8001 ac_header_compiler=no
8002 fi
8003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8005 echo "${ECHO_T}$ac_header_compiler" >&6
8006
8007 # Is the header present?
8008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8010 cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h. */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 #include <$ac_header>
8017 _ACEOF
8018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } >/dev/null; then
8026 if test -s conftest.err; then
8027 ac_cpp_err=$ac_c_preproc_warn_flag
8028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8029 else
8030 ac_cpp_err=
8031 fi
8032 else
8033 ac_cpp_err=yes
8034 fi
8035 if test -z "$ac_cpp_err"; then
8036 ac_header_preproc=yes
8037 else
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8040
8041 ac_header_preproc=no
8042 fi
8043 rm -f conftest.err conftest.$ac_ext
8044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8045 echo "${ECHO_T}$ac_header_preproc" >&6
8046
8047 # So? What about this header?
8048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8049 yes:no: )
8050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8054 ac_header_preproc=yes
8055 ;;
8056 no:yes:* )
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8069 (
8070 cat <<\_ASBOX
8071 ## ------------------------------------------ ##
8072 ## Report this to the AC_PACKAGE_NAME lists. ##
8073 ## ------------------------------------------ ##
8074 _ASBOX
8075 ) |
8076 sed "s/^/$as_me: WARNING: /" >&2
8077 ;;
8078 esac
8079 echo "$as_me:$LINENO: checking for $ac_header" >&5
8080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 else
8084 eval "$as_ac_Header=\$ac_header_preproc"
8085 fi
8086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8088
8089 fi
8090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8091 cat >>confdefs.h <<_ACEOF
8092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8093 _ACEOF
8094
8095 fi
8096
8097 done
8098
8099
8100 for ac_header in stddef.h
8101 do
8102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8104 echo "$as_me:$LINENO: checking for $ac_header" >&5
8105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 fi
8109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8111 else
8112 # Is the header compilable?
8113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8115 cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h. */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 $ac_includes_default
8122 #include <$ac_header>
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag"
8134 || test ! -s conftest.err'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; } &&
8140 { ac_try='test -s conftest.$ac_objext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_header_compiler=yes
8147 else
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 ac_header_compiler=no
8152 fi
8153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8155 echo "${ECHO_T}$ac_header_compiler" >&6
8156
8157 # Is the header present?
8158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h. */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 #include <$ac_header>
8167 _ACEOF
8168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } >/dev/null; then
8176 if test -s conftest.err; then
8177 ac_cpp_err=$ac_c_preproc_warn_flag
8178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8179 else
8180 ac_cpp_err=
8181 fi
8182 else
8183 ac_cpp_err=yes
8184 fi
8185 if test -z "$ac_cpp_err"; then
8186 ac_header_preproc=yes
8187 else
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191 ac_header_preproc=no
8192 fi
8193 rm -f conftest.err conftest.$ac_ext
8194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8195 echo "${ECHO_T}$ac_header_preproc" >&6
8196
8197 # So? What about this header?
8198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8199 yes:no: )
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8204 ac_header_preproc=yes
8205 ;;
8206 no:yes:* )
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8219 (
8220 cat <<\_ASBOX
8221 ## ------------------------------------------ ##
8222 ## Report this to the AC_PACKAGE_NAME lists. ##
8223 ## ------------------------------------------ ##
8224 _ASBOX
8225 ) |
8226 sed "s/^/$as_me: WARNING: /" >&2
8227 ;;
8228 esac
8229 echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234 eval "$as_ac_Header=\$ac_header_preproc"
8235 fi
8236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8238
8239 fi
8240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8241 cat >>confdefs.h <<_ACEOF
8242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8243 _ACEOF
8244
8245 fi
8246
8247 done
8248
8249
8250 for ac_header in stdlib.h
8251 do
8252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254 echo "$as_me:$LINENO: checking for $ac_header" >&5
8255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 fi
8259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8261 else
8262 # Is the header compilable?
8263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8265 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h. */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8272 #include <$ac_header>
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8276 (eval $ac_compile) 2>conftest.er1
8277 ac_status=$?
8278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -z "$ac_c_werror_flag"
8284 || test ! -s conftest.err'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; } &&
8290 { ac_try='test -s conftest.$ac_objext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_header_compiler=yes
8297 else
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301 ac_header_compiler=no
8302 fi
8303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8305 echo "${ECHO_T}$ac_header_compiler" >&6
8306
8307 # Is the header present?
8308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8310 cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h. */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 #include <$ac_header>
8317 _ACEOF
8318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } >/dev/null; then
8326 if test -s conftest.err; then
8327 ac_cpp_err=$ac_c_preproc_warn_flag
8328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8329 else
8330 ac_cpp_err=
8331 fi
8332 else
8333 ac_cpp_err=yes
8334 fi
8335 if test -z "$ac_cpp_err"; then
8336 ac_header_preproc=yes
8337 else
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341 ac_header_preproc=no
8342 fi
8343 rm -f conftest.err conftest.$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8345 echo "${ECHO_T}$ac_header_preproc" >&6
8346
8347 # So? What about this header?
8348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8349 yes:no: )
8350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8354 ac_header_preproc=yes
8355 ;;
8356 no:yes:* )
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8369 (
8370 cat <<\_ASBOX
8371 ## ------------------------------------------ ##
8372 ## Report this to the AC_PACKAGE_NAME lists. ##
8373 ## ------------------------------------------ ##
8374 _ASBOX
8375 ) |
8376 sed "s/^/$as_me: WARNING: /" >&2
8377 ;;
8378 esac
8379 echo "$as_me:$LINENO: checking for $ac_header" >&5
8380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 else
8384 eval "$as_ac_Header=\$ac_header_preproc"
8385 fi
8386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8388
8389 fi
8390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8391 cat >>confdefs.h <<_ACEOF
8392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8393 _ACEOF
8394
8395 fi
8396
8397 done
8398
8399
8400 for ac_header in stdint.h
8401 do
8402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8404 echo "$as_me:$LINENO: checking for $ac_header" >&5
8405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 fi
8409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8411 else
8412 # Is the header compilable?
8413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h. */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 $ac_includes_default
8422 #include <$ac_header>
8423 _ACEOF
8424 rm -f conftest.$ac_objext
8425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8426 (eval $ac_compile) 2>conftest.er1
8427 ac_status=$?
8428 grep -v '^ *+' conftest.er1 >conftest.err
8429 rm -f conftest.er1
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } &&
8433 { ac_try='test -z "$ac_c_werror_flag"
8434 || test ! -s conftest.err'
8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 (eval $ac_try) 2>&5
8437 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; } &&
8440 { ac_try='test -s conftest.$ac_objext'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 ac_header_compiler=yes
8447 else
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451 ac_header_compiler=no
8452 fi
8453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8455 echo "${ECHO_T}$ac_header_compiler" >&6
8456
8457 # Is the header present?
8458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8460 cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h. */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 #include <$ac_header>
8467 _ACEOF
8468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8470 ac_status=$?
8471 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -f conftest.er1
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } >/dev/null; then
8476 if test -s conftest.err; then
8477 ac_cpp_err=$ac_c_preproc_warn_flag
8478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8479 else
8480 ac_cpp_err=
8481 fi
8482 else
8483 ac_cpp_err=yes
8484 fi
8485 if test -z "$ac_cpp_err"; then
8486 ac_header_preproc=yes
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8490
8491 ac_header_preproc=no
8492 fi
8493 rm -f conftest.err conftest.$ac_ext
8494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8495 echo "${ECHO_T}$ac_header_preproc" >&6
8496
8497 # So? What about this header?
8498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8499 yes:no: )
8500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8504 ac_header_preproc=yes
8505 ;;
8506 no:yes:* )
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8519 (
8520 cat <<\_ASBOX
8521 ## ------------------------------------------ ##
8522 ## Report this to the AC_PACKAGE_NAME lists. ##
8523 ## ------------------------------------------ ##
8524 _ASBOX
8525 ) |
8526 sed "s/^/$as_me: WARNING: /" >&2
8527 ;;
8528 esac
8529 echo "$as_me:$LINENO: checking for $ac_header" >&5
8530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534 eval "$as_ac_Header=\$ac_header_preproc"
8535 fi
8536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8538
8539 fi
8540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8541 cat >>confdefs.h <<_ACEOF
8542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8543 _ACEOF
8544
8545 fi
8546
8547 done
8548
8549
8550
8551
8552 for ac_header in string.h memory.h strings.h
8553 do
8554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8556 echo "$as_me:$LINENO: checking for $ac_header" >&5
8557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 fi
8561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8563 else
8564 # Is the header compilable?
8565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8567 cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h. */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 $ac_includes_default
8574 #include <$ac_header>
8575 _ACEOF
8576 rm -f conftest.$ac_objext
8577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8578 (eval $ac_compile) 2>conftest.er1
8579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag"
8586 || test ! -s conftest.err'
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 (eval $ac_try) 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; } &&
8592 { ac_try='test -s conftest.$ac_objext'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 ac_header_compiler=yes
8599 else
8600 echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8602
8603 ac_header_compiler=no
8604 fi
8605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8607 echo "${ECHO_T}$ac_header_compiler" >&6
8608
8609 # Is the header present?
8610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8612 cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h. */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8618 #include <$ac_header>
8619 _ACEOF
8620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } >/dev/null; then
8628 if test -s conftest.err; then
8629 ac_cpp_err=$ac_c_preproc_warn_flag
8630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8631 else
8632 ac_cpp_err=
8633 fi
8634 else
8635 ac_cpp_err=yes
8636 fi
8637 if test -z "$ac_cpp_err"; then
8638 ac_header_preproc=yes
8639 else
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8642
8643 ac_header_preproc=no
8644 fi
8645 rm -f conftest.err conftest.$ac_ext
8646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8647 echo "${ECHO_T}$ac_header_preproc" >&6
8648
8649 # So? What about this header?
8650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8651 yes:no: )
8652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8656 ac_header_preproc=yes
8657 ;;
8658 no:yes:* )
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8671 (
8672 cat <<\_ASBOX
8673 ## ------------------------------------------ ##
8674 ## Report this to the AC_PACKAGE_NAME lists. ##
8675 ## ------------------------------------------ ##
8676 _ASBOX
8677 ) |
8678 sed "s/^/$as_me: WARNING: /" >&2
8679 ;;
8680 esac
8681 echo "$as_me:$LINENO: checking for $ac_header" >&5
8682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686 eval "$as_ac_Header=\$ac_header_preproc"
8687 fi
8688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8690
8691 fi
8692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8693 cat >>confdefs.h <<_ACEOF
8694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8695 _ACEOF
8696
8697 fi
8698
8699 done
8700
8701
8702 for ac_header in sys/fault.h
8703 do
8704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8706 echo "$as_me:$LINENO: checking for $ac_header" >&5
8707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 fi
8711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8713 else
8714 # Is the header compilable?
8715 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8717 cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h. */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 $ac_includes_default
8724 #include <$ac_header>
8725 _ACEOF
8726 rm -f conftest.$ac_objext
8727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8728 (eval $ac_compile) 2>conftest.er1
8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try='test -z "$ac_c_werror_flag"
8736 || test ! -s conftest.err'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 (eval $ac_try) 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; } &&
8742 { ac_try='test -s conftest.$ac_objext'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 (eval $ac_try) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8748 ac_header_compiler=yes
8749 else
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8752
8753 ac_header_compiler=no
8754 fi
8755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8757 echo "${ECHO_T}$ac_header_compiler" >&6
8758
8759 # Is the header present?
8760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8762 cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h. */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 #include <$ac_header>
8769 _ACEOF
8770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } >/dev/null; then
8778 if test -s conftest.err; then
8779 ac_cpp_err=$ac_c_preproc_warn_flag
8780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8781 else
8782 ac_cpp_err=
8783 fi
8784 else
8785 ac_cpp_err=yes
8786 fi
8787 if test -z "$ac_cpp_err"; then
8788 ac_header_preproc=yes
8789 else
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8792
8793 ac_header_preproc=no
8794 fi
8795 rm -f conftest.err conftest.$ac_ext
8796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8797 echo "${ECHO_T}$ac_header_preproc" >&6
8798
8799 # So? What about this header?
8800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8801 yes:no: )
8802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8806 ac_header_preproc=yes
8807 ;;
8808 no:yes:* )
8809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8821 (
8822 cat <<\_ASBOX
8823 ## ------------------------------------------ ##
8824 ## Report this to the AC_PACKAGE_NAME lists. ##
8825 ## ------------------------------------------ ##
8826 _ASBOX
8827 ) |
8828 sed "s/^/$as_me: WARNING: /" >&2
8829 ;;
8830 esac
8831 echo "$as_me:$LINENO: checking for $ac_header" >&5
8832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836 eval "$as_ac_Header=\$ac_header_preproc"
8837 fi
8838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8840
8841 fi
8842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8843 cat >>confdefs.h <<_ACEOF
8844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8845 _ACEOF
8846
8847 fi
8848
8849 done
8850
8851
8852 for ac_header in sys/file.h
8853 do
8854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8856 echo "$as_me:$LINENO: checking for $ac_header" >&5
8857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 fi
8861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8863 else
8864 # Is the header compilable?
8865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h. */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 $ac_includes_default
8874 #include <$ac_header>
8875 _ACEOF
8876 rm -f conftest.$ac_objext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -z "$ac_c_werror_flag"
8886 || test ! -s conftest.err'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 (eval $ac_try) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest.$ac_objext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 ac_header_compiler=yes
8899 else
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8902
8903 ac_header_compiler=no
8904 fi
8905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8907 echo "${ECHO_T}$ac_header_compiler" >&6
8908
8909 # Is the header present?
8910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8912 cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h. */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918 #include <$ac_header>
8919 _ACEOF
8920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } >/dev/null; then
8928 if test -s conftest.err; then
8929 ac_cpp_err=$ac_c_preproc_warn_flag
8930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8931 else
8932 ac_cpp_err=
8933 fi
8934 else
8935 ac_cpp_err=yes
8936 fi
8937 if test -z "$ac_cpp_err"; then
8938 ac_header_preproc=yes
8939 else
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 ac_header_preproc=no
8944 fi
8945 rm -f conftest.err conftest.$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8947 echo "${ECHO_T}$ac_header_preproc" >&6
8948
8949 # So? What about this header?
8950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8951 yes:no: )
8952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8956 ac_header_preproc=yes
8957 ;;
8958 no:yes:* )
8959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8971 (
8972 cat <<\_ASBOX
8973 ## ------------------------------------------ ##
8974 ## Report this to the AC_PACKAGE_NAME lists. ##
8975 ## ------------------------------------------ ##
8976 _ASBOX
8977 ) |
8978 sed "s/^/$as_me: WARNING: /" >&2
8979 ;;
8980 esac
8981 echo "$as_me:$LINENO: checking for $ac_header" >&5
8982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986 eval "$as_ac_Header=\$ac_header_preproc"
8987 fi
8988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8990
8991 fi
8992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8993 cat >>confdefs.h <<_ACEOF
8994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8995 _ACEOF
8996
8997 fi
8998
8999 done
9000
9001
9002 for ac_header in sys/filio.h
9003 do
9004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9006 echo "$as_me:$LINENO: checking for $ac_header" >&5
9007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 fi
9011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9013 else
9014 # Is the header compilable?
9015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9017 cat >conftest.$ac_ext <<_ACEOF
9018 /* confdefs.h. */
9019 _ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9023 $ac_includes_default
9024 #include <$ac_header>
9025 _ACEOF
9026 rm -f conftest.$ac_objext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028 (eval $ac_compile) 2>conftest.er1
9029 ac_status=$?
9030 grep -v '^ *+' conftest.er1 >conftest.err
9031 rm -f conftest.er1
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
9035 { ac_try='test -z "$ac_c_werror_flag"
9036 || test ! -s conftest.err'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 (eval $ac_try) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest.$ac_objext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
9048 ac_header_compiler=yes
9049 else
9050 echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.$ac_ext >&5
9052
9053 ac_header_compiler=no
9054 fi
9055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9057 echo "${ECHO_T}$ac_header_compiler" >&6
9058
9059 # Is the header present?
9060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9062 cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h. */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9068 #include <$ac_header>
9069 _ACEOF
9070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } >/dev/null; then
9078 if test -s conftest.err; then
9079 ac_cpp_err=$ac_c_preproc_warn_flag
9080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9081 else
9082 ac_cpp_err=
9083 fi
9084 else
9085 ac_cpp_err=yes
9086 fi
9087 if test -z "$ac_cpp_err"; then
9088 ac_header_preproc=yes
9089 else
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9092
9093 ac_header_preproc=no
9094 fi
9095 rm -f conftest.err conftest.$ac_ext
9096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9097 echo "${ECHO_T}$ac_header_preproc" >&6
9098
9099 # So? What about this header?
9100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9101 yes:no: )
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9106 ac_header_preproc=yes
9107 ;;
9108 no:yes:* )
9109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9121 (
9122 cat <<\_ASBOX
9123 ## ------------------------------------------ ##
9124 ## Report this to the AC_PACKAGE_NAME lists. ##
9125 ## ------------------------------------------ ##
9126 _ASBOX
9127 ) |
9128 sed "s/^/$as_me: WARNING: /" >&2
9129 ;;
9130 esac
9131 echo "$as_me:$LINENO: checking for $ac_header" >&5
9132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136 eval "$as_ac_Header=\$ac_header_preproc"
9137 fi
9138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9140
9141 fi
9142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9143 cat >>confdefs.h <<_ACEOF
9144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9145 _ACEOF
9146
9147 fi
9148
9149 done
9150
9151
9152 for ac_header in sys/ioctl.h
9153 do
9154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9156 echo "$as_me:$LINENO: checking for $ac_header" >&5
9157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 fi
9161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9163 else
9164 # Is the header compilable?
9165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9167 cat >conftest.$ac_ext <<_ACEOF
9168 /* confdefs.h. */
9169 _ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9173 $ac_includes_default
9174 #include <$ac_header>
9175 _ACEOF
9176 rm -f conftest.$ac_objext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9178 (eval $ac_compile) 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
9185 { ac_try='test -z "$ac_c_werror_flag"
9186 || test ! -s conftest.err'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest.$ac_objext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 (eval $ac_try) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 ac_header_compiler=yes
9199 else
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9202
9203 ac_header_compiler=no
9204 fi
9205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9207 echo "${ECHO_T}$ac_header_compiler" >&6
9208
9209 # Is the header present?
9210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9212 cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h. */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9218 #include <$ac_header>
9219 _ACEOF
9220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } >/dev/null; then
9228 if test -s conftest.err; then
9229 ac_cpp_err=$ac_c_preproc_warn_flag
9230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9231 else
9232 ac_cpp_err=
9233 fi
9234 else
9235 ac_cpp_err=yes
9236 fi
9237 if test -z "$ac_cpp_err"; then
9238 ac_header_preproc=yes
9239 else
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9242
9243 ac_header_preproc=no
9244 fi
9245 rm -f conftest.err conftest.$ac_ext
9246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9247 echo "${ECHO_T}$ac_header_preproc" >&6
9248
9249 # So? What about this header?
9250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9251 yes:no: )
9252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9256 ac_header_preproc=yes
9257 ;;
9258 no:yes:* )
9259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9271 (
9272 cat <<\_ASBOX
9273 ## ------------------------------------------ ##
9274 ## Report this to the AC_PACKAGE_NAME lists. ##
9275 ## ------------------------------------------ ##
9276 _ASBOX
9277 ) |
9278 sed "s/^/$as_me: WARNING: /" >&2
9279 ;;
9280 esac
9281 echo "$as_me:$LINENO: checking for $ac_header" >&5
9282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286 eval "$as_ac_Header=\$ac_header_preproc"
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
9291 fi
9292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9293 cat >>confdefs.h <<_ACEOF
9294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9295 _ACEOF
9296
9297 fi
9298
9299 done
9300
9301
9302 for ac_header in sys/param.h
9303 do
9304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9306 echo "$as_me:$LINENO: checking for $ac_header" >&5
9307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 fi
9311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9313 else
9314 # Is the header compilable?
9315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9317 cat >conftest.$ac_ext <<_ACEOF
9318 /* confdefs.h. */
9319 _ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9323 $ac_includes_default
9324 #include <$ac_header>
9325 _ACEOF
9326 rm -f conftest.$ac_objext
9327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9328 (eval $ac_compile) 2>conftest.er1
9329 ac_status=$?
9330 grep -v '^ *+' conftest.er1 >conftest.err
9331 rm -f conftest.er1
9332 cat conftest.err >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } &&
9335 { ac_try='test -z "$ac_c_werror_flag"
9336 || test ! -s conftest.err'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 (eval $ac_try) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; } &&
9342 { ac_try='test -s conftest.$ac_objext'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 ac_header_compiler=yes
9349 else
9350 echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9352
9353 ac_header_compiler=no
9354 fi
9355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9357 echo "${ECHO_T}$ac_header_compiler" >&6
9358
9359 # Is the header present?
9360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9362 cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h. */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 #include <$ac_header>
9369 _ACEOF
9370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9372 ac_status=$?
9373 grep -v '^ *+' conftest.er1 >conftest.err
9374 rm -f conftest.er1
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } >/dev/null; then
9378 if test -s conftest.err; then
9379 ac_cpp_err=$ac_c_preproc_warn_flag
9380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9381 else
9382 ac_cpp_err=
9383 fi
9384 else
9385 ac_cpp_err=yes
9386 fi
9387 if test -z "$ac_cpp_err"; then
9388 ac_header_preproc=yes
9389 else
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 ac_header_preproc=no
9394 fi
9395 rm -f conftest.err conftest.$ac_ext
9396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9397 echo "${ECHO_T}$ac_header_preproc" >&6
9398
9399 # So? What about this header?
9400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9401 yes:no: )
9402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9406 ac_header_preproc=yes
9407 ;;
9408 no:yes:* )
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9421 (
9422 cat <<\_ASBOX
9423 ## ------------------------------------------ ##
9424 ## Report this to the AC_PACKAGE_NAME lists. ##
9425 ## ------------------------------------------ ##
9426 _ASBOX
9427 ) |
9428 sed "s/^/$as_me: WARNING: /" >&2
9429 ;;
9430 esac
9431 echo "$as_me:$LINENO: checking for $ac_header" >&5
9432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 else
9436 eval "$as_ac_Header=\$ac_header_preproc"
9437 fi
9438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9440
9441 fi
9442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9443 cat >>confdefs.h <<_ACEOF
9444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9445 _ACEOF
9446
9447 fi
9448
9449 done
9450
9451
9452 for ac_header in sys/resource.h
9453 do
9454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9456 echo "$as_me:$LINENO: checking for $ac_header" >&5
9457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 fi
9461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9463 else
9464 # Is the header compilable?
9465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9467 cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h. */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 $ac_includes_default
9474 #include <$ac_header>
9475 _ACEOF
9476 rm -f conftest.$ac_objext
9477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9478 (eval $ac_compile) 2>conftest.er1
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try='test -z "$ac_c_werror_flag"
9486 || test ! -s conftest.err'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; } &&
9492 { ac_try='test -s conftest.$ac_objext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 (eval $ac_try) 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 ac_header_compiler=yes
9499 else
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9502
9503 ac_header_compiler=no
9504 fi
9505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9507 echo "${ECHO_T}$ac_header_compiler" >&6
9508
9509 # Is the header present?
9510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9512 cat >conftest.$ac_ext <<_ACEOF
9513 /* confdefs.h. */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9518 #include <$ac_header>
9519 _ACEOF
9520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } >/dev/null; then
9528 if test -s conftest.err; then
9529 ac_cpp_err=$ac_c_preproc_warn_flag
9530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9531 else
9532 ac_cpp_err=
9533 fi
9534 else
9535 ac_cpp_err=yes
9536 fi
9537 if test -z "$ac_cpp_err"; then
9538 ac_header_preproc=yes
9539 else
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9542
9543 ac_header_preproc=no
9544 fi
9545 rm -f conftest.err conftest.$ac_ext
9546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9547 echo "${ECHO_T}$ac_header_preproc" >&6
9548
9549 # So? What about this header?
9550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9551 yes:no: )
9552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9556 ac_header_preproc=yes
9557 ;;
9558 no:yes:* )
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9571 (
9572 cat <<\_ASBOX
9573 ## ------------------------------------------ ##
9574 ## Report this to the AC_PACKAGE_NAME lists. ##
9575 ## ------------------------------------------ ##
9576 _ASBOX
9577 ) |
9578 sed "s/^/$as_me: WARNING: /" >&2
9579 ;;
9580 esac
9581 echo "$as_me:$LINENO: checking for $ac_header" >&5
9582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 else
9586 eval "$as_ac_Header=\$ac_header_preproc"
9587 fi
9588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9590
9591 fi
9592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9593 cat >>confdefs.h <<_ACEOF
9594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9595 _ACEOF
9596
9597 fi
9598
9599 done
9600
9601
9602 for ac_header in sys/proc.h
9603 do
9604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9605 echo "$as_me:$LINENO: checking for $ac_header" >&5
9606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610 cat >conftest.$ac_ext <<_ACEOF
9611 /* confdefs.h. */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 #if HAVE_SYS_PARAM_H
9617 # include <sys/param.h>
9618 #endif
9619
9620
9621 #include <$ac_header>
9622 _ACEOF
9623 rm -f conftest.$ac_objext
9624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9625 (eval $ac_compile) 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
9632 { ac_try='test -z "$ac_c_werror_flag"
9633 || test ! -s conftest.err'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 (eval $ac_try) 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; } &&
9639 { ac_try='test -s conftest.$ac_objext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 eval "$as_ac_Header=yes"
9646 else
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9649
9650 eval "$as_ac_Header=no"
9651 fi
9652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9653 fi
9654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9657 cat >>confdefs.h <<_ACEOF
9658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9659 _ACEOF
9660
9661 fi
9662
9663 done
9664
9665
9666 for ac_header in sys/procfs.h
9667 do
9668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9670 echo "$as_me:$LINENO: checking for $ac_header" >&5
9671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 fi
9675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9677 else
9678 # Is the header compilable?
9679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9681 cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h. */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687 $ac_includes_default
9688 #include <$ac_header>
9689 _ACEOF
9690 rm -f conftest.$ac_objext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9692 (eval $ac_compile) 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
9699 { ac_try='test -z "$ac_c_werror_flag"
9700 || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 (eval $ac_try) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 (eval $ac_try) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 ac_header_compiler=yes
9713 else
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 ac_header_compiler=no
9718 fi
9719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9721 echo "${ECHO_T}$ac_header_compiler" >&6
9722
9723 # Is the header present?
9724 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h. */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 #include <$ac_header>
9733 _ACEOF
9734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } >/dev/null; then
9742 if test -s conftest.err; then
9743 ac_cpp_err=$ac_c_preproc_warn_flag
9744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9745 else
9746 ac_cpp_err=
9747 fi
9748 else
9749 ac_cpp_err=yes
9750 fi
9751 if test -z "$ac_cpp_err"; then
9752 ac_header_preproc=yes
9753 else
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 ac_header_preproc=no
9758 fi
9759 rm -f conftest.err conftest.$ac_ext
9760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9761 echo "${ECHO_T}$ac_header_preproc" >&6
9762
9763 # So? What about this header?
9764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9765 yes:no: )
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9770 ac_header_preproc=yes
9771 ;;
9772 no:yes:* )
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9785 (
9786 cat <<\_ASBOX
9787 ## ------------------------------------------ ##
9788 ## Report this to the AC_PACKAGE_NAME lists. ##
9789 ## ------------------------------------------ ##
9790 _ASBOX
9791 ) |
9792 sed "s/^/$as_me: WARNING: /" >&2
9793 ;;
9794 esac
9795 echo "$as_me:$LINENO: checking for $ac_header" >&5
9796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800 eval "$as_ac_Header=\$ac_header_preproc"
9801 fi
9802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9804
9805 fi
9806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9807 cat >>confdefs.h <<_ACEOF
9808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9809 _ACEOF
9810
9811 fi
9812
9813 done
9814
9815
9816
9817 for ac_header in sys/ptrace.h ptrace.h
9818 do
9819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9821 echo "$as_me:$LINENO: checking for $ac_header" >&5
9822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 fi
9826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9828 else
9829 # Is the header compilable?
9830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h. */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 $ac_includes_default
9839 #include <$ac_header>
9840 _ACEOF
9841 rm -f conftest.$ac_objext
9842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9843 (eval $ac_compile) 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
9850 { ac_try='test -z "$ac_c_werror_flag"
9851 || test ! -s conftest.err'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try='test -s conftest.$ac_objext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_header_compiler=yes
9864 else
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9867
9868 ac_header_compiler=no
9869 fi
9870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9872 echo "${ECHO_T}$ac_header_compiler" >&6
9873
9874 # Is the header present?
9875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h. */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 #include <$ac_header>
9884 _ACEOF
9885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9887 ac_status=$?
9888 grep -v '^ *+' conftest.er1 >conftest.err
9889 rm -f conftest.er1
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } >/dev/null; then
9893 if test -s conftest.err; then
9894 ac_cpp_err=$ac_c_preproc_warn_flag
9895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9896 else
9897 ac_cpp_err=
9898 fi
9899 else
9900 ac_cpp_err=yes
9901 fi
9902 if test -z "$ac_cpp_err"; then
9903 ac_header_preproc=yes
9904 else
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9907
9908 ac_header_preproc=no
9909 fi
9910 rm -f conftest.err conftest.$ac_ext
9911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9912 echo "${ECHO_T}$ac_header_preproc" >&6
9913
9914 # So? What about this header?
9915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9916 yes:no: )
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9921 ac_header_preproc=yes
9922 ;;
9923 no:yes:* )
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9936 (
9937 cat <<\_ASBOX
9938 ## ------------------------------------------ ##
9939 ## Report this to the AC_PACKAGE_NAME lists. ##
9940 ## ------------------------------------------ ##
9941 _ASBOX
9942 ) |
9943 sed "s/^/$as_me: WARNING: /" >&2
9944 ;;
9945 esac
9946 echo "$as_me:$LINENO: checking for $ac_header" >&5
9947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951 eval "$as_ac_Header=\$ac_header_preproc"
9952 fi
9953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9955
9956 fi
9957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9960 _ACEOF
9961
9962 fi
9963
9964 done
9965
9966
9967
9968 for ac_header in sys/reg.h sys/debugreg.h
9969 do
9970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9972 echo "$as_me:$LINENO: checking for $ac_header" >&5
9973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 fi
9977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9979 else
9980 # Is the header compilable?
9981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9983 cat >conftest.$ac_ext <<_ACEOF
9984 /* confdefs.h. */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 $ac_includes_default
9990 #include <$ac_header>
9991 _ACEOF
9992 rm -f conftest.$ac_objext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994 (eval $ac_compile) 2>conftest.er1
9995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } &&
10001 { ac_try='test -z "$ac_c_werror_flag"
10002 || test ! -s conftest.err'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; } &&
10008 { ac_try='test -s conftest.$ac_objext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_header_compiler=yes
10015 else
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 ac_header_compiler=no
10020 fi
10021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10023 echo "${ECHO_T}$ac_header_compiler" >&6
10024
10025 # Is the header present?
10026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 #include <$ac_header>
10035 _ACEOF
10036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10038 ac_status=$?
10039 grep -v '^ *+' conftest.er1 >conftest.err
10040 rm -f conftest.er1
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } >/dev/null; then
10044 if test -s conftest.err; then
10045 ac_cpp_err=$ac_c_preproc_warn_flag
10046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10047 else
10048 ac_cpp_err=
10049 fi
10050 else
10051 ac_cpp_err=yes
10052 fi
10053 if test -z "$ac_cpp_err"; then
10054 ac_header_preproc=yes
10055 else
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10058
10059 ac_header_preproc=no
10060 fi
10061 rm -f conftest.err conftest.$ac_ext
10062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10063 echo "${ECHO_T}$ac_header_preproc" >&6
10064
10065 # So? What about this header?
10066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10067 yes:no: )
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10072 ac_header_preproc=yes
10073 ;;
10074 no:yes:* )
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10087 (
10088 cat <<\_ASBOX
10089 ## ------------------------------------------ ##
10090 ## Report this to the AC_PACKAGE_NAME lists. ##
10091 ## ------------------------------------------ ##
10092 _ASBOX
10093 ) |
10094 sed "s/^/$as_me: WARNING: /" >&2
10095 ;;
10096 esac
10097 echo "$as_me:$LINENO: checking for $ac_header" >&5
10098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102 eval "$as_ac_Header=\$ac_header_preproc"
10103 fi
10104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10106
10107 fi
10108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10109 cat >>confdefs.h <<_ACEOF
10110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10111 _ACEOF
10112
10113 fi
10114
10115 done
10116
10117
10118 for ac_header in sys/select.h
10119 do
10120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10122 echo "$as_me:$LINENO: checking for $ac_header" >&5
10123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 fi
10127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10129 else
10130 # Is the header compilable?
10131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10133 cat >conftest.$ac_ext <<_ACEOF
10134 /* confdefs.h. */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10139 $ac_includes_default
10140 #include <$ac_header>
10141 _ACEOF
10142 rm -f conftest.$ac_objext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144 (eval $ac_compile) 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest.$ac_objext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 ac_header_compiler=yes
10165 else
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10168
10169 ac_header_compiler=no
10170 fi
10171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10173 echo "${ECHO_T}$ac_header_compiler" >&6
10174
10175 # Is the header present?
10176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h. */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #include <$ac_header>
10185 _ACEOF
10186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10188 ac_status=$?
10189 grep -v '^ *+' conftest.er1 >conftest.err
10190 rm -f conftest.er1
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } >/dev/null; then
10194 if test -s conftest.err; then
10195 ac_cpp_err=$ac_c_preproc_warn_flag
10196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10197 else
10198 ac_cpp_err=
10199 fi
10200 else
10201 ac_cpp_err=yes
10202 fi
10203 if test -z "$ac_cpp_err"; then
10204 ac_header_preproc=yes
10205 else
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209 ac_header_preproc=no
10210 fi
10211 rm -f conftest.err conftest.$ac_ext
10212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10213 echo "${ECHO_T}$ac_header_preproc" >&6
10214
10215 # So? What about this header?
10216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10217 yes:no: )
10218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10222 ac_header_preproc=yes
10223 ;;
10224 no:yes:* )
10225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10237 (
10238 cat <<\_ASBOX
10239 ## ------------------------------------------ ##
10240 ## Report this to the AC_PACKAGE_NAME lists. ##
10241 ## ------------------------------------------ ##
10242 _ASBOX
10243 ) |
10244 sed "s/^/$as_me: WARNING: /" >&2
10245 ;;
10246 esac
10247 echo "$as_me:$LINENO: checking for $ac_header" >&5
10248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252 eval "$as_ac_Header=\$ac_header_preproc"
10253 fi
10254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10256
10257 fi
10258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10259 cat >>confdefs.h <<_ACEOF
10260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10261 _ACEOF
10262
10263 fi
10264
10265 done
10266
10267
10268 for ac_header in sys/syscall.h
10269 do
10270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10272 echo "$as_me:$LINENO: checking for $ac_header" >&5
10273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 fi
10277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10279 else
10280 # Is the header compilable?
10281 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h. */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 $ac_includes_default
10290 #include <$ac_header>
10291 _ACEOF
10292 rm -f conftest.$ac_objext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294 (eval $ac_compile) 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -z "$ac_c_werror_flag"
10302 || test ! -s conftest.err'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest.$ac_objext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 ac_header_compiler=yes
10315 else
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 ac_header_compiler=no
10320 fi
10321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10323 echo "${ECHO_T}$ac_header_compiler" >&6
10324
10325 # Is the header present?
10326 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10328 cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h. */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 #include <$ac_header>
10335 _ACEOF
10336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } >/dev/null; then
10344 if test -s conftest.err; then
10345 ac_cpp_err=$ac_c_preproc_warn_flag
10346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10347 else
10348 ac_cpp_err=
10349 fi
10350 else
10351 ac_cpp_err=yes
10352 fi
10353 if test -z "$ac_cpp_err"; then
10354 ac_header_preproc=yes
10355 else
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359 ac_header_preproc=no
10360 fi
10361 rm -f conftest.err conftest.$ac_ext
10362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10363 echo "${ECHO_T}$ac_header_preproc" >&6
10364
10365 # So? What about this header?
10366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10367 yes:no: )
10368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10372 ac_header_preproc=yes
10373 ;;
10374 no:yes:* )
10375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10387 (
10388 cat <<\_ASBOX
10389 ## ------------------------------------------ ##
10390 ## Report this to the AC_PACKAGE_NAME lists. ##
10391 ## ------------------------------------------ ##
10392 _ASBOX
10393 ) |
10394 sed "s/^/$as_me: WARNING: /" >&2
10395 ;;
10396 esac
10397 echo "$as_me:$LINENO: checking for $ac_header" >&5
10398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402 eval "$as_ac_Header=\$ac_header_preproc"
10403 fi
10404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10406
10407 fi
10408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10409 cat >>confdefs.h <<_ACEOF
10410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10411 _ACEOF
10412
10413 fi
10414
10415 done
10416
10417
10418 for ac_header in sys/types.h
10419 do
10420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10422 echo "$as_me:$LINENO: checking for $ac_header" >&5
10423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 fi
10427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10429 else
10430 # Is the header compilable?
10431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 $ac_includes_default
10440 #include <$ac_header>
10441 _ACEOF
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_c_werror_flag"
10452 || test ! -s conftest.err'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest.$ac_objext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10461 ac_status=$?
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 ac_header_compiler=yes
10465 else
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469 ac_header_compiler=no
10470 fi
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10473 echo "${ECHO_T}$ac_header_compiler" >&6
10474
10475 # Is the header present?
10476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 #include <$ac_header>
10485 _ACEOF
10486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10488 ac_status=$?
10489 grep -v '^ *+' conftest.er1 >conftest.err
10490 rm -f conftest.er1
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } >/dev/null; then
10494 if test -s conftest.err; then
10495 ac_cpp_err=$ac_c_preproc_warn_flag
10496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10497 else
10498 ac_cpp_err=
10499 fi
10500 else
10501 ac_cpp_err=yes
10502 fi
10503 if test -z "$ac_cpp_err"; then
10504 ac_header_preproc=yes
10505 else
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10508
10509 ac_header_preproc=no
10510 fi
10511 rm -f conftest.err conftest.$ac_ext
10512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10513 echo "${ECHO_T}$ac_header_preproc" >&6
10514
10515 # So? What about this header?
10516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10517 yes:no: )
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10522 ac_header_preproc=yes
10523 ;;
10524 no:yes:* )
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10537 (
10538 cat <<\_ASBOX
10539 ## ------------------------------------------ ##
10540 ## Report this to the AC_PACKAGE_NAME lists. ##
10541 ## ------------------------------------------ ##
10542 _ASBOX
10543 ) |
10544 sed "s/^/$as_me: WARNING: /" >&2
10545 ;;
10546 esac
10547 echo "$as_me:$LINENO: checking for $ac_header" >&5
10548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552 eval "$as_ac_Header=\$ac_header_preproc"
10553 fi
10554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10556
10557 fi
10558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10559 cat >>confdefs.h <<_ACEOF
10560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10561 _ACEOF
10562
10563 fi
10564
10565 done
10566
10567
10568 for ac_header in sys/user.h
10569 do
10570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10571 echo "$as_me:$LINENO: checking for $ac_header" >&5
10572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #if HAVE_SYS_PARAM_H
10583 # include <sys/param.h>
10584 #endif
10585
10586
10587 #include <$ac_header>
10588 _ACEOF
10589 rm -f conftest.$ac_objext
10590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10591 (eval $ac_compile) 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag"
10599 || test ! -s conftest.err'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; } &&
10605 { ac_try='test -s conftest.$ac_objext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 eval "$as_ac_Header=yes"
10612 else
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616 eval "$as_ac_Header=no"
10617 fi
10618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10619 fi
10620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10623 cat >>confdefs.h <<_ACEOF
10624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10625 _ACEOF
10626
10627 fi
10628
10629 done
10630
10631
10632
10633 for ac_header in sys/wait.h wait.h
10634 do
10635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10637 echo "$as_me:$LINENO: checking for $ac_header" >&5
10638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 fi
10642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10644 else
10645 # Is the header compilable?
10646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h. */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 $ac_includes_default
10655 #include <$ac_header>
10656 _ACEOF
10657 rm -f conftest.$ac_objext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>conftest.er1
10660 ac_status=$?
10661 grep -v '^ *+' conftest.er1 >conftest.err
10662 rm -f conftest.er1
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } &&
10666 { ac_try='test -z "$ac_c_werror_flag"
10667 || test ! -s conftest.err'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; } &&
10673 { ac_try='test -s conftest.$ac_objext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 ac_header_compiler=yes
10680 else
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10683
10684 ac_header_compiler=no
10685 fi
10686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10688 echo "${ECHO_T}$ac_header_compiler" >&6
10689
10690 # Is the header present?
10691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10693 cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h. */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10699 #include <$ac_header>
10700 _ACEOF
10701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } >/dev/null; then
10709 if test -s conftest.err; then
10710 ac_cpp_err=$ac_c_preproc_warn_flag
10711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10712 else
10713 ac_cpp_err=
10714 fi
10715 else
10716 ac_cpp_err=yes
10717 fi
10718 if test -z "$ac_cpp_err"; then
10719 ac_header_preproc=yes
10720 else
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ac_header_preproc=no
10725 fi
10726 rm -f conftest.err conftest.$ac_ext
10727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10728 echo "${ECHO_T}$ac_header_preproc" >&6
10729
10730 # So? What about this header?
10731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10732 yes:no: )
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10737 ac_header_preproc=yes
10738 ;;
10739 no:yes:* )
10740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10752 (
10753 cat <<\_ASBOX
10754 ## ------------------------------------------ ##
10755 ## Report this to the AC_PACKAGE_NAME lists. ##
10756 ## ------------------------------------------ ##
10757 _ASBOX
10758 ) |
10759 sed "s/^/$as_me: WARNING: /" >&2
10760 ;;
10761 esac
10762 echo "$as_me:$LINENO: checking for $ac_header" >&5
10763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 else
10767 eval "$as_ac_Header=\$ac_header_preproc"
10768 fi
10769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10771
10772 fi
10773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10774 cat >>confdefs.h <<_ACEOF
10775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10776 _ACEOF
10777
10778 fi
10779
10780 done
10781
10782
10783
10784
10785 for ac_header in termios.h termio.h sgtty.h
10786 do
10787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10789 echo "$as_me:$LINENO: checking for $ac_header" >&5
10790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 fi
10794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10796 else
10797 # Is the header compilable?
10798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10800 cat >conftest.$ac_ext <<_ACEOF
10801 /* confdefs.h. */
10802 _ACEOF
10803 cat confdefs.h >>conftest.$ac_ext
10804 cat >>conftest.$ac_ext <<_ACEOF
10805 /* end confdefs.h. */
10806 $ac_includes_default
10807 #include <$ac_header>
10808 _ACEOF
10809 rm -f conftest.$ac_objext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811 (eval $ac_compile) 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -z "$ac_c_werror_flag"
10819 || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 ac_header_compiler=yes
10832 else
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10835
10836 ac_header_compiler=no
10837 fi
10838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10840 echo "${ECHO_T}$ac_header_compiler" >&6
10841
10842 # Is the header present?
10843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10845 cat >conftest.$ac_ext <<_ACEOF
10846 /* confdefs.h. */
10847 _ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h. */
10851 #include <$ac_header>
10852 _ACEOF
10853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10855 ac_status=$?
10856 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } >/dev/null; then
10861 if test -s conftest.err; then
10862 ac_cpp_err=$ac_c_preproc_warn_flag
10863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10864 else
10865 ac_cpp_err=
10866 fi
10867 else
10868 ac_cpp_err=yes
10869 fi
10870 if test -z "$ac_cpp_err"; then
10871 ac_header_preproc=yes
10872 else
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876 ac_header_preproc=no
10877 fi
10878 rm -f conftest.err conftest.$ac_ext
10879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10880 echo "${ECHO_T}$ac_header_preproc" >&6
10881
10882 # So? What about this header?
10883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10884 yes:no: )
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10889 ac_header_preproc=yes
10890 ;;
10891 no:yes:* )
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10904 (
10905 cat <<\_ASBOX
10906 ## ------------------------------------------ ##
10907 ## Report this to the AC_PACKAGE_NAME lists. ##
10908 ## ------------------------------------------ ##
10909 _ASBOX
10910 ) |
10911 sed "s/^/$as_me: WARNING: /" >&2
10912 ;;
10913 esac
10914 echo "$as_me:$LINENO: checking for $ac_header" >&5
10915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 else
10919 eval "$as_ac_Header=\$ac_header_preproc"
10920 fi
10921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10923
10924 fi
10925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10926 cat >>confdefs.h <<_ACEOF
10927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10928 _ACEOF
10929
10930 fi
10931
10932 done
10933
10934
10935 for ac_header in unistd.h
10936 do
10937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10939 echo "$as_me:$LINENO: checking for $ac_header" >&5
10940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 fi
10944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10946 else
10947 # Is the header compilable?
10948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 $ac_includes_default
10957 #include <$ac_header>
10958 _ACEOF
10959 rm -f conftest.$ac_objext
10960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10961 (eval $ac_compile) 2>conftest.er1
10962 ac_status=$?
10963 grep -v '^ *+' conftest.er1 >conftest.err
10964 rm -f conftest.er1
10965 cat conftest.err >&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } &&
10968 { ac_try='test -z "$ac_c_werror_flag"
10969 || test ! -s conftest.err'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10972 ac_status=$?
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; } &&
10975 { ac_try='test -s conftest.$ac_objext'
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }; then
10981 ac_header_compiler=yes
10982 else
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10985
10986 ac_header_compiler=no
10987 fi
10988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10990 echo "${ECHO_T}$ac_header_compiler" >&6
10991
10992 # Is the header present?
10993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h. */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 #include <$ac_header>
11002 _ACEOF
11003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } >/dev/null; then
11011 if test -s conftest.err; then
11012 ac_cpp_err=$ac_c_preproc_warn_flag
11013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11014 else
11015 ac_cpp_err=
11016 fi
11017 else
11018 ac_cpp_err=yes
11019 fi
11020 if test -z "$ac_cpp_err"; then
11021 ac_header_preproc=yes
11022 else
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11025
11026 ac_header_preproc=no
11027 fi
11028 rm -f conftest.err conftest.$ac_ext
11029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11030 echo "${ECHO_T}$ac_header_preproc" >&6
11031
11032 # So? What about this header?
11033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11034 yes:no: )
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11039 ac_header_preproc=yes
11040 ;;
11041 no:yes:* )
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11054 (
11055 cat <<\_ASBOX
11056 ## ------------------------------------------ ##
11057 ## Report this to the AC_PACKAGE_NAME lists. ##
11058 ## ------------------------------------------ ##
11059 _ASBOX
11060 ) |
11061 sed "s/^/$as_me: WARNING: /" >&2
11062 ;;
11063 esac
11064 echo "$as_me:$LINENO: checking for $ac_header" >&5
11065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068 else
11069 eval "$as_ac_Header=\$ac_header_preproc"
11070 fi
11071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11073
11074 fi
11075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11076 cat >>confdefs.h <<_ACEOF
11077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11078 _ACEOF
11079
11080 fi
11081
11082 done
11083
11084
11085 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11086 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11087 # think that we don't have <curses.h> if we're using GCC.
11088 case $host_os in
11089 solaris2.[789])
11090 if test "$GCC" = yes; then
11091
11092 cat >>confdefs.h <<\_ACEOF
11093 #define _MSE_INT_H 1
11094 _ACEOF
11095
11096 fi ;;
11097 esac
11098
11099
11100
11101
11102 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
11103 do
11104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11106 echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 fi
11111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11113 else
11114 # Is the header compilable?
11115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11117 cat >conftest.$ac_ext <<_ACEOF
11118 /* confdefs.h. */
11119 _ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h. */
11123 $ac_includes_default
11124 #include <$ac_header>
11125 _ACEOF
11126 rm -f conftest.$ac_objext
11127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11128 (eval $ac_compile) 2>conftest.er1
11129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } &&
11135 { ac_try='test -z "$ac_c_werror_flag"
11136 || test ! -s conftest.err'
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest.$ac_objext'
11143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144 (eval $ac_try) 2>&5
11145 ac_status=$?
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; }; then
11148 ac_header_compiler=yes
11149 else
11150 echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.$ac_ext >&5
11152
11153 ac_header_compiler=no
11154 fi
11155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11157 echo "${ECHO_T}$ac_header_compiler" >&6
11158
11159 # Is the header present?
11160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11162 cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h. */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 #include <$ac_header>
11169 _ACEOF
11170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } >/dev/null; then
11178 if test -s conftest.err; then
11179 ac_cpp_err=$ac_c_preproc_warn_flag
11180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11181 else
11182 ac_cpp_err=
11183 fi
11184 else
11185 ac_cpp_err=yes
11186 fi
11187 if test -z "$ac_cpp_err"; then
11188 ac_header_preproc=yes
11189 else
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11192
11193 ac_header_preproc=no
11194 fi
11195 rm -f conftest.err conftest.$ac_ext
11196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11197 echo "${ECHO_T}$ac_header_preproc" >&6
11198
11199 # So? What about this header?
11200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11201 yes:no: )
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11206 ac_header_preproc=yes
11207 ;;
11208 no:yes:* )
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11221 (
11222 cat <<\_ASBOX
11223 ## ------------------------------------------ ##
11224 ## Report this to the AC_PACKAGE_NAME lists. ##
11225 ## ------------------------------------------ ##
11226 _ASBOX
11227 ) |
11228 sed "s/^/$as_me: WARNING: /" >&2
11229 ;;
11230 esac
11231 echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236 eval "$as_ac_Header=\$ac_header_preproc"
11237 fi
11238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11240
11241 fi
11242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243 cat >>confdefs.h <<_ACEOF
11244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11245 _ACEOF
11246
11247 fi
11248
11249 done
11250
11251
11252 for ac_header in ncurses/term.h
11253 do
11254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11256 echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 fi
11261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11263 else
11264 # Is the header compilable?
11265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11267 cat >conftest.$ac_ext <<_ACEOF
11268 /* confdefs.h. */
11269 _ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11273 $ac_includes_default
11274 #include <$ac_header>
11275 _ACEOF
11276 rm -f conftest.$ac_objext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11278 (eval $ac_compile) 2>conftest.er1
11279 ac_status=$?
11280 grep -v '^ *+' conftest.er1 >conftest.err
11281 rm -f conftest.er1
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -z "$ac_c_werror_flag"
11286 || test ! -s conftest.err'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest.$ac_objext'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 ac_header_compiler=yes
11299 else
11300 echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11302
11303 ac_header_compiler=no
11304 fi
11305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11307 echo "${ECHO_T}$ac_header_compiler" >&6
11308
11309 # Is the header present?
11310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11312 cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h. */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 #include <$ac_header>
11319 _ACEOF
11320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } >/dev/null; then
11328 if test -s conftest.err; then
11329 ac_cpp_err=$ac_c_preproc_warn_flag
11330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11331 else
11332 ac_cpp_err=
11333 fi
11334 else
11335 ac_cpp_err=yes
11336 fi
11337 if test -z "$ac_cpp_err"; then
11338 ac_header_preproc=yes
11339 else
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343 ac_header_preproc=no
11344 fi
11345 rm -f conftest.err conftest.$ac_ext
11346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11347 echo "${ECHO_T}$ac_header_preproc" >&6
11348
11349 # So? What about this header?
11350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11351 yes:no: )
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11356 ac_header_preproc=yes
11357 ;;
11358 no:yes:* )
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11371 (
11372 cat <<\_ASBOX
11373 ## ------------------------------------------ ##
11374 ## Report this to the AC_PACKAGE_NAME lists. ##
11375 ## ------------------------------------------ ##
11376 _ASBOX
11377 ) |
11378 sed "s/^/$as_me: WARNING: /" >&2
11379 ;;
11380 esac
11381 echo "$as_me:$LINENO: checking for $ac_header" >&5
11382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386 eval "$as_ac_Header=\$ac_header_preproc"
11387 fi
11388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11390
11391 fi
11392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11393 cat >>confdefs.h <<_ACEOF
11394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11395 _ACEOF
11396
11397 fi
11398
11399 done
11400
11401
11402 for ac_header in term.h
11403 do
11404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11405 echo "$as_me:$LINENO: checking for $ac_header" >&5
11406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h. */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 #if HAVE_CURSES_H
11417 # include <curses.h>
11418 #endif
11419
11420
11421 #include <$ac_header>
11422 _ACEOF
11423 rm -f conftest.$ac_objext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag"
11433 || test ! -s conftest.err'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; } &&
11439 { ac_try='test -s conftest.$ac_objext'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 eval "$as_ac_Header=yes"
11446 else
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11449
11450 eval "$as_ac_Header=no"
11451 fi
11452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11453 fi
11454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11457 cat >>confdefs.h <<_ACEOF
11458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11459 _ACEOF
11460
11461 fi
11462
11463 done
11464
11465
11466 # Check for HP/UX 64-bit shared library support
11467
11468 for ac_header in elf_hp.h
11469 do
11470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11472 echo "$as_me:$LINENO: checking for $ac_header" >&5
11473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 fi
11477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11479 else
11480 # Is the header compilable?
11481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11483 cat >conftest.$ac_ext <<_ACEOF
11484 /* confdefs.h. */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 $ac_includes_default
11490 #include <$ac_header>
11491 _ACEOF
11492 rm -f conftest.$ac_objext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11494 (eval $ac_compile) 2>conftest.er1
11495 ac_status=$?
11496 grep -v '^ *+' conftest.er1 >conftest.err
11497 rm -f conftest.er1
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try='test -z "$ac_c_werror_flag"
11502 || test ! -s conftest.err'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; } &&
11508 { ac_try='test -s conftest.$ac_objext'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_header_compiler=yes
11515 else
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11518
11519 ac_header_compiler=no
11520 fi
11521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11523 echo "${ECHO_T}$ac_header_compiler" >&6
11524
11525 # Is the header present?
11526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h. */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 #include <$ac_header>
11535 _ACEOF
11536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11538 ac_status=$?
11539 grep -v '^ *+' conftest.er1 >conftest.err
11540 rm -f conftest.er1
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } >/dev/null; then
11544 if test -s conftest.err; then
11545 ac_cpp_err=$ac_c_preproc_warn_flag
11546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11547 else
11548 ac_cpp_err=
11549 fi
11550 else
11551 ac_cpp_err=yes
11552 fi
11553 if test -z "$ac_cpp_err"; then
11554 ac_header_preproc=yes
11555 else
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11558
11559 ac_header_preproc=no
11560 fi
11561 rm -f conftest.err conftest.$ac_ext
11562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11563 echo "${ECHO_T}$ac_header_preproc" >&6
11564
11565 # So? What about this header?
11566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11567 yes:no: )
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11572 ac_header_preproc=yes
11573 ;;
11574 no:yes:* )
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11587 (
11588 cat <<\_ASBOX
11589 ## ------------------------------------------ ##
11590 ## Report this to the AC_PACKAGE_NAME lists. ##
11591 ## ------------------------------------------ ##
11592 _ASBOX
11593 ) |
11594 sed "s/^/$as_me: WARNING: /" >&2
11595 ;;
11596 esac
11597 echo "$as_me:$LINENO: checking for $ac_header" >&5
11598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602 eval "$as_ac_Header=\$ac_header_preproc"
11603 fi
11604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11606
11607 fi
11608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11609 cat >>confdefs.h <<_ACEOF
11610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11611 _ACEOF
11612
11613 fi
11614
11615 done
11616
11617
11618 # FIXME: kettenis/20030102: In most cases we include these
11619 # unconditionally, so what's the point in checking these?
11620
11621
11622 for ac_header in ctype.h time.h
11623 do
11624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11626 echo "$as_me:$LINENO: checking for $ac_header" >&5
11627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 fi
11631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11633 else
11634 # Is the header compilable?
11635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11637 cat >conftest.$ac_ext <<_ACEOF
11638 /* confdefs.h. */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11643 $ac_includes_default
11644 #include <$ac_header>
11645 _ACEOF
11646 rm -f conftest.$ac_objext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11648 (eval $ac_compile) 2>conftest.er1
11649 ac_status=$?
11650 grep -v '^ *+' conftest.er1 >conftest.err
11651 rm -f conftest.er1
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -z "$ac_c_werror_flag"
11656 || test ! -s conftest.err'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try='test -s conftest.$ac_objext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_header_compiler=yes
11669 else
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11672
11673 ac_header_compiler=no
11674 fi
11675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11677 echo "${ECHO_T}$ac_header_compiler" >&6
11678
11679 # Is the header present?
11680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11682 cat >conftest.$ac_ext <<_ACEOF
11683 /* confdefs.h. */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11688 #include <$ac_header>
11689 _ACEOF
11690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } >/dev/null; then
11698 if test -s conftest.err; then
11699 ac_cpp_err=$ac_c_preproc_warn_flag
11700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11701 else
11702 ac_cpp_err=
11703 fi
11704 else
11705 ac_cpp_err=yes
11706 fi
11707 if test -z "$ac_cpp_err"; then
11708 ac_header_preproc=yes
11709 else
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713 ac_header_preproc=no
11714 fi
11715 rm -f conftest.err conftest.$ac_ext
11716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11717 echo "${ECHO_T}$ac_header_preproc" >&6
11718
11719 # So? What about this header?
11720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11721 yes:no: )
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11726 ac_header_preproc=yes
11727 ;;
11728 no:yes:* )
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11741 (
11742 cat <<\_ASBOX
11743 ## ------------------------------------------ ##
11744 ## Report this to the AC_PACKAGE_NAME lists. ##
11745 ## ------------------------------------------ ##
11746 _ASBOX
11747 ) |
11748 sed "s/^/$as_me: WARNING: /" >&2
11749 ;;
11750 esac
11751 echo "$as_me:$LINENO: checking for $ac_header" >&5
11752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756 eval "$as_ac_Header=\$ac_header_preproc"
11757 fi
11758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11760
11761 fi
11762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11763 cat >>confdefs.h <<_ACEOF
11764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11765 _ACEOF
11766
11767 fi
11768
11769 done
11770
11771
11772 # Create a header we can use portably to get the standard integer types.
11773
11774
11775 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11776
11777 acx_cv_header_stdint=stddef.h
11778 acx_cv_header_stdint_kind="(already complete)"
11779 for i in stdint.h $inttype_headers; do
11780 unset ac_cv_type_uintptr_t
11781 unset ac_cv_type_uintmax_t
11782 unset ac_cv_type_int_least32_t
11783 unset ac_cv_type_int_fast32_t
11784 unset ac_cv_type_uint64_t
11785 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
11786 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11787 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
11788 if test "${ac_cv_type_uintmax_t+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791 cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h. */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 #include <sys/types.h>
11798 #include <$i>
11799
11800 int
11801 main ()
11802 {
11803 if ((uintmax_t *) 0)
11804 return 0;
11805 if (sizeof (uintmax_t))
11806 return 0;
11807 ;
11808 return 0;
11809 }
11810 _ACEOF
11811 rm -f conftest.$ac_objext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>conftest.er1
11814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -z "$ac_c_werror_flag"
11821 || test ! -s conftest.err'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; } &&
11827 { ac_try='test -s conftest.$ac_objext'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
11833 ac_cv_type_uintmax_t=yes
11834 else
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838 ac_cv_type_uintmax_t=no
11839 fi
11840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11841 fi
11842 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11843 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
11844 if test $ac_cv_type_uintmax_t = yes; then
11845 acx_cv_header_stdint=$i
11846 else
11847 continue
11848 fi
11849
11850 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11851 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11852 if test "${ac_cv_type_uintptr_t+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855 cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h. */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 #include <sys/types.h>
11862 #include <$i>
11863
11864 int
11865 main ()
11866 {
11867 if ((uintptr_t *) 0)
11868 return 0;
11869 if (sizeof (uintptr_t))
11870 return 0;
11871 ;
11872 return 0;
11873 }
11874 _ACEOF
11875 rm -f conftest.$ac_objext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11877 (eval $ac_compile) 2>conftest.er1
11878 ac_status=$?
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try='test -z "$ac_c_werror_flag"
11885 || test ! -s conftest.err'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest.$ac_objext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_cv_type_uintptr_t=yes
11898 else
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_cv_type_uintptr_t=no
11903 fi
11904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11905 fi
11906 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11907 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11908 if test $ac_cv_type_uintptr_t = yes; then
11909 :
11910 else
11911 acx_cv_header_stdint_kind="(mostly complete)"
11912 fi
11913
11914 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11915 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
11916 if test "${ac_cv_type_int_least32_t+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919 cat >conftest.$ac_ext <<_ACEOF
11920 /* confdefs.h. */
11921 _ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 #include <sys/types.h>
11926 #include <$i>
11927
11928 int
11929 main ()
11930 {
11931 if ((int_least32_t *) 0)
11932 return 0;
11933 if (sizeof (int_least32_t))
11934 return 0;
11935 ;
11936 return 0;
11937 }
11938 _ACEOF
11939 rm -f conftest.$ac_objext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>conftest.er1
11942 ac_status=$?
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -z "$ac_c_werror_flag"
11949 || test ! -s conftest.err'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 ac_cv_type_int_least32_t=yes
11962 else
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 ac_cv_type_int_least32_t=no
11967 fi
11968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11969 fi
11970 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11971 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
11972 if test $ac_cv_type_int_least32_t = yes; then
11973 :
11974 else
11975 acx_cv_header_stdint_kind="(mostly complete)"
11976 fi
11977
11978 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11979 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
11980 if test "${ac_cv_type_int_fast32_t+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983 cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h. */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 #include <sys/types.h>
11990 #include <$i>
11991
11992 int
11993 main ()
11994 {
11995 if ((int_fast32_t *) 0)
11996 return 0;
11997 if (sizeof (int_fast32_t))
11998 return 0;
11999 ;
12000 return 0;
12001 }
12002 _ACEOF
12003 rm -f conftest.$ac_objext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12005 (eval $ac_compile) 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -z "$ac_c_werror_flag"
12013 || test ! -s conftest.err'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; } &&
12019 { ac_try='test -s conftest.$ac_objext'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 ac_cv_type_int_fast32_t=yes
12026 else
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030 ac_cv_type_int_fast32_t=no
12031 fi
12032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12033 fi
12034 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
12035 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
12036 if test $ac_cv_type_int_fast32_t = yes; then
12037 :
12038 else
12039 acx_cv_header_stdint_kind="(mostly complete)"
12040 fi
12041
12042 echo "$as_me:$LINENO: checking for uint64_t" >&5
12043 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12044 if test "${ac_cv_type_uint64_t+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047 cat >conftest.$ac_ext <<_ACEOF
12048 /* confdefs.h. */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053 #include <sys/types.h>
12054 #include <$i>
12055
12056 int
12057 main ()
12058 {
12059 if ((uint64_t *) 0)
12060 return 0;
12061 if (sizeof (uint64_t))
12062 return 0;
12063 ;
12064 return 0;
12065 }
12066 _ACEOF
12067 rm -f conftest.$ac_objext
12068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag"
12077 || test ! -s conftest.err'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; } &&
12083 { ac_try='test -s conftest.$ac_objext'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12089 ac_cv_type_uint64_t=yes
12090 else
12091 echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12093
12094 ac_cv_type_uint64_t=no
12095 fi
12096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12097 fi
12098 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12099 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12100 if test $ac_cv_type_uint64_t = yes; then
12101 :
12102 else
12103 acx_cv_header_stdint_kind="(lacks uint64_t)"
12104 fi
12105
12106 break
12107 done
12108 if test "$acx_cv_header_stdint" = stddef.h; then
12109 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12110 for i in stdint.h $inttype_headers; do
12111 unset ac_cv_type_uintptr_t
12112 unset ac_cv_type_uint32_t
12113 unset ac_cv_type_uint64_t
12114 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
12115 echo "$as_me:$LINENO: checking for uint32_t" >&5
12116 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
12117 if test "${ac_cv_type_uint32_t+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120 cat >conftest.$ac_ext <<_ACEOF
12121 /* confdefs.h. */
12122 _ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h. */
12126 #include <sys/types.h>
12127 #include <$i>
12128
12129 int
12130 main ()
12131 {
12132 if ((uint32_t *) 0)
12133 return 0;
12134 if (sizeof (uint32_t))
12135 return 0;
12136 ;
12137 return 0;
12138 }
12139 _ACEOF
12140 rm -f conftest.$ac_objext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12142 (eval $ac_compile) 2>conftest.er1
12143 ac_status=$?
12144 grep -v '^ *+' conftest.er1 >conftest.err
12145 rm -f conftest.er1
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try='test -z "$ac_c_werror_flag"
12150 || test ! -s conftest.err'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest.$ac_objext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 ac_cv_type_uint32_t=yes
12163 else
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12166
12167 ac_cv_type_uint32_t=no
12168 fi
12169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12170 fi
12171 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
12172 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
12173 if test $ac_cv_type_uint32_t = yes; then
12174 acx_cv_header_stdint=$i
12175 else
12176 continue
12177 fi
12178
12179 echo "$as_me:$LINENO: checking for uint64_t" >&5
12180 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12181 if test "${ac_cv_type_uint64_t+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184 cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h. */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12190 #include <sys/types.h>
12191 #include <$i>
12192
12193 int
12194 main ()
12195 {
12196 if ((uint64_t *) 0)
12197 return 0;
12198 if (sizeof (uint64_t))
12199 return 0;
12200 ;
12201 return 0;
12202 }
12203 _ACEOF
12204 rm -f conftest.$ac_objext
12205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12206 (eval $ac_compile) 2>conftest.er1
12207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try='test -z "$ac_c_werror_flag"
12214 || test ! -s conftest.err'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12226 ac_cv_type_uint64_t=yes
12227 else
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 ac_cv_type_uint64_t=no
12232 fi
12233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12234 fi
12235 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12236 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12237
12238 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12239 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12240 if test "${ac_cv_type_uintptr_t+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243 cat >conftest.$ac_ext <<_ACEOF
12244 /* confdefs.h. */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 #include <sys/types.h>
12250 #include <$i>
12251
12252 int
12253 main ()
12254 {
12255 if ((uintptr_t *) 0)
12256 return 0;
12257 if (sizeof (uintptr_t))
12258 return 0;
12259 ;
12260 return 0;
12261 }
12262 _ACEOF
12263 rm -f conftest.$ac_objext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12265 (eval $ac_compile) 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -z "$ac_c_werror_flag"
12273 || test ! -s conftest.err'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try='test -s conftest.$ac_objext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_cv_type_uintptr_t=yes
12286 else
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290 ac_cv_type_uintptr_t=no
12291 fi
12292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12293 fi
12294 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12295 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12296
12297 break
12298 done
12299 fi
12300 if test "$acx_cv_header_stdint" = stddef.h; then
12301 acx_cv_header_stdint_kind="(u_intXX_t style)"
12302 for i in sys/types.h $inttype_headers; do
12303 unset ac_cv_type_u_int32_t
12304 unset ac_cv_type_u_int64_t
12305 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
12306 echo "$as_me:$LINENO: checking for u_int32_t" >&5
12307 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
12308 if test "${ac_cv_type_u_int32_t+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <sys/types.h>
12318 #include <$i>
12319
12320 int
12321 main ()
12322 {
12323 if ((u_int32_t *) 0)
12324 return 0;
12325 if (sizeof (u_int32_t))
12326 return 0;
12327 ;
12328 return 0;
12329 }
12330 _ACEOF
12331 rm -f conftest.$ac_objext
12332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12333 (eval $ac_compile) 2>conftest.er1
12334 ac_status=$?
12335 grep -v '^ *+' conftest.er1 >conftest.err
12336 rm -f conftest.er1
12337 cat conftest.err >&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } &&
12340 { ac_try='test -z "$ac_c_werror_flag"
12341 || test ! -s conftest.err'
12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest.$ac_objext'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
12353 ac_cv_type_u_int32_t=yes
12354 else
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12357
12358 ac_cv_type_u_int32_t=no
12359 fi
12360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12361 fi
12362 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12363 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
12364 if test $ac_cv_type_u_int32_t = yes; then
12365 acx_cv_header_stdint=$i
12366 else
12367 continue
12368 fi
12369
12370 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12371 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12372 if test "${ac_cv_type_u_int64_t+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 else
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 #include <sys/types.h>
12382 #include <$i>
12383
12384 int
12385 main ()
12386 {
12387 if ((u_int64_t *) 0)
12388 return 0;
12389 if (sizeof (u_int64_t))
12390 return 0;
12391 ;
12392 return 0;
12393 }
12394 _ACEOF
12395 rm -f conftest.$ac_objext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397 (eval $ac_compile) 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
12404 { ac_try='test -z "$ac_c_werror_flag"
12405 || test ! -s conftest.err'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest.$ac_objext'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417 ac_cv_type_u_int64_t=yes
12418 else
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12421
12422 ac_cv_type_u_int64_t=no
12423 fi
12424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12425 fi
12426 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12427 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
12428
12429 break
12430 done
12431 fi
12432 if test "$acx_cv_header_stdint" = stddef.h; then
12433 acx_cv_header_stdint_kind="(using manual detection)"
12434 fi
12435
12436 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12437 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12438 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12439 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12440 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12441
12442 # ----------------- Summarize what we found so far
12443
12444 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12445 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
12446
12447 case `$as_basename gdb_stdint.h ||
12448 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12449 Xgdb_stdint.h : 'X\(//\)$' \| \
12450 Xgdb_stdint.h : 'X\(/\)$' \| \
12451 . : '\(.\)' 2>/dev/null ||
12452 echo X/gdb_stdint.h |
12453 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12454 /^X\/\(\/\/\)$/{ s//\1/; q; }
12455 /^X\/\(\/\).*/{ s//\1/; q; }
12456 s/.*/./; q'` in
12457 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12458 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12459 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12460 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12461 *) ;;
12462 esac
12463
12464 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12465 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
12466
12467 # ----------------- done included file, check C basic types --------
12468
12469 # Lacking an uintptr_t? Test size of void *
12470 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12471 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12472 echo $ECHO_N "checking for void *... $ECHO_C" >&6
12473 if test "${ac_cv_type_void_p+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476 cat >conftest.$ac_ext <<_ACEOF
12477 /* confdefs.h. */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 $ac_includes_default
12483 int
12484 main ()
12485 {
12486 if ((void * *) 0)
12487 return 0;
12488 if (sizeof (void *))
12489 return 0;
12490 ;
12491 return 0;
12492 }
12493 _ACEOF
12494 rm -f conftest.$ac_objext
12495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12496 (eval $ac_compile) 2>conftest.er1
12497 ac_status=$?
12498 grep -v '^ *+' conftest.er1 >conftest.err
12499 rm -f conftest.er1
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } &&
12503 { ac_try='test -z "$ac_c_werror_flag"
12504 || test ! -s conftest.err'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } &&
12510 { ac_try='test -s conftest.$ac_objext'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
12516 ac_cv_type_void_p=yes
12517 else
12518 echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12520
12521 ac_cv_type_void_p=no
12522 fi
12523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12524 fi
12525 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12526 echo "${ECHO_T}$ac_cv_type_void_p" >&6
12527
12528 echo "$as_me:$LINENO: checking size of void *" >&5
12529 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12530 if test "${ac_cv_sizeof_void_p+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533 if test "$ac_cv_type_void_p" = yes; then
12534 # The cast to unsigned long works around a bug in the HP C Compiler
12535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12537 # This bug is HP SR number 8606223364.
12538 if test "$cross_compiling" = yes; then
12539 # Depending upon the size, compute the lo and hi bounds.
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h. */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 $ac_includes_default
12547 int
12548 main ()
12549 {
12550 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
12551 test_array [0] = 0
12552
12553 ;
12554 return 0;
12555 }
12556 _ACEOF
12557 rm -f conftest.$ac_objext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559 (eval $ac_compile) 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
12566 { ac_try='test -z "$ac_c_werror_flag"
12567 || test ! -s conftest.err'
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); }; } &&
12573 { ac_try='test -s conftest.$ac_objext'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 ac_lo=0 ac_mid=0
12580 while :; do
12581 cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h. */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587 $ac_includes_default
12588 int
12589 main ()
12590 {
12591 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12592 test_array [0] = 0
12593
12594 ;
12595 return 0;
12596 }
12597 _ACEOF
12598 rm -f conftest.$ac_objext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600 (eval $ac_compile) 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -z "$ac_c_werror_flag"
12608 || test ! -s conftest.err'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try='test -s conftest.$ac_objext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 ac_hi=$ac_mid; break
12621 else
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12624
12625 ac_lo=`expr $ac_mid + 1`
12626 if test $ac_lo -le $ac_mid; then
12627 ac_lo= ac_hi=
12628 break
12629 fi
12630 ac_mid=`expr 2 '*' $ac_mid + 1`
12631 fi
12632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12633 done
12634 else
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12637
12638 cat >conftest.$ac_ext <<_ACEOF
12639 /* confdefs.h. */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12644 $ac_includes_default
12645 int
12646 main ()
12647 {
12648 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
12649 test_array [0] = 0
12650
12651 ;
12652 return 0;
12653 }
12654 _ACEOF
12655 rm -f conftest.$ac_objext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657 (eval $ac_compile) 2>conftest.er1
12658 ac_status=$?
12659 grep -v '^ *+' conftest.er1 >conftest.err
12660 rm -f conftest.er1
12661 cat conftest.err >&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } &&
12664 { ac_try='test -z "$ac_c_werror_flag"
12665 || test ! -s conftest.err'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; } &&
12671 { ac_try='test -s conftest.$ac_objext'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
12677 ac_hi=-1 ac_mid=-1
12678 while :; do
12679 cat >conftest.$ac_ext <<_ACEOF
12680 /* confdefs.h. */
12681 _ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12685 $ac_includes_default
12686 int
12687 main ()
12688 {
12689 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
12690 test_array [0] = 0
12691
12692 ;
12693 return 0;
12694 }
12695 _ACEOF
12696 rm -f conftest.$ac_objext
12697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12698 (eval $ac_compile) 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try='test -z "$ac_c_werror_flag"
12706 || test ! -s conftest.err'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; } &&
12712 { ac_try='test -s conftest.$ac_objext'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
12718 ac_lo=$ac_mid; break
12719 else
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 ac_hi=`expr '(' $ac_mid ')' - 1`
12724 if test $ac_mid -le $ac_hi; then
12725 ac_lo= ac_hi=
12726 break
12727 fi
12728 ac_mid=`expr 2 '*' $ac_mid`
12729 fi
12730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12731 done
12732 else
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12735
12736 ac_lo= ac_hi=
12737 fi
12738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12739 fi
12740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12741 # Binary search between lo and hi bounds.
12742 while test "x$ac_lo" != "x$ac_hi"; do
12743 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12744 cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h. */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750 $ac_includes_default
12751 int
12752 main ()
12753 {
12754 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12755 test_array [0] = 0
12756
12757 ;
12758 return 0;
12759 }
12760 _ACEOF
12761 rm -f conftest.$ac_objext
12762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763 (eval $ac_compile) 2>conftest.er1
12764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -z "$ac_c_werror_flag"
12771 || test ! -s conftest.err'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; } &&
12777 { ac_try='test -s conftest.$ac_objext'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12783 ac_hi=$ac_mid
12784 else
12785 echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12787
12788 ac_lo=`expr '(' $ac_mid ')' + 1`
12789 fi
12790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12791 done
12792 case $ac_lo in
12793 ?*) ac_cv_sizeof_void_p=$ac_lo;;
12794 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12795 See \`config.log' for more details." >&5
12796 echo "$as_me: error: cannot compute sizeof (void *), 77
12797 See \`config.log' for more details." >&2;}
12798 { (exit 1); exit 1; }; } ;;
12799 esac
12800 else
12801 if test "$cross_compiling" = yes; then
12802 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12803 See \`config.log' for more details." >&5
12804 echo "$as_me: error: cannot run test program while cross compiling
12805 See \`config.log' for more details." >&2;}
12806 { (exit 1); exit 1; }; }
12807 else
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 $ac_includes_default
12815 long longval () { return (long) (sizeof (void *)); }
12816 unsigned long ulongval () { return (long) (sizeof (void *)); }
12817 #include <stdio.h>
12818 #include <stdlib.h>
12819 int
12820 main ()
12821 {
12822
12823 FILE *f = fopen ("conftest.val", "w");
12824 if (! f)
12825 exit (1);
12826 if (((long) (sizeof (void *))) < 0)
12827 {
12828 long i = longval ();
12829 if (i != ((long) (sizeof (void *))))
12830 exit (1);
12831 fprintf (f, "%ld\n", i);
12832 }
12833 else
12834 {
12835 unsigned long i = ulongval ();
12836 if (i != ((long) (sizeof (void *))))
12837 exit (1);
12838 fprintf (f, "%lu\n", i);
12839 }
12840 exit (ferror (f) || fclose (f) != 0);
12841
12842 ;
12843 return 0;
12844 }
12845 _ACEOF
12846 rm -f conftest$ac_exeext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848 (eval $ac_link) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_sizeof_void_p=`cat conftest.val`
12858 else
12859 echo "$as_me: program exited with status $ac_status" >&5
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 ( exit $ac_status )
12864 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12865 See \`config.log' for more details." >&5
12866 echo "$as_me: error: cannot compute sizeof (void *), 77
12867 See \`config.log' for more details." >&2;}
12868 { (exit 1); exit 1; }; }
12869 fi
12870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12871 fi
12872 fi
12873 rm -f conftest.val
12874 else
12875 ac_cv_sizeof_void_p=0
12876 fi
12877 fi
12878 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12879 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12880 cat >>confdefs.h <<_ACEOF
12881 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12882 _ACEOF
12883
12884 ;;
12885 esac
12886
12887 # Lacking an uint64_t? Test size of long
12888 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12889 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12890 echo $ECHO_N "checking for long... $ECHO_C" >&6
12891 if test "${ac_cv_type_long+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894 cat >conftest.$ac_ext <<_ACEOF
12895 /* confdefs.h. */
12896 _ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h. */
12900 $ac_includes_default
12901 int
12902 main ()
12903 {
12904 if ((long *) 0)
12905 return 0;
12906 if (sizeof (long))
12907 return 0;
12908 ;
12909 return 0;
12910 }
12911 _ACEOF
12912 rm -f conftest.$ac_objext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914 (eval $ac_compile) 2>conftest.er1
12915 ac_status=$?
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -z "$ac_c_werror_flag"
12922 || test ! -s conftest.err'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest.$ac_objext'
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 ac_cv_type_long=yes
12935 else
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12938
12939 ac_cv_type_long=no
12940 fi
12941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12942 fi
12943 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12944 echo "${ECHO_T}$ac_cv_type_long" >&6
12945
12946 echo "$as_me:$LINENO: checking size of long" >&5
12947 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12948 if test "${ac_cv_sizeof_long+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 else
12951 if test "$ac_cv_type_long" = yes; then
12952 # The cast to unsigned long works around a bug in the HP C Compiler
12953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12955 # This bug is HP SR number 8606223364.
12956 if test "$cross_compiling" = yes; then
12957 # Depending upon the size, compute the lo and hi bounds.
12958 cat >conftest.$ac_ext <<_ACEOF
12959 /* confdefs.h. */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12964 $ac_includes_default
12965 int
12966 main ()
12967 {
12968 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12969 test_array [0] = 0
12970
12971 ;
12972 return 0;
12973 }
12974 _ACEOF
12975 rm -f conftest.$ac_objext
12976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12977 (eval $ac_compile) 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -z "$ac_c_werror_flag"
12985 || test ! -s conftest.err'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } &&
12991 { ac_try='test -s conftest.$ac_objext'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 ac_lo=0 ac_mid=0
12998 while :; do
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h. */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 $ac_includes_default
13006 int
13007 main ()
13008 {
13009 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13010 test_array [0] = 0
13011
13012 ;
13013 return 0;
13014 }
13015 _ACEOF
13016 rm -f conftest.$ac_objext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018 (eval $ac_compile) 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_c_werror_flag"
13026 || test ! -s conftest.err'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try='test -s conftest.$ac_objext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 ac_hi=$ac_mid; break
13039 else
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13042
13043 ac_lo=`expr $ac_mid + 1`
13044 if test $ac_lo -le $ac_mid; then
13045 ac_lo= ac_hi=
13046 break
13047 fi
13048 ac_mid=`expr 2 '*' $ac_mid + 1`
13049 fi
13050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13051 done
13052 else
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13055
13056 cat >conftest.$ac_ext <<_ACEOF
13057 /* confdefs.h. */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 $ac_includes_default
13063 int
13064 main ()
13065 {
13066 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13067 test_array [0] = 0
13068
13069 ;
13070 return 0;
13071 }
13072 _ACEOF
13073 rm -f conftest.$ac_objext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13075 (eval $ac_compile) 2>conftest.er1
13076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -z "$ac_c_werror_flag"
13083 || test ! -s conftest.err'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest.$ac_objext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 ac_hi=-1 ac_mid=-1
13096 while :; do
13097 cat >conftest.$ac_ext <<_ACEOF
13098 /* confdefs.h. */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13103 $ac_includes_default
13104 int
13105 main ()
13106 {
13107 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13108 test_array [0] = 0
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_lo=$ac_mid; break
13137 else
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141 ac_hi=`expr '(' $ac_mid ')' - 1`
13142 if test $ac_mid -le $ac_hi; then
13143 ac_lo= ac_hi=
13144 break
13145 fi
13146 ac_mid=`expr 2 '*' $ac_mid`
13147 fi
13148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13149 done
13150 else
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13153
13154 ac_lo= ac_hi=
13155 fi
13156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13157 fi
13158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13159 # Binary search between lo and hi bounds.
13160 while test "x$ac_lo" != "x$ac_hi"; do
13161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13162 cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h. */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 $ac_includes_default
13169 int
13170 main ()
13171 {
13172 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13173 test_array [0] = 0
13174
13175 ;
13176 return 0;
13177 }
13178 _ACEOF
13179 rm -f conftest.$ac_objext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181 (eval $ac_compile) 2>conftest.er1
13182 ac_status=$?
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -f conftest.er1
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -z "$ac_c_werror_flag"
13189 || test ! -s conftest.err'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13192 ac_status=$?
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; } &&
13195 { ac_try='test -s conftest.$ac_objext'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13198 ac_status=$?
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 ac_hi=$ac_mid
13202 else
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13205
13206 ac_lo=`expr '(' $ac_mid ')' + 1`
13207 fi
13208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13209 done
13210 case $ac_lo in
13211 ?*) ac_cv_sizeof_long=$ac_lo;;
13212 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13213 See \`config.log' for more details." >&5
13214 echo "$as_me: error: cannot compute sizeof (long), 77
13215 See \`config.log' for more details." >&2;}
13216 { (exit 1); exit 1; }; } ;;
13217 esac
13218 else
13219 if test "$cross_compiling" = yes; then
13220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13221 See \`config.log' for more details." >&5
13222 echo "$as_me: error: cannot run test program while cross compiling
13223 See \`config.log' for more details." >&2;}
13224 { (exit 1); exit 1; }; }
13225 else
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h. */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 $ac_includes_default
13233 long longval () { return (long) (sizeof (long)); }
13234 unsigned long ulongval () { return (long) (sizeof (long)); }
13235 #include <stdio.h>
13236 #include <stdlib.h>
13237 int
13238 main ()
13239 {
13240
13241 FILE *f = fopen ("conftest.val", "w");
13242 if (! f)
13243 exit (1);
13244 if (((long) (sizeof (long))) < 0)
13245 {
13246 long i = longval ();
13247 if (i != ((long) (sizeof (long))))
13248 exit (1);
13249 fprintf (f, "%ld\n", i);
13250 }
13251 else
13252 {
13253 unsigned long i = ulongval ();
13254 if (i != ((long) (sizeof (long))))
13255 exit (1);
13256 fprintf (f, "%lu\n", i);
13257 }
13258 exit (ferror (f) || fclose (f) != 0);
13259
13260 ;
13261 return 0;
13262 }
13263 _ACEOF
13264 rm -f conftest$ac_exeext
13265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13266 (eval $ac_link) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_cv_sizeof_long=`cat conftest.val`
13276 else
13277 echo "$as_me: program exited with status $ac_status" >&5
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13280
13281 ( exit $ac_status )
13282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13283 See \`config.log' for more details." >&5
13284 echo "$as_me: error: cannot compute sizeof (long), 77
13285 See \`config.log' for more details." >&2;}
13286 { (exit 1); exit 1; }; }
13287 fi
13288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13289 fi
13290 fi
13291 rm -f conftest.val
13292 else
13293 ac_cv_sizeof_long=0
13294 fi
13295 fi
13296 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13297 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13298 cat >>confdefs.h <<_ACEOF
13299 #define SIZEOF_LONG $ac_cv_sizeof_long
13300 _ACEOF
13301
13302 ;;
13303 esac
13304
13305 if test $acx_cv_header_stdint = stddef.h; then
13306 # Lacking a good header? Test size of everything and deduce all types.
13307 echo "$as_me:$LINENO: checking for int" >&5
13308 echo $ECHO_N "checking for int... $ECHO_C" >&6
13309 if test "${ac_cv_type_int+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312 cat >conftest.$ac_ext <<_ACEOF
13313 /* confdefs.h. */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13318 $ac_includes_default
13319 int
13320 main ()
13321 {
13322 if ((int *) 0)
13323 return 0;
13324 if (sizeof (int))
13325 return 0;
13326 ;
13327 return 0;
13328 }
13329 _ACEOF
13330 rm -f conftest.$ac_objext
13331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13332 (eval $ac_compile) 2>conftest.er1
13333 ac_status=$?
13334 grep -v '^ *+' conftest.er1 >conftest.err
13335 rm -f conftest.er1
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
13339 { ac_try='test -z "$ac_c_werror_flag"
13340 || test ! -s conftest.err'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; } &&
13346 { ac_try='test -s conftest.$ac_objext'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_cv_type_int=yes
13353 else
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357 ac_cv_type_int=no
13358 fi
13359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13360 fi
13361 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13362 echo "${ECHO_T}$ac_cv_type_int" >&6
13363
13364 echo "$as_me:$LINENO: checking size of int" >&5
13365 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13366 if test "${ac_cv_sizeof_int+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 else
13369 if test "$ac_cv_type_int" = yes; then
13370 # The cast to unsigned long works around a bug in the HP C Compiler
13371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13373 # This bug is HP SR number 8606223364.
13374 if test "$cross_compiling" = yes; then
13375 # Depending upon the size, compute the lo and hi bounds.
13376 cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h. */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13382 $ac_includes_default
13383 int
13384 main ()
13385 {
13386 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13387 test_array [0] = 0
13388
13389 ;
13390 return 0;
13391 }
13392 _ACEOF
13393 rm -f conftest.$ac_objext
13394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13395 (eval $ac_compile) 2>conftest.er1
13396 ac_status=$?
13397 grep -v '^ *+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } &&
13402 { ac_try='test -z "$ac_c_werror_flag"
13403 || test ! -s conftest.err'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; } &&
13409 { ac_try='test -s conftest.$ac_objext'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }; then
13415 ac_lo=0 ac_mid=0
13416 while :; do
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h. */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 $ac_includes_default
13424 int
13425 main ()
13426 {
13427 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13428 test_array [0] = 0
13429
13430 ;
13431 return 0;
13432 }
13433 _ACEOF
13434 rm -f conftest.$ac_objext
13435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13436 (eval $ac_compile) 2>conftest.er1
13437 ac_status=$?
13438 grep -v '^ *+' conftest.er1 >conftest.err
13439 rm -f conftest.er1
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -z "$ac_c_werror_flag"
13444 || test ! -s conftest.err'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } &&
13450 { ac_try='test -s conftest.$ac_objext'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 ac_hi=$ac_mid; break
13457 else
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13460
13461 ac_lo=`expr $ac_mid + 1`
13462 if test $ac_lo -le $ac_mid; then
13463 ac_lo= ac_hi=
13464 break
13465 fi
13466 ac_mid=`expr 2 '*' $ac_mid + 1`
13467 fi
13468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13469 done
13470 else
13471 echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13473
13474 cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h. */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13480 $ac_includes_default
13481 int
13482 main ()
13483 {
13484 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13485 test_array [0] = 0
13486
13487 ;
13488 return 0;
13489 }
13490 _ACEOF
13491 rm -f conftest.$ac_objext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493 (eval $ac_compile) 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -z "$ac_c_werror_flag"
13501 || test ! -s conftest.err'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest.$ac_objext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13513 ac_hi=-1 ac_mid=-1
13514 while :; do
13515 cat >conftest.$ac_ext <<_ACEOF
13516 /* confdefs.h. */
13517 _ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 $ac_includes_default
13522 int
13523 main ()
13524 {
13525 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13526 test_array [0] = 0
13527
13528 ;
13529 return 0;
13530 }
13531 _ACEOF
13532 rm -f conftest.$ac_objext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13534 (eval $ac_compile) 2>conftest.er1
13535 ac_status=$?
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -z "$ac_c_werror_flag"
13542 || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13554 ac_lo=$ac_mid; break
13555 else
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13558
13559 ac_hi=`expr '(' $ac_mid ')' - 1`
13560 if test $ac_mid -le $ac_hi; then
13561 ac_lo= ac_hi=
13562 break
13563 fi
13564 ac_mid=`expr 2 '*' $ac_mid`
13565 fi
13566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13567 done
13568 else
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13571
13572 ac_lo= ac_hi=
13573 fi
13574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13575 fi
13576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13577 # Binary search between lo and hi bounds.
13578 while test "x$ac_lo" != "x$ac_hi"; do
13579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13580 cat >conftest.$ac_ext <<_ACEOF
13581 /* confdefs.h. */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13586 $ac_includes_default
13587 int
13588 main ()
13589 {
13590 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13591 test_array [0] = 0
13592
13593 ;
13594 return 0;
13595 }
13596 _ACEOF
13597 rm -f conftest.$ac_objext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13599 (eval $ac_compile) 2>conftest.er1
13600 ac_status=$?
13601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag"
13607 || test ! -s conftest.err'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest.$ac_objext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 ac_hi=$ac_mid
13620 else
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13623
13624 ac_lo=`expr '(' $ac_mid ')' + 1`
13625 fi
13626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13627 done
13628 case $ac_lo in
13629 ?*) ac_cv_sizeof_int=$ac_lo;;
13630 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13631 See \`config.log' for more details." >&5
13632 echo "$as_me: error: cannot compute sizeof (int), 77
13633 See \`config.log' for more details." >&2;}
13634 { (exit 1); exit 1; }; } ;;
13635 esac
13636 else
13637 if test "$cross_compiling" = yes; then
13638 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13639 See \`config.log' for more details." >&5
13640 echo "$as_me: error: cannot run test program while cross compiling
13641 See \`config.log' for more details." >&2;}
13642 { (exit 1); exit 1; }; }
13643 else
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h. */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 $ac_includes_default
13651 long longval () { return (long) (sizeof (int)); }
13652 unsigned long ulongval () { return (long) (sizeof (int)); }
13653 #include <stdio.h>
13654 #include <stdlib.h>
13655 int
13656 main ()
13657 {
13658
13659 FILE *f = fopen ("conftest.val", "w");
13660 if (! f)
13661 exit (1);
13662 if (((long) (sizeof (int))) < 0)
13663 {
13664 long i = longval ();
13665 if (i != ((long) (sizeof (int))))
13666 exit (1);
13667 fprintf (f, "%ld\n", i);
13668 }
13669 else
13670 {
13671 unsigned long i = ulongval ();
13672 if (i != ((long) (sizeof (int))))
13673 exit (1);
13674 fprintf (f, "%lu\n", i);
13675 }
13676 exit (ferror (f) || fclose (f) != 0);
13677
13678 ;
13679 return 0;
13680 }
13681 _ACEOF
13682 rm -f conftest$ac_exeext
13683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13684 (eval $ac_link) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 ac_cv_sizeof_int=`cat conftest.val`
13694 else
13695 echo "$as_me: program exited with status $ac_status" >&5
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13698
13699 ( exit $ac_status )
13700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13701 See \`config.log' for more details." >&5
13702 echo "$as_me: error: cannot compute sizeof (int), 77
13703 See \`config.log' for more details." >&2;}
13704 { (exit 1); exit 1; }; }
13705 fi
13706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13707 fi
13708 fi
13709 rm -f conftest.val
13710 else
13711 ac_cv_sizeof_int=0
13712 fi
13713 fi
13714 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13715 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13716 cat >>confdefs.h <<_ACEOF
13717 #define SIZEOF_INT $ac_cv_sizeof_int
13718 _ACEOF
13719
13720
13721 echo "$as_me:$LINENO: checking for short" >&5
13722 echo $ECHO_N "checking for short... $ECHO_C" >&6
13723 if test "${ac_cv_type_short+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726 cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h. */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 $ac_includes_default
13733 int
13734 main ()
13735 {
13736 if ((short *) 0)
13737 return 0;
13738 if (sizeof (short))
13739 return 0;
13740 ;
13741 return 0;
13742 }
13743 _ACEOF
13744 rm -f conftest.$ac_objext
13745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13746 (eval $ac_compile) 2>conftest.er1
13747 ac_status=$?
13748 grep -v '^ *+' conftest.er1 >conftest.err
13749 rm -f conftest.er1
13750 cat conftest.err >&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } &&
13753 { ac_try='test -z "$ac_c_werror_flag"
13754 || test ! -s conftest.err'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest.$ac_objext'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 ac_cv_type_short=yes
13767 else
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771 ac_cv_type_short=no
13772 fi
13773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13774 fi
13775 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13776 echo "${ECHO_T}$ac_cv_type_short" >&6
13777
13778 echo "$as_me:$LINENO: checking size of short" >&5
13779 echo $ECHO_N "checking size of short... $ECHO_C" >&6
13780 if test "${ac_cv_sizeof_short+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783 if test "$ac_cv_type_short" = yes; then
13784 # The cast to unsigned long works around a bug in the HP C Compiler
13785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13787 # This bug is HP SR number 8606223364.
13788 if test "$cross_compiling" = yes; then
13789 # Depending upon the size, compute the lo and hi bounds.
13790 cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h. */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 $ac_includes_default
13797 int
13798 main ()
13799 {
13800 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13801 test_array [0] = 0
13802
13803 ;
13804 return 0;
13805 }
13806 _ACEOF
13807 rm -f conftest.$ac_objext
13808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13809 (eval $ac_compile) 2>conftest.er1
13810 ac_status=$?
13811 grep -v '^ *+' conftest.er1 >conftest.err
13812 rm -f conftest.er1
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
13816 { ac_try='test -z "$ac_c_werror_flag"
13817 || test ! -s conftest.err'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; } &&
13823 { ac_try='test -s conftest.$ac_objext'
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13829 ac_lo=0 ac_mid=0
13830 while :; do
13831 cat >conftest.$ac_ext <<_ACEOF
13832 /* confdefs.h. */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 $ac_includes_default
13838 int
13839 main ()
13840 {
13841 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13842 test_array [0] = 0
13843
13844 ;
13845 return 0;
13846 }
13847 _ACEOF
13848 rm -f conftest.$ac_objext
13849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13850 (eval $ac_compile) 2>conftest.er1
13851 ac_status=$?
13852 grep -v '^ *+' conftest.er1 >conftest.err
13853 rm -f conftest.er1
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } &&
13857 { ac_try='test -z "$ac_c_werror_flag"
13858 || test ! -s conftest.err'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest.$ac_objext'
13865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
13870 ac_hi=$ac_mid; break
13871 else
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13874
13875 ac_lo=`expr $ac_mid + 1`
13876 if test $ac_lo -le $ac_mid; then
13877 ac_lo= ac_hi=
13878 break
13879 fi
13880 ac_mid=`expr 2 '*' $ac_mid + 1`
13881 fi
13882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13883 done
13884 else
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13887
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h. */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 $ac_includes_default
13895 int
13896 main ()
13897 {
13898 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13899 test_array [0] = 0
13900
13901 ;
13902 return 0;
13903 }
13904 _ACEOF
13905 rm -f conftest.$ac_objext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13907 (eval $ac_compile) 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -z "$ac_c_werror_flag"
13915 || test ! -s conftest.err'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest.$ac_objext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_hi=-1 ac_mid=-1
13928 while :; do
13929 cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h. */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 $ac_includes_default
13936 int
13937 main ()
13938 {
13939 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13940 test_array [0] = 0
13941
13942 ;
13943 return 0;
13944 }
13945 _ACEOF
13946 rm -f conftest.$ac_objext
13947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13948 (eval $ac_compile) 2>conftest.er1
13949 ac_status=$?
13950 grep -v '^ *+' conftest.er1 >conftest.err
13951 rm -f conftest.er1
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag"
13956 || test ! -s conftest.err'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest.$ac_objext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 ac_lo=$ac_mid; break
13969 else
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13972
13973 ac_hi=`expr '(' $ac_mid ')' - 1`
13974 if test $ac_mid -le $ac_hi; then
13975 ac_lo= ac_hi=
13976 break
13977 fi
13978 ac_mid=`expr 2 '*' $ac_mid`
13979 fi
13980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13981 done
13982 else
13983 echo "$as_me: failed program was:" >&5
13984 sed 's/^/| /' conftest.$ac_ext >&5
13985
13986 ac_lo= ac_hi=
13987 fi
13988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13989 fi
13990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13991 # Binary search between lo and hi bounds.
13992 while test "x$ac_lo" != "x$ac_hi"; do
13993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13994 cat >conftest.$ac_ext <<_ACEOF
13995 /* confdefs.h. */
13996 _ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14000 $ac_includes_default
14001 int
14002 main ()
14003 {
14004 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14005 test_array [0] = 0
14006
14007 ;
14008 return 0;
14009 }
14010 _ACEOF
14011 rm -f conftest.$ac_objext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_hi=$ac_mid
14034 else
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14037
14038 ac_lo=`expr '(' $ac_mid ')' + 1`
14039 fi
14040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14041 done
14042 case $ac_lo in
14043 ?*) ac_cv_sizeof_short=$ac_lo;;
14044 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14045 See \`config.log' for more details." >&5
14046 echo "$as_me: error: cannot compute sizeof (short), 77
14047 See \`config.log' for more details." >&2;}
14048 { (exit 1); exit 1; }; } ;;
14049 esac
14050 else
14051 if test "$cross_compiling" = yes; then
14052 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14053 See \`config.log' for more details." >&5
14054 echo "$as_me: error: cannot run test program while cross compiling
14055 See \`config.log' for more details." >&2;}
14056 { (exit 1); exit 1; }; }
14057 else
14058 cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h. */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 $ac_includes_default
14065 long longval () { return (long) (sizeof (short)); }
14066 unsigned long ulongval () { return (long) (sizeof (short)); }
14067 #include <stdio.h>
14068 #include <stdlib.h>
14069 int
14070 main ()
14071 {
14072
14073 FILE *f = fopen ("conftest.val", "w");
14074 if (! f)
14075 exit (1);
14076 if (((long) (sizeof (short))) < 0)
14077 {
14078 long i = longval ();
14079 if (i != ((long) (sizeof (short))))
14080 exit (1);
14081 fprintf (f, "%ld\n", i);
14082 }
14083 else
14084 {
14085 unsigned long i = ulongval ();
14086 if (i != ((long) (sizeof (short))))
14087 exit (1);
14088 fprintf (f, "%lu\n", i);
14089 }
14090 exit (ferror (f) || fclose (f) != 0);
14091
14092 ;
14093 return 0;
14094 }
14095 _ACEOF
14096 rm -f conftest$ac_exeext
14097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14098 (eval $ac_link) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14107 ac_cv_sizeof_short=`cat conftest.val`
14108 else
14109 echo "$as_me: program exited with status $ac_status" >&5
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14112
14113 ( exit $ac_status )
14114 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14115 See \`config.log' for more details." >&5
14116 echo "$as_me: error: cannot compute sizeof (short), 77
14117 See \`config.log' for more details." >&2;}
14118 { (exit 1); exit 1; }; }
14119 fi
14120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14121 fi
14122 fi
14123 rm -f conftest.val
14124 else
14125 ac_cv_sizeof_short=0
14126 fi
14127 fi
14128 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14129 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14130 cat >>confdefs.h <<_ACEOF
14131 #define SIZEOF_SHORT $ac_cv_sizeof_short
14132 _ACEOF
14133
14134
14135 echo "$as_me:$LINENO: checking for char" >&5
14136 echo $ECHO_N "checking for char... $ECHO_C" >&6
14137 if test "${ac_cv_type_char+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h. */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 $ac_includes_default
14147 int
14148 main ()
14149 {
14150 if ((char *) 0)
14151 return 0;
14152 if (sizeof (char))
14153 return 0;
14154 ;
14155 return 0;
14156 }
14157 _ACEOF
14158 rm -f conftest.$ac_objext
14159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160 (eval $ac_compile) 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag"
14168 || test ! -s conftest.err'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_cv_type_char=yes
14181 else
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185 ac_cv_type_char=no
14186 fi
14187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14188 fi
14189 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14190 echo "${ECHO_T}$ac_cv_type_char" >&6
14191
14192 echo "$as_me:$LINENO: checking size of char" >&5
14193 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14194 if test "${ac_cv_sizeof_char+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197 if test "$ac_cv_type_char" = yes; then
14198 # The cast to unsigned long works around a bug in the HP C Compiler
14199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14201 # This bug is HP SR number 8606223364.
14202 if test "$cross_compiling" = yes; then
14203 # Depending upon the size, compute the lo and hi bounds.
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h. */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 $ac_includes_default
14211 int
14212 main ()
14213 {
14214 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14215 test_array [0] = 0
14216
14217 ;
14218 return 0;
14219 }
14220 _ACEOF
14221 rm -f conftest.$ac_objext
14222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223 (eval $ac_compile) 2>conftest.er1
14224 ac_status=$?
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -z "$ac_c_werror_flag"
14231 || test ! -s conftest.err'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try='test -s conftest.$ac_objext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 ac_lo=0 ac_mid=0
14244 while :; do
14245 cat >conftest.$ac_ext <<_ACEOF
14246 /* confdefs.h. */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14251 $ac_includes_default
14252 int
14253 main ()
14254 {
14255 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14256 test_array [0] = 0
14257
14258 ;
14259 return 0;
14260 }
14261 _ACEOF
14262 rm -f conftest.$ac_objext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14264 (eval $ac_compile) 2>conftest.er1
14265 ac_status=$?
14266 grep -v '^ *+' conftest.er1 >conftest.err
14267 rm -f conftest.er1
14268 cat conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try='test -z "$ac_c_werror_flag"
14272 || test ! -s conftest.err'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; } &&
14278 { ac_try='test -s conftest.$ac_objext'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_hi=$ac_mid; break
14285 else
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14288
14289 ac_lo=`expr $ac_mid + 1`
14290 if test $ac_lo -le $ac_mid; then
14291 ac_lo= ac_hi=
14292 break
14293 fi
14294 ac_mid=`expr 2 '*' $ac_mid + 1`
14295 fi
14296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14297 done
14298 else
14299 echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14301
14302 cat >conftest.$ac_ext <<_ACEOF
14303 /* confdefs.h. */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14308 $ac_includes_default
14309 int
14310 main ()
14311 {
14312 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14313 test_array [0] = 0
14314
14315 ;
14316 return 0;
14317 }
14318 _ACEOF
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>conftest.er1
14322 ac_status=$?
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag"
14329 || test ! -s conftest.err'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_hi=-1 ac_mid=-1
14342 while :; do
14343 cat >conftest.$ac_ext <<_ACEOF
14344 /* confdefs.h. */
14345 _ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14349 $ac_includes_default
14350 int
14351 main ()
14352 {
14353 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14354 test_array [0] = 0
14355
14356 ;
14357 return 0;
14358 }
14359 _ACEOF
14360 rm -f conftest.$ac_objext
14361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14362 (eval $ac_compile) 2>conftest.er1
14363 ac_status=$?
14364 grep -v '^ *+' conftest.er1 >conftest.err
14365 rm -f conftest.er1
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
14369 { ac_try='test -z "$ac_c_werror_flag"
14370 || test ! -s conftest.err'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; } &&
14376 { ac_try='test -s conftest.$ac_objext'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_lo=$ac_mid; break
14383 else
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14386
14387 ac_hi=`expr '(' $ac_mid ')' - 1`
14388 if test $ac_mid -le $ac_hi; then
14389 ac_lo= ac_hi=
14390 break
14391 fi
14392 ac_mid=`expr 2 '*' $ac_mid`
14393 fi
14394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14395 done
14396 else
14397 echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14399
14400 ac_lo= ac_hi=
14401 fi
14402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14403 fi
14404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14405 # Binary search between lo and hi bounds.
14406 while test "x$ac_lo" != "x$ac_hi"; do
14407 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h. */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 $ac_includes_default
14415 int
14416 main ()
14417 {
14418 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14419 test_array [0] = 0
14420
14421 ;
14422 return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest.$ac_objext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14447 ac_hi=$ac_mid
14448 else
14449 echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14451
14452 ac_lo=`expr '(' $ac_mid ')' + 1`
14453 fi
14454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14455 done
14456 case $ac_lo in
14457 ?*) ac_cv_sizeof_char=$ac_lo;;
14458 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14459 See \`config.log' for more details." >&5
14460 echo "$as_me: error: cannot compute sizeof (char), 77
14461 See \`config.log' for more details." >&2;}
14462 { (exit 1); exit 1; }; } ;;
14463 esac
14464 else
14465 if test "$cross_compiling" = yes; then
14466 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14467 See \`config.log' for more details." >&5
14468 echo "$as_me: error: cannot run test program while cross compiling
14469 See \`config.log' for more details." >&2;}
14470 { (exit 1); exit 1; }; }
14471 else
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h. */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 $ac_includes_default
14479 long longval () { return (long) (sizeof (char)); }
14480 unsigned long ulongval () { return (long) (sizeof (char)); }
14481 #include <stdio.h>
14482 #include <stdlib.h>
14483 int
14484 main ()
14485 {
14486
14487 FILE *f = fopen ("conftest.val", "w");
14488 if (! f)
14489 exit (1);
14490 if (((long) (sizeof (char))) < 0)
14491 {
14492 long i = longval ();
14493 if (i != ((long) (sizeof (char))))
14494 exit (1);
14495 fprintf (f, "%ld\n", i);
14496 }
14497 else
14498 {
14499 unsigned long i = ulongval ();
14500 if (i != ((long) (sizeof (char))))
14501 exit (1);
14502 fprintf (f, "%lu\n", i);
14503 }
14504 exit (ferror (f) || fclose (f) != 0);
14505
14506 ;
14507 return 0;
14508 }
14509 _ACEOF
14510 rm -f conftest$ac_exeext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14512 (eval $ac_link) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 ac_cv_sizeof_char=`cat conftest.val`
14522 else
14523 echo "$as_me: program exited with status $ac_status" >&5
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.$ac_ext >&5
14526
14527 ( exit $ac_status )
14528 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14529 See \`config.log' for more details." >&5
14530 echo "$as_me: error: cannot compute sizeof (char), 77
14531 See \`config.log' for more details." >&2;}
14532 { (exit 1); exit 1; }; }
14533 fi
14534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14535 fi
14536 fi
14537 rm -f conftest.val
14538 else
14539 ac_cv_sizeof_char=0
14540 fi
14541 fi
14542 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14543 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14544 cat >>confdefs.h <<_ACEOF
14545 #define SIZEOF_CHAR $ac_cv_sizeof_char
14546 _ACEOF
14547
14548
14549
14550 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14551 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
14552 case "$ac_cv_sizeof_char" in
14553 1) acx_cv_type_int8_t=char ;;
14554 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14555 echo "$as_me: error: no 8-bit type" >&2;}
14556 { (exit please report a bug); exit please report a bug; }; }
14557 esac
14558 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14559 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
14560
14561 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14562 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
14563 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14564 2:*) acx_cv_type_int16_t=int ;;
14565 *:2) acx_cv_type_int16_t=short ;;
14566 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14567 echo "$as_me: error: no 16-bit type" >&2;}
14568 { (exit please report a bug); exit please report a bug; }; }
14569 esac
14570 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14571 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
14572
14573 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14574 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
14575 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14576 4:*) acx_cv_type_int32_t=int ;;
14577 *:4) acx_cv_type_int32_t=long ;;
14578 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14579 echo "$as_me: error: no 32-bit type" >&2;}
14580 { (exit please report a bug); exit please report a bug; }; }
14581 esac
14582 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14583 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
14584 fi
14585
14586 # These tests are here to make the output prettier
14587
14588 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14589 case "$ac_cv_sizeof_long" in
14590 8) acx_cv_type_int64_t=long ;;
14591 esac
14592 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14593 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14594 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14595 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
14596 fi
14597
14598 # Now we can use the above types
14599
14600 if test "$ac_cv_type_uintptr_t" != yes; then
14601 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14602 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
14603 case $ac_cv_sizeof_void_p in
14604 2) acx_cv_type_intptr_t=int16_t ;;
14605 4) acx_cv_type_intptr_t=int32_t ;;
14606 8) acx_cv_type_intptr_t=int64_t ;;
14607 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14608 echo "$as_me: error: no equivalent for intptr_t" >&2;}
14609 { (exit please report a bug); exit please report a bug; }; }
14610 esac
14611 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14612 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
14613 fi
14614
14615 # ----------------- done all checks, emit header -------------
14616 ac_config_commands="$ac_config_commands gdb_stdint.h"
14617
14618
14619
14620
14621 # ------------------------- #
14622 # Checks for declarations. #
14623 # ------------------------- #
14624
14625 echo "$as_me:$LINENO: checking whether free is declared" >&5
14626 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
14627 if test "${ac_cv_have_decl_free+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14629 else
14630 cat >conftest.$ac_ext <<_ACEOF
14631 /* confdefs.h. */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14636 $ac_includes_default
14637 int
14638 main ()
14639 {
14640 #ifndef free
14641 char *p = (char *) free;
14642 #endif
14643
14644 ;
14645 return 0;
14646 }
14647 _ACEOF
14648 rm -f conftest.$ac_objext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14650 (eval $ac_compile) 2>conftest.er1
14651 ac_status=$?
14652 grep -v '^ *+' conftest.er1 >conftest.err
14653 rm -f conftest.er1
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try='test -z "$ac_c_werror_flag"
14658 || test ! -s conftest.err'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest.$ac_objext'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14670 ac_cv_have_decl_free=yes
14671 else
14672 echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14674
14675 ac_cv_have_decl_free=no
14676 fi
14677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14678 fi
14679 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14680 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
14681 if test $ac_cv_have_decl_free = yes; then
14682
14683 cat >>confdefs.h <<_ACEOF
14684 #define HAVE_DECL_FREE 1
14685 _ACEOF
14686
14687
14688 else
14689 cat >>confdefs.h <<_ACEOF
14690 #define HAVE_DECL_FREE 0
14691 _ACEOF
14692
14693
14694 fi
14695 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14696 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
14697 if test "${ac_cv_have_decl_malloc+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 else
14700 cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h. */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 $ac_includes_default
14707 int
14708 main ()
14709 {
14710 #ifndef malloc
14711 char *p = (char *) malloc;
14712 #endif
14713
14714 ;
14715 return 0;
14716 }
14717 _ACEOF
14718 rm -f conftest.$ac_objext
14719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14720 (eval $ac_compile) 2>conftest.er1
14721 ac_status=$?
14722 grep -v '^ *+' conftest.er1 >conftest.err
14723 rm -f conftest.er1
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } &&
14727 { ac_try='test -z "$ac_c_werror_flag"
14728 || test ! -s conftest.err'
14729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14731 ac_status=$?
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; } &&
14734 { ac_try='test -s conftest.$ac_objext'
14735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736 (eval $ac_try) 2>&5
14737 ac_status=$?
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; }; then
14740 ac_cv_have_decl_malloc=yes
14741 else
14742 echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.$ac_ext >&5
14744
14745 ac_cv_have_decl_malloc=no
14746 fi
14747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14748 fi
14749 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14750 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
14751 if test $ac_cv_have_decl_malloc = yes; then
14752
14753 cat >>confdefs.h <<_ACEOF
14754 #define HAVE_DECL_MALLOC 1
14755 _ACEOF
14756
14757
14758 else
14759 cat >>confdefs.h <<_ACEOF
14760 #define HAVE_DECL_MALLOC 0
14761 _ACEOF
14762
14763
14764 fi
14765 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14766 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
14767 if test "${ac_cv_have_decl_realloc+set}" = set; then
14768 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 else
14770 cat >conftest.$ac_ext <<_ACEOF
14771 /* confdefs.h. */
14772 _ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 $ac_includes_default
14777 int
14778 main ()
14779 {
14780 #ifndef realloc
14781 char *p = (char *) realloc;
14782 #endif
14783
14784 ;
14785 return 0;
14786 }
14787 _ACEOF
14788 rm -f conftest.$ac_objext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14790 (eval $ac_compile) 2>conftest.er1
14791 ac_status=$?
14792 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -z "$ac_c_werror_flag"
14798 || test ! -s conftest.err'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_cv_have_decl_realloc=yes
14811 else
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14814
14815 ac_cv_have_decl_realloc=no
14816 fi
14817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14818 fi
14819 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14820 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
14821 if test $ac_cv_have_decl_realloc = yes; then
14822
14823 cat >>confdefs.h <<_ACEOF
14824 #define HAVE_DECL_REALLOC 1
14825 _ACEOF
14826
14827
14828 else
14829 cat >>confdefs.h <<_ACEOF
14830 #define HAVE_DECL_REALLOC 0
14831 _ACEOF
14832
14833
14834 fi
14835
14836
14837 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14838 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
14839 if test "${ac_cv_have_decl_strerror+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842 cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h. */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 $ac_includes_default
14849 int
14850 main ()
14851 {
14852 #ifndef strerror
14853 char *p = (char *) strerror;
14854 #endif
14855
14856 ;
14857 return 0;
14858 }
14859 _ACEOF
14860 rm -f conftest.$ac_objext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>conftest.er1
14863 ac_status=$?
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
14869 { ac_try='test -z "$ac_c_werror_flag"
14870 || test ! -s conftest.err'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; } &&
14876 { ac_try='test -s conftest.$ac_objext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_have_decl_strerror=yes
14883 else
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14886
14887 ac_cv_have_decl_strerror=no
14888 fi
14889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14890 fi
14891 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14892 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
14893 if test $ac_cv_have_decl_strerror = yes; then
14894
14895 cat >>confdefs.h <<_ACEOF
14896 #define HAVE_DECL_STRERROR 1
14897 _ACEOF
14898
14899
14900 else
14901 cat >>confdefs.h <<_ACEOF
14902 #define HAVE_DECL_STRERROR 0
14903 _ACEOF
14904
14905
14906 fi
14907 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14908 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14909 if test "${ac_cv_have_decl_strstr+set}" = set; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 else
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h. */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 $ac_includes_default
14919 int
14920 main ()
14921 {
14922 #ifndef strstr
14923 char *p = (char *) strstr;
14924 #endif
14925
14926 ;
14927 return 0;
14928 }
14929 _ACEOF
14930 rm -f conftest.$ac_objext
14931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14932 (eval $ac_compile) 2>conftest.er1
14933 ac_status=$?
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
14939 { ac_try='test -z "$ac_c_werror_flag"
14940 || test ! -s conftest.err'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; } &&
14946 { ac_try='test -s conftest.$ac_objext'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 ac_cv_have_decl_strstr=yes
14953 else
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14956
14957 ac_cv_have_decl_strstr=no
14958 fi
14959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14960 fi
14961 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14962 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14963 if test $ac_cv_have_decl_strstr = yes; then
14964
14965 cat >>confdefs.h <<_ACEOF
14966 #define HAVE_DECL_STRSTR 1
14967 _ACEOF
14968
14969
14970 else
14971 cat >>confdefs.h <<_ACEOF
14972 #define HAVE_DECL_STRSTR 0
14973 _ACEOF
14974
14975
14976 fi
14977
14978
14979 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14980 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
14981 if test "${ac_cv_have_decl_getopt+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984 cat >conftest.$ac_ext <<_ACEOF
14985 /* confdefs.h. */
14986 _ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14990 $ac_includes_default
14991 int
14992 main ()
14993 {
14994 #ifndef getopt
14995 char *p = (char *) getopt;
14996 #endif
14997
14998 ;
14999 return 0;
15000 }
15001 _ACEOF
15002 rm -f conftest.$ac_objext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15004 (eval $ac_compile) 2>conftest.er1
15005 ac_status=$?
15006 grep -v '^ *+' conftest.er1 >conftest.err
15007 rm -f conftest.er1
15008 cat conftest.err >&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
15011 { ac_try='test -z "$ac_c_werror_flag"
15012 || test ! -s conftest.err'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
15018 { ac_try='test -s conftest.$ac_objext'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_cv_have_decl_getopt=yes
15025 else
15026 echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15028
15029 ac_cv_have_decl_getopt=no
15030 fi
15031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15032 fi
15033 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
15034 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
15035 if test $ac_cv_have_decl_getopt = yes; then
15036
15037 cat >>confdefs.h <<_ACEOF
15038 #define HAVE_DECL_GETOPT 1
15039 _ACEOF
15040
15041
15042 else
15043 cat >>confdefs.h <<_ACEOF
15044 #define HAVE_DECL_GETOPT 0
15045 _ACEOF
15046
15047
15048 fi
15049 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15050 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
15051 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15053 else
15054 cat >conftest.$ac_ext <<_ACEOF
15055 /* confdefs.h. */
15056 _ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h. */
15060 $ac_includes_default
15061 int
15062 main ()
15063 {
15064 #ifndef snprintf
15065 char *p = (char *) snprintf;
15066 #endif
15067
15068 ;
15069 return 0;
15070 }
15071 _ACEOF
15072 rm -f conftest.$ac_objext
15073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15074 (eval $ac_compile) 2>conftest.er1
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
15081 { ac_try='test -z "$ac_c_werror_flag"
15082 || test ! -s conftest.err'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; } &&
15088 { ac_try='test -s conftest.$ac_objext'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; }; then
15094 ac_cv_have_decl_snprintf=yes
15095 else
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15098
15099 ac_cv_have_decl_snprintf=no
15100 fi
15101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15102 fi
15103 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15104 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
15105 if test $ac_cv_have_decl_snprintf = yes; then
15106
15107 cat >>confdefs.h <<_ACEOF
15108 #define HAVE_DECL_SNPRINTF 1
15109 _ACEOF
15110
15111
15112 else
15113 cat >>confdefs.h <<_ACEOF
15114 #define HAVE_DECL_SNPRINTF 0
15115 _ACEOF
15116
15117
15118 fi
15119 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15120 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
15121 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15123 else
15124 cat >conftest.$ac_ext <<_ACEOF
15125 /* confdefs.h. */
15126 _ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15130 $ac_includes_default
15131 int
15132 main ()
15133 {
15134 #ifndef vsnprintf
15135 char *p = (char *) vsnprintf;
15136 #endif
15137
15138 ;
15139 return 0;
15140 }
15141 _ACEOF
15142 rm -f conftest.$ac_objext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest.$ac_objext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_cv_have_decl_vsnprintf=yes
15165 else
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15168
15169 ac_cv_have_decl_vsnprintf=no
15170 fi
15171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15172 fi
15173 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15174 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
15175 if test $ac_cv_have_decl_vsnprintf = yes; then
15176
15177 cat >>confdefs.h <<_ACEOF
15178 #define HAVE_DECL_VSNPRINTF 1
15179 _ACEOF
15180
15181
15182 else
15183 cat >>confdefs.h <<_ACEOF
15184 #define HAVE_DECL_VSNPRINTF 0
15185 _ACEOF
15186
15187
15188 fi
15189
15190
15191
15192 # ----------------------- #
15193 # Checks for structures. #
15194 # ----------------------- #
15195
15196 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
15197 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
15198 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201 cat >conftest.$ac_ext <<_ACEOF
15202 /* confdefs.h. */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 $ac_includes_default
15208 int
15209 main ()
15210 {
15211 static struct stat ac_aggr;
15212 if (ac_aggr.st_blocks)
15213 return 0;
15214 ;
15215 return 0;
15216 }
15217 _ACEOF
15218 rm -f conftest.$ac_objext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15220 (eval $ac_compile) 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -z "$ac_c_werror_flag"
15228 || test ! -s conftest.err'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest.$ac_objext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_cv_member_struct_stat_st_blocks=yes
15241 else
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15244
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 $ac_includes_default
15252 int
15253 main ()
15254 {
15255 static struct stat ac_aggr;
15256 if (sizeof ac_aggr.st_blocks)
15257 return 0;
15258 ;
15259 return 0;
15260 }
15261 _ACEOF
15262 rm -f conftest.$ac_objext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15264 (eval $ac_compile) 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } &&
15271 { ac_try='test -z "$ac_c_werror_flag"
15272 || test ! -s conftest.err'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; } &&
15278 { ac_try='test -s conftest.$ac_objext'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15284 ac_cv_member_struct_stat_st_blocks=yes
15285 else
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15288
15289 ac_cv_member_struct_stat_st_blocks=no
15290 fi
15291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15292 fi
15293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15294 fi
15295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
15296 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
15297 if test $ac_cv_member_struct_stat_st_blocks = yes; then
15298
15299 cat >>confdefs.h <<_ACEOF
15300 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15301 _ACEOF
15302
15303
15304 fi
15305
15306 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
15307 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
15308 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15310 else
15311 cat >conftest.$ac_ext <<_ACEOF
15312 /* confdefs.h. */
15313 _ACEOF
15314 cat confdefs.h >>conftest.$ac_ext
15315 cat >>conftest.$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15317 $ac_includes_default
15318 int
15319 main ()
15320 {
15321 static struct stat ac_aggr;
15322 if (ac_aggr.st_blksize)
15323 return 0;
15324 ;
15325 return 0;
15326 }
15327 _ACEOF
15328 rm -f conftest.$ac_objext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15330 (eval $ac_compile) 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag"
15338 || test ! -s conftest.err'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; } &&
15344 { ac_try='test -s conftest.$ac_objext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_cv_member_struct_stat_st_blksize=yes
15351 else
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15354
15355 cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h. */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 $ac_includes_default
15362 int
15363 main ()
15364 {
15365 static struct stat ac_aggr;
15366 if (sizeof ac_aggr.st_blksize)
15367 return 0;
15368 ;
15369 return 0;
15370 }
15371 _ACEOF
15372 rm -f conftest.$ac_objext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15374 (eval $ac_compile) 2>conftest.er1
15375 ac_status=$?
15376 grep -v '^ *+' conftest.er1 >conftest.err
15377 rm -f conftest.er1
15378 cat conftest.err >&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
15381 { ac_try='test -z "$ac_c_werror_flag"
15382 || test ! -s conftest.err'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest.$ac_objext'
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; }; then
15394 ac_cv_member_struct_stat_st_blksize=yes
15395 else
15396 echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15398
15399 ac_cv_member_struct_stat_st_blksize=no
15400 fi
15401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15402 fi
15403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15404 fi
15405 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15406 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
15407 if test $ac_cv_member_struct_stat_st_blksize = yes; then
15408
15409 cat >>confdefs.h <<_ACEOF
15410 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15411 _ACEOF
15412
15413
15414 fi
15415
15416
15417 # ------------------ #
15418 # Checks for types. #
15419 # ------------------ #
15420
15421 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15422 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15423 if test "${ac_cv_type_signal+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426 cat >conftest.$ac_ext <<_ACEOF
15427 /* confdefs.h. */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15432 #include <sys/types.h>
15433 #include <signal.h>
15434 #ifdef signal
15435 # undef signal
15436 #endif
15437 #ifdef __cplusplus
15438 extern "C" void (*signal (int, void (*)(int)))(int);
15439 #else
15440 void (*signal ()) ();
15441 #endif
15442
15443 int
15444 main ()
15445 {
15446 int i;
15447 ;
15448 return 0;
15449 }
15450 _ACEOF
15451 rm -f conftest.$ac_objext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15453 (eval $ac_compile) 2>conftest.er1
15454 ac_status=$?
15455 grep -v '^ *+' conftest.er1 >conftest.err
15456 rm -f conftest.er1
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try='test -z "$ac_c_werror_flag"
15461 || test ! -s conftest.err'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest.$ac_objext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 ac_cv_type_signal=void
15474 else
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15477
15478 ac_cv_type_signal=int
15479 fi
15480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15481 fi
15482 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15483 echo "${ECHO_T}$ac_cv_type_signal" >&6
15484
15485 cat >>confdefs.h <<_ACEOF
15486 #define RETSIGTYPE $ac_cv_type_signal
15487 _ACEOF
15488
15489
15490 echo "$as_me:$LINENO: checking for socklen_t" >&5
15491 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
15492 if test "${ac_cv_type_socklen_t+set}" = set; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 else
15495 cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h. */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 #include <sys/types.h>
15502 #include <sys/socket.h>
15503
15504
15505 int
15506 main ()
15507 {
15508 if ((socklen_t *) 0)
15509 return 0;
15510 if (sizeof (socklen_t))
15511 return 0;
15512 ;
15513 return 0;
15514 }
15515 _ACEOF
15516 rm -f conftest.$ac_objext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518 (eval $ac_compile) 2>conftest.er1
15519 ac_status=$?
15520 grep -v '^ *+' conftest.er1 >conftest.err
15521 rm -f conftest.er1
15522 cat conftest.err >&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try='test -z "$ac_c_werror_flag"
15526 || test ! -s conftest.err'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } &&
15532 { ac_try='test -s conftest.$ac_objext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_type_socklen_t=yes
15539 else
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15542
15543 ac_cv_type_socklen_t=no
15544 fi
15545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15546 fi
15547 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15548 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
15549 if test $ac_cv_type_socklen_t = yes; then
15550
15551 cat >>confdefs.h <<_ACEOF
15552 #define HAVE_SOCKLEN_T 1
15553 _ACEOF
15554
15555
15556 fi
15557
15558 echo "$as_me:$LINENO: checking for uintptr_t" >&5
15559 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
15560 if test "${ac_cv_type_uintptr_t+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h. */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 #include <stdint.h>
15570
15571 int
15572 main ()
15573 {
15574 if ((uintptr_t *) 0)
15575 return 0;
15576 if (sizeof (uintptr_t))
15577 return 0;
15578 ;
15579 return 0;
15580 }
15581 _ACEOF
15582 rm -f conftest.$ac_objext
15583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15584 (eval $ac_compile) 2>conftest.er1
15585 ac_status=$?
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -z "$ac_c_werror_flag"
15592 || test ! -s conftest.err'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_cv_type_uintptr_t=yes
15605 else
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15608
15609 ac_cv_type_uintptr_t=no
15610 fi
15611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15612 fi
15613 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15614 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
15615 if test $ac_cv_type_uintptr_t = yes; then
15616
15617 cat >>confdefs.h <<_ACEOF
15618 #define HAVE_UINTPTR_T 1
15619 _ACEOF
15620
15621
15622 fi
15623
15624
15625 # ------------------------------------- #
15626 # Checks for compiler characteristics. #
15627 # ------------------------------------- #
15628
15629 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15631 if test "${ac_cv_c_const+set}" = set; then
15632 echo $ECHO_N "(cached) $ECHO_C" >&6
15633 else
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h. */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640
15641 int
15642 main ()
15643 {
15644 /* FIXME: Include the comments suggested by Paul. */
15645 #ifndef __cplusplus
15646 /* Ultrix mips cc rejects this. */
15647 typedef int charset[2];
15648 const charset x;
15649 /* SunOS 4.1.1 cc rejects this. */
15650 char const *const *ccp;
15651 char **p;
15652 /* NEC SVR4.0.2 mips cc rejects this. */
15653 struct point {int x, y;};
15654 static struct point const zero = {0,0};
15655 /* AIX XL C 1.02.0.0 rejects this.
15656 It does not let you subtract one const X* pointer from another in
15657 an arm of an if-expression whose if-part is not a constant
15658 expression */
15659 const char *g = "string";
15660 ccp = &g + (g ? g-g : 0);
15661 /* HPUX 7.0 cc rejects these. */
15662 ++ccp;
15663 p = (char**) ccp;
15664 ccp = (char const *const *) p;
15665 { /* SCO 3.2v4 cc rejects this. */
15666 char *t;
15667 char const *s = 0 ? (char *) 0 : (char const *) 0;
15668
15669 *t++ = 0;
15670 }
15671 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15672 int x[] = {25, 17};
15673 const int *foo = &x[0];
15674 ++foo;
15675 }
15676 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15677 typedef const int *iptr;
15678 iptr p = 0;
15679 ++p;
15680 }
15681 { /* AIX XL C 1.02.0.0 rejects this saying
15682 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15683 struct s { int j; const int *ap[3]; };
15684 struct s *b; b->j = 5;
15685 }
15686 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15687 const int foo = 10;
15688 }
15689 #endif
15690
15691 ;
15692 return 0;
15693 }
15694 _ACEOF
15695 rm -f conftest.$ac_objext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15697 (eval $ac_compile) 2>conftest.er1
15698 ac_status=$?
15699 grep -v '^ *+' conftest.er1 >conftest.err
15700 rm -f conftest.er1
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } &&
15704 { ac_try='test -z "$ac_c_werror_flag"
15705 || test ! -s conftest.err'
15706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707 (eval $ac_try) 2>&5
15708 ac_status=$?
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; } &&
15711 { ac_try='test -s conftest.$ac_objext'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15714 ac_status=$?
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; }; then
15717 ac_cv_c_const=yes
15718 else
15719 echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722 ac_cv_c_const=no
15723 fi
15724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15725 fi
15726 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15727 echo "${ECHO_T}$ac_cv_c_const" >&6
15728 if test $ac_cv_c_const = no; then
15729
15730 cat >>confdefs.h <<\_ACEOF
15731 #define const
15732 _ACEOF
15733
15734 fi
15735
15736 echo "$as_me:$LINENO: checking for inline" >&5
15737 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15738 if test "${ac_cv_c_inline+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 else
15741 ac_cv_c_inline=no
15742 for ac_kw in inline __inline__ __inline; do
15743 cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h. */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 #ifndef __cplusplus
15750 typedef int foo_t;
15751 static $ac_kw foo_t static_foo () {return 0; }
15752 $ac_kw foo_t foo () {return 0; }
15753 #endif
15754
15755 _ACEOF
15756 rm -f conftest.$ac_objext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758 (eval $ac_compile) 2>conftest.er1
15759 ac_status=$?
15760 grep -v '^ *+' conftest.er1 >conftest.err
15761 rm -f conftest.er1
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
15765 { ac_try='test -z "$ac_c_werror_flag"
15766 || test ! -s conftest.err'
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; } &&
15772 { ac_try='test -s conftest.$ac_objext'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 ac_cv_c_inline=$ac_kw; break
15779 else
15780 echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15782
15783 fi
15784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15785 done
15786
15787 fi
15788 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15789 echo "${ECHO_T}$ac_cv_c_inline" >&6
15790
15791
15792 case $ac_cv_c_inline in
15793 inline | yes) ;;
15794 *)
15795 case $ac_cv_c_inline in
15796 no) ac_val=;;
15797 *) ac_val=$ac_cv_c_inline;;
15798 esac
15799 cat >>confdefs.h <<_ACEOF
15800 #ifndef __cplusplus
15801 #define inline $ac_val
15802 #endif
15803 _ACEOF
15804 ;;
15805 esac
15806
15807
15808 # ------------------------------ #
15809 # Checks for library functions. #
15810 # ------------------------------ #
15811
15812 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15813 # for constant arguments. Useless!
15814 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15815 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15816 if test "${ac_cv_working_alloca_h+set}" = set; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 else
15819 cat >conftest.$ac_ext <<_ACEOF
15820 /* confdefs.h. */
15821 _ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h. */
15825 #include <alloca.h>
15826 int
15827 main ()
15828 {
15829 char *p = (char *) alloca (2 * sizeof (int));
15830 ;
15831 return 0;
15832 }
15833 _ACEOF
15834 rm -f conftest.$ac_objext conftest$ac_exeext
15835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15836 (eval $ac_link) 2>conftest.er1
15837 ac_status=$?
15838 grep -v '^ *+' conftest.er1 >conftest.err
15839 rm -f conftest.er1
15840 cat conftest.err >&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
15843 { ac_try='test -z "$ac_c_werror_flag"
15844 || test ! -s conftest.err'
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; } &&
15850 { ac_try='test -s conftest$ac_exeext'
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 ac_cv_working_alloca_h=yes
15857 else
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15860
15861 ac_cv_working_alloca_h=no
15862 fi
15863 rm -f conftest.err conftest.$ac_objext \
15864 conftest$ac_exeext conftest.$ac_ext
15865 fi
15866 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15867 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15868 if test $ac_cv_working_alloca_h = yes; then
15869
15870 cat >>confdefs.h <<\_ACEOF
15871 #define HAVE_ALLOCA_H 1
15872 _ACEOF
15873
15874 fi
15875
15876 echo "$as_me:$LINENO: checking for alloca" >&5
15877 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15878 if test "${ac_cv_func_alloca_works+set}" = set; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881 cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h. */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 #ifdef __GNUC__
15888 # define alloca __builtin_alloca
15889 #else
15890 # ifdef _MSC_VER
15891 # include <malloc.h>
15892 # define alloca _alloca
15893 # else
15894 # if HAVE_ALLOCA_H
15895 # include <alloca.h>
15896 # else
15897 # ifdef _AIX
15898 #pragma alloca
15899 # else
15900 # ifndef alloca /* predefined by HP cc +Olibcalls */
15901 char *alloca ();
15902 # endif
15903 # endif
15904 # endif
15905 # endif
15906 #endif
15907
15908 int
15909 main ()
15910 {
15911 char *p = (char *) alloca (1);
15912 ;
15913 return 0;
15914 }
15915 _ACEOF
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15918 (eval $ac_link) 2>conftest.er1
15919 ac_status=$?
15920 grep -v '^ *+' conftest.er1 >conftest.err
15921 rm -f conftest.er1
15922 cat conftest.err >&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } &&
15925 { ac_try='test -z "$ac_c_werror_flag"
15926 || test ! -s conftest.err'
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15929 ac_status=$?
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; } &&
15932 { ac_try='test -s conftest$ac_exeext'
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15935 ac_status=$?
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15938 ac_cv_func_alloca_works=yes
15939 else
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15942
15943 ac_cv_func_alloca_works=no
15944 fi
15945 rm -f conftest.err conftest.$ac_objext \
15946 conftest$ac_exeext conftest.$ac_ext
15947 fi
15948 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15949 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15950
15951 if test $ac_cv_func_alloca_works = yes; then
15952
15953 cat >>confdefs.h <<\_ACEOF
15954 #define HAVE_ALLOCA 1
15955 _ACEOF
15956
15957 else
15958 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15959 # that cause trouble. Some versions do not even contain alloca or
15960 # contain a buggy version. If you still want to use their alloca,
15961 # use ar to extract alloca.o from them instead of compiling alloca.c.
15962
15963 ALLOCA=alloca.$ac_objext
15964
15965 cat >>confdefs.h <<\_ACEOF
15966 #define C_ALLOCA 1
15967 _ACEOF
15968
15969
15970 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15971 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15972 if test "${ac_cv_os_cray+set}" = set; then
15973 echo $ECHO_N "(cached) $ECHO_C" >&6
15974 else
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h. */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 #if defined(CRAY) && ! defined(CRAY2)
15982 webecray
15983 #else
15984 wenotbecray
15985 #endif
15986
15987 _ACEOF
15988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15989 $EGREP "webecray" >/dev/null 2>&1; then
15990 ac_cv_os_cray=yes
15991 else
15992 ac_cv_os_cray=no
15993 fi
15994 rm -f conftest*
15995
15996 fi
15997 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15998 echo "${ECHO_T}$ac_cv_os_cray" >&6
15999 if test $ac_cv_os_cray = yes; then
16000 for ac_func in _getb67 GETB67 getb67; do
16001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16002 echo "$as_me:$LINENO: checking for $ac_func" >&5
16003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16004 if eval "test \"\${$as_ac_var+set}\" = set"; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 else
16007 cat >conftest.$ac_ext <<_ACEOF
16008 /* confdefs.h. */
16009 _ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16015 #define $ac_func innocuous_$ac_func
16016
16017 /* System header to define __stub macros and hopefully few prototypes,
16018 which can conflict with char $ac_func (); below.
16019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16020 <limits.h> exists even on freestanding compilers. */
16021
16022 #ifdef __STDC__
16023 # include <limits.h>
16024 #else
16025 # include <assert.h>
16026 #endif
16027
16028 #undef $ac_func
16029
16030 /* Override any gcc2 internal prototype to avoid an error. */
16031 #ifdef __cplusplus
16032 extern "C"
16033 {
16034 #endif
16035 /* We use char because int might match the return type of a gcc2
16036 builtin and then its argument prototype would still apply. */
16037 char $ac_func ();
16038 /* The GNU C library defines this for functions which it implements
16039 to always fail with ENOSYS. Some functions are actually named
16040 something starting with __ and the normal name is an alias. */
16041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16042 choke me
16043 #else
16044 char (*f) () = $ac_func;
16045 #endif
16046 #ifdef __cplusplus
16047 }
16048 #endif
16049
16050 int
16051 main ()
16052 {
16053 return f != $ac_func;
16054 ;
16055 return 0;
16056 }
16057 _ACEOF
16058 rm -f conftest.$ac_objext conftest$ac_exeext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16060 (eval $ac_link) 2>conftest.er1
16061 ac_status=$?
16062 grep -v '^ *+' conftest.er1 >conftest.err
16063 rm -f conftest.er1
16064 cat conftest.err >&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try='test -z "$ac_c_werror_flag"
16068 || test ! -s conftest.err'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try='test -s conftest$ac_exeext'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 eval "$as_ac_var=yes"
16081 else
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16084
16085 eval "$as_ac_var=no"
16086 fi
16087 rm -f conftest.err conftest.$ac_objext \
16088 conftest$ac_exeext conftest.$ac_ext
16089 fi
16090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16092 if test `eval echo '${'$as_ac_var'}'` = yes; then
16093
16094 cat >>confdefs.h <<_ACEOF
16095 #define CRAY_STACKSEG_END $ac_func
16096 _ACEOF
16097
16098 break
16099 fi
16100
16101 done
16102 fi
16103
16104 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16105 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16106 if test "${ac_cv_c_stack_direction+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 else
16109 if test "$cross_compiling" = yes; then
16110 ac_cv_c_stack_direction=0
16111 else
16112 cat >conftest.$ac_ext <<_ACEOF
16113 /* confdefs.h. */
16114 _ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h. */
16118 int
16119 find_stack_direction ()
16120 {
16121 static char *addr = 0;
16122 auto char dummy;
16123 if (addr == 0)
16124 {
16125 addr = &dummy;
16126 return find_stack_direction ();
16127 }
16128 else
16129 return (&dummy > addr) ? 1 : -1;
16130 }
16131
16132 int
16133 main ()
16134 {
16135 exit (find_stack_direction () < 0);
16136 }
16137 _ACEOF
16138 rm -f conftest$ac_exeext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16140 (eval $ac_link) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16146 ac_status=$?
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; }; then
16149 ac_cv_c_stack_direction=1
16150 else
16151 echo "$as_me: program exited with status $ac_status" >&5
16152 echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16154
16155 ( exit $ac_status )
16156 ac_cv_c_stack_direction=-1
16157 fi
16158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16159 fi
16160 fi
16161 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16162 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16163
16164 cat >>confdefs.h <<_ACEOF
16165 #define STACK_DIRECTION $ac_cv_c_stack_direction
16166 _ACEOF
16167
16168
16169 fi
16170
16171
16172
16173 for ac_header in stdlib.h unistd.h
16174 do
16175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16177 echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 fi
16182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16184 else
16185 # Is the header compilable?
16186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16188 cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h. */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 $ac_includes_default
16195 #include <$ac_header>
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16199 (eval $ac_compile) 2>conftest.er1
16200 ac_status=$?
16201 grep -v '^ *+' conftest.er1 >conftest.err
16202 rm -f conftest.er1
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try='test -z "$ac_c_werror_flag"
16207 || test ! -s conftest.err'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; } &&
16213 { ac_try='test -s conftest.$ac_objext'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_header_compiler=yes
16220 else
16221 echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16223
16224 ac_header_compiler=no
16225 fi
16226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16228 echo "${ECHO_T}$ac_header_compiler" >&6
16229
16230 # Is the header present?
16231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16233 cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h. */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 #include <$ac_header>
16240 _ACEOF
16241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16243 ac_status=$?
16244 grep -v '^ *+' conftest.er1 >conftest.err
16245 rm -f conftest.er1
16246 cat conftest.err >&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } >/dev/null; then
16249 if test -s conftest.err; then
16250 ac_cpp_err=$ac_c_preproc_warn_flag
16251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16252 else
16253 ac_cpp_err=
16254 fi
16255 else
16256 ac_cpp_err=yes
16257 fi
16258 if test -z "$ac_cpp_err"; then
16259 ac_header_preproc=yes
16260 else
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16263
16264 ac_header_preproc=no
16265 fi
16266 rm -f conftest.err conftest.$ac_ext
16267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16268 echo "${ECHO_T}$ac_header_preproc" >&6
16269
16270 # So? What about this header?
16271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16272 yes:no: )
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16277 ac_header_preproc=yes
16278 ;;
16279 no:yes:* )
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16292 (
16293 cat <<\_ASBOX
16294 ## ------------------------------------------ ##
16295 ## Report this to the AC_PACKAGE_NAME lists. ##
16296 ## ------------------------------------------ ##
16297 _ASBOX
16298 ) |
16299 sed "s/^/$as_me: WARNING: /" >&2
16300 ;;
16301 esac
16302 echo "$as_me:$LINENO: checking for $ac_header" >&5
16303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16306 else
16307 eval "$as_ac_Header=\$ac_header_preproc"
16308 fi
16309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16311
16312 fi
16313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16314 cat >>confdefs.h <<_ACEOF
16315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16316 _ACEOF
16317
16318 fi
16319
16320 done
16321
16322
16323 for ac_func in getpagesize
16324 do
16325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16326 echo "$as_me:$LINENO: checking for $ac_func" >&5
16327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16328 if eval "test \"\${$as_ac_var+set}\" = set"; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 else
16331 cat >conftest.$ac_ext <<_ACEOF
16332 /* confdefs.h. */
16333 _ACEOF
16334 cat confdefs.h >>conftest.$ac_ext
16335 cat >>conftest.$ac_ext <<_ACEOF
16336 /* end confdefs.h. */
16337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16339 #define $ac_func innocuous_$ac_func
16340
16341 /* System header to define __stub macros and hopefully few prototypes,
16342 which can conflict with char $ac_func (); below.
16343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16344 <limits.h> exists even on freestanding compilers. */
16345
16346 #ifdef __STDC__
16347 # include <limits.h>
16348 #else
16349 # include <assert.h>
16350 #endif
16351
16352 #undef $ac_func
16353
16354 /* Override any gcc2 internal prototype to avoid an error. */
16355 #ifdef __cplusplus
16356 extern "C"
16357 {
16358 #endif
16359 /* We use char because int might match the return type of a gcc2
16360 builtin and then its argument prototype would still apply. */
16361 char $ac_func ();
16362 /* The GNU C library defines this for functions which it implements
16363 to always fail with ENOSYS. Some functions are actually named
16364 something starting with __ and the normal name is an alias. */
16365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16366 choke me
16367 #else
16368 char (*f) () = $ac_func;
16369 #endif
16370 #ifdef __cplusplus
16371 }
16372 #endif
16373
16374 int
16375 main ()
16376 {
16377 return f != $ac_func;
16378 ;
16379 return 0;
16380 }
16381 _ACEOF
16382 rm -f conftest.$ac_objext conftest$ac_exeext
16383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16384 (eval $ac_link) 2>conftest.er1
16385 ac_status=$?
16386 grep -v '^ *+' conftest.er1 >conftest.err
16387 rm -f conftest.er1
16388 cat conftest.err >&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } &&
16391 { ac_try='test -z "$ac_c_werror_flag"
16392 || test ! -s conftest.err'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16395 ac_status=$?
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; } &&
16398 { ac_try='test -s conftest$ac_exeext'
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; }; then
16404 eval "$as_ac_var=yes"
16405 else
16406 echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16408
16409 eval "$as_ac_var=no"
16410 fi
16411 rm -f conftest.err conftest.$ac_objext \
16412 conftest$ac_exeext conftest.$ac_ext
16413 fi
16414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16416 if test `eval echo '${'$as_ac_var'}'` = yes; then
16417 cat >>confdefs.h <<_ACEOF
16418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16419 _ACEOF
16420
16421 fi
16422 done
16423
16424 echo "$as_me:$LINENO: checking for working mmap" >&5
16425 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16426 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16427 echo $ECHO_N "(cached) $ECHO_C" >&6
16428 else
16429 if test "$cross_compiling" = yes; then
16430 ac_cv_func_mmap_fixed_mapped=no
16431 else
16432 cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h. */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 $ac_includes_default
16439 /* malloc might have been renamed as rpl_malloc. */
16440 #undef malloc
16441
16442 /* Thanks to Mike Haertel and Jim Avera for this test.
16443 Here is a matrix of mmap possibilities:
16444 mmap private not fixed
16445 mmap private fixed at somewhere currently unmapped
16446 mmap private fixed at somewhere already mapped
16447 mmap shared not fixed
16448 mmap shared fixed at somewhere currently unmapped
16449 mmap shared fixed at somewhere already mapped
16450 For private mappings, we should verify that changes cannot be read()
16451 back from the file, nor mmap's back from the file at a different
16452 address. (There have been systems where private was not correctly
16453 implemented like the infamous i386 svr4.0, and systems where the
16454 VM page cache was not coherent with the file system buffer cache
16455 like early versions of FreeBSD and possibly contemporary NetBSD.)
16456 For shared mappings, we should conversely verify that changes get
16457 propagated back to all the places they're supposed to be.
16458
16459 Grep wants private fixed already mapped.
16460 The main things grep needs to know about mmap are:
16461 * does it exist and is it safe to write into the mmap'd area
16462 * how to use it (BSD variants) */
16463
16464 #include <fcntl.h>
16465 #include <sys/mman.h>
16466
16467 #if !STDC_HEADERS && !HAVE_STDLIB_H
16468 char *malloc ();
16469 #endif
16470
16471 /* This mess was copied from the GNU getpagesize.h. */
16472 #if !HAVE_GETPAGESIZE
16473 /* Assume that all systems that can run configure have sys/param.h. */
16474 # if !HAVE_SYS_PARAM_H
16475 # define HAVE_SYS_PARAM_H 1
16476 # endif
16477
16478 # ifdef _SC_PAGESIZE
16479 # define getpagesize() sysconf(_SC_PAGESIZE)
16480 # else /* no _SC_PAGESIZE */
16481 # if HAVE_SYS_PARAM_H
16482 # include <sys/param.h>
16483 # ifdef EXEC_PAGESIZE
16484 # define getpagesize() EXEC_PAGESIZE
16485 # else /* no EXEC_PAGESIZE */
16486 # ifdef NBPG
16487 # define getpagesize() NBPG * CLSIZE
16488 # ifndef CLSIZE
16489 # define CLSIZE 1
16490 # endif /* no CLSIZE */
16491 # else /* no NBPG */
16492 # ifdef NBPC
16493 # define getpagesize() NBPC
16494 # else /* no NBPC */
16495 # ifdef PAGESIZE
16496 # define getpagesize() PAGESIZE
16497 # endif /* PAGESIZE */
16498 # endif /* no NBPC */
16499 # endif /* no NBPG */
16500 # endif /* no EXEC_PAGESIZE */
16501 # else /* no HAVE_SYS_PARAM_H */
16502 # define getpagesize() 8192 /* punt totally */
16503 # endif /* no HAVE_SYS_PARAM_H */
16504 # endif /* no _SC_PAGESIZE */
16505
16506 #endif /* no HAVE_GETPAGESIZE */
16507
16508 int
16509 main ()
16510 {
16511 char *data, *data2, *data3;
16512 int i, pagesize;
16513 int fd;
16514
16515 pagesize = getpagesize ();
16516
16517 /* First, make a file with some known garbage in it. */
16518 data = (char *) malloc (pagesize);
16519 if (!data)
16520 exit (1);
16521 for (i = 0; i < pagesize; ++i)
16522 *(data + i) = rand ();
16523 umask (0);
16524 fd = creat ("conftest.mmap", 0600);
16525 if (fd < 0)
16526 exit (1);
16527 if (write (fd, data, pagesize) != pagesize)
16528 exit (1);
16529 close (fd);
16530
16531 /* Next, try to mmap the file at a fixed address which already has
16532 something else allocated at it. If we can, also make sure that
16533 we see the same garbage. */
16534 fd = open ("conftest.mmap", O_RDWR);
16535 if (fd < 0)
16536 exit (1);
16537 data2 = (char *) malloc (2 * pagesize);
16538 if (!data2)
16539 exit (1);
16540 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16541 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16542 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16543 exit (1);
16544 for (i = 0; i < pagesize; ++i)
16545 if (*(data + i) != *(data2 + i))
16546 exit (1);
16547
16548 /* Finally, make sure that changes to the mapped area do not
16549 percolate back to the file as seen by read(). (This is a bug on
16550 some variants of i386 svr4.0.) */
16551 for (i = 0; i < pagesize; ++i)
16552 *(data2 + i) = *(data2 + i) + 1;
16553 data3 = (char *) malloc (pagesize);
16554 if (!data3)
16555 exit (1);
16556 if (read (fd, data3, pagesize) != pagesize)
16557 exit (1);
16558 for (i = 0; i < pagesize; ++i)
16559 if (*(data + i) != *(data3 + i))
16560 exit (1);
16561 close (fd);
16562 exit (0);
16563 }
16564 _ACEOF
16565 rm -f conftest$ac_exeext
16566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16567 (eval $ac_link) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16573 ac_status=$?
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16576 ac_cv_func_mmap_fixed_mapped=yes
16577 else
16578 echo "$as_me: program exited with status $ac_status" >&5
16579 echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16581
16582 ( exit $ac_status )
16583 ac_cv_func_mmap_fixed_mapped=no
16584 fi
16585 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16586 fi
16587 fi
16588 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16589 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16590 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16591
16592 cat >>confdefs.h <<\_ACEOF
16593 #define HAVE_MMAP 1
16594 _ACEOF
16595
16596 fi
16597 rm -f conftest.mmap
16598
16599 echo "$as_me:$LINENO: checking for pid_t" >&5
16600 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16601 if test "${ac_cv_type_pid_t+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16603 else
16604 cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h. */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16610 $ac_includes_default
16611 int
16612 main ()
16613 {
16614 if ((pid_t *) 0)
16615 return 0;
16616 if (sizeof (pid_t))
16617 return 0;
16618 ;
16619 return 0;
16620 }
16621 _ACEOF
16622 rm -f conftest.$ac_objext
16623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16624 (eval $ac_compile) 2>conftest.er1
16625 ac_status=$?
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag"
16632 || test ! -s conftest.err'
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_type_pid_t=yes
16645 else
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16648
16649 ac_cv_type_pid_t=no
16650 fi
16651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16652 fi
16653 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16654 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16655 if test $ac_cv_type_pid_t = yes; then
16656 :
16657 else
16658
16659 cat >>confdefs.h <<_ACEOF
16660 #define pid_t int
16661 _ACEOF
16662
16663 fi
16664
16665
16666
16667 for ac_header in unistd.h vfork.h
16668 do
16669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16671 echo "$as_me:$LINENO: checking for $ac_header" >&5
16672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16675 fi
16676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16678 else
16679 # Is the header compilable?
16680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16682 cat >conftest.$ac_ext <<_ACEOF
16683 /* confdefs.h. */
16684 _ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 $ac_includes_default
16689 #include <$ac_header>
16690 _ACEOF
16691 rm -f conftest.$ac_objext
16692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16693 (eval $ac_compile) 2>conftest.er1
16694 ac_status=$?
16695 grep -v '^ *+' conftest.er1 >conftest.err
16696 rm -f conftest.er1
16697 cat conftest.err >&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } &&
16700 { ac_try='test -z "$ac_c_werror_flag"
16701 || test ! -s conftest.err'
16702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703 (eval $ac_try) 2>&5
16704 ac_status=$?
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; } &&
16707 { ac_try='test -s conftest.$ac_objext'
16708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709 (eval $ac_try) 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; }; then
16713 ac_header_compiler=yes
16714 else
16715 echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16717
16718 ac_header_compiler=no
16719 fi
16720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16722 echo "${ECHO_T}$ac_header_compiler" >&6
16723
16724 # Is the header present?
16725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16727 cat >conftest.$ac_ext <<_ACEOF
16728 /* confdefs.h. */
16729 _ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 #include <$ac_header>
16734 _ACEOF
16735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16737 ac_status=$?
16738 grep -v '^ *+' conftest.er1 >conftest.err
16739 rm -f conftest.er1
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } >/dev/null; then
16743 if test -s conftest.err; then
16744 ac_cpp_err=$ac_c_preproc_warn_flag
16745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16746 else
16747 ac_cpp_err=
16748 fi
16749 else
16750 ac_cpp_err=yes
16751 fi
16752 if test -z "$ac_cpp_err"; then
16753 ac_header_preproc=yes
16754 else
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16757
16758 ac_header_preproc=no
16759 fi
16760 rm -f conftest.err conftest.$ac_ext
16761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16762 echo "${ECHO_T}$ac_header_preproc" >&6
16763
16764 # So? What about this header?
16765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16766 yes:no: )
16767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16771 ac_header_preproc=yes
16772 ;;
16773 no:yes:* )
16774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16786 (
16787 cat <<\_ASBOX
16788 ## ------------------------------------------ ##
16789 ## Report this to the AC_PACKAGE_NAME lists. ##
16790 ## ------------------------------------------ ##
16791 _ASBOX
16792 ) |
16793 sed "s/^/$as_me: WARNING: /" >&2
16794 ;;
16795 esac
16796 echo "$as_me:$LINENO: checking for $ac_header" >&5
16797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 else
16801 eval "$as_ac_Header=\$ac_header_preproc"
16802 fi
16803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16805
16806 fi
16807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16808 cat >>confdefs.h <<_ACEOF
16809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16810 _ACEOF
16811
16812 fi
16813
16814 done
16815
16816
16817
16818 for ac_func in fork vfork
16819 do
16820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16821 echo "$as_me:$LINENO: checking for $ac_func" >&5
16822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16823 if eval "test \"\${$as_ac_var+set}\" = set"; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826 cat >conftest.$ac_ext <<_ACEOF
16827 /* confdefs.h. */
16828 _ACEOF
16829 cat confdefs.h >>conftest.$ac_ext
16830 cat >>conftest.$ac_ext <<_ACEOF
16831 /* end confdefs.h. */
16832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16834 #define $ac_func innocuous_$ac_func
16835
16836 /* System header to define __stub macros and hopefully few prototypes,
16837 which can conflict with char $ac_func (); below.
16838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16839 <limits.h> exists even on freestanding compilers. */
16840
16841 #ifdef __STDC__
16842 # include <limits.h>
16843 #else
16844 # include <assert.h>
16845 #endif
16846
16847 #undef $ac_func
16848
16849 /* Override any gcc2 internal prototype to avoid an error. */
16850 #ifdef __cplusplus
16851 extern "C"
16852 {
16853 #endif
16854 /* We use char because int might match the return type of a gcc2
16855 builtin and then its argument prototype would still apply. */
16856 char $ac_func ();
16857 /* The GNU C library defines this for functions which it implements
16858 to always fail with ENOSYS. Some functions are actually named
16859 something starting with __ and the normal name is an alias. */
16860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16861 choke me
16862 #else
16863 char (*f) () = $ac_func;
16864 #endif
16865 #ifdef __cplusplus
16866 }
16867 #endif
16868
16869 int
16870 main ()
16871 {
16872 return f != $ac_func;
16873 ;
16874 return 0;
16875 }
16876 _ACEOF
16877 rm -f conftest.$ac_objext conftest$ac_exeext
16878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16879 (eval $ac_link) 2>conftest.er1
16880 ac_status=$?
16881 grep -v '^ *+' conftest.er1 >conftest.err
16882 rm -f conftest.er1
16883 cat conftest.err >&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } &&
16886 { ac_try='test -z "$ac_c_werror_flag"
16887 || test ! -s conftest.err'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; } &&
16893 { ac_try='test -s conftest$ac_exeext'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 eval "$as_ac_var=yes"
16900 else
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16903
16904 eval "$as_ac_var=no"
16905 fi
16906 rm -f conftest.err conftest.$ac_objext \
16907 conftest$ac_exeext conftest.$ac_ext
16908 fi
16909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16911 if test `eval echo '${'$as_ac_var'}'` = yes; then
16912 cat >>confdefs.h <<_ACEOF
16913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16914 _ACEOF
16915
16916 fi
16917 done
16918
16919 if test "x$ac_cv_func_fork" = xyes; then
16920 echo "$as_me:$LINENO: checking for working fork" >&5
16921 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16922 if test "${ac_cv_func_fork_works+set}" = set; then
16923 echo $ECHO_N "(cached) $ECHO_C" >&6
16924 else
16925 if test "$cross_compiling" = yes; then
16926 ac_cv_func_fork_works=cross
16927 else
16928 cat >conftest.$ac_ext <<_ACEOF
16929 /* By Ruediger Kuhlmann. */
16930 #include <sys/types.h>
16931 #if HAVE_UNISTD_H
16932 # include <unistd.h>
16933 #endif
16934 /* Some systems only have a dummy stub for fork() */
16935 int main ()
16936 {
16937 if (fork() < 0)
16938 exit (1);
16939 exit (0);
16940 }
16941 _ACEOF
16942 rm -f conftest$ac_exeext
16943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16944 (eval $ac_link) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 ac_cv_func_fork_works=yes
16954 else
16955 echo "$as_me: program exited with status $ac_status" >&5
16956 echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16958
16959 ( exit $ac_status )
16960 ac_cv_func_fork_works=no
16961 fi
16962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16963 fi
16964 fi
16965 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16966 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16967
16968 else
16969 ac_cv_func_fork_works=$ac_cv_func_fork
16970 fi
16971 if test "x$ac_cv_func_fork_works" = xcross; then
16972 case $host in
16973 *-*-amigaos* | *-*-msdosdjgpp*)
16974 # Override, as these systems have only a dummy fork() stub
16975 ac_cv_func_fork_works=no
16976 ;;
16977 *)
16978 ac_cv_func_fork_works=yes
16979 ;;
16980 esac
16981 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16982 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16983 fi
16984 ac_cv_func_vfork_works=$ac_cv_func_vfork
16985 if test "x$ac_cv_func_vfork" = xyes; then
16986 echo "$as_me:$LINENO: checking for working vfork" >&5
16987 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16988 if test "${ac_cv_func_vfork_works+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991 if test "$cross_compiling" = yes; then
16992 ac_cv_func_vfork_works=cross
16993 else
16994 cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h. */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 /* Thanks to Paul Eggert for this test. */
17001 #include <stdio.h>
17002 #include <stdlib.h>
17003 #include <sys/types.h>
17004 #include <sys/stat.h>
17005 #include <sys/wait.h>
17006 #if HAVE_UNISTD_H
17007 # include <unistd.h>
17008 #endif
17009 #if HAVE_VFORK_H
17010 # include <vfork.h>
17011 #endif
17012 /* On some sparc systems, changes by the child to local and incoming
17013 argument registers are propagated back to the parent. The compiler
17014 is told about this with #include <vfork.h>, but some compilers
17015 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17016 static variable whose address is put into a register that is
17017 clobbered by the vfork. */
17018 static void
17019 #ifdef __cplusplus
17020 sparc_address_test (int arg)
17021 # else
17022 sparc_address_test (arg) int arg;
17023 #endif
17024 {
17025 static pid_t child;
17026 if (!child) {
17027 child = vfork ();
17028 if (child < 0) {
17029 perror ("vfork");
17030 _exit(2);
17031 }
17032 if (!child) {
17033 arg = getpid();
17034 write(-1, "", 0);
17035 _exit (arg);
17036 }
17037 }
17038 }
17039
17040 int
17041 main ()
17042 {
17043 pid_t parent = getpid ();
17044 pid_t child;
17045
17046 sparc_address_test (0);
17047
17048 child = vfork ();
17049
17050 if (child == 0) {
17051 /* Here is another test for sparc vfork register problems. This
17052 test uses lots of local variables, at least as many local
17053 variables as main has allocated so far including compiler
17054 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17055 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17056 reuse the register of parent for one of the local variables,
17057 since it will think that parent can't possibly be used any more
17058 in this routine. Assigning to the local variable will thus
17059 munge parent in the parent process. */
17060 pid_t
17061 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17062 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17063 /* Convince the compiler that p..p7 are live; otherwise, it might
17064 use the same hardware register for all 8 local variables. */
17065 if (p != p1 || p != p2 || p != p3 || p != p4
17066 || p != p5 || p != p6 || p != p7)
17067 _exit(1);
17068
17069 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17070 from child file descriptors. If the child closes a descriptor
17071 before it execs or exits, this munges the parent's descriptor
17072 as well. Test for this by closing stdout in the child. */
17073 _exit(close(fileno(stdout)) != 0);
17074 } else {
17075 int status;
17076 struct stat st;
17077
17078 while (wait(&status) != child)
17079 ;
17080 exit(
17081 /* Was there some problem with vforking? */
17082 child < 0
17083
17084 /* Did the child fail? (This shouldn't happen.) */
17085 || status
17086
17087 /* Did the vfork/compiler bug occur? */
17088 || parent != getpid()
17089
17090 /* Did the file descriptor bug occur? */
17091 || fstat(fileno(stdout), &st) != 0
17092 );
17093 }
17094 }
17095 _ACEOF
17096 rm -f conftest$ac_exeext
17097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17098 (eval $ac_link) 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; }; then
17107 ac_cv_func_vfork_works=yes
17108 else
17109 echo "$as_me: program exited with status $ac_status" >&5
17110 echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17112
17113 ( exit $ac_status )
17114 ac_cv_func_vfork_works=no
17115 fi
17116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17117 fi
17118 fi
17119 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17120 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17121
17122 fi;
17123 if test "x$ac_cv_func_fork_works" = xcross; then
17124 ac_cv_func_vfork_works=$ac_cv_func_vfork
17125 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17126 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17127 fi
17128
17129 if test "x$ac_cv_func_vfork_works" = xyes; then
17130
17131 cat >>confdefs.h <<\_ACEOF
17132 #define HAVE_WORKING_VFORK 1
17133 _ACEOF
17134
17135 else
17136
17137 cat >>confdefs.h <<\_ACEOF
17138 #define vfork fork
17139 _ACEOF
17140
17141 fi
17142 if test "x$ac_cv_func_fork_works" = xyes; then
17143
17144 cat >>confdefs.h <<\_ACEOF
17145 #define HAVE_WORKING_FORK 1
17146 _ACEOF
17147
17148 fi
17149
17150
17151
17152 for ac_func in canonicalize_file_name realpath
17153 do
17154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17155 echo "$as_me:$LINENO: checking for $ac_func" >&5
17156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17157 if eval "test \"\${$as_ac_var+set}\" = set"; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160 cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h. */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17168 #define $ac_func innocuous_$ac_func
17169
17170 /* System header to define __stub macros and hopefully few prototypes,
17171 which can conflict with char $ac_func (); below.
17172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17173 <limits.h> exists even on freestanding compilers. */
17174
17175 #ifdef __STDC__
17176 # include <limits.h>
17177 #else
17178 # include <assert.h>
17179 #endif
17180
17181 #undef $ac_func
17182
17183 /* Override any gcc2 internal prototype to avoid an error. */
17184 #ifdef __cplusplus
17185 extern "C"
17186 {
17187 #endif
17188 /* We use char because int might match the return type of a gcc2
17189 builtin and then its argument prototype would still apply. */
17190 char $ac_func ();
17191 /* The GNU C library defines this for functions which it implements
17192 to always fail with ENOSYS. Some functions are actually named
17193 something starting with __ and the normal name is an alias. */
17194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17195 choke me
17196 #else
17197 char (*f) () = $ac_func;
17198 #endif
17199 #ifdef __cplusplus
17200 }
17201 #endif
17202
17203 int
17204 main ()
17205 {
17206 return f != $ac_func;
17207 ;
17208 return 0;
17209 }
17210 _ACEOF
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17213 (eval $ac_link) 2>conftest.er1
17214 ac_status=$?
17215 grep -v '^ *+' conftest.er1 >conftest.err
17216 rm -f conftest.er1
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
17220 { ac_try='test -z "$ac_c_werror_flag"
17221 || test ! -s conftest.err'
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest$ac_exeext'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
17233 eval "$as_ac_var=yes"
17234 else
17235 echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.$ac_ext >&5
17237
17238 eval "$as_ac_var=no"
17239 fi
17240 rm -f conftest.err conftest.$ac_objext \
17241 conftest$ac_exeext conftest.$ac_ext
17242 fi
17243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17245 if test `eval echo '${'$as_ac_var'}'` = yes; then
17246 cat >>confdefs.h <<_ACEOF
17247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17248 _ACEOF
17249
17250 fi
17251 done
17252
17253
17254 for ac_func in getrusage
17255 do
17256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17257 echo "$as_me:$LINENO: checking for $ac_func" >&5
17258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17259 if eval "test \"\${$as_ac_var+set}\" = set"; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 else
17262 cat >conftest.$ac_ext <<_ACEOF
17263 /* confdefs.h. */
17264 _ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17270 #define $ac_func innocuous_$ac_func
17271
17272 /* System header to define __stub macros and hopefully few prototypes,
17273 which can conflict with char $ac_func (); below.
17274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17275 <limits.h> exists even on freestanding compilers. */
17276
17277 #ifdef __STDC__
17278 # include <limits.h>
17279 #else
17280 # include <assert.h>
17281 #endif
17282
17283 #undef $ac_func
17284
17285 /* Override any gcc2 internal prototype to avoid an error. */
17286 #ifdef __cplusplus
17287 extern "C"
17288 {
17289 #endif
17290 /* We use char because int might match the return type of a gcc2
17291 builtin and then its argument prototype would still apply. */
17292 char $ac_func ();
17293 /* The GNU C library defines this for functions which it implements
17294 to always fail with ENOSYS. Some functions are actually named
17295 something starting with __ and the normal name is an alias. */
17296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17297 choke me
17298 #else
17299 char (*f) () = $ac_func;
17300 #endif
17301 #ifdef __cplusplus
17302 }
17303 #endif
17304
17305 int
17306 main ()
17307 {
17308 return f != $ac_func;
17309 ;
17310 return 0;
17311 }
17312 _ACEOF
17313 rm -f conftest.$ac_objext conftest$ac_exeext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17315 (eval $ac_link) 2>conftest.er1
17316 ac_status=$?
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
17322 { ac_try='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest$ac_exeext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 eval "$as_ac_var=yes"
17336 else
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340 eval "$as_ac_var=no"
17341 fi
17342 rm -f conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17344 fi
17345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17347 if test `eval echo '${'$as_ac_var'}'` = yes; then
17348 cat >>confdefs.h <<_ACEOF
17349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17350 _ACEOF
17351
17352 fi
17353 done
17354
17355
17356
17357 for ac_func in getuid getgid
17358 do
17359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17360 echo "$as_me:$LINENO: checking for $ac_func" >&5
17361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17362 if eval "test \"\${$as_ac_var+set}\" = set"; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 else
17365 cat >conftest.$ac_ext <<_ACEOF
17366 /* confdefs.h. */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17373 #define $ac_func innocuous_$ac_func
17374
17375 /* System header to define __stub macros and hopefully few prototypes,
17376 which can conflict with char $ac_func (); below.
17377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17378 <limits.h> exists even on freestanding compilers. */
17379
17380 #ifdef __STDC__
17381 # include <limits.h>
17382 #else
17383 # include <assert.h>
17384 #endif
17385
17386 #undef $ac_func
17387
17388 /* Override any gcc2 internal prototype to avoid an error. */
17389 #ifdef __cplusplus
17390 extern "C"
17391 {
17392 #endif
17393 /* We use char because int might match the return type of a gcc2
17394 builtin and then its argument prototype would still apply. */
17395 char $ac_func ();
17396 /* The GNU C library defines this for functions which it implements
17397 to always fail with ENOSYS. Some functions are actually named
17398 something starting with __ and the normal name is an alias. */
17399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17400 choke me
17401 #else
17402 char (*f) () = $ac_func;
17403 #endif
17404 #ifdef __cplusplus
17405 }
17406 #endif
17407
17408 int
17409 main ()
17410 {
17411 return f != $ac_func;
17412 ;
17413 return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418 (eval $ac_link) 2>conftest.er1
17419 ac_status=$?
17420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try='test -z "$ac_c_werror_flag"
17426 || test ! -s conftest.err'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; } &&
17432 { ac_try='test -s conftest$ac_exeext'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 eval "$as_ac_var=yes"
17439 else
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443 eval "$as_ac_var=no"
17444 fi
17445 rm -f conftest.err conftest.$ac_objext \
17446 conftest$ac_exeext conftest.$ac_ext
17447 fi
17448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17450 if test `eval echo '${'$as_ac_var'}'` = yes; then
17451 cat >>confdefs.h <<_ACEOF
17452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17453 _ACEOF
17454
17455 fi
17456 done
17457
17458
17459 for ac_func in poll
17460 do
17461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17462 echo "$as_me:$LINENO: checking for $ac_func" >&5
17463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17464 if eval "test \"\${$as_ac_var+set}\" = set"; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 else
17467 cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h. */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17475 #define $ac_func innocuous_$ac_func
17476
17477 /* System header to define __stub macros and hopefully few prototypes,
17478 which can conflict with char $ac_func (); below.
17479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17480 <limits.h> exists even on freestanding compilers. */
17481
17482 #ifdef __STDC__
17483 # include <limits.h>
17484 #else
17485 # include <assert.h>
17486 #endif
17487
17488 #undef $ac_func
17489
17490 /* Override any gcc2 internal prototype to avoid an error. */
17491 #ifdef __cplusplus
17492 extern "C"
17493 {
17494 #endif
17495 /* We use char because int might match the return type of a gcc2
17496 builtin and then its argument prototype would still apply. */
17497 char $ac_func ();
17498 /* The GNU C library defines this for functions which it implements
17499 to always fail with ENOSYS. Some functions are actually named
17500 something starting with __ and the normal name is an alias. */
17501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17502 choke me
17503 #else
17504 char (*f) () = $ac_func;
17505 #endif
17506 #ifdef __cplusplus
17507 }
17508 #endif
17509
17510 int
17511 main ()
17512 {
17513 return f != $ac_func;
17514 ;
17515 return 0;
17516 }
17517 _ACEOF
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17520 (eval $ac_link) 2>conftest.er1
17521 ac_status=$?
17522 grep -v '^ *+' conftest.er1 >conftest.err
17523 rm -f conftest.er1
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try='test -z "$ac_c_werror_flag"
17528 || test ! -s conftest.err'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest$ac_exeext'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 eval "$as_ac_var=yes"
17541 else
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17544
17545 eval "$as_ac_var=no"
17546 fi
17547 rm -f conftest.err conftest.$ac_objext \
17548 conftest$ac_exeext conftest.$ac_ext
17549 fi
17550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17552 if test `eval echo '${'$as_ac_var'}'` = yes; then
17553 cat >>confdefs.h <<_ACEOF
17554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17555 _ACEOF
17556
17557 fi
17558 done
17559
17560
17561 for ac_func in pread64
17562 do
17563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17564 echo "$as_me:$LINENO: checking for $ac_func" >&5
17565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17566 if eval "test \"\${$as_ac_var+set}\" = set"; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 else
17569 cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h. */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17577 #define $ac_func innocuous_$ac_func
17578
17579 /* System header to define __stub macros and hopefully few prototypes,
17580 which can conflict with char $ac_func (); below.
17581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17582 <limits.h> exists even on freestanding compilers. */
17583
17584 #ifdef __STDC__
17585 # include <limits.h>
17586 #else
17587 # include <assert.h>
17588 #endif
17589
17590 #undef $ac_func
17591
17592 /* Override any gcc2 internal prototype to avoid an error. */
17593 #ifdef __cplusplus
17594 extern "C"
17595 {
17596 #endif
17597 /* We use char because int might match the return type of a gcc2
17598 builtin and then its argument prototype would still apply. */
17599 char $ac_func ();
17600 /* The GNU C library defines this for functions which it implements
17601 to always fail with ENOSYS. Some functions are actually named
17602 something starting with __ and the normal name is an alias. */
17603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17604 choke me
17605 #else
17606 char (*f) () = $ac_func;
17607 #endif
17608 #ifdef __cplusplus
17609 }
17610 #endif
17611
17612 int
17613 main ()
17614 {
17615 return f != $ac_func;
17616 ;
17617 return 0;
17618 }
17619 _ACEOF
17620 rm -f conftest.$ac_objext conftest$ac_exeext
17621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17622 (eval $ac_link) 2>conftest.er1
17623 ac_status=$?
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } &&
17629 { ac_try='test -z "$ac_c_werror_flag"
17630 || test ! -s conftest.err'
17631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; } &&
17636 { ac_try='test -s conftest$ac_exeext'
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; }; then
17642 eval "$as_ac_var=yes"
17643 else
17644 echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.$ac_ext >&5
17646
17647 eval "$as_ac_var=no"
17648 fi
17649 rm -f conftest.err conftest.$ac_objext \
17650 conftest$ac_exeext conftest.$ac_ext
17651 fi
17652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17654 if test `eval echo '${'$as_ac_var'}'` = yes; then
17655 cat >>confdefs.h <<_ACEOF
17656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17657 _ACEOF
17658
17659 fi
17660 done
17661
17662
17663 for ac_func in sbrk
17664 do
17665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17666 echo "$as_me:$LINENO: checking for $ac_func" >&5
17667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17668 if eval "test \"\${$as_ac_var+set}\" = set"; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17670 else
17671 cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h. */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17679 #define $ac_func innocuous_$ac_func
17680
17681 /* System header to define __stub macros and hopefully few prototypes,
17682 which can conflict with char $ac_func (); below.
17683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17684 <limits.h> exists even on freestanding compilers. */
17685
17686 #ifdef __STDC__
17687 # include <limits.h>
17688 #else
17689 # include <assert.h>
17690 #endif
17691
17692 #undef $ac_func
17693
17694 /* Override any gcc2 internal prototype to avoid an error. */
17695 #ifdef __cplusplus
17696 extern "C"
17697 {
17698 #endif
17699 /* We use char because int might match the return type of a gcc2
17700 builtin and then its argument prototype would still apply. */
17701 char $ac_func ();
17702 /* The GNU C library defines this for functions which it implements
17703 to always fail with ENOSYS. Some functions are actually named
17704 something starting with __ and the normal name is an alias. */
17705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17706 choke me
17707 #else
17708 char (*f) () = $ac_func;
17709 #endif
17710 #ifdef __cplusplus
17711 }
17712 #endif
17713
17714 int
17715 main ()
17716 {
17717 return f != $ac_func;
17718 ;
17719 return 0;
17720 }
17721 _ACEOF
17722 rm -f conftest.$ac_objext conftest$ac_exeext
17723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17724 (eval $ac_link) 2>conftest.er1
17725 ac_status=$?
17726 grep -v '^ *+' conftest.er1 >conftest.err
17727 rm -f conftest.er1
17728 cat conftest.err >&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } &&
17731 { ac_try='test -z "$ac_c_werror_flag"
17732 || test ! -s conftest.err'
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; } &&
17738 { ac_try='test -s conftest$ac_exeext'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; }; then
17744 eval "$as_ac_var=yes"
17745 else
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17748
17749 eval "$as_ac_var=no"
17750 fi
17751 rm -f conftest.err conftest.$ac_objext \
17752 conftest$ac_exeext conftest.$ac_ext
17753 fi
17754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17756 if test `eval echo '${'$as_ac_var'}'` = yes; then
17757 cat >>confdefs.h <<_ACEOF
17758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17759 _ACEOF
17760
17761 fi
17762 done
17763
17764
17765
17766 for ac_func in setpgid setpgrp
17767 do
17768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17769 echo "$as_me:$LINENO: checking for $ac_func" >&5
17770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17771 if eval "test \"\${$as_ac_var+set}\" = set"; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17773 else
17774 cat >conftest.$ac_ext <<_ACEOF
17775 /* confdefs.h. */
17776 _ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17782 #define $ac_func innocuous_$ac_func
17783
17784 /* System header to define __stub macros and hopefully few prototypes,
17785 which can conflict with char $ac_func (); below.
17786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17787 <limits.h> exists even on freestanding compilers. */
17788
17789 #ifdef __STDC__
17790 # include <limits.h>
17791 #else
17792 # include <assert.h>
17793 #endif
17794
17795 #undef $ac_func
17796
17797 /* Override any gcc2 internal prototype to avoid an error. */
17798 #ifdef __cplusplus
17799 extern "C"
17800 {
17801 #endif
17802 /* We use char because int might match the return type of a gcc2
17803 builtin and then its argument prototype would still apply. */
17804 char $ac_func ();
17805 /* The GNU C library defines this for functions which it implements
17806 to always fail with ENOSYS. Some functions are actually named
17807 something starting with __ and the normal name is an alias. */
17808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17809 choke me
17810 #else
17811 char (*f) () = $ac_func;
17812 #endif
17813 #ifdef __cplusplus
17814 }
17815 #endif
17816
17817 int
17818 main ()
17819 {
17820 return f != $ac_func;
17821 ;
17822 return 0;
17823 }
17824 _ACEOF
17825 rm -f conftest.$ac_objext conftest$ac_exeext
17826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17827 (eval $ac_link) 2>conftest.er1
17828 ac_status=$?
17829 grep -v '^ *+' conftest.er1 >conftest.err
17830 rm -f conftest.er1
17831 cat conftest.err >&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
17834 { ac_try='test -z "$ac_c_werror_flag"
17835 || test ! -s conftest.err'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; } &&
17841 { ac_try='test -s conftest$ac_exeext'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; }; then
17847 eval "$as_ac_var=yes"
17848 else
17849 echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17851
17852 eval "$as_ac_var=no"
17853 fi
17854 rm -f conftest.err conftest.$ac_objext \
17855 conftest$ac_exeext conftest.$ac_ext
17856 fi
17857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17859 if test `eval echo '${'$as_ac_var'}'` = yes; then
17860 cat >>confdefs.h <<_ACEOF
17861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17862 _ACEOF
17863
17864 fi
17865 done
17866
17867
17868
17869
17870 for ac_func in sigaction sigprocmask sigsetmask
17871 do
17872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17873 echo "$as_me:$LINENO: checking for $ac_func" >&5
17874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17875 if eval "test \"\${$as_ac_var+set}\" = set"; then
17876 echo $ECHO_N "(cached) $ECHO_C" >&6
17877 else
17878 cat >conftest.$ac_ext <<_ACEOF
17879 /* confdefs.h. */
17880 _ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17886 #define $ac_func innocuous_$ac_func
17887
17888 /* System header to define __stub macros and hopefully few prototypes,
17889 which can conflict with char $ac_func (); below.
17890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17891 <limits.h> exists even on freestanding compilers. */
17892
17893 #ifdef __STDC__
17894 # include <limits.h>
17895 #else
17896 # include <assert.h>
17897 #endif
17898
17899 #undef $ac_func
17900
17901 /* Override any gcc2 internal prototype to avoid an error. */
17902 #ifdef __cplusplus
17903 extern "C"
17904 {
17905 #endif
17906 /* We use char because int might match the return type of a gcc2
17907 builtin and then its argument prototype would still apply. */
17908 char $ac_func ();
17909 /* The GNU C library defines this for functions which it implements
17910 to always fail with ENOSYS. Some functions are actually named
17911 something starting with __ and the normal name is an alias. */
17912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17913 choke me
17914 #else
17915 char (*f) () = $ac_func;
17916 #endif
17917 #ifdef __cplusplus
17918 }
17919 #endif
17920
17921 int
17922 main ()
17923 {
17924 return f != $ac_func;
17925 ;
17926 return 0;
17927 }
17928 _ACEOF
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931 (eval $ac_link) 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_c_werror_flag"
17939 || test ! -s conftest.err'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; } &&
17945 { ac_try='test -s conftest$ac_exeext'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 eval "$as_ac_var=yes"
17952 else
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17955
17956 eval "$as_ac_var=no"
17957 fi
17958 rm -f conftest.err conftest.$ac_objext \
17959 conftest$ac_exeext conftest.$ac_ext
17960 fi
17961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17963 if test `eval echo '${'$as_ac_var'}'` = yes; then
17964 cat >>confdefs.h <<_ACEOF
17965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17966 _ACEOF
17967
17968 fi
17969 done
17970
17971
17972 for ac_func in socketpair
17973 do
17974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17975 echo "$as_me:$LINENO: checking for $ac_func" >&5
17976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17977 if eval "test \"\${$as_ac_var+set}\" = set"; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 else
17980 cat >conftest.$ac_ext <<_ACEOF
17981 /* confdefs.h. */
17982 _ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17988 #define $ac_func innocuous_$ac_func
17989
17990 /* System header to define __stub macros and hopefully few prototypes,
17991 which can conflict with char $ac_func (); below.
17992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17993 <limits.h> exists even on freestanding compilers. */
17994
17995 #ifdef __STDC__
17996 # include <limits.h>
17997 #else
17998 # include <assert.h>
17999 #endif
18000
18001 #undef $ac_func
18002
18003 /* Override any gcc2 internal prototype to avoid an error. */
18004 #ifdef __cplusplus
18005 extern "C"
18006 {
18007 #endif
18008 /* We use char because int might match the return type of a gcc2
18009 builtin and then its argument prototype would still apply. */
18010 char $ac_func ();
18011 /* The GNU C library defines this for functions which it implements
18012 to always fail with ENOSYS. Some functions are actually named
18013 something starting with __ and the normal name is an alias. */
18014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18015 choke me
18016 #else
18017 char (*f) () = $ac_func;
18018 #endif
18019 #ifdef __cplusplus
18020 }
18021 #endif
18022
18023 int
18024 main ()
18025 {
18026 return f != $ac_func;
18027 ;
18028 return 0;
18029 }
18030 _ACEOF
18031 rm -f conftest.$ac_objext conftest$ac_exeext
18032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18033 (eval $ac_link) 2>conftest.er1
18034 ac_status=$?
18035 grep -v '^ *+' conftest.er1 >conftest.err
18036 rm -f conftest.er1
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
18040 { ac_try='test -z "$ac_c_werror_flag"
18041 || test ! -s conftest.err'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; } &&
18047 { ac_try='test -s conftest$ac_exeext'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 eval "$as_ac_var=yes"
18054 else
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18057
18058 eval "$as_ac_var=no"
18059 fi
18060 rm -f conftest.err conftest.$ac_objext \
18061 conftest$ac_exeext conftest.$ac_ext
18062 fi
18063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18065 if test `eval echo '${'$as_ac_var'}'` = yes; then
18066 cat >>confdefs.h <<_ACEOF
18067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18068 _ACEOF
18069
18070 fi
18071 done
18072
18073
18074 for ac_func in syscall
18075 do
18076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18077 echo "$as_me:$LINENO: checking for $ac_func" >&5
18078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18079 if eval "test \"\${$as_ac_var+set}\" = set"; then
18080 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 else
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h. */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18090 #define $ac_func innocuous_$ac_func
18091
18092 /* System header to define __stub macros and hopefully few prototypes,
18093 which can conflict with char $ac_func (); below.
18094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18095 <limits.h> exists even on freestanding compilers. */
18096
18097 #ifdef __STDC__
18098 # include <limits.h>
18099 #else
18100 # include <assert.h>
18101 #endif
18102
18103 #undef $ac_func
18104
18105 /* Override any gcc2 internal prototype to avoid an error. */
18106 #ifdef __cplusplus
18107 extern "C"
18108 {
18109 #endif
18110 /* We use char because int might match the return type of a gcc2
18111 builtin and then its argument prototype would still apply. */
18112 char $ac_func ();
18113 /* The GNU C library defines this for functions which it implements
18114 to always fail with ENOSYS. Some functions are actually named
18115 something starting with __ and the normal name is an alias. */
18116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18117 choke me
18118 #else
18119 char (*f) () = $ac_func;
18120 #endif
18121 #ifdef __cplusplus
18122 }
18123 #endif
18124
18125 int
18126 main ()
18127 {
18128 return f != $ac_func;
18129 ;
18130 return 0;
18131 }
18132 _ACEOF
18133 rm -f conftest.$ac_objext conftest$ac_exeext
18134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18135 (eval $ac_link) 2>conftest.er1
18136 ac_status=$?
18137 grep -v '^ *+' conftest.er1 >conftest.err
18138 rm -f conftest.er1
18139 cat conftest.err >&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } &&
18142 { ac_try='test -z "$ac_c_werror_flag"
18143 || test ! -s conftest.err'
18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; } &&
18149 { ac_try='test -s conftest$ac_exeext'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 eval "$as_ac_var=yes"
18156 else
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18159
18160 eval "$as_ac_var=no"
18161 fi
18162 rm -f conftest.err conftest.$ac_objext \
18163 conftest$ac_exeext conftest.$ac_ext
18164 fi
18165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18167 if test `eval echo '${'$as_ac_var'}'` = yes; then
18168 cat >>confdefs.h <<_ACEOF
18169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18170 _ACEOF
18171
18172 fi
18173 done
18174
18175
18176 for ac_func in ttrace
18177 do
18178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18179 echo "$as_me:$LINENO: checking for $ac_func" >&5
18180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18181 if eval "test \"\${$as_ac_var+set}\" = set"; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18183 else
18184 cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h. */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18192 #define $ac_func innocuous_$ac_func
18193
18194 /* System header to define __stub macros and hopefully few prototypes,
18195 which can conflict with char $ac_func (); below.
18196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18197 <limits.h> exists even on freestanding compilers. */
18198
18199 #ifdef __STDC__
18200 # include <limits.h>
18201 #else
18202 # include <assert.h>
18203 #endif
18204
18205 #undef $ac_func
18206
18207 /* Override any gcc2 internal prototype to avoid an error. */
18208 #ifdef __cplusplus
18209 extern "C"
18210 {
18211 #endif
18212 /* We use char because int might match the return type of a gcc2
18213 builtin and then its argument prototype would still apply. */
18214 char $ac_func ();
18215 /* The GNU C library defines this for functions which it implements
18216 to always fail with ENOSYS. Some functions are actually named
18217 something starting with __ and the normal name is an alias. */
18218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18219 choke me
18220 #else
18221 char (*f) () = $ac_func;
18222 #endif
18223 #ifdef __cplusplus
18224 }
18225 #endif
18226
18227 int
18228 main ()
18229 {
18230 return f != $ac_func;
18231 ;
18232 return 0;
18233 }
18234 _ACEOF
18235 rm -f conftest.$ac_objext conftest$ac_exeext
18236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18237 (eval $ac_link) 2>conftest.er1
18238 ac_status=$?
18239 grep -v '^ *+' conftest.er1 >conftest.err
18240 rm -f conftest.er1
18241 cat conftest.err >&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } &&
18244 { ac_try='test -z "$ac_c_werror_flag"
18245 || test ! -s conftest.err'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; } &&
18251 { ac_try='test -s conftest$ac_exeext'
18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253 (eval $ac_try) 2>&5
18254 ac_status=$?
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; }; then
18257 eval "$as_ac_var=yes"
18258 else
18259 echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.$ac_ext >&5
18261
18262 eval "$as_ac_var=no"
18263 fi
18264 rm -f conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18266 fi
18267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18269 if test `eval echo '${'$as_ac_var'}'` = yes; then
18270 cat >>confdefs.h <<_ACEOF
18271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18272 _ACEOF
18273
18274 fi
18275 done
18276
18277
18278 for ac_func in wborder
18279 do
18280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18281 echo "$as_me:$LINENO: checking for $ac_func" >&5
18282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18283 if eval "test \"\${$as_ac_var+set}\" = set"; then
18284 echo $ECHO_N "(cached) $ECHO_C" >&6
18285 else
18286 cat >conftest.$ac_ext <<_ACEOF
18287 /* confdefs.h. */
18288 _ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h. */
18292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18294 #define $ac_func innocuous_$ac_func
18295
18296 /* System header to define __stub macros and hopefully few prototypes,
18297 which can conflict with char $ac_func (); below.
18298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18299 <limits.h> exists even on freestanding compilers. */
18300
18301 #ifdef __STDC__
18302 # include <limits.h>
18303 #else
18304 # include <assert.h>
18305 #endif
18306
18307 #undef $ac_func
18308
18309 /* Override any gcc2 internal prototype to avoid an error. */
18310 #ifdef __cplusplus
18311 extern "C"
18312 {
18313 #endif
18314 /* We use char because int might match the return type of a gcc2
18315 builtin and then its argument prototype would still apply. */
18316 char $ac_func ();
18317 /* The GNU C library defines this for functions which it implements
18318 to always fail with ENOSYS. Some functions are actually named
18319 something starting with __ and the normal name is an alias. */
18320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18321 choke me
18322 #else
18323 char (*f) () = $ac_func;
18324 #endif
18325 #ifdef __cplusplus
18326 }
18327 #endif
18328
18329 int
18330 main ()
18331 {
18332 return f != $ac_func;
18333 ;
18334 return 0;
18335 }
18336 _ACEOF
18337 rm -f conftest.$ac_objext conftest$ac_exeext
18338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18339 (eval $ac_link) 2>conftest.er1
18340 ac_status=$?
18341 grep -v '^ *+' conftest.er1 >conftest.err
18342 rm -f conftest.er1
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } &&
18346 { ac_try='test -z "$ac_c_werror_flag"
18347 || test ! -s conftest.err'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; } &&
18353 { ac_try='test -s conftest$ac_exeext'
18354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355 (eval $ac_try) 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; }; then
18359 eval "$as_ac_var=yes"
18360 else
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18363
18364 eval "$as_ac_var=no"
18365 fi
18366 rm -f conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18368 fi
18369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18371 if test `eval echo '${'$as_ac_var'}'` = yes; then
18372 cat >>confdefs.h <<_ACEOF
18373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18374 _ACEOF
18375
18376 fi
18377 done
18378
18379
18380 # Check the return and argument types of ptrace. No canned test for
18381 # this, so roll our own.
18382 gdb_ptrace_headers='
18383 #if HAVE_SYS_TYPES_H
18384 # include <sys/types.h>
18385 #endif
18386 #if HAVE_SYS_PTRACE_H
18387 # include <sys/ptrace.h>
18388 #endif
18389 #if HAVE_UNISTD_H
18390 # include <unistd.h>
18391 #endif
18392 '
18393 # There is no point in checking if we don't have a prototype.
18394 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
18395 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
18396 if test "${ac_cv_have_decl_ptrace+set}" = set; then
18397 echo $ECHO_N "(cached) $ECHO_C" >&6
18398 else
18399 cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h. */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18405 $gdb_ptrace_headers
18406
18407 int
18408 main ()
18409 {
18410 #ifndef ptrace
18411 char *p = (char *) ptrace;
18412 #endif
18413
18414 ;
18415 return 0;
18416 }
18417 _ACEOF
18418 rm -f conftest.$ac_objext
18419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18420 (eval $ac_compile) 2>conftest.er1
18421 ac_status=$?
18422 grep -v '^ *+' conftest.er1 >conftest.err
18423 rm -f conftest.er1
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } &&
18427 { ac_try='test -z "$ac_c_werror_flag"
18428 || test ! -s conftest.err'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; } &&
18434 { ac_try='test -s conftest.$ac_objext'
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18440 ac_cv_have_decl_ptrace=yes
18441 else
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18444
18445 ac_cv_have_decl_ptrace=no
18446 fi
18447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18448 fi
18449 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
18450 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
18451 if test $ac_cv_have_decl_ptrace = yes; then
18452
18453 cat >>confdefs.h <<_ACEOF
18454 #define HAVE_DECL_PTRACE 1
18455 _ACEOF
18456
18457
18458 else
18459 cat >>confdefs.h <<_ACEOF
18460 #define HAVE_DECL_PTRACE 0
18461 _ACEOF
18462
18463
18464 : ${gdb_cv_func_ptrace_ret='int'}
18465 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18466
18467 fi
18468
18469
18470 # Check return type.
18471 echo "$as_me:$LINENO: checking return type of ptrace" >&5
18472 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
18473 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 else
18476 cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h. */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18482 $gdb_ptrace_headers
18483 int
18484 main ()
18485 {
18486 extern int ptrace ();
18487 ;
18488 return 0;
18489 }
18490 _ACEOF
18491 rm -f conftest.$ac_objext
18492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18493 (eval $ac_compile) 2>conftest.er1
18494 ac_status=$?
18495 grep -v '^ *+' conftest.er1 >conftest.err
18496 rm -f conftest.er1
18497 cat conftest.err >&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } &&
18500 { ac_try='test -z "$ac_c_werror_flag"
18501 || test ! -s conftest.err'
18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503 (eval $ac_try) 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; } &&
18507 { ac_try='test -s conftest.$ac_objext'
18508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509 (eval $ac_try) 2>&5
18510 ac_status=$?
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; }; then
18513 gdb_cv_func_ptrace_ret='int'
18514 else
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18517
18518 gdb_cv_func_ptrace_ret='long'
18519 fi
18520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18521 fi
18522 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
18523 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
18524
18525 cat >>confdefs.h <<_ACEOF
18526 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
18527 _ACEOF
18528
18529 # Check argument types.
18530 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
18531 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
18532 if test "${gdb_cv_func_ptrace_args+set}" = set; then
18533 echo $ECHO_N "(cached) $ECHO_C" >&6
18534 else
18535
18536 for gdb_arg1 in 'int' 'long'; do
18537 for gdb_arg2 in 'pid_t' 'int' 'long'; do
18538 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
18539 for gdb_arg4 in 'int' 'long'; do
18540 cat >conftest.$ac_ext <<_ACEOF
18541 /* confdefs.h. */
18542 _ACEOF
18543 cat confdefs.h >>conftest.$ac_ext
18544 cat >>conftest.$ac_ext <<_ACEOF
18545 /* end confdefs.h. */
18546 $gdb_ptrace_headers
18547 int
18548 main ()
18549 {
18550
18551 extern $gdb_cv_func_ptrace_ret
18552 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18553
18554 ;
18555 return 0;
18556 }
18557 _ACEOF
18558 rm -f conftest.$ac_objext
18559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18560 (eval $ac_compile) 2>conftest.er1
18561 ac_status=$?
18562 grep -v '^ *+' conftest.er1 >conftest.err
18563 rm -f conftest.er1
18564 cat conftest.err >&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } &&
18567 { ac_try='test -z "$ac_c_werror_flag"
18568 || test ! -s conftest.err'
18569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570 (eval $ac_try) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); }; } &&
18574 { ac_try='test -s conftest.$ac_objext'
18575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576 (eval $ac_try) 2>&5
18577 ac_status=$?
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; }; then
18580 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18581 break 4;
18582 else
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18585
18586 fi
18587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18588 for gdb_arg5 in 'int *' 'int' 'long'; do
18589 cat >conftest.$ac_ext <<_ACEOF
18590 /* confdefs.h. */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18595 $gdb_ptrace_headers
18596 int
18597 main ()
18598 {
18599
18600 extern $gdb_cv_func_ptrace_ret
18601 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18602
18603 ;
18604 return 0;
18605 }
18606 _ACEOF
18607 rm -f conftest.$ac_objext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18609 (eval $ac_compile) 2>conftest.er1
18610 ac_status=$?
18611 grep -v '^ *+' conftest.er1 >conftest.err
18612 rm -f conftest.er1
18613 cat conftest.err >&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } &&
18616 { ac_try='test -z "$ac_c_werror_flag"
18617 || test ! -s conftest.err'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; } &&
18623 { ac_try='test -s conftest.$ac_objext'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; }; then
18629
18630 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18631 break 5;
18632 else
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18635
18636 fi
18637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18638 done
18639 done
18640 done
18641 done
18642 done
18643 # Provide a safe default value.
18644 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18645
18646 fi
18647 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18648 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
18649 ac_save_IFS=$IFS; IFS=','
18650 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18651 IFS=$ac_save_IFS
18652 shift
18653
18654 cat >>confdefs.h <<_ACEOF
18655 #define PTRACE_TYPE_ARG3 $3
18656 _ACEOF
18657
18658 if test -n "$5"; then
18659
18660 cat >>confdefs.h <<_ACEOF
18661 #define PTRACE_TYPE_ARG5 $5
18662 _ACEOF
18663
18664 fi
18665
18666 if test "$cross_compiling" = no; then
18667 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18668 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18669 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672 if test "$cross_compiling" = yes; then
18673 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18674 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18675 { (exit 1); exit 1; }; }
18676 else
18677 cat >conftest.$ac_ext <<_ACEOF
18678 /* confdefs.h. */
18679 _ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18683 #if HAVE_UNISTD_H
18684 # include <unistd.h>
18685 #endif
18686
18687 int
18688 main ()
18689 {
18690 /* If this system has a BSD-style setpgrp which takes arguments,
18691 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18692 exit successfully. */
18693 exit (setpgrp (1,1) == -1 ? 0 : 1);
18694 ;
18695 return 0;
18696 }
18697 _ACEOF
18698 rm -f conftest$ac_exeext
18699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18700 (eval $ac_link) 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18706 ac_status=$?
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; }; then
18709 ac_cv_func_setpgrp_void=no
18710 else
18711 echo "$as_me: program exited with status $ac_status" >&5
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715 ( exit $ac_status )
18716 ac_cv_func_setpgrp_void=yes
18717 fi
18718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18719 fi
18720 fi
18721 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18722 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18723 if test $ac_cv_func_setpgrp_void = yes; then
18724
18725 cat >>confdefs.h <<\_ACEOF
18726 #define SETPGRP_VOID 1
18727 _ACEOF
18728
18729 fi
18730
18731 else
18732 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18733 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18734 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18735 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 else
18737 cat >conftest.$ac_ext <<_ACEOF
18738 /* confdefs.h. */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743
18744 #include <unistd.h>
18745
18746 int
18747 main ()
18748 {
18749
18750 if (setpgrp(1,1) == -1)
18751 exit (0);
18752 else
18753 exit (1);
18754
18755 ;
18756 return 0;
18757 }
18758 _ACEOF
18759 rm -f conftest.$ac_objext
18760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18761 (eval $ac_compile) 2>conftest.er1
18762 ac_status=$?
18763 grep -v '^ *+' conftest.er1 >conftest.err
18764 rm -f conftest.er1
18765 cat conftest.err >&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); } &&
18768 { ac_try='test -z "$ac_c_werror_flag"
18769 || test ! -s conftest.err'
18770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771 (eval $ac_try) 2>&5
18772 ac_status=$?
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; } &&
18775 { ac_try='test -s conftest.$ac_objext'
18776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777 (eval $ac_try) 2>&5
18778 ac_status=$?
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; }; then
18781 ac_cv_func_setpgrp_void=no
18782 else
18783 echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18785
18786 ac_cv_func_setpgrp_void=yes
18787 fi
18788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18789 fi
18790 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18791 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18792 if test $ac_cv_func_setpgrp_void = yes; then
18793 cat >>confdefs.h <<\_ACEOF
18794 #define SETPGRP_VOID 1
18795 _ACEOF
18796
18797 fi
18798 fi
18799
18800 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
18801 # since sigsetjmp might only be defined as a macro.
18802 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18803 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
18804 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 else
18807 cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h. */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18813
18814 #include <setjmp.h>
18815
18816 int
18817 main ()
18818 {
18819 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
18820 ;
18821 return 0;
18822 }
18823 _ACEOF
18824 rm -f conftest.$ac_objext
18825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18826 (eval $ac_compile) 2>conftest.er1
18827 ac_status=$?
18828 grep -v '^ *+' conftest.er1 >conftest.err
18829 rm -f conftest.er1
18830 cat conftest.err >&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); } &&
18833 { ac_try='test -z "$ac_c_werror_flag"
18834 || test ! -s conftest.err'
18835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 (eval $ac_try) 2>&5
18837 ac_status=$?
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; } &&
18840 { ac_try='test -s conftest.$ac_objext'
18841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 (eval $ac_try) 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; }; then
18846 gdb_cv_func_sigsetjmp=yes
18847 else
18848 echo "$as_me: failed program was:" >&5
18849 sed 's/^/| /' conftest.$ac_ext >&5
18850
18851 gdb_cv_func_sigsetjmp=no
18852 fi
18853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18854 fi
18855 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18856 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
18857 if test $gdb_cv_func_sigsetjmp = yes; then
18858
18859 cat >>confdefs.h <<\_ACEOF
18860 #define HAVE_SIGSETJMP 1
18861 _ACEOF
18862
18863 fi
18864
18865 # Assume we'll default to using the included libiberty regex.
18866 gdb_use_included_regex=yes
18867
18868 # However, if the system regex is GNU regex, then default to *not*
18869 # using the included regex.
18870 echo "$as_me:$LINENO: checking for GNU regex" >&5
18871 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
18872 if test "${gdb_cv_have_gnu_regex+set}" = set; then
18873 echo $ECHO_N "(cached) $ECHO_C" >&6
18874 else
18875 cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h. */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18881 #include <gnu-versions.h>
18882 int
18883 main ()
18884 {
18885 #define REGEX_INTERFACE_VERSION 1
18886 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18887 # error "Version mismatch"
18888 #endif
18889 ;
18890 return 0;
18891 }
18892 _ACEOF
18893 rm -f conftest.$ac_objext
18894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18895 (eval $ac_compile) 2>conftest.er1
18896 ac_status=$?
18897 grep -v '^ *+' conftest.er1 >conftest.err
18898 rm -f conftest.er1
18899 cat conftest.err >&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } &&
18902 { ac_try='test -z "$ac_c_werror_flag"
18903 || test ! -s conftest.err'
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; } &&
18909 { ac_try='test -s conftest.$ac_objext'
18910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911 (eval $ac_try) 2>&5
18912 ac_status=$?
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18915 gdb_cv_have_gnu_regex=yes
18916 else
18917 echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.$ac_ext >&5
18919
18920 gdb_cv_have_gnu_regex=no
18921 fi
18922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18923 fi
18924 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18925 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
18926 if test $gdb_cv_have_gnu_regex = yes; then
18927 gdb_use_included_regex=no
18928 fi
18929
18930
18931 # Check whether --with-included-regex or --without-included-regex was given.
18932 if test "${with_included_regex+set}" = set; then
18933 withval="$with_included_regex"
18934 gdb_with_regex=$withval
18935 else
18936 gdb_with_regex=$gdb_use_included_regex
18937 fi;
18938 if test "$gdb_with_regex" = yes; then
18939
18940 cat >>confdefs.h <<\_ACEOF
18941 #define USE_INCLUDED_REGEX 1
18942 _ACEOF
18943
18944 fi
18945
18946 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
18947 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18948 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
18949 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18951 else
18952 cat >conftest.$ac_ext <<_ACEOF
18953 /* confdefs.h. */
18954 _ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h. */
18958 #include <sys/param.h>
18959 #include <sys/proc.h>
18960
18961
18962 int
18963 main ()
18964 {
18965 static struct thread ac_aggr;
18966 if (ac_aggr.td_pcb)
18967 return 0;
18968 ;
18969 return 0;
18970 }
18971 _ACEOF
18972 rm -f conftest.$ac_objext
18973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18974 (eval $ac_compile) 2>conftest.er1
18975 ac_status=$?
18976 grep -v '^ *+' conftest.er1 >conftest.err
18977 rm -f conftest.er1
18978 cat conftest.err >&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } &&
18981 { ac_try='test -z "$ac_c_werror_flag"
18982 || test ! -s conftest.err'
18983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984 (eval $ac_try) 2>&5
18985 ac_status=$?
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; } &&
18988 { ac_try='test -s conftest.$ac_objext'
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18994 ac_cv_member_struct_thread_td_pcb=yes
18995 else
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18998
18999 cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h. */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19005 #include <sys/param.h>
19006 #include <sys/proc.h>
19007
19008
19009 int
19010 main ()
19011 {
19012 static struct thread ac_aggr;
19013 if (sizeof ac_aggr.td_pcb)
19014 return 0;
19015 ;
19016 return 0;
19017 }
19018 _ACEOF
19019 rm -f conftest.$ac_objext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19021 (eval $ac_compile) 2>conftest.er1
19022 ac_status=$?
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_c_werror_flag"
19029 || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest.$ac_objext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 ac_cv_member_struct_thread_td_pcb=yes
19042 else
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19045
19046 ac_cv_member_struct_thread_td_pcb=no
19047 fi
19048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19049 fi
19050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19051 fi
19052 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
19053 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
19054 if test $ac_cv_member_struct_thread_td_pcb = yes; then
19055
19056 cat >>confdefs.h <<_ACEOF
19057 #define HAVE_STRUCT_THREAD_TD_PCB 1
19058 _ACEOF
19059
19060
19061 fi
19062
19063
19064 # See if <sys/lwp.h> defines `struct lwp`.
19065 echo "$as_me:$LINENO: checking for struct lwp" >&5
19066 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
19067 if test "${gdb_cv_struct_lwp+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h. */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076 #include <sys/param.h>
19077 #include <sys/lwp.h>
19078 int
19079 main ()
19080 {
19081 struct lwp l;
19082 ;
19083 return 0;
19084 }
19085 _ACEOF
19086 rm -f conftest.$ac_objext
19087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19088 (eval $ac_compile) 2>conftest.er1
19089 ac_status=$?
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } &&
19095 { ac_try='test -z "$ac_c_werror_flag"
19096 || test ! -s conftest.err'
19097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098 (eval $ac_try) 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; } &&
19102 { ac_try='test -s conftest.$ac_objext'
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; }; then
19108 gdb_cv_struct_lwp=yes
19109 else
19110 echo "$as_me: failed program was:" >&5
19111 sed 's/^/| /' conftest.$ac_ext >&5
19112
19113 gdb_cv_struct_lwp=no
19114 fi
19115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19116 fi
19117 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
19118 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
19119 if test $gdb_cv_struct_lwp = yes; then
19120
19121 cat >>confdefs.h <<\_ACEOF
19122 #define HAVE_STRUCT_LWP 1
19123 _ACEOF
19124
19125 fi
19126
19127 # See if <machine/reg.h> degines `struct reg'.
19128 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
19129 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
19130 if test "${gdb_cv_struct_reg+set}" = set; then
19131 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 else
19133 cat >conftest.$ac_ext <<_ACEOF
19134 /* confdefs.h. */
19135 _ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h. */
19139 #include <sys/types.h>
19140 #include <machine/reg.h>
19141 int
19142 main ()
19143 {
19144 struct reg r;
19145 ;
19146 return 0;
19147 }
19148 _ACEOF
19149 rm -f conftest.$ac_objext
19150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19151 (eval $ac_compile) 2>conftest.er1
19152 ac_status=$?
19153 grep -v '^ *+' conftest.er1 >conftest.err
19154 rm -f conftest.er1
19155 cat conftest.err >&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } &&
19158 { ac_try='test -z "$ac_c_werror_flag"
19159 || test ! -s conftest.err'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19162 ac_status=$?
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; } &&
19165 { ac_try='test -s conftest.$ac_objext'
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19168 ac_status=$?
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; }; then
19171 gdb_cv_struct_reg=yes
19172 else
19173 echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19175
19176 gdb_cv_struct_reg=no
19177 fi
19178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19179 fi
19180 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
19181 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
19182 if test $gdb_cv_struct_reg = yes; then
19183
19184 cat >>confdefs.h <<\_ACEOF
19185 #define HAVE_STRUCT_REG 1
19186 _ACEOF
19187
19188 fi
19189
19190 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
19191 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
19192 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
19193 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
19194 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
19195 echo $ECHO_N "(cached) $ECHO_C" >&6
19196 else
19197 cat >conftest.$ac_ext <<_ACEOF
19198 /* confdefs.h. */
19199 _ACEOF
19200 cat confdefs.h >>conftest.$ac_ext
19201 cat >>conftest.$ac_ext <<_ACEOF
19202 /* end confdefs.h. */
19203 #include <machine/reg.h>
19204
19205 int
19206 main ()
19207 {
19208 static struct reg ac_aggr;
19209 if (ac_aggr.r_fs)
19210 return 0;
19211 ;
19212 return 0;
19213 }
19214 _ACEOF
19215 rm -f conftest.$ac_objext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19217 (eval $ac_compile) 2>conftest.er1
19218 ac_status=$?
19219 grep -v '^ *+' conftest.er1 >conftest.err
19220 rm -f conftest.er1
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try='test -z "$ac_c_werror_flag"
19225 || test ! -s conftest.err'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19228 ac_status=$?
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; } &&
19231 { ac_try='test -s conftest.$ac_objext'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 ac_cv_member_struct_reg_r_fs=yes
19238 else
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19241
19242 cat >conftest.$ac_ext <<_ACEOF
19243 /* confdefs.h. */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 #include <machine/reg.h>
19249
19250 int
19251 main ()
19252 {
19253 static struct reg ac_aggr;
19254 if (sizeof ac_aggr.r_fs)
19255 return 0;
19256 ;
19257 return 0;
19258 }
19259 _ACEOF
19260 rm -f conftest.$ac_objext
19261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19262 (eval $ac_compile) 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } &&
19269 { ac_try='test -z "$ac_c_werror_flag"
19270 || test ! -s conftest.err'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; } &&
19276 { ac_try='test -s conftest.$ac_objext'
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; }; then
19282 ac_cv_member_struct_reg_r_fs=yes
19283 else
19284 echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19286
19287 ac_cv_member_struct_reg_r_fs=no
19288 fi
19289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19290 fi
19291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19292 fi
19293 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
19294 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
19295 if test $ac_cv_member_struct_reg_r_fs = yes; then
19296
19297 cat >>confdefs.h <<_ACEOF
19298 #define HAVE_STRUCT_REG_R_FS 1
19299 _ACEOF
19300
19301
19302 fi
19303 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
19304 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
19305 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
19306 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 else
19308 cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h. */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19314 #include <machine/reg.h>
19315
19316 int
19317 main ()
19318 {
19319 static struct reg ac_aggr;
19320 if (ac_aggr.r_gs)
19321 return 0;
19322 ;
19323 return 0;
19324 }
19325 _ACEOF
19326 rm -f conftest.$ac_objext
19327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19328 (eval $ac_compile) 2>conftest.er1
19329 ac_status=$?
19330 grep -v '^ *+' conftest.er1 >conftest.err
19331 rm -f conftest.er1
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -z "$ac_c_werror_flag"
19336 || test ! -s conftest.err'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; } &&
19342 { ac_try='test -s conftest.$ac_objext'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; }; then
19348 ac_cv_member_struct_reg_r_gs=yes
19349 else
19350 echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19352
19353 cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h. */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19359 #include <machine/reg.h>
19360
19361 int
19362 main ()
19363 {
19364 static struct reg ac_aggr;
19365 if (sizeof ac_aggr.r_gs)
19366 return 0;
19367 ;
19368 return 0;
19369 }
19370 _ACEOF
19371 rm -f conftest.$ac_objext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373 (eval $ac_compile) 2>conftest.er1
19374 ac_status=$?
19375 grep -v '^ *+' conftest.er1 >conftest.err
19376 rm -f conftest.er1
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try='test -z "$ac_c_werror_flag"
19381 || test ! -s conftest.err'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest.$ac_objext'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_cv_member_struct_reg_r_gs=yes
19394 else
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19397
19398 ac_cv_member_struct_reg_r_gs=no
19399 fi
19400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19401 fi
19402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19403 fi
19404 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
19405 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
19406 if test $ac_cv_member_struct_reg_r_gs = yes; then
19407
19408 cat >>confdefs.h <<_ACEOF
19409 #define HAVE_STRUCT_REG_R_GS 1
19410 _ACEOF
19411
19412
19413 fi
19414
19415
19416 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
19417 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
19418 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
19419 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
19420 echo $ECHO_N "(cached) $ECHO_C" >&6
19421 else
19422 cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h. */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19428 #include <sys/ptrace.h>
19429 int
19430 main ()
19431 {
19432 PTRACE_GETREGS;
19433 ;
19434 return 0;
19435 }
19436 _ACEOF
19437 rm -f conftest.$ac_objext
19438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19439 (eval $ac_compile) 2>conftest.er1
19440 ac_status=$?
19441 grep -v '^ *+' conftest.er1 >conftest.err
19442 rm -f conftest.er1
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } &&
19446 { ac_try='test -z "$ac_c_werror_flag"
19447 || test ! -s conftest.err'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; } &&
19453 { ac_try='test -s conftest.$ac_objext'
19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19456 ac_status=$?
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; }; then
19459 gdb_cv_have_ptrace_getregs=yes
19460 else
19461 echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19463
19464 gdb_cv_have_ptrace_getregs=no
19465 fi
19466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19467 fi
19468
19469 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
19470 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
19471 if test $gdb_cv_have_ptrace_getregs = yes; then
19472
19473 cat >>confdefs.h <<\_ACEOF
19474 #define HAVE_PTRACE_GETREGS 1
19475 _ACEOF
19476
19477 fi
19478
19479 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
19480 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
19481 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
19482 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485 cat >conftest.$ac_ext <<_ACEOF
19486 /* confdefs.h. */
19487 _ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19491 #include <sys/ptrace.h>
19492 int
19493 main ()
19494 {
19495 PTRACE_GETFPXREGS;
19496 ;
19497 return 0;
19498 }
19499 _ACEOF
19500 rm -f conftest.$ac_objext
19501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19502 (eval $ac_compile) 2>conftest.er1
19503 ac_status=$?
19504 grep -v '^ *+' conftest.er1 >conftest.err
19505 rm -f conftest.er1
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } &&
19509 { ac_try='test -z "$ac_c_werror_flag"
19510 || test ! -s conftest.err'
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; } &&
19516 { ac_try='test -s conftest.$ac_objext'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; }; then
19522 gdb_cv_have_ptrace_getfpxregs=yes
19523 else
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19526
19527 gdb_cv_have_ptrace_getfpxregs=no
19528 fi
19529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19530 fi
19531
19532 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
19533 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
19534 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
19535
19536 cat >>confdefs.h <<\_ACEOF
19537 #define HAVE_PTRACE_GETFPXREGS 1
19538 _ACEOF
19539
19540 fi
19541
19542 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
19543 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19544 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
19545 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548 cat >conftest.$ac_ext <<_ACEOF
19549 /* confdefs.h. */
19550 _ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h. */
19554 #include <sys/types.h>
19555 #include <sys/ptrace.h>
19556 int
19557 main ()
19558 {
19559 PT_GETDBREGS;
19560 ;
19561 return 0;
19562 }
19563 _ACEOF
19564 rm -f conftest.$ac_objext
19565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19566 (eval $ac_compile) 2>conftest.er1
19567 ac_status=$?
19568 grep -v '^ *+' conftest.er1 >conftest.err
19569 rm -f conftest.er1
19570 cat conftest.err >&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } &&
19573 { ac_try='test -z "$ac_c_werror_flag"
19574 || test ! -s conftest.err'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; } &&
19580 { ac_try='test -s conftest.$ac_objext'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; }; then
19586 gdb_cv_have_pt_getdbregs=yes
19587 else
19588 echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19590
19591 gdb_cv_have_pt_getdbregs=no
19592 fi
19593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19594 fi
19595
19596 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19597 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
19598 if test $gdb_cv_have_pt_getdbregs = yes; then
19599
19600 cat >>confdefs.h <<\_ACEOF
19601 #define HAVE_PT_GETDBREGS 1
19602 _ACEOF
19603
19604 fi
19605
19606 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
19607 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19608 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
19609 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 else
19612 cat >conftest.$ac_ext <<_ACEOF
19613 /* confdefs.h. */
19614 _ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h. */
19618 #include <sys/types.h>
19619 #include <sys/ptrace.h>
19620 int
19621 main ()
19622 {
19623 PT_GETXMMREGS;
19624 ;
19625 return 0;
19626 }
19627 _ACEOF
19628 rm -f conftest.$ac_objext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19630 (eval $ac_compile) 2>conftest.er1
19631 ac_status=$?
19632 grep -v '^ *+' conftest.er1 >conftest.err
19633 rm -f conftest.er1
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } &&
19637 { ac_try='test -z "$ac_c_werror_flag"
19638 || test ! -s conftest.err'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; } &&
19644 { ac_try='test -s conftest.$ac_objext'
19645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 gdb_cv_have_pt_getxmmregs=yes
19651 else
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19654
19655 gdb_cv_have_pt_getxmmregs=no
19656 fi
19657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19658 fi
19659
19660 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19661 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
19662 if test $gdb_cv_have_pt_getxmmregs = yes; then
19663
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE_PT_GETXMMREGS 1
19666 _ACEOF
19667
19668 fi
19669
19670 # Detect which type of /proc is in use, such as for Unixware or Solaris.
19671
19672 if test "${target}" = "${host}"; then
19673 case "${host}" in
19674 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
19675
19676 cat >>confdefs.h <<\_ACEOF
19677 #define NEW_PROC_API 1
19678 _ACEOF
19679
19680 ;;
19681 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
19682
19683 cat >>confdefs.h <<\_ACEOF
19684 #define NEW_PROC_API 1
19685 _ACEOF
19686
19687 ;;
19688 mips-sgi-irix5*)
19689 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
19690
19691 cat >>confdefs.h <<\_ACEOF
19692 #define _KMEMUSER 1
19693 _ACEOF
19694
19695 ;;
19696 esac
19697 fi
19698
19699 if test "$ac_cv_header_sys_procfs_h" = yes; then
19700 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19701 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19702 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19704 else
19705 cat >conftest.$ac_ext <<_ACEOF
19706 /* confdefs.h. */
19707 _ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19711
19712 #define _SYSCALL32
19713 #include <sys/procfs.h>
19714 int
19715 main ()
19716 {
19717 pstatus_t avar
19718 ;
19719 return 0;
19720 }
19721 _ACEOF
19722 rm -f conftest.$ac_objext
19723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19724 (eval $ac_compile) 2>conftest.er1
19725 ac_status=$?
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } &&
19731 { ac_try='test -z "$ac_c_werror_flag"
19732 || test ! -s conftest.err'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; } &&
19738 { ac_try='test -s conftest.$ac_objext'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19745 else
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19748
19749 bfd_cv_have_sys_procfs_type_pstatus_t=no
19750
19751 fi
19752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19753 fi
19754
19755 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19756
19757 cat >>confdefs.h <<\_ACEOF
19758 #define HAVE_PSTATUS_T 1
19759 _ACEOF
19760
19761 fi
19762 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19763 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19764
19765 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
19766 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
19767 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 else
19770 cat >conftest.$ac_ext <<_ACEOF
19771 /* confdefs.h. */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19776
19777 #define _SYSCALL32
19778 #include <sys/procfs.h>
19779 int
19780 main ()
19781 {
19782 prrun_t avar
19783 ;
19784 return 0;
19785 }
19786 _ACEOF
19787 rm -f conftest.$ac_objext
19788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19789 (eval $ac_compile) 2>conftest.er1
19790 ac_status=$?
19791 grep -v '^ *+' conftest.er1 >conftest.err
19792 rm -f conftest.er1
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -z "$ac_c_werror_flag"
19797 || test ! -s conftest.err'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; } &&
19803 { ac_try='test -s conftest.$ac_objext'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; }; then
19809 bfd_cv_have_sys_procfs_type_prrun_t=yes
19810 else
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19813
19814 bfd_cv_have_sys_procfs_type_prrun_t=no
19815
19816 fi
19817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19818 fi
19819
19820 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
19821
19822 cat >>confdefs.h <<\_ACEOF
19823 #define HAVE_PRRUN_T 1
19824 _ACEOF
19825
19826 fi
19827 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19828 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
19829
19830 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19831 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
19832 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
19833 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 else
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h. */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841
19842 #define _SYSCALL32
19843 #include <sys/procfs.h>
19844 int
19845 main ()
19846 {
19847 gregset_t avar
19848 ;
19849 return 0;
19850 }
19851 _ACEOF
19852 rm -f conftest.$ac_objext
19853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19854 (eval $ac_compile) 2>conftest.er1
19855 ac_status=$?
19856 grep -v '^ *+' conftest.er1 >conftest.err
19857 rm -f conftest.er1
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } &&
19861 { ac_try='test -z "$ac_c_werror_flag"
19862 || test ! -s conftest.err'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; } &&
19868 { ac_try='test -s conftest.$ac_objext'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; }; then
19874 bfd_cv_have_sys_procfs_type_gregset_t=yes
19875 else
19876 echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19878
19879 bfd_cv_have_sys_procfs_type_gregset_t=no
19880
19881 fi
19882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19883 fi
19884
19885 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
19886
19887 cat >>confdefs.h <<\_ACEOF
19888 #define HAVE_GREGSET_T 1
19889 _ACEOF
19890
19891 fi
19892 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19893 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
19894
19895 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19896 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
19897 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 else
19900 cat >conftest.$ac_ext <<_ACEOF
19901 /* confdefs.h. */
19902 _ACEOF
19903 cat confdefs.h >>conftest.$ac_ext
19904 cat >>conftest.$ac_ext <<_ACEOF
19905 /* end confdefs.h. */
19906
19907 #define _SYSCALL32
19908 #include <sys/procfs.h>
19909 int
19910 main ()
19911 {
19912 fpregset_t avar
19913 ;
19914 return 0;
19915 }
19916 _ACEOF
19917 rm -f conftest.$ac_objext
19918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19919 (eval $ac_compile) 2>conftest.er1
19920 ac_status=$?
19921 grep -v '^ *+' conftest.er1 >conftest.err
19922 rm -f conftest.er1
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } &&
19926 { ac_try='test -z "$ac_c_werror_flag"
19927 || test ! -s conftest.err'
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; } &&
19933 { ac_try='test -s conftest.$ac_objext'
19934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935 (eval $ac_try) 2>&5
19936 ac_status=$?
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); }; }; then
19939 bfd_cv_have_sys_procfs_type_fpregset_t=yes
19940 else
19941 echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19943
19944 bfd_cv_have_sys_procfs_type_fpregset_t=no
19945
19946 fi
19947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19948 fi
19949
19950 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
19951
19952 cat >>confdefs.h <<\_ACEOF
19953 #define HAVE_FPREGSET_T 1
19954 _ACEOF
19955
19956 fi
19957 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19958 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
19959
19960 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19961 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
19962 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965 cat >conftest.$ac_ext <<_ACEOF
19966 /* confdefs.h. */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19971
19972 #define _SYSCALL32
19973 #include <sys/procfs.h>
19974 int
19975 main ()
19976 {
19977 prgregset_t avar
19978 ;
19979 return 0;
19980 }
19981 _ACEOF
19982 rm -f conftest.$ac_objext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19984 (eval $ac_compile) 2>conftest.er1
19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
19991 { ac_try='test -z "$ac_c_werror_flag"
19992 || test ! -s conftest.err'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } &&
19998 { ac_try='test -s conftest.$ac_objext'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20004 bfd_cv_have_sys_procfs_type_prgregset_t=yes
20005 else
20006 echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20008
20009 bfd_cv_have_sys_procfs_type_prgregset_t=no
20010
20011 fi
20012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20013 fi
20014
20015 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
20016
20017 cat >>confdefs.h <<\_ACEOF
20018 #define HAVE_PRGREGSET_T 1
20019 _ACEOF
20020
20021 fi
20022 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
20023 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
20024
20025 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
20026 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
20027 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20029 else
20030 cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h. */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20036
20037 #define _SYSCALL32
20038 #include <sys/procfs.h>
20039 int
20040 main ()
20041 {
20042 prfpregset_t avar
20043 ;
20044 return 0;
20045 }
20046 _ACEOF
20047 rm -f conftest.$ac_objext
20048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20049 (eval $ac_compile) 2>conftest.er1
20050 ac_status=$?
20051 grep -v '^ *+' conftest.er1 >conftest.err
20052 rm -f conftest.er1
20053 cat conftest.err >&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); } &&
20056 { ac_try='test -z "$ac_c_werror_flag"
20057 || test ! -s conftest.err'
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; } &&
20063 { ac_try='test -s conftest.$ac_objext'
20064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20065 (eval $ac_try) 2>&5
20066 ac_status=$?
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; }; then
20069 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
20070 else
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20073
20074 bfd_cv_have_sys_procfs_type_prfpregset_t=no
20075
20076 fi
20077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20078 fi
20079
20080 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
20081
20082 cat >>confdefs.h <<\_ACEOF
20083 #define HAVE_PRFPREGSET_T 1
20084 _ACEOF
20085
20086 fi
20087 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
20088 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
20089
20090 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
20091 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
20092 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 else
20095 cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h. */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101
20102 #define _SYSCALL32
20103 #include <sys/procfs.h>
20104 int
20105 main ()
20106 {
20107 prgregset32_t avar
20108 ;
20109 return 0;
20110 }
20111 _ACEOF
20112 rm -f conftest.$ac_objext
20113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20114 (eval $ac_compile) 2>conftest.er1
20115 ac_status=$?
20116 grep -v '^ *+' conftest.er1 >conftest.err
20117 rm -f conftest.er1
20118 cat conftest.err >&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } &&
20121 { ac_try='test -z "$ac_c_werror_flag"
20122 || test ! -s conftest.err'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; } &&
20128 { ac_try='test -s conftest.$ac_objext'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
20135 else
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20138
20139 bfd_cv_have_sys_procfs_type_prgregset32_t=no
20140
20141 fi
20142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20143 fi
20144
20145 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
20146
20147 cat >>confdefs.h <<\_ACEOF
20148 #define HAVE_PRGREGSET32_T 1
20149 _ACEOF
20150
20151 fi
20152 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
20153 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
20154
20155 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
20156 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
20157 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 else
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h. */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166
20167 #define _SYSCALL32
20168 #include <sys/procfs.h>
20169 int
20170 main ()
20171 {
20172 prfpregset32_t avar
20173 ;
20174 return 0;
20175 }
20176 _ACEOF
20177 rm -f conftest.$ac_objext
20178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20179 (eval $ac_compile) 2>conftest.er1
20180 ac_status=$?
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } &&
20186 { ac_try='test -z "$ac_c_werror_flag"
20187 || test ! -s conftest.err'
20188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189 (eval $ac_try) 2>&5
20190 ac_status=$?
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; } &&
20193 { ac_try='test -s conftest.$ac_objext'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20199 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
20200 else
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20203
20204 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
20205
20206 fi
20207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20208 fi
20209
20210 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
20211
20212 cat >>confdefs.h <<\_ACEOF
20213 #define HAVE_PRFPREGSET32_T 1
20214 _ACEOF
20215
20216 fi
20217 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
20218 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
20219
20220 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
20221 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
20222 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20224 else
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h. */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231
20232 #define _SYSCALL32
20233 #include <sys/procfs.h>
20234 int
20235 main ()
20236 {
20237 lwpid_t avar
20238 ;
20239 return 0;
20240 }
20241 _ACEOF
20242 rm -f conftest.$ac_objext
20243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20244 (eval $ac_compile) 2>conftest.er1
20245 ac_status=$?
20246 grep -v '^ *+' conftest.er1 >conftest.err
20247 rm -f conftest.er1
20248 cat conftest.err >&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); } &&
20251 { ac_try='test -z "$ac_c_werror_flag"
20252 || test ! -s conftest.err'
20253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254 (eval $ac_try) 2>&5
20255 ac_status=$?
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; } &&
20258 { ac_try='test -s conftest.$ac_objext'
20259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260 (eval $ac_try) 2>&5
20261 ac_status=$?
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); }; }; then
20264 bfd_cv_have_sys_procfs_type_lwpid_t=yes
20265 else
20266 echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20268
20269 bfd_cv_have_sys_procfs_type_lwpid_t=no
20270
20271 fi
20272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20273 fi
20274
20275 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
20276
20277 cat >>confdefs.h <<\_ACEOF
20278 #define HAVE_LWPID_T 1
20279 _ACEOF
20280
20281 fi
20282 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
20283 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
20284
20285 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
20286 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
20287 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290 cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h. */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296
20297 #define _SYSCALL32
20298 #include <sys/procfs.h>
20299 int
20300 main ()
20301 {
20302 psaddr_t avar
20303 ;
20304 return 0;
20305 }
20306 _ACEOF
20307 rm -f conftest.$ac_objext
20308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20309 (eval $ac_compile) 2>conftest.er1
20310 ac_status=$?
20311 grep -v '^ *+' conftest.er1 >conftest.err
20312 rm -f conftest.er1
20313 cat conftest.err >&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
20316 { ac_try='test -z "$ac_c_werror_flag"
20317 || test ! -s conftest.err'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try='test -s conftest.$ac_objext'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 bfd_cv_have_sys_procfs_type_psaddr_t=yes
20330 else
20331 echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20333
20334 bfd_cv_have_sys_procfs_type_psaddr_t=no
20335
20336 fi
20337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20338 fi
20339
20340 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
20341
20342 cat >>confdefs.h <<\_ACEOF
20343 #define HAVE_PSADDR_T 1
20344 _ACEOF
20345
20346 fi
20347 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
20348 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
20349
20350 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
20351 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
20352 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
20354 else
20355 cat >conftest.$ac_ext <<_ACEOF
20356 /* confdefs.h. */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h. */
20361
20362 #define _SYSCALL32
20363 #include <sys/procfs.h>
20364 int
20365 main ()
20366 {
20367 prsysent_t avar
20368 ;
20369 return 0;
20370 }
20371 _ACEOF
20372 rm -f conftest.$ac_objext
20373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20374 (eval $ac_compile) 2>conftest.er1
20375 ac_status=$?
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } &&
20381 { ac_try='test -z "$ac_c_werror_flag"
20382 || test ! -s conftest.err'
20383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20385 ac_status=$?
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; } &&
20388 { ac_try='test -s conftest.$ac_objext'
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20391 ac_status=$?
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; }; then
20394 bfd_cv_have_sys_procfs_type_prsysent_t=yes
20395 else
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20398
20399 bfd_cv_have_sys_procfs_type_prsysent_t=no
20400
20401 fi
20402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20403 fi
20404
20405 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
20406
20407 cat >>confdefs.h <<\_ACEOF
20408 #define HAVE_PRSYSENT_T 1
20409 _ACEOF
20410
20411 fi
20412 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
20413 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
20414
20415 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
20416 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
20417 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20419 else
20420 cat >conftest.$ac_ext <<_ACEOF
20421 /* confdefs.h. */
20422 _ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20426
20427 #define _SYSCALL32
20428 #include <sys/procfs.h>
20429 int
20430 main ()
20431 {
20432 pr_sigset_t avar
20433 ;
20434 return 0;
20435 }
20436 _ACEOF
20437 rm -f conftest.$ac_objext
20438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20439 (eval $ac_compile) 2>conftest.er1
20440 ac_status=$?
20441 grep -v '^ *+' conftest.er1 >conftest.err
20442 rm -f conftest.er1
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } &&
20446 { ac_try='test -z "$ac_c_werror_flag"
20447 || test ! -s conftest.err'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; } &&
20453 { ac_try='test -s conftest.$ac_objext'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20456 ac_status=$?
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; }; then
20459 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
20460 else
20461 echo "$as_me: failed program was:" >&5
20462 sed 's/^/| /' conftest.$ac_ext >&5
20463
20464 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
20465
20466 fi
20467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20468 fi
20469
20470 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
20471
20472 cat >>confdefs.h <<\_ACEOF
20473 #define HAVE_PR_SIGSET_T 1
20474 _ACEOF
20475
20476 fi
20477 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
20478 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
20479
20480 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
20481 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
20482 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20484 else
20485 cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h. */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491
20492 #define _SYSCALL32
20493 #include <sys/procfs.h>
20494 int
20495 main ()
20496 {
20497 pr_sigaction64_t avar
20498 ;
20499 return 0;
20500 }
20501 _ACEOF
20502 rm -f conftest.$ac_objext
20503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20504 (eval $ac_compile) 2>conftest.er1
20505 ac_status=$?
20506 grep -v '^ *+' conftest.er1 >conftest.err
20507 rm -f conftest.er1
20508 cat conftest.err >&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } &&
20511 { ac_try='test -z "$ac_c_werror_flag"
20512 || test ! -s conftest.err'
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; } &&
20518 { ac_try='test -s conftest.$ac_objext'
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20521 ac_status=$?
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; }; then
20524 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
20525 else
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
20530
20531 fi
20532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20533 fi
20534
20535 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
20536
20537 cat >>confdefs.h <<\_ACEOF
20538 #define HAVE_PR_SIGACTION64_T 1
20539 _ACEOF
20540
20541 fi
20542 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20543 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
20544
20545 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20546 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
20547 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20548 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 else
20550 cat >conftest.$ac_ext <<_ACEOF
20551 /* confdefs.h. */
20552 _ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h. */
20556
20557 #define _SYSCALL32
20558 #include <sys/procfs.h>
20559 int
20560 main ()
20561 {
20562 pr_siginfo64_t avar
20563 ;
20564 return 0;
20565 }
20566 _ACEOF
20567 rm -f conftest.$ac_objext
20568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20569 (eval $ac_compile) 2>conftest.er1
20570 ac_status=$?
20571 grep -v '^ *+' conftest.er1 >conftest.err
20572 rm -f conftest.er1
20573 cat conftest.err >&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); } &&
20576 { ac_try='test -z "$ac_c_werror_flag"
20577 || test ! -s conftest.err'
20578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579 (eval $ac_try) 2>&5
20580 ac_status=$?
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; } &&
20583 { ac_try='test -s conftest.$ac_objext'
20584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20585 (eval $ac_try) 2>&5
20586 ac_status=$?
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; }; then
20589 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20590 else
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20593
20594 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
20595
20596 fi
20597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20598 fi
20599
20600 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
20601
20602 cat >>confdefs.h <<\_ACEOF
20603 #define HAVE_PR_SIGINFO64_T 1
20604 _ACEOF
20605
20606 fi
20607 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20608 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
20609
20610
20611
20612
20613
20614 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
20615 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20616 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
20617 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620 if test "$cross_compiling" = yes; then
20621 gdb_cv_prfpregset_t_broken=yes
20622 else
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h. */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 #include <sys/procfs.h>
20630 int main ()
20631 {
20632 if (sizeof (prfpregset_t) == sizeof (void *))
20633 return 1;
20634 return 0;
20635 }
20636 _ACEOF
20637 rm -f conftest$ac_exeext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20639 (eval $ac_link) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20648 gdb_cv_prfpregset_t_broken=no
20649 else
20650 echo "$as_me: program exited with status $ac_status" >&5
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20653
20654 ( exit $ac_status )
20655 gdb_cv_prfpregset_t_broken=yes
20656 fi
20657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20658 fi
20659 fi
20660
20661 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20662 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
20663 if test $gdb_cv_prfpregset_t_broken = yes; then
20664
20665 cat >>confdefs.h <<\_ACEOF
20666 #define PRFPREGSET_T_BROKEN 1
20667 _ACEOF
20668
20669 fi
20670 fi
20671
20672
20673 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20674 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
20675 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 else
20678 cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h. */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 #include <unistd.h>
20685 #include <sys/types.h>
20686 #include <sys/procfs.h>
20687
20688 int
20689 main ()
20690 {
20691
20692 int dummy;;
20693 dummy = ioctl(0, PIOCSET, &dummy);
20694
20695 ;
20696 return 0;
20697 }
20698 _ACEOF
20699 rm -f conftest.$ac_objext
20700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20701 (eval $ac_compile) 2>conftest.er1
20702 ac_status=$?
20703 grep -v '^ *+' conftest.er1 >conftest.err
20704 rm -f conftest.er1
20705 cat conftest.err >&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } &&
20708 { ac_try='test -z "$ac_c_werror_flag"
20709 || test ! -s conftest.err'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; } &&
20715 { ac_try='test -s conftest.$ac_objext'
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; }; then
20721 gdb_cv_have_procfs_piocset=yes
20722 else
20723 echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20725
20726 gdb_cv_have_procfs_piocset=no
20727 fi
20728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20729 fi
20730
20731 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
20732 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
20733 if test $gdb_cv_have_procfs_piocset = yes; then
20734
20735 cat >>confdefs.h <<\_ACEOF
20736 #define HAVE_PROCFS_PIOCSET 1
20737 _ACEOF
20738
20739 fi
20740 fi
20741
20742 if test ${host} = ${target} ; then
20743
20744 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
20745 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
20746 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20748 else
20749 cat >conftest.$ac_ext <<_ACEOF
20750 /* confdefs.h. */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20755 #include <link.h>
20756 int
20757 main ()
20758 {
20759 struct link_map lm; (void) lm.l_addr;
20760 ;
20761 return 0;
20762 }
20763 _ACEOF
20764 rm -f conftest.$ac_objext
20765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20766 (eval $ac_compile) 2>conftest.er1
20767 ac_status=$?
20768 grep -v '^ *+' conftest.er1 >conftest.err
20769 rm -f conftest.er1
20770 cat conftest.err >&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
20773 { ac_try='test -z "$ac_c_werror_flag"
20774 || test ! -s conftest.err'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; } &&
20780 { ac_try='test -s conftest.$ac_objext'
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20783 ac_status=$?
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; }; then
20786 gdb_cv_have_struct_link_map_with_l_members=yes
20787 else
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20790
20791 gdb_cv_have_struct_link_map_with_l_members=no
20792 fi
20793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20794 fi
20795
20796 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
20797 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
20798 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
20799
20800 cat >>confdefs.h <<\_ACEOF
20801 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
20802 _ACEOF
20803
20804 fi
20805
20806
20807 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20808 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
20809 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
20811 else
20812 cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h. */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20818 #include <sys/types.h>
20819 #include <link.h>
20820 int
20821 main ()
20822 {
20823 struct link_map lm; (void) lm.lm_addr;
20824 ;
20825 return 0;
20826 }
20827 _ACEOF
20828 rm -f conftest.$ac_objext
20829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20830 (eval $ac_compile) 2>conftest.er1
20831 ac_status=$?
20832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
20837 { ac_try='test -z "$ac_c_werror_flag"
20838 || test ! -s conftest.err'
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; } &&
20844 { ac_try='test -s conftest.$ac_objext'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 gdb_cv_have_struct_link_map_with_lm_members=yes
20851 else
20852 echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855 gdb_cv_have_struct_link_map_with_lm_members=no
20856 fi
20857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20858 fi
20859
20860 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20861 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
20862 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
20863
20864 cat >>confdefs.h <<\_ACEOF
20865 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
20866 _ACEOF
20867
20868 fi
20869
20870
20871 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20872 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
20873 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20875 else
20876 cat >conftest.$ac_ext <<_ACEOF
20877 /* confdefs.h. */
20878 _ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20882 #include <sys/types.h>
20883 #ifdef HAVE_NLIST_H
20884 #include <nlist.h>
20885 #endif
20886 #include <link.h>
20887 int
20888 main ()
20889 {
20890 struct so_map lm; (void) lm.som_addr;
20891 ;
20892 return 0;
20893 }
20894 _ACEOF
20895 rm -f conftest.$ac_objext
20896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20897 (eval $ac_compile) 2>conftest.er1
20898 ac_status=$?
20899 grep -v '^ *+' conftest.er1 >conftest.err
20900 rm -f conftest.er1
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } &&
20904 { ac_try='test -z "$ac_c_werror_flag"
20905 || test ! -s conftest.err'
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20908 ac_status=$?
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; } &&
20911 { ac_try='test -s conftest.$ac_objext'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20914 ac_status=$?
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; }; then
20917 gdb_cv_have_struct_so_map_with_som_members=yes
20918 else
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20921
20922 gdb_cv_have_struct_so_map_with_som_members=no
20923 fi
20924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20925 fi
20926
20927 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20928 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
20929 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
20930
20931 cat >>confdefs.h <<\_ACEOF
20932 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
20933 _ACEOF
20934
20935 fi
20936
20937
20938 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20939 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
20940 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943 cat >conftest.$ac_ext <<_ACEOF
20944 /* confdefs.h. */
20945 _ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h. */
20949 #define _SYSCALL32
20950 #include <sys/link.h>
20951 int
20952 main ()
20953 {
20954 struct link_map32 l;
20955 ;
20956 return 0;
20957 }
20958 _ACEOF
20959 rm -f conftest.$ac_objext
20960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20961 (eval $ac_compile) 2>conftest.er1
20962 ac_status=$?
20963 grep -v '^ *+' conftest.er1 >conftest.err
20964 rm -f conftest.er1
20965 cat conftest.err >&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } &&
20968 { ac_try='test -z "$ac_c_werror_flag"
20969 || test ! -s conftest.err'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } &&
20975 { ac_try='test -s conftest.$ac_objext'
20976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977 (eval $ac_try) 2>&5
20978 ac_status=$?
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; }; then
20981 gdb_cv_have_struct_link_map32=yes
20982 else
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20985
20986 gdb_cv_have_struct_link_map32=no
20987 fi
20988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20989 fi
20990
20991 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20992 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
20993 if test $gdb_cv_have_struct_link_map32 = yes; then
20994
20995 cat >>confdefs.h <<\_ACEOF
20996 #define HAVE_STRUCT_LINK_MAP32 1
20997 _ACEOF
20998
20999
21000 cat >>confdefs.h <<\_ACEOF
21001 #define _SYSCALL32 1
21002 _ACEOF
21003
21004 fi
21005 fi
21006
21007 # Check if the compiler supports the `long long' type.
21008
21009 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
21010 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
21011 if test "${gdb_cv_c_long_long+set}" = set; then
21012 echo $ECHO_N "(cached) $ECHO_C" >&6
21013 else
21014 cat >conftest.$ac_ext <<_ACEOF
21015 /* confdefs.h. */
21016 _ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 extern long long foo;
21021 int
21022 main ()
21023 {
21024 switch (foo & 2) { case 0: return 1; }
21025 ;
21026 return 0;
21027 }
21028 _ACEOF
21029 rm -f conftest.$ac_objext
21030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21031 (eval $ac_compile) 2>conftest.er1
21032 ac_status=$?
21033 grep -v '^ *+' conftest.er1 >conftest.err
21034 rm -f conftest.er1
21035 cat conftest.err >&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } &&
21038 { ac_try='test -z "$ac_c_werror_flag"
21039 || test ! -s conftest.err'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; } &&
21045 { ac_try='test -s conftest.$ac_objext'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21048 ac_status=$?
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; }; then
21051 gdb_cv_c_long_long=yes
21052 else
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056 gdb_cv_c_long_long=no
21057 fi
21058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21059 fi
21060 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
21061 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
21062 if test $gdb_cv_c_long_long = yes; then
21063
21064 cat >>confdefs.h <<\_ACEOF
21065 #define CC_HAS_LONG_LONG 1
21066 _ACEOF
21067
21068 fi
21069
21070 # Check if the compiler and runtime support printing long longs.
21071
21072 echo "$as_me:$LINENO: checking for long long support in printf" >&5
21073 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
21074 if test "${gdb_cv_printf_has_long_long+set}" = set; then
21075 echo $ECHO_N "(cached) $ECHO_C" >&6
21076 else
21077 if test "$cross_compiling" = yes; then
21078 gdb_cv_printf_has_long_long=no
21079 else
21080 cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h. */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 $ac_includes_default
21087 int
21088 main ()
21089 {
21090 char buf[32];
21091 long long l = 0;
21092 l = (l << 16) + 0x0123;
21093 l = (l << 16) + 0x4567;
21094 l = (l << 16) + 0x89ab;
21095 l = (l << 16) + 0xcdef;
21096 sprintf (buf, "0x%016llx", l);
21097 return (strcmp ("0x0123456789abcdef", buf));
21098 ;
21099 return 0;
21100 }
21101 _ACEOF
21102 rm -f conftest$ac_exeext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21104 (eval $ac_link) 2>&5
21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21110 ac_status=$?
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; }; then
21113 gdb_cv_printf_has_long_long=yes
21114 else
21115 echo "$as_me: program exited with status $ac_status" >&5
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21118
21119 ( exit $ac_status )
21120 gdb_cv_printf_has_long_long=no
21121 fi
21122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21123 fi
21124 fi
21125 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
21126 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
21127 if test $gdb_cv_printf_has_long_long = yes; then
21128
21129 cat >>confdefs.h <<\_ACEOF
21130 #define PRINTF_HAS_LONG_LONG 1
21131 _ACEOF
21132
21133 fi
21134
21135 # Check if the compiler supports the `long double' type. We can't use
21136 # AC_C_LONG_DOUBLE because that one does additional checks on the
21137 # constants defined in <float.h> that fail on some systems,
21138 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
21139
21140 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
21141 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
21142 if test "${gdb_cv_c_long_double+set}" = set; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 else
21145 cat >conftest.$ac_ext <<_ACEOF
21146 /* confdefs.h. */
21147 _ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21151 long double foo;
21152 _ACEOF
21153 rm -f conftest.$ac_objext
21154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21155 (eval $ac_compile) 2>conftest.er1
21156 ac_status=$?
21157 grep -v '^ *+' conftest.er1 >conftest.err
21158 rm -f conftest.er1
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } &&
21162 { ac_try='test -z "$ac_c_werror_flag"
21163 || test ! -s conftest.err'
21164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21165 (eval $ac_try) 2>&5
21166 ac_status=$?
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); }; } &&
21169 { ac_try='test -s conftest.$ac_objext'
21170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171 (eval $ac_try) 2>&5
21172 ac_status=$?
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; }; then
21175 gdb_cv_c_long_double=yes
21176 else
21177 echo "$as_me: failed program was:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21179
21180 gdb_cv_c_long_double=no
21181 fi
21182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21183 fi
21184 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
21185 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
21186 if test $gdb_cv_c_long_double = yes; then
21187
21188 cat >>confdefs.h <<\_ACEOF
21189 #define HAVE_LONG_DOUBLE 1
21190 _ACEOF
21191
21192 fi
21193
21194 # Check if the compiler and runtime support printing long doubles.
21195
21196 echo "$as_me:$LINENO: checking for long double support in printf" >&5
21197 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
21198 if test "${gdb_cv_printf_has_long_double+set}" = set; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21200 else
21201 if test "$cross_compiling" = yes; then
21202 gdb_cv_printf_has_long_double=no
21203 else
21204 cat >conftest.$ac_ext <<_ACEOF
21205 /* confdefs.h. */
21206 _ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h. */
21210 $ac_includes_default
21211 int
21212 main ()
21213 {
21214 char buf[16];
21215 long double f = 3.141592653;
21216 sprintf (buf, "%Lg", f);
21217 return (strncmp ("3.14159", buf, 7));
21218 ;
21219 return 0;
21220 }
21221 _ACEOF
21222 rm -f conftest$ac_exeext
21223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21224 (eval $ac_link) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229 (eval $ac_try) 2>&5
21230 ac_status=$?
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; }; then
21233 gdb_cv_printf_has_long_double=yes
21234 else
21235 echo "$as_me: program exited with status $ac_status" >&5
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239 ( exit $ac_status )
21240 gdb_cv_printf_has_long_double=no
21241 fi
21242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21243 fi
21244 fi
21245 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
21246 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
21247 if test $gdb_cv_printf_has_long_double = yes; then
21248
21249 cat >>confdefs.h <<\_ACEOF
21250 #define PRINTF_HAS_LONG_DOUBLE 1
21251 _ACEOF
21252
21253 fi
21254
21255 # Check if the compiler and runtime support scanning long doubles.
21256
21257 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
21258 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
21259 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21261 else
21262 if test "$cross_compiling" = yes; then
21263 gdb_cv_scanf_has_long_double=no
21264 else
21265 cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h. */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 #include <stdio.h>
21272 int
21273 main ()
21274 {
21275 char *buf = "3.141592653";
21276 long double f = 0;
21277 sscanf (buf, "%Lg", &f);
21278 return !(f > 3.14159 && f < 3.14160);
21279 ;
21280 return 0;
21281 }
21282 _ACEOF
21283 rm -f conftest$ac_exeext
21284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21285 (eval $ac_link) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21291 ac_status=$?
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
21294 gdb_cv_scanf_has_long_double=yes
21295 else
21296 echo "$as_me: program exited with status $ac_status" >&5
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21299
21300 ( exit $ac_status )
21301 gdb_cv_scanf_has_long_double=no
21302 fi
21303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21304 fi
21305 fi
21306 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
21307 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
21308 if test $gdb_cv_scanf_has_long_double = yes; then
21309
21310 cat >>confdefs.h <<\_ACEOF
21311 #define SCANF_HAS_LONG_DOUBLE 1
21312 _ACEOF
21313
21314 fi
21315
21316 case ${host_os} in
21317 aix*)
21318 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
21319 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
21320 if test "${gdb_cv_bigtoc+set}" = set; then
21321 echo $ECHO_N "(cached) $ECHO_C" >&6
21322 else
21323
21324 SAVE_LDFLAGS=$LDFLAGS
21325
21326 case $GCC in
21327 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
21328 *) gdb_cv_bigtoc=-bbigtoc ;;
21329 esac
21330
21331 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
21332 cat >conftest.$ac_ext <<_ACEOF
21333 /* confdefs.h. */
21334 _ACEOF
21335 cat confdefs.h >>conftest.$ac_ext
21336 cat >>conftest.$ac_ext <<_ACEOF
21337 /* end confdefs.h. */
21338
21339 int
21340 main ()
21341 {
21342 int i;
21343 ;
21344 return 0;
21345 }
21346 _ACEOF
21347 rm -f conftest.$ac_objext conftest$ac_exeext
21348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21349 (eval $ac_link) 2>conftest.er1
21350 ac_status=$?
21351 grep -v '^ *+' conftest.er1 >conftest.err
21352 rm -f conftest.er1
21353 cat conftest.err >&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } &&
21356 { ac_try='test -z "$ac_c_werror_flag"
21357 || test ! -s conftest.err'
21358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359 (eval $ac_try) 2>&5
21360 ac_status=$?
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); }; } &&
21363 { ac_try='test -s conftest$ac_exeext'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 :
21370 else
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374 gdb_cv_bigtoc=
21375 fi
21376 rm -f conftest.err conftest.$ac_objext \
21377 conftest$ac_exeext conftest.$ac_ext
21378 LDFLAGS="${SAVE_LDFLAGS}"
21379
21380 fi
21381 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
21382 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
21383 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
21384 ;;
21385 esac
21386
21387
21388
21389 if test ${build} = ${host} -a ${host} = ${target} ; then
21390 case ${host_os} in
21391 hpux*)
21392 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
21393 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
21394 if test -f /usr/include/dce/cma_config.h ; then
21395 if test "$GCC" = "yes" ; then
21396 echo "$as_me:$LINENO: result: yes" >&5
21397 echo "${ECHO_T}yes" >&6
21398
21399 cat >>confdefs.h <<\_ACEOF
21400 #define HAVE_HPUX_THREAD_SUPPORT 1
21401 _ACEOF
21402
21403 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
21404 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
21405 else
21406 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
21407 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
21408 fi
21409 else
21410 echo "$as_me:$LINENO: result: no" >&5
21411 echo "${ECHO_T}no" >&6
21412 fi
21413 ;;
21414 solaris*)
21415 # See if thread_db library is around for Solaris thread debugging.
21416 # Note that we must explicitly test for version 1 of the library
21417 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
21418 # the same API.
21419 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
21420 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
21421 if test -f /usr/lib/libthread_db.so.1 ; then
21422 echo "$as_me:$LINENO: result: yes" >&5
21423 echo "${ECHO_T}yes" >&6
21424
21425 cat >>confdefs.h <<\_ACEOF
21426 #define HAVE_THREAD_DB_LIB 1
21427 _ACEOF
21428
21429 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
21430 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
21431
21432 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21433 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21434 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21435 echo $ECHO_N "(cached) $ECHO_C" >&6
21436 else
21437 ac_check_lib_save_LIBS=$LIBS
21438 LIBS="-ldl $LIBS"
21439 cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h. */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445
21446 /* Override any gcc2 internal prototype to avoid an error. */
21447 #ifdef __cplusplus
21448 extern "C"
21449 #endif
21450 /* We use char because int might match the return type of a gcc2
21451 builtin and then its argument prototype would still apply. */
21452 char dlopen ();
21453 int
21454 main ()
21455 {
21456 dlopen ();
21457 ;
21458 return 0;
21459 }
21460 _ACEOF
21461 rm -f conftest.$ac_objext conftest$ac_exeext
21462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21463 (eval $ac_link) 2>conftest.er1
21464 ac_status=$?
21465 grep -v '^ *+' conftest.er1 >conftest.err
21466 rm -f conftest.er1
21467 cat conftest.err >&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } &&
21470 { ac_try='test -z "$ac_c_werror_flag"
21471 || test ! -s conftest.err'
21472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473 (eval $ac_try) 2>&5
21474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; } &&
21477 { ac_try='test -s conftest$ac_exeext'
21478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479 (eval $ac_try) 2>&5
21480 ac_status=$?
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); }; }; then
21483 ac_cv_lib_dl_dlopen=yes
21484 else
21485 echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21487
21488 ac_cv_lib_dl_dlopen=no
21489 fi
21490 rm -f conftest.err conftest.$ac_objext \
21491 conftest$ac_exeext conftest.$ac_ext
21492 LIBS=$ac_check_lib_save_LIBS
21493 fi
21494 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21495 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21496 if test $ac_cv_lib_dl_dlopen = yes; then
21497 cat >>confdefs.h <<_ACEOF
21498 #define HAVE_LIBDL 1
21499 _ACEOF
21500
21501 LIBS="-ldl $LIBS"
21502
21503 fi
21504
21505 if test "$GCC" = "yes" ; then
21506 # The GNU linker requires the -export-dynamic option to make
21507 # all symbols visible in the dynamic symbol table.
21508 hold_ldflags=$LDFLAGS
21509 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
21510 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
21511 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
21512 cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h. */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518
21519 int
21520 main ()
21521 {
21522 int i;
21523 ;
21524 return 0;
21525 }
21526 _ACEOF
21527 rm -f conftest.$ac_objext conftest$ac_exeext
21528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21529 (eval $ac_link) 2>conftest.er1
21530 ac_status=$?
21531 grep -v '^ *+' conftest.er1 >conftest.err
21532 rm -f conftest.er1
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } &&
21536 { ac_try='test -z "$ac_c_werror_flag"
21537 || test ! -s conftest.err'
21538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21540 ac_status=$?
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; } &&
21543 { ac_try='test -s conftest$ac_exeext'
21544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545 (eval $ac_try) 2>&5
21546 ac_status=$?
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; }; then
21549 found=yes
21550 else
21551 echo "$as_me: failed program was:" >&5
21552 sed 's/^/| /' conftest.$ac_ext >&5
21553
21554 found=no
21555 fi
21556 rm -f conftest.err conftest.$ac_objext \
21557 conftest$ac_exeext conftest.$ac_ext
21558 LDFLAGS=$hold_ldflags
21559 echo "$as_me:$LINENO: result: $found" >&5
21560 echo "${ECHO_T}$found" >&6
21561 if test $found = yes; then
21562 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21563 fi
21564 fi
21565 # Sun randomly tweaked the prototypes in <proc_service.h>
21566 # at one point.
21567 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21568 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
21569 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21570 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 else
21572
21573 cat >conftest.$ac_ext <<_ACEOF
21574 /* confdefs.h. */
21575 _ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h. */
21579
21580 #include <proc_service.h>
21581 ps_err_e ps_pdwrite
21582 (struct ps_prochandle*, psaddr_t, const void*, size_t);
21583
21584 int
21585 main ()
21586 {
21587
21588 ;
21589 return 0;
21590 }
21591 _ACEOF
21592 rm -f conftest.$ac_objext
21593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21594 (eval $ac_compile) 2>conftest.er1
21595 ac_status=$?
21596 grep -v '^ *+' conftest.er1 >conftest.err
21597 rm -f conftest.er1
21598 cat conftest.err >&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } &&
21601 { ac_try='test -z "$ac_c_werror_flag"
21602 || test ! -s conftest.err'
21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604 (eval $ac_try) 2>&5
21605 ac_status=$?
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; } &&
21608 { ac_try='test -s conftest.$ac_objext'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21611 ac_status=$?
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; }; then
21614 gdb_cv_proc_service_is_old=no
21615 else
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21618
21619 gdb_cv_proc_service_is_old=yes
21620 fi
21621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21622
21623 fi
21624
21625 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21626 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
21627 if test $gdb_cv_proc_service_is_old = yes; then
21628
21629 cat >>confdefs.h <<\_ACEOF
21630 #define PROC_SERVICE_IS_OLD 1
21631 _ACEOF
21632
21633 fi
21634 else
21635 echo "$as_me:$LINENO: result: no" >&5
21636 echo "${ECHO_T}no" >&6
21637 fi
21638 ;;
21639 aix*)
21640 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21641 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
21642 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21644 else
21645 cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h. */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 #include <sys/pthdebug.h>
21652 int
21653 main ()
21654 {
21655 #ifndef PTHDB_VERSION_3
21656 #error
21657 #endif
21658 ;
21659 return 0;
21660 }
21661 _ACEOF
21662 rm -f conftest.$ac_objext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21664 (eval $ac_compile) 2>conftest.er1
21665 ac_status=$?
21666 grep -v '^ *+' conftest.er1 >conftest.err
21667 rm -f conftest.er1
21668 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } &&
21671 { ac_try='test -z "$ac_c_werror_flag"
21672 || test ! -s conftest.err'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try='test -s conftest.$ac_objext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21681 ac_status=$?
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 gdb_cv_have_aix_thread_debug=yes
21685 else
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21688
21689 gdb_cv_have_aix_thread_debug=no
21690 fi
21691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21692 fi
21693
21694 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
21695 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
21696 if test $gdb_cv_have_aix_thread_debug = yes; then
21697 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
21698 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
21699 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
21700 fi
21701 ;;
21702 esac
21703
21704 fi
21705
21706 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
21707 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
21708 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
21709 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21711 else
21712 cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h. */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 #include <thread_db.h>
21719 int
21720 main ()
21721 {
21722 int i = TD_NOTALLOC;
21723 ;
21724 return 0;
21725 }
21726 _ACEOF
21727 rm -f conftest.$ac_objext
21728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21729 (eval $ac_compile) 2>conftest.er1
21730 ac_status=$?
21731 grep -v '^ *+' conftest.er1 >conftest.err
21732 rm -f conftest.er1
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } &&
21736 { ac_try='test -z "$ac_c_werror_flag"
21737 || test ! -s conftest.err'
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21740 ac_status=$?
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; } &&
21743 { ac_try='test -s conftest.$ac_objext'
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21746 ac_status=$?
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; }; then
21749 gdb_cv_thread_db_h_has_td_notalloc=yes
21750 else
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21753
21754 gdb_cv_thread_db_h_has_td_notalloc=no
21755
21756 fi
21757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21758
21759 fi
21760 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
21761 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
21762 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
21763 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
21764 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
21765 echo $ECHO_N "(cached) $ECHO_C" >&6
21766 else
21767 cat >conftest.$ac_ext <<_ACEOF
21768 /* confdefs.h. */
21769 _ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h. */
21773 #include <thread_db.h>
21774 int
21775 main ()
21776 {
21777 int i = TD_VERSION;
21778 ;
21779 return 0;
21780 }
21781 _ACEOF
21782 rm -f conftest.$ac_objext
21783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21784 (eval $ac_compile) 2>conftest.er1
21785 ac_status=$?
21786 grep -v '^ *+' conftest.er1 >conftest.err
21787 rm -f conftest.er1
21788 cat conftest.err >&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } &&
21791 { ac_try='test -z "$ac_c_werror_flag"
21792 || test ! -s conftest.err'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; } &&
21798 { ac_try='test -s conftest.$ac_objext'
21799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800 (eval $ac_try) 2>&5
21801 ac_status=$?
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; }; then
21804 gdb_cv_thread_db_h_has_td_version=yes
21805 else
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21808
21809 gdb_cv_thread_db_h_has_td_version=no
21810
21811 fi
21812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21813
21814 fi
21815 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21816 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21817 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21818 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21819 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21821 else
21822 cat >conftest.$ac_ext <<_ACEOF
21823 /* confdefs.h. */
21824 _ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21828 #include <thread_db.h>
21829 int
21830 main ()
21831 {
21832 int i = TD_NOTLS;
21833 ;
21834 return 0;
21835 }
21836 _ACEOF
21837 rm -f conftest.$ac_objext
21838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21839 (eval $ac_compile) 2>conftest.er1
21840 ac_status=$?
21841 grep -v '^ *+' conftest.er1 >conftest.err
21842 rm -f conftest.er1
21843 cat conftest.err >&5
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } &&
21846 { ac_try='test -z "$ac_c_werror_flag"
21847 || test ! -s conftest.err'
21848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849 (eval $ac_try) 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; } &&
21853 { ac_try='test -s conftest.$ac_objext'
21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855 (eval $ac_try) 2>&5
21856 ac_status=$?
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; }; then
21859 gdb_cv_thread_db_h_has_td_notls=yes
21860 else
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21863
21864 gdb_cv_thread_db_h_has_td_notls=no
21865
21866 fi
21867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21868
21869 fi
21870 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21871 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
21872 fi
21873 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
21874
21875 cat >>confdefs.h <<\_ACEOF
21876 #define THREAD_DB_HAS_TD_NOTALLOC 1
21877 _ACEOF
21878
21879 fi
21880 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21881
21882 cat >>confdefs.h <<\_ACEOF
21883 #define THREAD_DB_HAS_TD_VERSION 1
21884 _ACEOF
21885
21886 fi
21887 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21888
21889 cat >>confdefs.h <<\_ACEOF
21890 #define THREAD_DB_HAS_TD_NOTLS 1
21891 _ACEOF
21892
21893 fi
21894
21895 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
21896 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21897 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
21898 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21900 else
21901 cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h. */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21907 #include <sys/syscall.h>
21908 int
21909 main ()
21910 {
21911 int i = __NR_tkill;
21912 ;
21913 return 0;
21914 }
21915 _ACEOF
21916 rm -f conftest.$ac_objext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21918 (eval $ac_compile) 2>conftest.er1
21919 ac_status=$?
21920 grep -v '^ *+' conftest.er1 >conftest.err
21921 rm -f conftest.er1
21922 cat conftest.err >&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } &&
21925 { ac_try='test -z "$ac_c_werror_flag"
21926 || test ! -s conftest.err'
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; } &&
21932 { ac_try='test -s conftest.$ac_objext'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21935 ac_status=$?
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; }; then
21938 gdb_cv_sys_syscall_h_has_tkill=yes
21939 else
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943 gdb_cv_sys_syscall_h_has_tkill=no
21944
21945 fi
21946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21947
21948 fi
21949 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21950 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
21951 fi
21952 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
21953
21954 cat >>confdefs.h <<\_ACEOF
21955 #define HAVE_TKILL_SYSCALL 1
21956 _ACEOF
21957
21958 fi
21959
21960
21961
21962 # Check whether --with-sysroot or --without-sysroot was given.
21963 if test "${with_sysroot+set}" = set; then
21964 withval="$with_sysroot"
21965
21966 case ${with_sysroot} in
21967 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
21968 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21969 esac
21970
21971 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21972
21973 if test "x$prefix" = xNONE; then
21974 test_prefix=/usr/local
21975 else
21976 test_prefix=$prefix
21977 fi
21978 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
21979 test_exec_prefix=$test_prefix
21980 else
21981 test_exec_prefix=$exec_prefix
21982 fi
21983 case ${TARGET_SYSTEM_ROOT} in
21984 "${test_prefix}"|"${test_prefix}/"*|\
21985 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
21986 '${prefix}'|'${prefix}/'*|\
21987 '${exec_prefix}'|'${exec_prefix}/'*)
21988 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21989 TARGET_SYSTEM_ROOT_DEFINE="$t"
21990 ;;
21991 esac
21992
21993 else
21994
21995 TARGET_SYSTEM_ROOT=
21996 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21997
21998 fi;
21999
22000
22001
22002 # Check whether --enable-werror or --disable-werror was given.
22003 if test "${enable_werror+set}" = set; then
22004 enableval="$enable_werror"
22005 case "${enableval}" in
22006 yes | y) ERROR_ON_WARNING="yes" ;;
22007 no | n) ERROR_ON_WARNING="no" ;;
22008 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
22009 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
22010 { (exit 1); exit 1; }; } ;;
22011 esac
22012 fi;
22013
22014 # Enable -Werror by default when using gcc
22015 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
22016 ERROR_ON_WARNING=yes
22017 fi
22018
22019 WERROR_CFLAGS=""
22020 if test "${ERROR_ON_WARNING}" = yes ; then
22021 WERROR_CFLAGS="-Werror"
22022 fi
22023
22024 # The entries after -Wno-pointer-sign are disabled warnings which may
22025 # be enabled in the future, which can not currently be used to build
22026 # GDB.
22027 # NOTE: If you change this list, remember to update
22028 # gdb/doc/gdbint.texinfo.
22029 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
22030 -Wformat-nonliteral -Wno-pointer-sign \
22031 -Wno-unused -Wno-switch -Wno-char-subscripts"
22032
22033 # Check whether --enable-build-warnings or --disable-build-warnings was given.
22034 if test "${enable_build_warnings+set}" = set; then
22035 enableval="$enable_build_warnings"
22036 case "${enableval}" in
22037 yes) ;;
22038 no) build_warnings="-w";;
22039 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22040 build_warnings="${build_warnings} ${t}";;
22041 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22042 build_warnings="${t} ${build_warnings}";;
22043 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22044 esac
22045 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
22046 echo "Setting compiler warning flags = $build_warnings" 6>&1
22047 fi
22048 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
22049 if test "${enable_gdb_build_warnings+set}" = set; then
22050 enableval="$enable_gdb_build_warnings"
22051 case "${enableval}" in
22052 yes) ;;
22053 no) build_warnings="-w";;
22054 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22055 build_warnings="${build_warnings} ${t}";;
22056 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22057 build_warnings="${t} ${build_warnings}";;
22058 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22059 esac
22060 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
22061 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
22062 fi
22063 fi; WARN_CFLAGS=""
22064 if test "x${build_warnings}" != x -a "x$GCC" = xyes
22065 then
22066 echo "$as_me:$LINENO: checking compiler warning flags" >&5
22067 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
22068 # Separate out the -Werror flag as some files just cannot be
22069 # compiled with it enabled.
22070 for w in ${build_warnings}; do
22071 case $w in
22072 -Werr*) WERROR_CFLAGS=-Werror ;;
22073 *) # Check that GCC accepts it
22074 saved_CFLAGS="$CFLAGS"
22075 CFLAGS="$CFLAGS $w"
22076 cat >conftest.$ac_ext <<_ACEOF
22077 /* confdefs.h. */
22078 _ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h. */
22082
22083 int
22084 main ()
22085 {
22086
22087 ;
22088 return 0;
22089 }
22090 _ACEOF
22091 rm -f conftest.$ac_objext
22092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22093 (eval $ac_compile) 2>conftest.er1
22094 ac_status=$?
22095 grep -v '^ *+' conftest.er1 >conftest.err
22096 rm -f conftest.er1
22097 cat conftest.err >&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } &&
22100 { ac_try='test -z "$ac_c_werror_flag"
22101 || test ! -s conftest.err'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22104 ac_status=$?
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; } &&
22107 { ac_try='test -s conftest.$ac_objext'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; }; then
22113 WARN_CFLAGS="${WARN_CFLAGS} $w"
22114 else
22115 echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22117
22118 fi
22119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22120 CFLAGS="$saved_CFLAGS"
22121 esac
22122 done
22123 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
22124 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
22125 fi
22126
22127
22128
22129 # In the Cygwin environment, we need some additional flags.
22130 echo "$as_me:$LINENO: checking for cygwin" >&5
22131 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
22132 if test "${gdb_cv_os_cygwin+set}" = set; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135 cat >conftest.$ac_ext <<_ACEOF
22136 /* confdefs.h. */
22137 _ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h. */
22141
22142 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
22143 lose
22144 #endif
22145 _ACEOF
22146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22147 $EGREP "lose" >/dev/null 2>&1; then
22148 gdb_cv_os_cygwin=yes
22149 else
22150 gdb_cv_os_cygwin=no
22151 fi
22152 rm -f conftest*
22153
22154 fi
22155 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
22156 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
22157
22158
22159 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
22160 case ${host} in
22161 *go32* ) SER_HARDWIRE=ser-go32.o ;;
22162 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
22163 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
22164 esac
22165
22166
22167 # libreadline needs libuser32.a in a cygwin environment
22168 WIN32LIBS=
22169 if test x$gdb_cv_os_cygwin = xyes; then
22170 WIN32LIBS="-luser32"
22171 case "${target}" in
22172 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
22173 ;;
22174 esac
22175 fi
22176
22177 # The ser-tcp.c module requires sockets.
22178 case ${host} in
22179 *mingw32*)
22180
22181 cat >>confdefs.h <<\_ACEOF
22182 #define USE_WIN32API 1
22183 _ACEOF
22184
22185 WIN32LIBS="$WIN32LIBS -lws2_32"
22186 ;;
22187 esac
22188
22189
22190 # Add ELF support to GDB, but only if BFD includes ELF support.
22191 OLD_CFLAGS=$CFLAGS
22192 OLD_LDFLAGS=$LDFLAGS
22193 OLD_LIBS=$LIBS
22194 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
22195 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
22196 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
22197 LIBS="$LIBS -lbfd -liberty $intl"
22198 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
22199 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
22200 if test "${gdb_cv_var_elf+set}" = set; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22202 else
22203 cat >conftest.$ac_ext <<_ACEOF
22204 /* confdefs.h. */
22205 _ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h. */
22209 #include <stdlib.h>
22210 #include "bfd.h"
22211 #include "elf-bfd.h"
22212
22213 int
22214 main ()
22215 {
22216 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
22217 ;
22218 return 0;
22219 }
22220 _ACEOF
22221 rm -f conftest.$ac_objext conftest$ac_exeext
22222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22223 (eval $ac_link) 2>conftest.er1
22224 ac_status=$?
22225 grep -v '^ *+' conftest.er1 >conftest.err
22226 rm -f conftest.er1
22227 cat conftest.err >&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); } &&
22230 { ac_try='test -z "$ac_c_werror_flag"
22231 || test ! -s conftest.err'
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22234 ac_status=$?
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; } &&
22237 { ac_try='test -s conftest$ac_exeext'
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22240 ac_status=$?
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; }; then
22243 gdb_cv_var_elf=yes
22244 else
22245 echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22247
22248 gdb_cv_var_elf=no
22249 fi
22250 rm -f conftest.err conftest.$ac_objext \
22251 conftest$ac_exeext conftest.$ac_ext
22252 fi
22253 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
22254 echo "${ECHO_T}$gdb_cv_var_elf" >&6
22255 if test $gdb_cv_var_elf = yes; then
22256 CONFIG_OBS="$CONFIG_OBS elfread.o"
22257
22258 cat >>confdefs.h <<\_ACEOF
22259 #define HAVE_ELF 1
22260 _ACEOF
22261
22262 fi
22263 CFLAGS=$OLD_CFLAGS
22264 LDFLAGS=$OLD_LDFLAGS
22265 LIBS=$OLD_LIBS
22266
22267 # Add any host-specific objects to GDB.
22268 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
22269
22270 LIBGUI="../libgui/src/libgui.a"
22271 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
22272
22273
22274
22275 WIN32LDAPP=
22276
22277
22278
22279 case "${host}" in
22280 *-*-cygwin*)
22281 configdir="win"
22282 ;;
22283 *)
22284 configdir="unix"
22285 ;;
22286 esac
22287
22288 GDBTKLIBS=
22289 if test "${enable_gdbtk}" = "yes"; then
22290
22291 # Gdbtk must have an absolute path to srcdir in order to run
22292 # properly when not installed.
22293 here=`pwd`
22294 cd ${srcdir}
22295 GDBTK_SRC_DIR=`pwd`
22296 cd $here
22297
22298
22299 #
22300 # Ok, lets find the tcl configuration
22301 # First, look for one uninstalled.
22302 # the alternative search directory is invoked by --with-tclconfig
22303 #
22304
22305 if test x"${no_tcl}" = x ; then
22306 # we reset no_tcl in case something fails here
22307 no_tcl=true
22308
22309 # Check whether --with-tclconfig or --without-tclconfig was given.
22310 if test "${with_tclconfig+set}" = set; then
22311 withval="$with_tclconfig"
22312 with_tclconfig=${withval}
22313 fi;
22314 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
22315 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
22316 if test "${ac_cv_c_tclconfig+set}" = set; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
22318 else
22319
22320
22321 # First check to see if --with-tclconfig was specified.
22322 if test x"${with_tclconfig}" != x ; then
22323 if test -f "${with_tclconfig}/tclConfig.sh" ; then
22324 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
22325 else
22326 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
22327 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
22328 { (exit 1); exit 1; }; }
22329 fi
22330 fi
22331
22332 # then check for a private Tcl installation
22333 if test x"${ac_cv_c_tclconfig}" = x ; then
22334 for i in \
22335 ../tcl \
22336 `ls -dr ../tcl[7-9]* 2>/dev/null` \
22337 ../../tcl \
22338 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
22339 ../../../tcl \
22340 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
22341 if test -f "$i/${configdir}/tclConfig.sh" ; then
22342 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22343 break
22344 fi
22345 done
22346 fi
22347 # check in a few common install locations
22348 if test x"${ac_cv_c_tclconfig}" = x ; then
22349 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22350 if test -f "$i/tclConfig.sh" ; then
22351 ac_cv_c_tclconfig=`(cd $i; pwd)`
22352 break
22353 fi
22354 done
22355 fi
22356 # check in a few other private locations
22357 if test x"${ac_cv_c_tclconfig}" = x ; then
22358 for i in \
22359 ${srcdir}/../tcl \
22360 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
22361 if test -f "$i/${configdir}/tclConfig.sh" ; then
22362 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22363 break
22364 fi
22365 done
22366 fi
22367
22368 fi
22369
22370 if test x"${ac_cv_c_tclconfig}" = x ; then
22371 TCLCONFIG="# no Tcl configs found"
22372 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
22373 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
22374 else
22375 no_tcl=
22376 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
22377 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
22378 echo "${ECHO_T}found $TCLCONFIG" >&6
22379 fi
22380 fi
22381
22382 if test -z "${no_tcl}"; then
22383
22384 . $TCLCONFIG
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412 #
22413 # Ok, lets find the tk configuration
22414 # First, look for one uninstalled.
22415 # the alternative search directory is invoked by --with-tkconfig
22416 #
22417
22418 if test x"${no_tk}" = x ; then
22419 # we reset no_tk in case something fails here
22420 no_tk=true
22421
22422 # Check whether --with-tkconfig or --without-tkconfig was given.
22423 if test "${with_tkconfig+set}" = set; then
22424 withval="$with_tkconfig"
22425 with_tkconfig=${withval}
22426 fi;
22427 echo "$as_me:$LINENO: checking for Tk configuration" >&5
22428 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
22429 if test "${ac_cv_c_tkconfig+set}" = set; then
22430 echo $ECHO_N "(cached) $ECHO_C" >&6
22431 else
22432
22433
22434 # First check to see if --with-tkconfig was specified.
22435 if test x"${with_tkconfig}" != x ; then
22436 if test -f "${with_tkconfig}/tkConfig.sh" ; then
22437 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
22438 else
22439 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
22440 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
22441 { (exit 1); exit 1; }; }
22442 fi
22443 fi
22444
22445 # then check for a private Tk library
22446 if test x"${ac_cv_c_tkconfig}" = x ; then
22447 for i in \
22448 ../tk \
22449 `ls -dr ../tk[4-9]* 2>/dev/null` \
22450 ../../tk \
22451 `ls -dr ../../tk[4-9]* 2>/dev/null` \
22452 ../../../tk \
22453 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
22454 if test -f "$i/${configdir}/tkConfig.sh" ; then
22455 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22456 break
22457 fi
22458 done
22459 fi
22460 # check in a few common install locations
22461 if test x"${ac_cv_c_tkconfig}" = x ; then
22462 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22463 if test -f "$i/tkConfig.sh" ; then
22464 ac_cv_c_tkconfig=`(cd $i; pwd)`
22465 break
22466 fi
22467 done
22468 fi
22469 # check in a few other private locations
22470 if test x"${ac_cv_c_tkconfig}" = x ; then
22471 for i in \
22472 ${srcdir}/../tk \
22473 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
22474 if test -f "$i/${configdir}/tkConfig.sh" ; then
22475 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22476 break
22477 fi
22478 done
22479 fi
22480
22481 fi
22482
22483 if test x"${ac_cv_c_tkconfig}" = x ; then
22484 TKCONFIG="# no Tk configs found"
22485 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
22486 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
22487 else
22488 no_tk=
22489 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
22490 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
22491 echo "${ECHO_T}found $TKCONFIG" >&6
22492 fi
22493 fi
22494
22495
22496
22497 # now look for Tcl library stuff
22498
22499 tcldir="../tcl/${configdir}/"
22500
22501 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
22502
22503 # If $no_tk is nonempty, then we can't do Tk, and there is no
22504 # point to doing Tcl.
22505 if test -z "${no_tk}"; then
22506
22507 if test -f "$TKCONFIG" ; then
22508 . $TKCONFIG
22509 fi
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524 #
22525 # Ok, lets find the tcl source trees so we can use the headers
22526 # Warning: transition of version 9 to 10 will break this algorithm
22527 # because 10 sorts before 9. We also look for just tcl. We have to
22528 # be careful that we don't match stuff like tclX by accident.
22529 # the alternative search directory is involked by --with-tclinclude
22530 #
22531
22532 no_tcl=true
22533 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
22534 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
22535
22536 # Check whether --with-tclinclude or --without-tclinclude was given.
22537 if test "${with_tclinclude+set}" = set; then
22538 withval="$with_tclinclude"
22539 with_tclinclude=${withval}
22540 fi;
22541 if test "${ac_cv_c_tclh+set}" = set; then
22542 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 else
22544
22545 # first check to see if --with-tclinclude was specified
22546 if test x"${with_tclinclude}" != x ; then
22547 if test -f ${with_tclinclude}/tclInt.h ; then
22548 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
22549 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
22550 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
22551 else
22552 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
22553 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
22554 { (exit 1); exit 1; }; }
22555 fi
22556 fi
22557
22558 # next check if it came with Tcl configuration file
22559 if test x"${ac_cv_c_tclconfig}" = x ; then
22560 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
22561 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
22562 fi
22563 fi
22564
22565 # next check in private source directory
22566 #
22567 # since ls returns lowest version numbers first, reverse its output
22568 if test x"${ac_cv_c_tclh}" = x ; then
22569 for i in \
22570 ${srcdir}/../tcl \
22571 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
22572 ${srcdir}/../../tcl \
22573 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
22574 ${srcdir}/../../../tcl \
22575 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
22576 if test -f $i/generic/tclInt.h ; then
22577 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22578 break
22579 fi
22580 done
22581 fi
22582 # finally check in a few common install locations
22583 #
22584 # since ls returns lowest version numbers first, reverse its output
22585 if test x"${ac_cv_c_tclh}" = x ; then
22586 for i in \
22587 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
22588 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
22589 /usr/local/src/tcl \
22590 /usr/local/lib/tcl \
22591 ${prefix}/include ; do
22592 if test -f $i/generic/tclInt.h ; then
22593 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22594 break
22595 fi
22596 done
22597 fi
22598 # see if one is installed
22599 if test x"${ac_cv_c_tclh}" = x ; then
22600 if test "${ac_cv_header_tclInt_h+set}" = set; then
22601 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22602 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
22603 if test "${ac_cv_header_tclInt_h+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22605 fi
22606 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22607 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
22608 else
22609 # Is the header compilable?
22610 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22611 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
22612 cat >conftest.$ac_ext <<_ACEOF
22613 /* confdefs.h. */
22614 _ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h. */
22618 $ac_includes_default
22619 #include <tclInt.h>
22620 _ACEOF
22621 rm -f conftest.$ac_objext
22622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22623 (eval $ac_compile) 2>conftest.er1
22624 ac_status=$?
22625 grep -v '^ *+' conftest.er1 >conftest.err
22626 rm -f conftest.er1
22627 cat conftest.err >&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } &&
22630 { ac_try='test -z "$ac_c_werror_flag"
22631 || test ! -s conftest.err'
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22634 ac_status=$?
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; } &&
22637 { ac_try='test -s conftest.$ac_objext'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22640 ac_status=$?
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
22643 ac_header_compiler=yes
22644 else
22645 echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22647
22648 ac_header_compiler=no
22649 fi
22650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22652 echo "${ECHO_T}$ac_header_compiler" >&6
22653
22654 # Is the header present?
22655 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
22656 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
22657 cat >conftest.$ac_ext <<_ACEOF
22658 /* confdefs.h. */
22659 _ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22663 #include <tclInt.h>
22664 _ACEOF
22665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22667 ac_status=$?
22668 grep -v '^ *+' conftest.er1 >conftest.err
22669 rm -f conftest.er1
22670 cat conftest.err >&5
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } >/dev/null; then
22673 if test -s conftest.err; then
22674 ac_cpp_err=$ac_c_preproc_warn_flag
22675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22676 else
22677 ac_cpp_err=
22678 fi
22679 else
22680 ac_cpp_err=yes
22681 fi
22682 if test -z "$ac_cpp_err"; then
22683 ac_header_preproc=yes
22684 else
22685 echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22687
22688 ac_header_preproc=no
22689 fi
22690 rm -f conftest.err conftest.$ac_ext
22691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22692 echo "${ECHO_T}$ac_header_preproc" >&6
22693
22694 # So? What about this header?
22695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22696 yes:no: )
22697 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22698 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22699 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
22700 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
22701 ac_header_preproc=yes
22702 ;;
22703 no:yes:* )
22704 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
22705 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
22706 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
22707 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
22708 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
22709 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
22710 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
22711 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22712 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
22713 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
22714 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
22715 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
22716 (
22717 cat <<\_ASBOX
22718 ## ------------------------------------------ ##
22719 ## Report this to the AC_PACKAGE_NAME lists. ##
22720 ## ------------------------------------------ ##
22721 _ASBOX
22722 ) |
22723 sed "s/^/$as_me: WARNING: /" >&2
22724 ;;
22725 esac
22726 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22727 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
22728 if test "${ac_cv_header_tclInt_h+set}" = set; then
22729 echo $ECHO_N "(cached) $ECHO_C" >&6
22730 else
22731 ac_cv_header_tclInt_h=$ac_header_preproc
22732 fi
22733 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22734 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
22735
22736 fi
22737 if test $ac_cv_header_tclInt_h = yes; then
22738 ac_cv_c_tclh=installed
22739 else
22740 ac_cv_c_tclh=""
22741 fi
22742
22743
22744 fi
22745
22746 fi
22747
22748 if test x"${ac_cv_c_tclh}" = x ; then
22749 TCLHDIR="# no Tcl private headers found"
22750 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
22751 echo "$as_me: error: Can't find Tcl private headers" >&2;}
22752 { (exit 1); exit 1; }; }
22753 fi
22754 if test x"${ac_cv_c_tclh}" != x ; then
22755 no_tcl=""
22756 if test x"${ac_cv_c_tclh}" = x"installed" ; then
22757 echo "$as_me:$LINENO: result: is installed" >&5
22758 echo "${ECHO_T}is installed" >&6
22759 TCLHDIR=""
22760 else
22761 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
22762 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
22763 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
22764 TCLHDIR="-I${ac_cv_c_tclh}"
22765 fi
22766 fi
22767
22768
22769
22770
22771 #
22772 # Ok, lets find the tk source trees so we can use the headers
22773 # If the directory (presumably symlink) named "tk" exists, use that one
22774 # in preference to any others. Same logic is used when choosing library
22775 # and again with Tcl. The search order is the best place to look first, then in
22776 # decreasing significance. The loop breaks if the trigger file is found.
22777 # Note the gross little conversion here of srcdir by cd'ing to the found
22778 # directory. This converts the path from a relative to an absolute, so
22779 # recursive cache variables for the path will work right. We check all
22780 # the possible paths in one loop rather than many seperate loops to speed
22781 # things up.
22782 # the alternative search directory is involked by --with-tkinclude
22783 #
22784 no_tk=true
22785 echo "$as_me:$LINENO: checking for Tk private headers" >&5
22786 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
22787
22788 # Check whether --with-tkinclude or --without-tkinclude was given.
22789 if test "${with_tkinclude+set}" = set; then
22790 withval="$with_tkinclude"
22791 with_tkinclude=${withval}
22792 fi;
22793 if test "${ac_cv_c_tkh+set}" = set; then
22794 echo $ECHO_N "(cached) $ECHO_C" >&6
22795 else
22796
22797 # first check to see if --with-tkinclude was specified
22798 if test x"${with_tkinclude}" != x ; then
22799 if test -f ${with_tkinclude}/tk.h ; then
22800 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
22801 elif test -f ${with_tkinclude}/generic/tk.h ; then
22802 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
22803 else
22804 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
22805 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
22806 { (exit 1); exit 1; }; }
22807 fi
22808 fi
22809
22810 # next check if it came with Tk configuration file
22811 if test x"${ac_cv_c_tkconfig}" = x ; then
22812 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
22813 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
22814 fi
22815 fi
22816
22817 # next check in private source directory
22818 #
22819 # since ls returns lowest version numbers first, reverse its output
22820 if test x"${ac_cv_c_tkh}" = x ; then
22821 for i in \
22822 ${srcdir}/../tk \
22823 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
22824 ${srcdir}/../../tk \
22825 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
22826 ${srcdir}/../../../tk \
22827 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
22828 if test -f $i/generic/tk.h ; then
22829 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22830 break
22831 fi
22832 done
22833 fi
22834 # finally check in a few common install locations
22835 #
22836 # since ls returns lowest version numbers first, reverse its output
22837 if test x"${ac_cv_c_tkh}" = x ; then
22838 for i in \
22839 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
22840 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
22841 /usr/local/src/tk \
22842 /usr/local/lib/tk \
22843 ${prefix}/include ; do
22844 if test -f $i/generic/tk.h ; then
22845 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22846 break
22847 fi
22848 done
22849 fi
22850 # see if one is installed
22851 if test x"${ac_cv_c_tkh}" = x ; then
22852 if test "${ac_cv_header_tk_h+set}" = set; then
22853 echo "$as_me:$LINENO: checking for tk.h" >&5
22854 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
22855 if test "${ac_cv_header_tk_h+set}" = set; then
22856 echo $ECHO_N "(cached) $ECHO_C" >&6
22857 fi
22858 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22859 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
22860 else
22861 # Is the header compilable?
22862 echo "$as_me:$LINENO: checking tk.h usability" >&5
22863 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
22864 cat >conftest.$ac_ext <<_ACEOF
22865 /* confdefs.h. */
22866 _ACEOF
22867 cat confdefs.h >>conftest.$ac_ext
22868 cat >>conftest.$ac_ext <<_ACEOF
22869 /* end confdefs.h. */
22870 $ac_includes_default
22871 #include <tk.h>
22872 _ACEOF
22873 rm -f conftest.$ac_objext
22874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22875 (eval $ac_compile) 2>conftest.er1
22876 ac_status=$?
22877 grep -v '^ *+' conftest.er1 >conftest.err
22878 rm -f conftest.er1
22879 cat conftest.err >&5
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); } &&
22882 { ac_try='test -z "$ac_c_werror_flag"
22883 || test ! -s conftest.err'
22884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885 (eval $ac_try) 2>&5
22886 ac_status=$?
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); }; } &&
22889 { ac_try='test -s conftest.$ac_objext'
22890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22891 (eval $ac_try) 2>&5
22892 ac_status=$?
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); }; }; then
22895 ac_header_compiler=yes
22896 else
22897 echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22899
22900 ac_header_compiler=no
22901 fi
22902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22904 echo "${ECHO_T}$ac_header_compiler" >&6
22905
22906 # Is the header present?
22907 echo "$as_me:$LINENO: checking tk.h presence" >&5
22908 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
22909 cat >conftest.$ac_ext <<_ACEOF
22910 /* confdefs.h. */
22911 _ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h. */
22915 #include <tk.h>
22916 _ACEOF
22917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22919 ac_status=$?
22920 grep -v '^ *+' conftest.er1 >conftest.err
22921 rm -f conftest.er1
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } >/dev/null; then
22925 if test -s conftest.err; then
22926 ac_cpp_err=$ac_c_preproc_warn_flag
22927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22928 else
22929 ac_cpp_err=
22930 fi
22931 else
22932 ac_cpp_err=yes
22933 fi
22934 if test -z "$ac_cpp_err"; then
22935 ac_header_preproc=yes
22936 else
22937 echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22939
22940 ac_header_preproc=no
22941 fi
22942 rm -f conftest.err conftest.$ac_ext
22943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22944 echo "${ECHO_T}$ac_header_preproc" >&6
22945
22946 # So? What about this header?
22947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22948 yes:no: )
22949 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22950 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22951 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22952 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22953 ac_header_preproc=yes
22954 ;;
22955 no:yes:* )
22956 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22957 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22958 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
22959 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
22960 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22961 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22962 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
22963 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
22964 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22965 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22966 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22967 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
22968 (
22969 cat <<\_ASBOX
22970 ## ------------------------------------------ ##
22971 ## Report this to the AC_PACKAGE_NAME lists. ##
22972 ## ------------------------------------------ ##
22973 _ASBOX
22974 ) |
22975 sed "s/^/$as_me: WARNING: /" >&2
22976 ;;
22977 esac
22978 echo "$as_me:$LINENO: checking for tk.h" >&5
22979 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
22980 if test "${ac_cv_header_tk_h+set}" = set; then
22981 echo $ECHO_N "(cached) $ECHO_C" >&6
22982 else
22983 ac_cv_header_tk_h=$ac_header_preproc
22984 fi
22985 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22986 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
22987
22988 fi
22989 if test $ac_cv_header_tk_h = yes; then
22990 ac_cv_c_tkh=installed
22991 else
22992 ac_cv_c_tkh=""
22993 fi
22994
22995
22996 fi
22997
22998 fi
22999
23000 if test x"${ac_cv_c_tkh}" != x ; then
23001 no_tk=""
23002 if test x"${ac_cv_c_tkh}" = x"installed" ; then
23003 echo "$as_me:$LINENO: result: is installed" >&5
23004 echo "${ECHO_T}is installed" >&6
23005 TKHDIR=""
23006 else
23007 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
23008 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
23009 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
23010 TKHDIR="-I${ac_cv_c_tkh}"
23011 fi
23012 else
23013 TKHDIR="# no Tk directory found"
23014 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
23015 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
23016 no_tk=true
23017 fi
23018
23019
23020
23021
23022 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
23023 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
23024 if test x"${ac_cv_c_itclh}" = x ; then
23025 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
23026 if test -f $i/generic/itcl.h ; then
23027 ac_cv_c_itclh=`(cd $i/generic; pwd)`
23028 break
23029 fi
23030 done
23031 fi
23032 if test x"${ac_cv_c_itclh}" = x ; then
23033 ITCLHDIR="# no Itcl private headers found"
23034 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
23035 echo "$as_me: error: Can't find Itcl private headers" >&2;}
23036 { (exit 1); exit 1; }; }
23037 fi
23038 if test x"${ac_cv_c_itclh}" != x ; then
23039 ITCLHDIR="-I${ac_cv_c_itclh}"
23040 fi
23041 # should always be here
23042 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
23043
23044 #AC_SUBST(ITCLLIB)
23045
23046
23047 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
23048 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
23049 if test x"${ac_cv_c_itkh}" = x ; then
23050 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
23051 if test -f $i/generic/itk.h ; then
23052 ac_cv_c_itkh=`(cd $i/generic; pwd)`
23053 break
23054 fi
23055 done
23056 fi
23057 if test x"${ac_cv_c_itkh}" = x ; then
23058 ITKHDIR="# no Itk private headers found"
23059 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
23060 echo "$as_me: error: Can't find Itk private headers" >&2;}
23061 { (exit 1); exit 1; }; }
23062 fi
23063 if test x"${ac_cv_c_itkh}" != x ; then
23064 ITKHDIR="-I${ac_cv_c_itkh}"
23065 fi
23066 # should always be here
23067 # ITKLIB="../itcl/itk/unix/libitk.a"
23068
23069 #AC_SUBST(ITKLIB)
23070
23071
23072
23073 # now look for Tk library stuff
23074
23075 tkdir="../tk/${configdir}/"
23076
23077 TK_DEPS="${tkdir}${TK_LIB_FILE}"
23078
23079 # now look for Itcl library stuff
23080
23081
23082 #
23083 # Ok, lets find the itcl configuration
23084 # First, look for one uninstalled.
23085 # the alternative search directory is invoked by --with-itclconfig
23086 #
23087
23088 if test x"${no_itcl}" = x ; then
23089 # we reset no_itcl in case something fails here
23090 no_itcl=true
23091
23092 # Check whether --with-itclconfig or --without-itclconfig was given.
23093 if test "${with_itclconfig+set}" = set; then
23094 withval="$with_itclconfig"
23095 with_itclconfig=${withval}
23096 fi;
23097 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
23098 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
23099 if test "${ac_cv_c_itclconfig+set}" = set; then
23100 echo $ECHO_N "(cached) $ECHO_C" >&6
23101 else
23102
23103
23104 # First check to see if --with-itclconfig was specified.
23105 if test x"${with_itclconfig}" != x ; then
23106 if test -f "${with_itclconfig}/itclConfig.sh" ; then
23107 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
23108 else
23109 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
23110 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
23111 { (exit 1); exit 1; }; }
23112 fi
23113 fi
23114
23115 # then check for a private Itcl library
23116 if test x"${ac_cv_c_itclconfig}" = x ; then
23117 for i in \
23118 ../itcl/itcl \
23119 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
23120 ../../itcl \
23121 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
23122 ../../../itcl \
23123 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
23124 if test -f "$i/itclConfig.sh" ; then
23125 ac_cv_c_itclconfig=`(cd $i; pwd)`
23126 break
23127 fi
23128 done
23129 fi
23130 # check in a few common install locations
23131 if test x"${ac_cv_c_itclconfig}" = x ; then
23132 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23133 if test -f "$i/itclConfig.sh" ; then
23134 ac_cv_c_itclconfig=`(cd $i; pwd)`
23135 break
23136 fi
23137 done
23138 fi
23139 # check in a few other private locations
23140 if test x"${ac_cv_c_itclconfig}" = x ; then
23141 for i in \
23142 ${srcdir}/../itcl/itcl \
23143 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
23144 if test -f "$i/itclConfig.sh" ; then
23145 ac_cv_c_itclconfig=`(cd $i; pwd)`
23146 break
23147 fi
23148 done
23149 fi
23150
23151 fi
23152
23153 if test x"${ac_cv_c_itclconfig}" = x ; then
23154 ITCLCONFIG="# no Itcl configs found"
23155 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
23156 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
23157 else
23158 no_itcl=
23159 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
23160 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
23161 echo "${ECHO_T}found $ITCLCONFIG" >&6
23162 fi
23163 fi
23164
23165 if test -z "${no_itcl}"; then
23166
23167 if test -f "$ITCLCONFIG" ; then
23168 . $ITCLCONFIG
23169 fi
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
23183 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
23184 fi
23185
23186
23187 # now look for Itk library stuff
23188
23189 #
23190 # Ok, lets find the itk configuration
23191 # First, look for one uninstalled.
23192 # the alternative search directory is invoked by --with-itkconfig
23193 #
23194
23195 if test x"${no_itk}" = x ; then
23196 # we reset no_itk in case something fails here
23197 no_itk=true
23198
23199 # Check whether --with-itkconfig or --without-itkconfig was given.
23200 if test "${with_itkconfig+set}" = set; then
23201 withval="$with_itkconfig"
23202 with_itkconfig=${withval}
23203 fi;
23204 echo "$as_me:$LINENO: checking for Itk configuration" >&5
23205 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
23206 if test "${ac_cv_c_itkconfig+set}" = set; then
23207 echo $ECHO_N "(cached) $ECHO_C" >&6
23208 else
23209
23210
23211 # First check to see if --with-itkconfig was specified.
23212 if test x"${with_itkconfig}" != x ; then
23213 if test -f "${with_itkconfig}/itkConfig.sh" ; then
23214 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
23215 else
23216 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
23217 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
23218 { (exit 1); exit 1; }; }
23219 fi
23220 fi
23221
23222 # then check for a private Itk library
23223 if test x"${ac_cv_c_itkconfig}" = x ; then
23224 for i in \
23225 ../itcl/itk \
23226 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
23227 ../../itk \
23228 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
23229 ../../../itk \
23230 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
23231 if test -f "$i/itkConfig.sh" ; then
23232 ac_cv_c_itkconfig=`(cd $i; pwd)`
23233 break
23234 fi
23235 done
23236 fi
23237 # check in a few common install locations
23238 if test x"${ac_cv_c_itkconfig}" = x ; then
23239 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23240 if test -f "$i/itkConfig.sh" ; then
23241 ac_cv_c_itkconfig=`(cd $i; pwd)`
23242 break
23243 fi
23244 done
23245 fi
23246 # check in a few other private locations
23247 if test x"${ac_cv_c_itkconfig}" = x ; then
23248 for i in \
23249 ${srcdir}/../itcl/itk \
23250 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
23251 if test -f "$i/itkConfig.sh" ; then
23252 ac_cv_c_itkconfig=`(cd $i; pwd)`
23253 break
23254 fi
23255 done
23256 fi
23257
23258 fi
23259
23260 if test x"${ac_cv_c_itkconfig}" = x ; then
23261 ITKCONFIG="# no Itk configs found"
23262 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
23263 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
23264 else
23265 no_itk=
23266 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
23267 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
23268 echo "${ECHO_T}found $ITKCONFIG" >&6
23269 fi
23270 fi
23271
23272
23273 if test -z "${no_itcl}"; then
23274
23275 if test -f "$ITKCONFIG" ; then
23276 . $ITKCONFIG
23277 fi
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290 ITKLIB="${ITK_BUILD_LIB_SPEC}"
23291 ITK_DEPS="${ITK_LIB_FULL_PATH}"
23292 fi
23293
23294 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
23295
23296 # Include some libraries that Tcl and Tk want.
23297 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
23298 # Yes, the ordering seems wrong here. But it isn't.
23299 # TK_LIBS is the list of libraries that need to be linked
23300 # after Tcl/Tk. Note that this isn't put into LIBS. If it
23301 # were in LIBS then any link tests after this point would
23302 # try to include things like `$(LIBGUI)', which wouldn't work.
23303 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
23304
23305 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
23306 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
23307 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
23308 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
23309 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
23310 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
23311 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
23312
23313 if test x$gdb_cv_os_cygwin = xyes; then
23314 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
23315 WIN32LDAPP="-Wl,--subsystem,console"
23316 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
23317 fi
23318 fi
23319 fi
23320
23321
23322
23323 subdirs="$subdirs gdbtk"
23324
23325 fi
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340 echo "$as_me:$LINENO: checking for X" >&5
23341 echo $ECHO_N "checking for X... $ECHO_C" >&6
23342
23343
23344 # Check whether --with-x or --without-x was given.
23345 if test "${with_x+set}" = set; then
23346 withval="$with_x"
23347
23348 fi;
23349 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23350 if test "x$with_x" = xno; then
23351 # The user explicitly disabled X.
23352 have_x=disabled
23353 else
23354 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23355 # Both variables are already set.
23356 have_x=yes
23357 else
23358 if test "${ac_cv_have_x+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361 # One or both of the vars are not set, and there is no cached value.
23362 ac_x_includes=no ac_x_libraries=no
23363 rm -fr conftest.dir
23364 if mkdir conftest.dir; then
23365 cd conftest.dir
23366 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23367 cat >Imakefile <<'_ACEOF'
23368 acfindx:
23369 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23370 _ACEOF
23371 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23372 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23373 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23374 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23375 for ac_extension in a so sl; do
23376 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23377 test -f $ac_im_libdir/libX11.$ac_extension; then
23378 ac_im_usrlibdir=$ac_im_libdir; break
23379 fi
23380 done
23381 # Screen out bogus values from the imake configuration. They are
23382 # bogus both because they are the default anyway, and because
23383 # using them would break gcc on systems where it needs fixed includes.
23384 case $ac_im_incroot in
23385 /usr/include) ;;
23386 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23387 esac
23388 case $ac_im_usrlibdir in
23389 /usr/lib | /lib) ;;
23390 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23391 esac
23392 fi
23393 cd ..
23394 rm -fr conftest.dir
23395 fi
23396
23397 # Standard set of common directories for X headers.
23398 # Check X11 before X11Rn because it is often a symlink to the current release.
23399 ac_x_header_dirs='
23400 /usr/X11/include
23401 /usr/X11R6/include
23402 /usr/X11R5/include
23403 /usr/X11R4/include
23404
23405 /usr/include/X11
23406 /usr/include/X11R6
23407 /usr/include/X11R5
23408 /usr/include/X11R4
23409
23410 /usr/local/X11/include
23411 /usr/local/X11R6/include
23412 /usr/local/X11R5/include
23413 /usr/local/X11R4/include
23414
23415 /usr/local/include/X11
23416 /usr/local/include/X11R6
23417 /usr/local/include/X11R5
23418 /usr/local/include/X11R4
23419
23420 /usr/X386/include
23421 /usr/x386/include
23422 /usr/XFree86/include/X11
23423
23424 /usr/include
23425 /usr/local/include
23426 /usr/unsupported/include
23427 /usr/athena/include
23428 /usr/local/x11r5/include
23429 /usr/lpp/Xamples/include
23430
23431 /usr/openwin/include
23432 /usr/openwin/share/include'
23433
23434 if test "$ac_x_includes" = no; then
23435 # Guess where to find include files, by looking for Intrinsic.h.
23436 # First, try using that file with no special directory specified.
23437 cat >conftest.$ac_ext <<_ACEOF
23438 /* confdefs.h. */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23443 #include <X11/Intrinsic.h>
23444 _ACEOF
23445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23447 ac_status=$?
23448 grep -v '^ *+' conftest.er1 >conftest.err
23449 rm -f conftest.er1
23450 cat conftest.err >&5
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); } >/dev/null; then
23453 if test -s conftest.err; then
23454 ac_cpp_err=$ac_c_preproc_warn_flag
23455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23456 else
23457 ac_cpp_err=
23458 fi
23459 else
23460 ac_cpp_err=yes
23461 fi
23462 if test -z "$ac_cpp_err"; then
23463 # We can compile using X headers with no special include directory.
23464 ac_x_includes=
23465 else
23466 echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23468
23469 for ac_dir in $ac_x_header_dirs; do
23470 if test -r "$ac_dir/X11/Intrinsic.h"; then
23471 ac_x_includes=$ac_dir
23472 break
23473 fi
23474 done
23475 fi
23476 rm -f conftest.err conftest.$ac_ext
23477 fi # $ac_x_includes = no
23478
23479 if test "$ac_x_libraries" = no; then
23480 # Check for the libraries.
23481 # See if we find them without any special options.
23482 # Don't add to $LIBS permanently.
23483 ac_save_LIBS=$LIBS
23484 LIBS="-lXt $LIBS"
23485 cat >conftest.$ac_ext <<_ACEOF
23486 /* confdefs.h. */
23487 _ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h. */
23491 #include <X11/Intrinsic.h>
23492 int
23493 main ()
23494 {
23495 XtMalloc (0)
23496 ;
23497 return 0;
23498 }
23499 _ACEOF
23500 rm -f conftest.$ac_objext conftest$ac_exeext
23501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23502 (eval $ac_link) 2>conftest.er1
23503 ac_status=$?
23504 grep -v '^ *+' conftest.er1 >conftest.err
23505 rm -f conftest.er1
23506 cat conftest.err >&5
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); } &&
23509 { ac_try='test -z "$ac_c_werror_flag"
23510 || test ! -s conftest.err'
23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23513 ac_status=$?
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; } &&
23516 { ac_try='test -s conftest$ac_exeext'
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; }; then
23522 LIBS=$ac_save_LIBS
23523 # We can link X programs with no special library path.
23524 ac_x_libraries=
23525 else
23526 echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23528
23529 LIBS=$ac_save_LIBS
23530 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23531 do
23532 # Don't even attempt the hair of trying to link an X program!
23533 for ac_extension in a so sl; do
23534 if test -r $ac_dir/libXt.$ac_extension; then
23535 ac_x_libraries=$ac_dir
23536 break 2
23537 fi
23538 done
23539 done
23540 fi
23541 rm -f conftest.err conftest.$ac_objext \
23542 conftest$ac_exeext conftest.$ac_ext
23543 fi # $ac_x_libraries = no
23544
23545 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23546 # Didn't find X anywhere. Cache the known absence of X.
23547 ac_cv_have_x="have_x=no"
23548 else
23549 # Record where we found X for the cache.
23550 ac_cv_have_x="have_x=yes \
23551 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23552 fi
23553 fi
23554
23555 fi
23556 eval "$ac_cv_have_x"
23557 fi # $with_x != no
23558
23559 if test "$have_x" != yes; then
23560 echo "$as_me:$LINENO: result: $have_x" >&5
23561 echo "${ECHO_T}$have_x" >&6
23562 no_x=yes
23563 else
23564 # If each of the values was on the command line, it overrides each guess.
23565 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23566 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23567 # Update the cache value to reflect the command line values.
23568 ac_cv_have_x="have_x=yes \
23569 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23570 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23571 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23572 fi
23573
23574
23575 # Check whether we should enable the TUI, but only do so if we really
23576 # can.
23577 if test x"$enable_tui" = xyes; then
23578 if test -d $srcdir/tui; then
23579 if test "$ac_cv_search_waddstr" != no; then
23580 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
23581 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
23582 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
23583 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
23584 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
23585 CONFIG_ALL="${CONFIG_ALL} all-tui"
23586 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
23587 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
23588 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
23589 else
23590 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
23591 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
23592 fi
23593 fi
23594 fi
23595
23596 # Unlike the sim directory, whether a simulator is linked is controlled by
23597 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
23598 # This code just checks for a few cases where we'd like to ignore those
23599 # definitions, even when they're present in the '.mt' file. These cases
23600 # are when --disable-sim is specified, or if the simulator directory is
23601 # not part of the source tree.
23602 #
23603 # Check whether --enable-sim or --disable-sim was given.
23604 if test "${enable_sim+set}" = set; then
23605 enableval="$enable_sim"
23606 echo "enable_sim = $enable_sim";
23607 echo "enableval = ${enableval}";
23608 case "${enableval}" in
23609 yes) ignore_sim=false ;;
23610 no) ignore_sim=true ;;
23611 *) ignore_sim=false ;;
23612 esac
23613 else
23614 ignore_sim=false
23615 fi;
23616
23617 if test ! -d "${srcdir}/../sim"; then
23618 ignore_sim=true
23619 fi
23620
23621 if test "${ignore_sim}" = "true"; then
23622 IGNORE_SIM="SIM="
23623 IGNORE_SIM_OBS="SIM_OBS="
23624 else
23625 IGNORE_SIM=""
23626 IGNORE_SIM_OBS=""
23627
23628 cat >>confdefs.h <<\_ACEOF
23629 #define WITH_SIM 1
23630 _ACEOF
23631
23632 fi
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647 # List of host floatformats.
23648
23649 cat >>confdefs.h <<_ACEOF
23650 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
23651 _ACEOF
23652
23653
23654 cat >>confdefs.h <<_ACEOF
23655 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
23656 _ACEOF
23657
23658
23659 cat >>confdefs.h <<_ACEOF
23660 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
23661 _ACEOF
23662
23663
23664 # target_subdir is used by the testsuite to find the target libraries.
23665 target_subdir=
23666 if test "${host}" != "${target}"; then
23667 target_subdir="${target_alias}/"
23668 fi
23669
23670
23671 frags=
23672 if test "${gdb_native}" = "yes"; then
23673 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
23674 if test ! -f ${host_makefile_frag}; then
23675 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
23676 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
23677 { (exit 1); exit 1; }; }
23678 fi
23679 frags="$frags $host_makefile_frag"
23680 else
23681 host_makefile_frag=/dev/null
23682 fi
23683
23684 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
23685 if test ! -f ${target_makefile_frag}; then
23686 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
23687 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
23688 { (exit 1); exit 1; }; }
23689 fi
23690 frags="$frags $target_makefile_frag"
23691
23692
23693
23694
23695
23696 hostfile=`sed -n '
23697 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23698 ' ${host_makefile_frag}`
23699
23700 targetfile=`sed -n '
23701 s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23702 ' ${target_makefile_frag}`
23703
23704 if test "${gdb_native}" = "yes"; then
23705 # We pick this up from the host configuration file (.mh) because we
23706 # do not have a native configuration Makefile fragment.
23707 nativefile=`sed -n '
23708 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23709 ' ${host_makefile_frag}`
23710 fi
23711
23712
23713 if test x"${gdb_osabi}" != x ; then
23714
23715 cat >>confdefs.h <<_ACEOF
23716 #define GDB_OSABI_DEFAULT $gdb_osabi
23717 _ACEOF
23718
23719 fi
23720
23721 # Enable multi-ice-gdb-server.
23722 # Check whether --enable-multi-ice or --disable-multi-ice was given.
23723 if test "${enable_multi_ice+set}" = set; then
23724 enableval="$enable_multi_ice"
23725 case $enableval in
23726 yes | no)
23727 ;;
23728 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
23729 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
23730 { (exit 1); exit 1; }; } ;;
23731 esac
23732 fi;
23733 if test "x$enable_multi_ice" = xyes; then
23734
23735
23736 subdirs="$subdirs multi-ice"
23737
23738 fi
23739
23740 # We only build gdbserver automatically in a native configuration.
23741 if test "$gdb_native" = "yes"; then
23742 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
23743 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
23744 if test "x$build_gdbserver" = xyes; then
23745 echo "$as_me:$LINENO: result: yes" >&5
23746 echo "${ECHO_T}yes" >&6
23747
23748
23749 subdirs="$subdirs gdbserver"
23750
23751 else
23752 echo "$as_me:$LINENO: result: no" >&5
23753 echo "${ECHO_T}no" >&6
23754 fi
23755 fi
23756
23757 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
23758 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
23759 # to an empty version.
23760
23761 files=
23762 links=
23763
23764 rm -f xm.h
23765 xm_h=""
23766 if test "${hostfile}" != ""; then
23767 xm_h=xm.h
23768 case "${hostfile}" in
23769 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
23770 * ) GDB_XM_FILE="${hostfile}"
23771 esac
23772 files="${files} ${GDB_XM_FILE}"
23773 links="${links} xm.h"
23774
23775 cat >>confdefs.h <<_ACEOF
23776 #define GDB_XM_FILE "${GDB_XM_FILE}"
23777 _ACEOF
23778
23779 fi
23780
23781
23782 rm -f tm.h
23783 tm_h=""
23784 if test "${targetfile}" != ""; then
23785 tm_h=tm.h
23786 case "${targetfile}" in
23787 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
23788 * ) GDB_TM_FILE="${targetfile}"
23789 esac
23790 files="${files} ${GDB_TM_FILE}"
23791 links="${links} tm.h"
23792
23793 cat >>confdefs.h <<_ACEOF
23794 #define GDB_TM_FILE "${GDB_TM_FILE}"
23795 _ACEOF
23796
23797 fi
23798
23799
23800 rm -f nm.h
23801 nm_h=""
23802 if test "${nativefile}" != ""; then
23803 nm_h=nm.h
23804 case "${nativefile}" in
23805 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
23806 * ) GDB_NM_FILE="${nativefile}"
23807 esac
23808 files="${files} ${GDB_NM_FILE}"
23809 links="${links} nm.h"
23810
23811 cat >>confdefs.h <<_ACEOF
23812 #define GDB_NM_FILE "${GDB_NM_FILE}"
23813 _ACEOF
23814
23815 fi
23816
23817
23818 ac_sources="$files"
23819 ac_dests="$links"
23820 while test -n "$ac_sources"; do
23821 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
23822 set $ac_sources; ac_source=$1; shift; ac_sources=$*
23823 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
23824 done
23825 ac_config_links="$ac_config_links $ac_config_links_1"
23826
23827
23828
23829
23830
23831
23832 cat >>confdefs.h <<\_ACEOF
23833 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
23834 _ACEOF
23835
23836
23837
23838
23839
23840 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
23841 if test "${with_libiconv_prefix+set}" = set; then
23842 withval="$with_libiconv_prefix"
23843
23844 for dir in `echo "$withval" | tr : ' '`; do
23845 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
23846 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
23847 done
23848
23849 fi;
23850
23851 echo "$as_me:$LINENO: checking for iconv" >&5
23852 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23853 if test "${am_cv_func_iconv+set}" = set; then
23854 echo $ECHO_N "(cached) $ECHO_C" >&6
23855 else
23856
23857 am_cv_func_iconv="no, consider installing GNU libiconv"
23858 am_cv_lib_iconv=no
23859 cat >conftest.$ac_ext <<_ACEOF
23860 /* confdefs.h. */
23861 _ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h. */
23865 #include <stdlib.h>
23866 #include <iconv.h>
23867 int
23868 main ()
23869 {
23870 iconv_t cd = iconv_open("","");
23871 iconv(cd,NULL,NULL,NULL,NULL);
23872 iconv_close(cd);
23873 ;
23874 return 0;
23875 }
23876 _ACEOF
23877 rm -f conftest.$ac_objext conftest$ac_exeext
23878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23879 (eval $ac_link) 2>conftest.er1
23880 ac_status=$?
23881 grep -v '^ *+' conftest.er1 >conftest.err
23882 rm -f conftest.er1
23883 cat conftest.err >&5
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); } &&
23886 { ac_try='test -z "$ac_c_werror_flag"
23887 || test ! -s conftest.err'
23888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23889 (eval $ac_try) 2>&5
23890 ac_status=$?
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); }; } &&
23893 { ac_try='test -s conftest$ac_exeext'
23894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23895 (eval $ac_try) 2>&5
23896 ac_status=$?
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); }; }; then
23899 am_cv_func_iconv=yes
23900 else
23901 echo "$as_me: failed program was:" >&5
23902 sed 's/^/| /' conftest.$ac_ext >&5
23903
23904 fi
23905 rm -f conftest.err conftest.$ac_objext \
23906 conftest$ac_exeext conftest.$ac_ext
23907 if test "$am_cv_func_iconv" != yes; then
23908 am_save_LIBS="$LIBS"
23909 LIBS="$LIBS -liconv"
23910 cat >conftest.$ac_ext <<_ACEOF
23911 /* confdefs.h. */
23912 _ACEOF
23913 cat confdefs.h >>conftest.$ac_ext
23914 cat >>conftest.$ac_ext <<_ACEOF
23915 /* end confdefs.h. */
23916 #include <stdlib.h>
23917 #include <iconv.h>
23918 int
23919 main ()
23920 {
23921 iconv_t cd = iconv_open("","");
23922 iconv(cd,NULL,NULL,NULL,NULL);
23923 iconv_close(cd);
23924 ;
23925 return 0;
23926 }
23927 _ACEOF
23928 rm -f conftest.$ac_objext conftest$ac_exeext
23929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23930 (eval $ac_link) 2>conftest.er1
23931 ac_status=$?
23932 grep -v '^ *+' conftest.er1 >conftest.err
23933 rm -f conftest.er1
23934 cat conftest.err >&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } &&
23937 { ac_try='test -z "$ac_c_werror_flag"
23938 || test ! -s conftest.err'
23939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940 (eval $ac_try) 2>&5
23941 ac_status=$?
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); }; } &&
23944 { ac_try='test -s conftest$ac_exeext'
23945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23946 (eval $ac_try) 2>&5
23947 ac_status=$?
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); }; }; then
23950 am_cv_lib_iconv=yes
23951 am_cv_func_iconv=yes
23952 else
23953 echo "$as_me: failed program was:" >&5
23954 sed 's/^/| /' conftest.$ac_ext >&5
23955
23956 fi
23957 rm -f conftest.err conftest.$ac_objext \
23958 conftest$ac_exeext conftest.$ac_ext
23959 LIBS="$am_save_LIBS"
23960 fi
23961
23962 fi
23963 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23964 echo "${ECHO_T}$am_cv_func_iconv" >&6
23965 if test "$am_cv_func_iconv" = yes; then
23966
23967 cat >>confdefs.h <<\_ACEOF
23968 #define HAVE_ICONV 1
23969 _ACEOF
23970
23971 echo "$as_me:$LINENO: checking for iconv declaration" >&5
23972 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
23973 if test "${am_cv_proto_iconv+set}" = set; then
23974 echo $ECHO_N "(cached) $ECHO_C" >&6
23975 else
23976
23977 cat >conftest.$ac_ext <<_ACEOF
23978 /* confdefs.h. */
23979 _ACEOF
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h. */
23983
23984 #include <stdlib.h>
23985 #include <iconv.h>
23986 extern
23987 #ifdef __cplusplus
23988 "C"
23989 #endif
23990 #if defined(__STDC__) || defined(__cplusplus)
23991 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23992 #else
23993 size_t iconv();
23994 #endif
23995
23996 int
23997 main ()
23998 {
23999
24000 ;
24001 return 0;
24002 }
24003 _ACEOF
24004 rm -f conftest.$ac_objext
24005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24006 (eval $ac_compile) 2>conftest.er1
24007 ac_status=$?
24008 grep -v '^ *+' conftest.er1 >conftest.err
24009 rm -f conftest.er1
24010 cat conftest.err >&5
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); } &&
24013 { ac_try='test -z "$ac_c_werror_flag"
24014 || test ! -s conftest.err'
24015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24016 (eval $ac_try) 2>&5
24017 ac_status=$?
24018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); }; } &&
24020 { ac_try='test -s conftest.$ac_objext'
24021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24022 (eval $ac_try) 2>&5
24023 ac_status=$?
24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); }; }; then
24026 am_cv_proto_iconv_arg1=""
24027 else
24028 echo "$as_me: failed program was:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24030
24031 am_cv_proto_iconv_arg1="const"
24032 fi
24033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24034 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);"
24035 fi
24036
24037 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
24038 echo "$as_me:$LINENO: result: ${ac_t:-
24039 }$am_cv_proto_iconv" >&5
24040 echo "${ECHO_T}${ac_t:-
24041 }$am_cv_proto_iconv" >&6
24042
24043 cat >>confdefs.h <<_ACEOF
24044 #define ICONV_CONST $am_cv_proto_iconv_arg1
24045 _ACEOF
24046
24047 fi
24048 LIBICONV=
24049 if test "$am_cv_lib_iconv" = yes; then
24050 LIBICONV="-liconv"
24051 fi
24052
24053
24054
24055 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
24056 ac_config_commands="$ac_config_commands default"
24057 cat >confcache <<\_ACEOF
24058 # This file is a shell script that caches the results of configure
24059 # tests run on this system so they can be shared between configure
24060 # scripts and configure runs, see configure's option --config-cache.
24061 # It is not useful on other systems. If it contains results you don't
24062 # want to keep, you may remove or edit it.
24063 #
24064 # config.status only pays attention to the cache file if you give it
24065 # the --recheck option to rerun configure.
24066 #
24067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24069 # following values.
24070
24071 _ACEOF
24072
24073 # The following way of writing the cache mishandles newlines in values,
24074 # but we know of no workaround that is simple, portable, and efficient.
24075 # So, don't put newlines in cache variables' values.
24076 # Ultrix sh set writes to stderr and can't be redirected directly,
24077 # and sets the high bit in the cache file unless we assign to the vars.
24078 {
24079 (set) 2>&1 |
24080 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24081 *ac_space=\ *)
24082 # `set' does not quote correctly, so add quotes (double-quote
24083 # substitution turns \\\\ into \\, and sed turns \\ into \).
24084 sed -n \
24085 "s/'/'\\\\''/g;
24086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24087 ;;
24088 *)
24089 # `set' quotes correctly as required by POSIX, so do not add quotes.
24090 sed -n \
24091 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24092 ;;
24093 esac;
24094 } |
24095 sed '
24096 t clear
24097 : clear
24098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24099 t end
24100 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24101 : end' >>confcache
24102 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24103 if test -w $cache_file; then
24104 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24105 cat confcache >$cache_file
24106 else
24107 echo "not updating unwritable cache $cache_file"
24108 fi
24109 fi
24110 rm -f confcache
24111
24112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24113 # Let make expand exec_prefix.
24114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24115
24116 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24117 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24118 # trailing colons and then remove the whole line if VPATH becomes empty
24119 # (actually we leave an empty line to preserve line numbers).
24120 if test "x$srcdir" = x.; then
24121 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24122 s/:*\$(srcdir):*/:/;
24123 s/:*\${srcdir}:*/:/;
24124 s/:*@srcdir@:*/:/;
24125 s/^\([^=]*=[ ]*\):*/\1/;
24126 s/:*$//;
24127 s/^[^=]*=[ ]*$//;
24128 }'
24129 fi
24130
24131 DEFS=-DHAVE_CONFIG_H
24132
24133 ac_libobjs=
24134 ac_ltlibobjs=
24135 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24136 # 1. Remove the extension, and $U if already installed.
24137 ac_i=`echo "$ac_i" |
24138 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24139 # 2. Add them.
24140 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24141 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24142 done
24143 LIBOBJS=$ac_libobjs
24144
24145 LTLIBOBJS=$ac_ltlibobjs
24146
24147
24148 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24149 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24150 Usually this means the macro was only invoked conditionally." >&5
24151 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24152 Usually this means the macro was only invoked conditionally." >&2;}
24153 { (exit 1); exit 1; }; }
24154 fi
24155
24156 : ${CONFIG_STATUS=./config.status}
24157 ac_clean_files_save=$ac_clean_files
24158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24161 cat >$CONFIG_STATUS <<_ACEOF
24162 #! $SHELL
24163 # Generated by $as_me.
24164 # Run this file to recreate the current configuration.
24165 # Compiler output produced by configure, useful for debugging
24166 # configure, is in config.log if it exists.
24167
24168 debug=false
24169 ac_cs_recheck=false
24170 ac_cs_silent=false
24171 SHELL=\${CONFIG_SHELL-$SHELL}
24172 _ACEOF
24173
24174 cat >>$CONFIG_STATUS <<\_ACEOF
24175 ## --------------------- ##
24176 ## M4sh Initialization. ##
24177 ## --------------------- ##
24178
24179 # Be Bourne compatible
24180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24181 emulate sh
24182 NULLCMD=:
24183 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24184 # is contrary to our usage. Disable this feature.
24185 alias -g '${1+"$@"}'='"$@"'
24186 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24187 set -o posix
24188 fi
24189 DUALCASE=1; export DUALCASE # for MKS sh
24190
24191 # Support unset when possible.
24192 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24193 as_unset=unset
24194 else
24195 as_unset=false
24196 fi
24197
24198
24199 # Work around bugs in pre-3.0 UWIN ksh.
24200 $as_unset ENV MAIL MAILPATH
24201 PS1='$ '
24202 PS2='> '
24203 PS4='+ '
24204
24205 # NLS nuisances.
24206 for as_var in \
24207 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24208 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24209 LC_TELEPHONE LC_TIME
24210 do
24211 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24212 eval $as_var=C; export $as_var
24213 else
24214 $as_unset $as_var
24215 fi
24216 done
24217
24218 # Required to use basename.
24219 if expr a : '\(a\)' >/dev/null 2>&1; then
24220 as_expr=expr
24221 else
24222 as_expr=false
24223 fi
24224
24225 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24226 as_basename=basename
24227 else
24228 as_basename=false
24229 fi
24230
24231
24232 # Name of the executable.
24233 as_me=`$as_basename "$0" ||
24234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24235 X"$0" : 'X\(//\)$' \| \
24236 X"$0" : 'X\(/\)$' \| \
24237 . : '\(.\)' 2>/dev/null ||
24238 echo X/"$0" |
24239 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24240 /^X\/\(\/\/\)$/{ s//\1/; q; }
24241 /^X\/\(\/\).*/{ s//\1/; q; }
24242 s/.*/./; q'`
24243
24244
24245 # PATH needs CR, and LINENO needs CR and PATH.
24246 # Avoid depending upon Character Ranges.
24247 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24248 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24249 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24250 as_cr_digits='0123456789'
24251 as_cr_alnum=$as_cr_Letters$as_cr_digits
24252
24253 # The user is always right.
24254 if test "${PATH_SEPARATOR+set}" != set; then
24255 echo "#! /bin/sh" >conf$$.sh
24256 echo "exit 0" >>conf$$.sh
24257 chmod +x conf$$.sh
24258 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24259 PATH_SEPARATOR=';'
24260 else
24261 PATH_SEPARATOR=:
24262 fi
24263 rm -f conf$$.sh
24264 fi
24265
24266
24267 as_lineno_1=$LINENO
24268 as_lineno_2=$LINENO
24269 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24270 test "x$as_lineno_1" != "x$as_lineno_2" &&
24271 test "x$as_lineno_3" = "x$as_lineno_2" || {
24272 # Find who we are. Look in the path if we contain no path at all
24273 # relative or not.
24274 case $0 in
24275 *[\\/]* ) as_myself=$0 ;;
24276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24277 for as_dir in $PATH
24278 do
24279 IFS=$as_save_IFS
24280 test -z "$as_dir" && as_dir=.
24281 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24282 done
24283
24284 ;;
24285 esac
24286 # We did not find ourselves, most probably we were run as `sh COMMAND'
24287 # in which case we are not to be found in the path.
24288 if test "x$as_myself" = x; then
24289 as_myself=$0
24290 fi
24291 if test ! -f "$as_myself"; then
24292 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24293 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24294 { (exit 1); exit 1; }; }
24295 fi
24296 case $CONFIG_SHELL in
24297 '')
24298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24299 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24300 do
24301 IFS=$as_save_IFS
24302 test -z "$as_dir" && as_dir=.
24303 for as_base in sh bash ksh sh5; do
24304 case $as_dir in
24305 /*)
24306 if ("$as_dir/$as_base" -c '
24307 as_lineno_1=$LINENO
24308 as_lineno_2=$LINENO
24309 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24310 test "x$as_lineno_1" != "x$as_lineno_2" &&
24311 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24312 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24313 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24314 CONFIG_SHELL=$as_dir/$as_base
24315 export CONFIG_SHELL
24316 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24317 fi;;
24318 esac
24319 done
24320 done
24321 ;;
24322 esac
24323
24324 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24325 # uniformly replaced by the line number. The first 'sed' inserts a
24326 # line-number line before each line; the second 'sed' does the real
24327 # work. The second script uses 'N' to pair each line-number line
24328 # with the numbered line, and appends trailing '-' during
24329 # substitution so that $LINENO is not a special case at line end.
24330 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24331 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24332 sed '=' <$as_myself |
24333 sed '
24334 N
24335 s,$,-,
24336 : loop
24337 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24338 t loop
24339 s,-$,,
24340 s,^['$as_cr_digits']*\n,,
24341 ' >$as_me.lineno &&
24342 chmod +x $as_me.lineno ||
24343 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24344 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24345 { (exit 1); exit 1; }; }
24346
24347 # Don't try to exec as it changes $[0], causing all sort of problems
24348 # (the dirname of $[0] is not the place where we might find the
24349 # original and so on. Autoconf is especially sensible to this).
24350 . ./$as_me.lineno
24351 # Exit status is that of the last command.
24352 exit
24353 }
24354
24355
24356 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24357 *c*,-n*) ECHO_N= ECHO_C='
24358 ' ECHO_T=' ' ;;
24359 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24360 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24361 esac
24362
24363 if expr a : '\(a\)' >/dev/null 2>&1; then
24364 as_expr=expr
24365 else
24366 as_expr=false
24367 fi
24368
24369 rm -f conf$$ conf$$.exe conf$$.file
24370 echo >conf$$.file
24371 if ln -s conf$$.file conf$$ 2>/dev/null; then
24372 # We could just check for DJGPP; but this test a) works b) is more generic
24373 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24374 if test -f conf$$.exe; then
24375 # Don't use ln at all; we don't have any links
24376 as_ln_s='cp -p'
24377 else
24378 as_ln_s='ln -s'
24379 fi
24380 elif ln conf$$.file conf$$ 2>/dev/null; then
24381 as_ln_s=ln
24382 else
24383 as_ln_s='cp -p'
24384 fi
24385 rm -f conf$$ conf$$.exe conf$$.file
24386
24387 if mkdir -p . 2>/dev/null; then
24388 as_mkdir_p=:
24389 else
24390 test -d ./-p && rmdir ./-p
24391 as_mkdir_p=false
24392 fi
24393
24394 as_executable_p="test -f"
24395
24396 # Sed expression to map a string onto a valid CPP name.
24397 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24398
24399 # Sed expression to map a string onto a valid variable name.
24400 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24401
24402
24403 # IFS
24404 # We need space, tab and new line, in precisely that order.
24405 as_nl='
24406 '
24407 IFS=" $as_nl"
24408
24409 # CDPATH.
24410 $as_unset CDPATH
24411
24412 exec 6>&1
24413
24414 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24415 # report actual input values of CONFIG_FILES etc. instead of their
24416 # values after options handling. Logging --version etc. is OK.
24417 exec 5>>config.log
24418 {
24419 echo
24420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24421 ## Running $as_me. ##
24422 _ASBOX
24423 } >&5
24424 cat >&5 <<_CSEOF
24425
24426 This file was extended by $as_me, which was
24427 generated by GNU Autoconf 2.59. Invocation command line was
24428
24429 CONFIG_FILES = $CONFIG_FILES
24430 CONFIG_HEADERS = $CONFIG_HEADERS
24431 CONFIG_LINKS = $CONFIG_LINKS
24432 CONFIG_COMMANDS = $CONFIG_COMMANDS
24433 $ $0 $@
24434
24435 _CSEOF
24436 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24437 echo >&5
24438 _ACEOF
24439
24440 # Files that config.status was made for.
24441 if test -n "$ac_config_files"; then
24442 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24443 fi
24444
24445 if test -n "$ac_config_headers"; then
24446 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24447 fi
24448
24449 if test -n "$ac_config_links"; then
24450 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24451 fi
24452
24453 if test -n "$ac_config_commands"; then
24454 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24455 fi
24456
24457 cat >>$CONFIG_STATUS <<\_ACEOF
24458
24459 ac_cs_usage="\
24460 \`$as_me' instantiates files from templates according to the
24461 current configuration.
24462
24463 Usage: $0 [OPTIONS] [FILE]...
24464
24465 -h, --help print this help, then exit
24466 -V, --version print version number, then exit
24467 -q, --quiet do not print progress messages
24468 -d, --debug don't remove temporary files
24469 --recheck update $as_me by reconfiguring in the same conditions
24470 --file=FILE[:TEMPLATE]
24471 instantiate the configuration file FILE
24472 --header=FILE[:TEMPLATE]
24473 instantiate the configuration header FILE
24474
24475 Configuration files:
24476 $config_files
24477
24478 Configuration headers:
24479 $config_headers
24480
24481 Configuration links:
24482 $config_links
24483
24484 Configuration commands:
24485 $config_commands
24486
24487 Report bugs to <bug-autoconf@gnu.org>."
24488 _ACEOF
24489
24490 cat >>$CONFIG_STATUS <<_ACEOF
24491 ac_cs_version="\\
24492 config.status
24493 configured by $0, generated by GNU Autoconf 2.59,
24494 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24495
24496 Copyright (C) 2003 Free Software Foundation, Inc.
24497 This config.status script is free software; the Free Software Foundation
24498 gives unlimited permission to copy, distribute and modify it."
24499 srcdir=$srcdir
24500 INSTALL="$INSTALL"
24501 _ACEOF
24502
24503 cat >>$CONFIG_STATUS <<\_ACEOF
24504 # If no file are specified by the user, then we need to provide default
24505 # value. By we need to know if files were specified by the user.
24506 ac_need_defaults=:
24507 while test $# != 0
24508 do
24509 case $1 in
24510 --*=*)
24511 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24512 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24513 ac_shift=:
24514 ;;
24515 -*)
24516 ac_option=$1
24517 ac_optarg=$2
24518 ac_shift=shift
24519 ;;
24520 *) # This is not an option, so the user has probably given explicit
24521 # arguments.
24522 ac_option=$1
24523 ac_need_defaults=false;;
24524 esac
24525
24526 case $ac_option in
24527 # Handling of the options.
24528 _ACEOF
24529 cat >>$CONFIG_STATUS <<\_ACEOF
24530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24531 ac_cs_recheck=: ;;
24532 --version | --vers* | -V )
24533 echo "$ac_cs_version"; exit 0 ;;
24534 --he | --h)
24535 # Conflict between --help and --header
24536 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24537 Try \`$0 --help' for more information." >&5
24538 echo "$as_me: error: ambiguous option: $1
24539 Try \`$0 --help' for more information." >&2;}
24540 { (exit 1); exit 1; }; };;
24541 --help | --hel | -h )
24542 echo "$ac_cs_usage"; exit 0 ;;
24543 --debug | --d* | -d )
24544 debug=: ;;
24545 --file | --fil | --fi | --f )
24546 $ac_shift
24547 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24548 ac_need_defaults=false;;
24549 --header | --heade | --head | --hea )
24550 $ac_shift
24551 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24552 ac_need_defaults=false;;
24553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24555 ac_cs_silent=: ;;
24556
24557 # This is an error.
24558 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24559 Try \`$0 --help' for more information." >&5
24560 echo "$as_me: error: unrecognized option: $1
24561 Try \`$0 --help' for more information." >&2;}
24562 { (exit 1); exit 1; }; } ;;
24563
24564 *) ac_config_targets="$ac_config_targets $1" ;;
24565
24566 esac
24567 shift
24568 done
24569
24570 ac_configure_extra_args=
24571
24572 if $ac_cs_silent; then
24573 exec 6>/dev/null
24574 ac_configure_extra_args="$ac_configure_extra_args --silent"
24575 fi
24576
24577 _ACEOF
24578 cat >>$CONFIG_STATUS <<_ACEOF
24579 if \$ac_cs_recheck; then
24580 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24581 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24582 fi
24583
24584 _ACEOF
24585
24586 cat >>$CONFIG_STATUS <<_ACEOF
24587 #
24588 # INIT-COMMANDS section.
24589 #
24590
24591
24592 GCC="$GCC"
24593 CC="$CC"
24594 acx_cv_header_stdint="$acx_cv_header_stdint"
24595 acx_cv_type_int8_t="$acx_cv_type_int8_t"
24596 acx_cv_type_int16_t="$acx_cv_type_int16_t"
24597 acx_cv_type_int32_t="$acx_cv_type_int32_t"
24598 acx_cv_type_int64_t="$acx_cv_type_int64_t"
24599 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
24600 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
24601 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
24602 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
24603 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
24604 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
24605 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24606 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24607 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24608
24609
24610 gdb_host_cpu=$gdb_host_cpu
24611 gdb_target_cpu=$gdb_target_cpu
24612 nativefile=$nativefile
24613
24614
24615 _ACEOF
24616
24617
24618
24619 cat >>$CONFIG_STATUS <<\_ACEOF
24620 for ac_config_target in $ac_config_targets
24621 do
24622 case "$ac_config_target" in
24623 # Handling of arguments.
24624 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24625 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24626 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24627 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24628 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24629 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
24630 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24631 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24632 { (exit 1); exit 1; }; };;
24633 esac
24634 done
24635
24636 # If the user did not use the arguments to specify the items to instantiate,
24637 # then the envvar interface is used. Set only those that are not.
24638 # We use the long form for the default assignment because of an extremely
24639 # bizarre bug on SunOS 4.1.3.
24640 if $ac_need_defaults; then
24641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24643 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24644 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24645 fi
24646
24647 # Have a temporary directory for convenience. Make it in the build tree
24648 # simply because there is no reason to put it here, and in addition,
24649 # creating and moving files from /tmp can sometimes cause problems.
24650 # Create a temporary directory, and hook for its removal unless debugging.
24651 $debug ||
24652 {
24653 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24654 trap '{ (exit 1); exit 1; }' 1 2 13 15
24655 }
24656
24657 # Create a (secure) tmp directory for tmp files.
24658
24659 {
24660 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24661 test -n "$tmp" && test -d "$tmp"
24662 } ||
24663 {
24664 tmp=./confstat$$-$RANDOM
24665 (umask 077 && mkdir $tmp)
24666 } ||
24667 {
24668 echo "$me: cannot create a temporary directory in ." >&2
24669 { (exit 1); exit 1; }
24670 }
24671
24672 _ACEOF
24673
24674 cat >>$CONFIG_STATUS <<_ACEOF
24675
24676 #
24677 # CONFIG_FILES section.
24678 #
24679
24680 # No need to generate the scripts if there are no CONFIG_FILES.
24681 # This happens for instance when ./config.status config.h
24682 if test -n "\$CONFIG_FILES"; then
24683 # Protect against being on the right side of a sed subst in config.status.
24684 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24685 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24686 s,@SHELL@,$SHELL,;t t
24687 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24688 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24689 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24690 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24691 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24692 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24693 s,@exec_prefix@,$exec_prefix,;t t
24694 s,@prefix@,$prefix,;t t
24695 s,@program_transform_name@,$program_transform_name,;t t
24696 s,@bindir@,$bindir,;t t
24697 s,@sbindir@,$sbindir,;t t
24698 s,@libexecdir@,$libexecdir,;t t
24699 s,@datadir@,$datadir,;t t
24700 s,@sysconfdir@,$sysconfdir,;t t
24701 s,@sharedstatedir@,$sharedstatedir,;t t
24702 s,@localstatedir@,$localstatedir,;t t
24703 s,@libdir@,$libdir,;t t
24704 s,@includedir@,$includedir,;t t
24705 s,@oldincludedir@,$oldincludedir,;t t
24706 s,@infodir@,$infodir,;t t
24707 s,@mandir@,$mandir,;t t
24708 s,@build_alias@,$build_alias,;t t
24709 s,@host_alias@,$host_alias,;t t
24710 s,@target_alias@,$target_alias,;t t
24711 s,@DEFS@,$DEFS,;t t
24712 s,@ECHO_C@,$ECHO_C,;t t
24713 s,@ECHO_N@,$ECHO_N,;t t
24714 s,@ECHO_T@,$ECHO_T,;t t
24715 s,@LIBS@,$LIBS,;t t
24716 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24717 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24718 s,@MAINT@,$MAINT,;t t
24719 s,@CC@,$CC,;t t
24720 s,@CFLAGS@,$CFLAGS,;t t
24721 s,@LDFLAGS@,$LDFLAGS,;t t
24722 s,@CPPFLAGS@,$CPPFLAGS,;t t
24723 s,@ac_ct_CC@,$ac_ct_CC,;t t
24724 s,@EXEEXT@,$EXEEXT,;t t
24725 s,@OBJEXT@,$OBJEXT,;t t
24726 s,@CPP@,$CPP,;t t
24727 s,@EGREP@,$EGREP,;t t
24728 s,@build@,$build,;t t
24729 s,@build_cpu@,$build_cpu,;t t
24730 s,@build_vendor@,$build_vendor,;t t
24731 s,@build_os@,$build_os,;t t
24732 s,@host@,$host,;t t
24733 s,@host_cpu@,$host_cpu,;t t
24734 s,@host_vendor@,$host_vendor,;t t
24735 s,@host_os@,$host_os,;t t
24736 s,@target@,$target,;t t
24737 s,@target_cpu@,$target_cpu,;t t
24738 s,@target_vendor@,$target_vendor,;t t
24739 s,@target_os@,$target_os,;t t
24740 s,@USE_NLS@,$USE_NLS,;t t
24741 s,@LIBINTL@,$LIBINTL,;t t
24742 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24743 s,@INCINTL@,$INCINTL,;t t
24744 s,@XGETTEXT@,$XGETTEXT,;t t
24745 s,@GMSGFMT@,$GMSGFMT,;t t
24746 s,@POSUB@,$POSUB,;t t
24747 s,@CATALOGS@,$CATALOGS,;t t
24748 s,@DATADIRNAME@,$DATADIRNAME,;t t
24749 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24750 s,@GENCAT@,$GENCAT,;t t
24751 s,@CATOBJEXT@,$CATOBJEXT,;t t
24752 s,@localedir@,$localedir,;t t
24753 s,@PACKAGE@,$PACKAGE,;t t
24754 s,@subdirs@,$subdirs,;t t
24755 s,@AWK@,$AWK,;t t
24756 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24757 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24758 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24759 s,@LN_S@,$LN_S,;t t
24760 s,@RANLIB@,$RANLIB,;t t
24761 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24762 s,@YACC@,$YACC,;t t
24763 s,@AR@,$AR,;t t
24764 s,@ac_ct_AR@,$ac_ct_AR,;t t
24765 s,@DLLTOOL@,$DLLTOOL,;t t
24766 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24767 s,@WINDRES@,$WINDRES,;t t
24768 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
24769 s,@MIG@,$MIG,;t t
24770 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
24771 s,@READLINE@,$READLINE,;t t
24772 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
24773 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
24774 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
24775 s,@LIBEXPAT@,$LIBEXPAT,;t t
24776 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
24777 s,@ALLOCA@,$ALLOCA,;t t
24778 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
24779 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24780 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24781 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
24782 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
24783 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
24784 s,@WIN32LIBS@,$WIN32LIBS,;t t
24785 s,@LIBGUI@,$LIBGUI,;t t
24786 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
24787 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
24788 s,@TCL_VERSION@,$TCL_VERSION,;t t
24789 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
24790 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
24791 s,@TCL_CC@,$TCL_CC,;t t
24792 s,@TCL_DEFS@,$TCL_DEFS,;t t
24793 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
24794 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
24795 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
24796 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
24797 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
24798 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
24799 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
24800 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
24801 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
24802 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
24803 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
24804 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
24805 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
24806 s,@TK_VERSION@,$TK_VERSION,;t t
24807 s,@TK_DEFS@,$TK_DEFS,;t t
24808 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
24809 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
24810 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
24811 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
24812 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
24813 s,@TCLHDIR@,$TCLHDIR,;t t
24814 s,@TKHDIR@,$TKHDIR,;t t
24815 s,@ITCLHDIR@,$ITCLHDIR,;t t
24816 s,@ITKHDIR@,$ITKHDIR,;t t
24817 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
24818 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
24819 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
24820 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
24821 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
24822 s,@ITK_VERSION@,$ITK_VERSION,;t t
24823 s,@ITK_DEFS@,$ITK_DEFS,;t t
24824 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
24825 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
24826 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
24827 s,@X_CFLAGS@,$X_CFLAGS,;t t
24828 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
24829 s,@X_LIBS@,$X_LIBS,;t t
24830 s,@TCL_DEPS@,$TCL_DEPS,;t t
24831 s,@TK_DEPS@,$TK_DEPS,;t t
24832 s,@ITCLLIB@,$ITCLLIB,;t t
24833 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
24834 s,@ITKLIB@,$ITKLIB,;t t
24835 s,@ITK_DEPS@,$ITK_DEPS,;t t
24836 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
24837 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
24838 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
24839 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
24840 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
24841 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
24842 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
24843 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
24844 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
24845 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
24846 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
24847 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
24848 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
24849 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
24850 s,@target_subdir@,$target_subdir,;t t
24851 s,@frags@,$frags,;t t
24852 s,@xm_h@,$xm_h,;t t
24853 s,@tm_h@,$tm_h,;t t
24854 s,@nm_h@,$nm_h,;t t
24855 s,@LIBICONV@,$LIBICONV,;t t
24856 s,@LIBOBJS@,$LIBOBJS,;t t
24857 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24858 /@host_makefile_frag@/r $host_makefile_frag
24859 s,@host_makefile_frag@,,;t t
24860 /@target_makefile_frag@/r $target_makefile_frag
24861 s,@target_makefile_frag@,,;t t
24862 CEOF
24863
24864 _ACEOF
24865
24866 cat >>$CONFIG_STATUS <<\_ACEOF
24867 # Split the substitutions into bite-sized pieces for seds with
24868 # small command number limits, like on Digital OSF/1 and HP-UX.
24869 ac_max_sed_lines=48
24870 ac_sed_frag=1 # Number of current file.
24871 ac_beg=1 # First line for current file.
24872 ac_end=$ac_max_sed_lines # Line after last line for current file.
24873 ac_more_lines=:
24874 ac_sed_cmds=
24875 while $ac_more_lines; do
24876 if test $ac_beg -gt 1; then
24877 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24878 else
24879 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24880 fi
24881 if test ! -s $tmp/subs.frag; then
24882 ac_more_lines=false
24883 else
24884 # The purpose of the label and of the branching condition is to
24885 # speed up the sed processing (if there are no `@' at all, there
24886 # is no need to browse any of the substitutions).
24887 # These are the two extra sed commands mentioned above.
24888 (echo ':t
24889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24890 if test -z "$ac_sed_cmds"; then
24891 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24892 else
24893 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24894 fi
24895 ac_sed_frag=`expr $ac_sed_frag + 1`
24896 ac_beg=$ac_end
24897 ac_end=`expr $ac_end + $ac_max_sed_lines`
24898 fi
24899 done
24900 if test -z "$ac_sed_cmds"; then
24901 ac_sed_cmds=cat
24902 fi
24903 fi # test -n "$CONFIG_FILES"
24904
24905 _ACEOF
24906 cat >>$CONFIG_STATUS <<\_ACEOF
24907 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24909 case $ac_file in
24910 - | *:- | *:-:* ) # input from stdin
24911 cat >$tmp/stdin
24912 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24914 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24916 * ) ac_file_in=$ac_file.in ;;
24917 esac
24918
24919 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24920 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24921 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24922 X"$ac_file" : 'X\(//\)[^/]' \| \
24923 X"$ac_file" : 'X\(//\)$' \| \
24924 X"$ac_file" : 'X\(/\)' \| \
24925 . : '\(.\)' 2>/dev/null ||
24926 echo X"$ac_file" |
24927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24929 /^X\(\/\/\)$/{ s//\1/; q; }
24930 /^X\(\/\).*/{ s//\1/; q; }
24931 s/.*/./; q'`
24932 { if $as_mkdir_p; then
24933 mkdir -p "$ac_dir"
24934 else
24935 as_dir="$ac_dir"
24936 as_dirs=
24937 while test ! -d "$as_dir"; do
24938 as_dirs="$as_dir $as_dirs"
24939 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24941 X"$as_dir" : 'X\(//\)[^/]' \| \
24942 X"$as_dir" : 'X\(//\)$' \| \
24943 X"$as_dir" : 'X\(/\)' \| \
24944 . : '\(.\)' 2>/dev/null ||
24945 echo X"$as_dir" |
24946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24948 /^X\(\/\/\)$/{ s//\1/; q; }
24949 /^X\(\/\).*/{ s//\1/; q; }
24950 s/.*/./; q'`
24951 done
24952 test ! -n "$as_dirs" || mkdir $as_dirs
24953 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24954 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24955 { (exit 1); exit 1; }; }; }
24956
24957 ac_builddir=.
24958
24959 if test "$ac_dir" != .; then
24960 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24961 # A "../" for each directory in $ac_dir_suffix.
24962 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24963 else
24964 ac_dir_suffix= ac_top_builddir=
24965 fi
24966
24967 case $srcdir in
24968 .) # No --srcdir option. We are building in place.
24969 ac_srcdir=.
24970 if test -z "$ac_top_builddir"; then
24971 ac_top_srcdir=.
24972 else
24973 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24974 fi ;;
24975 [\\/]* | ?:[\\/]* ) # Absolute path.
24976 ac_srcdir=$srcdir$ac_dir_suffix;
24977 ac_top_srcdir=$srcdir ;;
24978 *) # Relative path.
24979 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24980 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24981 esac
24982
24983 # Do not use `cd foo && pwd` to compute absolute paths, because
24984 # the directories may not exist.
24985 case `pwd` in
24986 .) ac_abs_builddir="$ac_dir";;
24987 *)
24988 case "$ac_dir" in
24989 .) ac_abs_builddir=`pwd`;;
24990 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24991 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24992 esac;;
24993 esac
24994 case $ac_abs_builddir in
24995 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24996 *)
24997 case ${ac_top_builddir}. in
24998 .) ac_abs_top_builddir=$ac_abs_builddir;;
24999 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25000 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25001 esac;;
25002 esac
25003 case $ac_abs_builddir in
25004 .) ac_abs_srcdir=$ac_srcdir;;
25005 *)
25006 case $ac_srcdir in
25007 .) ac_abs_srcdir=$ac_abs_builddir;;
25008 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25009 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25010 esac;;
25011 esac
25012 case $ac_abs_builddir in
25013 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25014 *)
25015 case $ac_top_srcdir in
25016 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25017 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25018 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25019 esac;;
25020 esac
25021
25022
25023 case $INSTALL in
25024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25025 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25026 esac
25027
25028 if test x"$ac_file" != x-; then
25029 { echo "$as_me:$LINENO: creating $ac_file" >&5
25030 echo "$as_me: creating $ac_file" >&6;}
25031 rm -f "$ac_file"
25032 fi
25033 # Let's still pretend it is `configure' which instantiates (i.e., don't
25034 # use $as_me), people would be surprised to read:
25035 # /* config.h. Generated by config.status. */
25036 if test x"$ac_file" = x-; then
25037 configure_input=
25038 else
25039 configure_input="$ac_file. "
25040 fi
25041 configure_input=$configure_input"Generated from `echo $ac_file_in |
25042 sed 's,.*/,,'` by configure."
25043
25044 # First look for the input files in the build tree, otherwise in the
25045 # src tree.
25046 ac_file_inputs=`IFS=:
25047 for f in $ac_file_in; do
25048 case $f in
25049 -) echo $tmp/stdin ;;
25050 [\\/$]*)
25051 # Absolute (can't be DOS-style, as IFS=:)
25052 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25053 echo "$as_me: error: cannot find input file: $f" >&2;}
25054 { (exit 1); exit 1; }; }
25055 echo "$f";;
25056 *) # Relative
25057 if test -f "$f"; then
25058 # Build tree
25059 echo "$f"
25060 elif test -f "$srcdir/$f"; then
25061 # Source tree
25062 echo "$srcdir/$f"
25063 else
25064 # /dev/null tree
25065 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25066 echo "$as_me: error: cannot find input file: $f" >&2;}
25067 { (exit 1); exit 1; }; }
25068 fi;;
25069 esac
25070 done` || { (exit 1); exit 1; }
25071 _ACEOF
25072 cat >>$CONFIG_STATUS <<_ACEOF
25073 sed "$ac_vpsub
25074 $extrasub
25075 _ACEOF
25076 cat >>$CONFIG_STATUS <<\_ACEOF
25077 :t
25078 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25079 s,@configure_input@,$configure_input,;t t
25080 s,@srcdir@,$ac_srcdir,;t t
25081 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25082 s,@top_srcdir@,$ac_top_srcdir,;t t
25083 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25084 s,@builddir@,$ac_builddir,;t t
25085 s,@abs_builddir@,$ac_abs_builddir,;t t
25086 s,@top_builddir@,$ac_top_builddir,;t t
25087 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25088 s,@INSTALL@,$ac_INSTALL,;t t
25089 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25090 rm -f $tmp/stdin
25091 if test x"$ac_file" != x-; then
25092 mv $tmp/out $ac_file
25093 else
25094 cat $tmp/out
25095 rm -f $tmp/out
25096 fi
25097
25098 done
25099 _ACEOF
25100 cat >>$CONFIG_STATUS <<\_ACEOF
25101
25102 #
25103 # CONFIG_HEADER section.
25104 #
25105
25106 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25107 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25108 #
25109 # ac_d sets the value in "#define NAME VALUE" lines.
25110 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25111 ac_dB='[ ].*$,\1#\2'
25112 ac_dC=' '
25113 ac_dD=',;t'
25114 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25115 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25116 ac_uB='$,\1#\2define\3'
25117 ac_uC=' '
25118 ac_uD=',;t'
25119
25120 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25121 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25122 case $ac_file in
25123 - | *:- | *:-:* ) # input from stdin
25124 cat >$tmp/stdin
25125 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25127 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25128 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25129 * ) ac_file_in=$ac_file.in ;;
25130 esac
25131
25132 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25133 echo "$as_me: creating $ac_file" >&6;}
25134
25135 # First look for the input files in the build tree, otherwise in the
25136 # src tree.
25137 ac_file_inputs=`IFS=:
25138 for f in $ac_file_in; do
25139 case $f in
25140 -) echo $tmp/stdin ;;
25141 [\\/$]*)
25142 # Absolute (can't be DOS-style, as IFS=:)
25143 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25144 echo "$as_me: error: cannot find input file: $f" >&2;}
25145 { (exit 1); exit 1; }; }
25146 # Do quote $f, to prevent DOS paths from being IFS'd.
25147 echo "$f";;
25148 *) # Relative
25149 if test -f "$f"; then
25150 # Build tree
25151 echo "$f"
25152 elif test -f "$srcdir/$f"; then
25153 # Source tree
25154 echo "$srcdir/$f"
25155 else
25156 # /dev/null tree
25157 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25158 echo "$as_me: error: cannot find input file: $f" >&2;}
25159 { (exit 1); exit 1; }; }
25160 fi;;
25161 esac
25162 done` || { (exit 1); exit 1; }
25163 # Remove the trailing spaces.
25164 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25165
25166 _ACEOF
25167
25168 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25169 # `conftest.undefs', that substitutes the proper values into
25170 # config.h.in to produce config.h. The first handles `#define'
25171 # templates, and the second `#undef' templates.
25172 # And first: Protect against being on the right side of a sed subst in
25173 # config.status. Protect against being in an unquoted here document
25174 # in config.status.
25175 rm -f conftest.defines conftest.undefs
25176 # Using a here document instead of a string reduces the quoting nightmare.
25177 # Putting comments in sed scripts is not portable.
25178 #
25179 # `end' is used to avoid that the second main sed command (meant for
25180 # 0-ary CPP macros) applies to n-ary macro definitions.
25181 # See the Autoconf documentation for `clear'.
25182 cat >confdef2sed.sed <<\_ACEOF
25183 s/[\\&,]/\\&/g
25184 s,[\\$`],\\&,g
25185 t clear
25186 : clear
25187 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25188 t end
25189 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25190 : end
25191 _ACEOF
25192 # If some macros were called several times there might be several times
25193 # the same #defines, which is useless. Nevertheless, we may not want to
25194 # sort them, since we want the *last* AC-DEFINE to be honored.
25195 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25196 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25197 rm -f confdef2sed.sed
25198
25199 # This sed command replaces #undef with comments. This is necessary, for
25200 # example, in the case of _POSIX_SOURCE, which is predefined and required
25201 # on some systems where configure will not decide to define it.
25202 cat >>conftest.undefs <<\_ACEOF
25203 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25204 _ACEOF
25205
25206 # Break up conftest.defines because some shells have a limit on the size
25207 # of here documents, and old seds have small limits too (100 cmds).
25208 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25209 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25210 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25211 echo ' :' >>$CONFIG_STATUS
25212 rm -f conftest.tail
25213 while grep . conftest.defines >/dev/null
25214 do
25215 # Write a limited-size here document to $tmp/defines.sed.
25216 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25217 # Speed up: don't consider the non `#define' lines.
25218 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25219 # Work around the forget-to-reset-the-flag bug.
25220 echo 't clr' >>$CONFIG_STATUS
25221 echo ': clr' >>$CONFIG_STATUS
25222 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25223 echo 'CEOF
25224 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25225 rm -f $tmp/in
25226 mv $tmp/out $tmp/in
25227 ' >>$CONFIG_STATUS
25228 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25229 rm -f conftest.defines
25230 mv conftest.tail conftest.defines
25231 done
25232 rm -f conftest.defines
25233 echo ' fi # grep' >>$CONFIG_STATUS
25234 echo >>$CONFIG_STATUS
25235
25236 # Break up conftest.undefs because some shells have a limit on the size
25237 # of here documents, and old seds have small limits too (100 cmds).
25238 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25239 rm -f conftest.tail
25240 while grep . conftest.undefs >/dev/null
25241 do
25242 # Write a limited-size here document to $tmp/undefs.sed.
25243 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25244 # Speed up: don't consider the non `#undef'
25245 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25246 # Work around the forget-to-reset-the-flag bug.
25247 echo 't clr' >>$CONFIG_STATUS
25248 echo ': clr' >>$CONFIG_STATUS
25249 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25250 echo 'CEOF
25251 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25252 rm -f $tmp/in
25253 mv $tmp/out $tmp/in
25254 ' >>$CONFIG_STATUS
25255 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25256 rm -f conftest.undefs
25257 mv conftest.tail conftest.undefs
25258 done
25259 rm -f conftest.undefs
25260
25261 cat >>$CONFIG_STATUS <<\_ACEOF
25262 # Let's still pretend it is `configure' which instantiates (i.e., don't
25263 # use $as_me), people would be surprised to read:
25264 # /* config.h. Generated by config.status. */
25265 if test x"$ac_file" = x-; then
25266 echo "/* Generated by configure. */" >$tmp/config.h
25267 else
25268 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25269 fi
25270 cat $tmp/in >>$tmp/config.h
25271 rm -f $tmp/in
25272 if test x"$ac_file" != x-; then
25273 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25274 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25275 echo "$as_me: $ac_file is unchanged" >&6;}
25276 else
25277 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25278 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25279 X"$ac_file" : 'X\(//\)[^/]' \| \
25280 X"$ac_file" : 'X\(//\)$' \| \
25281 X"$ac_file" : 'X\(/\)' \| \
25282 . : '\(.\)' 2>/dev/null ||
25283 echo X"$ac_file" |
25284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25286 /^X\(\/\/\)$/{ s//\1/; q; }
25287 /^X\(\/\).*/{ s//\1/; q; }
25288 s/.*/./; q'`
25289 { if $as_mkdir_p; then
25290 mkdir -p "$ac_dir"
25291 else
25292 as_dir="$ac_dir"
25293 as_dirs=
25294 while test ! -d "$as_dir"; do
25295 as_dirs="$as_dir $as_dirs"
25296 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25298 X"$as_dir" : 'X\(//\)[^/]' \| \
25299 X"$as_dir" : 'X\(//\)$' \| \
25300 X"$as_dir" : 'X\(/\)' \| \
25301 . : '\(.\)' 2>/dev/null ||
25302 echo X"$as_dir" |
25303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25305 /^X\(\/\/\)$/{ s//\1/; q; }
25306 /^X\(\/\).*/{ s//\1/; q; }
25307 s/.*/./; q'`
25308 done
25309 test ! -n "$as_dirs" || mkdir $as_dirs
25310 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25311 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25312 { (exit 1); exit 1; }; }; }
25313
25314 rm -f $ac_file
25315 mv $tmp/config.h $ac_file
25316 fi
25317 else
25318 cat $tmp/config.h
25319 rm -f $tmp/config.h
25320 fi
25321 done
25322 _ACEOF
25323 cat >>$CONFIG_STATUS <<\_ACEOF
25324
25325 #
25326 # CONFIG_LINKS section.
25327 #
25328
25329 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25330 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25331 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25332
25333 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25334 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25335
25336 if test ! -r $srcdir/$ac_source; then
25337 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25338 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25339 { (exit 1); exit 1; }; }
25340 fi
25341 rm -f $ac_dest
25342
25343 # Make relative symlinks.
25344 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25345 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25346 X"$ac_dest" : 'X\(//\)[^/]' \| \
25347 X"$ac_dest" : 'X\(//\)$' \| \
25348 X"$ac_dest" : 'X\(/\)' \| \
25349 . : '\(.\)' 2>/dev/null ||
25350 echo X"$ac_dest" |
25351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25353 /^X\(\/\/\)$/{ s//\1/; q; }
25354 /^X\(\/\).*/{ s//\1/; q; }
25355 s/.*/./; q'`
25356 { if $as_mkdir_p; then
25357 mkdir -p "$ac_dest_dir"
25358 else
25359 as_dir="$ac_dest_dir"
25360 as_dirs=
25361 while test ! -d "$as_dir"; do
25362 as_dirs="$as_dir $as_dirs"
25363 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25365 X"$as_dir" : 'X\(//\)[^/]' \| \
25366 X"$as_dir" : 'X\(//\)$' \| \
25367 X"$as_dir" : 'X\(/\)' \| \
25368 . : '\(.\)' 2>/dev/null ||
25369 echo X"$as_dir" |
25370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25372 /^X\(\/\/\)$/{ s//\1/; q; }
25373 /^X\(\/\).*/{ s//\1/; q; }
25374 s/.*/./; q'`
25375 done
25376 test ! -n "$as_dirs" || mkdir $as_dirs
25377 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25378 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25379 { (exit 1); exit 1; }; }; }
25380
25381 ac_builddir=.
25382
25383 if test "$ac_dest_dir" != .; then
25384 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25385 # A "../" for each directory in $ac_dir_suffix.
25386 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25387 else
25388 ac_dir_suffix= ac_top_builddir=
25389 fi
25390
25391 case $srcdir in
25392 .) # No --srcdir option. We are building in place.
25393 ac_srcdir=.
25394 if test -z "$ac_top_builddir"; then
25395 ac_top_srcdir=.
25396 else
25397 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25398 fi ;;
25399 [\\/]* | ?:[\\/]* ) # Absolute path.
25400 ac_srcdir=$srcdir$ac_dir_suffix;
25401 ac_top_srcdir=$srcdir ;;
25402 *) # Relative path.
25403 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25404 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25405 esac
25406
25407 # Do not use `cd foo && pwd` to compute absolute paths, because
25408 # the directories may not exist.
25409 case `pwd` in
25410 .) ac_abs_builddir="$ac_dest_dir";;
25411 *)
25412 case "$ac_dest_dir" in
25413 .) ac_abs_builddir=`pwd`;;
25414 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25415 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25416 esac;;
25417 esac
25418 case $ac_abs_builddir in
25419 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25420 *)
25421 case ${ac_top_builddir}. in
25422 .) ac_abs_top_builddir=$ac_abs_builddir;;
25423 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25424 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25425 esac;;
25426 esac
25427 case $ac_abs_builddir in
25428 .) ac_abs_srcdir=$ac_srcdir;;
25429 *)
25430 case $ac_srcdir in
25431 .) ac_abs_srcdir=$ac_abs_builddir;;
25432 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25433 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25434 esac;;
25435 esac
25436 case $ac_abs_builddir in
25437 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25438 *)
25439 case $ac_top_srcdir in
25440 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25441 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25442 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25443 esac;;
25444 esac
25445
25446
25447 case $srcdir in
25448 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25449 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25450 esac
25451
25452 # Try a symlink, then a hard link, then a copy.
25453 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25454 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25455 cp -p $srcdir/$ac_source $ac_dest ||
25456 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25457 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25458 { (exit 1); exit 1; }; }
25459 done
25460 _ACEOF
25461 cat >>$CONFIG_STATUS <<\_ACEOF
25462
25463 #
25464 # CONFIG_COMMANDS section.
25465 #
25466 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25467 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25468 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25469 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25470 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25471 X"$ac_dest" : 'X\(//\)[^/]' \| \
25472 X"$ac_dest" : 'X\(//\)$' \| \
25473 X"$ac_dest" : 'X\(/\)' \| \
25474 . : '\(.\)' 2>/dev/null ||
25475 echo X"$ac_dest" |
25476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25477 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25478 /^X\(\/\/\)$/{ s//\1/; q; }
25479 /^X\(\/\).*/{ s//\1/; q; }
25480 s/.*/./; q'`
25481 { if $as_mkdir_p; then
25482 mkdir -p "$ac_dir"
25483 else
25484 as_dir="$ac_dir"
25485 as_dirs=
25486 while test ! -d "$as_dir"; do
25487 as_dirs="$as_dir $as_dirs"
25488 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25489 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25490 X"$as_dir" : 'X\(//\)[^/]' \| \
25491 X"$as_dir" : 'X\(//\)$' \| \
25492 X"$as_dir" : 'X\(/\)' \| \
25493 . : '\(.\)' 2>/dev/null ||
25494 echo X"$as_dir" |
25495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25497 /^X\(\/\/\)$/{ s//\1/; q; }
25498 /^X\(\/\).*/{ s//\1/; q; }
25499 s/.*/./; q'`
25500 done
25501 test ! -n "$as_dirs" || mkdir $as_dirs
25502 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25503 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25504 { (exit 1); exit 1; }; }; }
25505
25506 ac_builddir=.
25507
25508 if test "$ac_dir" != .; then
25509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25510 # A "../" for each directory in $ac_dir_suffix.
25511 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25512 else
25513 ac_dir_suffix= ac_top_builddir=
25514 fi
25515
25516 case $srcdir in
25517 .) # No --srcdir option. We are building in place.
25518 ac_srcdir=.
25519 if test -z "$ac_top_builddir"; then
25520 ac_top_srcdir=.
25521 else
25522 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25523 fi ;;
25524 [\\/]* | ?:[\\/]* ) # Absolute path.
25525 ac_srcdir=$srcdir$ac_dir_suffix;
25526 ac_top_srcdir=$srcdir ;;
25527 *) # Relative path.
25528 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25529 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25530 esac
25531
25532 # Do not use `cd foo && pwd` to compute absolute paths, because
25533 # the directories may not exist.
25534 case `pwd` in
25535 .) ac_abs_builddir="$ac_dir";;
25536 *)
25537 case "$ac_dir" in
25538 .) ac_abs_builddir=`pwd`;;
25539 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25540 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25541 esac;;
25542 esac
25543 case $ac_abs_builddir in
25544 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25545 *)
25546 case ${ac_top_builddir}. in
25547 .) ac_abs_top_builddir=$ac_abs_builddir;;
25548 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25549 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25550 esac;;
25551 esac
25552 case $ac_abs_builddir in
25553 .) ac_abs_srcdir=$ac_srcdir;;
25554 *)
25555 case $ac_srcdir in
25556 .) ac_abs_srcdir=$ac_abs_builddir;;
25557 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25558 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25559 esac;;
25560 esac
25561 case $ac_abs_builddir in
25562 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25563 *)
25564 case $ac_top_srcdir in
25565 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25566 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25567 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25568 esac;;
25569 esac
25570
25571
25572 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25573 echo "$as_me: executing $ac_dest commands" >&6;}
25574 case $ac_dest in
25575 gdb_stdint.h )
25576 if test "$GCC" = yes; then
25577 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25578 else
25579 echo "/* generated for $CC */" > tmp-stdint.h
25580 fi
25581
25582 sed 's/^ *//' >> tmp-stdint.h <<EOF
25583
25584 #ifndef GCC_GENERATED_STDINT_H
25585 #define GCC_GENERATED_STDINT_H 1
25586
25587 #include <sys/types.h>
25588 EOF
25589
25590 if test "$acx_cv_header_stdint" != stdint.h; then
25591 echo "#include <stddef.h>" >> tmp-stdint.h
25592 fi
25593 if test "$acx_cv_header_stdint" != stddef.h; then
25594 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25595 fi
25596
25597 sed 's/^ *//' >> tmp-stdint.h <<EOF
25598 /* glibc uses these symbols as guards to prevent redefinitions. */
25599 #ifdef __int8_t_defined
25600 #define _INT8_T
25601 #define _INT16_T
25602 #define _INT32_T
25603 #endif
25604 #ifdef __uint32_t_defined
25605 #define _UINT32_T
25606 #endif
25607
25608 EOF
25609
25610 # ----------------- done header, emit basic int types -------------
25611 if test "$acx_cv_header_stdint" = stddef.h; then
25612 sed 's/^ *//' >> tmp-stdint.h <<EOF
25613
25614 #ifndef _UINT8_T
25615 #define _UINT8_T
25616 #ifndef __uint8_t_defined
25617 #define __uint8_t_defined
25618 typedef unsigned $acx_cv_type_int8_t uint8_t;
25619 #endif
25620 #endif
25621
25622 #ifndef _UINT16_T
25623 #define _UINT16_T
25624 #ifndef __uint16_t_defined
25625 #define __uint16_t_defined
25626 typedef unsigned $acx_cv_type_int16_t uint16_t;
25627 #endif
25628 #endif
25629
25630 #ifndef _UINT32_T
25631 #define _UINT32_T
25632 #ifndef __uint32_t_defined
25633 #define __uint32_t_defined
25634 typedef unsigned $acx_cv_type_int32_t uint32_t;
25635 #endif
25636 #endif
25637
25638 #ifndef _INT8_T
25639 #define _INT8_T
25640 #ifndef __int8_t_defined
25641 #define __int8_t_defined
25642 typedef $acx_cv_type_int8_t int8_t;
25643 #endif
25644 #endif
25645
25646 #ifndef _INT16_T
25647 #define _INT16_T
25648 #ifndef __int16_t_defined
25649 #define __int16_t_defined
25650 typedef $acx_cv_type_int16_t int16_t;
25651 #endif
25652 #endif
25653
25654 #ifndef _INT32_T
25655 #define _INT32_T
25656 #ifndef __int32_t_defined
25657 #define __int32_t_defined
25658 typedef $acx_cv_type_int32_t int32_t;
25659 #endif
25660 #endif
25661 EOF
25662 elif test "$ac_cv_type_u_int32_t" = yes; then
25663 sed 's/^ *//' >> tmp-stdint.h <<EOF
25664
25665 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25666 #ifndef _INT8_T
25667 #define _INT8_T
25668 #endif
25669 #ifndef _INT16_T
25670 #define _INT16_T
25671 #endif
25672 #ifndef _INT32_T
25673 #define _INT32_T
25674 #endif
25675
25676 #ifndef _UINT8_T
25677 #define _UINT8_T
25678 #ifndef __uint8_t_defined
25679 #define __uint8_t_defined
25680 typedef u_int8_t uint8_t;
25681 #endif
25682 #endif
25683
25684 #ifndef _UINT16_T
25685 #define _UINT16_T
25686 #ifndef __uint16_t_defined
25687 #define __uint16_t_defined
25688 typedef u_int16_t uint16_t;
25689 #endif
25690 #endif
25691
25692 #ifndef _UINT32_T
25693 #define _UINT32_T
25694 #ifndef __uint32_t_defined
25695 #define __uint32_t_defined
25696 typedef u_int32_t uint32_t;
25697 #endif
25698 #endif
25699 EOF
25700 else
25701 sed 's/^ *//' >> tmp-stdint.h <<EOF
25702
25703 /* Some systems have guard macros to prevent redefinitions, define them. */
25704 #ifndef _INT8_T
25705 #define _INT8_T
25706 #endif
25707 #ifndef _INT16_T
25708 #define _INT16_T
25709 #endif
25710 #ifndef _INT32_T
25711 #define _INT32_T
25712 #endif
25713 #ifndef _UINT8_T
25714 #define _UINT8_T
25715 #endif
25716 #ifndef _UINT16_T
25717 #define _UINT16_T
25718 #endif
25719 #ifndef _UINT32_T
25720 #define _UINT32_T
25721 #endif
25722 EOF
25723 fi
25724
25725 # ------------- done basic int types, emit int64_t types ------------
25726 if test "$ac_cv_type_uint64_t" = yes; then
25727 sed 's/^ *//' >> tmp-stdint.h <<EOF
25728
25729 /* system headers have good uint64_t and int64_t */
25730 #ifndef _INT64_T
25731 #define _INT64_T
25732 #endif
25733 #ifndef _UINT64_T
25734 #define _UINT64_T
25735 #endif
25736 EOF
25737 elif test "$ac_cv_type_u_int64_t" = yes; then
25738 sed 's/^ *//' >> tmp-stdint.h <<EOF
25739
25740 /* system headers have an u_int64_t (and int64_t) */
25741 #ifndef _INT64_T
25742 #define _INT64_T
25743 #endif
25744 #ifndef _UINT64_T
25745 #define _UINT64_T
25746 #ifndef __uint64_t_defined
25747 #define __uint64_t_defined
25748 typedef u_int64_t uint64_t;
25749 #endif
25750 #endif
25751 EOF
25752 elif test -n "$acx_cv_type_int64_t"; then
25753 sed 's/^ *//' >> tmp-stdint.h <<EOF
25754
25755 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25756 #ifndef _INT64_T
25757 #define _INT64_T
25758 typedef $acx_cv_type_int64_t int64_t;
25759 #endif
25760 #ifndef _UINT64_T
25761 #define _UINT64_T
25762 #ifndef __uint64_t_defined
25763 #define __uint64_t_defined
25764 typedef unsigned $acx_cv_type_int64_t uint64_t;
25765 #endif
25766 #endif
25767 EOF
25768 else
25769 sed 's/^ *//' >> tmp-stdint.h <<EOF
25770
25771 /* some common heuristics for int64_t, using compiler-specific tests */
25772 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
25773 #ifndef _INT64_T
25774 #define _INT64_T
25775 #ifndef __int64_t_defined
25776 typedef long long int64_t;
25777 #endif
25778 #endif
25779 #ifndef _UINT64_T
25780 #define _UINT64_T
25781 typedef unsigned long long uint64_t;
25782 #endif
25783
25784 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
25785 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
25786 does not implement __extension__. But that compiler doesn't define
25787 __GNUC_MINOR__. */
25788 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
25789 # define __extension__
25790 # endif
25791
25792 # ifndef _INT64_T
25793 # define _INT64_T
25794 __extension__ typedef long long int64_t;
25795 # endif
25796 # ifndef _UINT64_T
25797 # define _UINT64_T
25798 __extension__ typedef unsigned long long uint64_t;
25799 # endif
25800
25801 #elif !defined __STRICT_ANSI__
25802 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
25803
25804 # ifndef _INT64_T
25805 # define _INT64_T
25806 typedef __int64 int64_t;
25807 # endif
25808 # ifndef _UINT64_T
25809 # define _UINT64_T
25810 typedef unsigned __int64 uint64_t;
25811 # endif
25812 # endif /* compiler */
25813
25814 #endif /* ANSI version */
25815 EOF
25816 fi
25817
25818 # ------------- done int64_t types, emit intptr types ------------
25819 if test "$ac_cv_type_uintptr_t" != yes; then
25820 sed 's/^ *//' >> tmp-stdint.h <<EOF
25821
25822 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
25823 #ifndef __uintptr_t_defined
25824 typedef u$acx_cv_type_intptr_t uintptr_t;
25825 #endif
25826 #ifndef __intptr_t_defined
25827 typedef $acx_cv_type_intptr_t intptr_t;
25828 #endif
25829 EOF
25830 fi
25831
25832 # ------------- done intptr types, emit int_least types ------------
25833 if test "$ac_cv_type_int_least32_t" != yes; then
25834 sed 's/^ *//' >> tmp-stdint.h <<EOF
25835
25836 /* Define int_least types */
25837 typedef int8_t int_least8_t;
25838 typedef int16_t int_least16_t;
25839 typedef int32_t int_least32_t;
25840 #ifdef _INT64_T
25841 typedef int64_t int_least64_t;
25842 #endif
25843
25844 typedef uint8_t uint_least8_t;
25845 typedef uint16_t uint_least16_t;
25846 typedef uint32_t uint_least32_t;
25847 #ifdef _UINT64_T
25848 typedef uint64_t uint_least64_t;
25849 #endif
25850 EOF
25851 fi
25852
25853 # ------------- done intptr types, emit int_fast types ------------
25854 if test "$ac_cv_type_int_fast32_t" != yes; then
25855 sed 's/^ *//' >> tmp-stdint.h <<EOF
25856
25857 /* Define int_fast types. short is often slow */
25858 typedef int8_t int_fast8_t;
25859 typedef int int_fast16_t;
25860 typedef int32_t int_fast32_t;
25861 #ifdef _INT64_T
25862 typedef int64_t int_fast64_t;
25863 #endif
25864
25865 typedef uint8_t uint_fast8_t;
25866 typedef unsigned int uint_fast16_t;
25867 typedef uint32_t uint_fast32_t;
25868 #ifdef _UINT64_T
25869 typedef uint64_t uint_fast64_t;
25870 #endif
25871 EOF
25872 fi
25873
25874 if test "$ac_cv_type_uintmax_t" != yes; then
25875 sed 's/^ *//' >> tmp-stdint.h <<EOF
25876
25877 /* Define intmax based on what we found */
25878 #ifdef _INT64_T
25879 typedef int64_t intmax_t;
25880 #else
25881 typedef long intmax_t;
25882 #endif
25883 #ifdef _UINT64_T
25884 typedef uint64_t uintmax_t;
25885 #else
25886 typedef unsigned long uintmax_t;
25887 #endif
25888 EOF
25889 fi
25890
25891 sed 's/^ *//' >> tmp-stdint.h <<EOF
25892
25893 #endif /* GCC_GENERATED_STDINT_H */
25894 EOF
25895
25896 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
25897 rm -f tmp-stdint.h
25898 else
25899 mv -f tmp-stdint.h gdb_stdint.h
25900 fi
25901
25902 ;;
25903 default )
25904
25905 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
25906 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
25907 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
25908 mv -f Makefile.tmp Makefile
25909
25910
25911 case x$CONFIG_HEADERS in
25912 xconfig.h:config.in)
25913 echo > stamp-h ;;
25914 esac
25915 ;;
25916 esac
25917 done
25918 _ACEOF
25919
25920 cat >>$CONFIG_STATUS <<\_ACEOF
25921
25922 { (exit 0); exit 0; }
25923 _ACEOF
25924 chmod +x $CONFIG_STATUS
25925 ac_clean_files=$ac_clean_files_save
25926
25927
25928 # configure is writing to config.log, and then calls config.status.
25929 # config.status does its own redirection, appending to config.log.
25930 # Unfortunately, on DOS this fails, as config.log is still kept open
25931 # by configure, so config.status won't be able to write to it; its
25932 # output is simply discarded. So we exec the FD to /dev/null,
25933 # effectively closing config.log, so it can be properly (re)opened and
25934 # appended to by config.status. When coming back to configure, we
25935 # need to make the FD available again.
25936 if test "$no_create" != yes; then
25937 ac_cs_success=:
25938 ac_config_status_args=
25939 test "$silent" = yes &&
25940 ac_config_status_args="$ac_config_status_args --quiet"
25941 exec 5>/dev/null
25942 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25943 exec 5>>config.log
25944 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25945 # would make configure fail if this is the last instruction.
25946 $ac_cs_success || { (exit 1); exit 1; }
25947 fi
25948
25949 #
25950 # CONFIG_SUBDIRS section.
25951 #
25952 if test "$no_recursion" != yes; then
25953
25954 # Remove --cache-file and --srcdir arguments so they do not pile up.
25955 ac_sub_configure_args=
25956 ac_prev=
25957 for ac_arg in $ac_configure_args; do
25958 if test -n "$ac_prev"; then
25959 ac_prev=
25960 continue
25961 fi
25962 case $ac_arg in
25963 -cache-file | --cache-file | --cache-fil | --cache-fi \
25964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25965 ac_prev=cache_file ;;
25966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25968 | --c=*)
25969 ;;
25970 --config-cache | -C)
25971 ;;
25972 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25973 ac_prev=srcdir ;;
25974 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25975 ;;
25976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25977 ac_prev=prefix ;;
25978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25979 ;;
25980 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25981 esac
25982 done
25983
25984 # Always prepend --prefix to ensure using the same prefix
25985 # in subdir configurations.
25986 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25987
25988 ac_popdir=`pwd`
25989 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25990
25991 # Do not complain, so a configure script can configure whichever
25992 # parts of a large source tree are present.
25993 test -d $srcdir/$ac_dir || continue
25994
25995 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25996 echo "$as_me: configuring in $ac_dir" >&6;}
25997 { if $as_mkdir_p; then
25998 mkdir -p "$ac_dir"
25999 else
26000 as_dir="$ac_dir"
26001 as_dirs=
26002 while test ! -d "$as_dir"; do
26003 as_dirs="$as_dir $as_dirs"
26004 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26006 X"$as_dir" : 'X\(//\)[^/]' \| \
26007 X"$as_dir" : 'X\(//\)$' \| \
26008 X"$as_dir" : 'X\(/\)' \| \
26009 . : '\(.\)' 2>/dev/null ||
26010 echo X"$as_dir" |
26011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26013 /^X\(\/\/\)$/{ s//\1/; q; }
26014 /^X\(\/\).*/{ s//\1/; q; }
26015 s/.*/./; q'`
26016 done
26017 test ! -n "$as_dirs" || mkdir $as_dirs
26018 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26019 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26020 { (exit 1); exit 1; }; }; }
26021
26022 ac_builddir=.
26023
26024 if test "$ac_dir" != .; then
26025 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26026 # A "../" for each directory in $ac_dir_suffix.
26027 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26028 else
26029 ac_dir_suffix= ac_top_builddir=
26030 fi
26031
26032 case $srcdir in
26033 .) # No --srcdir option. We are building in place.
26034 ac_srcdir=.
26035 if test -z "$ac_top_builddir"; then
26036 ac_top_srcdir=.
26037 else
26038 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26039 fi ;;
26040 [\\/]* | ?:[\\/]* ) # Absolute path.
26041 ac_srcdir=$srcdir$ac_dir_suffix;
26042 ac_top_srcdir=$srcdir ;;
26043 *) # Relative path.
26044 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26045 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26046 esac
26047
26048 # Do not use `cd foo && pwd` to compute absolute paths, because
26049 # the directories may not exist.
26050 case `pwd` in
26051 .) ac_abs_builddir="$ac_dir";;
26052 *)
26053 case "$ac_dir" in
26054 .) ac_abs_builddir=`pwd`;;
26055 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26056 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26057 esac;;
26058 esac
26059 case $ac_abs_builddir in
26060 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26061 *)
26062 case ${ac_top_builddir}. in
26063 .) ac_abs_top_builddir=$ac_abs_builddir;;
26064 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26065 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26066 esac;;
26067 esac
26068 case $ac_abs_builddir in
26069 .) ac_abs_srcdir=$ac_srcdir;;
26070 *)
26071 case $ac_srcdir in
26072 .) ac_abs_srcdir=$ac_abs_builddir;;
26073 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26074 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26075 esac;;
26076 esac
26077 case $ac_abs_builddir in
26078 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26079 *)
26080 case $ac_top_srcdir in
26081 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26082 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26083 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26084 esac;;
26085 esac
26086
26087
26088 cd $ac_dir
26089
26090 # Check for guested configure; otherwise get Cygnus style configure.
26091 if test -f $ac_srcdir/configure.gnu; then
26092 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26093 elif test -f $ac_srcdir/configure; then
26094 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26095 elif test -f $ac_srcdir/configure.in; then
26096 ac_sub_configure=$ac_configure
26097 else
26098 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26099 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26100 ac_sub_configure=
26101 fi
26102
26103 # The recursion is here.
26104 if test -n "$ac_sub_configure"; then
26105 # Make the cache file name correct relative to the subdirectory.
26106 case $cache_file in
26107 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26108 *) # Relative path.
26109 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26110 esac
26111
26112 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26113 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26114 # The eval makes quoting arguments work.
26115 eval $ac_sub_configure $ac_sub_configure_args \
26116 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26117 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26118 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26119 { (exit 1); exit 1; }; }
26120 fi
26121
26122 cd $ac_popdir
26123 done
26124 fi
26125
26126
26127 exit 0
This page took 0.802303 seconds and 5 git commands to generate.