* dwarf2-frame.c (struct dwarf2_cie): Add signal_frame field.
[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 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subdirs_all="$ac_subdirs_all doc testsuite"
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 SET_MAKE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
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-nls do not use Native Language Support
864 --disable-gdbcli disable command-line interface (CLI)
865 --disable-gdbmi disable machine-interface (MI)
866 --enable-tui enable full-screen terminal user interface (TUI)
867 --enable-gdbtk enable gdbtk graphical user interface (GUI)
868 --enable-profiling enable profiling of GDB
869 --enable-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-included-gettext use the GNU gettext library included here
879 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
880 --with-libunwind Use libunwind frame unwinding support
881 --without-included-regex don't use included regex; this is the default
882 on systems with version 2 of the GNU C library
883 (use with caution on other system)
884 --with-sysroot=DIR Search for usr/lib et al within DIR.
885 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
886 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
887 --with-tclinclude=DIR Directory where tcl private headers are
888 --with-tkinclude=DIR Directory where tk private headers are
889 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
890 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
891 --with-x use the X Window System
892 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
893
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
901 CPP C preprocessor
902
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
905
906 _ACEOF
907 fi
908
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
911 ac_popdir=`pwd`
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
914 ac_builddir=.
915
916 if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920 else
921 ac_dir_suffix= ac_top_builddir=
922 fi
923
924 case $srcdir in
925 .) # No --srcdir option. We are building in place.
926 ac_srcdir=.
927 if test -z "$ac_top_builddir"; then
928 ac_top_srcdir=.
929 else
930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931 fi ;;
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
935 *) # Relative path.
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
938 esac
939
940 # Do not use `cd foo && pwd` to compute absolute paths, because
941 # the directories may not exist.
942 case `pwd` in
943 .) ac_abs_builddir="$ac_dir";;
944 *)
945 case "$ac_dir" in
946 .) ac_abs_builddir=`pwd`;;
947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
949 esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
953 *)
954 case ${ac_top_builddir}. in
955 .) ac_abs_top_builddir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
958 esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_srcdir=$ac_srcdir;;
962 *)
963 case $ac_srcdir in
964 .) ac_abs_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
967 esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
971 *)
972 case $ac_top_srcdir in
973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
976 esac;;
977 esac
978
979 cd $ac_dir
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu; then
982 echo
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
985 echo
986 $SHELL $ac_srcdir/configure --help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
989 echo
990 $ac_configure --help
991 else
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
993 fi
994 cd $ac_popdir
995 done
996 fi
997
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1000 cat <<\_ACEOF
1001
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1005 _ACEOF
1006 exit 0
1007 fi
1008 exec 5>config.log
1009 cat >&5 <<_ACEOF
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1012
1013 It was created by $as_me, which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1015
1016 $ $0 $@
1017
1018 _ACEOF
1019 {
1020 cat <<_ASUNAME
1021 ## --------- ##
1022 ## Platform. ##
1023 ## --------- ##
1024
1025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1030
1031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1033
1034 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1035 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1038 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1039 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1040 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1041
1042 _ASUNAME
1043
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 for as_dir in $PATH
1046 do
1047 IFS=$as_save_IFS
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1050 done
1051
1052 } >&5
1053
1054 cat >&5 <<_ACEOF
1055
1056
1057 ## ----------- ##
1058 ## Core tests. ##
1059 ## ----------- ##
1060
1061 _ACEOF
1062
1063
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1069 ac_configure_args=
1070 ac_configure_args0=
1071 ac_configure_args1=
1072 ac_sep=
1073 ac_must_keep_next=false
1074 for ac_pass in 1 2
1075 do
1076 for ac_arg
1077 do
1078 case $ac_arg in
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 continue ;;
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1085 esac
1086 case $ac_pass in
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1088 2)
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1092 else
1093 case $ac_arg in
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1100 esac
1101 ;;
1102 -* ) ac_must_keep_next=true ;;
1103 esac
1104 fi
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1107 ac_sep=" "
1108 ;;
1109 esac
1110 done
1111 done
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1114
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close' the trap.
1120 trap 'exit_status=$?
1121 # Save into config.log some information that might help in debugging.
1122 {
1123 echo
1124
1125 cat <<\_ASBOX
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1129 _ASBOX
1130 echo
1131 # The following way of writing the cache mishandles newlines in values,
1132 {
1133 (set) 2>&1 |
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1135 *ac_space=\ *)
1136 sed -n \
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 ;;
1140 *)
1141 sed -n \
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1143 ;;
1144 esac;
1145 }
1146 echo
1147
1148 cat <<\_ASBOX
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_vars
1155 do
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1160
1161 if test -n "$ac_subst_files"; then
1162 cat <<\_ASBOX
1163 ## ------------- ##
1164 ## Output files. ##
1165 ## ------------- ##
1166 _ASBOX
1167 echo
1168 for ac_var in $ac_subst_files
1169 do
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1172 done | sort
1173 echo
1174 fi
1175
1176 if test -s confdefs.h; then
1177 cat <<\_ASBOX
1178 ## ----------- ##
1179 ## confdefs.h. ##
1180 ## ----------- ##
1181 _ASBOX
1182 echo
1183 sed "/^$/d" confdefs.h | sort
1184 echo
1185 fi
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1189 } >&5
1190 rm -f core *.core &&
1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1192 exit $exit_status
1193 ' 0
1194 for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 done
1197 ac_signal=0
1198
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1202 echo >confdefs.h
1203
1204 # Predefined preprocessor variables.
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 _ACEOF
1229
1230
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236 else
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1238 fi
1239 fi
1240 for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's/^/| /' "$ac_site_file" >&5
1245 . "$ac_site_file"
1246 fi
1247 done
1248
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1255 case $cache_file in
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1258 esac
1259 fi
1260 else
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1263 >$cache_file
1264 fi
1265
1266 # Check that the precious variables saved in the cache have kept the same
1267 # value.
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1276 set,)
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279 ac_cache_corrupted=: ;;
1280 ,set)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,);;
1285 *)
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290 echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292 echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1294 fi;;
1295 esac
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1298 case $ac_new_val in
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1302 esac
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 esac
1307 fi
1308 done
1309 if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
1315 fi
1316
1317 ac_ext=c
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341 ac_config_headers="$ac_config_headers config.h:config.in"
1342
1343 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1344 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1345 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1346 if test "${enable_maintainer_mode+set}" = set; then
1347 enableval="$enable_maintainer_mode"
1348 USE_MAINTAINER_MODE=$enableval
1349 else
1350 USE_MAINTAINER_MODE=no
1351 fi;
1352 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1353 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1354
1355
1356 if test $USE_MAINTAINER_MODE = yes; then
1357 MAINTAINER_MODE_TRUE=
1358 MAINTAINER_MODE_FALSE='#'
1359 else
1360 MAINTAINER_MODE_TRUE='#'
1361 MAINTAINER_MODE_FALSE=
1362 fi
1363
1364 MAINT=$MAINTAINER_MODE_TRUE
1365
1366
1367
1368 ac_ext=c
1369 ac_cpp='$CPP $CPPFLAGS'
1370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1373 if test -n "$ac_tool_prefix"; then
1374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1375 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381 if test -n "$CC"; then
1382 ac_cv_prog_CC="$CC" # Let the user override the test.
1383 else
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 for as_dir in $PATH
1386 do
1387 IFS=$as_save_IFS
1388 test -z "$as_dir" && as_dir=.
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 break 2
1394 fi
1395 done
1396 done
1397
1398 fi
1399 fi
1400 CC=$ac_cv_prog_CC
1401 if test -n "$CC"; then
1402 echo "$as_me:$LINENO: result: $CC" >&5
1403 echo "${ECHO_T}$CC" >&6
1404 else
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 fi
1408
1409 fi
1410 if test -z "$ac_cv_prog_CC"; then
1411 ac_ct_CC=$CC
1412 # Extract the first word of "gcc", so it can be a program name with args.
1413 set dummy gcc; ac_word=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419 if test -n "$ac_ct_CC"; then
1420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1421 else
1422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1423 for as_dir in $PATH
1424 do
1425 IFS=$as_save_IFS
1426 test -z "$as_dir" && as_dir=.
1427 for ac_exec_ext in '' $ac_executable_extensions; do
1428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1429 ac_cv_prog_ac_ct_CC="gcc"
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1431 break 2
1432 fi
1433 done
1434 done
1435
1436 fi
1437 fi
1438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1439 if test -n "$ac_ct_CC"; then
1440 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1441 echo "${ECHO_T}$ac_ct_CC" >&6
1442 else
1443 echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1445 fi
1446
1447 CC=$ac_ct_CC
1448 else
1449 CC="$ac_cv_prog_CC"
1450 fi
1451
1452 if test -z "$CC"; then
1453 if test -n "$ac_tool_prefix"; then
1454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1455 set dummy ${ac_tool_prefix}cc; ac_word=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_CC+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461 if test -n "$CC"; then
1462 ac_cv_prog_CC="$CC" # Let the user override the test.
1463 else
1464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465 for as_dir in $PATH
1466 do
1467 IFS=$as_save_IFS
1468 test -z "$as_dir" && as_dir=.
1469 for ac_exec_ext in '' $ac_executable_extensions; do
1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471 ac_cv_prog_CC="${ac_tool_prefix}cc"
1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 break 2
1474 fi
1475 done
1476 done
1477
1478 fi
1479 fi
1480 CC=$ac_cv_prog_CC
1481 if test -n "$CC"; then
1482 echo "$as_me:$LINENO: result: $CC" >&5
1483 echo "${ECHO_T}$CC" >&6
1484 else
1485 echo "$as_me:$LINENO: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1487 fi
1488
1489 fi
1490 if test -z "$ac_cv_prog_CC"; then
1491 ac_ct_CC=$CC
1492 # Extract the first word of "cc", so it can be a program name with args.
1493 set dummy cc; ac_word=$2
1494 echo "$as_me:$LINENO: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 else
1499 if test -n "$ac_ct_CC"; then
1500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1501 else
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1504 do
1505 IFS=$as_save_IFS
1506 test -z "$as_dir" && as_dir=.
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509 ac_cv_prog_ac_ct_CC="cc"
1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1511 break 2
1512 fi
1513 done
1514 done
1515
1516 fi
1517 fi
1518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1519 if test -n "$ac_ct_CC"; then
1520 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1521 echo "${ECHO_T}$ac_ct_CC" >&6
1522 else
1523 echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1525 fi
1526
1527 CC=$ac_ct_CC
1528 else
1529 CC="$ac_cv_prog_CC"
1530 fi
1531
1532 fi
1533 if test -z "$CC"; then
1534 # Extract the first word of "cc", so it can be a program name with args.
1535 set dummy cc; ac_word=$2
1536 echo "$as_me:$LINENO: checking for $ac_word" >&5
1537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538 if test "${ac_cv_prog_CC+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 else
1541 if test -n "$CC"; then
1542 ac_cv_prog_CC="$CC" # Let the user override the test.
1543 else
1544 ac_prog_rejected=no
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 for as_dir in $PATH
1547 do
1548 IFS=$as_save_IFS
1549 test -z "$as_dir" && as_dir=.
1550 for ac_exec_ext in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1553 ac_prog_rejected=yes
1554 continue
1555 fi
1556 ac_cv_prog_CC="cc"
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558 break 2
1559 fi
1560 done
1561 done
1562
1563 if test $ac_prog_rejected = yes; then
1564 # We found a bogon in the path, so make sure we never use it.
1565 set dummy $ac_cv_prog_CC
1566 shift
1567 if test $# != 0; then
1568 # We chose a different compiler from the bogus one.
1569 # However, it has the same basename, so the bogon will be chosen
1570 # first if we set CC to just the basename; use the full file name.
1571 shift
1572 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1573 fi
1574 fi
1575 fi
1576 fi
1577 CC=$ac_cv_prog_CC
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1581 else
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584 fi
1585
1586 fi
1587 if test -z "$CC"; then
1588 if test -n "$ac_tool_prefix"; then
1589 for ac_prog in cl
1590 do
1591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 else
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 break 2
1611 fi
1612 done
1613 done
1614
1615 fi
1616 fi
1617 CC=$ac_cv_prog_CC
1618 if test -n "$CC"; then
1619 echo "$as_me:$LINENO: result: $CC" >&5
1620 echo "${ECHO_T}$CC" >&6
1621 else
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1624 fi
1625
1626 test -n "$CC" && break
1627 done
1628 fi
1629 if test -z "$CC"; then
1630 ac_ct_CC=$CC
1631 for ac_prog in cl
1632 do
1633 # Extract the first word of "$ac_prog", so it can be a program name with args.
1634 set dummy $ac_prog; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640 if test -n "$ac_ct_CC"; then
1641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642 else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1645 do
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_ac_ct_CC="$ac_prog"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 break 2
1653 fi
1654 done
1655 done
1656
1657 fi
1658 fi
1659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1660 if test -n "$ac_ct_CC"; then
1661 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1662 echo "${ECHO_T}$ac_ct_CC" >&6
1663 else
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1666 fi
1667
1668 test -n "$ac_ct_CC" && break
1669 done
1670
1671 CC=$ac_ct_CC
1672 fi
1673
1674 fi
1675
1676
1677 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1678 See \`config.log' for more details." >&5
1679 echo "$as_me: error: no acceptable C compiler found in \$PATH
1680 See \`config.log' for more details." >&2;}
1681 { (exit 1); exit 1; }; }
1682
1683 # Provide some information about the compiler.
1684 echo "$as_me:$LINENO:" \
1685 "checking for C compiler version" >&5
1686 ac_compiler=`set X $ac_compile; echo $2`
1687 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1688 (eval $ac_compiler --version </dev/null >&5) 2>&5
1689 ac_status=$?
1690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691 (exit $ac_status); }
1692 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1693 (eval $ac_compiler -v </dev/null >&5) 2>&5
1694 ac_status=$?
1695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1696 (exit $ac_status); }
1697 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1698 (eval $ac_compiler -V </dev/null >&5) 2>&5
1699 ac_status=$?
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1702
1703 cat >conftest.$ac_ext <<_ACEOF
1704 /* confdefs.h. */
1705 _ACEOF
1706 cat confdefs.h >>conftest.$ac_ext
1707 cat >>conftest.$ac_ext <<_ACEOF
1708 /* end confdefs.h. */
1709
1710 int
1711 main ()
1712 {
1713
1714 ;
1715 return 0;
1716 }
1717 _ACEOF
1718 ac_clean_files_save=$ac_clean_files
1719 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1720 # Try to create an executable without -o first, disregard a.out.
1721 # It will help us diagnose broken compilers, and finding out an intuition
1722 # of exeext.
1723 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1724 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1725 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1726 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1727 (eval $ac_link_default) 2>&5
1728 ac_status=$?
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730 (exit $ac_status); }; then
1731 # Find the output, starting from the most likely. This scheme is
1732 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1733 # resort.
1734
1735 # Be careful to initialize this variable, since it used to be cached.
1736 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1737 ac_cv_exeext=
1738 # b.out is created by i960 compilers.
1739 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1740 do
1741 test -f "$ac_file" || continue
1742 case $ac_file in
1743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1744 ;;
1745 conftest.$ac_ext )
1746 # This is the source file.
1747 ;;
1748 [ab].out )
1749 # We found the default executable, but exeext='' is most
1750 # certainly right.
1751 break;;
1752 *.* )
1753 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1754 # FIXME: I believe we export ac_cv_exeext for Libtool,
1755 # but it would be cool to find out if it's true. Does anybody
1756 # maintain Libtool? --akim.
1757 export ac_cv_exeext
1758 break;;
1759 * )
1760 break;;
1761 esac
1762 done
1763 else
1764 echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: C compiler cannot create executables
1770 See \`config.log' for more details." >&2;}
1771 { (exit 77); exit 77; }; }
1772 fi
1773
1774 ac_exeext=$ac_cv_exeext
1775 echo "$as_me:$LINENO: result: $ac_file" >&5
1776 echo "${ECHO_T}$ac_file" >&6
1777
1778 # Check the compiler produces executables we can run. If not, either
1779 # the compiler is broken, or we cross compile.
1780 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1781 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1782 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1783 # If not cross compiling, check that we can run a simple program.
1784 if test "$cross_compiling" != yes; then
1785 if { ac_try='./$ac_file'
1786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1787 (eval $ac_try) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; }; then
1791 cross_compiling=no
1792 else
1793 if test "$cross_compiling" = maybe; then
1794 cross_compiling=yes
1795 else
1796 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1797 If you meant to cross compile, use \`--host'.
1798 See \`config.log' for more details." >&5
1799 echo "$as_me: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'.
1801 See \`config.log' for more details." >&2;}
1802 { (exit 1); exit 1; }; }
1803 fi
1804 fi
1805 fi
1806 echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1808
1809 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1810 ac_clean_files=$ac_clean_files_save
1811 # Check the compiler produces executables we can run. If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1814 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1815 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1816 echo "${ECHO_T}$cross_compiling" >&6
1817
1818 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1819 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1821 (eval $ac_link) 2>&5
1822 ac_status=$?
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }; then
1825 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1826 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1827 # work properly (i.e., refer to `conftest.exe'), while it won't with
1828 # `rm'.
1829 for ac_file in conftest.exe conftest conftest.*; do
1830 test -f "$ac_file" || continue
1831 case $ac_file in
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1833 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834 export ac_cv_exeext
1835 break;;
1836 * ) break;;
1837 esac
1838 done
1839 else
1840 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1843 See \`config.log' for more details." >&2;}
1844 { (exit 1); exit 1; }; }
1845 fi
1846
1847 rm -f conftest$ac_cv_exeext
1848 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1849 echo "${ECHO_T}$ac_cv_exeext" >&6
1850
1851 rm -f conftest.$ac_ext
1852 EXEEXT=$ac_cv_exeext
1853 ac_exeext=$EXEEXT
1854 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1855 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1856 if test "${ac_cv_objext+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 cat >conftest.$ac_ext <<_ACEOF
1860 /* confdefs.h. */
1861 _ACEOF
1862 cat confdefs.h >>conftest.$ac_ext
1863 cat >>conftest.$ac_ext <<_ACEOF
1864 /* end confdefs.h. */
1865
1866 int
1867 main ()
1868 {
1869
1870 ;
1871 return 0;
1872 }
1873 _ACEOF
1874 rm -f conftest.o conftest.obj
1875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>&5
1877 ac_status=$?
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }; then
1880 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1881 case $ac_file in
1882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1883 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1884 break;;
1885 esac
1886 done
1887 else
1888 echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1892 See \`config.log' for more details." >&5
1893 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1894 See \`config.log' for more details." >&2;}
1895 { (exit 1); exit 1; }; }
1896 fi
1897
1898 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1899 fi
1900 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1901 echo "${ECHO_T}$ac_cv_objext" >&6
1902 OBJEXT=$ac_cv_objext
1903 ac_objext=$OBJEXT
1904 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1905 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1906 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 cat >conftest.$ac_ext <<_ACEOF
1910 /* confdefs.h. */
1911 _ACEOF
1912 cat confdefs.h >>conftest.$ac_ext
1913 cat >>conftest.$ac_ext <<_ACEOF
1914 /* end confdefs.h. */
1915
1916 int
1917 main ()
1918 {
1919 #ifndef __GNUC__
1920 choke me
1921 #endif
1922
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 rm -f conftest.$ac_objext
1928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929 (eval $ac_compile) 2>conftest.er1
1930 ac_status=$?
1931 grep -v '^ *+' conftest.er1 >conftest.err
1932 rm -f conftest.er1
1933 cat conftest.err >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); } &&
1936 { ac_try='test -z "$ac_c_werror_flag"
1937 || test ! -s conftest.err'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 (eval $ac_try) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; } &&
1943 { ac_try='test -s conftest.$ac_objext'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1949 ac_compiler_gnu=yes
1950 else
1951 echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_compiler_gnu=no
1955 fi
1956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1957 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1958
1959 fi
1960 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1961 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1962 GCC=`test $ac_compiler_gnu = yes && echo yes`
1963 ac_test_CFLAGS=${CFLAGS+set}
1964 ac_save_CFLAGS=$CFLAGS
1965 CFLAGS="-g"
1966 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1967 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1968 if test "${ac_cv_prog_cc_g+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h. */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1977
1978 int
1979 main ()
1980 {
1981
1982 ;
1983 return 0;
1984 }
1985 _ACEOF
1986 rm -f conftest.$ac_objext
1987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>conftest.er1
1989 ac_status=$?
1990 grep -v '^ *+' conftest.er1 >conftest.err
1991 rm -f conftest.er1
1992 cat conftest.err >&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); } &&
1995 { ac_try='test -z "$ac_c_werror_flag"
1996 || test ! -s conftest.err'
1997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998 (eval $ac_try) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; } &&
2002 { ac_try='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2008 ac_cv_prog_cc_g=yes
2009 else
2010 echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2012
2013 ac_cv_prog_cc_g=no
2014 fi
2015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2016 fi
2017 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2018 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2019 if test "$ac_test_CFLAGS" = set; then
2020 CFLAGS=$ac_save_CFLAGS
2021 elif test $ac_cv_prog_cc_g = yes; then
2022 if test "$GCC" = yes; then
2023 CFLAGS="-g -O2"
2024 else
2025 CFLAGS="-g"
2026 fi
2027 else
2028 if test "$GCC" = yes; then
2029 CFLAGS="-O2"
2030 else
2031 CFLAGS=
2032 fi
2033 fi
2034 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2035 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2036 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 ac_cv_prog_cc_stdc=no
2040 ac_save_CC=$CC
2041 cat >conftest.$ac_ext <<_ACEOF
2042 /* confdefs.h. */
2043 _ACEOF
2044 cat confdefs.h >>conftest.$ac_ext
2045 cat >>conftest.$ac_ext <<_ACEOF
2046 /* end confdefs.h. */
2047 #include <stdarg.h>
2048 #include <stdio.h>
2049 #include <sys/types.h>
2050 #include <sys/stat.h>
2051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2052 struct buf { int x; };
2053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2054 static char *e (p, i)
2055 char **p;
2056 int i;
2057 {
2058 return p[i];
2059 }
2060 static char *f (char * (*g) (char **, int), char **p, ...)
2061 {
2062 char *s;
2063 va_list v;
2064 va_start (v,p);
2065 s = g (p, va_arg (v,int));
2066 va_end (v);
2067 return s;
2068 }
2069
2070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2071 function prototypes and stuff, but not '\xHH' hex character constants.
2072 These don't provoke an error unfortunately, instead are silently treated
2073 as 'x'. The following induces an error, until -std1 is added to get
2074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2075 array size at least. It's necessary to write '\x00'==0 to get something
2076 that's true only with -std1. */
2077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2078
2079 int test (int i, double x);
2080 struct s1 {int (*f) (int a);};
2081 struct s2 {int (*f) (double a);};
2082 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2083 int argc;
2084 char **argv;
2085 int
2086 main ()
2087 {
2088 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2089 ;
2090 return 0;
2091 }
2092 _ACEOF
2093 # Don't try gcc -ansi; that turns off useful extensions and
2094 # breaks some systems' header files.
2095 # AIX -qlanglvl=ansi
2096 # Ultrix and OSF/1 -std1
2097 # HP-UX 10.20 and later -Ae
2098 # HP-UX older versions -Aa -D_HPUX_SOURCE
2099 # SVR4 -Xc -D__EXTENSIONS__
2100 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2101 do
2102 CC="$ac_save_CC $ac_arg"
2103 rm -f conftest.$ac_objext
2104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105 (eval $ac_compile) 2>conftest.er1
2106 ac_status=$?
2107 grep -v '^ *+' conftest.er1 >conftest.err
2108 rm -f conftest.er1
2109 cat conftest.err >&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); } &&
2112 { ac_try='test -z "$ac_c_werror_flag"
2113 || test ! -s conftest.err'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 (eval $ac_try) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; } &&
2119 { ac_try='test -s conftest.$ac_objext'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 (eval $ac_try) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2125 ac_cv_prog_cc_stdc=$ac_arg
2126 break
2127 else
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2130
2131 fi
2132 rm -f conftest.err conftest.$ac_objext
2133 done
2134 rm -f conftest.$ac_ext conftest.$ac_objext
2135 CC=$ac_save_CC
2136
2137 fi
2138
2139 case "x$ac_cv_prog_cc_stdc" in
2140 x|xno)
2141 echo "$as_me:$LINENO: result: none needed" >&5
2142 echo "${ECHO_T}none needed" >&6 ;;
2143 *)
2144 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2145 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2146 CC="$CC $ac_cv_prog_cc_stdc" ;;
2147 esac
2148
2149 # Some people use a C++ compiler to compile C. Since we use `exit',
2150 # in C++ we need to declare it. In case someone uses the same compiler
2151 # for both compiling C and C++ we need to have the C++ compiler decide
2152 # the declaration of exit, since it's the most demanding environment.
2153 cat >conftest.$ac_ext <<_ACEOF
2154 #ifndef __cplusplus
2155 choke me
2156 #endif
2157 _ACEOF
2158 rm -f conftest.$ac_objext
2159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160 (eval $ac_compile) 2>conftest.er1
2161 ac_status=$?
2162 grep -v '^ *+' conftest.er1 >conftest.err
2163 rm -f conftest.er1
2164 cat conftest.err >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); } &&
2167 { ac_try='test -z "$ac_c_werror_flag"
2168 || test ! -s conftest.err'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 (eval $ac_try) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; } &&
2174 { ac_try='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2180 for ac_declaration in \
2181 '' \
2182 'extern "C" void std::exit (int) throw (); using std::exit;' \
2183 'extern "C" void std::exit (int); using std::exit;' \
2184 'extern "C" void exit (int) throw ();' \
2185 'extern "C" void exit (int);' \
2186 'void exit (int);'
2187 do
2188 cat >conftest.$ac_ext <<_ACEOF
2189 /* confdefs.h. */
2190 _ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h. */
2194 $ac_declaration
2195 #include <stdlib.h>
2196 int
2197 main ()
2198 {
2199 exit (42);
2200 ;
2201 return 0;
2202 }
2203 _ACEOF
2204 rm -f conftest.$ac_objext
2205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206 (eval $ac_compile) 2>conftest.er1
2207 ac_status=$?
2208 grep -v '^ *+' conftest.er1 >conftest.err
2209 rm -f conftest.er1
2210 cat conftest.err >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); } &&
2213 { ac_try='test -z "$ac_c_werror_flag"
2214 || test ! -s conftest.err'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; } &&
2220 { ac_try='test -s conftest.$ac_objext'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 :
2227 else
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 continue
2232 fi
2233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2234 cat >conftest.$ac_ext <<_ACEOF
2235 /* confdefs.h. */
2236 _ACEOF
2237 cat confdefs.h >>conftest.$ac_ext
2238 cat >>conftest.$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2240 $ac_declaration
2241 int
2242 main ()
2243 {
2244 exit (42);
2245 ;
2246 return 0;
2247 }
2248 _ACEOF
2249 rm -f conftest.$ac_objext
2250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251 (eval $ac_compile) 2>conftest.er1
2252 ac_status=$?
2253 grep -v '^ *+' conftest.er1 >conftest.err
2254 rm -f conftest.er1
2255 cat conftest.err >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try='test -z "$ac_c_werror_flag"
2259 || test ! -s conftest.err'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; } &&
2265 { ac_try='test -s conftest.$ac_objext'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2271 break
2272 else
2273 echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2275
2276 fi
2277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278 done
2279 rm -f conftest*
2280 if test -n "$ac_declaration"; then
2281 echo '#ifdef __cplusplus' >>confdefs.h
2282 echo $ac_declaration >>confdefs.h
2283 echo '#endif' >>confdefs.h
2284 fi
2285
2286 else
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2289
2290 fi
2291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2292 ac_ext=c
2293 ac_cpp='$CPP $CPPFLAGS'
2294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2297
2298
2299 cat >>confdefs.h <<\_ACEOF
2300 #define _GNU_SOURCE 1
2301 _ACEOF
2302
2303
2304
2305 ac_ext=c
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2311 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2312 # On Suns, sometimes $CPP names a directory.
2313 if test -n "$CPP" && test -d "$CPP"; then
2314 CPP=
2315 fi
2316 if test -z "$CPP"; then
2317 if test "${ac_cv_prog_CPP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 # Double quotes because CPP needs to be expanded
2321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2322 do
2323 ac_preproc_ok=false
2324 for ac_c_preproc_warn_flag in '' yes
2325 do
2326 # Use a header file that comes with gcc, so configuring glibc
2327 # with a fresh cross-compiler works.
2328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329 # <limits.h> exists even on freestanding compilers.
2330 # On the NeXT, cc -E runs the code through the compiler's parser,
2331 # not just through cpp. "Syntax error" is here to catch this case.
2332 cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h. */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2338 #ifdef __STDC__
2339 # include <limits.h>
2340 #else
2341 # include <assert.h>
2342 #endif
2343 Syntax error
2344 _ACEOF
2345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } >/dev/null; then
2353 if test -s conftest.err; then
2354 ac_cpp_err=$ac_c_preproc_warn_flag
2355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2356 else
2357 ac_cpp_err=
2358 fi
2359 else
2360 ac_cpp_err=yes
2361 fi
2362 if test -z "$ac_cpp_err"; then
2363 :
2364 else
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 # Broken: fails on valid input.
2369 continue
2370 fi
2371 rm -f conftest.err conftest.$ac_ext
2372
2373 # OK, works on sane cases. Now check whether non-existent headers
2374 # can be detected and how.
2375 cat >conftest.$ac_ext <<_ACEOF
2376 /* confdefs.h. */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #include <ac_nonexistent.h>
2382 _ACEOF
2383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } >/dev/null; then
2391 if test -s conftest.err; then
2392 ac_cpp_err=$ac_c_preproc_warn_flag
2393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394 else
2395 ac_cpp_err=
2396 fi
2397 else
2398 ac_cpp_err=yes
2399 fi
2400 if test -z "$ac_cpp_err"; then
2401 # Broken: success on invalid input.
2402 continue
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 # Passes both tests.
2408 ac_preproc_ok=:
2409 break
2410 fi
2411 rm -f conftest.err conftest.$ac_ext
2412
2413 done
2414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2415 rm -f conftest.err conftest.$ac_ext
2416 if $ac_preproc_ok; then
2417 break
2418 fi
2419
2420 done
2421 ac_cv_prog_CPP=$CPP
2422
2423 fi
2424 CPP=$ac_cv_prog_CPP
2425 else
2426 ac_cv_prog_CPP=$CPP
2427 fi
2428 echo "$as_me:$LINENO: result: $CPP" >&5
2429 echo "${ECHO_T}$CPP" >&6
2430 ac_preproc_ok=false
2431 for ac_c_preproc_warn_flag in '' yes
2432 do
2433 # Use a header file that comes with gcc, so configuring glibc
2434 # with a fresh cross-compiler works.
2435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2436 # <limits.h> exists even on freestanding compilers.
2437 # On the NeXT, cc -E runs the code through the compiler's parser,
2438 # not just through cpp. "Syntax error" is here to catch this case.
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2445 #ifdef __STDC__
2446 # include <limits.h>
2447 #else
2448 # include <assert.h>
2449 #endif
2450 Syntax error
2451 _ACEOF
2452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } >/dev/null; then
2460 if test -s conftest.err; then
2461 ac_cpp_err=$ac_c_preproc_warn_flag
2462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2463 else
2464 ac_cpp_err=
2465 fi
2466 else
2467 ac_cpp_err=yes
2468 fi
2469 if test -z "$ac_cpp_err"; then
2470 :
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 # Broken: fails on valid input.
2476 continue
2477 fi
2478 rm -f conftest.err conftest.$ac_ext
2479
2480 # OK, works on sane cases. Now check whether non-existent headers
2481 # can be detected and how.
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h. */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2488 #include <ac_nonexistent.h>
2489 _ACEOF
2490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } >/dev/null; then
2498 if test -s conftest.err; then
2499 ac_cpp_err=$ac_c_preproc_warn_flag
2500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2501 else
2502 ac_cpp_err=
2503 fi
2504 else
2505 ac_cpp_err=yes
2506 fi
2507 if test -z "$ac_cpp_err"; then
2508 # Broken: success on invalid input.
2509 continue
2510 else
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514 # Passes both tests.
2515 ac_preproc_ok=:
2516 break
2517 fi
2518 rm -f conftest.err conftest.$ac_ext
2519
2520 done
2521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2522 rm -f conftest.err conftest.$ac_ext
2523 if $ac_preproc_ok; then
2524 :
2525 else
2526 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2531 fi
2532
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540 echo "$as_me:$LINENO: checking for egrep" >&5
2541 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2542 if test "${ac_cv_prog_egrep+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2546 then ac_cv_prog_egrep='grep -E'
2547 else ac_cv_prog_egrep='egrep'
2548 fi
2549 fi
2550 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2551 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2552 EGREP=$ac_cv_prog_egrep
2553
2554
2555
2556 echo "$as_me:$LINENO: checking for AIX" >&5
2557 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2558 cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h. */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2564 #ifdef _AIX
2565 yes
2566 #endif
2567
2568 _ACEOF
2569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2570 $EGREP "yes" >/dev/null 2>&1; then
2571 echo "$as_me:$LINENO: result: yes" >&5
2572 echo "${ECHO_T}yes" >&6
2573 cat >>confdefs.h <<\_ACEOF
2574 #define _ALL_SOURCE 1
2575 _ACEOF
2576
2577 else
2578 echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2580 fi
2581 rm -f conftest*
2582
2583
2584 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2585 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2586 if test "${ac_cv_search_strerror+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 ac_func_search_save_LIBS=$LIBS
2590 ac_cv_search_strerror=no
2591 cat >conftest.$ac_ext <<_ACEOF
2592 /* confdefs.h. */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2597
2598 /* Override any gcc2 internal prototype to avoid an error. */
2599 #ifdef __cplusplus
2600 extern "C"
2601 #endif
2602 /* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
2604 char strerror ();
2605 int
2606 main ()
2607 {
2608 strerror ();
2609 ;
2610 return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext conftest$ac_exeext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615 (eval $ac_link) 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest$ac_exeext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 ac_cv_search_strerror="none required"
2636 else
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 fi
2641 rm -f conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2643 if test "$ac_cv_search_strerror" = no; then
2644 for ac_lib in cposix; do
2645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2646 cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h. */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2652
2653 /* Override any gcc2 internal prototype to avoid an error. */
2654 #ifdef __cplusplus
2655 extern "C"
2656 #endif
2657 /* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2659 char strerror ();
2660 int
2661 main ()
2662 {
2663 strerror ();
2664 ;
2665 return 0;
2666 }
2667 _ACEOF
2668 rm -f conftest.$ac_objext conftest$ac_exeext
2669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670 (eval $ac_link) 2>conftest.er1
2671 ac_status=$?
2672 grep -v '^ *+' conftest.er1 >conftest.err
2673 rm -f conftest.er1
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try='test -z "$ac_c_werror_flag"
2678 || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest$ac_exeext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 ac_cv_search_strerror="-l$ac_lib"
2691 break
2692 else
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696 fi
2697 rm -f conftest.err conftest.$ac_objext \
2698 conftest$ac_exeext conftest.$ac_ext
2699 done
2700 fi
2701 LIBS=$ac_func_search_save_LIBS
2702 fi
2703 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2704 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2705 if test "$ac_cv_search_strerror" != no; then
2706 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2707
2708 fi
2709
2710
2711
2712
2713 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2714 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2715 if test "${am_cv_prog_cc_stdc+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 am_cv_prog_cc_stdc=no
2719 ac_save_CC="$CC"
2720 # Don't try gcc -ansi; that turns off useful extensions and
2721 # breaks some systems' header files.
2722 # AIX -qlanglvl=ansi
2723 # Ultrix and OSF/1 -std1
2724 # HP-UX 10.20 and later -Ae
2725 # HP-UX older versions -Aa -D_HPUX_SOURCE
2726 # SVR4 -Xc -D__EXTENSIONS__
2727 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728 do
2729 CC="$ac_save_CC $ac_arg"
2730 cat >conftest.$ac_ext <<_ACEOF
2731 /* confdefs.h. */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2736 #include <stdarg.h>
2737 #include <stdio.h>
2738 #include <sys/types.h>
2739 #include <sys/stat.h>
2740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2741 struct buf { int x; };
2742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2743 static char *e (p, i)
2744 char **p;
2745 int i;
2746 {
2747 return p[i];
2748 }
2749 static char *f (char * (*g) (char **, int), char **p, ...)
2750 {
2751 char *s;
2752 va_list v;
2753 va_start (v,p);
2754 s = g (p, va_arg (v,int));
2755 va_end (v);
2756 return s;
2757 }
2758 int test (int i, double x);
2759 struct s1 {int (*f) (int a);};
2760 struct s2 {int (*f) (double a);};
2761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2762 int argc;
2763 char **argv;
2764
2765 int
2766 main ()
2767 {
2768
2769 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2770
2771 ;
2772 return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_c_werror_flag"
2785 || test ! -s conftest.err'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 am_cv_prog_cc_stdc="$ac_arg"; break
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2801
2802 fi
2803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804 done
2805 CC="$ac_save_CC"
2806
2807 fi
2808
2809 if test -z "$am_cv_prog_cc_stdc"; then
2810 echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6
2812 else
2813 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2815 fi
2816 case "x$am_cv_prog_cc_stdc" in
2817 x|xno) ;;
2818 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2819 esac
2820
2821
2822 ac_aux_dir=
2823 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2824 if test -f $ac_dir/install-sh; then
2825 ac_aux_dir=$ac_dir
2826 ac_install_sh="$ac_aux_dir/install-sh -c"
2827 break
2828 elif 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/shtool; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/shtool install -c"
2835 break
2836 fi
2837 done
2838 if test -z "$ac_aux_dir"; then
2839 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2840 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2841 { (exit 1); exit 1; }; }
2842 fi
2843 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2844 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2845 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2846
2847 # Make sure we can run config.sub.
2848 $ac_config_sub sun4 >/dev/null 2>&1 ||
2849 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2850 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2851 { (exit 1); exit 1; }; }
2852
2853 echo "$as_me:$LINENO: checking build system type" >&5
2854 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2855 if test "${ac_cv_build+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 ac_cv_build_alias=$build_alias
2859 test -z "$ac_cv_build_alias" &&
2860 ac_cv_build_alias=`$ac_config_guess`
2861 test -z "$ac_cv_build_alias" &&
2862 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2863 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2864 { (exit 1); exit 1; }; }
2865 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2866 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2867 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2868 { (exit 1); exit 1; }; }
2869
2870 fi
2871 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2872 echo "${ECHO_T}$ac_cv_build" >&6
2873 build=$ac_cv_build
2874 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2875 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2876 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2877
2878
2879 echo "$as_me:$LINENO: checking host system type" >&5
2880 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2881 if test "${ac_cv_host+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 ac_cv_host_alias=$host_alias
2885 test -z "$ac_cv_host_alias" &&
2886 ac_cv_host_alias=$ac_cv_build_alias
2887 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2888 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2889 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2890 { (exit 1); exit 1; }; }
2891
2892 fi
2893 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2894 echo "${ECHO_T}$ac_cv_host" >&6
2895 host=$ac_cv_host
2896 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2897 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2898 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2899
2900
2901 echo "$as_me:$LINENO: checking target system type" >&5
2902 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2903 if test "${ac_cv_target+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906 ac_cv_target_alias=$target_alias
2907 test "x$ac_cv_target_alias" = "x" &&
2908 ac_cv_target_alias=$ac_cv_host_alias
2909 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2911 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2912 { (exit 1); exit 1; }; }
2913
2914 fi
2915 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2916 echo "${ECHO_T}$ac_cv_target" >&6
2917 target=$ac_cv_target
2918 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2919 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2920 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2921
2922
2923 # The aliases save the names the user supplied, while $host etc.
2924 # will get canonicalized.
2925 test -n "$target_alias" &&
2926 test "$program_prefix$program_suffix$program_transform_name" = \
2927 NONENONEs,x,x, &&
2928 program_prefix=${target_alias}-
2929
2930
2931 CONFIG_OBS=
2932 CONFIG_DEPS=
2933 CONFIG_SRCS=
2934 ENABLE_CFLAGS=
2935
2936 CONFIG_ALL=
2937 CONFIG_CLEAN=
2938 CONFIG_INSTALL=
2939 CONFIG_UNINSTALL=
2940
2941
2942 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2944 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2945 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 cat >conftest.make <<\_ACEOF
2949 all:
2950 @echo 'ac_maketemp="$(MAKE)"'
2951 _ACEOF
2952 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2953 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2954 if test -n "$ac_maketemp"; then
2955 eval ac_cv_prog_make_${ac_make}_set=yes
2956 else
2957 eval ac_cv_prog_make_${ac_make}_set=no
2958 fi
2959 rm -f conftest.make
2960 fi
2961 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2962 echo "$as_me:$LINENO: result: yes" >&5
2963 echo "${ECHO_T}yes" >&6
2964 SET_MAKE=
2965 else
2966 echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2968 SET_MAKE="MAKE=${MAKE-make}"
2969 fi
2970
2971 if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_RANLIB+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979 if test -n "$RANLIB"; then
2980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993 done
2994 done
2995
2996 fi
2997 fi
2998 RANLIB=$ac_cv_prog_RANLIB
2999 if test -n "$RANLIB"; then
3000 echo "$as_me:$LINENO: result: $RANLIB" >&5
3001 echo "${ECHO_T}$RANLIB" >&6
3002 else
3003 echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3005 fi
3006
3007 fi
3008 if test -z "$ac_cv_prog_RANLIB"; then
3009 ac_ct_RANLIB=$RANLIB
3010 # Extract the first word of "ranlib", so it can be a program name with args.
3011 set dummy ranlib; ac_word=$2
3012 echo "$as_me:$LINENO: checking for $ac_word" >&5
3013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3014 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017 if test -n "$ac_ct_RANLIB"; then
3018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_ac_ct_RANLIB="ranlib"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031 done
3032 done
3033
3034 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3035 fi
3036 fi
3037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3038 if test -n "$ac_ct_RANLIB"; then
3039 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3040 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3041 else
3042 echo "$as_me:$LINENO: result: no" >&5
3043 echo "${ECHO_T}no" >&6
3044 fi
3045
3046 RANLIB=$ac_ct_RANLIB
3047 else
3048 RANLIB="$ac_cv_prog_RANLIB"
3049 fi
3050
3051 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3053 if test "${ac_cv_header_stdc+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056 cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h. */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #include <stdlib.h>
3063 #include <stdarg.h>
3064 #include <string.h>
3065 #include <float.h>
3066
3067 int
3068 main ()
3069 {
3070
3071 ;
3072 return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag"
3085 || test ! -s conftest.err'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 (eval $ac_try) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_header_stdc=yes
3098 else
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102 ac_cv_header_stdc=no
3103 fi
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105
3106 if test $ac_cv_header_stdc = yes; then
3107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3108 cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h. */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3114 #include <string.h>
3115
3116 _ACEOF
3117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3118 $EGREP "memchr" >/dev/null 2>&1; then
3119 :
3120 else
3121 ac_cv_header_stdc=no
3122 fi
3123 rm -f conftest*
3124
3125 fi
3126
3127 if test $ac_cv_header_stdc = yes; then
3128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #include <stdlib.h>
3136
3137 _ACEOF
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "free" >/dev/null 2>&1; then
3140 :
3141 else
3142 ac_cv_header_stdc=no
3143 fi
3144 rm -f conftest*
3145
3146 fi
3147
3148 if test $ac_cv_header_stdc = yes; then
3149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3150 if test "$cross_compiling" = yes; then
3151 :
3152 else
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 #include <ctype.h>
3160 #if ((' ' & 0x0FF) == 0x020)
3161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3163 #else
3164 # define ISLOWER(c) \
3165 (('a' <= (c) && (c) <= 'i') \
3166 || ('j' <= (c) && (c) <= 'r') \
3167 || ('s' <= (c) && (c) <= 'z'))
3168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3169 #endif
3170
3171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3172 int
3173 main ()
3174 {
3175 int i;
3176 for (i = 0; i < 256; i++)
3177 if (XOR (islower (i), ISLOWER (i))
3178 || toupper (i) != TOUPPER (i))
3179 exit(2);
3180 exit (0);
3181 }
3182 _ACEOF
3183 rm -f conftest$ac_exeext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185 (eval $ac_link) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 :
3195 else
3196 echo "$as_me: program exited with status $ac_status" >&5
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200 ( exit $ac_status )
3201 ac_cv_header_stdc=no
3202 fi
3203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3204 fi
3205 fi
3206 fi
3207 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3208 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3209 if test $ac_cv_header_stdc = yes; then
3210
3211 cat >>confdefs.h <<\_ACEOF
3212 #define STDC_HEADERS 1
3213 _ACEOF
3214
3215 fi
3216
3217 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3218 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3219 if test "${ac_cv_c_const+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228
3229 int
3230 main ()
3231 {
3232 /* FIXME: Include the comments suggested by Paul. */
3233 #ifndef __cplusplus
3234 /* Ultrix mips cc rejects this. */
3235 typedef int charset[2];
3236 const charset x;
3237 /* SunOS 4.1.1 cc rejects this. */
3238 char const *const *ccp;
3239 char **p;
3240 /* NEC SVR4.0.2 mips cc rejects this. */
3241 struct point {int x, y;};
3242 static struct point const zero = {0,0};
3243 /* AIX XL C 1.02.0.0 rejects this.
3244 It does not let you subtract one const X* pointer from another in
3245 an arm of an if-expression whose if-part is not a constant
3246 expression */
3247 const char *g = "string";
3248 ccp = &g + (g ? g-g : 0);
3249 /* HPUX 7.0 cc rejects these. */
3250 ++ccp;
3251 p = (char**) ccp;
3252 ccp = (char const *const *) p;
3253 { /* SCO 3.2v4 cc rejects this. */
3254 char *t;
3255 char const *s = 0 ? (char *) 0 : (char const *) 0;
3256
3257 *t++ = 0;
3258 }
3259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3260 int x[] = {25, 17};
3261 const int *foo = &x[0];
3262 ++foo;
3263 }
3264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265 typedef const int *iptr;
3266 iptr p = 0;
3267 ++p;
3268 }
3269 { /* AIX XL C 1.02.0.0 rejects this saying
3270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271 struct s { int j; const int *ap[3]; };
3272 struct s *b; b->j = 5;
3273 }
3274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3275 const int foo = 10;
3276 }
3277 #endif
3278
3279 ;
3280 return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -z "$ac_c_werror_flag"
3293 || test ! -s conftest.err'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; } &&
3299 { ac_try='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_c_const=yes
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 ac_cv_c_const=no
3311 fi
3312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3313 fi
3314 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3315 echo "${ECHO_T}$ac_cv_c_const" >&6
3316 if test $ac_cv_c_const = no; then
3317
3318 cat >>confdefs.h <<\_ACEOF
3319 #define const
3320 _ACEOF
3321
3322 fi
3323
3324 echo "$as_me:$LINENO: checking for inline" >&5
3325 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3326 if test "${ac_cv_c_inline+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329 ac_cv_c_inline=no
3330 for ac_kw in inline __inline__ __inline; do
3331 cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3337 #ifndef __cplusplus
3338 typedef int foo_t;
3339 static $ac_kw foo_t static_foo () {return 0; }
3340 $ac_kw foo_t foo () {return 0; }
3341 #endif
3342
3343 _ACEOF
3344 rm -f conftest.$ac_objext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -z "$ac_c_werror_flag"
3354 || test ! -s conftest.err'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try='test -s conftest.$ac_objext'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 (eval $ac_try) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
3366 ac_cv_c_inline=$ac_kw; break
3367 else
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 fi
3372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3373 done
3374
3375 fi
3376 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3377 echo "${ECHO_T}$ac_cv_c_inline" >&6
3378
3379
3380 case $ac_cv_c_inline in
3381 inline | yes) ;;
3382 *)
3383 case $ac_cv_c_inline in
3384 no) ac_val=;;
3385 *) ac_val=$ac_cv_c_inline;;
3386 esac
3387 cat >>confdefs.h <<_ACEOF
3388 #ifndef __cplusplus
3389 #define inline $ac_val
3390 #endif
3391 _ACEOF
3392 ;;
3393 esac
3394
3395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406 inttypes.h stdint.h unistd.h
3407 do
3408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409 echo "$as_me:$LINENO: checking for $ac_header" >&5
3410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 $ac_includes_default
3421
3422 #include <$ac_header>
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 eval "$as_ac_Header=yes"
3447 else
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 eval "$as_ac_Header=no"
3452 fi
3453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454 fi
3455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458 cat >>confdefs.h <<_ACEOF
3459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3460 _ACEOF
3461
3462 fi
3463
3464 done
3465
3466
3467 echo "$as_me:$LINENO: checking for off_t" >&5
3468 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3469 if test "${ac_cv_type_off_t+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 $ac_includes_default
3479 int
3480 main ()
3481 {
3482 if ((off_t *) 0)
3483 return 0;
3484 if (sizeof (off_t))
3485 return 0;
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 rm -f conftest.$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -z "$ac_c_werror_flag"
3500 || test ! -s conftest.err'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; } &&
3506 { ac_try='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 ac_cv_type_off_t=yes
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 ac_cv_type_off_t=no
3518 fi
3519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3520 fi
3521 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3522 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3523 if test $ac_cv_type_off_t = yes; then
3524 :
3525 else
3526
3527 cat >>confdefs.h <<_ACEOF
3528 #define off_t long
3529 _ACEOF
3530
3531 fi
3532
3533 echo "$as_me:$LINENO: checking for size_t" >&5
3534 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3535 if test "${ac_cv_type_size_t+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h. */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 $ac_includes_default
3545 int
3546 main ()
3547 {
3548 if ((size_t *) 0)
3549 return 0;
3550 if (sizeof (size_t))
3551 return 0;
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 rm -f conftest.$ac_objext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
3565 { ac_try='test -z "$ac_c_werror_flag"
3566 || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_cv_type_size_t=yes
3579 else
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 ac_cv_type_size_t=no
3584 fi
3585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3586 fi
3587 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3588 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3589 if test $ac_cv_type_size_t = yes; then
3590 :
3591 else
3592
3593 cat >>confdefs.h <<_ACEOF
3594 #define size_t unsigned
3595 _ACEOF
3596
3597 fi
3598
3599 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3600 # for constant arguments. Useless!
3601 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3602 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3603 if test "${ac_cv_working_alloca_h+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612 #include <alloca.h>
3613 int
3614 main ()
3615 {
3616 char *p = (char *) alloca (2 * sizeof (int));
3617 ;
3618 return 0;
3619 }
3620 _ACEOF
3621 rm -f conftest.$ac_objext conftest$ac_exeext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623 (eval $ac_link) 2>conftest.er1
3624 ac_status=$?
3625 grep -v '^ *+' conftest.er1 >conftest.err
3626 rm -f conftest.er1
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -z "$ac_c_werror_flag"
3631 || test ! -s conftest.err'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; } &&
3637 { ac_try='test -s conftest$ac_exeext'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 ac_cv_working_alloca_h=yes
3644 else
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3647
3648 ac_cv_working_alloca_h=no
3649 fi
3650 rm -f conftest.err conftest.$ac_objext \
3651 conftest$ac_exeext conftest.$ac_ext
3652 fi
3653 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3654 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3655 if test $ac_cv_working_alloca_h = yes; then
3656
3657 cat >>confdefs.h <<\_ACEOF
3658 #define HAVE_ALLOCA_H 1
3659 _ACEOF
3660
3661 fi
3662
3663 echo "$as_me:$LINENO: checking for alloca" >&5
3664 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3665 if test "${ac_cv_func_alloca_works+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h. */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3674 #ifdef __GNUC__
3675 # define alloca __builtin_alloca
3676 #else
3677 # ifdef _MSC_VER
3678 # include <malloc.h>
3679 # define alloca _alloca
3680 # else
3681 # if HAVE_ALLOCA_H
3682 # include <alloca.h>
3683 # else
3684 # ifdef _AIX
3685 #pragma alloca
3686 # else
3687 # ifndef alloca /* predefined by HP cc +Olibcalls */
3688 char *alloca ();
3689 # endif
3690 # endif
3691 # endif
3692 # endif
3693 #endif
3694
3695 int
3696 main ()
3697 {
3698 char *p = (char *) alloca (1);
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 rm -f conftest.$ac_objext conftest$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest$ac_exeext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_func_alloca_works=yes
3726 else
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730 ac_cv_func_alloca_works=no
3731 fi
3732 rm -f conftest.err conftest.$ac_objext \
3733 conftest$ac_exeext conftest.$ac_ext
3734 fi
3735 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3736 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3737
3738 if test $ac_cv_func_alloca_works = yes; then
3739
3740 cat >>confdefs.h <<\_ACEOF
3741 #define HAVE_ALLOCA 1
3742 _ACEOF
3743
3744 else
3745 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3746 # that cause trouble. Some versions do not even contain alloca or
3747 # contain a buggy version. If you still want to use their alloca,
3748 # use ar to extract alloca.o from them instead of compiling alloca.c.
3749
3750 ALLOCA=alloca.$ac_objext
3751
3752 cat >>confdefs.h <<\_ACEOF
3753 #define C_ALLOCA 1
3754 _ACEOF
3755
3756
3757 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3758 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3759 if test "${ac_cv_os_cray+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h. */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3768 #if defined(CRAY) && ! defined(CRAY2)
3769 webecray
3770 #else
3771 wenotbecray
3772 #endif
3773
3774 _ACEOF
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 $EGREP "webecray" >/dev/null 2>&1; then
3777 ac_cv_os_cray=yes
3778 else
3779 ac_cv_os_cray=no
3780 fi
3781 rm -f conftest*
3782
3783 fi
3784 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3785 echo "${ECHO_T}$ac_cv_os_cray" >&6
3786 if test $ac_cv_os_cray = yes; then
3787 for ac_func in _getb67 GETB67 getb67; do
3788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3789 echo "$as_me:$LINENO: checking for $ac_func" >&5
3790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3791 if eval "test \"\${$as_ac_var+set}\" = set"; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h. */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3802 #define $ac_func innocuous_$ac_func
3803
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char $ac_func (); below.
3806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 <limits.h> exists even on freestanding compilers. */
3808
3809 #ifdef __STDC__
3810 # include <limits.h>
3811 #else
3812 # include <assert.h>
3813 #endif
3814
3815 #undef $ac_func
3816
3817 /* Override any gcc2 internal prototype to avoid an error. */
3818 #ifdef __cplusplus
3819 extern "C"
3820 {
3821 #endif
3822 /* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3824 char $ac_func ();
3825 /* The GNU C library defines this for functions which it implements
3826 to always fail with ENOSYS. Some functions are actually named
3827 something starting with __ and the normal name is an alias. */
3828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3829 choke me
3830 #else
3831 char (*f) () = $ac_func;
3832 #endif
3833 #ifdef __cplusplus
3834 }
3835 #endif
3836
3837 int
3838 main ()
3839 {
3840 return f != $ac_func;
3841 ;
3842 return 0;
3843 }
3844 _ACEOF
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 eval "$as_ac_var=yes"
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 eval "$as_ac_var=no"
3873 fi
3874 rm -f conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
3876 fi
3877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3879 if test `eval echo '${'$as_ac_var'}'` = yes; then
3880
3881 cat >>confdefs.h <<_ACEOF
3882 #define CRAY_STACKSEG_END $ac_func
3883 _ACEOF
3884
3885 break
3886 fi
3887
3888 done
3889 fi
3890
3891 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3892 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3893 if test "${ac_cv_c_stack_direction+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896 if test "$cross_compiling" = yes; then
3897 ac_cv_c_stack_direction=0
3898 else
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h. */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 int
3906 find_stack_direction ()
3907 {
3908 static char *addr = 0;
3909 auto char dummy;
3910 if (addr == 0)
3911 {
3912 addr = &dummy;
3913 return find_stack_direction ();
3914 }
3915 else
3916 return (&dummy > addr) ? 1 : -1;
3917 }
3918
3919 int
3920 main ()
3921 {
3922 exit (find_stack_direction () < 0);
3923 }
3924 _ACEOF
3925 rm -f conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_c_stack_direction=1
3937 else
3938 echo "$as_me: program exited with status $ac_status" >&5
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942 ( exit $ac_status )
3943 ac_cv_c_stack_direction=-1
3944 fi
3945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3946 fi
3947 fi
3948 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3949 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3950
3951 cat >>confdefs.h <<_ACEOF
3952 #define STACK_DIRECTION $ac_cv_c_stack_direction
3953 _ACEOF
3954
3955
3956 fi
3957
3958
3959
3960 for ac_header in stdlib.h unistd.h
3961 do
3962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo "$as_me:$LINENO: checking for $ac_header" >&5
3965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 fi
3969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3971 else
3972 # Is the header compilable?
3973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h. */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 $ac_includes_default
3982 #include <$ac_header>
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_header_compiler=yes
4007 else
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4010
4011 ac_header_compiler=no
4012 fi
4013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4015 echo "${ECHO_T}$ac_header_compiler" >&6
4016
4017 # Is the header present?
4018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4020 cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h. */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 #include <$ac_header>
4027 _ACEOF
4028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev/null; then
4036 if test -s conftest.err; then
4037 ac_cpp_err=$ac_c_preproc_warn_flag
4038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039 else
4040 ac_cpp_err=
4041 fi
4042 else
4043 ac_cpp_err=yes
4044 fi
4045 if test -z "$ac_cpp_err"; then
4046 ac_header_preproc=yes
4047 else
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 ac_header_preproc=no
4052 fi
4053 rm -f conftest.err conftest.$ac_ext
4054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4055 echo "${ECHO_T}$ac_header_preproc" >&6
4056
4057 # So? What about this header?
4058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4059 yes:no: )
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4064 ac_header_preproc=yes
4065 ;;
4066 no:yes:* )
4067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4079 (
4080 cat <<\_ASBOX
4081 ## ------------------------------------------ ##
4082 ## Report this to the AC_PACKAGE_NAME lists. ##
4083 ## ------------------------------------------ ##
4084 _ASBOX
4085 ) |
4086 sed "s/^/$as_me: WARNING: /" >&2
4087 ;;
4088 esac
4089 echo "$as_me:$LINENO: checking for $ac_header" >&5
4090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 eval "$as_ac_Header=\$ac_header_preproc"
4095 fi
4096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4098
4099 fi
4100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101 cat >>confdefs.h <<_ACEOF
4102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103 _ACEOF
4104
4105 fi
4106
4107 done
4108
4109
4110 for ac_func in getpagesize
4111 do
4112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4113 echo "$as_me:$LINENO: checking for $ac_func" >&5
4114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4115 if eval "test \"\${$as_ac_var+set}\" = set"; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h. */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4126 #define $ac_func innocuous_$ac_func
4127
4128 /* System header to define __stub macros and hopefully few prototypes,
4129 which can conflict with char $ac_func (); below.
4130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 <limits.h> exists even on freestanding compilers. */
4132
4133 #ifdef __STDC__
4134 # include <limits.h>
4135 #else
4136 # include <assert.h>
4137 #endif
4138
4139 #undef $ac_func
4140
4141 /* Override any gcc2 internal prototype to avoid an error. */
4142 #ifdef __cplusplus
4143 extern "C"
4144 {
4145 #endif
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4148 char $ac_func ();
4149 /* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4153 choke me
4154 #else
4155 char (*f) () = $ac_func;
4156 #endif
4157 #ifdef __cplusplus
4158 }
4159 #endif
4160
4161 int
4162 main ()
4163 {
4164 return f != $ac_func;
4165 ;
4166 return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest$ac_exeext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 eval "$as_ac_var=yes"
4192 else
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 eval "$as_ac_var=no"
4197 fi
4198 rm -f conftest.err conftest.$ac_objext \
4199 conftest$ac_exeext conftest.$ac_ext
4200 fi
4201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4203 if test `eval echo '${'$as_ac_var'}'` = yes; then
4204 cat >>confdefs.h <<_ACEOF
4205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4206 _ACEOF
4207
4208 fi
4209 done
4210
4211 echo "$as_me:$LINENO: checking for working mmap" >&5
4212 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4213 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 if test "$cross_compiling" = yes; then
4217 ac_cv_func_mmap_fixed_mapped=no
4218 else
4219 cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h. */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4225 $ac_includes_default
4226 /* malloc might have been renamed as rpl_malloc. */
4227 #undef malloc
4228
4229 /* Thanks to Mike Haertel and Jim Avera for this test.
4230 Here is a matrix of mmap possibilities:
4231 mmap private not fixed
4232 mmap private fixed at somewhere currently unmapped
4233 mmap private fixed at somewhere already mapped
4234 mmap shared not fixed
4235 mmap shared fixed at somewhere currently unmapped
4236 mmap shared fixed at somewhere already mapped
4237 For private mappings, we should verify that changes cannot be read()
4238 back from the file, nor mmap's back from the file at a different
4239 address. (There have been systems where private was not correctly
4240 implemented like the infamous i386 svr4.0, and systems where the
4241 VM page cache was not coherent with the file system buffer cache
4242 like early versions of FreeBSD and possibly contemporary NetBSD.)
4243 For shared mappings, we should conversely verify that changes get
4244 propagated back to all the places they're supposed to be.
4245
4246 Grep wants private fixed already mapped.
4247 The main things grep needs to know about mmap are:
4248 * does it exist and is it safe to write into the mmap'd area
4249 * how to use it (BSD variants) */
4250
4251 #include <fcntl.h>
4252 #include <sys/mman.h>
4253
4254 #if !STDC_HEADERS && !HAVE_STDLIB_H
4255 char *malloc ();
4256 #endif
4257
4258 /* This mess was copied from the GNU getpagesize.h. */
4259 #if !HAVE_GETPAGESIZE
4260 /* Assume that all systems that can run configure have sys/param.h. */
4261 # if !HAVE_SYS_PARAM_H
4262 # define HAVE_SYS_PARAM_H 1
4263 # endif
4264
4265 # ifdef _SC_PAGESIZE
4266 # define getpagesize() sysconf(_SC_PAGESIZE)
4267 # else /* no _SC_PAGESIZE */
4268 # if HAVE_SYS_PARAM_H
4269 # include <sys/param.h>
4270 # ifdef EXEC_PAGESIZE
4271 # define getpagesize() EXEC_PAGESIZE
4272 # else /* no EXEC_PAGESIZE */
4273 # ifdef NBPG
4274 # define getpagesize() NBPG * CLSIZE
4275 # ifndef CLSIZE
4276 # define CLSIZE 1
4277 # endif /* no CLSIZE */
4278 # else /* no NBPG */
4279 # ifdef NBPC
4280 # define getpagesize() NBPC
4281 # else /* no NBPC */
4282 # ifdef PAGESIZE
4283 # define getpagesize() PAGESIZE
4284 # endif /* PAGESIZE */
4285 # endif /* no NBPC */
4286 # endif /* no NBPG */
4287 # endif /* no EXEC_PAGESIZE */
4288 # else /* no HAVE_SYS_PARAM_H */
4289 # define getpagesize() 8192 /* punt totally */
4290 # endif /* no HAVE_SYS_PARAM_H */
4291 # endif /* no _SC_PAGESIZE */
4292
4293 #endif /* no HAVE_GETPAGESIZE */
4294
4295 int
4296 main ()
4297 {
4298 char *data, *data2, *data3;
4299 int i, pagesize;
4300 int fd;
4301
4302 pagesize = getpagesize ();
4303
4304 /* First, make a file with some known garbage in it. */
4305 data = (char *) malloc (pagesize);
4306 if (!data)
4307 exit (1);
4308 for (i = 0; i < pagesize; ++i)
4309 *(data + i) = rand ();
4310 umask (0);
4311 fd = creat ("conftest.mmap", 0600);
4312 if (fd < 0)
4313 exit (1);
4314 if (write (fd, data, pagesize) != pagesize)
4315 exit (1);
4316 close (fd);
4317
4318 /* Next, try to mmap the file at a fixed address which already has
4319 something else allocated at it. If we can, also make sure that
4320 we see the same garbage. */
4321 fd = open ("conftest.mmap", O_RDWR);
4322 if (fd < 0)
4323 exit (1);
4324 data2 = (char *) malloc (2 * pagesize);
4325 if (!data2)
4326 exit (1);
4327 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4328 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4329 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4330 exit (1);
4331 for (i = 0; i < pagesize; ++i)
4332 if (*(data + i) != *(data2 + i))
4333 exit (1);
4334
4335 /* Finally, make sure that changes to the mapped area do not
4336 percolate back to the file as seen by read(). (This is a bug on
4337 some variants of i386 svr4.0.) */
4338 for (i = 0; i < pagesize; ++i)
4339 *(data2 + i) = *(data2 + i) + 1;
4340 data3 = (char *) malloc (pagesize);
4341 if (!data3)
4342 exit (1);
4343 if (read (fd, data3, pagesize) != pagesize)
4344 exit (1);
4345 for (i = 0; i < pagesize; ++i)
4346 if (*(data + i) != *(data3 + i))
4347 exit (1);
4348 close (fd);
4349 exit (0);
4350 }
4351 _ACEOF
4352 rm -f conftest$ac_exeext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354 (eval $ac_link) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_func_mmap_fixed_mapped=yes
4364 else
4365 echo "$as_me: program exited with status $ac_status" >&5
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4368
4369 ( exit $ac_status )
4370 ac_cv_func_mmap_fixed_mapped=no
4371 fi
4372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4373 fi
4374 fi
4375 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4376 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4377 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4378
4379 cat >>confdefs.h <<\_ACEOF
4380 #define HAVE_MMAP 1
4381 _ACEOF
4382
4383 fi
4384 rm -f conftest.mmap
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4397 unistd.h values.h sys/param.h
4398 do
4399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo "$as_me:$LINENO: checking for $ac_header" >&5
4402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 fi
4406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408 else
4409 # Is the header compilable?
4410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4412 cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h. */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 $ac_includes_default
4419 #include <$ac_header>
4420 _ACEOF
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_header_compiler=yes
4444 else
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448 ac_header_compiler=no
4449 fi
4450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4452 echo "${ECHO_T}$ac_header_compiler" >&6
4453
4454 # Is the header present?
4455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h. */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4463 #include <$ac_header>
4464 _ACEOF
4465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4467 ac_status=$?
4468 grep -v '^ *+' conftest.er1 >conftest.err
4469 rm -f conftest.er1
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } >/dev/null; then
4473 if test -s conftest.err; then
4474 ac_cpp_err=$ac_c_preproc_warn_flag
4475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4476 else
4477 ac_cpp_err=
4478 fi
4479 else
4480 ac_cpp_err=yes
4481 fi
4482 if test -z "$ac_cpp_err"; then
4483 ac_header_preproc=yes
4484 else
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 ac_header_preproc=no
4489 fi
4490 rm -f conftest.err conftest.$ac_ext
4491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4492 echo "${ECHO_T}$ac_header_preproc" >&6
4493
4494 # So? What about this header?
4495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4496 yes:no: )
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4501 ac_header_preproc=yes
4502 ;;
4503 no:yes:* )
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4516 (
4517 cat <<\_ASBOX
4518 ## ------------------------------------------ ##
4519 ## Report this to the AC_PACKAGE_NAME lists. ##
4520 ## ------------------------------------------ ##
4521 _ASBOX
4522 ) |
4523 sed "s/^/$as_me: WARNING: /" >&2
4524 ;;
4525 esac
4526 echo "$as_me:$LINENO: checking for $ac_header" >&5
4527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 eval "$as_ac_Header=\$ac_header_preproc"
4532 fi
4533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4535
4536 fi
4537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4538 cat >>confdefs.h <<_ACEOF
4539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4540 _ACEOF
4541
4542 fi
4543
4544 done
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4557 __argz_count __argz_stringify __argz_next
4558 do
4559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4560 echo "$as_me:$LINENO: checking for $ac_func" >&5
4561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4562 if eval "test \"\${$as_ac_var+set}\" = set"; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4573 #define $ac_func innocuous_$ac_func
4574
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func (); below.
4577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 <limits.h> exists even on freestanding compilers. */
4579
4580 #ifdef __STDC__
4581 # include <limits.h>
4582 #else
4583 # include <assert.h>
4584 #endif
4585
4586 #undef $ac_func
4587
4588 /* Override any gcc2 internal prototype to avoid an error. */
4589 #ifdef __cplusplus
4590 extern "C"
4591 {
4592 #endif
4593 /* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
4595 char $ac_func ();
4596 /* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4600 choke me
4601 #else
4602 char (*f) () = $ac_func;
4603 #endif
4604 #ifdef __cplusplus
4605 }
4606 #endif
4607
4608 int
4609 main ()
4610 {
4611 return f != $ac_func;
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 rm -f conftest.$ac_objext conftest$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 eval "$as_ac_var=yes"
4639 else
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 eval "$as_ac_var=no"
4644 fi
4645 rm -f conftest.err conftest.$ac_objext \
4646 conftest$ac_exeext conftest.$ac_ext
4647 fi
4648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4650 if test `eval echo '${'$as_ac_var'}'` = yes; then
4651 cat >>confdefs.h <<_ACEOF
4652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4653 _ACEOF
4654
4655 fi
4656 done
4657
4658
4659 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4660
4661 for ac_func in stpcpy
4662 do
4663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4664 echo "$as_me:$LINENO: checking for $ac_func" >&5
4665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4666 if eval "test \"\${$as_ac_var+set}\" = set"; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4677 #define $ac_func innocuous_$ac_func
4678
4679 /* System header to define __stub macros and hopefully few prototypes,
4680 which can conflict with char $ac_func (); below.
4681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 <limits.h> exists even on freestanding compilers. */
4683
4684 #ifdef __STDC__
4685 # include <limits.h>
4686 #else
4687 # include <assert.h>
4688 #endif
4689
4690 #undef $ac_func
4691
4692 /* Override any gcc2 internal prototype to avoid an error. */
4693 #ifdef __cplusplus
4694 extern "C"
4695 {
4696 #endif
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4699 char $ac_func ();
4700 /* The GNU C library defines this for functions which it implements
4701 to always fail with ENOSYS. Some functions are actually named
4702 something starting with __ and the normal name is an alias. */
4703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4704 choke me
4705 #else
4706 char (*f) () = $ac_func;
4707 #endif
4708 #ifdef __cplusplus
4709 }
4710 #endif
4711
4712 int
4713 main ()
4714 {
4715 return f != $ac_func;
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 rm -f conftest.$ac_objext conftest$ac_exeext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722 (eval $ac_link) 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 eval "$as_ac_var=yes"
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747 eval "$as_ac_var=no"
4748 fi
4749 rm -f conftest.err conftest.$ac_objext \
4750 conftest$ac_exeext conftest.$ac_ext
4751 fi
4752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4754 if test `eval echo '${'$as_ac_var'}'` = yes; then
4755 cat >>confdefs.h <<_ACEOF
4756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4757 _ACEOF
4758
4759 fi
4760 done
4761
4762 fi
4763 if test "${ac_cv_func_stpcpy}" = "yes"; then
4764
4765 cat >>confdefs.h <<\_ACEOF
4766 #define HAVE_STPCPY 1
4767 _ACEOF
4768
4769 fi
4770
4771 if test $ac_cv_header_locale_h = yes; then
4772 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4773 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4774 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 #include <locale.h>
4784 int
4785 main ()
4786 {
4787 return LC_MESSAGES
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 rm -f conftest.$ac_objext conftest$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 am_cv_val_LC_MESSAGES=yes
4815 else
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4818
4819 am_cv_val_LC_MESSAGES=no
4820 fi
4821 rm -f conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4823 fi
4824 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4825 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4826 if test $am_cv_val_LC_MESSAGES = yes; then
4827
4828 cat >>confdefs.h <<\_ACEOF
4829 #define HAVE_LC_MESSAGES 1
4830 _ACEOF
4831
4832 fi
4833 fi
4834 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4835 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4836 # Check whether --enable-nls or --disable-nls was given.
4837 if test "${enable_nls+set}" = set; then
4838 enableval="$enable_nls"
4839 USE_NLS=$enableval
4840 else
4841 USE_NLS=yes
4842 fi;
4843 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4844 echo "${ECHO_T}$USE_NLS" >&6
4845
4846
4847 USE_INCLUDED_LIBINTL=no
4848
4849 if test "$USE_NLS" = "yes"; then
4850 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4851 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4852
4853 # Check whether --with-included-gettext or --without-included-gettext was given.
4854 if test "${with_included_gettext+set}" = set; then
4855 withval="$with_included_gettext"
4856 nls_cv_force_use_gnu_gettext=$withval
4857 else
4858 nls_cv_force_use_gnu_gettext=no
4859 fi;
4860 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4861 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4862
4863 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4864 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4865 nls_cv_header_intl=
4866 nls_cv_header_libgt=
4867 CATOBJEXT=
4868
4869 if test "${ac_cv_header_libintl_h+set}" = set; then
4870 echo "$as_me:$LINENO: checking for libintl.h" >&5
4871 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4872 if test "${ac_cv_header_libintl_h+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 fi
4875 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4876 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4877 else
4878 # Is the header compilable?
4879 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4880 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 $ac_includes_default
4888 #include <libintl.h>
4889 _ACEOF
4890 rm -f conftest.$ac_objext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892 (eval $ac_compile) 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try='test -z "$ac_c_werror_flag"
4900 || test ! -s conftest.err'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; } &&
4906 { ac_try='test -s conftest.$ac_objext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_header_compiler=yes
4913 else
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 ac_header_compiler=no
4918 fi
4919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4921 echo "${ECHO_T}$ac_header_compiler" >&6
4922
4923 # Is the header present?
4924 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4925 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <libintl.h>
4933 _ACEOF
4934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null; then
4942 if test -s conftest.err; then
4943 ac_cpp_err=$ac_c_preproc_warn_flag
4944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4945 else
4946 ac_cpp_err=
4947 fi
4948 else
4949 ac_cpp_err=yes
4950 fi
4951 if test -z "$ac_cpp_err"; then
4952 ac_header_preproc=yes
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 ac_header_preproc=no
4958 fi
4959 rm -f conftest.err conftest.$ac_ext
4960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4961 echo "${ECHO_T}$ac_header_preproc" >&6
4962
4963 # So? What about this header?
4964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4965 yes:no: )
4966 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4967 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4968 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4969 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4970 ac_header_preproc=yes
4971 ;;
4972 no:yes:* )
4973 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4974 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4975 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4976 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4977 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4978 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4979 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4980 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4981 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4982 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4983 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4984 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4985 (
4986 cat <<\_ASBOX
4987 ## ------------------------------------------ ##
4988 ## Report this to the AC_PACKAGE_NAME lists. ##
4989 ## ------------------------------------------ ##
4990 _ASBOX
4991 ) |
4992 sed "s/^/$as_me: WARNING: /" >&2
4993 ;;
4994 esac
4995 echo "$as_me:$LINENO: checking for libintl.h" >&5
4996 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4997 if test "${ac_cv_header_libintl_h+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 ac_cv_header_libintl_h=$ac_header_preproc
5001 fi
5002 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5003 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5004
5005 fi
5006 if test $ac_cv_header_libintl_h = yes; then
5007 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5008 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5009 if test "${gt_cv_func_gettext_libc+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #include <libintl.h>
5019 int
5020 main ()
5021 {
5022 return (int) gettext ("")
5023 ;
5024 return 0;
5025 }
5026 _ACEOF
5027 rm -f conftest.$ac_objext conftest$ac_exeext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
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); }; } &&
5043 { ac_try='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 gt_cv_func_gettext_libc=yes
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 gt_cv_func_gettext_libc=no
5055 fi
5056 rm -f conftest.err conftest.$ac_objext \
5057 conftest$ac_exeext conftest.$ac_ext
5058 fi
5059 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5060 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5061
5062 if test "$gt_cv_func_gettext_libc" != "yes"; then
5063 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5064 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5065 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 ac_check_lib_save_LIBS=$LIBS
5069 LIBS="-lintl $LIBS"
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076
5077 /* Override any gcc2 internal prototype to avoid an error. */
5078 #ifdef __cplusplus
5079 extern "C"
5080 #endif
5081 /* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
5083 char bindtextdomain ();
5084 int
5085 main ()
5086 {
5087 bindtextdomain ();
5088 ;
5089 return 0;
5090 }
5091 _ACEOF
5092 rm -f conftest.$ac_objext conftest$ac_exeext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try='test -z "$ac_c_werror_flag"
5102 || test ! -s conftest.err'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; } &&
5108 { ac_try='test -s conftest$ac_exeext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 ac_cv_lib_intl_bindtextdomain=yes
5115 else
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ac_cv_lib_intl_bindtextdomain=no
5120 fi
5121 rm -f conftest.err conftest.$ac_objext \
5122 conftest$ac_exeext conftest.$ac_ext
5123 LIBS=$ac_check_lib_save_LIBS
5124 fi
5125 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5126 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5127 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5128 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5129 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5130 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h. */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139
5140 int
5141 main ()
5142 {
5143 return (int) gettext ("")
5144 ;
5145 return 0;
5146 }
5147 _ACEOF
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>conftest.er1
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try='test -z "$ac_c_werror_flag"
5158 || test ! -s conftest.err'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 (eval $ac_try) 2>&5
5161 ac_status=$?
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; } &&
5164 { ac_try='test -s conftest$ac_exeext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 (eval $ac_try) 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 gt_cv_func_gettext_libintl=yes
5171 else
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5174
5175 gt_cv_func_gettext_libintl=no
5176 fi
5177 rm -f conftest.err conftest.$ac_objext \
5178 conftest$ac_exeext conftest.$ac_ext
5179 fi
5180 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5181 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5182 fi
5183
5184 fi
5185
5186 if test "$gt_cv_func_gettext_libc" = "yes" \
5187 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5188
5189 cat >>confdefs.h <<\_ACEOF
5190 #define HAVE_GETTEXT 1
5191 _ACEOF
5192
5193 # Extract the first word of "msgfmt", so it can be a program name with args.
5194 set dummy msgfmt; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_path_MSGFMT+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 case "$MSGFMT" in
5201 /*)
5202 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5203 ;;
5204 *)
5205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5206 for ac_dir in $PATH; do
5207 test -z "$ac_dir" && ac_dir=.
5208 if test -f $ac_dir/$ac_word; then
5209 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5210 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5211 break
5212 fi
5213 fi
5214 done
5215 IFS="$ac_save_ifs"
5216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5217 ;;
5218 esac
5219 fi
5220 MSGFMT="$ac_cv_path_MSGFMT"
5221 if test -n "$MSGFMT"; then
5222 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5223 echo "${ECHO_T}$MSGFMT" >&6
5224 else
5225 echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6
5227 fi
5228 if test "$MSGFMT" != "no"; then
5229
5230 for ac_func in dcgettext
5231 do
5232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5233 echo "$as_me:$LINENO: checking for $ac_func" >&5
5234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5235 if eval "test \"\${$as_ac_var+set}\" = set"; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5246 #define $ac_func innocuous_$ac_func
5247
5248 /* System header to define __stub macros and hopefully few prototypes,
5249 which can conflict with char $ac_func (); below.
5250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5251 <limits.h> exists even on freestanding compilers. */
5252
5253 #ifdef __STDC__
5254 # include <limits.h>
5255 #else
5256 # include <assert.h>
5257 #endif
5258
5259 #undef $ac_func
5260
5261 /* Override any gcc2 internal prototype to avoid an error. */
5262 #ifdef __cplusplus
5263 extern "C"
5264 {
5265 #endif
5266 /* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5268 char $ac_func ();
5269 /* The GNU C library defines this for functions which it implements
5270 to always fail with ENOSYS. Some functions are actually named
5271 something starting with __ and the normal name is an alias. */
5272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5273 choke me
5274 #else
5275 char (*f) () = $ac_func;
5276 #endif
5277 #ifdef __cplusplus
5278 }
5279 #endif
5280
5281 int
5282 main ()
5283 {
5284 return f != $ac_func;
5285 ;
5286 return 0;
5287 }
5288 _ACEOF
5289 rm -f conftest.$ac_objext conftest$ac_exeext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try='test -s conftest$ac_exeext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 eval "$as_ac_var=yes"
5312 else
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 eval "$as_ac_var=no"
5317 fi
5318 rm -f conftest.err conftest.$ac_objext \
5319 conftest$ac_exeext conftest.$ac_ext
5320 fi
5321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5323 if test `eval echo '${'$as_ac_var'}'` = yes; then
5324 cat >>confdefs.h <<_ACEOF
5325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5326 _ACEOF
5327
5328 fi
5329 done
5330
5331 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5332 set dummy gmsgfmt; ac_word=$2
5333 echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5335 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338 case $GMSGFMT in
5339 [\\/]* | ?:[\\/]*)
5340 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5341 ;;
5342 *)
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354 done
5355 done
5356
5357 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5358 ;;
5359 esac
5360 fi
5361 GMSGFMT=$ac_cv_path_GMSGFMT
5362
5363 if test -n "$GMSGFMT"; then
5364 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5365 echo "${ECHO_T}$GMSGFMT" >&6
5366 else
5367 echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6
5369 fi
5370
5371 # Extract the first word of "xgettext", so it can be a program name with args.
5372 set dummy xgettext; ac_word=$2
5373 echo "$as_me:$LINENO: checking for $ac_word" >&5
5374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5375 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 case "$XGETTEXT" in
5379 /*)
5380 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5381 ;;
5382 *)
5383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5384 for ac_dir in $PATH; do
5385 test -z "$ac_dir" && ac_dir=.
5386 if test -f $ac_dir/$ac_word; then
5387 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5388 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5389 break
5390 fi
5391 fi
5392 done
5393 IFS="$ac_save_ifs"
5394 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5395 ;;
5396 esac
5397 fi
5398 XGETTEXT="$ac_cv_path_XGETTEXT"
5399 if test -n "$XGETTEXT"; then
5400 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5401 echo "${ECHO_T}$XGETTEXT" >&6
5402 else
5403 echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6
5405 fi
5406
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413
5414 int
5415 main ()
5416 {
5417 extern int _nl_msg_cat_cntr;
5418 return _nl_msg_cat_cntr
5419 ;
5420 return 0;
5421 }
5422 _ACEOF
5423 rm -f conftest.$ac_objext conftest$ac_exeext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425 (eval $ac_link) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -z "$ac_c_werror_flag"
5433 || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest$ac_exeext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 CATOBJEXT=.gmo
5446 DATADIRNAME=share
5447 else
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5450
5451 CATOBJEXT=.mo
5452 DATADIRNAME=lib
5453 fi
5454 rm -f conftest.err conftest.$ac_objext \
5455 conftest$ac_exeext conftest.$ac_ext
5456 INSTOBJEXT=.mo
5457 fi
5458 fi
5459
5460 fi
5461
5462
5463
5464
5465 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5466 # Neither gettext nor catgets in included in the C library.
5467 # Fall back on GNU gettext library (assuming it is present).
5468 nls_cv_use_gnu_gettext=yes
5469 fi
5470 fi
5471
5472 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5473 INTLOBJS="\$(GETTOBJS)"
5474 # Extract the first word of "msgfmt", so it can be a program name with args.
5475 set dummy msgfmt; ac_word=$2
5476 echo "$as_me:$LINENO: checking for $ac_word" >&5
5477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5478 if test "${ac_cv_path_MSGFMT+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481 case "$MSGFMT" in
5482 /*)
5483 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5484 ;;
5485 *)
5486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5487 for ac_dir in $PATH; do
5488 test -z "$ac_dir" && ac_dir=.
5489 if test -f $ac_dir/$ac_word; then
5490 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5491 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5492 break
5493 fi
5494 fi
5495 done
5496 IFS="$ac_save_ifs"
5497 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5498 ;;
5499 esac
5500 fi
5501 MSGFMT="$ac_cv_path_MSGFMT"
5502 if test -n "$MSGFMT"; then
5503 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5504 echo "${ECHO_T}$MSGFMT" >&6
5505 else
5506 echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5508 fi
5509
5510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5511 set dummy gmsgfmt; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 case $GMSGFMT in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5520 ;;
5521 *)
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533 done
5534 done
5535
5536 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5537 ;;
5538 esac
5539 fi
5540 GMSGFMT=$ac_cv_path_GMSGFMT
5541
5542 if test -n "$GMSGFMT"; then
5543 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5544 echo "${ECHO_T}$GMSGFMT" >&6
5545 else
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5548 fi
5549
5550 # Extract the first word of "xgettext", so it can be a program name with args.
5551 set dummy xgettext; ac_word=$2
5552 echo "$as_me:$LINENO: checking for $ac_word" >&5
5553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5554 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557 case "$XGETTEXT" in
5558 /*)
5559 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5560 ;;
5561 *)
5562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5563 for ac_dir in $PATH; do
5564 test -z "$ac_dir" && ac_dir=.
5565 if test -f $ac_dir/$ac_word; then
5566 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5567 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5568 break
5569 fi
5570 fi
5571 done
5572 IFS="$ac_save_ifs"
5573 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5574 ;;
5575 esac
5576 fi
5577 XGETTEXT="$ac_cv_path_XGETTEXT"
5578 if test -n "$XGETTEXT"; then
5579 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5580 echo "${ECHO_T}$XGETTEXT" >&6
5581 else
5582 echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5584 fi
5585
5586
5587 USE_INCLUDED_LIBINTL=yes
5588 CATOBJEXT=.gmo
5589 INSTOBJEXT=.mo
5590 DATADIRNAME=share
5591 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5592 INTLLIBS=$INTLDEPS
5593 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5594 nls_cv_header_intl=libintl.h
5595 nls_cv_header_libgt=libgettext.h
5596 fi
5597
5598 if test "$XGETTEXT" != ":"; then
5599 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5600 : ;
5601 else
5602 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5603 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5604 XGETTEXT=":"
5605 fi
5606 fi
5607
5608 # We need to process the po/ directory.
5609 POSUB=po
5610 else
5611 DATADIRNAME=share
5612 nls_cv_header_intl=libintl.h
5613 nls_cv_header_libgt=libgettext.h
5614 fi
5615
5616 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5617 # because some of the sources are only built for this goal.
5618 if test "$PACKAGE" = gettext; then
5619 USE_NLS=yes
5620 USE_INCLUDED_LIBINTL=yes
5621 fi
5622
5623 for lang in $ALL_LINGUAS; do
5624 GMOFILES="$GMOFILES $lang.gmo"
5625 POFILES="$POFILES $lang.po"
5626 done
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639 if test "x$CATOBJEXT" != "x"; then
5640
5641 cat >>confdefs.h <<\_ACEOF
5642 #define ENABLE_NLS 1
5643 _ACEOF
5644
5645 fi
5646
5647
5648 if test "x$CATOBJEXT" != "x"; then
5649 if test "x$ALL_LINGUAS" = "x"; then
5650 LINGUAS=
5651 else
5652 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5653 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5654 NEW_LINGUAS=
5655 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5656 case "$ALL_LINGUAS" in
5657 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5658 esac
5659 done
5660 LINGUAS=$NEW_LINGUAS
5661 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5662 echo "${ECHO_T}$LINGUAS" >&6
5663 fi
5664
5665 if test -n "$LINGUAS"; then
5666 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5667 fi
5668 fi
5669
5670 if test $ac_cv_header_locale_h = yes; then
5671 INCLUDE_LOCALE_H="#include <locale.h>"
5672 else
5673 INCLUDE_LOCALE_H="\
5674 /* The system does not provide the header <locale.h>. Take care yourself. */"
5675 fi
5676
5677
5678 if test -f $srcdir/po2tbl.sed.in; then
5679 if test "$CATOBJEXT" = ".cat"; then
5680 if test "${ac_cv_header_linux_version_h+set}" = set; then
5681 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5682 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5683 if test "${ac_cv_header_linux_version_h+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 fi
5686 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5687 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5688 else
5689 # Is the header compilable?
5690 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5691 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5692 cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h. */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5698 $ac_includes_default
5699 #include <linux/version.h>
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_header_compiler=yes
5724 else
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5727
5728 ac_header_compiler=no
5729 fi
5730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5732 echo "${ECHO_T}$ac_header_compiler" >&6
5733
5734 # Is the header present?
5735 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5736 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h. */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 #include <linux/version.h>
5744 _ACEOF
5745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } >/dev/null; then
5753 if test -s conftest.err; then
5754 ac_cpp_err=$ac_c_preproc_warn_flag
5755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5756 else
5757 ac_cpp_err=
5758 fi
5759 else
5760 ac_cpp_err=yes
5761 fi
5762 if test -z "$ac_cpp_err"; then
5763 ac_header_preproc=yes
5764 else
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 ac_header_preproc=no
5769 fi
5770 rm -f conftest.err conftest.$ac_ext
5771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5772 echo "${ECHO_T}$ac_header_preproc" >&6
5773
5774 # So? What about this header?
5775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5776 yes:no: )
5777 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5778 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5779 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5780 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5781 ac_header_preproc=yes
5782 ;;
5783 no:yes:* )
5784 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5785 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5787 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5789 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5790 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5791 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5792 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5793 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5794 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5795 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5796 (
5797 cat <<\_ASBOX
5798 ## ------------------------------------------ ##
5799 ## Report this to the AC_PACKAGE_NAME lists. ##
5800 ## ------------------------------------------ ##
5801 _ASBOX
5802 ) |
5803 sed "s/^/$as_me: WARNING: /" >&2
5804 ;;
5805 esac
5806 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5807 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5808 if test "${ac_cv_header_linux_version_h+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811 ac_cv_header_linux_version_h=$ac_header_preproc
5812 fi
5813 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5814 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5815
5816 fi
5817 if test $ac_cv_header_linux_version_h = yes; then
5818 msgformat=linux
5819 else
5820 msgformat=xopen
5821 fi
5822
5823
5824
5825 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5826 fi
5827 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5828 $srcdir/po2tbl.sed.in > po2tbl.sed
5829 fi
5830
5831 if test "$PACKAGE" = "gettext"; then
5832 GT_NO="#NO#"
5833 GT_YES=
5834 else
5835 GT_NO=
5836 GT_YES="#YES#"
5837 fi
5838
5839
5840
5841 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5842
5843
5844 l=
5845
5846
5847 if test -f $srcdir/po/POTFILES.in; then
5848 test -d po || mkdir po
5849 if test "x$srcdir" != "x."; then
5850 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5851 posrcprefix="$srcdir/"
5852 else
5853 posrcprefix="../$srcdir/"
5854 fi
5855 else
5856 posrcprefix="../"
5857 fi
5858 rm -f po/POTFILES
5859 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5860 < $srcdir/po/POTFILES.in > po/POTFILES
5861 fi
5862
5863
5864 localedir='${datadir}/locale'
5865
5866
5867 if test "x$POSUB" != x; then
5868
5869 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5870 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5871 # Look for .po and .gmo files in the source directory.
5872 CATALOGS=
5873 XLINGUAS=
5874 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5875 # If there aren't any .gmo files the shell will give us the
5876 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5877 # weeded out.
5878 case "$cat" in *\**)
5879 continue;;
5880 esac
5881 # The quadruple backslash is collapsed to a double backslash
5882 # by the backticks, then collapsed again by the double quotes,
5883 # leaving us with one backslash in the sed expression (right
5884 # before the dot that mustn't act as a wildcard).
5885 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5886 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5887 # The user is allowed to set LINGUAS to a list of languages to
5888 # install catalogs for. If it's empty that means "all of them."
5889 if test "x$LINGUAS" = x; then
5890 CATALOGS="$CATALOGS $cat"
5891 XLINGUAS="$XLINGUAS $lang"
5892 else
5893 case "$LINGUAS" in *$lang*)
5894 CATALOGS="$CATALOGS $cat"
5895 XLINGUAS="$XLINGUAS $lang"
5896 ;;
5897 esac
5898 fi
5899 done
5900 LINGUAS="$XLINGUAS"
5901 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5902 echo "${ECHO_T}$LINGUAS" >&6
5903
5904 CONFIG_ALL="$CONFIG_ALL all-po"
5905 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5906 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5907 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5908 fi
5909
5910 PACKAGE=gdb
5911
5912 cat >>confdefs.h <<_ACEOF
5913 #define PACKAGE "$PACKAGE"
5914 _ACEOF
5915
5916
5917
5918 debugdir=${libdir}/debug
5919
5920
5921 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5922 if test "${with_separate_debug_dir+set}" = set; then
5923 withval="$with_separate_debug_dir"
5924 debugdir="${withval}"
5925 fi;
5926
5927
5928 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5930 ac_define_dir=`eval echo $debugdir`
5931 ac_define_dir=`eval echo $ac_define_dir`
5932
5933 cat >>confdefs.h <<_ACEOF
5934 #define DEBUGDIR "$ac_define_dir"
5935 _ACEOF
5936
5937
5938 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5939
5940
5941
5942 subdirs="$subdirs doc testsuite"
5943
5944
5945 # Provide defaults for some variables set by the per-host and per-target
5946 # configuration.
5947 gdb_host_obs=posix-hdep.o
5948
5949 . $srcdir/configure.host
5950
5951 . $srcdir/configure.tgt
5952
5953 # Fetch the default architecture and default target vector from BFD.
5954 targ=$target; . $srcdir/../bfd/config.bfd
5955
5956 # We only want the first architecture, so strip off the others if
5957 # there is more than one.
5958 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5959
5960 if test "x$targ_archs" != x; then
5961
5962 cat >>confdefs.h <<_ACEOF
5963 #define DEFAULT_BFD_ARCH $targ_archs
5964 _ACEOF
5965
5966 fi
5967 if test "x$targ_defvec" != x; then
5968
5969 cat >>confdefs.h <<_ACEOF
5970 #define DEFAULT_BFD_VEC $targ_defvec
5971 _ACEOF
5972
5973 fi
5974
5975 test "$program_prefix" != NONE &&
5976 program_transform_name="s,^,$program_prefix,;$program_transform_name"
5977 # Use a double $ so make ignores it.
5978 test "$program_suffix" != NONE &&
5979 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5980 # Double any \ or $. echo might interpret backslashes.
5981 # By default was `s,x,x', remove it if useless.
5982 cat <<\_ACEOF >conftest.sed
5983 s/[\\$]/&&/g;s/;s,x,x,$//
5984 _ACEOF
5985 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5986 rm conftest.sed
5987
5988
5989 # The CLI cannot be disabled yet, but may be in the future.
5990
5991 # Enable CLI.
5992 # Check whether --enable-gdbcli or --disable-gdbcli was given.
5993 if test "${enable_gdbcli+set}" = set; then
5994 enableval="$enable_gdbcli"
5995 case $enableval in
5996 yes)
5997 ;;
5998 no)
5999 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6000 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6001 { (exit 1); exit 1; }; } ;;
6002 *)
6003 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6004 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6005 { (exit 1); exit 1; }; } ;;
6006 esac
6007 else
6008 enable_gdbcli=yes
6009 fi;
6010 if test x"$enable_gdbcli" = xyes; then
6011 if test -d $srcdir/cli; then
6012 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6013 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6014 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6015 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6016 fi
6017 fi
6018
6019 # Enable MI.
6020 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6021 if test "${enable_gdbmi+set}" = set; then
6022 enableval="$enable_gdbmi"
6023 case $enableval in
6024 yes | no)
6025 ;;
6026 *)
6027 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6028 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6029 { (exit 1); exit 1; }; } ;;
6030 esac
6031 else
6032 enable_gdbmi=yes
6033 fi;
6034 if test x"$enable_gdbmi" = xyes; then
6035 if test -d $srcdir/mi; then
6036 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6037 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6038 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6039 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6040 fi
6041 fi
6042
6043 # Enable TUI.
6044 # Check whether --enable-tui or --disable-tui was given.
6045 if test "${enable_tui+set}" = set; then
6046 enableval="$enable_tui"
6047 case $enableval in
6048 yes | no)
6049 ;;
6050 *)
6051 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6052 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6053 { (exit 1); exit 1; }; } ;;
6054 esac
6055 else
6056 enable_tui=yes
6057 fi;
6058
6059 # Enable gdbtk.
6060 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6061 if test "${enable_gdbtk+set}" = set; then
6062 enableval="$enable_gdbtk"
6063 case $enableval in
6064 yes | no)
6065 ;;
6066 *)
6067 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6068 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6069 { (exit 1); exit 1; }; } ;;
6070 esac
6071 else
6072 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
6073 enable_gdbtk=yes
6074 else
6075 enable_gdbtk=no
6076 fi
6077 fi;
6078 # We unconditionally disable gdbtk tests on selected platforms.
6079 case $host_os in
6080 go32* | windows*)
6081 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6082 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6083 enable_gdbtk=no ;;
6084 esac
6085
6086 # Libunwind support.
6087
6088 # Check whether --with-libunwind or --without-libunwind was given.
6089 if test "${with_libunwind+set}" = set; then
6090 withval="$with_libunwind"
6091 case "${withval}" in
6092 yes) enable_libunwind=yes ;;
6093 no) enable_libunwind=no ;;
6094 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6095 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6096 { (exit 1); exit 1; }; } ;;
6097 esac
6098 else
6099
6100
6101 for ac_header in libunwind.h
6102 do
6103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6105 echo "$as_me:$LINENO: checking for $ac_header" >&5
6106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 fi
6110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6112 else
6113 # Is the header compilable?
6114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6116 cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h. */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 $ac_includes_default
6123 #include <$ac_header>
6124 _ACEOF
6125 rm -f conftest.$ac_objext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127 (eval $ac_compile) 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -z "$ac_c_werror_flag"
6135 || test ! -s conftest.err'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest.$ac_objext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_header_compiler=yes
6148 else
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6151
6152 ac_header_compiler=no
6153 fi
6154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6156 echo "${ECHO_T}$ac_header_compiler" >&6
6157
6158 # Is the header present?
6159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h. */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 #include <$ac_header>
6168 _ACEOF
6169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6171 ac_status=$?
6172 grep -v '^ *+' conftest.er1 >conftest.err
6173 rm -f conftest.er1
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } >/dev/null; then
6177 if test -s conftest.err; then
6178 ac_cpp_err=$ac_c_preproc_warn_flag
6179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6180 else
6181 ac_cpp_err=
6182 fi
6183 else
6184 ac_cpp_err=yes
6185 fi
6186 if test -z "$ac_cpp_err"; then
6187 ac_header_preproc=yes
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 ac_header_preproc=no
6193 fi
6194 rm -f conftest.err conftest.$ac_ext
6195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6196 echo "${ECHO_T}$ac_header_preproc" >&6
6197
6198 # So? What about this header?
6199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6200 yes:no: )
6201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6205 ac_header_preproc=yes
6206 ;;
6207 no:yes:* )
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6220 (
6221 cat <<\_ASBOX
6222 ## ------------------------------------------ ##
6223 ## Report this to the AC_PACKAGE_NAME lists. ##
6224 ## ------------------------------------------ ##
6225 _ASBOX
6226 ) |
6227 sed "s/^/$as_me: WARNING: /" >&2
6228 ;;
6229 esac
6230 echo "$as_me:$LINENO: checking for $ac_header" >&5
6231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235 eval "$as_ac_Header=\$ac_header_preproc"
6236 fi
6237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6239
6240 fi
6241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6242 cat >>confdefs.h <<_ACEOF
6243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6244 _ACEOF
6245
6246 fi
6247
6248 done
6249
6250
6251 for ac_header in libunwind-ia64.h
6252 do
6253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6255 echo "$as_me:$LINENO: checking for $ac_header" >&5
6256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 fi
6260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6262 else
6263 # Is the header compilable?
6264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6266 cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h. */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272 $ac_includes_default
6273 #include <$ac_header>
6274 _ACEOF
6275 rm -f conftest.$ac_objext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6277 (eval $ac_compile) 2>conftest.er1
6278 ac_status=$?
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -z "$ac_c_werror_flag"
6285 || test ! -s conftest.err'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try='test -s conftest.$ac_objext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_header_compiler=yes
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302 ac_header_compiler=no
6303 fi
6304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6306 echo "${ECHO_T}$ac_header_compiler" >&6
6307
6308 # Is the header present?
6309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6311 cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h. */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317 #include <$ac_header>
6318 _ACEOF
6319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } >/dev/null; then
6327 if test -s conftest.err; then
6328 ac_cpp_err=$ac_c_preproc_warn_flag
6329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6330 else
6331 ac_cpp_err=
6332 fi
6333 else
6334 ac_cpp_err=yes
6335 fi
6336 if test -z "$ac_cpp_err"; then
6337 ac_header_preproc=yes
6338 else
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6341
6342 ac_header_preproc=no
6343 fi
6344 rm -f conftest.err conftest.$ac_ext
6345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6346 echo "${ECHO_T}$ac_header_preproc" >&6
6347
6348 # So? What about this header?
6349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6350 yes:no: )
6351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6355 ac_header_preproc=yes
6356 ;;
6357 no:yes:* )
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6370 (
6371 cat <<\_ASBOX
6372 ## ------------------------------------------ ##
6373 ## Report this to the AC_PACKAGE_NAME lists. ##
6374 ## ------------------------------------------ ##
6375 _ASBOX
6376 ) |
6377 sed "s/^/$as_me: WARNING: /" >&2
6378 ;;
6379 esac
6380 echo "$as_me:$LINENO: checking for $ac_header" >&5
6381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385 eval "$as_ac_Header=\$ac_header_preproc"
6386 fi
6387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6389
6390 fi
6391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6392 cat >>confdefs.h <<_ACEOF
6393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6394 _ACEOF
6395
6396 fi
6397
6398 done
6399
6400 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6401 enable_libunwind=yes;
6402 fi
6403
6404 fi;
6405
6406 if test x"$enable_libunwind" = xyes; then
6407
6408 for ac_header in libunwind.h
6409 do
6410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6412 echo "$as_me:$LINENO: checking for $ac_header" >&5
6413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 fi
6417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6419 else
6420 # Is the header compilable?
6421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 $ac_includes_default
6430 #include <$ac_header>
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest.$ac_objext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_header_compiler=yes
6455 else
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6458
6459 ac_header_compiler=no
6460 fi
6461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6463 echo "${ECHO_T}$ac_header_compiler" >&6
6464
6465 # Is the header present?
6466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6468 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h. */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 #include <$ac_header>
6475 _ACEOF
6476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } >/dev/null; then
6484 if test -s conftest.err; then
6485 ac_cpp_err=$ac_c_preproc_warn_flag
6486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6487 else
6488 ac_cpp_err=
6489 fi
6490 else
6491 ac_cpp_err=yes
6492 fi
6493 if test -z "$ac_cpp_err"; then
6494 ac_header_preproc=yes
6495 else
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6498
6499 ac_header_preproc=no
6500 fi
6501 rm -f conftest.err conftest.$ac_ext
6502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6503 echo "${ECHO_T}$ac_header_preproc" >&6
6504
6505 # So? What about this header?
6506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6507 yes:no: )
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6512 ac_header_preproc=yes
6513 ;;
6514 no:yes:* )
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6527 (
6528 cat <<\_ASBOX
6529 ## ------------------------------------------ ##
6530 ## Report this to the AC_PACKAGE_NAME lists. ##
6531 ## ------------------------------------------ ##
6532 _ASBOX
6533 ) |
6534 sed "s/^/$as_me: WARNING: /" >&2
6535 ;;
6536 esac
6537 echo "$as_me:$LINENO: checking for $ac_header" >&5
6538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542 eval "$as_ac_Header=\$ac_header_preproc"
6543 fi
6544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6546
6547 fi
6548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6549 cat >>confdefs.h <<_ACEOF
6550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6551 _ACEOF
6552
6553 fi
6554
6555 done
6556
6557
6558 for ac_header in libunwind-ia64.h
6559 do
6560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6562 echo "$as_me:$LINENO: checking for $ac_header" >&5
6563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 fi
6567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6569 else
6570 # Is the header compilable?
6571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 $ac_includes_default
6580 #include <$ac_header>
6581 _ACEOF
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>conftest.er1
6585 ac_status=$?
6586 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -f conftest.er1
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } &&
6591 { ac_try='test -z "$ac_c_werror_flag"
6592 || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 (eval $ac_try) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 (eval $ac_try) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_header_compiler=yes
6605 else
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6608
6609 ac_header_compiler=no
6610 fi
6611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6613 echo "${ECHO_T}$ac_header_compiler" >&6
6614
6615 # Is the header present?
6616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6618 cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h. */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 #include <$ac_header>
6625 _ACEOF
6626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6628 ac_status=$?
6629 grep -v '^ *+' conftest.er1 >conftest.err
6630 rm -f conftest.er1
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } >/dev/null; then
6634 if test -s conftest.err; then
6635 ac_cpp_err=$ac_c_preproc_warn_flag
6636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6637 else
6638 ac_cpp_err=
6639 fi
6640 else
6641 ac_cpp_err=yes
6642 fi
6643 if test -z "$ac_cpp_err"; then
6644 ac_header_preproc=yes
6645 else
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 ac_header_preproc=no
6650 fi
6651 rm -f conftest.err conftest.$ac_ext
6652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6653 echo "${ECHO_T}$ac_header_preproc" >&6
6654
6655 # So? What about this header?
6656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6657 yes:no: )
6658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6662 ac_header_preproc=yes
6663 ;;
6664 no:yes:* )
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6677 (
6678 cat <<\_ASBOX
6679 ## ------------------------------------------ ##
6680 ## Report this to the AC_PACKAGE_NAME lists. ##
6681 ## ------------------------------------------ ##
6682 _ASBOX
6683 ) |
6684 sed "s/^/$as_me: WARNING: /" >&2
6685 ;;
6686 esac
6687 echo "$as_me:$LINENO: checking for $ac_header" >&5
6688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692 eval "$as_ac_Header=\$ac_header_preproc"
6693 fi
6694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6696
6697 fi
6698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6699 cat >>confdefs.h <<_ACEOF
6700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6701 _ACEOF
6702
6703 fi
6704
6705 done
6706
6707
6708 cat >>confdefs.h <<\_ACEOF
6709 #define HAVE_LIBUNWIND 1
6710 _ACEOF
6711
6712 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6713 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6714 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6715 fi
6716
6717 # Profiling support.
6718 # Check whether --enable-profiling or --disable-profiling was given.
6719 if test "${enable_profiling+set}" = set; then
6720 enableval="$enable_profiling"
6721 case $enableval in
6722 yes | no)
6723 ;;
6724 *)
6725 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6726 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6727 { (exit 1); exit 1; }; } ;;
6728 esac
6729 else
6730 enable_profiling=no
6731 fi;
6732
6733
6734
6735 for ac_func in monstartup _mcleanup
6736 do
6737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6738 echo "$as_me:$LINENO: checking for $ac_func" >&5
6739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6740 if eval "test \"\${$as_ac_var+set}\" = set"; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743 cat >conftest.$ac_ext <<_ACEOF
6744 /* confdefs.h. */
6745 _ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6751 #define $ac_func innocuous_$ac_func
6752
6753 /* System header to define __stub macros and hopefully few prototypes,
6754 which can conflict with char $ac_func (); below.
6755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6756 <limits.h> exists even on freestanding compilers. */
6757
6758 #ifdef __STDC__
6759 # include <limits.h>
6760 #else
6761 # include <assert.h>
6762 #endif
6763
6764 #undef $ac_func
6765
6766 /* Override any gcc2 internal prototype to avoid an error. */
6767 #ifdef __cplusplus
6768 extern "C"
6769 {
6770 #endif
6771 /* We use char because int might match the return type of a gcc2
6772 builtin and then its argument prototype would still apply. */
6773 char $ac_func ();
6774 /* The GNU C library defines this for functions which it implements
6775 to always fail with ENOSYS. Some functions are actually named
6776 something starting with __ and the normal name is an alias. */
6777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6778 choke me
6779 #else
6780 char (*f) () = $ac_func;
6781 #endif
6782 #ifdef __cplusplus
6783 }
6784 #endif
6785
6786 int
6787 main ()
6788 {
6789 return f != $ac_func;
6790 ;
6791 return 0;
6792 }
6793 _ACEOF
6794 rm -f conftest.$ac_objext conftest$ac_exeext
6795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6796 (eval $ac_link) 2>conftest.er1
6797 ac_status=$?
6798 grep -v '^ *+' conftest.er1 >conftest.err
6799 rm -f conftest.er1
6800 cat conftest.err >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } &&
6803 { ac_try='test -z "$ac_c_werror_flag"
6804 || test ! -s conftest.err'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; } &&
6810 { ac_try='test -s conftest$ac_exeext'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6816 eval "$as_ac_var=yes"
6817 else
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6820
6821 eval "$as_ac_var=no"
6822 fi
6823 rm -f conftest.err conftest.$ac_objext \
6824 conftest$ac_exeext conftest.$ac_ext
6825 fi
6826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6828 if test `eval echo '${'$as_ac_var'}'` = yes; then
6829 cat >>confdefs.h <<_ACEOF
6830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6831 _ACEOF
6832
6833 fi
6834 done
6835
6836 echo "$as_me:$LINENO: checking for _etext" >&5
6837 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6838 if test "${ac_cv_var__etext+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841 cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h. */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 #include <stdlib.h>
6848 extern char _etext;
6849
6850 int
6851 main ()
6852 {
6853 free (&_etext);
6854 ;
6855 return 0;
6856 }
6857 _ACEOF
6858 rm -f conftest.$ac_objext conftest$ac_exeext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6860 (eval $ac_link) 2>conftest.er1
6861 ac_status=$?
6862 grep -v '^ *+' conftest.er1 >conftest.err
6863 rm -f conftest.er1
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
6867 { ac_try='test -z "$ac_c_werror_flag"
6868 || test ! -s conftest.err'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 (eval $ac_try) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; } &&
6874 { ac_try='test -s conftest$ac_exeext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 ac_cv_var__etext=yes
6881 else
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 ac_cv_var__etext=no
6886 fi
6887 rm -f conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
6889 fi
6890 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6891 echo "${ECHO_T}$ac_cv_var__etext" >&6
6892 if test $ac_cv_var__etext = yes; then
6893
6894 cat >>confdefs.h <<\_ACEOF
6895 #define HAVE__ETEXT 1
6896 _ACEOF
6897
6898 fi
6899 if test "$enable_profiling" = yes ; then
6900 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6901 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6902 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6903 { (exit 1); exit 1; }; }
6904 fi
6905 PROFILE_CFLAGS=-pg
6906 OLD_CFLAGS="$CFLAGS"
6907 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6908
6909 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6910 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6911 if test "${ac_cv_cc_supports_pg+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920
6921 int
6922 main ()
6923 {
6924 int x;
6925 ;
6926 return 0;
6927 }
6928 _ACEOF
6929 rm -f conftest.$ac_objext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -z "$ac_c_werror_flag"
6939 || test ! -s conftest.err'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; } &&
6945 { ac_try='test -s conftest.$ac_objext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_cv_cc_supports_pg=yes
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6955
6956 ac_cv_cc_supports_pg=no
6957 fi
6958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6959 fi
6960 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6961 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6962
6963 if test $ac_cv_cc_supports_pg = no; then
6964 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6965 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6966 { (exit 1); exit 1; }; }
6967 fi
6968
6969 CFLAGS="$OLD_CFLAGS"
6970 fi
6971
6972 # --------------------- #
6973 # Checks for programs. #
6974 # --------------------- #
6975
6976 for ac_prog in gawk mawk nawk awk
6977 do
6978 # Extract the first word of "$ac_prog", so it can be a program name with args.
6979 set dummy $ac_prog; ac_word=$2
6980 echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6982 if test "${ac_cv_prog_AWK+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 if test -n "$AWK"; then
6986 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_AWK="$ac_prog"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999 done
7000 done
7001
7002 fi
7003 fi
7004 AWK=$ac_cv_prog_AWK
7005 if test -n "$AWK"; then
7006 echo "$as_me:$LINENO: result: $AWK" >&5
7007 echo "${ECHO_T}$AWK" >&6
7008 else
7009 echo "$as_me:$LINENO: result: no" >&5
7010 echo "${ECHO_T}no" >&6
7011 fi
7012
7013 test -n "$AWK" && break
7014 done
7015
7016 # Find a good install program. We prefer a C program (faster),
7017 # so one script is as good as another. But avoid the broken or
7018 # incompatible versions:
7019 # SysV /etc/install, /usr/sbin/install
7020 # SunOS /usr/etc/install
7021 # IRIX /sbin/install
7022 # AIX /bin/install
7023 # AmigaOS /C/install, which installs bootblocks on floppy discs
7024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7027 # OS/2's system install, which has a completely different semantic
7028 # ./install, which can be erroneously created by make from ./install.sh.
7029 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7030 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7031 if test -z "$INSTALL"; then
7032 if test "${ac_cv_path_install+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7037 do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 # Account for people who put trailing slashes in PATH elements.
7041 case $as_dir/ in
7042 ./ | .// | /cC/* | \
7043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7044 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7045 /usr/ucb/* ) ;;
7046 *)
7047 # OSF1 and SCO ODT 3.0 have their own names for install.
7048 # Don't use installbsd from OSF since it installs stuff as root
7049 # by default.
7050 for ac_prog in ginstall scoinst install; do
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7053 if test $ac_prog = install &&
7054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7055 # AIX install. It has an incompatible calling convention.
7056 :
7057 elif test $ac_prog = install &&
7058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7059 # program-specific install script used by HP pwplus--don't use.
7060 :
7061 else
7062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7063 break 3
7064 fi
7065 fi
7066 done
7067 done
7068 ;;
7069 esac
7070 done
7071
7072
7073 fi
7074 if test "${ac_cv_path_install+set}" = set; then
7075 INSTALL=$ac_cv_path_install
7076 else
7077 # As a last resort, use the slow shell script. We don't cache a
7078 # path for INSTALL within a source directory, because that will
7079 # break other packages using the cache if that directory is
7080 # removed, or if the path is relative.
7081 INSTALL=$ac_install_sh
7082 fi
7083 fi
7084 echo "$as_me:$LINENO: result: $INSTALL" >&5
7085 echo "${ECHO_T}$INSTALL" >&6
7086
7087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7088 # It thinks the first close brace ends the variable substitution.
7089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7090
7091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7092
7093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7094
7095 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7096 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7097 LN_S=$as_ln_s
7098 if test "$LN_S" = "ln -s"; then
7099 echo "$as_me:$LINENO: result: yes" >&5
7100 echo "${ECHO_T}yes" >&6
7101 else
7102 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7103 echo "${ECHO_T}no, using $LN_S" >&6
7104 fi
7105
7106 if test -n "$ac_tool_prefix"; then
7107 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7108 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7109 echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7111 if test "${ac_cv_prog_RANLIB+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114 if test -n "$RANLIB"; then
7115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128 done
7129 done
7130
7131 fi
7132 fi
7133 RANLIB=$ac_cv_prog_RANLIB
7134 if test -n "$RANLIB"; then
7135 echo "$as_me:$LINENO: result: $RANLIB" >&5
7136 echo "${ECHO_T}$RANLIB" >&6
7137 else
7138 echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6
7140 fi
7141
7142 fi
7143 if test -z "$ac_cv_prog_RANLIB"; then
7144 ac_ct_RANLIB=$RANLIB
7145 # Extract the first word of "ranlib", so it can be a program name with args.
7146 set dummy ranlib; ac_word=$2
7147 echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152 if test -n "$ac_ct_RANLIB"; then
7153 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_ac_ct_RANLIB="ranlib"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166 done
7167 done
7168
7169 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7170 fi
7171 fi
7172 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7173 if test -n "$ac_ct_RANLIB"; then
7174 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7175 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7176 else
7177 echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6
7179 fi
7180
7181 RANLIB=$ac_ct_RANLIB
7182 else
7183 RANLIB="$ac_cv_prog_RANLIB"
7184 fi
7185
7186 for ac_prog in 'bison -y' byacc
7187 do
7188 # Extract the first word of "$ac_prog", so it can be a program name with args.
7189 set dummy $ac_prog; ac_word=$2
7190 echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7192 if test "${ac_cv_prog_YACC+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195 if test -n "$YACC"; then
7196 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205 ac_cv_prog_YACC="$ac_prog"
7206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 break 2
7208 fi
7209 done
7210 done
7211
7212 fi
7213 fi
7214 YACC=$ac_cv_prog_YACC
7215 if test -n "$YACC"; then
7216 echo "$as_me:$LINENO: result: $YACC" >&5
7217 echo "${ECHO_T}$YACC" >&6
7218 else
7219 echo "$as_me:$LINENO: result: no" >&5
7220 echo "${ECHO_T}no" >&6
7221 fi
7222
7223 test -n "$YACC" && break
7224 done
7225 test -n "$YACC" || YACC="yacc"
7226
7227
7228 if test -n "$ac_tool_prefix"; then
7229 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7230 set dummy ${ac_tool_prefix}ar; ac_word=$2
7231 echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233 if test "${ac_cv_prog_AR+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236 if test -n "$AR"; then
7237 ac_cv_prog_AR="$AR" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_AR="${ac_tool_prefix}ar"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250 done
7251 done
7252
7253 fi
7254 fi
7255 AR=$ac_cv_prog_AR
7256 if test -n "$AR"; then
7257 echo "$as_me:$LINENO: result: $AR" >&5
7258 echo "${ECHO_T}$AR" >&6
7259 else
7260 echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6
7262 fi
7263
7264 fi
7265 if test -z "$ac_cv_prog_AR"; then
7266 ac_ct_AR=$AR
7267 # Extract the first word of "ar", so it can be a program name with args.
7268 set dummy ar; ac_word=$2
7269 echo "$as_me:$LINENO: checking for $ac_word" >&5
7270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7271 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274 if test -n "$ac_ct_AR"; then
7275 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284 ac_cv_prog_ac_ct_AR="ar"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7287 fi
7288 done
7289 done
7290
7291 fi
7292 fi
7293 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7294 if test -n "$ac_ct_AR"; then
7295 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7296 echo "${ECHO_T}$ac_ct_AR" >&6
7297 else
7298 echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6
7300 fi
7301
7302 AR=$ac_ct_AR
7303 else
7304 AR="$ac_cv_prog_AR"
7305 fi
7306
7307 if test -n "$ac_tool_prefix"; then
7308 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7309 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7310 echo "$as_me:$LINENO: checking for $ac_word" >&5
7311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7312 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315 if test -n "$DLLTOOL"; then
7316 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7317 else
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7320 do
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7328 fi
7329 done
7330 done
7331
7332 fi
7333 fi
7334 DLLTOOL=$ac_cv_prog_DLLTOOL
7335 if test -n "$DLLTOOL"; then
7336 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7337 echo "${ECHO_T}$DLLTOOL" >&6
7338 else
7339 echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7341 fi
7342
7343 fi
7344 if test -z "$ac_cv_prog_DLLTOOL"; then
7345 ac_ct_DLLTOOL=$DLLTOOL
7346 # Extract the first word of "dlltool", so it can be a program name with args.
7347 set dummy dlltool; ac_word=$2
7348 echo "$as_me:$LINENO: checking for $ac_word" >&5
7349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7350 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353 if test -n "$ac_ct_DLLTOOL"; then
7354 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7366 fi
7367 done
7368 done
7369
7370 fi
7371 fi
7372 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7373 if test -n "$ac_ct_DLLTOOL"; then
7374 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7375 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7376 else
7377 echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6
7379 fi
7380
7381 DLLTOOL=$ac_ct_DLLTOOL
7382 else
7383 DLLTOOL="$ac_cv_prog_DLLTOOL"
7384 fi
7385
7386 if test -n "$ac_tool_prefix"; then
7387 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7388 set dummy ${ac_tool_prefix}windres; ac_word=$2
7389 echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7391 if test "${ac_cv_prog_WINDRES+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394 if test -n "$WINDRES"; then
7395 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408 done
7409 done
7410
7411 fi
7412 fi
7413 WINDRES=$ac_cv_prog_WINDRES
7414 if test -n "$WINDRES"; then
7415 echo "$as_me:$LINENO: result: $WINDRES" >&5
7416 echo "${ECHO_T}$WINDRES" >&6
7417 else
7418 echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6
7420 fi
7421
7422 fi
7423 if test -z "$ac_cv_prog_WINDRES"; then
7424 ac_ct_WINDRES=$WINDRES
7425 # Extract the first word of "windres", so it can be a program name with args.
7426 set dummy windres; ac_word=$2
7427 echo "$as_me:$LINENO: checking for $ac_word" >&5
7428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7429 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432 if test -n "$ac_ct_WINDRES"; then
7433 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_prog_ac_ct_WINDRES="windres"
7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446 done
7447 done
7448
7449 fi
7450 fi
7451 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7452 if test -n "$ac_ct_WINDRES"; then
7453 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7454 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7455 else
7456 echo "$as_me:$LINENO: result: no" >&5
7457 echo "${ECHO_T}no" >&6
7458 fi
7459
7460 WINDRES=$ac_ct_WINDRES
7461 else
7462 WINDRES="$ac_cv_prog_WINDRES"
7463 fi
7464
7465
7466 # Needed for GNU/Hurd.
7467 if test -n "$ac_tool_prefix"; then
7468 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7469 set dummy ${ac_tool_prefix}mig; ac_word=$2
7470 echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7472 if test "${ac_cv_prog_MIG+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 if test -n "$MIG"; then
7476 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489 done
7490 done
7491
7492 fi
7493 fi
7494 MIG=$ac_cv_prog_MIG
7495 if test -n "$MIG"; then
7496 echo "$as_me:$LINENO: result: $MIG" >&5
7497 echo "${ECHO_T}$MIG" >&6
7498 else
7499 echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6
7501 fi
7502
7503 fi
7504 if test -z "$ac_cv_prog_MIG"; then
7505 ac_ct_MIG=$MIG
7506 # Extract the first word of "mig", so it can be a program name with args.
7507 set dummy mig; ac_word=$2
7508 echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7510 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513 if test -n "$ac_ct_MIG"; then
7514 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523 ac_cv_prog_ac_ct_MIG="mig"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527 done
7528 done
7529
7530 fi
7531 fi
7532 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7533 if test -n "$ac_ct_MIG"; then
7534 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7535 echo "${ECHO_T}$ac_ct_MIG" >&6
7536 else
7537 echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7539 fi
7540
7541 MIG=$ac_ct_MIG
7542 else
7543 MIG="$ac_cv_prog_MIG"
7544 fi
7545
7546
7547 # ---------------------- #
7548 # Checks for libraries. #
7549 # ---------------------- #
7550
7551 # We might need to link with -lm; most simulators need it.
7552
7553 echo "$as_me:$LINENO: checking for main in -lm" >&5
7554 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7555 if test "${ac_cv_lib_m_main+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558 ac_check_lib_save_LIBS=$LIBS
7559 LIBS="-lm $LIBS"
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566
7567
7568 int
7569 main ()
7570 {
7571 main ();
7572 ;
7573 return 0;
7574 }
7575 _ACEOF
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7578 (eval $ac_link) 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try='test -z "$ac_c_werror_flag"
7586 || test ! -s conftest.err'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; } &&
7592 { ac_try='test -s conftest$ac_exeext'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 (eval $ac_try) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7598 ac_cv_lib_m_main=yes
7599 else
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7602
7603 ac_cv_lib_m_main=no
7604 fi
7605 rm -f conftest.err conftest.$ac_objext \
7606 conftest$ac_exeext conftest.$ac_ext
7607 LIBS=$ac_check_lib_save_LIBS
7608 fi
7609 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7610 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7611 if test $ac_cv_lib_m_main = yes; then
7612 cat >>confdefs.h <<_ACEOF
7613 #define HAVE_LIBM 1
7614 _ACEOF
7615
7616 LIBS="-lm $LIBS"
7617
7618 fi
7619
7620
7621 # We need to link with -lw to get `wctype' on Solaris before Solaris
7622 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7623 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7624 # is known to have this problem). Therefore we avoid libw if we can.
7625 echo "$as_me:$LINENO: checking for wctype" >&5
7626 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7627 if test "${ac_cv_func_wctype+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7638 #define wctype innocuous_wctype
7639
7640 /* System header to define __stub macros and hopefully few prototypes,
7641 which can conflict with char wctype (); below.
7642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7643 <limits.h> exists even on freestanding compilers. */
7644
7645 #ifdef __STDC__
7646 # include <limits.h>
7647 #else
7648 # include <assert.h>
7649 #endif
7650
7651 #undef wctype
7652
7653 /* Override any gcc2 internal prototype to avoid an error. */
7654 #ifdef __cplusplus
7655 extern "C"
7656 {
7657 #endif
7658 /* We use char because int might match the return type of a gcc2
7659 builtin and then its argument prototype would still apply. */
7660 char wctype ();
7661 /* The GNU C library defines this for functions which it implements
7662 to always fail with ENOSYS. Some functions are actually named
7663 something starting with __ and the normal name is an alias. */
7664 #if defined (__stub_wctype) || defined (__stub___wctype)
7665 choke me
7666 #else
7667 char (*f) () = wctype;
7668 #endif
7669 #ifdef __cplusplus
7670 }
7671 #endif
7672
7673 int
7674 main ()
7675 {
7676 return f != wctype;
7677 ;
7678 return 0;
7679 }
7680 _ACEOF
7681 rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7683 (eval $ac_link) 2>conftest.er1
7684 ac_status=$?
7685 grep -v '^ *+' conftest.er1 >conftest.err
7686 rm -f conftest.er1
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -z "$ac_c_werror_flag"
7691 || test ! -s conftest.err'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 (eval $ac_try) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest$ac_exeext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_cv_func_wctype=yes
7704 else
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7707
7708 ac_cv_func_wctype=no
7709 fi
7710 rm -f conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7712 fi
7713 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7714 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7715 if test $ac_cv_func_wctype = yes; then
7716 :
7717 else
7718
7719 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7720 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7721 if test "${ac_cv_lib_w_wctype+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724 ac_check_lib_save_LIBS=$LIBS
7725 LIBS="-lw $LIBS"
7726 cat >conftest.$ac_ext <<_ACEOF
7727 /* confdefs.h. */
7728 _ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h. */
7732
7733 /* Override any gcc2 internal prototype to avoid an error. */
7734 #ifdef __cplusplus
7735 extern "C"
7736 #endif
7737 /* We use char because int might match the return type of a gcc2
7738 builtin and then its argument prototype would still apply. */
7739 char wctype ();
7740 int
7741 main ()
7742 {
7743 wctype ();
7744 ;
7745 return 0;
7746 }
7747 _ACEOF
7748 rm -f conftest.$ac_objext conftest$ac_exeext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750 (eval $ac_link) 2>conftest.er1
7751 ac_status=$?
7752 grep -v '^ *+' conftest.er1 >conftest.err
7753 rm -f conftest.er1
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -z "$ac_c_werror_flag"
7758 || test ! -s conftest.err'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest$ac_exeext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_cv_lib_w_wctype=yes
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7774
7775 ac_cv_lib_w_wctype=no
7776 fi
7777 rm -f conftest.err conftest.$ac_objext \
7778 conftest$ac_exeext conftest.$ac_ext
7779 LIBS=$ac_check_lib_save_LIBS
7780 fi
7781 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7782 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7783 if test $ac_cv_lib_w_wctype = yes; then
7784 cat >>confdefs.h <<_ACEOF
7785 #define HAVE_LIBW 1
7786 _ACEOF
7787
7788 LIBS="-lw $LIBS"
7789
7790 fi
7791
7792 fi
7793
7794
7795 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7796 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7797 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7798 if test "${ac_cv_search_gethostbyname+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801 ac_func_search_save_LIBS=$LIBS
7802 ac_cv_search_gethostbyname=no
7803 cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h. */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809
7810 /* Override any gcc2 internal prototype to avoid an error. */
7811 #ifdef __cplusplus
7812 extern "C"
7813 #endif
7814 /* We use char because int might match the return type of a gcc2
7815 builtin and then its argument prototype would still apply. */
7816 char gethostbyname ();
7817 int
7818 main ()
7819 {
7820 gethostbyname ();
7821 ;
7822 return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -z "$ac_c_werror_flag"
7835 || test ! -s conftest.err'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 ac_cv_search_gethostbyname="none required"
7848 else
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7851
7852 fi
7853 rm -f conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7855 if test "$ac_cv_search_gethostbyname" = no; then
7856 for ac_lib in nsl; do
7857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7858 cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h. */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7864
7865 /* Override any gcc2 internal prototype to avoid an error. */
7866 #ifdef __cplusplus
7867 extern "C"
7868 #endif
7869 /* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7871 char gethostbyname ();
7872 int
7873 main ()
7874 {
7875 gethostbyname ();
7876 ;
7877 return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest$ac_exeext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_search_gethostbyname="-l$ac_lib"
7903 break
7904 else
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7907
7908 fi
7909 rm -f conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7911 done
7912 fi
7913 LIBS=$ac_func_search_save_LIBS
7914 fi
7915 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7916 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7917 if test "$ac_cv_search_gethostbyname" != no; then
7918 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7919
7920 fi
7921
7922
7923 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7924 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7925 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7926 if test "${ac_cv_search_socketpair+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929 ac_func_search_save_LIBS=$LIBS
7930 ac_cv_search_socketpair=no
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937
7938 /* Override any gcc2 internal prototype to avoid an error. */
7939 #ifdef __cplusplus
7940 extern "C"
7941 #endif
7942 /* We use char because int might match the return type of a gcc2
7943 builtin and then its argument prototype would still apply. */
7944 char socketpair ();
7945 int
7946 main ()
7947 {
7948 socketpair ();
7949 ;
7950 return 0;
7951 }
7952 _ACEOF
7953 rm -f conftest.$ac_objext conftest$ac_exeext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955 (eval $ac_link) 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -z "$ac_c_werror_flag"
7963 || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest$ac_exeext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 (eval $ac_try) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 ac_cv_search_socketpair="none required"
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7979
7980 fi
7981 rm -f conftest.err conftest.$ac_objext \
7982 conftest$ac_exeext conftest.$ac_ext
7983 if test "$ac_cv_search_socketpair" = no; then
7984 for ac_lib in socket; do
7985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7986 cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h. */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7992
7993 /* Override any gcc2 internal prototype to avoid an error. */
7994 #ifdef __cplusplus
7995 extern "C"
7996 #endif
7997 /* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
7999 char socketpair ();
8000 int
8001 main ()
8002 {
8003 socketpair ();
8004 ;
8005 return 0;
8006 }
8007 _ACEOF
8008 rm -f conftest.$ac_objext conftest$ac_exeext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010 (eval $ac_link) 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -z "$ac_c_werror_flag"
8018 || test ! -s conftest.err'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 (eval $ac_try) 2>&5
8021 ac_status=$?
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; } &&
8024 { ac_try='test -s conftest$ac_exeext'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; }; then
8030 ac_cv_search_socketpair="-l$ac_lib"
8031 break
8032 else
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8035
8036 fi
8037 rm -f conftest.err conftest.$ac_objext \
8038 conftest$ac_exeext conftest.$ac_ext
8039 done
8040 fi
8041 LIBS=$ac_func_search_save_LIBS
8042 fi
8043 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8044 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8045 if test "$ac_cv_search_socketpair" != no; then
8046 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8047
8048 fi
8049
8050
8051 # For the TUI, we need enhanced curses functionality.
8052 #
8053 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8054 # curses library because the latter might not provide all the
8055 # functionality we need. However, this leads to problems on systems
8056 # where the linker searches /usr/local/lib, but the compiler doesn't
8057 # search /usr/local/include, if ncurses is installed in /usr/local. A
8058 # default installation of ncurses on alpha*-dec-osf* will lead to such
8059 # a situation.
8060 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8061 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8062 if test "${ac_cv_search_waddstr+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065 ac_func_search_save_LIBS=$LIBS
8066 ac_cv_search_waddstr=no
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073
8074 /* Override any gcc2 internal prototype to avoid an error. */
8075 #ifdef __cplusplus
8076 extern "C"
8077 #endif
8078 /* We use char because int might match the return type of a gcc2
8079 builtin and then its argument prototype would still apply. */
8080 char waddstr ();
8081 int
8082 main ()
8083 {
8084 waddstr ();
8085 ;
8086 return 0;
8087 }
8088 _ACEOF
8089 rm -f conftest.$ac_objext conftest$ac_exeext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try='test -z "$ac_c_werror_flag"
8099 || test ! -s conftest.err'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 (eval $ac_try) 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try='test -s conftest$ac_exeext'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 (eval $ac_try) 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8111 ac_cv_search_waddstr="none required"
8112 else
8113 echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8115
8116 fi
8117 rm -f conftest.err conftest.$ac_objext \
8118 conftest$ac_exeext conftest.$ac_ext
8119 if test "$ac_cv_search_waddstr" = no; then
8120 for ac_lib in ncurses cursesX curses; do
8121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128
8129 /* Override any gcc2 internal prototype to avoid an error. */
8130 #ifdef __cplusplus
8131 extern "C"
8132 #endif
8133 /* We use char because int might match the return type of a gcc2
8134 builtin and then its argument prototype would still apply. */
8135 char waddstr ();
8136 int
8137 main ()
8138 {
8139 waddstr ();
8140 ;
8141 return 0;
8142 }
8143 _ACEOF
8144 rm -f conftest.$ac_objext conftest$ac_exeext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8146 (eval $ac_link) 2>conftest.er1
8147 ac_status=$?
8148 grep -v '^ *+' conftest.er1 >conftest.err
8149 rm -f conftest.er1
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try='test -z "$ac_c_werror_flag"
8154 || test ! -s conftest.err'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 (eval $ac_try) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; } &&
8160 { ac_try='test -s conftest$ac_exeext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 (eval $ac_try) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_cv_search_waddstr="-l$ac_lib"
8167 break
8168 else
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8171
8172 fi
8173 rm -f conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175 done
8176 fi
8177 LIBS=$ac_func_search_save_LIBS
8178 fi
8179 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8180 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8181 if test "$ac_cv_search_waddstr" != no; then
8182 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8183
8184 fi
8185
8186
8187 # Since GDB uses Readline, we need termcap functionality. In many
8188 # cases this will be provided by the curses library, but some systems
8189 # have a seperate termcap library, or no curses library at all.
8190
8191 case $host_os in
8192 cygwin*)
8193 if test -d $srcdir/libtermcap; then
8194 LIBS="../libtermcap/libtermcap.a $LIBS"
8195 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8196 fi ;;
8197 go32* | *djgpp*)
8198 ac_cv_search_tgetent="none required"
8199 ;;
8200 *mingw32*)
8201 ac_cv_search_tgetent="none required"
8202 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
8203 ;;
8204 esac
8205
8206 # These are the libraries checked by Readline.
8207 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8208 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8209 if test "${ac_cv_search_tgetent+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212 ac_func_search_save_LIBS=$LIBS
8213 ac_cv_search_tgetent=no
8214 cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h. */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8220
8221 /* Override any gcc2 internal prototype to avoid an error. */
8222 #ifdef __cplusplus
8223 extern "C"
8224 #endif
8225 /* We use char because int might match the return type of a gcc2
8226 builtin and then its argument prototype would still apply. */
8227 char tgetent ();
8228 int
8229 main ()
8230 {
8231 tgetent ();
8232 ;
8233 return 0;
8234 }
8235 _ACEOF
8236 rm -f conftest.$ac_objext conftest$ac_exeext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8238 (eval $ac_link) 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag"
8246 || test ! -s conftest.err'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 (eval $ac_try) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; } &&
8252 { ac_try='test -s conftest$ac_exeext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_cv_search_tgetent="none required"
8259 else
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263 fi
8264 rm -f conftest.err conftest.$ac_objext \
8265 conftest$ac_exeext conftest.$ac_ext
8266 if test "$ac_cv_search_tgetent" = no; then
8267 for ac_lib in termcap tinfo curses ncurses; do
8268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h. */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275
8276 /* Override any gcc2 internal prototype to avoid an error. */
8277 #ifdef __cplusplus
8278 extern "C"
8279 #endif
8280 /* We use char because int might match the return type of a gcc2
8281 builtin and then its argument prototype would still apply. */
8282 char tgetent ();
8283 int
8284 main ()
8285 {
8286 tgetent ();
8287 ;
8288 return 0;
8289 }
8290 _ACEOF
8291 rm -f conftest.$ac_objext conftest$ac_exeext
8292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8293 (eval $ac_link) 2>conftest.er1
8294 ac_status=$?
8295 grep -v '^ *+' conftest.er1 >conftest.err
8296 rm -f conftest.er1
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try='test -z "$ac_c_werror_flag"
8301 || test ! -s conftest.err'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; } &&
8307 { ac_try='test -s conftest$ac_exeext'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 (eval $ac_try) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 ac_cv_search_tgetent="-l$ac_lib"
8314 break
8315 else
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319 fi
8320 rm -f conftest.err conftest.$ac_objext \
8321 conftest$ac_exeext conftest.$ac_ext
8322 done
8323 fi
8324 LIBS=$ac_func_search_save_LIBS
8325 fi
8326 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8327 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8328 if test "$ac_cv_search_tgetent" != no; then
8329 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8330
8331 fi
8332
8333
8334 if test "$ac_cv_search_tgetent" = no; then
8335 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8336 echo "$as_me: error: no termcap library found" >&2;}
8337 { (exit 1); exit 1; }; }
8338 fi
8339
8340 # ------------------------- #
8341 # Checks for header files. #
8342 # ------------------------- #
8343
8344
8345
8346
8347
8348
8349 ac_header_dirent=no
8350 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8351 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8352 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8353 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357 cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h. */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 #include <sys/types.h>
8364 #include <$ac_hdr>
8365
8366 int
8367 main ()
8368 {
8369 if ((DIR *) 0)
8370 return 0;
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest.$ac_objext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377 (eval $ac_compile) 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -z "$ac_c_werror_flag"
8385 || test ! -s conftest.err'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 eval "$as_ac_Header=yes"
8398 else
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8401
8402 eval "$as_ac_Header=no"
8403 fi
8404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8405 fi
8406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8409 cat >>confdefs.h <<_ACEOF
8410 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8411 _ACEOF
8412
8413 ac_header_dirent=$ac_hdr; break
8414 fi
8415
8416 done
8417 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8418 if test $ac_header_dirent = dirent.h; then
8419 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8420 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8421 if test "${ac_cv_search_opendir+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424 ac_func_search_save_LIBS=$LIBS
8425 ac_cv_search_opendir=no
8426 cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h. */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432
8433 /* Override any gcc2 internal prototype to avoid an error. */
8434 #ifdef __cplusplus
8435 extern "C"
8436 #endif
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8439 char opendir ();
8440 int
8441 main ()
8442 {
8443 opendir ();
8444 ;
8445 return 0;
8446 }
8447 _ACEOF
8448 rm -f conftest.$ac_objext conftest$ac_exeext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450 (eval $ac_link) 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag"
8458 || test ! -s conftest.err'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest$ac_exeext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_search_opendir="none required"
8471 else
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 fi
8476 rm -f conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478 if test "$ac_cv_search_opendir" = no; then
8479 for ac_lib in dir; do
8480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h. */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487
8488 /* Override any gcc2 internal prototype to avoid an error. */
8489 #ifdef __cplusplus
8490 extern "C"
8491 #endif
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8494 char opendir ();
8495 int
8496 main ()
8497 {
8498 opendir ();
8499 ;
8500 return 0;
8501 }
8502 _ACEOF
8503 rm -f conftest.$ac_objext conftest$ac_exeext
8504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8505 (eval $ac_link) 2>conftest.er1
8506 ac_status=$?
8507 grep -v '^ *+' conftest.er1 >conftest.err
8508 rm -f conftest.er1
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } &&
8512 { ac_try='test -z "$ac_c_werror_flag"
8513 || test ! -s conftest.err'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 (eval $ac_try) 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; } &&
8519 { ac_try='test -s conftest$ac_exeext'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8525 ac_cv_search_opendir="-l$ac_lib"
8526 break
8527 else
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 fi
8532 rm -f conftest.err conftest.$ac_objext \
8533 conftest$ac_exeext conftest.$ac_ext
8534 done
8535 fi
8536 LIBS=$ac_func_search_save_LIBS
8537 fi
8538 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8539 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8540 if test "$ac_cv_search_opendir" != no; then
8541 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8542
8543 fi
8544
8545 else
8546 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8547 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8548 if test "${ac_cv_search_opendir+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551 ac_func_search_save_LIBS=$LIBS
8552 ac_cv_search_opendir=no
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h. */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559
8560 /* Override any gcc2 internal prototype to avoid an error. */
8561 #ifdef __cplusplus
8562 extern "C"
8563 #endif
8564 /* We use char because int might match the return type of a gcc2
8565 builtin and then its argument prototype would still apply. */
8566 char opendir ();
8567 int
8568 main ()
8569 {
8570 opendir ();
8571 ;
8572 return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext conftest$ac_exeext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -z "$ac_c_werror_flag"
8585 || test ! -s conftest.err'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 (eval $ac_try) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest$ac_exeext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 ac_cv_search_opendir="none required"
8598 else
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8601
8602 fi
8603 rm -f conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8605 if test "$ac_cv_search_opendir" = no; then
8606 for ac_lib in x; do
8607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614
8615 /* Override any gcc2 internal prototype to avoid an error. */
8616 #ifdef __cplusplus
8617 extern "C"
8618 #endif
8619 /* We use char because int might match the return type of a gcc2
8620 builtin and then its argument prototype would still apply. */
8621 char opendir ();
8622 int
8623 main ()
8624 {
8625 opendir ();
8626 ;
8627 return 0;
8628 }
8629 _ACEOF
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8632 (eval $ac_link) 2>conftest.er1
8633 ac_status=$?
8634 grep -v '^ *+' conftest.er1 >conftest.err
8635 rm -f conftest.er1
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -z "$ac_c_werror_flag"
8640 || test ! -s conftest.err'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642 (eval $ac_try) 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest$ac_exeext'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 (eval $ac_try) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8652 ac_cv_search_opendir="-l$ac_lib"
8653 break
8654 else
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8657
8658 fi
8659 rm -f conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8661 done
8662 fi
8663 LIBS=$ac_func_search_save_LIBS
8664 fi
8665 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8666 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8667 if test "$ac_cv_search_opendir" != no; then
8668 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8669
8670 fi
8671
8672 fi
8673
8674 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8675 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8676 if test "${ac_cv_header_stat_broken+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 #include <sys/types.h>
8686 #include <sys/stat.h>
8687
8688 #if defined(S_ISBLK) && defined(S_IFDIR)
8689 # if S_ISBLK (S_IFDIR)
8690 You lose.
8691 # endif
8692 #endif
8693
8694 #if defined(S_ISBLK) && defined(S_IFCHR)
8695 # if S_ISBLK (S_IFCHR)
8696 You lose.
8697 # endif
8698 #endif
8699
8700 #if defined(S_ISLNK) && defined(S_IFREG)
8701 # if S_ISLNK (S_IFREG)
8702 You lose.
8703 # endif
8704 #endif
8705
8706 #if defined(S_ISSOCK) && defined(S_IFREG)
8707 # if S_ISSOCK (S_IFREG)
8708 You lose.
8709 # endif
8710 #endif
8711
8712 _ACEOF
8713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8714 $EGREP "You lose" >/dev/null 2>&1; then
8715 ac_cv_header_stat_broken=yes
8716 else
8717 ac_cv_header_stat_broken=no
8718 fi
8719 rm -f conftest*
8720
8721 fi
8722 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8723 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8724 if test $ac_cv_header_stat_broken = yes; then
8725
8726 cat >>confdefs.h <<\_ACEOF
8727 #define STAT_MACROS_BROKEN 1
8728 _ACEOF
8729
8730 fi
8731
8732 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8733 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8734 if test "${ac_cv_header_stdc+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 #include <stdlib.h>
8744 #include <stdarg.h>
8745 #include <string.h>
8746 #include <float.h>
8747
8748 int
8749 main ()
8750 {
8751
8752 ;
8753 return 0;
8754 }
8755 _ACEOF
8756 rm -f conftest.$ac_objext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758 (eval $ac_compile) 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest.$ac_objext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_cv_header_stdc=yes
8779 else
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783 ac_cv_header_stdc=no
8784 fi
8785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8786
8787 if test $ac_cv_header_stdc = yes; then
8788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8789 cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h. */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 #include <string.h>
8796
8797 _ACEOF
8798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8799 $EGREP "memchr" >/dev/null 2>&1; then
8800 :
8801 else
8802 ac_cv_header_stdc=no
8803 fi
8804 rm -f conftest*
8805
8806 fi
8807
8808 if test $ac_cv_header_stdc = yes; then
8809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8810 cat >conftest.$ac_ext <<_ACEOF
8811 /* confdefs.h. */
8812 _ACEOF
8813 cat confdefs.h >>conftest.$ac_ext
8814 cat >>conftest.$ac_ext <<_ACEOF
8815 /* end confdefs.h. */
8816 #include <stdlib.h>
8817
8818 _ACEOF
8819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8820 $EGREP "free" >/dev/null 2>&1; then
8821 :
8822 else
8823 ac_cv_header_stdc=no
8824 fi
8825 rm -f conftest*
8826
8827 fi
8828
8829 if test $ac_cv_header_stdc = yes; then
8830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8831 if test "$cross_compiling" = yes; then
8832 :
8833 else
8834 cat >conftest.$ac_ext <<_ACEOF
8835 /* confdefs.h. */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8840 #include <ctype.h>
8841 #if ((' ' & 0x0FF) == 0x020)
8842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8844 #else
8845 # define ISLOWER(c) \
8846 (('a' <= (c) && (c) <= 'i') \
8847 || ('j' <= (c) && (c) <= 'r') \
8848 || ('s' <= (c) && (c) <= 'z'))
8849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8850 #endif
8851
8852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8853 int
8854 main ()
8855 {
8856 int i;
8857 for (i = 0; i < 256; i++)
8858 if (XOR (islower (i), ISLOWER (i))
8859 || toupper (i) != TOUPPER (i))
8860 exit(2);
8861 exit (0);
8862 }
8863 _ACEOF
8864 rm -f conftest$ac_exeext
8865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8866 (eval $ac_link) 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; }; then
8875 :
8876 else
8877 echo "$as_me: program exited with status $ac_status" >&5
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8880
8881 ( exit $ac_status )
8882 ac_cv_header_stdc=no
8883 fi
8884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8885 fi
8886 fi
8887 fi
8888 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8889 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8890 if test $ac_cv_header_stdc = yes; then
8891
8892 cat >>confdefs.h <<\_ACEOF
8893 #define STDC_HEADERS 1
8894 _ACEOF
8895
8896 fi
8897
8898
8899 for ac_header in nlist.h
8900 do
8901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903 echo "$as_me:$LINENO: checking for $ac_header" >&5
8904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 fi
8908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8910 else
8911 # Is the header compilable?
8912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8914 cat >conftest.$ac_ext <<_ACEOF
8915 /* confdefs.h. */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8920 $ac_includes_default
8921 #include <$ac_header>
8922 _ACEOF
8923 rm -f conftest.$ac_objext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925 (eval $ac_compile) 2>conftest.er1
8926 ac_status=$?
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -z "$ac_c_werror_flag"
8933 || test ! -s conftest.err'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 (eval $ac_try) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; } &&
8939 { ac_try='test -s conftest.$ac_objext'
8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 (eval $ac_try) 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; }; then
8945 ac_header_compiler=yes
8946 else
8947 echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8949
8950 ac_header_compiler=no
8951 fi
8952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8954 echo "${ECHO_T}$ac_header_compiler" >&6
8955
8956 # Is the header present?
8957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8959 cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 #include <$ac_header>
8966 _ACEOF
8967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } >/dev/null; then
8975 if test -s conftest.err; then
8976 ac_cpp_err=$ac_c_preproc_warn_flag
8977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8978 else
8979 ac_cpp_err=
8980 fi
8981 else
8982 ac_cpp_err=yes
8983 fi
8984 if test -z "$ac_cpp_err"; then
8985 ac_header_preproc=yes
8986 else
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8989
8990 ac_header_preproc=no
8991 fi
8992 rm -f conftest.err conftest.$ac_ext
8993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8994 echo "${ECHO_T}$ac_header_preproc" >&6
8995
8996 # So? What about this header?
8997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8998 yes:no: )
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9003 ac_header_preproc=yes
9004 ;;
9005 no:yes:* )
9006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9018 (
9019 cat <<\_ASBOX
9020 ## ------------------------------------------ ##
9021 ## Report this to the AC_PACKAGE_NAME lists. ##
9022 ## ------------------------------------------ ##
9023 _ASBOX
9024 ) |
9025 sed "s/^/$as_me: WARNING: /" >&2
9026 ;;
9027 esac
9028 echo "$as_me:$LINENO: checking for $ac_header" >&5
9029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 else
9033 eval "$as_ac_Header=\$ac_header_preproc"
9034 fi
9035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9037
9038 fi
9039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9040 cat >>confdefs.h <<_ACEOF
9041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9042 _ACEOF
9043
9044 fi
9045
9046 done
9047
9048
9049 for ac_header in link.h
9050 do
9051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9052 echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057 cat >conftest.$ac_ext <<_ACEOF
9058 /* confdefs.h. */
9059 _ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9063 #if HAVE_SYS_TYPES_H
9064 # include <sys/types.h>
9065 #endif
9066 #if HAVE_NLIST_H
9067 # include <nlist.h>
9068 #endif
9069
9070
9071 #include <$ac_header>
9072 _ACEOF
9073 rm -f conftest.$ac_objext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9075 (eval $ac_compile) 2>conftest.er1
9076 ac_status=$?
9077 grep -v '^ *+' conftest.er1 >conftest.err
9078 rm -f conftest.er1
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } &&
9082 { ac_try='test -z "$ac_c_werror_flag"
9083 || test ! -s conftest.err'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 (eval $ac_try) 2>&5
9086 ac_status=$?
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; } &&
9089 { ac_try='test -s conftest.$ac_objext'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 eval "$as_ac_Header=yes"
9096 else
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9099
9100 eval "$as_ac_Header=no"
9101 fi
9102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9103 fi
9104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9107 cat >>confdefs.h <<_ACEOF
9108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9109 _ACEOF
9110
9111 fi
9112
9113 done
9114
9115
9116 for ac_header in machine/reg.h
9117 do
9118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9120 echo "$as_me:$LINENO: checking for $ac_header" >&5
9121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 fi
9125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9127 else
9128 # Is the header compilable?
9129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9131 cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h. */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 $ac_includes_default
9138 #include <$ac_header>
9139 _ACEOF
9140 rm -f conftest.$ac_objext
9141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9142 (eval $ac_compile) 2>conftest.er1
9143 ac_status=$?
9144 grep -v '^ *+' conftest.er1 >conftest.err
9145 rm -f conftest.er1
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } &&
9149 { ac_try='test -z "$ac_c_werror_flag"
9150 || test ! -s conftest.err'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 (eval $ac_try) 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; } &&
9156 { ac_try='test -s conftest.$ac_objext'
9157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 (eval $ac_try) 2>&5
9159 ac_status=$?
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; }; then
9162 ac_header_compiler=yes
9163 else
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9166
9167 ac_header_compiler=no
9168 fi
9169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9171 echo "${ECHO_T}$ac_header_compiler" >&6
9172
9173 # Is the header present?
9174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9176 cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h. */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 #include <$ac_header>
9183 _ACEOF
9184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9186 ac_status=$?
9187 grep -v '^ *+' conftest.er1 >conftest.err
9188 rm -f conftest.er1
9189 cat conftest.err >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); } >/dev/null; then
9192 if test -s conftest.err; then
9193 ac_cpp_err=$ac_c_preproc_warn_flag
9194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9195 else
9196 ac_cpp_err=
9197 fi
9198 else
9199 ac_cpp_err=yes
9200 fi
9201 if test -z "$ac_cpp_err"; then
9202 ac_header_preproc=yes
9203 else
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9206
9207 ac_header_preproc=no
9208 fi
9209 rm -f conftest.err conftest.$ac_ext
9210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9211 echo "${ECHO_T}$ac_header_preproc" >&6
9212
9213 # So? What about this header?
9214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9215 yes:no: )
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9220 ac_header_preproc=yes
9221 ;;
9222 no:yes:* )
9223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9235 (
9236 cat <<\_ASBOX
9237 ## ------------------------------------------ ##
9238 ## Report this to the AC_PACKAGE_NAME lists. ##
9239 ## ------------------------------------------ ##
9240 _ASBOX
9241 ) |
9242 sed "s/^/$as_me: WARNING: /" >&2
9243 ;;
9244 esac
9245 echo "$as_me:$LINENO: checking for $ac_header" >&5
9246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250 eval "$as_ac_Header=\$ac_header_preproc"
9251 fi
9252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9254
9255 fi
9256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9257 cat >>confdefs.h <<_ACEOF
9258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9259 _ACEOF
9260
9261 fi
9262
9263 done
9264
9265
9266
9267 for ac_header in poll.h sys/poll.h
9268 do
9269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9271 echo "$as_me:$LINENO: checking for $ac_header" >&5
9272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 fi
9276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9278 else
9279 # Is the header compilable?
9280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 $ac_includes_default
9289 #include <$ac_header>
9290 _ACEOF
9291 rm -f conftest.$ac_objext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9293 (eval $ac_compile) 2>conftest.er1
9294 ac_status=$?
9295 grep -v '^ *+' conftest.er1 >conftest.err
9296 rm -f conftest.er1
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } &&
9300 { ac_try='test -z "$ac_c_werror_flag"
9301 || test ! -s conftest.err'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 (eval $ac_try) 2>&5
9304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; } &&
9307 { ac_try='test -s conftest.$ac_objext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 ac_header_compiler=yes
9314 else
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9317
9318 ac_header_compiler=no
9319 fi
9320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9322 echo "${ECHO_T}$ac_header_compiler" >&6
9323
9324 # Is the header present?
9325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9327 cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h. */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9333 #include <$ac_header>
9334 _ACEOF
9335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } >/dev/null; then
9343 if test -s conftest.err; then
9344 ac_cpp_err=$ac_c_preproc_warn_flag
9345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9346 else
9347 ac_cpp_err=
9348 fi
9349 else
9350 ac_cpp_err=yes
9351 fi
9352 if test -z "$ac_cpp_err"; then
9353 ac_header_preproc=yes
9354 else
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9357
9358 ac_header_preproc=no
9359 fi
9360 rm -f conftest.err conftest.$ac_ext
9361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9362 echo "${ECHO_T}$ac_header_preproc" >&6
9363
9364 # So? What about this header?
9365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9366 yes:no: )
9367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9371 ac_header_preproc=yes
9372 ;;
9373 no:yes:* )
9374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9386 (
9387 cat <<\_ASBOX
9388 ## ------------------------------------------ ##
9389 ## Report this to the AC_PACKAGE_NAME lists. ##
9390 ## ------------------------------------------ ##
9391 _ASBOX
9392 ) |
9393 sed "s/^/$as_me: WARNING: /" >&2
9394 ;;
9395 esac
9396 echo "$as_me:$LINENO: checking for $ac_header" >&5
9397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401 eval "$as_ac_Header=\$ac_header_preproc"
9402 fi
9403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9405
9406 fi
9407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9408 cat >>confdefs.h <<_ACEOF
9409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9410 _ACEOF
9411
9412 fi
9413
9414 done
9415
9416
9417
9418
9419 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9420 do
9421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9423 echo "$as_me:$LINENO: checking for $ac_header" >&5
9424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 fi
9428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9430 else
9431 # Is the header compilable?
9432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h. */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 $ac_includes_default
9441 #include <$ac_header>
9442 _ACEOF
9443 rm -f conftest.$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445 (eval $ac_compile) 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -z "$ac_c_werror_flag"
9453 || test ! -s conftest.err'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try='test -s conftest.$ac_objext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_header_compiler=yes
9466 else
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9469
9470 ac_header_compiler=no
9471 fi
9472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9474 echo "${ECHO_T}$ac_header_compiler" >&6
9475
9476 # Is the header present?
9477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9479 cat >conftest.$ac_ext <<_ACEOF
9480 /* confdefs.h. */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485 #include <$ac_header>
9486 _ACEOF
9487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } >/dev/null; then
9495 if test -s conftest.err; then
9496 ac_cpp_err=$ac_c_preproc_warn_flag
9497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9498 else
9499 ac_cpp_err=
9500 fi
9501 else
9502 ac_cpp_err=yes
9503 fi
9504 if test -z "$ac_cpp_err"; then
9505 ac_header_preproc=yes
9506 else
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9509
9510 ac_header_preproc=no
9511 fi
9512 rm -f conftest.err conftest.$ac_ext
9513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9514 echo "${ECHO_T}$ac_header_preproc" >&6
9515
9516 # So? What about this header?
9517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9518 yes:no: )
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9523 ac_header_preproc=yes
9524 ;;
9525 no:yes:* )
9526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9538 (
9539 cat <<\_ASBOX
9540 ## ------------------------------------------ ##
9541 ## Report this to the AC_PACKAGE_NAME lists. ##
9542 ## ------------------------------------------ ##
9543 _ASBOX
9544 ) |
9545 sed "s/^/$as_me: WARNING: /" >&2
9546 ;;
9547 esac
9548 echo "$as_me:$LINENO: checking for $ac_header" >&5
9549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 eval "$as_ac_Header=\$ac_header_preproc"
9554 fi
9555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9557
9558 fi
9559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9560 cat >>confdefs.h <<_ACEOF
9561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9562 _ACEOF
9563
9564 fi
9565
9566 done
9567
9568
9569 for ac_header in stddef.h
9570 do
9571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9573 echo "$as_me:$LINENO: checking for $ac_header" >&5
9574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 fi
9578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9580 else
9581 # Is the header compilable?
9582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 $ac_includes_default
9591 #include <$ac_header>
9592 _ACEOF
9593 rm -f conftest.$ac_objext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9595 (eval $ac_compile) 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest.$ac_objext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_header_compiler=yes
9616 else
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9619
9620 ac_header_compiler=no
9621 fi
9622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9624 echo "${ECHO_T}$ac_header_compiler" >&6
9625
9626 # Is the header present?
9627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9629 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h. */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 #include <$ac_header>
9636 _ACEOF
9637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } >/dev/null; then
9645 if test -s conftest.err; then
9646 ac_cpp_err=$ac_c_preproc_warn_flag
9647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9648 else
9649 ac_cpp_err=
9650 fi
9651 else
9652 ac_cpp_err=yes
9653 fi
9654 if test -z "$ac_cpp_err"; then
9655 ac_header_preproc=yes
9656 else
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9659
9660 ac_header_preproc=no
9661 fi
9662 rm -f conftest.err conftest.$ac_ext
9663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9664 echo "${ECHO_T}$ac_header_preproc" >&6
9665
9666 # So? What about this header?
9667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9668 yes:no: )
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9673 ac_header_preproc=yes
9674 ;;
9675 no:yes:* )
9676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9688 (
9689 cat <<\_ASBOX
9690 ## ------------------------------------------ ##
9691 ## Report this to the AC_PACKAGE_NAME lists. ##
9692 ## ------------------------------------------ ##
9693 _ASBOX
9694 ) |
9695 sed "s/^/$as_me: WARNING: /" >&2
9696 ;;
9697 esac
9698 echo "$as_me:$LINENO: checking for $ac_header" >&5
9699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703 eval "$as_ac_Header=\$ac_header_preproc"
9704 fi
9705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9707
9708 fi
9709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9710 cat >>confdefs.h <<_ACEOF
9711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9712 _ACEOF
9713
9714 fi
9715
9716 done
9717
9718
9719 for ac_header in stdlib.h
9720 do
9721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9723 echo "$as_me:$LINENO: checking for $ac_header" >&5
9724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 fi
9728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9730 else
9731 # Is the header compilable?
9732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 $ac_includes_default
9741 #include <$ac_header>
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 (eval $ac_compile) 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 (eval $ac_try) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_header_compiler=yes
9766 else
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 ac_header_compiler=no
9771 fi
9772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 echo "${ECHO_T}$ac_header_compiler" >&6
9775
9776 # Is the header present?
9777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h. */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 #include <$ac_header>
9786 _ACEOF
9787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9789 ac_status=$?
9790 grep -v '^ *+' conftest.er1 >conftest.err
9791 rm -f conftest.er1
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } >/dev/null; then
9795 if test -s conftest.err; then
9796 ac_cpp_err=$ac_c_preproc_warn_flag
9797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9798 else
9799 ac_cpp_err=
9800 fi
9801 else
9802 ac_cpp_err=yes
9803 fi
9804 if test -z "$ac_cpp_err"; then
9805 ac_header_preproc=yes
9806 else
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 ac_header_preproc=no
9811 fi
9812 rm -f conftest.err conftest.$ac_ext
9813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814 echo "${ECHO_T}$ac_header_preproc" >&6
9815
9816 # So? What about this header?
9817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9818 yes:no: )
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9823 ac_header_preproc=yes
9824 ;;
9825 no:yes:* )
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9838 (
9839 cat <<\_ASBOX
9840 ## ------------------------------------------ ##
9841 ## Report this to the AC_PACKAGE_NAME lists. ##
9842 ## ------------------------------------------ ##
9843 _ASBOX
9844 ) |
9845 sed "s/^/$as_me: WARNING: /" >&2
9846 ;;
9847 esac
9848 echo "$as_me:$LINENO: checking for $ac_header" >&5
9849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853 eval "$as_ac_Header=\$ac_header_preproc"
9854 fi
9855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9857
9858 fi
9859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9860 cat >>confdefs.h <<_ACEOF
9861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9862 _ACEOF
9863
9864 fi
9865
9866 done
9867
9868
9869 for ac_header in stdint.h
9870 do
9871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9873 echo "$as_me:$LINENO: checking for $ac_header" >&5
9874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 fi
9878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9880 else
9881 # Is the header compilable?
9882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h. */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 $ac_includes_default
9891 #include <$ac_header>
9892 _ACEOF
9893 rm -f conftest.$ac_objext
9894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9895 (eval $ac_compile) 2>conftest.er1
9896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag"
9903 || test ! -s conftest.err'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; } &&
9909 { ac_try='test -s conftest.$ac_objext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 (eval $ac_try) 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_header_compiler=yes
9916 else
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9919
9920 ac_header_compiler=no
9921 fi
9922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9924 echo "${ECHO_T}$ac_header_compiler" >&6
9925
9926 # Is the header present?
9927 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h. */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 #include <$ac_header>
9936 _ACEOF
9937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } >/dev/null; then
9945 if test -s conftest.err; then
9946 ac_cpp_err=$ac_c_preproc_warn_flag
9947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9948 else
9949 ac_cpp_err=
9950 fi
9951 else
9952 ac_cpp_err=yes
9953 fi
9954 if test -z "$ac_cpp_err"; then
9955 ac_header_preproc=yes
9956 else
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9959
9960 ac_header_preproc=no
9961 fi
9962 rm -f conftest.err conftest.$ac_ext
9963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9964 echo "${ECHO_T}$ac_header_preproc" >&6
9965
9966 # So? What about this header?
9967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9968 yes:no: )
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9973 ac_header_preproc=yes
9974 ;;
9975 no:yes:* )
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9988 (
9989 cat <<\_ASBOX
9990 ## ------------------------------------------ ##
9991 ## Report this to the AC_PACKAGE_NAME lists. ##
9992 ## ------------------------------------------ ##
9993 _ASBOX
9994 ) |
9995 sed "s/^/$as_me: WARNING: /" >&2
9996 ;;
9997 esac
9998 echo "$as_me:$LINENO: checking for $ac_header" >&5
9999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003 eval "$as_ac_Header=\$ac_header_preproc"
10004 fi
10005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10007
10008 fi
10009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10010 cat >>confdefs.h <<_ACEOF
10011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10012 _ACEOF
10013
10014 fi
10015
10016 done
10017
10018
10019
10020
10021 for ac_header in string.h memory.h strings.h
10022 do
10023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10025 echo "$as_me:$LINENO: checking for $ac_header" >&5
10026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 fi
10030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10032 else
10033 # Is the header compilable?
10034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10036 cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h. */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10042 $ac_includes_default
10043 #include <$ac_header>
10044 _ACEOF
10045 rm -f conftest.$ac_objext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10047 (eval $ac_compile) 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -z "$ac_c_werror_flag"
10055 || test ! -s conftest.err'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try='test -s conftest.$ac_objext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_header_compiler=yes
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072 ac_header_compiler=no
10073 fi
10074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10076 echo "${ECHO_T}$ac_header_compiler" >&6
10077
10078 # Is the header present?
10079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10081 cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h. */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 #include <$ac_header>
10088 _ACEOF
10089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10091 ac_status=$?
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } >/dev/null; then
10097 if test -s conftest.err; then
10098 ac_cpp_err=$ac_c_preproc_warn_flag
10099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10100 else
10101 ac_cpp_err=
10102 fi
10103 else
10104 ac_cpp_err=yes
10105 fi
10106 if test -z "$ac_cpp_err"; then
10107 ac_header_preproc=yes
10108 else
10109 echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10111
10112 ac_header_preproc=no
10113 fi
10114 rm -f conftest.err conftest.$ac_ext
10115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10116 echo "${ECHO_T}$ac_header_preproc" >&6
10117
10118 # So? What about this header?
10119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10120 yes:no: )
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10125 ac_header_preproc=yes
10126 ;;
10127 no:yes:* )
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10140 (
10141 cat <<\_ASBOX
10142 ## ------------------------------------------ ##
10143 ## Report this to the AC_PACKAGE_NAME lists. ##
10144 ## ------------------------------------------ ##
10145 _ASBOX
10146 ) |
10147 sed "s/^/$as_me: WARNING: /" >&2
10148 ;;
10149 esac
10150 echo "$as_me:$LINENO: checking for $ac_header" >&5
10151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155 eval "$as_ac_Header=\$ac_header_preproc"
10156 fi
10157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10159
10160 fi
10161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10162 cat >>confdefs.h <<_ACEOF
10163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10164 _ACEOF
10165
10166 fi
10167
10168 done
10169
10170
10171 for ac_header in sys/fault.h
10172 do
10173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10175 echo "$as_me:$LINENO: checking for $ac_header" >&5
10176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 fi
10180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10182 else
10183 # Is the header compilable?
10184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h. */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 $ac_includes_default
10193 #include <$ac_header>
10194 _ACEOF
10195 rm -f conftest.$ac_objext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>conftest.er1
10198 ac_status=$?
10199 grep -v '^ *+' conftest.er1 >conftest.err
10200 rm -f conftest.er1
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -z "$ac_c_werror_flag"
10205 || test ! -s conftest.err'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try='test -s conftest.$ac_objext'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; }; then
10217 ac_header_compiler=yes
10218 else
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10221
10222 ac_header_compiler=no
10223 fi
10224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10226 echo "${ECHO_T}$ac_header_compiler" >&6
10227
10228 # Is the header present?
10229 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10231 cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h. */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 #include <$ac_header>
10238 _ACEOF
10239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } >/dev/null; then
10247 if test -s conftest.err; then
10248 ac_cpp_err=$ac_c_preproc_warn_flag
10249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10250 else
10251 ac_cpp_err=
10252 fi
10253 else
10254 ac_cpp_err=yes
10255 fi
10256 if test -z "$ac_cpp_err"; then
10257 ac_header_preproc=yes
10258 else
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10261
10262 ac_header_preproc=no
10263 fi
10264 rm -f conftest.err conftest.$ac_ext
10265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10266 echo "${ECHO_T}$ac_header_preproc" >&6
10267
10268 # So? What about this header?
10269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10270 yes:no: )
10271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10275 ac_header_preproc=yes
10276 ;;
10277 no:yes:* )
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10290 (
10291 cat <<\_ASBOX
10292 ## ------------------------------------------ ##
10293 ## Report this to the AC_PACKAGE_NAME lists. ##
10294 ## ------------------------------------------ ##
10295 _ASBOX
10296 ) |
10297 sed "s/^/$as_me: WARNING: /" >&2
10298 ;;
10299 esac
10300 echo "$as_me:$LINENO: checking for $ac_header" >&5
10301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305 eval "$as_ac_Header=\$ac_header_preproc"
10306 fi
10307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10309
10310 fi
10311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10312 cat >>confdefs.h <<_ACEOF
10313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10314 _ACEOF
10315
10316 fi
10317
10318 done
10319
10320
10321 for ac_header in sys/file.h
10322 do
10323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10325 echo "$as_me:$LINENO: checking for $ac_header" >&5
10326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 fi
10330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10332 else
10333 # Is the header compilable?
10334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10336 cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h. */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342 $ac_includes_default
10343 #include <$ac_header>
10344 _ACEOF
10345 rm -f conftest.$ac_objext
10346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10347 (eval $ac_compile) 2>conftest.er1
10348 ac_status=$?
10349 grep -v '^ *+' conftest.er1 >conftest.err
10350 rm -f conftest.er1
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -z "$ac_c_werror_flag"
10355 || test ! -s conftest.err'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; } &&
10361 { ac_try='test -s conftest.$ac_objext'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10367 ac_header_compiler=yes
10368 else
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10371
10372 ac_header_compiler=no
10373 fi
10374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10376 echo "${ECHO_T}$ac_header_compiler" >&6
10377
10378 # Is the header present?
10379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10381 cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h. */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10387 #include <$ac_header>
10388 _ACEOF
10389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } >/dev/null; then
10397 if test -s conftest.err; then
10398 ac_cpp_err=$ac_c_preproc_warn_flag
10399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10400 else
10401 ac_cpp_err=
10402 fi
10403 else
10404 ac_cpp_err=yes
10405 fi
10406 if test -z "$ac_cpp_err"; then
10407 ac_header_preproc=yes
10408 else
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10411
10412 ac_header_preproc=no
10413 fi
10414 rm -f conftest.err conftest.$ac_ext
10415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10416 echo "${ECHO_T}$ac_header_preproc" >&6
10417
10418 # So? What about this header?
10419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10420 yes:no: )
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10425 ac_header_preproc=yes
10426 ;;
10427 no:yes:* )
10428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10440 (
10441 cat <<\_ASBOX
10442 ## ------------------------------------------ ##
10443 ## Report this to the AC_PACKAGE_NAME lists. ##
10444 ## ------------------------------------------ ##
10445 _ASBOX
10446 ) |
10447 sed "s/^/$as_me: WARNING: /" >&2
10448 ;;
10449 esac
10450 echo "$as_me:$LINENO: checking for $ac_header" >&5
10451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455 eval "$as_ac_Header=\$ac_header_preproc"
10456 fi
10457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10459
10460 fi
10461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10462 cat >>confdefs.h <<_ACEOF
10463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10464 _ACEOF
10465
10466 fi
10467
10468 done
10469
10470
10471 for ac_header in sys/filio.h
10472 do
10473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10475 echo "$as_me:$LINENO: checking for $ac_header" >&5
10476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 fi
10480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10482 else
10483 # Is the header compilable?
10484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10486 cat >conftest.$ac_ext <<_ACEOF
10487 /* confdefs.h. */
10488 _ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10492 $ac_includes_default
10493 #include <$ac_header>
10494 _ACEOF
10495 rm -f conftest.$ac_objext
10496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10497 (eval $ac_compile) 2>conftest.er1
10498 ac_status=$?
10499 grep -v '^ *+' conftest.er1 >conftest.err
10500 rm -f conftest.er1
10501 cat conftest.err >&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } &&
10504 { ac_try='test -z "$ac_c_werror_flag"
10505 || test ! -s conftest.err'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest.$ac_objext'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
10517 ac_header_compiler=yes
10518 else
10519 echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10521
10522 ac_header_compiler=no
10523 fi
10524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10526 echo "${ECHO_T}$ac_header_compiler" >&6
10527
10528 # Is the header present?
10529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h. */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 #include <$ac_header>
10538 _ACEOF
10539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } >/dev/null; then
10547 if test -s conftest.err; then
10548 ac_cpp_err=$ac_c_preproc_warn_flag
10549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10550 else
10551 ac_cpp_err=
10552 fi
10553 else
10554 ac_cpp_err=yes
10555 fi
10556 if test -z "$ac_cpp_err"; then
10557 ac_header_preproc=yes
10558 else
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10561
10562 ac_header_preproc=no
10563 fi
10564 rm -f conftest.err conftest.$ac_ext
10565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10566 echo "${ECHO_T}$ac_header_preproc" >&6
10567
10568 # So? What about this header?
10569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10570 yes:no: )
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10575 ac_header_preproc=yes
10576 ;;
10577 no:yes:* )
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10590 (
10591 cat <<\_ASBOX
10592 ## ------------------------------------------ ##
10593 ## Report this to the AC_PACKAGE_NAME lists. ##
10594 ## ------------------------------------------ ##
10595 _ASBOX
10596 ) |
10597 sed "s/^/$as_me: WARNING: /" >&2
10598 ;;
10599 esac
10600 echo "$as_me:$LINENO: checking for $ac_header" >&5
10601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605 eval "$as_ac_Header=\$ac_header_preproc"
10606 fi
10607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10609
10610 fi
10611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10612 cat >>confdefs.h <<_ACEOF
10613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10614 _ACEOF
10615
10616 fi
10617
10618 done
10619
10620
10621 for ac_header in sys/ioctl.h
10622 do
10623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10625 echo "$as_me:$LINENO: checking for $ac_header" >&5
10626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 fi
10630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10632 else
10633 # Is the header compilable?
10634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10636 cat >conftest.$ac_ext <<_ACEOF
10637 /* confdefs.h. */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10642 $ac_includes_default
10643 #include <$ac_header>
10644 _ACEOF
10645 rm -f conftest.$ac_objext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10647 (eval $ac_compile) 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try='test -z "$ac_c_werror_flag"
10655 || test ! -s conftest.err'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try='test -s conftest.$ac_objext'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_header_compiler=yes
10668 else
10669 echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10671
10672 ac_header_compiler=no
10673 fi
10674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10676 echo "${ECHO_T}$ac_header_compiler" >&6
10677
10678 # Is the header present?
10679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10681 cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h. */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 #include <$ac_header>
10688 _ACEOF
10689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10691 ac_status=$?
10692 grep -v '^ *+' conftest.er1 >conftest.err
10693 rm -f conftest.er1
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } >/dev/null; then
10697 if test -s conftest.err; then
10698 ac_cpp_err=$ac_c_preproc_warn_flag
10699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10700 else
10701 ac_cpp_err=
10702 fi
10703 else
10704 ac_cpp_err=yes
10705 fi
10706 if test -z "$ac_cpp_err"; then
10707 ac_header_preproc=yes
10708 else
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10711
10712 ac_header_preproc=no
10713 fi
10714 rm -f conftest.err conftest.$ac_ext
10715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10716 echo "${ECHO_T}$ac_header_preproc" >&6
10717
10718 # So? What about this header?
10719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10720 yes:no: )
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10725 ac_header_preproc=yes
10726 ;;
10727 no:yes:* )
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10740 (
10741 cat <<\_ASBOX
10742 ## ------------------------------------------ ##
10743 ## Report this to the AC_PACKAGE_NAME lists. ##
10744 ## ------------------------------------------ ##
10745 _ASBOX
10746 ) |
10747 sed "s/^/$as_me: WARNING: /" >&2
10748 ;;
10749 esac
10750 echo "$as_me:$LINENO: checking for $ac_header" >&5
10751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755 eval "$as_ac_Header=\$ac_header_preproc"
10756 fi
10757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10759
10760 fi
10761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10762 cat >>confdefs.h <<_ACEOF
10763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10764 _ACEOF
10765
10766 fi
10767
10768 done
10769
10770
10771 for ac_header in sys/param.h
10772 do
10773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10775 echo "$as_me:$LINENO: checking for $ac_header" >&5
10776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 fi
10780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10782 else
10783 # Is the header compilable?
10784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10786 cat >conftest.$ac_ext <<_ACEOF
10787 /* confdefs.h. */
10788 _ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h. */
10792 $ac_includes_default
10793 #include <$ac_header>
10794 _ACEOF
10795 rm -f conftest.$ac_objext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10797 (eval $ac_compile) 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_c_werror_flag"
10805 || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 ac_header_compiler=yes
10818 else
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10821
10822 ac_header_compiler=no
10823 fi
10824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10826 echo "${ECHO_T}$ac_header_compiler" >&6
10827
10828 # Is the header present?
10829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h. */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 #include <$ac_header>
10838 _ACEOF
10839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10841 ac_status=$?
10842 grep -v '^ *+' conftest.er1 >conftest.err
10843 rm -f conftest.er1
10844 cat conftest.err >&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } >/dev/null; then
10847 if test -s conftest.err; then
10848 ac_cpp_err=$ac_c_preproc_warn_flag
10849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10850 else
10851 ac_cpp_err=
10852 fi
10853 else
10854 ac_cpp_err=yes
10855 fi
10856 if test -z "$ac_cpp_err"; then
10857 ac_header_preproc=yes
10858 else
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 ac_header_preproc=no
10863 fi
10864 rm -f conftest.err conftest.$ac_ext
10865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10866 echo "${ECHO_T}$ac_header_preproc" >&6
10867
10868 # So? What about this header?
10869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10870 yes:no: )
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10875 ac_header_preproc=yes
10876 ;;
10877 no:yes:* )
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10890 (
10891 cat <<\_ASBOX
10892 ## ------------------------------------------ ##
10893 ## Report this to the AC_PACKAGE_NAME lists. ##
10894 ## ------------------------------------------ ##
10895 _ASBOX
10896 ) |
10897 sed "s/^/$as_me: WARNING: /" >&2
10898 ;;
10899 esac
10900 echo "$as_me:$LINENO: checking for $ac_header" >&5
10901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905 eval "$as_ac_Header=\$ac_header_preproc"
10906 fi
10907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10909
10910 fi
10911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10912 cat >>confdefs.h <<_ACEOF
10913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10914 _ACEOF
10915
10916 fi
10917
10918 done
10919
10920
10921 for ac_header in sys/proc.h
10922 do
10923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10924 echo "$as_me:$LINENO: checking for $ac_header" >&5
10925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929 cat >conftest.$ac_ext <<_ACEOF
10930 /* confdefs.h. */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 #if HAVE_SYS_PARAM_H
10936 # include <sys/param.h>
10937 #endif
10938
10939
10940 #include <$ac_header>
10941 _ACEOF
10942 rm -f conftest.$ac_objext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10944 (eval $ac_compile) 2>conftest.er1
10945 ac_status=$?
10946 grep -v '^ *+' conftest.er1 >conftest.err
10947 rm -f conftest.er1
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -z "$ac_c_werror_flag"
10952 || test ! -s conftest.err'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 eval "$as_ac_Header=yes"
10965 else
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969 eval "$as_ac_Header=no"
10970 fi
10971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10972 fi
10973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10976 cat >>confdefs.h <<_ACEOF
10977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10978 _ACEOF
10979
10980 fi
10981
10982 done
10983
10984
10985 for ac_header in sys/procfs.h
10986 do
10987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10989 echo "$as_me:$LINENO: checking for $ac_header" >&5
10990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 fi
10994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10996 else
10997 # Is the header compilable?
10998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11000 cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h. */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 $ac_includes_default
11007 #include <$ac_header>
11008 _ACEOF
11009 rm -f conftest.$ac_objext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11011 (eval $ac_compile) 2>conftest.er1
11012 ac_status=$?
11013 grep -v '^ *+' conftest.er1 >conftest.err
11014 rm -f conftest.er1
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -z "$ac_c_werror_flag"
11019 || test ! -s conftest.err'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest.$ac_objext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_header_compiler=yes
11032 else
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11035
11036 ac_header_compiler=no
11037 fi
11038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11040 echo "${ECHO_T}$ac_header_compiler" >&6
11041
11042 # Is the header present?
11043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11045 cat >conftest.$ac_ext <<_ACEOF
11046 /* confdefs.h. */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11051 #include <$ac_header>
11052 _ACEOF
11053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } >/dev/null; then
11061 if test -s conftest.err; then
11062 ac_cpp_err=$ac_c_preproc_warn_flag
11063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11064 else
11065 ac_cpp_err=
11066 fi
11067 else
11068 ac_cpp_err=yes
11069 fi
11070 if test -z "$ac_cpp_err"; then
11071 ac_header_preproc=yes
11072 else
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11075
11076 ac_header_preproc=no
11077 fi
11078 rm -f conftest.err conftest.$ac_ext
11079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11080 echo "${ECHO_T}$ac_header_preproc" >&6
11081
11082 # So? What about this header?
11083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11084 yes:no: )
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11089 ac_header_preproc=yes
11090 ;;
11091 no:yes:* )
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11104 (
11105 cat <<\_ASBOX
11106 ## ------------------------------------------ ##
11107 ## Report this to the AC_PACKAGE_NAME lists. ##
11108 ## ------------------------------------------ ##
11109 _ASBOX
11110 ) |
11111 sed "s/^/$as_me: WARNING: /" >&2
11112 ;;
11113 esac
11114 echo "$as_me:$LINENO: checking for $ac_header" >&5
11115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119 eval "$as_ac_Header=\$ac_header_preproc"
11120 fi
11121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11123
11124 fi
11125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11126 cat >>confdefs.h <<_ACEOF
11127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11128 _ACEOF
11129
11130 fi
11131
11132 done
11133
11134
11135
11136 for ac_header in sys/ptrace.h ptrace.h
11137 do
11138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11140 echo "$as_me:$LINENO: checking for $ac_header" >&5
11141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 fi
11145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11147 else
11148 # Is the header compilable?
11149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11151 cat >conftest.$ac_ext <<_ACEOF
11152 /* confdefs.h. */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h. */
11157 $ac_includes_default
11158 #include <$ac_header>
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
11176 { ac_try='test -s conftest.$ac_objext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 ac_header_compiler=yes
11183 else
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11186
11187 ac_header_compiler=no
11188 fi
11189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11191 echo "${ECHO_T}$ac_header_compiler" >&6
11192
11193 # Is the header present?
11194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11196 cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h. */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 #include <$ac_header>
11203 _ACEOF
11204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } >/dev/null; then
11212 if test -s conftest.err; then
11213 ac_cpp_err=$ac_c_preproc_warn_flag
11214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11215 else
11216 ac_cpp_err=
11217 fi
11218 else
11219 ac_cpp_err=yes
11220 fi
11221 if test -z "$ac_cpp_err"; then
11222 ac_header_preproc=yes
11223 else
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11226
11227 ac_header_preproc=no
11228 fi
11229 rm -f conftest.err conftest.$ac_ext
11230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11231 echo "${ECHO_T}$ac_header_preproc" >&6
11232
11233 # So? What about this header?
11234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11235 yes:no: )
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11240 ac_header_preproc=yes
11241 ;;
11242 no:yes:* )
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11255 (
11256 cat <<\_ASBOX
11257 ## ------------------------------------------ ##
11258 ## Report this to the AC_PACKAGE_NAME lists. ##
11259 ## ------------------------------------------ ##
11260 _ASBOX
11261 ) |
11262 sed "s/^/$as_me: WARNING: /" >&2
11263 ;;
11264 esac
11265 echo "$as_me:$LINENO: checking for $ac_header" >&5
11266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270 eval "$as_ac_Header=\$ac_header_preproc"
11271 fi
11272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11274
11275 fi
11276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11277 cat >>confdefs.h <<_ACEOF
11278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11279 _ACEOF
11280
11281 fi
11282
11283 done
11284
11285
11286
11287 for ac_header in sys/reg.h sys/debugreg.h
11288 do
11289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11291 echo "$as_me:$LINENO: checking for $ac_header" >&5
11292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 fi
11296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11298 else
11299 # Is the header compilable?
11300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 $ac_includes_default
11309 #include <$ac_header>
11310 _ACEOF
11311 rm -f conftest.$ac_objext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11313 (eval $ac_compile) 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
11320 { ac_try='test -z "$ac_c_werror_flag"
11321 || test ! -s conftest.err'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; } &&
11327 { ac_try='test -s conftest.$ac_objext'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }; then
11333 ac_header_compiler=yes
11334 else
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11337
11338 ac_header_compiler=no
11339 fi
11340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11342 echo "${ECHO_T}$ac_header_compiler" >&6
11343
11344 # Is the header present?
11345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11347 cat >conftest.$ac_ext <<_ACEOF
11348 /* confdefs.h. */
11349 _ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11353 #include <$ac_header>
11354 _ACEOF
11355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } >/dev/null; then
11363 if test -s conftest.err; then
11364 ac_cpp_err=$ac_c_preproc_warn_flag
11365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11366 else
11367 ac_cpp_err=
11368 fi
11369 else
11370 ac_cpp_err=yes
11371 fi
11372 if test -z "$ac_cpp_err"; then
11373 ac_header_preproc=yes
11374 else
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 ac_header_preproc=no
11379 fi
11380 rm -f conftest.err conftest.$ac_ext
11381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11382 echo "${ECHO_T}$ac_header_preproc" >&6
11383
11384 # So? What about this header?
11385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11386 yes:no: )
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11391 ac_header_preproc=yes
11392 ;;
11393 no:yes:* )
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11406 (
11407 cat <<\_ASBOX
11408 ## ------------------------------------------ ##
11409 ## Report this to the AC_PACKAGE_NAME lists. ##
11410 ## ------------------------------------------ ##
11411 _ASBOX
11412 ) |
11413 sed "s/^/$as_me: WARNING: /" >&2
11414 ;;
11415 esac
11416 echo "$as_me:$LINENO: checking for $ac_header" >&5
11417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421 eval "$as_ac_Header=\$ac_header_preproc"
11422 fi
11423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11425
11426 fi
11427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11428 cat >>confdefs.h <<_ACEOF
11429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11430 _ACEOF
11431
11432 fi
11433
11434 done
11435
11436
11437 for ac_header in sys/select.h
11438 do
11439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11441 echo "$as_me:$LINENO: checking for $ac_header" >&5
11442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 fi
11446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11448 else
11449 # Is the header compilable?
11450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11452 cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h. */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 $ac_includes_default
11459 #include <$ac_header>
11460 _ACEOF
11461 rm -f conftest.$ac_objext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11463 (eval $ac_compile) 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag"
11471 || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest.$ac_objext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_header_compiler=yes
11484 else
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11487
11488 ac_header_compiler=no
11489 fi
11490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11492 echo "${ECHO_T}$ac_header_compiler" >&6
11493
11494 # Is the header present?
11495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 #include <$ac_header>
11504 _ACEOF
11505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } >/dev/null; then
11513 if test -s conftest.err; then
11514 ac_cpp_err=$ac_c_preproc_warn_flag
11515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11516 else
11517 ac_cpp_err=
11518 fi
11519 else
11520 ac_cpp_err=yes
11521 fi
11522 if test -z "$ac_cpp_err"; then
11523 ac_header_preproc=yes
11524 else
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11527
11528 ac_header_preproc=no
11529 fi
11530 rm -f conftest.err conftest.$ac_ext
11531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11532 echo "${ECHO_T}$ac_header_preproc" >&6
11533
11534 # So? What about this header?
11535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11536 yes:no: )
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11541 ac_header_preproc=yes
11542 ;;
11543 no:yes:* )
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11556 (
11557 cat <<\_ASBOX
11558 ## ------------------------------------------ ##
11559 ## Report this to the AC_PACKAGE_NAME lists. ##
11560 ## ------------------------------------------ ##
11561 _ASBOX
11562 ) |
11563 sed "s/^/$as_me: WARNING: /" >&2
11564 ;;
11565 esac
11566 echo "$as_me:$LINENO: checking for $ac_header" >&5
11567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571 eval "$as_ac_Header=\$ac_header_preproc"
11572 fi
11573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11575
11576 fi
11577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11578 cat >>confdefs.h <<_ACEOF
11579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11580 _ACEOF
11581
11582 fi
11583
11584 done
11585
11586
11587 for ac_header in sys/syscall.h
11588 do
11589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11591 echo "$as_me:$LINENO: checking for $ac_header" >&5
11592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 fi
11596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11598 else
11599 # Is the header compilable?
11600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h. */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 $ac_includes_default
11609 #include <$ac_header>
11610 _ACEOF
11611 rm -f conftest.$ac_objext
11612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11613 (eval $ac_compile) 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
11620 { ac_try='test -z "$ac_c_werror_flag"
11621 || test ! -s conftest.err'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; } &&
11627 { ac_try='test -s conftest.$ac_objext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 ac_header_compiler=yes
11634 else
11635 echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11637
11638 ac_header_compiler=no
11639 fi
11640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11642 echo "${ECHO_T}$ac_header_compiler" >&6
11643
11644 # Is the header present?
11645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h. */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <$ac_header>
11654 _ACEOF
11655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11657 ac_status=$?
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } >/dev/null; then
11663 if test -s conftest.err; then
11664 ac_cpp_err=$ac_c_preproc_warn_flag
11665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11666 else
11667 ac_cpp_err=
11668 fi
11669 else
11670 ac_cpp_err=yes
11671 fi
11672 if test -z "$ac_cpp_err"; then
11673 ac_header_preproc=yes
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678 ac_header_preproc=no
11679 fi
11680 rm -f conftest.err conftest.$ac_ext
11681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11682 echo "${ECHO_T}$ac_header_preproc" >&6
11683
11684 # So? What about this header?
11685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11686 yes:no: )
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11691 ac_header_preproc=yes
11692 ;;
11693 no:yes:* )
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11706 (
11707 cat <<\_ASBOX
11708 ## ------------------------------------------ ##
11709 ## Report this to the AC_PACKAGE_NAME lists. ##
11710 ## ------------------------------------------ ##
11711 _ASBOX
11712 ) |
11713 sed "s/^/$as_me: WARNING: /" >&2
11714 ;;
11715 esac
11716 echo "$as_me:$LINENO: checking for $ac_header" >&5
11717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721 eval "$as_ac_Header=\$ac_header_preproc"
11722 fi
11723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11725
11726 fi
11727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11730 _ACEOF
11731
11732 fi
11733
11734 done
11735
11736
11737 for ac_header in sys/types.h
11738 do
11739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11741 echo "$as_me:$LINENO: checking for $ac_header" >&5
11742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 fi
11746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11748 else
11749 # Is the header compilable?
11750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h. */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 $ac_includes_default
11759 #include <$ac_header>
11760 _ACEOF
11761 rm -f conftest.$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag"
11771 || test ! -s conftest.err'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try='test -s conftest.$ac_objext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 ac_header_compiler=yes
11784 else
11785 echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11787
11788 ac_header_compiler=no
11789 fi
11790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11792 echo "${ECHO_T}$ac_header_compiler" >&6
11793
11794 # Is the header present?
11795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11797 cat >conftest.$ac_ext <<_ACEOF
11798 /* confdefs.h. */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11803 #include <$ac_header>
11804 _ACEOF
11805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } >/dev/null; then
11813 if test -s conftest.err; then
11814 ac_cpp_err=$ac_c_preproc_warn_flag
11815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11816 else
11817 ac_cpp_err=
11818 fi
11819 else
11820 ac_cpp_err=yes
11821 fi
11822 if test -z "$ac_cpp_err"; then
11823 ac_header_preproc=yes
11824 else
11825 echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.$ac_ext >&5
11827
11828 ac_header_preproc=no
11829 fi
11830 rm -f conftest.err conftest.$ac_ext
11831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11832 echo "${ECHO_T}$ac_header_preproc" >&6
11833
11834 # So? What about this header?
11835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11836 yes:no: )
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11841 ac_header_preproc=yes
11842 ;;
11843 no:yes:* )
11844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11856 (
11857 cat <<\_ASBOX
11858 ## ------------------------------------------ ##
11859 ## Report this to the AC_PACKAGE_NAME lists. ##
11860 ## ------------------------------------------ ##
11861 _ASBOX
11862 ) |
11863 sed "s/^/$as_me: WARNING: /" >&2
11864 ;;
11865 esac
11866 echo "$as_me:$LINENO: checking for $ac_header" >&5
11867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871 eval "$as_ac_Header=\$ac_header_preproc"
11872 fi
11873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11875
11876 fi
11877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11878 cat >>confdefs.h <<_ACEOF
11879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11880 _ACEOF
11881
11882 fi
11883
11884 done
11885
11886
11887 for ac_header in sys/user.h
11888 do
11889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11890 echo "$as_me:$LINENO: checking for $ac_header" >&5
11891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895 cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h. */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11901 #if HAVE_SYS_PARAM_H
11902 # include <sys/param.h>
11903 #endif
11904
11905
11906 #include <$ac_header>
11907 _ACEOF
11908 rm -f conftest.$ac_objext
11909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11910 (eval $ac_compile) 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -z "$ac_c_werror_flag"
11918 || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest.$ac_objext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 eval "$as_ac_Header=yes"
11931 else
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11934
11935 eval "$as_ac_Header=no"
11936 fi
11937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11938 fi
11939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11942 cat >>confdefs.h <<_ACEOF
11943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11944 _ACEOF
11945
11946 fi
11947
11948 done
11949
11950
11951
11952 for ac_header in sys/wait.h wait.h
11953 do
11954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11956 echo "$as_me:$LINENO: checking for $ac_header" >&5
11957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 fi
11961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11963 else
11964 # Is the header compilable?
11965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11967 cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h. */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 $ac_includes_default
11974 #include <$ac_header>
11975 _ACEOF
11976 rm -f conftest.$ac_objext
11977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11978 (eval $ac_compile) 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
11985 { ac_try='test -z "$ac_c_werror_flag"
11986 || test ! -s conftest.err'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; } &&
11992 { ac_try='test -s conftest.$ac_objext'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
11998 ac_header_compiler=yes
11999 else
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12002
12003 ac_header_compiler=no
12004 fi
12005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12007 echo "${ECHO_T}$ac_header_compiler" >&6
12008
12009 # Is the header present?
12010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12012 cat >conftest.$ac_ext <<_ACEOF
12013 /* confdefs.h. */
12014 _ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12018 #include <$ac_header>
12019 _ACEOF
12020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } >/dev/null; then
12028 if test -s conftest.err; then
12029 ac_cpp_err=$ac_c_preproc_warn_flag
12030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12031 else
12032 ac_cpp_err=
12033 fi
12034 else
12035 ac_cpp_err=yes
12036 fi
12037 if test -z "$ac_cpp_err"; then
12038 ac_header_preproc=yes
12039 else
12040 echo "$as_me: failed program was:" >&5
12041 sed 's/^/| /' conftest.$ac_ext >&5
12042
12043 ac_header_preproc=no
12044 fi
12045 rm -f conftest.err conftest.$ac_ext
12046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12047 echo "${ECHO_T}$ac_header_preproc" >&6
12048
12049 # So? What about this header?
12050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12051 yes:no: )
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12056 ac_header_preproc=yes
12057 ;;
12058 no:yes:* )
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12071 (
12072 cat <<\_ASBOX
12073 ## ------------------------------------------ ##
12074 ## Report this to the AC_PACKAGE_NAME lists. ##
12075 ## ------------------------------------------ ##
12076 _ASBOX
12077 ) |
12078 sed "s/^/$as_me: WARNING: /" >&2
12079 ;;
12080 esac
12081 echo "$as_me:$LINENO: checking for $ac_header" >&5
12082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086 eval "$as_ac_Header=\$ac_header_preproc"
12087 fi
12088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12090
12091 fi
12092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12093 cat >>confdefs.h <<_ACEOF
12094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12095 _ACEOF
12096
12097 fi
12098
12099 done
12100
12101
12102
12103
12104 for ac_header in termios.h termio.h sgtty.h
12105 do
12106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12108 echo "$as_me:$LINENO: checking for $ac_header" >&5
12109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 fi
12113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12115 else
12116 # Is the header compilable?
12117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h. */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 $ac_includes_default
12126 #include <$ac_header>
12127 _ACEOF
12128 rm -f conftest.$ac_objext
12129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12130 (eval $ac_compile) 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try='test -z "$ac_c_werror_flag"
12138 || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_header_compiler=yes
12151 else
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12154
12155 ac_header_compiler=no
12156 fi
12157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12159 echo "${ECHO_T}$ac_header_compiler" >&6
12160
12161 # Is the header present?
12162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 #include <$ac_header>
12171 _ACEOF
12172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12174 ac_status=$?
12175 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } >/dev/null; then
12180 if test -s conftest.err; then
12181 ac_cpp_err=$ac_c_preproc_warn_flag
12182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12183 else
12184 ac_cpp_err=
12185 fi
12186 else
12187 ac_cpp_err=yes
12188 fi
12189 if test -z "$ac_cpp_err"; then
12190 ac_header_preproc=yes
12191 else
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12194
12195 ac_header_preproc=no
12196 fi
12197 rm -f conftest.err conftest.$ac_ext
12198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12199 echo "${ECHO_T}$ac_header_preproc" >&6
12200
12201 # So? What about this header?
12202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12203 yes:no: )
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12208 ac_header_preproc=yes
12209 ;;
12210 no:yes:* )
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12223 (
12224 cat <<\_ASBOX
12225 ## ------------------------------------------ ##
12226 ## Report this to the AC_PACKAGE_NAME lists. ##
12227 ## ------------------------------------------ ##
12228 _ASBOX
12229 ) |
12230 sed "s/^/$as_me: WARNING: /" >&2
12231 ;;
12232 esac
12233 echo "$as_me:$LINENO: checking for $ac_header" >&5
12234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238 eval "$as_ac_Header=\$ac_header_preproc"
12239 fi
12240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12242
12243 fi
12244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12247 _ACEOF
12248
12249 fi
12250
12251 done
12252
12253
12254 for ac_header in unistd.h
12255 do
12256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12258 echo "$as_me:$LINENO: checking for $ac_header" >&5
12259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 fi
12263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12265 else
12266 # Is the header compilable?
12267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12269 cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h. */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12275 $ac_includes_default
12276 #include <$ac_header>
12277 _ACEOF
12278 rm -f conftest.$ac_objext
12279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12280 (eval $ac_compile) 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try='test -z "$ac_c_werror_flag"
12288 || test ! -s conftest.err'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest.$ac_objext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 ac_header_compiler=yes
12301 else
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305 ac_header_compiler=no
12306 fi
12307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12309 echo "${ECHO_T}$ac_header_compiler" >&6
12310
12311 # Is the header present?
12312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h. */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 #include <$ac_header>
12321 _ACEOF
12322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12324 ac_status=$?
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } >/dev/null; then
12330 if test -s conftest.err; then
12331 ac_cpp_err=$ac_c_preproc_warn_flag
12332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12333 else
12334 ac_cpp_err=
12335 fi
12336 else
12337 ac_cpp_err=yes
12338 fi
12339 if test -z "$ac_cpp_err"; then
12340 ac_header_preproc=yes
12341 else
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12344
12345 ac_header_preproc=no
12346 fi
12347 rm -f conftest.err conftest.$ac_ext
12348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12349 echo "${ECHO_T}$ac_header_preproc" >&6
12350
12351 # So? What about this header?
12352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12353 yes:no: )
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12358 ac_header_preproc=yes
12359 ;;
12360 no:yes:* )
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12373 (
12374 cat <<\_ASBOX
12375 ## ------------------------------------------ ##
12376 ## Report this to the AC_PACKAGE_NAME lists. ##
12377 ## ------------------------------------------ ##
12378 _ASBOX
12379 ) |
12380 sed "s/^/$as_me: WARNING: /" >&2
12381 ;;
12382 esac
12383 echo "$as_me:$LINENO: checking for $ac_header" >&5
12384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388 eval "$as_ac_Header=\$ac_header_preproc"
12389 fi
12390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12392
12393 fi
12394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12395 cat >>confdefs.h <<_ACEOF
12396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12397 _ACEOF
12398
12399 fi
12400
12401 done
12402
12403
12404 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12405 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12406 # think that we don't have <curses.h> if we're using GCC.
12407 case $host_os in
12408 solaris2.[789])
12409 if test "$GCC" = yes; then
12410
12411 cat >>confdefs.h <<\_ACEOF
12412 #define _MSE_INT_H 1
12413 _ACEOF
12414
12415 fi ;;
12416 esac
12417
12418
12419
12420
12421 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12422 do
12423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12425 echo "$as_me:$LINENO: checking for $ac_header" >&5
12426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12429 fi
12430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12432 else
12433 # Is the header compilable?
12434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12436 cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h. */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12442 $ac_includes_default
12443 #include <$ac_header>
12444 _ACEOF
12445 rm -f conftest.$ac_objext
12446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12447 (eval $ac_compile) 2>conftest.er1
12448 ac_status=$?
12449 grep -v '^ *+' conftest.er1 >conftest.err
12450 rm -f conftest.er1
12451 cat conftest.err >&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } &&
12454 { ac_try='test -z "$ac_c_werror_flag"
12455 || test ! -s conftest.err'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; } &&
12461 { ac_try='test -s conftest.$ac_objext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_header_compiler=yes
12468 else
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12471
12472 ac_header_compiler=no
12473 fi
12474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12476 echo "${ECHO_T}$ac_header_compiler" >&6
12477
12478 # Is the header present?
12479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12481 cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h. */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12487 #include <$ac_header>
12488 _ACEOF
12489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } >/dev/null; then
12497 if test -s conftest.err; then
12498 ac_cpp_err=$ac_c_preproc_warn_flag
12499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12500 else
12501 ac_cpp_err=
12502 fi
12503 else
12504 ac_cpp_err=yes
12505 fi
12506 if test -z "$ac_cpp_err"; then
12507 ac_header_preproc=yes
12508 else
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12511
12512 ac_header_preproc=no
12513 fi
12514 rm -f conftest.err conftest.$ac_ext
12515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12516 echo "${ECHO_T}$ac_header_preproc" >&6
12517
12518 # So? What about this header?
12519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12520 yes:no: )
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12525 ac_header_preproc=yes
12526 ;;
12527 no:yes:* )
12528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12540 (
12541 cat <<\_ASBOX
12542 ## ------------------------------------------ ##
12543 ## Report this to the AC_PACKAGE_NAME lists. ##
12544 ## ------------------------------------------ ##
12545 _ASBOX
12546 ) |
12547 sed "s/^/$as_me: WARNING: /" >&2
12548 ;;
12549 esac
12550 echo "$as_me:$LINENO: checking for $ac_header" >&5
12551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555 eval "$as_ac_Header=\$ac_header_preproc"
12556 fi
12557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12559
12560 fi
12561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12562 cat >>confdefs.h <<_ACEOF
12563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12564 _ACEOF
12565
12566 fi
12567
12568 done
12569
12570
12571 for ac_header in ncurses/term.h
12572 do
12573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12575 echo "$as_me:$LINENO: checking for $ac_header" >&5
12576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 fi
12580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12582 else
12583 # Is the header compilable?
12584 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12586 cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h. */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12592 $ac_includes_default
12593 #include <$ac_header>
12594 _ACEOF
12595 rm -f conftest.$ac_objext
12596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12597 (eval $ac_compile) 2>conftest.er1
12598 ac_status=$?
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
12604 { ac_try='test -z "$ac_c_werror_flag"
12605 || test ! -s conftest.err'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest.$ac_objext'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
12617 ac_header_compiler=yes
12618 else
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12621
12622 ac_header_compiler=no
12623 fi
12624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12626 echo "${ECHO_T}$ac_header_compiler" >&6
12627
12628 # Is the header present?
12629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12631 cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h. */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 #include <$ac_header>
12638 _ACEOF
12639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } >/dev/null; then
12647 if test -s conftest.err; then
12648 ac_cpp_err=$ac_c_preproc_warn_flag
12649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12650 else
12651 ac_cpp_err=
12652 fi
12653 else
12654 ac_cpp_err=yes
12655 fi
12656 if test -z "$ac_cpp_err"; then
12657 ac_header_preproc=yes
12658 else
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12661
12662 ac_header_preproc=no
12663 fi
12664 rm -f conftest.err conftest.$ac_ext
12665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12666 echo "${ECHO_T}$ac_header_preproc" >&6
12667
12668 # So? What about this header?
12669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12670 yes:no: )
12671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12675 ac_header_preproc=yes
12676 ;;
12677 no:yes:* )
12678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12690 (
12691 cat <<\_ASBOX
12692 ## ------------------------------------------ ##
12693 ## Report this to the AC_PACKAGE_NAME lists. ##
12694 ## ------------------------------------------ ##
12695 _ASBOX
12696 ) |
12697 sed "s/^/$as_me: WARNING: /" >&2
12698 ;;
12699 esac
12700 echo "$as_me:$LINENO: checking for $ac_header" >&5
12701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 else
12705 eval "$as_ac_Header=\$ac_header_preproc"
12706 fi
12707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12709
12710 fi
12711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12712 cat >>confdefs.h <<_ACEOF
12713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12714 _ACEOF
12715
12716 fi
12717
12718 done
12719
12720
12721 for ac_header in term.h
12722 do
12723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12724 echo "$as_me:$LINENO: checking for $ac_header" >&5
12725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12727 echo $ECHO_N "(cached) $ECHO_C" >&6
12728 else
12729 cat >conftest.$ac_ext <<_ACEOF
12730 /* confdefs.h. */
12731 _ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12735 #if HAVE_CURSES_H
12736 # include <curses.h>
12737 #endif
12738
12739
12740 #include <$ac_header>
12741 _ACEOF
12742 rm -f conftest.$ac_objext
12743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12744 (eval $ac_compile) 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
12751 { ac_try='test -z "$ac_c_werror_flag"
12752 || test ! -s conftest.err'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest.$ac_objext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 eval "$as_ac_Header=yes"
12765 else
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769 eval "$as_ac_Header=no"
12770 fi
12771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12772 fi
12773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12776 cat >>confdefs.h <<_ACEOF
12777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12778 _ACEOF
12779
12780 fi
12781
12782 done
12783
12784
12785 # FIXME: kettenis/20030102: In most cases we include these
12786 # unconditionally, so what's the point in checking these?
12787
12788
12789 for ac_header in ctype.h time.h
12790 do
12791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12793 echo "$as_me:$LINENO: checking for $ac_header" >&5
12794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 fi
12798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12800 else
12801 # Is the header compilable?
12802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12804 cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h. */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 $ac_includes_default
12811 #include <$ac_header>
12812 _ACEOF
12813 rm -f conftest.$ac_objext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12815 (eval $ac_compile) 2>conftest.er1
12816 ac_status=$?
12817 grep -v '^ *+' conftest.er1 >conftest.err
12818 rm -f conftest.er1
12819 cat conftest.err >&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } &&
12822 { ac_try='test -z "$ac_c_werror_flag"
12823 || test ! -s conftest.err'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; } &&
12829 { ac_try='test -s conftest.$ac_objext'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
12835 ac_header_compiler=yes
12836 else
12837 echo "$as_me: failed program was:" >&5
12838 sed 's/^/| /' conftest.$ac_ext >&5
12839
12840 ac_header_compiler=no
12841 fi
12842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12844 echo "${ECHO_T}$ac_header_compiler" >&6
12845
12846 # Is the header present?
12847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12849 cat >conftest.$ac_ext <<_ACEOF
12850 /* confdefs.h. */
12851 _ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h. */
12855 #include <$ac_header>
12856 _ACEOF
12857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } >/dev/null; then
12865 if test -s conftest.err; then
12866 ac_cpp_err=$ac_c_preproc_warn_flag
12867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12868 else
12869 ac_cpp_err=
12870 fi
12871 else
12872 ac_cpp_err=yes
12873 fi
12874 if test -z "$ac_cpp_err"; then
12875 ac_header_preproc=yes
12876 else
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12879
12880 ac_header_preproc=no
12881 fi
12882 rm -f conftest.err conftest.$ac_ext
12883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12884 echo "${ECHO_T}$ac_header_preproc" >&6
12885
12886 # So? What about this header?
12887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12888 yes:no: )
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12893 ac_header_preproc=yes
12894 ;;
12895 no:yes:* )
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12908 (
12909 cat <<\_ASBOX
12910 ## ------------------------------------------ ##
12911 ## Report this to the AC_PACKAGE_NAME lists. ##
12912 ## ------------------------------------------ ##
12913 _ASBOX
12914 ) |
12915 sed "s/^/$as_me: WARNING: /" >&2
12916 ;;
12917 esac
12918 echo "$as_me:$LINENO: checking for $ac_header" >&5
12919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923 eval "$as_ac_Header=\$ac_header_preproc"
12924 fi
12925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12927
12928 fi
12929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12930 cat >>confdefs.h <<_ACEOF
12931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12932 _ACEOF
12933
12934 fi
12935
12936 done
12937
12938
12939 # Create a header we can use portably to get the standard integer types.
12940
12941
12942 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12943
12944 acx_cv_header_stdint=stddef.h
12945 acx_cv_header_stdint_kind="(already complete)"
12946 for i in stdint.h $inttype_headers; do
12947 unset ac_cv_type_uintptr_t
12948 unset ac_cv_type_uintmax_t
12949 unset ac_cv_type_int_least32_t
12950 unset ac_cv_type_int_fast32_t
12951 unset ac_cv_type_uint64_t
12952 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12953 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12954 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12955 if test "${ac_cv_type_uintmax_t+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 else
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 #include <sys/types.h>
12965 #include <$i>
12966
12967 int
12968 main ()
12969 {
12970 if ((uintmax_t *) 0)
12971 return 0;
12972 if (sizeof (uintmax_t))
12973 return 0;
12974 ;
12975 return 0;
12976 }
12977 _ACEOF
12978 rm -f conftest.$ac_objext
12979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12980 (eval $ac_compile) 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
12987 { ac_try='test -z "$ac_c_werror_flag"
12988 || test ! -s conftest.err'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } &&
12994 { ac_try='test -s conftest.$ac_objext'
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
13000 ac_cv_type_uintmax_t=yes
13001 else
13002 echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13004
13005 ac_cv_type_uintmax_t=no
13006 fi
13007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13008 fi
13009 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13010 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13011 if test $ac_cv_type_uintmax_t = yes; then
13012 acx_cv_header_stdint=$i
13013 else
13014 continue
13015 fi
13016
13017 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13018 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13019 if test "${ac_cv_type_uintptr_t+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022 cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h. */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 #include <sys/types.h>
13029 #include <$i>
13030
13031 int
13032 main ()
13033 {
13034 if ((uintptr_t *) 0)
13035 return 0;
13036 if (sizeof (uintptr_t))
13037 return 0;
13038 ;
13039 return 0;
13040 }
13041 _ACEOF
13042 rm -f conftest.$ac_objext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13044 (eval $ac_compile) 2>conftest.er1
13045 ac_status=$?
13046 grep -v '^ *+' conftest.er1 >conftest.err
13047 rm -f conftest.er1
13048 cat conftest.err >&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
13051 { ac_try='test -z "$ac_c_werror_flag"
13052 || test ! -s conftest.err'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } &&
13058 { ac_try='test -s conftest.$ac_objext'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
13064 ac_cv_type_uintptr_t=yes
13065 else
13066 echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13068
13069 ac_cv_type_uintptr_t=no
13070 fi
13071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13072 fi
13073 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13074 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13075 if test $ac_cv_type_uintptr_t = yes; then
13076 :
13077 else
13078 acx_cv_header_stdint_kind="(mostly complete)"
13079 fi
13080
13081 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13082 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13083 if test "${ac_cv_type_int_least32_t+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 else
13086 cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h. */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092 #include <sys/types.h>
13093 #include <$i>
13094
13095 int
13096 main ()
13097 {
13098 if ((int_least32_t *) 0)
13099 return 0;
13100 if (sizeof (int_least32_t))
13101 return 0;
13102 ;
13103 return 0;
13104 }
13105 _ACEOF
13106 rm -f conftest.$ac_objext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108 (eval $ac_compile) 2>conftest.er1
13109 ac_status=$?
13110 grep -v '^ *+' conftest.er1 >conftest.err
13111 rm -f conftest.er1
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } &&
13115 { ac_try='test -z "$ac_c_werror_flag"
13116 || test ! -s conftest.err'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; } &&
13122 { ac_try='test -s conftest.$ac_objext'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13128 ac_cv_type_int_least32_t=yes
13129 else
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13132
13133 ac_cv_type_int_least32_t=no
13134 fi
13135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13136 fi
13137 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13138 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13139 if test $ac_cv_type_int_least32_t = yes; then
13140 :
13141 else
13142 acx_cv_header_stdint_kind="(mostly complete)"
13143 fi
13144
13145 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13146 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13147 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150 cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h. */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 #include <sys/types.h>
13157 #include <$i>
13158
13159 int
13160 main ()
13161 {
13162 if ((int_fast32_t *) 0)
13163 return 0;
13164 if (sizeof (int_fast32_t))
13165 return 0;
13166 ;
13167 return 0;
13168 }
13169 _ACEOF
13170 rm -f conftest.$ac_objext
13171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172 (eval $ac_compile) 2>conftest.er1
13173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
13179 { ac_try='test -z "$ac_c_werror_flag"
13180 || test ! -s conftest.err'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; } &&
13186 { ac_try='test -s conftest.$ac_objext'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13189 ac_status=$?
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; }; then
13192 ac_cv_type_int_fast32_t=yes
13193 else
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13196
13197 ac_cv_type_int_fast32_t=no
13198 fi
13199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13200 fi
13201 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13202 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13203 if test $ac_cv_type_int_fast32_t = yes; then
13204 :
13205 else
13206 acx_cv_header_stdint_kind="(mostly complete)"
13207 fi
13208
13209 echo "$as_me:$LINENO: checking for uint64_t" >&5
13210 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13211 if test "${ac_cv_type_uint64_t+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214 cat >conftest.$ac_ext <<_ACEOF
13215 /* confdefs.h. */
13216 _ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13220 #include <sys/types.h>
13221 #include <$i>
13222
13223 int
13224 main ()
13225 {
13226 if ((uint64_t *) 0)
13227 return 0;
13228 if (sizeof (uint64_t))
13229 return 0;
13230 ;
13231 return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext
13235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13236 (eval $ac_compile) 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
13243 { ac_try='test -z "$ac_c_werror_flag"
13244 || test ! -s conftest.err'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest.$ac_objext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 ac_cv_type_uint64_t=yes
13257 else
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13260
13261 ac_cv_type_uint64_t=no
13262 fi
13263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13264 fi
13265 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13266 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13267 if test $ac_cv_type_uint64_t = yes; then
13268 :
13269 else
13270 acx_cv_header_stdint_kind="(lacks uint64_t)"
13271 fi
13272
13273 break
13274 done
13275 if test "$acx_cv_header_stdint" = stddef.h; then
13276 acx_cv_header_stdint_kind="(lacks uintptr_t)"
13277 for i in stdint.h $inttype_headers; do
13278 unset ac_cv_type_uint32_t
13279 unset ac_cv_type_uint64_t
13280 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13281 echo "$as_me:$LINENO: checking for uint32_t" >&5
13282 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13283 if test "${ac_cv_type_uint32_t+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 else
13286 cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h. */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 #include <sys/types.h>
13293 #include <$i>
13294
13295 int
13296 main ()
13297 {
13298 if ((uint32_t *) 0)
13299 return 0;
13300 if (sizeof (uint32_t))
13301 return 0;
13302 ;
13303 return 0;
13304 }
13305 _ACEOF
13306 rm -f conftest.$ac_objext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308 (eval $ac_compile) 2>conftest.er1
13309 ac_status=$?
13310 grep -v '^ *+' conftest.er1 >conftest.err
13311 rm -f conftest.er1
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
13315 { ac_try='test -z "$ac_c_werror_flag"
13316 || test ! -s conftest.err'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; } &&
13322 { ac_try='test -s conftest.$ac_objext'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13328 ac_cv_type_uint32_t=yes
13329 else
13330 echo "$as_me: failed program was:" >&5
13331 sed 's/^/| /' conftest.$ac_ext >&5
13332
13333 ac_cv_type_uint32_t=no
13334 fi
13335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13336 fi
13337 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13338 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13339 if test $ac_cv_type_uint32_t = yes; then
13340 acx_cv_header_stdint=$i
13341 else
13342 continue
13343 fi
13344
13345 echo "$as_me:$LINENO: checking for uint64_t" >&5
13346 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13347 if test "${ac_cv_type_uint64_t+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 else
13350 cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h. */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 #include <sys/types.h>
13357 #include <$i>
13358
13359 int
13360 main ()
13361 {
13362 if ((uint64_t *) 0)
13363 return 0;
13364 if (sizeof (uint64_t))
13365 return 0;
13366 ;
13367 return 0;
13368 }
13369 _ACEOF
13370 rm -f conftest.$ac_objext
13371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13372 (eval $ac_compile) 2>conftest.er1
13373 ac_status=$?
13374 grep -v '^ *+' conftest.er1 >conftest.err
13375 rm -f conftest.er1
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
13379 { ac_try='test -z "$ac_c_werror_flag"
13380 || test ! -s conftest.err'
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; } &&
13386 { ac_try='test -s conftest.$ac_objext'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13392 ac_cv_type_uint64_t=yes
13393 else
13394 echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13396
13397 ac_cv_type_uint64_t=no
13398 fi
13399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13400 fi
13401 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13402 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13403 if test $ac_cv_type_uint64_t = yes; then
13404 :
13405 else
13406 acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)"
13407 fi
13408
13409 break
13410 done
13411 fi
13412 if test "$acx_cv_header_stdint" = stddef.h; then
13413 acx_cv_header_stdint_kind="(u_intXX_t style)"
13414 for i in sys/types.h $inttype_headers; do
13415 unset ac_cv_type_u_int32_t
13416 unset ac_cv_type_u_int64_t
13417 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13418 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13419 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13420 if test "${ac_cv_type_u_int32_t+set}" = set; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 else
13423 cat >conftest.$ac_ext <<_ACEOF
13424 /* confdefs.h. */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429 #include <sys/types.h>
13430 #include <$i>
13431
13432 int
13433 main ()
13434 {
13435 if ((u_int32_t *) 0)
13436 return 0;
13437 if (sizeof (u_int32_t))
13438 return 0;
13439 ;
13440 return 0;
13441 }
13442 _ACEOF
13443 rm -f conftest.$ac_objext
13444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13445 (eval $ac_compile) 2>conftest.er1
13446 ac_status=$?
13447 grep -v '^ *+' conftest.er1 >conftest.err
13448 rm -f conftest.er1
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
13452 { ac_try='test -z "$ac_c_werror_flag"
13453 || test ! -s conftest.err'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; } &&
13459 { ac_try='test -s conftest.$ac_objext'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
13465 ac_cv_type_u_int32_t=yes
13466 else
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13469
13470 ac_cv_type_u_int32_t=no
13471 fi
13472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13473 fi
13474 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13475 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13476 if test $ac_cv_type_u_int32_t = yes; then
13477 acx_cv_header_stdint=$i
13478 else
13479 continue
13480 fi
13481
13482 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13483 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13484 if test "${ac_cv_type_u_int64_t+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 else
13487 cat >conftest.$ac_ext <<_ACEOF
13488 /* confdefs.h. */
13489 _ACEOF
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h. */
13493 #include <sys/types.h>
13494 #include <$i>
13495
13496 int
13497 main ()
13498 {
13499 if ((u_int64_t *) 0)
13500 return 0;
13501 if (sizeof (u_int64_t))
13502 return 0;
13503 ;
13504 return 0;
13505 }
13506 _ACEOF
13507 rm -f conftest.$ac_objext
13508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13509 (eval $ac_compile) 2>conftest.er1
13510 ac_status=$?
13511 grep -v '^ *+' conftest.er1 >conftest.err
13512 rm -f conftest.er1
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
13516 { ac_try='test -z "$ac_c_werror_flag"
13517 || test ! -s conftest.err'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; } &&
13523 { ac_try='test -s conftest.$ac_objext'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529 ac_cv_type_u_int64_t=yes
13530 else
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13533
13534 ac_cv_type_u_int64_t=no
13535 fi
13536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13537 fi
13538 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13539 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13540 if test $ac_cv_type_u_int64_t = yes; then
13541 :
13542 else
13543 acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)"
13544 fi
13545
13546 break
13547 done
13548 fi
13549 if test "$acx_cv_header_stdint" = stddef.h; then
13550 acx_cv_header_stdint_kind="(using manual detection)"
13551 fi
13552
13553 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13554 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13555 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13556 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13557 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13558
13559 # ----------------- Summarize what we found so far
13560
13561 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
13562 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
13563
13564 case `$as_basename gdb_stdint.h ||
13565 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13566 Xgdb_stdint.h : 'X\(//\)$' \| \
13567 Xgdb_stdint.h : 'X\(/\)$' \| \
13568 . : '\(.\)' 2>/dev/null ||
13569 echo X/gdb_stdint.h |
13570 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13571 /^X\/\(\/\/\)$/{ s//\1/; q; }
13572 /^X\/\(\/\).*/{ s//\1/; q; }
13573 s/.*/./; q'` in
13574 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13575 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13576 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13577 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13578 *) ;;
13579 esac
13580
13581 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13582 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13583
13584 # ----------------- done included file, check C basic types --------
13585
13586 # Lacking an uintptr_t? Test size of void *
13587 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13588 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13589 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13590 if test "${ac_cv_type_void_p+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 else
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h. */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 $ac_includes_default
13600 int
13601 main ()
13602 {
13603 if ((void * *) 0)
13604 return 0;
13605 if (sizeof (void *))
13606 return 0;
13607 ;
13608 return 0;
13609 }
13610 _ACEOF
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613 (eval $ac_compile) 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag"
13621 || test ! -s conftest.err'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } &&
13627 { ac_try='test -s conftest.$ac_objext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 ac_cv_type_void_p=yes
13634 else
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638 ac_cv_type_void_p=no
13639 fi
13640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13641 fi
13642 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13643 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13644
13645 echo "$as_me:$LINENO: checking size of void *" >&5
13646 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13647 if test "${ac_cv_sizeof_void_p+set}" = set; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650 if test "$ac_cv_type_void_p" = yes; then
13651 # The cast to unsigned long works around a bug in the HP C Compiler
13652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13654 # This bug is HP SR number 8606223364.
13655 if test "$cross_compiling" = yes; then
13656 # Depending upon the size, compute the lo and hi bounds.
13657 cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h. */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 $ac_includes_default
13664 int
13665 main ()
13666 {
13667 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13668 test_array [0] = 0
13669
13670 ;
13671 return 0;
13672 }
13673 _ACEOF
13674 rm -f conftest.$ac_objext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676 (eval $ac_compile) 2>conftest.er1
13677 ac_status=$?
13678 grep -v '^ *+' conftest.er1 >conftest.err
13679 rm -f conftest.er1
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
13683 { ac_try='test -z "$ac_c_werror_flag"
13684 || test ! -s conftest.err'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest.$ac_objext'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13696 ac_lo=0 ac_mid=0
13697 while :; do
13698 cat >conftest.$ac_ext <<_ACEOF
13699 /* confdefs.h. */
13700 _ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13704 $ac_includes_default
13705 int
13706 main ()
13707 {
13708 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13709 test_array [0] = 0
13710
13711 ;
13712 return 0;
13713 }
13714 _ACEOF
13715 rm -f conftest.$ac_objext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13717 (eval $ac_compile) 2>conftest.er1
13718 ac_status=$?
13719 grep -v '^ *+' conftest.er1 >conftest.err
13720 rm -f conftest.er1
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -z "$ac_c_werror_flag"
13725 || test ! -s conftest.err'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest.$ac_objext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_hi=$ac_mid; break
13738 else
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 ac_lo=`expr $ac_mid + 1`
13743 if test $ac_lo -le $ac_mid; then
13744 ac_lo= ac_hi=
13745 break
13746 fi
13747 ac_mid=`expr 2 '*' $ac_mid + 1`
13748 fi
13749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13750 done
13751 else
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13754
13755 cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h. */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 $ac_includes_default
13762 int
13763 main ()
13764 {
13765 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13766 test_array [0] = 0
13767
13768 ;
13769 return 0;
13770 }
13771 _ACEOF
13772 rm -f conftest.$ac_objext
13773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13774 (eval $ac_compile) 2>conftest.er1
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -z "$ac_c_werror_flag"
13782 || test ! -s conftest.err'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest.$ac_objext'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 ac_hi=-1 ac_mid=-1
13795 while :; do
13796 cat >conftest.$ac_ext <<_ACEOF
13797 /* confdefs.h. */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 $ac_includes_default
13803 int
13804 main ()
13805 {
13806 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13807 test_array [0] = 0
13808
13809 ;
13810 return 0;
13811 }
13812 _ACEOF
13813 rm -f conftest.$ac_objext
13814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815 (eval $ac_compile) 2>conftest.er1
13816 ac_status=$?
13817 grep -v '^ *+' conftest.er1 >conftest.err
13818 rm -f conftest.er1
13819 cat conftest.err >&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } &&
13822 { ac_try='test -z "$ac_c_werror_flag"
13823 || test ! -s conftest.err'
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); }; } &&
13829 { ac_try='test -s conftest.$ac_objext'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13835 ac_lo=$ac_mid; break
13836 else
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13839
13840 ac_hi=`expr '(' $ac_mid ')' - 1`
13841 if test $ac_mid -le $ac_hi; then
13842 ac_lo= ac_hi=
13843 break
13844 fi
13845 ac_mid=`expr 2 '*' $ac_mid`
13846 fi
13847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13848 done
13849 else
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13852
13853 ac_lo= ac_hi=
13854 fi
13855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13856 fi
13857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13858 # Binary search between lo and hi bounds.
13859 while test "x$ac_lo" != "x$ac_hi"; do
13860 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13861 cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h. */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 $ac_includes_default
13868 int
13869 main ()
13870 {
13871 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13872 test_array [0] = 0
13873
13874 ;
13875 return 0;
13876 }
13877 _ACEOF
13878 rm -f conftest.$ac_objext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_c_werror_flag"
13888 || test ! -s conftest.err'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_hi=$ac_mid
13901 else
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13904
13905 ac_lo=`expr '(' $ac_mid ')' + 1`
13906 fi
13907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13908 done
13909 case $ac_lo in
13910 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13911 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13912 See \`config.log' for more details." >&5
13913 echo "$as_me: error: cannot compute sizeof (void *), 77
13914 See \`config.log' for more details." >&2;}
13915 { (exit 1); exit 1; }; } ;;
13916 esac
13917 else
13918 if test "$cross_compiling" = yes; then
13919 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13920 See \`config.log' for more details." >&5
13921 echo "$as_me: error: cannot run test program while cross compiling
13922 See \`config.log' for more details." >&2;}
13923 { (exit 1); exit 1; }; }
13924 else
13925 cat >conftest.$ac_ext <<_ACEOF
13926 /* confdefs.h. */
13927 _ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13931 $ac_includes_default
13932 long longval () { return (long) (sizeof (void *)); }
13933 unsigned long ulongval () { return (long) (sizeof (void *)); }
13934 #include <stdio.h>
13935 #include <stdlib.h>
13936 int
13937 main ()
13938 {
13939
13940 FILE *f = fopen ("conftest.val", "w");
13941 if (! f)
13942 exit (1);
13943 if (((long) (sizeof (void *))) < 0)
13944 {
13945 long i = longval ();
13946 if (i != ((long) (sizeof (void *))))
13947 exit (1);
13948 fprintf (f, "%ld\n", i);
13949 }
13950 else
13951 {
13952 unsigned long i = ulongval ();
13953 if (i != ((long) (sizeof (void *))))
13954 exit (1);
13955 fprintf (f, "%lu\n", i);
13956 }
13957 exit (ferror (f) || fclose (f) != 0);
13958
13959 ;
13960 return 0;
13961 }
13962 _ACEOF
13963 rm -f conftest$ac_exeext
13964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13965 (eval $ac_link) 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13974 ac_cv_sizeof_void_p=`cat conftest.val`
13975 else
13976 echo "$as_me: program exited with status $ac_status" >&5
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980 ( exit $ac_status )
13981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13982 See \`config.log' for more details." >&5
13983 echo "$as_me: error: cannot compute sizeof (void *), 77
13984 See \`config.log' for more details." >&2;}
13985 { (exit 1); exit 1; }; }
13986 fi
13987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13988 fi
13989 fi
13990 rm -f conftest.val
13991 else
13992 ac_cv_sizeof_void_p=0
13993 fi
13994 fi
13995 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13996 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13997 cat >>confdefs.h <<_ACEOF
13998 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13999 _ACEOF
14000
14001 ;;
14002 esac
14003
14004 # Lacking an uint64_t? Test size of long
14005 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14006 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14007 echo $ECHO_N "checking for long... $ECHO_C" >&6
14008 if test "${ac_cv_type_long+set}" = set; then
14009 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 else
14011 cat >conftest.$ac_ext <<_ACEOF
14012 /* confdefs.h. */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14017 $ac_includes_default
14018 int
14019 main ()
14020 {
14021 if ((long *) 0)
14022 return 0;
14023 if (sizeof (long))
14024 return 0;
14025 ;
14026 return 0;
14027 }
14028 _ACEOF
14029 rm -f conftest.$ac_objext
14030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031 (eval $ac_compile) 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
14038 { ac_try='test -z "$ac_c_werror_flag"
14039 || test ! -s conftest.err'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; } &&
14045 { ac_try='test -s conftest.$ac_objext'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 ac_cv_type_long=yes
14052 else
14053 echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14055
14056 ac_cv_type_long=no
14057 fi
14058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14059 fi
14060 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14061 echo "${ECHO_T}$ac_cv_type_long" >&6
14062
14063 echo "$as_me:$LINENO: checking size of long" >&5
14064 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14065 if test "${ac_cv_sizeof_long+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068 if test "$ac_cv_type_long" = yes; then
14069 # The cast to unsigned long works around a bug in the HP C Compiler
14070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14072 # This bug is HP SR number 8606223364.
14073 if test "$cross_compiling" = yes; then
14074 # Depending upon the size, compute the lo and hi bounds.
14075 cat >conftest.$ac_ext <<_ACEOF
14076 /* confdefs.h. */
14077 _ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14081 $ac_includes_default
14082 int
14083 main ()
14084 {
14085 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14086 test_array [0] = 0
14087
14088 ;
14089 return 0;
14090 }
14091 _ACEOF
14092 rm -f conftest.$ac_objext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14094 (eval $ac_compile) 2>conftest.er1
14095 ac_status=$?
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -z "$ac_c_werror_flag"
14102 || test ! -s conftest.err'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest.$ac_objext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_lo=0 ac_mid=0
14115 while :; do
14116 cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h. */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 $ac_includes_default
14123 int
14124 main ()
14125 {
14126 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14127 test_array [0] = 0
14128
14129 ;
14130 return 0;
14131 }
14132 _ACEOF
14133 rm -f conftest.$ac_objext
14134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14135 (eval $ac_compile) 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
14142 { ac_try='test -z "$ac_c_werror_flag"
14143 || test ! -s conftest.err'
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; } &&
14149 { ac_try='test -s conftest.$ac_objext'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; }; then
14155 ac_hi=$ac_mid; break
14156 else
14157 echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14159
14160 ac_lo=`expr $ac_mid + 1`
14161 if test $ac_lo -le $ac_mid; then
14162 ac_lo= ac_hi=
14163 break
14164 fi
14165 ac_mid=`expr 2 '*' $ac_mid + 1`
14166 fi
14167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14168 done
14169 else
14170 echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14172
14173 cat >conftest.$ac_ext <<_ACEOF
14174 /* confdefs.h. */
14175 _ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14179 $ac_includes_default
14180 int
14181 main ()
14182 {
14183 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14184 test_array [0] = 0
14185
14186 ;
14187 return 0;
14188 }
14189 _ACEOF
14190 rm -f conftest.$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192 (eval $ac_compile) 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -z "$ac_c_werror_flag"
14200 || test ! -s conftest.err'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest.$ac_objext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 ac_hi=-1 ac_mid=-1
14213 while :; do
14214 cat >conftest.$ac_ext <<_ACEOF
14215 /* confdefs.h. */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 $ac_includes_default
14221 int
14222 main ()
14223 {
14224 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14225 test_array [0] = 0
14226
14227 ;
14228 return 0;
14229 }
14230 _ACEOF
14231 rm -f conftest.$ac_objext
14232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233 (eval $ac_compile) 2>conftest.er1
14234 ac_status=$?
14235 grep -v '^ *+' conftest.er1 >conftest.err
14236 rm -f conftest.er1
14237 cat conftest.err >&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } &&
14240 { ac_try='test -z "$ac_c_werror_flag"
14241 || test ! -s conftest.err'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } &&
14247 { ac_try='test -s conftest.$ac_objext'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 ac_lo=$ac_mid; break
14254 else
14255 echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14257
14258 ac_hi=`expr '(' $ac_mid ')' - 1`
14259 if test $ac_mid -le $ac_hi; then
14260 ac_lo= ac_hi=
14261 break
14262 fi
14263 ac_mid=`expr 2 '*' $ac_mid`
14264 fi
14265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14266 done
14267 else
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271 ac_lo= ac_hi=
14272 fi
14273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14274 fi
14275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14276 # Binary search between lo and hi bounds.
14277 while test "x$ac_lo" != "x$ac_hi"; do
14278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14279 cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h. */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 $ac_includes_default
14286 int
14287 main ()
14288 {
14289 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14290 test_array [0] = 0
14291
14292 ;
14293 return 0;
14294 }
14295 _ACEOF
14296 rm -f conftest.$ac_objext
14297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14298 (eval $ac_compile) 2>conftest.er1
14299 ac_status=$?
14300 grep -v '^ *+' conftest.er1 >conftest.err
14301 rm -f conftest.er1
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
14305 { ac_try='test -z "$ac_c_werror_flag"
14306 || test ! -s conftest.err'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; } &&
14312 { ac_try='test -s conftest.$ac_objext'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14318 ac_hi=$ac_mid
14319 else
14320 echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.$ac_ext >&5
14322
14323 ac_lo=`expr '(' $ac_mid ')' + 1`
14324 fi
14325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14326 done
14327 case $ac_lo in
14328 ?*) ac_cv_sizeof_long=$ac_lo;;
14329 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14330 See \`config.log' for more details." >&5
14331 echo "$as_me: error: cannot compute sizeof (long), 77
14332 See \`config.log' for more details." >&2;}
14333 { (exit 1); exit 1; }; } ;;
14334 esac
14335 else
14336 if test "$cross_compiling" = yes; then
14337 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14338 See \`config.log' for more details." >&5
14339 echo "$as_me: error: cannot run test program while cross compiling
14340 See \`config.log' for more details." >&2;}
14341 { (exit 1); exit 1; }; }
14342 else
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 long longval () { return (long) (sizeof (long)); }
14351 unsigned long ulongval () { return (long) (sizeof (long)); }
14352 #include <stdio.h>
14353 #include <stdlib.h>
14354 int
14355 main ()
14356 {
14357
14358 FILE *f = fopen ("conftest.val", "w");
14359 if (! f)
14360 exit (1);
14361 if (((long) (sizeof (long))) < 0)
14362 {
14363 long i = longval ();
14364 if (i != ((long) (sizeof (long))))
14365 exit (1);
14366 fprintf (f, "%ld\n", i);
14367 }
14368 else
14369 {
14370 unsigned long i = ulongval ();
14371 if (i != ((long) (sizeof (long))))
14372 exit (1);
14373 fprintf (f, "%lu\n", i);
14374 }
14375 exit (ferror (f) || fclose (f) != 0);
14376
14377 ;
14378 return 0;
14379 }
14380 _ACEOF
14381 rm -f conftest$ac_exeext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14383 (eval $ac_link) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 ac_cv_sizeof_long=`cat conftest.val`
14393 else
14394 echo "$as_me: program exited with status $ac_status" >&5
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14397
14398 ( exit $ac_status )
14399 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14400 See \`config.log' for more details." >&5
14401 echo "$as_me: error: cannot compute sizeof (long), 77
14402 See \`config.log' for more details." >&2;}
14403 { (exit 1); exit 1; }; }
14404 fi
14405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14406 fi
14407 fi
14408 rm -f conftest.val
14409 else
14410 ac_cv_sizeof_long=0
14411 fi
14412 fi
14413 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14414 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14415 cat >>confdefs.h <<_ACEOF
14416 #define SIZEOF_LONG $ac_cv_sizeof_long
14417 _ACEOF
14418
14419 ;;
14420 esac
14421
14422 if test $acx_cv_header_stdint = stddef.h; then
14423 # Lacking a good header? Test size of everything and deduce all types.
14424 echo "$as_me:$LINENO: checking for int" >&5
14425 echo $ECHO_N "checking for int... $ECHO_C" >&6
14426 if test "${ac_cv_type_int+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429 cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h. */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14435 $ac_includes_default
14436 int
14437 main ()
14438 {
14439 if ((int *) 0)
14440 return 0;
14441 if (sizeof (int))
14442 return 0;
14443 ;
14444 return 0;
14445 }
14446 _ACEOF
14447 rm -f conftest.$ac_objext
14448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14449 (eval $ac_compile) 2>conftest.er1
14450 ac_status=$?
14451 grep -v '^ *+' conftest.er1 >conftest.err
14452 rm -f conftest.er1
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } &&
14456 { ac_try='test -z "$ac_c_werror_flag"
14457 || test ! -s conftest.err'
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14460 ac_status=$?
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; } &&
14463 { ac_try='test -s conftest.$ac_objext'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14466 ac_status=$?
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }; then
14469 ac_cv_type_int=yes
14470 else
14471 echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14473
14474 ac_cv_type_int=no
14475 fi
14476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14477 fi
14478 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14479 echo "${ECHO_T}$ac_cv_type_int" >&6
14480
14481 echo "$as_me:$LINENO: checking size of int" >&5
14482 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14483 if test "${ac_cv_sizeof_int+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486 if test "$ac_cv_type_int" = yes; then
14487 # The cast to unsigned long works around a bug in the HP C Compiler
14488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14489 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14490 # This bug is HP SR number 8606223364.
14491 if test "$cross_compiling" = yes; then
14492 # Depending upon the size, compute the lo and hi bounds.
14493 cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h. */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 $ac_includes_default
14500 int
14501 main ()
14502 {
14503 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14504 test_array [0] = 0
14505
14506 ;
14507 return 0;
14508 }
14509 _ACEOF
14510 rm -f conftest.$ac_objext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14512 (eval $ac_compile) 2>conftest.er1
14513 ac_status=$?
14514 grep -v '^ *+' conftest.er1 >conftest.err
14515 rm -f conftest.er1
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -z "$ac_c_werror_flag"
14520 || test ! -s conftest.err'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; } &&
14526 { ac_try='test -s conftest.$ac_objext'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_lo=0 ac_mid=0
14533 while :; do
14534 cat >conftest.$ac_ext <<_ACEOF
14535 /* confdefs.h. */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14540 $ac_includes_default
14541 int
14542 main ()
14543 {
14544 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14545 test_array [0] = 0
14546
14547 ;
14548 return 0;
14549 }
14550 _ACEOF
14551 rm -f conftest.$ac_objext
14552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14553 (eval $ac_compile) 2>conftest.er1
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -z "$ac_c_werror_flag"
14561 || test ! -s conftest.err'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; } &&
14567 { ac_try='test -s conftest.$ac_objext'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 ac_hi=$ac_mid; break
14574 else
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14577
14578 ac_lo=`expr $ac_mid + 1`
14579 if test $ac_lo -le $ac_mid; then
14580 ac_lo= ac_hi=
14581 break
14582 fi
14583 ac_mid=`expr 2 '*' $ac_mid + 1`
14584 fi
14585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14586 done
14587 else
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14590
14591 cat >conftest.$ac_ext <<_ACEOF
14592 /* confdefs.h. */
14593 _ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 $ac_includes_default
14598 int
14599 main ()
14600 {
14601 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14602 test_array [0] = 0
14603
14604 ;
14605 return 0;
14606 }
14607 _ACEOF
14608 rm -f conftest.$ac_objext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>conftest.er1
14611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } &&
14617 { ac_try='test -z "$ac_c_werror_flag"
14618 || test ! -s conftest.err'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; } &&
14624 { ac_try='test -s conftest.$ac_objext'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14627 ac_status=$?
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; }; then
14630 ac_hi=-1 ac_mid=-1
14631 while :; do
14632 cat >conftest.$ac_ext <<_ACEOF
14633 /* confdefs.h. */
14634 _ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638 $ac_includes_default
14639 int
14640 main ()
14641 {
14642 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14643 test_array [0] = 0
14644
14645 ;
14646 return 0;
14647 }
14648 _ACEOF
14649 rm -f conftest.$ac_objext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>conftest.er1
14652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try='test -z "$ac_c_werror_flag"
14659 || test ! -s conftest.err'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest.$ac_objext'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14671 ac_lo=$ac_mid; break
14672 else
14673 echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14675
14676 ac_hi=`expr '(' $ac_mid ')' - 1`
14677 if test $ac_mid -le $ac_hi; then
14678 ac_lo= ac_hi=
14679 break
14680 fi
14681 ac_mid=`expr 2 '*' $ac_mid`
14682 fi
14683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14684 done
14685 else
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689 ac_lo= ac_hi=
14690 fi
14691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14692 fi
14693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14694 # Binary search between lo and hi bounds.
14695 while test "x$ac_lo" != "x$ac_hi"; do
14696 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14697 cat >conftest.$ac_ext <<_ACEOF
14698 /* confdefs.h. */
14699 _ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h. */
14703 $ac_includes_default
14704 int
14705 main ()
14706 {
14707 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14708 test_array [0] = 0
14709
14710 ;
14711 return 0;
14712 }
14713 _ACEOF
14714 rm -f conftest.$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716 (eval $ac_compile) 2>conftest.er1
14717 ac_status=$?
14718 grep -v '^ *+' conftest.er1 >conftest.err
14719 rm -f conftest.er1
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } &&
14723 { ac_try='test -z "$ac_c_werror_flag"
14724 || test ! -s conftest.err'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; } &&
14730 { ac_try='test -s conftest.$ac_objext'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14736 ac_hi=$ac_mid
14737 else
14738 echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.$ac_ext >&5
14740
14741 ac_lo=`expr '(' $ac_mid ')' + 1`
14742 fi
14743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14744 done
14745 case $ac_lo in
14746 ?*) ac_cv_sizeof_int=$ac_lo;;
14747 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14748 See \`config.log' for more details." >&5
14749 echo "$as_me: error: cannot compute sizeof (int), 77
14750 See \`config.log' for more details." >&2;}
14751 { (exit 1); exit 1; }; } ;;
14752 esac
14753 else
14754 if test "$cross_compiling" = yes; then
14755 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14756 See \`config.log' for more details." >&5
14757 echo "$as_me: error: cannot run test program while cross compiling
14758 See \`config.log' for more details." >&2;}
14759 { (exit 1); exit 1; }; }
14760 else
14761 cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h. */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14767 $ac_includes_default
14768 long longval () { return (long) (sizeof (int)); }
14769 unsigned long ulongval () { return (long) (sizeof (int)); }
14770 #include <stdio.h>
14771 #include <stdlib.h>
14772 int
14773 main ()
14774 {
14775
14776 FILE *f = fopen ("conftest.val", "w");
14777 if (! f)
14778 exit (1);
14779 if (((long) (sizeof (int))) < 0)
14780 {
14781 long i = longval ();
14782 if (i != ((long) (sizeof (int))))
14783 exit (1);
14784 fprintf (f, "%ld\n", i);
14785 }
14786 else
14787 {
14788 unsigned long i = ulongval ();
14789 if (i != ((long) (sizeof (int))))
14790 exit (1);
14791 fprintf (f, "%lu\n", i);
14792 }
14793 exit (ferror (f) || fclose (f) != 0);
14794
14795 ;
14796 return 0;
14797 }
14798 _ACEOF
14799 rm -f conftest$ac_exeext
14800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14801 (eval $ac_link) 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_int=`cat conftest.val`
14811 else
14812 echo "$as_me: program exited with status $ac_status" >&5
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14815
14816 ( exit $ac_status )
14817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14818 See \`config.log' for more details." >&5
14819 echo "$as_me: error: cannot compute sizeof (int), 77
14820 See \`config.log' for more details." >&2;}
14821 { (exit 1); exit 1; }; }
14822 fi
14823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14824 fi
14825 fi
14826 rm -f conftest.val
14827 else
14828 ac_cv_sizeof_int=0
14829 fi
14830 fi
14831 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14832 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14833 cat >>confdefs.h <<_ACEOF
14834 #define SIZEOF_INT $ac_cv_sizeof_int
14835 _ACEOF
14836
14837
14838 echo "$as_me:$LINENO: checking for short" >&5
14839 echo $ECHO_N "checking for short... $ECHO_C" >&6
14840 if test "${ac_cv_type_short+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 $ac_includes_default
14850 int
14851 main ()
14852 {
14853 if ((short *) 0)
14854 return 0;
14855 if (sizeof (short))
14856 return 0;
14857 ;
14858 return 0;
14859 }
14860 _ACEOF
14861 rm -f conftest.$ac_objext
14862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14863 (eval $ac_compile) 2>conftest.er1
14864 ac_status=$?
14865 grep -v '^ *+' conftest.er1 >conftest.err
14866 rm -f conftest.er1
14867 cat conftest.err >&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } &&
14870 { ac_try='test -z "$ac_c_werror_flag"
14871 || test ! -s conftest.err'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; } &&
14877 { ac_try='test -s conftest.$ac_objext'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14880 ac_status=$?
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; }; then
14883 ac_cv_type_short=yes
14884 else
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14887
14888 ac_cv_type_short=no
14889 fi
14890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14891 fi
14892 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14893 echo "${ECHO_T}$ac_cv_type_short" >&6
14894
14895 echo "$as_me:$LINENO: checking size of short" >&5
14896 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14897 if test "${ac_cv_sizeof_short+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900 if test "$ac_cv_type_short" = yes; then
14901 # The cast to unsigned long works around a bug in the HP C Compiler
14902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14904 # This bug is HP SR number 8606223364.
14905 if test "$cross_compiling" = yes; then
14906 # Depending upon the size, compute the lo and hi bounds.
14907 cat >conftest.$ac_ext <<_ACEOF
14908 /* confdefs.h. */
14909 _ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14913 $ac_includes_default
14914 int
14915 main ()
14916 {
14917 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14918 test_array [0] = 0
14919
14920 ;
14921 return 0;
14922 }
14923 _ACEOF
14924 rm -f conftest.$ac_objext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14926 (eval $ac_compile) 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } &&
14933 { ac_try='test -z "$ac_c_werror_flag"
14934 || test ! -s conftest.err'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; } &&
14940 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14946 ac_lo=0 ac_mid=0
14947 while :; do
14948 cat >conftest.$ac_ext <<_ACEOF
14949 /* confdefs.h. */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14954 $ac_includes_default
14955 int
14956 main ()
14957 {
14958 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14959 test_array [0] = 0
14960
14961 ;
14962 return 0;
14963 }
14964 _ACEOF
14965 rm -f conftest.$ac_objext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967 (eval $ac_compile) 2>conftest.er1
14968 ac_status=$?
14969 grep -v '^ *+' conftest.er1 >conftest.err
14970 rm -f conftest.er1
14971 cat conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try='test -z "$ac_c_werror_flag"
14975 || test ! -s conftest.err'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try='test -s conftest.$ac_objext'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14987 ac_hi=$ac_mid; break
14988 else
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14991
14992 ac_lo=`expr $ac_mid + 1`
14993 if test $ac_lo -le $ac_mid; then
14994 ac_lo= ac_hi=
14995 break
14996 fi
14997 ac_mid=`expr 2 '*' $ac_mid + 1`
14998 fi
14999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15000 done
15001 else
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005 cat >conftest.$ac_ext <<_ACEOF
15006 /* confdefs.h. */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15011 $ac_includes_default
15012 int
15013 main ()
15014 {
15015 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15016 test_array [0] = 0
15017
15018 ;
15019 return 0;
15020 }
15021 _ACEOF
15022 rm -f conftest.$ac_objext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>conftest.er1
15025 ac_status=$?
15026 grep -v '^ *+' conftest.er1 >conftest.err
15027 rm -f conftest.er1
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
15031 { ac_try='test -z "$ac_c_werror_flag"
15032 || test ! -s conftest.err'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; } &&
15038 { ac_try='test -s conftest.$ac_objext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_hi=-1 ac_mid=-1
15045 while :; do
15046 cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h. */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 $ac_includes_default
15053 int
15054 main ()
15055 {
15056 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15057 test_array [0] = 0
15058
15059 ;
15060 return 0;
15061 }
15062 _ACEOF
15063 rm -f conftest.$ac_objext
15064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15065 (eval $ac_compile) 2>conftest.er1
15066 ac_status=$?
15067 grep -v '^ *+' conftest.er1 >conftest.err
15068 rm -f conftest.er1
15069 cat conftest.err >&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
15072 { ac_try='test -z "$ac_c_werror_flag"
15073 || test ! -s conftest.err'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest.$ac_objext'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 ac_lo=$ac_mid; break
15086 else
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090 ac_hi=`expr '(' $ac_mid ')' - 1`
15091 if test $ac_mid -le $ac_hi; then
15092 ac_lo= ac_hi=
15093 break
15094 fi
15095 ac_mid=`expr 2 '*' $ac_mid`
15096 fi
15097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15098 done
15099 else
15100 echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103 ac_lo= ac_hi=
15104 fi
15105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15106 fi
15107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15108 # Binary search between lo and hi bounds.
15109 while test "x$ac_lo" != "x$ac_hi"; do
15110 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15111 cat >conftest.$ac_ext <<_ACEOF
15112 /* confdefs.h. */
15113 _ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h. */
15117 $ac_includes_default
15118 int
15119 main ()
15120 {
15121 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15122 test_array [0] = 0
15123
15124 ;
15125 return 0;
15126 }
15127 _ACEOF
15128 rm -f conftest.$ac_objext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15130 (eval $ac_compile) 2>conftest.er1
15131 ac_status=$?
15132 grep -v '^ *+' conftest.er1 >conftest.err
15133 rm -f conftest.er1
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } &&
15137 { ac_try='test -z "$ac_c_werror_flag"
15138 || test ! -s conftest.err'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try='test -s conftest.$ac_objext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 ac_hi=$ac_mid
15151 else
15152 echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154
15155 ac_lo=`expr '(' $ac_mid ')' + 1`
15156 fi
15157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15158 done
15159 case $ac_lo in
15160 ?*) ac_cv_sizeof_short=$ac_lo;;
15161 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15162 See \`config.log' for more details." >&5
15163 echo "$as_me: error: cannot compute sizeof (short), 77
15164 See \`config.log' for more details." >&2;}
15165 { (exit 1); exit 1; }; } ;;
15166 esac
15167 else
15168 if test "$cross_compiling" = yes; then
15169 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15170 See \`config.log' for more details." >&5
15171 echo "$as_me: error: cannot run test program while cross compiling
15172 See \`config.log' for more details." >&2;}
15173 { (exit 1); exit 1; }; }
15174 else
15175 cat >conftest.$ac_ext <<_ACEOF
15176 /* confdefs.h. */
15177 _ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 $ac_includes_default
15182 long longval () { return (long) (sizeof (short)); }
15183 unsigned long ulongval () { return (long) (sizeof (short)); }
15184 #include <stdio.h>
15185 #include <stdlib.h>
15186 int
15187 main ()
15188 {
15189
15190 FILE *f = fopen ("conftest.val", "w");
15191 if (! f)
15192 exit (1);
15193 if (((long) (sizeof (short))) < 0)
15194 {
15195 long i = longval ();
15196 if (i != ((long) (sizeof (short))))
15197 exit (1);
15198 fprintf (f, "%ld\n", i);
15199 }
15200 else
15201 {
15202 unsigned long i = ulongval ();
15203 if (i != ((long) (sizeof (short))))
15204 exit (1);
15205 fprintf (f, "%lu\n", i);
15206 }
15207 exit (ferror (f) || fclose (f) != 0);
15208
15209 ;
15210 return 0;
15211 }
15212 _ACEOF
15213 rm -f conftest$ac_exeext
15214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15215 (eval $ac_link) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15224 ac_cv_sizeof_short=`cat conftest.val`
15225 else
15226 echo "$as_me: program exited with status $ac_status" >&5
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15229
15230 ( exit $ac_status )
15231 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15232 See \`config.log' for more details." >&5
15233 echo "$as_me: error: cannot compute sizeof (short), 77
15234 See \`config.log' for more details." >&2;}
15235 { (exit 1); exit 1; }; }
15236 fi
15237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15238 fi
15239 fi
15240 rm -f conftest.val
15241 else
15242 ac_cv_sizeof_short=0
15243 fi
15244 fi
15245 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15246 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15247 cat >>confdefs.h <<_ACEOF
15248 #define SIZEOF_SHORT $ac_cv_sizeof_short
15249 _ACEOF
15250
15251
15252 echo "$as_me:$LINENO: checking for char" >&5
15253 echo $ECHO_N "checking for char... $ECHO_C" >&6
15254 if test "${ac_cv_type_char+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257 cat >conftest.$ac_ext <<_ACEOF
15258 /* confdefs.h. */
15259 _ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h. */
15263 $ac_includes_default
15264 int
15265 main ()
15266 {
15267 if ((char *) 0)
15268 return 0;
15269 if (sizeof (char))
15270 return 0;
15271 ;
15272 return 0;
15273 }
15274 _ACEOF
15275 rm -f conftest.$ac_objext
15276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15277 (eval $ac_compile) 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -z "$ac_c_werror_flag"
15285 || test ! -s conftest.err'
15286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287 (eval $ac_try) 2>&5
15288 ac_status=$?
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); }; } &&
15291 { ac_try='test -s conftest.$ac_objext'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15297 ac_cv_type_char=yes
15298 else
15299 echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15301
15302 ac_cv_type_char=no
15303 fi
15304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15305 fi
15306 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15307 echo "${ECHO_T}$ac_cv_type_char" >&6
15308
15309 echo "$as_me:$LINENO: checking size of char" >&5
15310 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15311 if test "${ac_cv_sizeof_char+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 else
15314 if test "$ac_cv_type_char" = yes; then
15315 # The cast to unsigned long works around a bug in the HP C Compiler
15316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15318 # This bug is HP SR number 8606223364.
15319 if test "$cross_compiling" = yes; then
15320 # Depending upon the size, compute the lo and hi bounds.
15321 cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 $ac_includes_default
15328 int
15329 main ()
15330 {
15331 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15332 test_array [0] = 0
15333
15334 ;
15335 return 0;
15336 }
15337 _ACEOF
15338 rm -f conftest.$ac_objext
15339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 (eval $ac_compile) 2>conftest.er1
15341 ac_status=$?
15342 grep -v '^ *+' conftest.er1 >conftest.err
15343 rm -f conftest.er1
15344 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
15347 { ac_try='test -z "$ac_c_werror_flag"
15348 || test ! -s conftest.err'
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15351 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; } &&
15354 { ac_try='test -s conftest.$ac_objext'
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 ac_lo=0 ac_mid=0
15361 while :; do
15362 cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h. */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 $ac_includes_default
15369 int
15370 main ()
15371 {
15372 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15373 test_array [0] = 0
15374
15375 ;
15376 return 0;
15377 }
15378 _ACEOF
15379 rm -f conftest.$ac_objext
15380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15381 (eval $ac_compile) 2>conftest.er1
15382 ac_status=$?
15383 grep -v '^ *+' conftest.er1 >conftest.err
15384 rm -f conftest.er1
15385 cat conftest.err >&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } &&
15388 { ac_try='test -z "$ac_c_werror_flag"
15389 || test ! -s conftest.err'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15392 ac_status=$?
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; } &&
15395 { ac_try='test -s conftest.$ac_objext'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15401 ac_hi=$ac_mid; break
15402 else
15403 echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15405
15406 ac_lo=`expr $ac_mid + 1`
15407 if test $ac_lo -le $ac_mid; then
15408 ac_lo= ac_hi=
15409 break
15410 fi
15411 ac_mid=`expr 2 '*' $ac_mid + 1`
15412 fi
15413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15414 done
15415 else
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15418
15419 cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h. */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 $ac_includes_default
15426 int
15427 main ()
15428 {
15429 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15430 test_array [0] = 0
15431
15432 ;
15433 return 0;
15434 }
15435 _ACEOF
15436 rm -f conftest.$ac_objext
15437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15438 (eval $ac_compile) 2>conftest.er1
15439 ac_status=$?
15440 grep -v '^ *+' conftest.er1 >conftest.err
15441 rm -f conftest.er1
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
15445 { ac_try='test -z "$ac_c_werror_flag"
15446 || test ! -s conftest.err'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest.$ac_objext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_hi=-1 ac_mid=-1
15459 while :; do
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h. */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466 $ac_includes_default
15467 int
15468 main ()
15469 {
15470 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15471 test_array [0] = 0
15472
15473 ;
15474 return 0;
15475 }
15476 _ACEOF
15477 rm -f conftest.$ac_objext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479 (eval $ac_compile) 2>conftest.er1
15480 ac_status=$?
15481 grep -v '^ *+' conftest.er1 >conftest.err
15482 rm -f conftest.er1
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } &&
15486 { ac_try='test -z "$ac_c_werror_flag"
15487 || test ! -s conftest.err'
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; } &&
15493 { ac_try='test -s conftest.$ac_objext'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; }; then
15499 ac_lo=$ac_mid; break
15500 else
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15503
15504 ac_hi=`expr '(' $ac_mid ')' - 1`
15505 if test $ac_mid -le $ac_hi; then
15506 ac_lo= ac_hi=
15507 break
15508 fi
15509 ac_mid=`expr 2 '*' $ac_mid`
15510 fi
15511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15512 done
15513 else
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15516
15517 ac_lo= ac_hi=
15518 fi
15519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15520 fi
15521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15522 # Binary search between lo and hi bounds.
15523 while test "x$ac_lo" != "x$ac_hi"; do
15524 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h. */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 $ac_includes_default
15532 int
15533 main ()
15534 {
15535 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15536 test_array [0] = 0
15537
15538 ;
15539 return 0;
15540 }
15541 _ACEOF
15542 rm -f conftest.$ac_objext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544 (eval $ac_compile) 2>conftest.er1
15545 ac_status=$?
15546 grep -v '^ *+' conftest.er1 >conftest.err
15547 rm -f conftest.er1
15548 cat conftest.err >&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } &&
15551 { ac_try='test -z "$ac_c_werror_flag"
15552 || test ! -s conftest.err'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; } &&
15558 { ac_try='test -s conftest.$ac_objext'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
15564 ac_hi=$ac_mid
15565 else
15566 echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15568
15569 ac_lo=`expr '(' $ac_mid ')' + 1`
15570 fi
15571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15572 done
15573 case $ac_lo in
15574 ?*) ac_cv_sizeof_char=$ac_lo;;
15575 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15576 See \`config.log' for more details." >&5
15577 echo "$as_me: error: cannot compute sizeof (char), 77
15578 See \`config.log' for more details." >&2;}
15579 { (exit 1); exit 1; }; } ;;
15580 esac
15581 else
15582 if test "$cross_compiling" = yes; then
15583 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15584 See \`config.log' for more details." >&5
15585 echo "$as_me: error: cannot run test program while cross compiling
15586 See \`config.log' for more details." >&2;}
15587 { (exit 1); exit 1; }; }
15588 else
15589 cat >conftest.$ac_ext <<_ACEOF
15590 /* confdefs.h. */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h. */
15595 $ac_includes_default
15596 long longval () { return (long) (sizeof (char)); }
15597 unsigned long ulongval () { return (long) (sizeof (char)); }
15598 #include <stdio.h>
15599 #include <stdlib.h>
15600 int
15601 main ()
15602 {
15603
15604 FILE *f = fopen ("conftest.val", "w");
15605 if (! f)
15606 exit (1);
15607 if (((long) (sizeof (char))) < 0)
15608 {
15609 long i = longval ();
15610 if (i != ((long) (sizeof (char))))
15611 exit (1);
15612 fprintf (f, "%ld\n", i);
15613 }
15614 else
15615 {
15616 unsigned long i = ulongval ();
15617 if (i != ((long) (sizeof (char))))
15618 exit (1);
15619 fprintf (f, "%lu\n", i);
15620 }
15621 exit (ferror (f) || fclose (f) != 0);
15622
15623 ;
15624 return 0;
15625 }
15626 _ACEOF
15627 rm -f conftest$ac_exeext
15628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15629 (eval $ac_link) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 ac_cv_sizeof_char=`cat conftest.val`
15639 else
15640 echo "$as_me: program exited with status $ac_status" >&5
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 ( exit $ac_status )
15645 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15646 See \`config.log' for more details." >&5
15647 echo "$as_me: error: cannot compute sizeof (char), 77
15648 See \`config.log' for more details." >&2;}
15649 { (exit 1); exit 1; }; }
15650 fi
15651 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15652 fi
15653 fi
15654 rm -f conftest.val
15655 else
15656 ac_cv_sizeof_char=0
15657 fi
15658 fi
15659 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15660 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15661 cat >>confdefs.h <<_ACEOF
15662 #define SIZEOF_CHAR $ac_cv_sizeof_char
15663 _ACEOF
15664
15665
15666
15667 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15668 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15669 case "$ac_cv_sizeof_char" in
15670 1) acx_cv_type_int8_t=char ;;
15671 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15672 echo "$as_me: error: no 8-bit type" >&2;}
15673 { (exit please report a bug); exit please report a bug; }; }
15674 esac
15675 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15676 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15677
15678 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15679 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15680 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15681 2:*) acx_cv_type_int16_t=int ;;
15682 *:2) acx_cv_type_int16_t=short ;;
15683 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15684 echo "$as_me: error: no 16-bit type" >&2;}
15685 { (exit please report a bug); exit please report a bug; }; }
15686 esac
15687 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15688 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15689
15690 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15691 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15692 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15693 4:*) acx_cv_type_int32_t=int ;;
15694 *:4) acx_cv_type_int32_t=long ;;
15695 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15696 echo "$as_me: error: no 32-bit type" >&2;}
15697 { (exit please report a bug); exit please report a bug; }; }
15698 esac
15699 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15700 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15701 fi
15702
15703 # These tests are here to make the output prettier
15704
15705 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15706 case "$ac_cv_sizeof_long" in
15707 8) acx_cv_type_int64_t=long ;;
15708 esac
15709 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15710 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15711 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15712 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15713 fi
15714
15715 # Now we can use the above types
15716
15717 if test "$ac_cv_type_uintptr_t" != yes; then
15718 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15719 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15720 case $ac_cv_sizeof_void_p in
15721 2) acx_cv_type_intptr_t=int16_t ;;
15722 4) acx_cv_type_intptr_t=int32_t ;;
15723 8) acx_cv_type_intptr_t=int64_t ;;
15724 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15725 echo "$as_me: error: no equivalent for intptr_t" >&2;}
15726 { (exit please report a bug); exit please report a bug; }; }
15727 esac
15728 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15729 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15730 fi
15731
15732 # ----------------- done all checks, emit header -------------
15733 ac_config_commands="$ac_config_commands gdb_stdint.h"
15734
15735
15736
15737
15738 # ------------------------- #
15739 # Checks for declarations. #
15740 # ------------------------- #
15741
15742 echo "$as_me:$LINENO: checking whether free is declared" >&5
15743 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
15744 if test "${ac_cv_have_decl_free+set}" = set; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15746 else
15747 cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h. */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 $ac_includes_default
15754 int
15755 main ()
15756 {
15757 #ifndef free
15758 char *p = (char *) free;
15759 #endif
15760
15761 ;
15762 return 0;
15763 }
15764 _ACEOF
15765 rm -f conftest.$ac_objext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15767 (eval $ac_compile) 2>conftest.er1
15768 ac_status=$?
15769 grep -v '^ *+' conftest.er1 >conftest.err
15770 rm -f conftest.er1
15771 cat conftest.err >&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); } &&
15774 { ac_try='test -z "$ac_c_werror_flag"
15775 || test ! -s conftest.err'
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15778 ac_status=$?
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; } &&
15781 { ac_try='test -s conftest.$ac_objext'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }; then
15787 ac_cv_have_decl_free=yes
15788 else
15789 echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15791
15792 ac_cv_have_decl_free=no
15793 fi
15794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15795 fi
15796 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
15797 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
15798 if test $ac_cv_have_decl_free = yes; then
15799
15800 cat >>confdefs.h <<_ACEOF
15801 #define HAVE_DECL_FREE 1
15802 _ACEOF
15803
15804
15805 else
15806 cat >>confdefs.h <<_ACEOF
15807 #define HAVE_DECL_FREE 0
15808 _ACEOF
15809
15810
15811 fi
15812 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
15813 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
15814 if test "${ac_cv_have_decl_malloc+set}" = set; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 else
15817 cat >conftest.$ac_ext <<_ACEOF
15818 /* confdefs.h. */
15819 _ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h. */
15823 $ac_includes_default
15824 int
15825 main ()
15826 {
15827 #ifndef malloc
15828 char *p = (char *) malloc;
15829 #endif
15830
15831 ;
15832 return 0;
15833 }
15834 _ACEOF
15835 rm -f conftest.$ac_objext
15836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15837 (eval $ac_compile) 2>conftest.er1
15838 ac_status=$?
15839 grep -v '^ *+' conftest.er1 >conftest.err
15840 rm -f conftest.er1
15841 cat conftest.err >&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
15844 { ac_try='test -z "$ac_c_werror_flag"
15845 || test ! -s conftest.err'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest.$ac_objext'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then
15857 ac_cv_have_decl_malloc=yes
15858 else
15859 echo "$as_me: failed program was:" >&5
15860 sed 's/^/| /' conftest.$ac_ext >&5
15861
15862 ac_cv_have_decl_malloc=no
15863 fi
15864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15865 fi
15866 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
15867 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
15868 if test $ac_cv_have_decl_malloc = yes; then
15869
15870 cat >>confdefs.h <<_ACEOF
15871 #define HAVE_DECL_MALLOC 1
15872 _ACEOF
15873
15874
15875 else
15876 cat >>confdefs.h <<_ACEOF
15877 #define HAVE_DECL_MALLOC 0
15878 _ACEOF
15879
15880
15881 fi
15882 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
15883 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
15884 if test "${ac_cv_have_decl_realloc+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887 cat >conftest.$ac_ext <<_ACEOF
15888 /* confdefs.h. */
15889 _ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 $ac_includes_default
15894 int
15895 main ()
15896 {
15897 #ifndef realloc
15898 char *p = (char *) realloc;
15899 #endif
15900
15901 ;
15902 return 0;
15903 }
15904 _ACEOF
15905 rm -f conftest.$ac_objext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907 (eval $ac_compile) 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -z "$ac_c_werror_flag"
15915 || test ! -s conftest.err'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15918 ac_status=$?
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try='test -s conftest.$ac_objext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 ac_cv_have_decl_realloc=yes
15928 else
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15931
15932 ac_cv_have_decl_realloc=no
15933 fi
15934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15935 fi
15936 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
15937 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
15938 if test $ac_cv_have_decl_realloc = yes; then
15939
15940 cat >>confdefs.h <<_ACEOF
15941 #define HAVE_DECL_REALLOC 1
15942 _ACEOF
15943
15944
15945 else
15946 cat >>confdefs.h <<_ACEOF
15947 #define HAVE_DECL_REALLOC 0
15948 _ACEOF
15949
15950
15951 fi
15952
15953
15954 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
15955 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
15956 if test "${ac_cv_have_decl_strerror+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959 cat >conftest.$ac_ext <<_ACEOF
15960 /* confdefs.h. */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15965 $ac_includes_default
15966 int
15967 main ()
15968 {
15969 #ifndef strerror
15970 char *p = (char *) strerror;
15971 #endif
15972
15973 ;
15974 return 0;
15975 }
15976 _ACEOF
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>conftest.er1
15980 ac_status=$?
15981 grep -v '^ *+' conftest.er1 >conftest.err
15982 rm -f conftest.er1
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
15986 { ac_try='test -z "$ac_c_werror_flag"
15987 || test ! -s conftest.err'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; } &&
15993 { ac_try='test -s conftest.$ac_objext'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; }; then
15999 ac_cv_have_decl_strerror=yes
16000 else
16001 echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16003
16004 ac_cv_have_decl_strerror=no
16005 fi
16006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16007 fi
16008 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16009 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
16010 if test $ac_cv_have_decl_strerror = yes; then
16011
16012 cat >>confdefs.h <<_ACEOF
16013 #define HAVE_DECL_STRERROR 1
16014 _ACEOF
16015
16016
16017 else
16018 cat >>confdefs.h <<_ACEOF
16019 #define HAVE_DECL_STRERROR 0
16020 _ACEOF
16021
16022
16023 fi
16024 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16025 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16026 if test "${ac_cv_have_decl_strstr+set}" = set; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 else
16029 cat >conftest.$ac_ext <<_ACEOF
16030 /* confdefs.h. */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16035 $ac_includes_default
16036 int
16037 main ()
16038 {
16039 #ifndef strstr
16040 char *p = (char *) strstr;
16041 #endif
16042
16043 ;
16044 return 0;
16045 }
16046 _ACEOF
16047 rm -f conftest.$ac_objext
16048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16049 (eval $ac_compile) 2>conftest.er1
16050 ac_status=$?
16051 grep -v '^ *+' conftest.er1 >conftest.err
16052 rm -f conftest.er1
16053 cat conftest.err >&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } &&
16056 { ac_try='test -z "$ac_c_werror_flag"
16057 || test ! -s conftest.err'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; } &&
16063 { ac_try='test -s conftest.$ac_objext'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16066 ac_status=$?
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; }; then
16069 ac_cv_have_decl_strstr=yes
16070 else
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074 ac_cv_have_decl_strstr=no
16075 fi
16076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16077 fi
16078 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16079 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
16080 if test $ac_cv_have_decl_strstr = yes; then
16081
16082 cat >>confdefs.h <<_ACEOF
16083 #define HAVE_DECL_STRSTR 1
16084 _ACEOF
16085
16086
16087 else
16088 cat >>confdefs.h <<_ACEOF
16089 #define HAVE_DECL_STRSTR 0
16090 _ACEOF
16091
16092
16093 fi
16094
16095
16096 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16097 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
16098 if test "${ac_cv_have_decl_getopt+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101 cat >conftest.$ac_ext <<_ACEOF
16102 /* confdefs.h. */
16103 _ACEOF
16104 cat confdefs.h >>conftest.$ac_ext
16105 cat >>conftest.$ac_ext <<_ACEOF
16106 /* end confdefs.h. */
16107 $ac_includes_default
16108 int
16109 main ()
16110 {
16111 #ifndef getopt
16112 char *p = (char *) getopt;
16113 #endif
16114
16115 ;
16116 return 0;
16117 }
16118 _ACEOF
16119 rm -f conftest.$ac_objext
16120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121 (eval $ac_compile) 2>conftest.er1
16122 ac_status=$?
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
16128 { ac_try='test -z "$ac_c_werror_flag"
16129 || test ! -s conftest.err'
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; } &&
16135 { ac_try='test -s conftest.$ac_objext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_cv_have_decl_getopt=yes
16142 else
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16145
16146 ac_cv_have_decl_getopt=no
16147 fi
16148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16149 fi
16150 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16151 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
16152 if test $ac_cv_have_decl_getopt = yes; then
16153
16154 cat >>confdefs.h <<_ACEOF
16155 #define HAVE_DECL_GETOPT 1
16156 _ACEOF
16157
16158
16159 else
16160 cat >>confdefs.h <<_ACEOF
16161 #define HAVE_DECL_GETOPT 0
16162 _ACEOF
16163
16164
16165 fi
16166 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16167 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
16168 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 else
16171 cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h. */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 $ac_includes_default
16178 int
16179 main ()
16180 {
16181 #ifndef snprintf
16182 char *p = (char *) snprintf;
16183 #endif
16184
16185 ;
16186 return 0;
16187 }
16188 _ACEOF
16189 rm -f conftest.$ac_objext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16191 (eval $ac_compile) 2>conftest.er1
16192 ac_status=$?
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
16198 { ac_try='test -z "$ac_c_werror_flag"
16199 || test ! -s conftest.err'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; } &&
16205 { ac_try='test -s conftest.$ac_objext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ac_cv_have_decl_snprintf=yes
16212 else
16213 echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16215
16216 ac_cv_have_decl_snprintf=no
16217 fi
16218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16219 fi
16220 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16221 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
16222 if test $ac_cv_have_decl_snprintf = yes; then
16223
16224 cat >>confdefs.h <<_ACEOF
16225 #define HAVE_DECL_SNPRINTF 1
16226 _ACEOF
16227
16228
16229 else
16230 cat >>confdefs.h <<_ACEOF
16231 #define HAVE_DECL_SNPRINTF 0
16232 _ACEOF
16233
16234
16235 fi
16236 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16237 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16238 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 else
16241 cat >conftest.$ac_ext <<_ACEOF
16242 /* confdefs.h. */
16243 _ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16247 $ac_includes_default
16248 int
16249 main ()
16250 {
16251 #ifndef vsnprintf
16252 char *p = (char *) vsnprintf;
16253 #endif
16254
16255 ;
16256 return 0;
16257 }
16258 _ACEOF
16259 rm -f conftest.$ac_objext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16261 (eval $ac_compile) 2>conftest.er1
16262 ac_status=$?
16263 grep -v '^ *+' conftest.er1 >conftest.err
16264 rm -f conftest.er1
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -z "$ac_c_werror_flag"
16269 || test ! -s conftest.err'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; } &&
16275 { ac_try='test -s conftest.$ac_objext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_cv_have_decl_vsnprintf=yes
16282 else
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16285
16286 ac_cv_have_decl_vsnprintf=no
16287 fi
16288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16289 fi
16290 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16291 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
16292 if test $ac_cv_have_decl_vsnprintf = yes; then
16293
16294 cat >>confdefs.h <<_ACEOF
16295 #define HAVE_DECL_VSNPRINTF 1
16296 _ACEOF
16297
16298
16299 else
16300 cat >>confdefs.h <<_ACEOF
16301 #define HAVE_DECL_VSNPRINTF 0
16302 _ACEOF
16303
16304
16305 fi
16306
16307
16308
16309 # ----------------------- #
16310 # Checks for structures. #
16311 # ----------------------- #
16312
16313 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16314 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16315 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16317 else
16318 cat >conftest.$ac_ext <<_ACEOF
16319 /* confdefs.h. */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16324 $ac_includes_default
16325 int
16326 main ()
16327 {
16328 static struct stat ac_aggr;
16329 if (ac_aggr.st_blocks)
16330 return 0;
16331 ;
16332 return 0;
16333 }
16334 _ACEOF
16335 rm -f conftest.$ac_objext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337 (eval $ac_compile) 2>conftest.er1
16338 ac_status=$?
16339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag"
16345 || test ! -s conftest.err'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try='test -s conftest.$ac_objext'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_cv_member_struct_stat_st_blocks=yes
16358 else
16359 echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16361
16362 cat >conftest.$ac_ext <<_ACEOF
16363 /* confdefs.h. */
16364 _ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16368 $ac_includes_default
16369 int
16370 main ()
16371 {
16372 static struct stat ac_aggr;
16373 if (sizeof ac_aggr.st_blocks)
16374 return 0;
16375 ;
16376 return 0;
16377 }
16378 _ACEOF
16379 rm -f conftest.$ac_objext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16381 (eval $ac_compile) 2>conftest.er1
16382 ac_status=$?
16383 grep -v '^ *+' conftest.er1 >conftest.err
16384 rm -f conftest.er1
16385 cat conftest.err >&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } &&
16388 { ac_try='test -z "$ac_c_werror_flag"
16389 || test ! -s conftest.err'
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16392 ac_status=$?
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; } &&
16395 { ac_try='test -s conftest.$ac_objext'
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16398 ac_status=$?
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16401 ac_cv_member_struct_stat_st_blocks=yes
16402 else
16403 echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16405
16406 ac_cv_member_struct_stat_st_blocks=no
16407 fi
16408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16409 fi
16410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16411 fi
16412 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16413 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16414 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16415
16416 cat >>confdefs.h <<_ACEOF
16417 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16418 _ACEOF
16419
16420
16421 fi
16422
16423 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16424 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
16425 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 else
16428 cat >conftest.$ac_ext <<_ACEOF
16429 /* confdefs.h. */
16430 _ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16434 $ac_includes_default
16435 int
16436 main ()
16437 {
16438 static struct stat ac_aggr;
16439 if (ac_aggr.st_blksize)
16440 return 0;
16441 ;
16442 return 0;
16443 }
16444 _ACEOF
16445 rm -f conftest.$ac_objext
16446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16447 (eval $ac_compile) 2>conftest.er1
16448 ac_status=$?
16449 grep -v '^ *+' conftest.er1 >conftest.err
16450 rm -f conftest.er1
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
16454 { ac_try='test -z "$ac_c_werror_flag"
16455 || test ! -s conftest.err'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; } &&
16461 { ac_try='test -s conftest.$ac_objext'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16464 ac_status=$?
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; }; then
16467 ac_cv_member_struct_stat_st_blksize=yes
16468 else
16469 echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16471
16472 cat >conftest.$ac_ext <<_ACEOF
16473 /* confdefs.h. */
16474 _ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16478 $ac_includes_default
16479 int
16480 main ()
16481 {
16482 static struct stat ac_aggr;
16483 if (sizeof ac_aggr.st_blksize)
16484 return 0;
16485 ;
16486 return 0;
16487 }
16488 _ACEOF
16489 rm -f conftest.$ac_objext
16490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16491 (eval $ac_compile) 2>conftest.er1
16492 ac_status=$?
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -z "$ac_c_werror_flag"
16499 || test ! -s conftest.err'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_cv_member_struct_stat_st_blksize=yes
16512 else
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16515
16516 ac_cv_member_struct_stat_st_blksize=no
16517 fi
16518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16519 fi
16520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16521 fi
16522 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16523 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
16524 if test $ac_cv_member_struct_stat_st_blksize = yes; then
16525
16526 cat >>confdefs.h <<_ACEOF
16527 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16528 _ACEOF
16529
16530
16531 fi
16532
16533
16534 # ------------------ #
16535 # Checks for types. #
16536 # ------------------ #
16537
16538 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16539 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16540 if test "${ac_cv_type_signal+set}" = set; then
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 else
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 #include <sys/types.h>
16550 #include <signal.h>
16551 #ifdef signal
16552 # undef signal
16553 #endif
16554 #ifdef __cplusplus
16555 extern "C" void (*signal (int, void (*)(int)))(int);
16556 #else
16557 void (*signal ()) ();
16558 #endif
16559
16560 int
16561 main ()
16562 {
16563 int i;
16564 ;
16565 return 0;
16566 }
16567 _ACEOF
16568 rm -f conftest.$ac_objext
16569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16570 (eval $ac_compile) 2>conftest.er1
16571 ac_status=$?
16572 grep -v '^ *+' conftest.er1 >conftest.err
16573 rm -f conftest.er1
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } &&
16577 { ac_try='test -z "$ac_c_werror_flag"
16578 || test ! -s conftest.err'
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; } &&
16584 { ac_try='test -s conftest.$ac_objext'
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 ac_cv_type_signal=void
16591 else
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16594
16595 ac_cv_type_signal=int
16596 fi
16597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16598 fi
16599 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16600 echo "${ECHO_T}$ac_cv_type_signal" >&6
16601
16602 cat >>confdefs.h <<_ACEOF
16603 #define RETSIGTYPE $ac_cv_type_signal
16604 _ACEOF
16605
16606
16607 echo "$as_me:$LINENO: checking for socklen_t" >&5
16608 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
16609 if test "${ac_cv_type_socklen_t+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612 cat >conftest.$ac_ext <<_ACEOF
16613 /* confdefs.h. */
16614 _ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 #include <sys/types.h>
16619 #include <sys/socket.h>
16620
16621
16622 int
16623 main ()
16624 {
16625 if ((socklen_t *) 0)
16626 return 0;
16627 if (sizeof (socklen_t))
16628 return 0;
16629 ;
16630 return 0;
16631 }
16632 _ACEOF
16633 rm -f conftest.$ac_objext
16634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16635 (eval $ac_compile) 2>conftest.er1
16636 ac_status=$?
16637 grep -v '^ *+' conftest.er1 >conftest.err
16638 rm -f conftest.er1
16639 cat conftest.err >&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } &&
16642 { ac_try='test -z "$ac_c_werror_flag"
16643 || test ! -s conftest.err'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; } &&
16649 { ac_try='test -s conftest.$ac_objext'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 ac_cv_type_socklen_t=yes
16656 else
16657 echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16659
16660 ac_cv_type_socklen_t=no
16661 fi
16662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16663 fi
16664 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
16665 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
16666 if test $ac_cv_type_socklen_t = yes; then
16667
16668 cat >>confdefs.h <<_ACEOF
16669 #define HAVE_SOCKLEN_T 1
16670 _ACEOF
16671
16672
16673 fi
16674
16675 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16676 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16677 if test "${ac_cv_type_uintptr_t+set}" = set; then
16678 echo $ECHO_N "(cached) $ECHO_C" >&6
16679 else
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h. */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 #include <stdint.h>
16687
16688 int
16689 main ()
16690 {
16691 if ((uintptr_t *) 0)
16692 return 0;
16693 if (sizeof (uintptr_t))
16694 return 0;
16695 ;
16696 return 0;
16697 }
16698 _ACEOF
16699 rm -f conftest.$ac_objext
16700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16701 (eval $ac_compile) 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try='test -z "$ac_c_werror_flag"
16709 || test ! -s conftest.err'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest.$ac_objext'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 ac_cv_type_uintptr_t=yes
16722 else
16723 echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16725
16726 ac_cv_type_uintptr_t=no
16727 fi
16728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16729 fi
16730 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16731 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16732 if test $ac_cv_type_uintptr_t = yes; then
16733
16734 cat >>confdefs.h <<_ACEOF
16735 #define HAVE_UINTPTR_T 1
16736 _ACEOF
16737
16738
16739 fi
16740
16741
16742 # ------------------------------------- #
16743 # Checks for compiler characteristics. #
16744 # ------------------------------------- #
16745
16746 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16747 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16748 if test "${ac_cv_c_const+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16751 cat >conftest.$ac_ext <<_ACEOF
16752 /* confdefs.h. */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757
16758 int
16759 main ()
16760 {
16761 /* FIXME: Include the comments suggested by Paul. */
16762 #ifndef __cplusplus
16763 /* Ultrix mips cc rejects this. */
16764 typedef int charset[2];
16765 const charset x;
16766 /* SunOS 4.1.1 cc rejects this. */
16767 char const *const *ccp;
16768 char **p;
16769 /* NEC SVR4.0.2 mips cc rejects this. */
16770 struct point {int x, y;};
16771 static struct point const zero = {0,0};
16772 /* AIX XL C 1.02.0.0 rejects this.
16773 It does not let you subtract one const X* pointer from another in
16774 an arm of an if-expression whose if-part is not a constant
16775 expression */
16776 const char *g = "string";
16777 ccp = &g + (g ? g-g : 0);
16778 /* HPUX 7.0 cc rejects these. */
16779 ++ccp;
16780 p = (char**) ccp;
16781 ccp = (char const *const *) p;
16782 { /* SCO 3.2v4 cc rejects this. */
16783 char *t;
16784 char const *s = 0 ? (char *) 0 : (char const *) 0;
16785
16786 *t++ = 0;
16787 }
16788 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16789 int x[] = {25, 17};
16790 const int *foo = &x[0];
16791 ++foo;
16792 }
16793 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16794 typedef const int *iptr;
16795 iptr p = 0;
16796 ++p;
16797 }
16798 { /* AIX XL C 1.02.0.0 rejects this saying
16799 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16800 struct s { int j; const int *ap[3]; };
16801 struct s *b; b->j = 5;
16802 }
16803 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16804 const int foo = 10;
16805 }
16806 #endif
16807
16808 ;
16809 return 0;
16810 }
16811 _ACEOF
16812 rm -f conftest.$ac_objext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
16821 { ac_try='test -z "$ac_c_werror_flag"
16822 || test ! -s conftest.err'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; } &&
16828 { ac_try='test -s conftest.$ac_objext'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_cv_c_const=yes
16835 else
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16838
16839 ac_cv_c_const=no
16840 fi
16841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16842 fi
16843 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16844 echo "${ECHO_T}$ac_cv_c_const" >&6
16845 if test $ac_cv_c_const = no; then
16846
16847 cat >>confdefs.h <<\_ACEOF
16848 #define const
16849 _ACEOF
16850
16851 fi
16852
16853 echo "$as_me:$LINENO: checking for inline" >&5
16854 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16855 if test "${ac_cv_c_inline+set}" = set; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 else
16858 ac_cv_c_inline=no
16859 for ac_kw in inline __inline__ __inline; do
16860 cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h. */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 #ifndef __cplusplus
16867 typedef int foo_t;
16868 static $ac_kw foo_t static_foo () {return 0; }
16869 $ac_kw foo_t foo () {return 0; }
16870 #endif
16871
16872 _ACEOF
16873 rm -f conftest.$ac_objext
16874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16875 (eval $ac_compile) 2>conftest.er1
16876 ac_status=$?
16877 grep -v '^ *+' conftest.er1 >conftest.err
16878 rm -f conftest.er1
16879 cat conftest.err >&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
16882 { ac_try='test -z "$ac_c_werror_flag"
16883 || test ! -s conftest.err'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; } &&
16889 { ac_try='test -s conftest.$ac_objext'
16890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895 ac_cv_c_inline=$ac_kw; break
16896 else
16897 echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16899
16900 fi
16901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16902 done
16903
16904 fi
16905 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16906 echo "${ECHO_T}$ac_cv_c_inline" >&6
16907
16908
16909 case $ac_cv_c_inline in
16910 inline | yes) ;;
16911 *)
16912 case $ac_cv_c_inline in
16913 no) ac_val=;;
16914 *) ac_val=$ac_cv_c_inline;;
16915 esac
16916 cat >>confdefs.h <<_ACEOF
16917 #ifndef __cplusplus
16918 #define inline $ac_val
16919 #endif
16920 _ACEOF
16921 ;;
16922 esac
16923
16924
16925 # ------------------------------ #
16926 # Checks for library functions. #
16927 # ------------------------------ #
16928
16929 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16930 # for constant arguments. Useless!
16931 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16932 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16933 if test "${ac_cv_working_alloca_h+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935 else
16936 cat >conftest.$ac_ext <<_ACEOF
16937 /* confdefs.h. */
16938 _ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h. */
16942 #include <alloca.h>
16943 int
16944 main ()
16945 {
16946 char *p = (char *) alloca (2 * sizeof (int));
16947 ;
16948 return 0;
16949 }
16950 _ACEOF
16951 rm -f conftest.$ac_objext conftest$ac_exeext
16952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16953 (eval $ac_link) 2>conftest.er1
16954 ac_status=$?
16955 grep -v '^ *+' conftest.er1 >conftest.err
16956 rm -f conftest.er1
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } &&
16960 { ac_try='test -z "$ac_c_werror_flag"
16961 || test ! -s conftest.err'
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; } &&
16967 { ac_try='test -s conftest$ac_exeext'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; }; then
16973 ac_cv_working_alloca_h=yes
16974 else
16975 echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16977
16978 ac_cv_working_alloca_h=no
16979 fi
16980 rm -f conftest.err conftest.$ac_objext \
16981 conftest$ac_exeext conftest.$ac_ext
16982 fi
16983 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16984 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16985 if test $ac_cv_working_alloca_h = yes; then
16986
16987 cat >>confdefs.h <<\_ACEOF
16988 #define HAVE_ALLOCA_H 1
16989 _ACEOF
16990
16991 fi
16992
16993 echo "$as_me:$LINENO: checking for alloca" >&5
16994 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16995 if test "${ac_cv_func_alloca_works+set}" = set; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 else
16998 cat >conftest.$ac_ext <<_ACEOF
16999 /* confdefs.h. */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17004 #ifdef __GNUC__
17005 # define alloca __builtin_alloca
17006 #else
17007 # ifdef _MSC_VER
17008 # include <malloc.h>
17009 # define alloca _alloca
17010 # else
17011 # if HAVE_ALLOCA_H
17012 # include <alloca.h>
17013 # else
17014 # ifdef _AIX
17015 #pragma alloca
17016 # else
17017 # ifndef alloca /* predefined by HP cc +Olibcalls */
17018 char *alloca ();
17019 # endif
17020 # endif
17021 # endif
17022 # endif
17023 #endif
17024
17025 int
17026 main ()
17027 {
17028 char *p = (char *) alloca (1);
17029 ;
17030 return 0;
17031 }
17032 _ACEOF
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035 (eval $ac_link) 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag"
17043 || test ! -s conftest.err'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 ac_cv_func_alloca_works=yes
17056 else
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17059
17060 ac_cv_func_alloca_works=no
17061 fi
17062 rm -f conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17064 fi
17065 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17066 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17067
17068 if test $ac_cv_func_alloca_works = yes; then
17069
17070 cat >>confdefs.h <<\_ACEOF
17071 #define HAVE_ALLOCA 1
17072 _ACEOF
17073
17074 else
17075 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17076 # that cause trouble. Some versions do not even contain alloca or
17077 # contain a buggy version. If you still want to use their alloca,
17078 # use ar to extract alloca.o from them instead of compiling alloca.c.
17079
17080 ALLOCA=alloca.$ac_objext
17081
17082 cat >>confdefs.h <<\_ACEOF
17083 #define C_ALLOCA 1
17084 _ACEOF
17085
17086
17087 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17088 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17089 if test "${ac_cv_os_cray+set}" = set; then
17090 echo $ECHO_N "(cached) $ECHO_C" >&6
17091 else
17092 cat >conftest.$ac_ext <<_ACEOF
17093 /* confdefs.h. */
17094 _ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h. */
17098 #if defined(CRAY) && ! defined(CRAY2)
17099 webecray
17100 #else
17101 wenotbecray
17102 #endif
17103
17104 _ACEOF
17105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17106 $EGREP "webecray" >/dev/null 2>&1; then
17107 ac_cv_os_cray=yes
17108 else
17109 ac_cv_os_cray=no
17110 fi
17111 rm -f conftest*
17112
17113 fi
17114 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17115 echo "${ECHO_T}$ac_cv_os_cray" >&6
17116 if test $ac_cv_os_cray = yes; then
17117 for ac_func in _getb67 GETB67 getb67; do
17118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17119 echo "$as_me:$LINENO: checking for $ac_func" >&5
17120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17121 if eval "test \"\${$as_ac_var+set}\" = set"; then
17122 echo $ECHO_N "(cached) $ECHO_C" >&6
17123 else
17124 cat >conftest.$ac_ext <<_ACEOF
17125 /* confdefs.h. */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17132 #define $ac_func innocuous_$ac_func
17133
17134 /* System header to define __stub macros and hopefully few prototypes,
17135 which can conflict with char $ac_func (); below.
17136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17137 <limits.h> exists even on freestanding compilers. */
17138
17139 #ifdef __STDC__
17140 # include <limits.h>
17141 #else
17142 # include <assert.h>
17143 #endif
17144
17145 #undef $ac_func
17146
17147 /* Override any gcc2 internal prototype to avoid an error. */
17148 #ifdef __cplusplus
17149 extern "C"
17150 {
17151 #endif
17152 /* We use char because int might match the return type of a gcc2
17153 builtin and then its argument prototype would still apply. */
17154 char $ac_func ();
17155 /* The GNU C library defines this for functions which it implements
17156 to always fail with ENOSYS. Some functions are actually named
17157 something starting with __ and the normal name is an alias. */
17158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17159 choke me
17160 #else
17161 char (*f) () = $ac_func;
17162 #endif
17163 #ifdef __cplusplus
17164 }
17165 #endif
17166
17167 int
17168 main ()
17169 {
17170 return f != $ac_func;
17171 ;
17172 return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177 (eval $ac_link) 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
17184 { ac_try='test -z "$ac_c_werror_flag"
17185 || test ! -s conftest.err'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; } &&
17191 { ac_try='test -s conftest$ac_exeext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 eval "$as_ac_var=yes"
17198 else
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202 eval "$as_ac_var=no"
17203 fi
17204 rm -f conftest.err conftest.$ac_objext \
17205 conftest$ac_exeext conftest.$ac_ext
17206 fi
17207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17209 if test `eval echo '${'$as_ac_var'}'` = yes; then
17210
17211 cat >>confdefs.h <<_ACEOF
17212 #define CRAY_STACKSEG_END $ac_func
17213 _ACEOF
17214
17215 break
17216 fi
17217
17218 done
17219 fi
17220
17221 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17222 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17223 if test "${ac_cv_c_stack_direction+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226 if test "$cross_compiling" = yes; then
17227 ac_cv_c_stack_direction=0
17228 else
17229 cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h. */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 int
17236 find_stack_direction ()
17237 {
17238 static char *addr = 0;
17239 auto char dummy;
17240 if (addr == 0)
17241 {
17242 addr = &dummy;
17243 return find_stack_direction ();
17244 }
17245 else
17246 return (&dummy > addr) ? 1 : -1;
17247 }
17248
17249 int
17250 main ()
17251 {
17252 exit (find_stack_direction () < 0);
17253 }
17254 _ACEOF
17255 rm -f conftest$ac_exeext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257 (eval $ac_link) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 ac_cv_c_stack_direction=1
17267 else
17268 echo "$as_me: program exited with status $ac_status" >&5
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17271
17272 ( exit $ac_status )
17273 ac_cv_c_stack_direction=-1
17274 fi
17275 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17276 fi
17277 fi
17278 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17279 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17280
17281 cat >>confdefs.h <<_ACEOF
17282 #define STACK_DIRECTION $ac_cv_c_stack_direction
17283 _ACEOF
17284
17285
17286 fi
17287
17288
17289
17290 for ac_header in stdlib.h unistd.h
17291 do
17292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17294 echo "$as_me:$LINENO: checking for $ac_header" >&5
17295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17298 fi
17299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17301 else
17302 # Is the header compilable?
17303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17305 cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h. */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 $ac_includes_default
17312 #include <$ac_header>
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
17323 { ac_try='test -z "$ac_c_werror_flag"
17324 || test ! -s conftest.err'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest.$ac_objext'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_header_compiler=yes
17337 else
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17340
17341 ac_header_compiler=no
17342 fi
17343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17345 echo "${ECHO_T}$ac_header_compiler" >&6
17346
17347 # Is the header present?
17348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17350 cat >conftest.$ac_ext <<_ACEOF
17351 /* confdefs.h. */
17352 _ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17356 #include <$ac_header>
17357 _ACEOF
17358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } >/dev/null; then
17366 if test -s conftest.err; then
17367 ac_cpp_err=$ac_c_preproc_warn_flag
17368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17369 else
17370 ac_cpp_err=
17371 fi
17372 else
17373 ac_cpp_err=yes
17374 fi
17375 if test -z "$ac_cpp_err"; then
17376 ac_header_preproc=yes
17377 else
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17380
17381 ac_header_preproc=no
17382 fi
17383 rm -f conftest.err conftest.$ac_ext
17384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17385 echo "${ECHO_T}$ac_header_preproc" >&6
17386
17387 # So? What about this header?
17388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17389 yes:no: )
17390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17394 ac_header_preproc=yes
17395 ;;
17396 no:yes:* )
17397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17409 (
17410 cat <<\_ASBOX
17411 ## ------------------------------------------ ##
17412 ## Report this to the AC_PACKAGE_NAME lists. ##
17413 ## ------------------------------------------ ##
17414 _ASBOX
17415 ) |
17416 sed "s/^/$as_me: WARNING: /" >&2
17417 ;;
17418 esac
17419 echo "$as_me:$LINENO: checking for $ac_header" >&5
17420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17423 else
17424 eval "$as_ac_Header=\$ac_header_preproc"
17425 fi
17426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17428
17429 fi
17430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17431 cat >>confdefs.h <<_ACEOF
17432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17433 _ACEOF
17434
17435 fi
17436
17437 done
17438
17439
17440 for ac_func in getpagesize
17441 do
17442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17443 echo "$as_me:$LINENO: checking for $ac_func" >&5
17444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17445 if eval "test \"\${$as_ac_var+set}\" = set"; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448 cat >conftest.$ac_ext <<_ACEOF
17449 /* confdefs.h. */
17450 _ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17456 #define $ac_func innocuous_$ac_func
17457
17458 /* System header to define __stub macros and hopefully few prototypes,
17459 which can conflict with char $ac_func (); below.
17460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17461 <limits.h> exists even on freestanding compilers. */
17462
17463 #ifdef __STDC__
17464 # include <limits.h>
17465 #else
17466 # include <assert.h>
17467 #endif
17468
17469 #undef $ac_func
17470
17471 /* Override any gcc2 internal prototype to avoid an error. */
17472 #ifdef __cplusplus
17473 extern "C"
17474 {
17475 #endif
17476 /* We use char because int might match the return type of a gcc2
17477 builtin and then its argument prototype would still apply. */
17478 char $ac_func ();
17479 /* The GNU C library defines this for functions which it implements
17480 to always fail with ENOSYS. Some functions are actually named
17481 something starting with __ and the normal name is an alias. */
17482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17483 choke me
17484 #else
17485 char (*f) () = $ac_func;
17486 #endif
17487 #ifdef __cplusplus
17488 }
17489 #endif
17490
17491 int
17492 main ()
17493 {
17494 return f != $ac_func;
17495 ;
17496 return 0;
17497 }
17498 _ACEOF
17499 rm -f conftest.$ac_objext conftest$ac_exeext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17501 (eval $ac_link) 2>conftest.er1
17502 ac_status=$?
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
17508 { ac_try='test -z "$ac_c_werror_flag"
17509 || test ! -s conftest.err'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest$ac_exeext'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 eval "$as_ac_var=yes"
17522 else
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17525
17526 eval "$as_ac_var=no"
17527 fi
17528 rm -f conftest.err conftest.$ac_objext \
17529 conftest$ac_exeext conftest.$ac_ext
17530 fi
17531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17533 if test `eval echo '${'$as_ac_var'}'` = yes; then
17534 cat >>confdefs.h <<_ACEOF
17535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17536 _ACEOF
17537
17538 fi
17539 done
17540
17541 echo "$as_me:$LINENO: checking for working mmap" >&5
17542 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
17543 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546 if test "$cross_compiling" = yes; then
17547 ac_cv_func_mmap_fixed_mapped=no
17548 else
17549 cat >conftest.$ac_ext <<_ACEOF
17550 /* confdefs.h. */
17551 _ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h. */
17555 $ac_includes_default
17556 /* malloc might have been renamed as rpl_malloc. */
17557 #undef malloc
17558
17559 /* Thanks to Mike Haertel and Jim Avera for this test.
17560 Here is a matrix of mmap possibilities:
17561 mmap private not fixed
17562 mmap private fixed at somewhere currently unmapped
17563 mmap private fixed at somewhere already mapped
17564 mmap shared not fixed
17565 mmap shared fixed at somewhere currently unmapped
17566 mmap shared fixed at somewhere already mapped
17567 For private mappings, we should verify that changes cannot be read()
17568 back from the file, nor mmap's back from the file at a different
17569 address. (There have been systems where private was not correctly
17570 implemented like the infamous i386 svr4.0, and systems where the
17571 VM page cache was not coherent with the file system buffer cache
17572 like early versions of FreeBSD and possibly contemporary NetBSD.)
17573 For shared mappings, we should conversely verify that changes get
17574 propagated back to all the places they're supposed to be.
17575
17576 Grep wants private fixed already mapped.
17577 The main things grep needs to know about mmap are:
17578 * does it exist and is it safe to write into the mmap'd area
17579 * how to use it (BSD variants) */
17580
17581 #include <fcntl.h>
17582 #include <sys/mman.h>
17583
17584 #if !STDC_HEADERS && !HAVE_STDLIB_H
17585 char *malloc ();
17586 #endif
17587
17588 /* This mess was copied from the GNU getpagesize.h. */
17589 #if !HAVE_GETPAGESIZE
17590 /* Assume that all systems that can run configure have sys/param.h. */
17591 # if !HAVE_SYS_PARAM_H
17592 # define HAVE_SYS_PARAM_H 1
17593 # endif
17594
17595 # ifdef _SC_PAGESIZE
17596 # define getpagesize() sysconf(_SC_PAGESIZE)
17597 # else /* no _SC_PAGESIZE */
17598 # if HAVE_SYS_PARAM_H
17599 # include <sys/param.h>
17600 # ifdef EXEC_PAGESIZE
17601 # define getpagesize() EXEC_PAGESIZE
17602 # else /* no EXEC_PAGESIZE */
17603 # ifdef NBPG
17604 # define getpagesize() NBPG * CLSIZE
17605 # ifndef CLSIZE
17606 # define CLSIZE 1
17607 # endif /* no CLSIZE */
17608 # else /* no NBPG */
17609 # ifdef NBPC
17610 # define getpagesize() NBPC
17611 # else /* no NBPC */
17612 # ifdef PAGESIZE
17613 # define getpagesize() PAGESIZE
17614 # endif /* PAGESIZE */
17615 # endif /* no NBPC */
17616 # endif /* no NBPG */
17617 # endif /* no EXEC_PAGESIZE */
17618 # else /* no HAVE_SYS_PARAM_H */
17619 # define getpagesize() 8192 /* punt totally */
17620 # endif /* no HAVE_SYS_PARAM_H */
17621 # endif /* no _SC_PAGESIZE */
17622
17623 #endif /* no HAVE_GETPAGESIZE */
17624
17625 int
17626 main ()
17627 {
17628 char *data, *data2, *data3;
17629 int i, pagesize;
17630 int fd;
17631
17632 pagesize = getpagesize ();
17633
17634 /* First, make a file with some known garbage in it. */
17635 data = (char *) malloc (pagesize);
17636 if (!data)
17637 exit (1);
17638 for (i = 0; i < pagesize; ++i)
17639 *(data + i) = rand ();
17640 umask (0);
17641 fd = creat ("conftest.mmap", 0600);
17642 if (fd < 0)
17643 exit (1);
17644 if (write (fd, data, pagesize) != pagesize)
17645 exit (1);
17646 close (fd);
17647
17648 /* Next, try to mmap the file at a fixed address which already has
17649 something else allocated at it. If we can, also make sure that
17650 we see the same garbage. */
17651 fd = open ("conftest.mmap", O_RDWR);
17652 if (fd < 0)
17653 exit (1);
17654 data2 = (char *) malloc (2 * pagesize);
17655 if (!data2)
17656 exit (1);
17657 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
17658 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17659 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17660 exit (1);
17661 for (i = 0; i < pagesize; ++i)
17662 if (*(data + i) != *(data2 + i))
17663 exit (1);
17664
17665 /* Finally, make sure that changes to the mapped area do not
17666 percolate back to the file as seen by read(). (This is a bug on
17667 some variants of i386 svr4.0.) */
17668 for (i = 0; i < pagesize; ++i)
17669 *(data2 + i) = *(data2 + i) + 1;
17670 data3 = (char *) malloc (pagesize);
17671 if (!data3)
17672 exit (1);
17673 if (read (fd, data3, pagesize) != pagesize)
17674 exit (1);
17675 for (i = 0; i < pagesize; ++i)
17676 if (*(data + i) != *(data3 + i))
17677 exit (1);
17678 close (fd);
17679 exit (0);
17680 }
17681 _ACEOF
17682 rm -f conftest$ac_exeext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684 (eval $ac_link) 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 ac_cv_func_mmap_fixed_mapped=yes
17694 else
17695 echo "$as_me: program exited with status $ac_status" >&5
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17698
17699 ( exit $ac_status )
17700 ac_cv_func_mmap_fixed_mapped=no
17701 fi
17702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17703 fi
17704 fi
17705 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17706 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
17707 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17708
17709 cat >>confdefs.h <<\_ACEOF
17710 #define HAVE_MMAP 1
17711 _ACEOF
17712
17713 fi
17714 rm -f conftest.mmap
17715
17716 echo "$as_me:$LINENO: checking for pid_t" >&5
17717 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17718 if test "${ac_cv_type_pid_t+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17720 else
17721 cat >conftest.$ac_ext <<_ACEOF
17722 /* confdefs.h. */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17727 $ac_includes_default
17728 int
17729 main ()
17730 {
17731 if ((pid_t *) 0)
17732 return 0;
17733 if (sizeof (pid_t))
17734 return 0;
17735 ;
17736 return 0;
17737 }
17738 _ACEOF
17739 rm -f conftest.$ac_objext
17740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17741 (eval $ac_compile) 2>conftest.er1
17742 ac_status=$?
17743 grep -v '^ *+' conftest.er1 >conftest.err
17744 rm -f conftest.er1
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try='test -z "$ac_c_werror_flag"
17749 || test ! -s conftest.err'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest.$ac_objext'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17761 ac_cv_type_pid_t=yes
17762 else
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17765
17766 ac_cv_type_pid_t=no
17767 fi
17768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17769 fi
17770 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17771 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17772 if test $ac_cv_type_pid_t = yes; then
17773 :
17774 else
17775
17776 cat >>confdefs.h <<_ACEOF
17777 #define pid_t int
17778 _ACEOF
17779
17780 fi
17781
17782
17783
17784 for ac_header in unistd.h vfork.h
17785 do
17786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17788 echo "$as_me:$LINENO: checking for $ac_header" >&5
17789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17792 fi
17793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17795 else
17796 # Is the header compilable?
17797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17799 cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h. */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17805 $ac_includes_default
17806 #include <$ac_header>
17807 _ACEOF
17808 rm -f conftest.$ac_objext
17809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17810 (eval $ac_compile) 2>conftest.er1
17811 ac_status=$?
17812 grep -v '^ *+' conftest.er1 >conftest.err
17813 rm -f conftest.er1
17814 cat conftest.err >&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } &&
17817 { ac_try='test -z "$ac_c_werror_flag"
17818 || test ! -s conftest.err'
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; } &&
17824 { ac_try='test -s conftest.$ac_objext'
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; }; then
17830 ac_header_compiler=yes
17831 else
17832 echo "$as_me: failed program was:" >&5
17833 sed 's/^/| /' conftest.$ac_ext >&5
17834
17835 ac_header_compiler=no
17836 fi
17837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17839 echo "${ECHO_T}$ac_header_compiler" >&6
17840
17841 # Is the header present?
17842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17844 cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h. */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17850 #include <$ac_header>
17851 _ACEOF
17852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17854 ac_status=$?
17855 grep -v '^ *+' conftest.er1 >conftest.err
17856 rm -f conftest.er1
17857 cat conftest.err >&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } >/dev/null; then
17860 if test -s conftest.err; then
17861 ac_cpp_err=$ac_c_preproc_warn_flag
17862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17863 else
17864 ac_cpp_err=
17865 fi
17866 else
17867 ac_cpp_err=yes
17868 fi
17869 if test -z "$ac_cpp_err"; then
17870 ac_header_preproc=yes
17871 else
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17874
17875 ac_header_preproc=no
17876 fi
17877 rm -f conftest.err conftest.$ac_ext
17878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17879 echo "${ECHO_T}$ac_header_preproc" >&6
17880
17881 # So? What about this header?
17882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17883 yes:no: )
17884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17888 ac_header_preproc=yes
17889 ;;
17890 no:yes:* )
17891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17903 (
17904 cat <<\_ASBOX
17905 ## ------------------------------------------ ##
17906 ## Report this to the AC_PACKAGE_NAME lists. ##
17907 ## ------------------------------------------ ##
17908 _ASBOX
17909 ) |
17910 sed "s/^/$as_me: WARNING: /" >&2
17911 ;;
17912 esac
17913 echo "$as_me:$LINENO: checking for $ac_header" >&5
17914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 else
17918 eval "$as_ac_Header=\$ac_header_preproc"
17919 fi
17920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17922
17923 fi
17924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17925 cat >>confdefs.h <<_ACEOF
17926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17927 _ACEOF
17928
17929 fi
17930
17931 done
17932
17933
17934
17935 for ac_func in fork vfork
17936 do
17937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17938 echo "$as_me:$LINENO: checking for $ac_func" >&5
17939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17940 if eval "test \"\${$as_ac_var+set}\" = set"; then
17941 echo $ECHO_N "(cached) $ECHO_C" >&6
17942 else
17943 cat >conftest.$ac_ext <<_ACEOF
17944 /* confdefs.h. */
17945 _ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17951 #define $ac_func innocuous_$ac_func
17952
17953 /* System header to define __stub macros and hopefully few prototypes,
17954 which can conflict with char $ac_func (); below.
17955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17956 <limits.h> exists even on freestanding compilers. */
17957
17958 #ifdef __STDC__
17959 # include <limits.h>
17960 #else
17961 # include <assert.h>
17962 #endif
17963
17964 #undef $ac_func
17965
17966 /* Override any gcc2 internal prototype to avoid an error. */
17967 #ifdef __cplusplus
17968 extern "C"
17969 {
17970 #endif
17971 /* We use char because int might match the return type of a gcc2
17972 builtin and then its argument prototype would still apply. */
17973 char $ac_func ();
17974 /* The GNU C library defines this for functions which it implements
17975 to always fail with ENOSYS. Some functions are actually named
17976 something starting with __ and the normal name is an alias. */
17977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17978 choke me
17979 #else
17980 char (*f) () = $ac_func;
17981 #endif
17982 #ifdef __cplusplus
17983 }
17984 #endif
17985
17986 int
17987 main ()
17988 {
17989 return f != $ac_func;
17990 ;
17991 return 0;
17992 }
17993 _ACEOF
17994 rm -f conftest.$ac_objext conftest$ac_exeext
17995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>conftest.er1
17997 ac_status=$?
17998 grep -v '^ *+' conftest.er1 >conftest.err
17999 rm -f conftest.er1
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
18003 { ac_try='test -z "$ac_c_werror_flag"
18004 || test ! -s conftest.err'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; } &&
18010 { ac_try='test -s conftest$ac_exeext'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 eval "$as_ac_var=yes"
18017 else
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18020
18021 eval "$as_ac_var=no"
18022 fi
18023 rm -f conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18025 fi
18026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18028 if test `eval echo '${'$as_ac_var'}'` = yes; then
18029 cat >>confdefs.h <<_ACEOF
18030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18031 _ACEOF
18032
18033 fi
18034 done
18035
18036 if test "x$ac_cv_func_fork" = xyes; then
18037 echo "$as_me:$LINENO: checking for working fork" >&5
18038 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18039 if test "${ac_cv_func_fork_works+set}" = set; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 else
18042 if test "$cross_compiling" = yes; then
18043 ac_cv_func_fork_works=cross
18044 else
18045 cat >conftest.$ac_ext <<_ACEOF
18046 /* By Ruediger Kuhlmann. */
18047 #include <sys/types.h>
18048 #if HAVE_UNISTD_H
18049 # include <unistd.h>
18050 #endif
18051 /* Some systems only have a dummy stub for fork() */
18052 int main ()
18053 {
18054 if (fork() < 0)
18055 exit (1);
18056 exit (0);
18057 }
18058 _ACEOF
18059 rm -f conftest$ac_exeext
18060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18061 (eval $ac_link) 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_func_fork_works=yes
18071 else
18072 echo "$as_me: program exited with status $ac_status" >&5
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18075
18076 ( exit $ac_status )
18077 ac_cv_func_fork_works=no
18078 fi
18079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18080 fi
18081 fi
18082 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18083 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18084
18085 else
18086 ac_cv_func_fork_works=$ac_cv_func_fork
18087 fi
18088 if test "x$ac_cv_func_fork_works" = xcross; then
18089 case $host in
18090 *-*-amigaos* | *-*-msdosdjgpp*)
18091 # Override, as these systems have only a dummy fork() stub
18092 ac_cv_func_fork_works=no
18093 ;;
18094 *)
18095 ac_cv_func_fork_works=yes
18096 ;;
18097 esac
18098 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18099 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18100 fi
18101 ac_cv_func_vfork_works=$ac_cv_func_vfork
18102 if test "x$ac_cv_func_vfork" = xyes; then
18103 echo "$as_me:$LINENO: checking for working vfork" >&5
18104 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18105 if test "${ac_cv_func_vfork_works+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108 if test "$cross_compiling" = yes; then
18109 ac_cv_func_vfork_works=cross
18110 else
18111 cat >conftest.$ac_ext <<_ACEOF
18112 /* confdefs.h. */
18113 _ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18117 /* Thanks to Paul Eggert for this test. */
18118 #include <stdio.h>
18119 #include <stdlib.h>
18120 #include <sys/types.h>
18121 #include <sys/stat.h>
18122 #include <sys/wait.h>
18123 #if HAVE_UNISTD_H
18124 # include <unistd.h>
18125 #endif
18126 #if HAVE_VFORK_H
18127 # include <vfork.h>
18128 #endif
18129 /* On some sparc systems, changes by the child to local and incoming
18130 argument registers are propagated back to the parent. The compiler
18131 is told about this with #include <vfork.h>, but some compilers
18132 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18133 static variable whose address is put into a register that is
18134 clobbered by the vfork. */
18135 static void
18136 #ifdef __cplusplus
18137 sparc_address_test (int arg)
18138 # else
18139 sparc_address_test (arg) int arg;
18140 #endif
18141 {
18142 static pid_t child;
18143 if (!child) {
18144 child = vfork ();
18145 if (child < 0) {
18146 perror ("vfork");
18147 _exit(2);
18148 }
18149 if (!child) {
18150 arg = getpid();
18151 write(-1, "", 0);
18152 _exit (arg);
18153 }
18154 }
18155 }
18156
18157 int
18158 main ()
18159 {
18160 pid_t parent = getpid ();
18161 pid_t child;
18162
18163 sparc_address_test (0);
18164
18165 child = vfork ();
18166
18167 if (child == 0) {
18168 /* Here is another test for sparc vfork register problems. This
18169 test uses lots of local variables, at least as many local
18170 variables as main has allocated so far including compiler
18171 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18172 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18173 reuse the register of parent for one of the local variables,
18174 since it will think that parent can't possibly be used any more
18175 in this routine. Assigning to the local variable will thus
18176 munge parent in the parent process. */
18177 pid_t
18178 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18179 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18180 /* Convince the compiler that p..p7 are live; otherwise, it might
18181 use the same hardware register for all 8 local variables. */
18182 if (p != p1 || p != p2 || p != p3 || p != p4
18183 || p != p5 || p != p6 || p != p7)
18184 _exit(1);
18185
18186 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18187 from child file descriptors. If the child closes a descriptor
18188 before it execs or exits, this munges the parent's descriptor
18189 as well. Test for this by closing stdout in the child. */
18190 _exit(close(fileno(stdout)) != 0);
18191 } else {
18192 int status;
18193 struct stat st;
18194
18195 while (wait(&status) != child)
18196 ;
18197 exit(
18198 /* Was there some problem with vforking? */
18199 child < 0
18200
18201 /* Did the child fail? (This shouldn't happen.) */
18202 || status
18203
18204 /* Did the vfork/compiler bug occur? */
18205 || parent != getpid()
18206
18207 /* Did the file descriptor bug occur? */
18208 || fstat(fileno(stdout), &st) != 0
18209 );
18210 }
18211 }
18212 _ACEOF
18213 rm -f conftest$ac_exeext
18214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18215 (eval $ac_link) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_func_vfork_works=yes
18225 else
18226 echo "$as_me: program exited with status $ac_status" >&5
18227 echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18229
18230 ( exit $ac_status )
18231 ac_cv_func_vfork_works=no
18232 fi
18233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18234 fi
18235 fi
18236 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18237 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18238
18239 fi;
18240 if test "x$ac_cv_func_fork_works" = xcross; then
18241 ac_cv_func_vfork_works=$ac_cv_func_vfork
18242 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18243 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18244 fi
18245
18246 if test "x$ac_cv_func_vfork_works" = xyes; then
18247
18248 cat >>confdefs.h <<\_ACEOF
18249 #define HAVE_WORKING_VFORK 1
18250 _ACEOF
18251
18252 else
18253
18254 cat >>confdefs.h <<\_ACEOF
18255 #define vfork fork
18256 _ACEOF
18257
18258 fi
18259 if test "x$ac_cv_func_fork_works" = xyes; then
18260
18261 cat >>confdefs.h <<\_ACEOF
18262 #define HAVE_WORKING_FORK 1
18263 _ACEOF
18264
18265 fi
18266
18267
18268
18269 for ac_func in canonicalize_file_name realpath
18270 do
18271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18272 echo "$as_me:$LINENO: checking for $ac_func" >&5
18273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18274 if eval "test \"\${$as_ac_var+set}\" = set"; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277 cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h. */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18285 #define $ac_func innocuous_$ac_func
18286
18287 /* System header to define __stub macros and hopefully few prototypes,
18288 which can conflict with char $ac_func (); below.
18289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18290 <limits.h> exists even on freestanding compilers. */
18291
18292 #ifdef __STDC__
18293 # include <limits.h>
18294 #else
18295 # include <assert.h>
18296 #endif
18297
18298 #undef $ac_func
18299
18300 /* Override any gcc2 internal prototype to avoid an error. */
18301 #ifdef __cplusplus
18302 extern "C"
18303 {
18304 #endif
18305 /* We use char because int might match the return type of a gcc2
18306 builtin and then its argument prototype would still apply. */
18307 char $ac_func ();
18308 /* The GNU C library defines this for functions which it implements
18309 to always fail with ENOSYS. Some functions are actually named
18310 something starting with __ and the normal name is an alias. */
18311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18312 choke me
18313 #else
18314 char (*f) () = $ac_func;
18315 #endif
18316 #ifdef __cplusplus
18317 }
18318 #endif
18319
18320 int
18321 main ()
18322 {
18323 return f != $ac_func;
18324 ;
18325 return 0;
18326 }
18327 _ACEOF
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18330 (eval $ac_link) 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -z "$ac_c_werror_flag"
18338 || test ! -s conftest.err'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; } &&
18344 { ac_try='test -s conftest$ac_exeext'
18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 eval "$as_ac_var=yes"
18351 else
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18354
18355 eval "$as_ac_var=no"
18356 fi
18357 rm -f conftest.err conftest.$ac_objext \
18358 conftest$ac_exeext conftest.$ac_ext
18359 fi
18360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18362 if test `eval echo '${'$as_ac_var'}'` = yes; then
18363 cat >>confdefs.h <<_ACEOF
18364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18365 _ACEOF
18366
18367 fi
18368 done
18369
18370
18371
18372 for ac_func in getuid getgid
18373 do
18374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18375 echo "$as_me:$LINENO: checking for $ac_func" >&5
18376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18377 if eval "test \"\${$as_ac_var+set}\" = set"; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 else
18380 cat >conftest.$ac_ext <<_ACEOF
18381 /* confdefs.h. */
18382 _ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18388 #define $ac_func innocuous_$ac_func
18389
18390 /* System header to define __stub macros and hopefully few prototypes,
18391 which can conflict with char $ac_func (); below.
18392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18393 <limits.h> exists even on freestanding compilers. */
18394
18395 #ifdef __STDC__
18396 # include <limits.h>
18397 #else
18398 # include <assert.h>
18399 #endif
18400
18401 #undef $ac_func
18402
18403 /* Override any gcc2 internal prototype to avoid an error. */
18404 #ifdef __cplusplus
18405 extern "C"
18406 {
18407 #endif
18408 /* We use char because int might match the return type of a gcc2
18409 builtin and then its argument prototype would still apply. */
18410 char $ac_func ();
18411 /* The GNU C library defines this for functions which it implements
18412 to always fail with ENOSYS. Some functions are actually named
18413 something starting with __ and the normal name is an alias. */
18414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18415 choke me
18416 #else
18417 char (*f) () = $ac_func;
18418 #endif
18419 #ifdef __cplusplus
18420 }
18421 #endif
18422
18423 int
18424 main ()
18425 {
18426 return f != $ac_func;
18427 ;
18428 return 0;
18429 }
18430 _ACEOF
18431 rm -f conftest.$ac_objext conftest$ac_exeext
18432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18433 (eval $ac_link) 2>conftest.er1
18434 ac_status=$?
18435 grep -v '^ *+' conftest.er1 >conftest.err
18436 rm -f conftest.er1
18437 cat conftest.err >&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); } &&
18440 { ac_try='test -z "$ac_c_werror_flag"
18441 || test ! -s conftest.err'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449 (eval $ac_try) 2>&5
18450 ac_status=$?
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; }; then
18453 eval "$as_ac_var=yes"
18454 else
18455 echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18457
18458 eval "$as_ac_var=no"
18459 fi
18460 rm -f conftest.err conftest.$ac_objext \
18461 conftest$ac_exeext conftest.$ac_ext
18462 fi
18463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18465 if test `eval echo '${'$as_ac_var'}'` = yes; then
18466 cat >>confdefs.h <<_ACEOF
18467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18468 _ACEOF
18469
18470 fi
18471 done
18472
18473
18474 for ac_func in poll
18475 do
18476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18477 echo "$as_me:$LINENO: checking for $ac_func" >&5
18478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18479 if eval "test \"\${$as_ac_var+set}\" = set"; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 else
18482 cat >conftest.$ac_ext <<_ACEOF
18483 /* confdefs.h. */
18484 _ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h. */
18488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18490 #define $ac_func innocuous_$ac_func
18491
18492 /* System header to define __stub macros and hopefully few prototypes,
18493 which can conflict with char $ac_func (); below.
18494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18495 <limits.h> exists even on freestanding compilers. */
18496
18497 #ifdef __STDC__
18498 # include <limits.h>
18499 #else
18500 # include <assert.h>
18501 #endif
18502
18503 #undef $ac_func
18504
18505 /* Override any gcc2 internal prototype to avoid an error. */
18506 #ifdef __cplusplus
18507 extern "C"
18508 {
18509 #endif
18510 /* We use char because int might match the return type of a gcc2
18511 builtin and then its argument prototype would still apply. */
18512 char $ac_func ();
18513 /* The GNU C library defines this for functions which it implements
18514 to always fail with ENOSYS. Some functions are actually named
18515 something starting with __ and the normal name is an alias. */
18516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18517 choke me
18518 #else
18519 char (*f) () = $ac_func;
18520 #endif
18521 #ifdef __cplusplus
18522 }
18523 #endif
18524
18525 int
18526 main ()
18527 {
18528 return f != $ac_func;
18529 ;
18530 return 0;
18531 }
18532 _ACEOF
18533 rm -f conftest.$ac_objext conftest$ac_exeext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535 (eval $ac_link) 2>conftest.er1
18536 ac_status=$?
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest$ac_exeext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 eval "$as_ac_var=yes"
18556 else
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18559
18560 eval "$as_ac_var=no"
18561 fi
18562 rm -f conftest.err conftest.$ac_objext \
18563 conftest$ac_exeext conftest.$ac_ext
18564 fi
18565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18567 if test `eval echo '${'$as_ac_var'}'` = yes; then
18568 cat >>confdefs.h <<_ACEOF
18569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18570 _ACEOF
18571
18572 fi
18573 done
18574
18575
18576 for ac_func in pread64
18577 do
18578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18579 echo "$as_me:$LINENO: checking for $ac_func" >&5
18580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18581 if eval "test \"\${$as_ac_var+set}\" = set"; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584 cat >conftest.$ac_ext <<_ACEOF
18585 /* confdefs.h. */
18586 _ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18592 #define $ac_func innocuous_$ac_func
18593
18594 /* System header to define __stub macros and hopefully few prototypes,
18595 which can conflict with char $ac_func (); below.
18596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18597 <limits.h> exists even on freestanding compilers. */
18598
18599 #ifdef __STDC__
18600 # include <limits.h>
18601 #else
18602 # include <assert.h>
18603 #endif
18604
18605 #undef $ac_func
18606
18607 /* Override any gcc2 internal prototype to avoid an error. */
18608 #ifdef __cplusplus
18609 extern "C"
18610 {
18611 #endif
18612 /* We use char because int might match the return type of a gcc2
18613 builtin and then its argument prototype would still apply. */
18614 char $ac_func ();
18615 /* The GNU C library defines this for functions which it implements
18616 to always fail with ENOSYS. Some functions are actually named
18617 something starting with __ and the normal name is an alias. */
18618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18619 choke me
18620 #else
18621 char (*f) () = $ac_func;
18622 #endif
18623 #ifdef __cplusplus
18624 }
18625 #endif
18626
18627 int
18628 main ()
18629 {
18630 return f != $ac_func;
18631 ;
18632 return 0;
18633 }
18634 _ACEOF
18635 rm -f conftest.$ac_objext conftest$ac_exeext
18636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18637 (eval $ac_link) 2>conftest.er1
18638 ac_status=$?
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
18644 { ac_try='test -z "$ac_c_werror_flag"
18645 || test ! -s conftest.err'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; } &&
18651 { ac_try='test -s conftest$ac_exeext'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 eval "$as_ac_var=yes"
18658 else
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18661
18662 eval "$as_ac_var=no"
18663 fi
18664 rm -f conftest.err conftest.$ac_objext \
18665 conftest$ac_exeext conftest.$ac_ext
18666 fi
18667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18669 if test `eval echo '${'$as_ac_var'}'` = yes; then
18670 cat >>confdefs.h <<_ACEOF
18671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18672 _ACEOF
18673
18674 fi
18675 done
18676
18677
18678 for ac_func in sbrk
18679 do
18680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18681 echo "$as_me:$LINENO: checking for $ac_func" >&5
18682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18683 if eval "test \"\${$as_ac_var+set}\" = set"; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 else
18686 cat >conftest.$ac_ext <<_ACEOF
18687 /* confdefs.h. */
18688 _ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18694 #define $ac_func innocuous_$ac_func
18695
18696 /* System header to define __stub macros and hopefully few prototypes,
18697 which can conflict with char $ac_func (); below.
18698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18699 <limits.h> exists even on freestanding compilers. */
18700
18701 #ifdef __STDC__
18702 # include <limits.h>
18703 #else
18704 # include <assert.h>
18705 #endif
18706
18707 #undef $ac_func
18708
18709 /* Override any gcc2 internal prototype to avoid an error. */
18710 #ifdef __cplusplus
18711 extern "C"
18712 {
18713 #endif
18714 /* We use char because int might match the return type of a gcc2
18715 builtin and then its argument prototype would still apply. */
18716 char $ac_func ();
18717 /* The GNU C library defines this for functions which it implements
18718 to always fail with ENOSYS. Some functions are actually named
18719 something starting with __ and the normal name is an alias. */
18720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18721 choke me
18722 #else
18723 char (*f) () = $ac_func;
18724 #endif
18725 #ifdef __cplusplus
18726 }
18727 #endif
18728
18729 int
18730 main ()
18731 {
18732 return f != $ac_func;
18733 ;
18734 return 0;
18735 }
18736 _ACEOF
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18739 (eval $ac_link) 2>conftest.er1
18740 ac_status=$?
18741 grep -v '^ *+' conftest.er1 >conftest.err
18742 rm -f conftest.er1
18743 cat conftest.err >&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } &&
18746 { ac_try='test -z "$ac_c_werror_flag"
18747 || test ! -s conftest.err'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; } &&
18753 { ac_try='test -s conftest$ac_exeext'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 eval "$as_ac_var=yes"
18760 else
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18763
18764 eval "$as_ac_var=no"
18765 fi
18766 rm -f conftest.err conftest.$ac_objext \
18767 conftest$ac_exeext conftest.$ac_ext
18768 fi
18769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18771 if test `eval echo '${'$as_ac_var'}'` = yes; then
18772 cat >>confdefs.h <<_ACEOF
18773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18774 _ACEOF
18775
18776 fi
18777 done
18778
18779
18780
18781 for ac_func in setpgid setpgrp
18782 do
18783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18784 echo "$as_me:$LINENO: checking for $ac_func" >&5
18785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18786 if eval "test \"\${$as_ac_var+set}\" = set"; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18788 else
18789 cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h. */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18797 #define $ac_func innocuous_$ac_func
18798
18799 /* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char $ac_func (); below.
18801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802 <limits.h> exists even on freestanding compilers. */
18803
18804 #ifdef __STDC__
18805 # include <limits.h>
18806 #else
18807 # include <assert.h>
18808 #endif
18809
18810 #undef $ac_func
18811
18812 /* Override any gcc2 internal prototype to avoid an error. */
18813 #ifdef __cplusplus
18814 extern "C"
18815 {
18816 #endif
18817 /* We use char because int might match the return type of a gcc2
18818 builtin and then its argument prototype would still apply. */
18819 char $ac_func ();
18820 /* The GNU C library defines this for functions which it implements
18821 to always fail with ENOSYS. Some functions are actually named
18822 something starting with __ and the normal name is an alias. */
18823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18824 choke me
18825 #else
18826 char (*f) () = $ac_func;
18827 #endif
18828 #ifdef __cplusplus
18829 }
18830 #endif
18831
18832 int
18833 main ()
18834 {
18835 return f != $ac_func;
18836 ;
18837 return 0;
18838 }
18839 _ACEOF
18840 rm -f conftest.$ac_objext conftest$ac_exeext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18842 (eval $ac_link) 2>conftest.er1
18843 ac_status=$?
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -z "$ac_c_werror_flag"
18850 || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest$ac_exeext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 eval "$as_ac_var=yes"
18863 else
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18866
18867 eval "$as_ac_var=no"
18868 fi
18869 rm -f conftest.err conftest.$ac_objext \
18870 conftest$ac_exeext conftest.$ac_ext
18871 fi
18872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18874 if test `eval echo '${'$as_ac_var'}'` = yes; then
18875 cat >>confdefs.h <<_ACEOF
18876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18877 _ACEOF
18878
18879 fi
18880 done
18881
18882
18883
18884
18885 for ac_func in sigaction sigprocmask sigsetmask
18886 do
18887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18888 echo "$as_me:$LINENO: checking for $ac_func" >&5
18889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18890 if eval "test \"\${$as_ac_var+set}\" = set"; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893 cat >conftest.$ac_ext <<_ACEOF
18894 /* confdefs.h. */
18895 _ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18901 #define $ac_func innocuous_$ac_func
18902
18903 /* System header to define __stub macros and hopefully few prototypes,
18904 which can conflict with char $ac_func (); below.
18905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18906 <limits.h> exists even on freestanding compilers. */
18907
18908 #ifdef __STDC__
18909 # include <limits.h>
18910 #else
18911 # include <assert.h>
18912 #endif
18913
18914 #undef $ac_func
18915
18916 /* Override any gcc2 internal prototype to avoid an error. */
18917 #ifdef __cplusplus
18918 extern "C"
18919 {
18920 #endif
18921 /* We use char because int might match the return type of a gcc2
18922 builtin and then its argument prototype would still apply. */
18923 char $ac_func ();
18924 /* The GNU C library defines this for functions which it implements
18925 to always fail with ENOSYS. Some functions are actually named
18926 something starting with __ and the normal name is an alias. */
18927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18928 choke me
18929 #else
18930 char (*f) () = $ac_func;
18931 #endif
18932 #ifdef __cplusplus
18933 }
18934 #endif
18935
18936 int
18937 main ()
18938 {
18939 return f != $ac_func;
18940 ;
18941 return 0;
18942 }
18943 _ACEOF
18944 rm -f conftest.$ac_objext conftest$ac_exeext
18945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18946 (eval $ac_link) 2>conftest.er1
18947 ac_status=$?
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
18953 { ac_try='test -z "$ac_c_werror_flag"
18954 || test ! -s conftest.err'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest$ac_exeext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 eval "$as_ac_var=yes"
18967 else
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971 eval "$as_ac_var=no"
18972 fi
18973 rm -f conftest.err conftest.$ac_objext \
18974 conftest$ac_exeext conftest.$ac_ext
18975 fi
18976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18978 if test `eval echo '${'$as_ac_var'}'` = yes; then
18979 cat >>confdefs.h <<_ACEOF
18980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18981 _ACEOF
18982
18983 fi
18984 done
18985
18986
18987 for ac_func in socketpair
18988 do
18989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18990 echo "$as_me:$LINENO: checking for $ac_func" >&5
18991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18992 if eval "test \"\${$as_ac_var+set}\" = set"; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18994 else
18995 cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h. */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19003 #define $ac_func innocuous_$ac_func
19004
19005 /* System header to define __stub macros and hopefully few prototypes,
19006 which can conflict with char $ac_func (); below.
19007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19008 <limits.h> exists even on freestanding compilers. */
19009
19010 #ifdef __STDC__
19011 # include <limits.h>
19012 #else
19013 # include <assert.h>
19014 #endif
19015
19016 #undef $ac_func
19017
19018 /* Override any gcc2 internal prototype to avoid an error. */
19019 #ifdef __cplusplus
19020 extern "C"
19021 {
19022 #endif
19023 /* We use char because int might match the return type of a gcc2
19024 builtin and then its argument prototype would still apply. */
19025 char $ac_func ();
19026 /* The GNU C library defines this for functions which it implements
19027 to always fail with ENOSYS. Some functions are actually named
19028 something starting with __ and the normal name is an alias. */
19029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19030 choke me
19031 #else
19032 char (*f) () = $ac_func;
19033 #endif
19034 #ifdef __cplusplus
19035 }
19036 #endif
19037
19038 int
19039 main ()
19040 {
19041 return f != $ac_func;
19042 ;
19043 return 0;
19044 }
19045 _ACEOF
19046 rm -f conftest.$ac_objext conftest$ac_exeext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19048 (eval $ac_link) 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest$ac_exeext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 eval "$as_ac_var=yes"
19069 else
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19072
19073 eval "$as_ac_var=no"
19074 fi
19075 rm -f conftest.err conftest.$ac_objext \
19076 conftest$ac_exeext conftest.$ac_ext
19077 fi
19078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19080 if test `eval echo '${'$as_ac_var'}'` = yes; then
19081 cat >>confdefs.h <<_ACEOF
19082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19083 _ACEOF
19084
19085 fi
19086 done
19087
19088
19089 for ac_func in syscall
19090 do
19091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19092 echo "$as_me:$LINENO: checking for $ac_func" >&5
19093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19094 if eval "test \"\${$as_ac_var+set}\" = set"; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19096 else
19097 cat >conftest.$ac_ext <<_ACEOF
19098 /* confdefs.h. */
19099 _ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19105 #define $ac_func innocuous_$ac_func
19106
19107 /* System header to define __stub macros and hopefully few prototypes,
19108 which can conflict with char $ac_func (); below.
19109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19110 <limits.h> exists even on freestanding compilers. */
19111
19112 #ifdef __STDC__
19113 # include <limits.h>
19114 #else
19115 # include <assert.h>
19116 #endif
19117
19118 #undef $ac_func
19119
19120 /* Override any gcc2 internal prototype to avoid an error. */
19121 #ifdef __cplusplus
19122 extern "C"
19123 {
19124 #endif
19125 /* We use char because int might match the return type of a gcc2
19126 builtin and then its argument prototype would still apply. */
19127 char $ac_func ();
19128 /* The GNU C library defines this for functions which it implements
19129 to always fail with ENOSYS. Some functions are actually named
19130 something starting with __ and the normal name is an alias. */
19131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19132 choke me
19133 #else
19134 char (*f) () = $ac_func;
19135 #endif
19136 #ifdef __cplusplus
19137 }
19138 #endif
19139
19140 int
19141 main ()
19142 {
19143 return f != $ac_func;
19144 ;
19145 return 0;
19146 }
19147 _ACEOF
19148 rm -f conftest.$ac_objext conftest$ac_exeext
19149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19150 (eval $ac_link) 2>conftest.er1
19151 ac_status=$?
19152 grep -v '^ *+' conftest.er1 >conftest.err
19153 rm -f conftest.er1
19154 cat conftest.err >&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } &&
19157 { ac_try='test -z "$ac_c_werror_flag"
19158 || test ! -s conftest.err'
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; } &&
19164 { ac_try='test -s conftest$ac_exeext'
19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; }; then
19170 eval "$as_ac_var=yes"
19171 else
19172 echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.$ac_ext >&5
19174
19175 eval "$as_ac_var=no"
19176 fi
19177 rm -f conftest.err conftest.$ac_objext \
19178 conftest$ac_exeext conftest.$ac_ext
19179 fi
19180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19182 if test `eval echo '${'$as_ac_var'}'` = yes; then
19183 cat >>confdefs.h <<_ACEOF
19184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19185 _ACEOF
19186
19187 fi
19188 done
19189
19190
19191 for ac_func in ttrace
19192 do
19193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19194 echo "$as_me:$LINENO: checking for $ac_func" >&5
19195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19196 if eval "test \"\${$as_ac_var+set}\" = set"; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19198 else
19199 cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h. */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19207 #define $ac_func innocuous_$ac_func
19208
19209 /* System header to define __stub macros and hopefully few prototypes,
19210 which can conflict with char $ac_func (); below.
19211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19212 <limits.h> exists even on freestanding compilers. */
19213
19214 #ifdef __STDC__
19215 # include <limits.h>
19216 #else
19217 # include <assert.h>
19218 #endif
19219
19220 #undef $ac_func
19221
19222 /* Override any gcc2 internal prototype to avoid an error. */
19223 #ifdef __cplusplus
19224 extern "C"
19225 {
19226 #endif
19227 /* We use char because int might match the return type of a gcc2
19228 builtin and then its argument prototype would still apply. */
19229 char $ac_func ();
19230 /* The GNU C library defines this for functions which it implements
19231 to always fail with ENOSYS. Some functions are actually named
19232 something starting with __ and the normal name is an alias. */
19233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19234 choke me
19235 #else
19236 char (*f) () = $ac_func;
19237 #endif
19238 #ifdef __cplusplus
19239 }
19240 #endif
19241
19242 int
19243 main ()
19244 {
19245 return f != $ac_func;
19246 ;
19247 return 0;
19248 }
19249 _ACEOF
19250 rm -f conftest.$ac_objext conftest$ac_exeext
19251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19252 (eval $ac_link) 2>conftest.er1
19253 ac_status=$?
19254 grep -v '^ *+' conftest.er1 >conftest.err
19255 rm -f conftest.er1
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } &&
19259 { ac_try='test -z "$ac_c_werror_flag"
19260 || test ! -s conftest.err'
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; } &&
19266 { ac_try='test -s conftest$ac_exeext'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; }; then
19272 eval "$as_ac_var=yes"
19273 else
19274 echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19276
19277 eval "$as_ac_var=no"
19278 fi
19279 rm -f conftest.err conftest.$ac_objext \
19280 conftest$ac_exeext conftest.$ac_ext
19281 fi
19282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19284 if test `eval echo '${'$as_ac_var'}'` = yes; then
19285 cat >>confdefs.h <<_ACEOF
19286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19287 _ACEOF
19288
19289 fi
19290 done
19291
19292
19293 for ac_func in wborder
19294 do
19295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19296 echo "$as_me:$LINENO: checking for $ac_func" >&5
19297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19298 if eval "test \"\${$as_ac_var+set}\" = set"; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 else
19301 cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h. */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19309 #define $ac_func innocuous_$ac_func
19310
19311 /* System header to define __stub macros and hopefully few prototypes,
19312 which can conflict with char $ac_func (); below.
19313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19314 <limits.h> exists even on freestanding compilers. */
19315
19316 #ifdef __STDC__
19317 # include <limits.h>
19318 #else
19319 # include <assert.h>
19320 #endif
19321
19322 #undef $ac_func
19323
19324 /* Override any gcc2 internal prototype to avoid an error. */
19325 #ifdef __cplusplus
19326 extern "C"
19327 {
19328 #endif
19329 /* We use char because int might match the return type of a gcc2
19330 builtin and then its argument prototype would still apply. */
19331 char $ac_func ();
19332 /* The GNU C library defines this for functions which it implements
19333 to always fail with ENOSYS. Some functions are actually named
19334 something starting with __ and the normal name is an alias. */
19335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19336 choke me
19337 #else
19338 char (*f) () = $ac_func;
19339 #endif
19340 #ifdef __cplusplus
19341 }
19342 #endif
19343
19344 int
19345 main ()
19346 {
19347 return f != $ac_func;
19348 ;
19349 return 0;
19350 }
19351 _ACEOF
19352 rm -f conftest.$ac_objext conftest$ac_exeext
19353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19354 (eval $ac_link) 2>conftest.er1
19355 ac_status=$?
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
19361 { ac_try='test -z "$ac_c_werror_flag"
19362 || test ! -s conftest.err'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try='test -s conftest$ac_exeext'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 eval "$as_ac_var=yes"
19375 else
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19378
19379 eval "$as_ac_var=no"
19380 fi
19381 rm -f conftest.err conftest.$ac_objext \
19382 conftest$ac_exeext conftest.$ac_ext
19383 fi
19384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19386 if test `eval echo '${'$as_ac_var'}'` = yes; then
19387 cat >>confdefs.h <<_ACEOF
19388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19389 _ACEOF
19390
19391 fi
19392 done
19393
19394
19395 # Check the return and argument types of ptrace. No canned test for
19396 # this, so roll our own.
19397 gdb_ptrace_headers='
19398 #if HAVE_SYS_TYPES_H
19399 # include <sys/types.h>
19400 #endif
19401 #if HAVE_SYS_PTRACE_H
19402 # include <sys/ptrace.h>
19403 #endif
19404 #if HAVE_UNISTD_H
19405 # include <unistd.h>
19406 #endif
19407 '
19408 # There is no point in checking if we don't have a prototype.
19409 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
19410 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
19411 if test "${ac_cv_have_decl_ptrace+set}" = set; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 else
19414 cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h. */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19420 $gdb_ptrace_headers
19421
19422 int
19423 main ()
19424 {
19425 #ifndef ptrace
19426 char *p = (char *) ptrace;
19427 #endif
19428
19429 ;
19430 return 0;
19431 }
19432 _ACEOF
19433 rm -f conftest.$ac_objext
19434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19435 (eval $ac_compile) 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -z "$ac_c_werror_flag"
19443 || test ! -s conftest.err'
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; } &&
19449 { ac_try='test -s conftest.$ac_objext'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; }; then
19455 ac_cv_have_decl_ptrace=yes
19456 else
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19459
19460 ac_cv_have_decl_ptrace=no
19461 fi
19462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19463 fi
19464 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
19465 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
19466 if test $ac_cv_have_decl_ptrace = yes; then
19467
19468 cat >>confdefs.h <<_ACEOF
19469 #define HAVE_DECL_PTRACE 1
19470 _ACEOF
19471
19472
19473 else
19474 cat >>confdefs.h <<_ACEOF
19475 #define HAVE_DECL_PTRACE 0
19476 _ACEOF
19477
19478
19479 : ${gdb_cv_func_ptrace_ret='int'}
19480 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
19481
19482 fi
19483
19484
19485 # Check return type.
19486 echo "$as_me:$LINENO: checking return type of ptrace" >&5
19487 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
19488 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19490 else
19491 cat >conftest.$ac_ext <<_ACEOF
19492 /* confdefs.h. */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19497 $gdb_ptrace_headers
19498 int
19499 main ()
19500 {
19501 extern int ptrace ();
19502 ;
19503 return 0;
19504 }
19505 _ACEOF
19506 rm -f conftest.$ac_objext
19507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19508 (eval $ac_compile) 2>conftest.er1
19509 ac_status=$?
19510 grep -v '^ *+' conftest.er1 >conftest.err
19511 rm -f conftest.er1
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } &&
19515 { ac_try='test -z "$ac_c_werror_flag"
19516 || test ! -s conftest.err'
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); }; } &&
19522 { ac_try='test -s conftest.$ac_objext'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 gdb_cv_func_ptrace_ret='int'
19529 else
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19532
19533 gdb_cv_func_ptrace_ret='long'
19534 fi
19535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19536 fi
19537 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
19538 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
19539
19540 cat >>confdefs.h <<_ACEOF
19541 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
19542 _ACEOF
19543
19544 # Check argument types.
19545 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
19546 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
19547 if test "${gdb_cv_func_ptrace_args+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550
19551 for gdb_arg1 in 'int' 'long'; do
19552 for gdb_arg2 in 'pid_t' 'int' 'long'; do
19553 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
19554 for gdb_arg4 in 'int' 'long'; do
19555 cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h. */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19561 $gdb_ptrace_headers
19562 int
19563 main ()
19564 {
19565
19566 extern $gdb_cv_func_ptrace_ret
19567 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
19568
19569 ;
19570 return 0;
19571 }
19572 _ACEOF
19573 rm -f conftest.$ac_objext
19574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19575 (eval $ac_compile) 2>conftest.er1
19576 ac_status=$?
19577 grep -v '^ *+' conftest.er1 >conftest.err
19578 rm -f conftest.er1
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } &&
19582 { ac_try='test -z "$ac_c_werror_flag"
19583 || test ! -s conftest.err'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest.$ac_objext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
19596 break 4;
19597 else
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601 fi
19602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19603 for gdb_arg5 in 'int *' 'int' 'long'; do
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h. */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 $gdb_ptrace_headers
19611 int
19612 main ()
19613 {
19614
19615 extern $gdb_cv_func_ptrace_ret
19616 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
19617
19618 ;
19619 return 0;
19620 }
19621 _ACEOF
19622 rm -f conftest.$ac_objext
19623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19624 (eval $ac_compile) 2>conftest.er1
19625 ac_status=$?
19626 grep -v '^ *+' conftest.er1 >conftest.err
19627 rm -f conftest.er1
19628 cat conftest.err >&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
19631 { ac_try='test -z "$ac_c_werror_flag"
19632 || test ! -s conftest.err'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19644
19645 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
19646 break 5;
19647 else
19648 echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19650
19651 fi
19652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19653 done
19654 done
19655 done
19656 done
19657 done
19658 # Provide a safe default value.
19659 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
19660
19661 fi
19662 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
19663 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
19664 ac_save_IFS=$IFS; IFS=','
19665 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
19666 IFS=$ac_save_IFS
19667 shift
19668
19669 cat >>confdefs.h <<_ACEOF
19670 #define PTRACE_TYPE_ARG3 $3
19671 _ACEOF
19672
19673 if test -n "$5"; then
19674
19675 cat >>confdefs.h <<_ACEOF
19676 #define PTRACE_TYPE_ARG5 $5
19677 _ACEOF
19678
19679 fi
19680
19681 if test "$cross_compiling" = no; then
19682 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19683 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19684 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687 if test "$cross_compiling" = yes; then
19688 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19689 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19690 { (exit 1); exit 1; }; }
19691 else
19692 cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h. */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19698 #if HAVE_UNISTD_H
19699 # include <unistd.h>
19700 #endif
19701
19702 int
19703 main ()
19704 {
19705 /* If this system has a BSD-style setpgrp which takes arguments,
19706 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19707 exit successfully. */
19708 exit (setpgrp (1,1) == -1 ? 0 : 1);
19709 ;
19710 return 0;
19711 }
19712 _ACEOF
19713 rm -f conftest$ac_exeext
19714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19715 (eval $ac_link) 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
19724 ac_cv_func_setpgrp_void=no
19725 else
19726 echo "$as_me: program exited with status $ac_status" >&5
19727 echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19729
19730 ( exit $ac_status )
19731 ac_cv_func_setpgrp_void=yes
19732 fi
19733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19734 fi
19735 fi
19736 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19737 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19738 if test $ac_cv_func_setpgrp_void = yes; then
19739
19740 cat >>confdefs.h <<\_ACEOF
19741 #define SETPGRP_VOID 1
19742 _ACEOF
19743
19744 fi
19745
19746 else
19747 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19748 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19749 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752 cat >conftest.$ac_ext <<_ACEOF
19753 /* confdefs.h. */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19758
19759 #include <unistd.h>
19760
19761 int
19762 main ()
19763 {
19764
19765 if (setpgrp(1,1) == -1)
19766 exit (0);
19767 else
19768 exit (1);
19769
19770 ;
19771 return 0;
19772 }
19773 _ACEOF
19774 rm -f conftest.$ac_objext
19775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19776 (eval $ac_compile) 2>conftest.er1
19777 ac_status=$?
19778 grep -v '^ *+' conftest.er1 >conftest.err
19779 rm -f conftest.er1
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } &&
19783 { ac_try='test -z "$ac_c_werror_flag"
19784 || test ! -s conftest.err'
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; } &&
19790 { ac_try='test -s conftest.$ac_objext'
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
19796 ac_cv_func_setpgrp_void=no
19797 else
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19800
19801 ac_cv_func_setpgrp_void=yes
19802 fi
19803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19804 fi
19805 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19806 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19807 if test $ac_cv_func_setpgrp_void = yes; then
19808 cat >>confdefs.h <<\_ACEOF
19809 #define SETPGRP_VOID 1
19810 _ACEOF
19811
19812 fi
19813 fi
19814
19815 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
19816 # since sigsetjmp might only be defined as a macro.
19817 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19818 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
19819 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19821 else
19822 cat >conftest.$ac_ext <<_ACEOF
19823 /* confdefs.h. */
19824 _ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19828
19829 #include <setjmp.h>
19830
19831 int
19832 main ()
19833 {
19834 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
19835 ;
19836 return 0;
19837 }
19838 _ACEOF
19839 rm -f conftest.$ac_objext
19840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19841 (eval $ac_compile) 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
19848 { ac_try='test -z "$ac_c_werror_flag"
19849 || test ! -s conftest.err'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; } &&
19855 { ac_try='test -s conftest.$ac_objext'
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; }; then
19861 gdb_cv_func_sigsetjmp=yes
19862 else
19863 echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19865
19866 gdb_cv_func_sigsetjmp=no
19867 fi
19868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19869 fi
19870 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
19871 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
19872 if test $gdb_cv_func_sigsetjmp = yes; then
19873
19874 cat >>confdefs.h <<\_ACEOF
19875 #define HAVE_SIGSETJMP 1
19876 _ACEOF
19877
19878 fi
19879
19880 # Assume we'll default to using the included libiberty regex.
19881 gdb_use_included_regex=yes
19882
19883 # However, if the system regex is GNU regex, then default to *not*
19884 # using the included regex.
19885 echo "$as_me:$LINENO: checking for GNU regex" >&5
19886 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
19887 if test "${gdb_cv_have_gnu_regex+set}" = set; then
19888 echo $ECHO_N "(cached) $ECHO_C" >&6
19889 else
19890 cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h. */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19896 #include <gnu-versions.h>
19897 int
19898 main ()
19899 {
19900 #define REGEX_INTERFACE_VERSION 1
19901 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
19902 # error "Version mismatch"
19903 #endif
19904 ;
19905 return 0;
19906 }
19907 _ACEOF
19908 rm -f conftest.$ac_objext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19910 (eval $ac_compile) 2>conftest.er1
19911 ac_status=$?
19912 grep -v '^ *+' conftest.er1 >conftest.err
19913 rm -f conftest.er1
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try='test -z "$ac_c_werror_flag"
19918 || test ! -s conftest.err'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try='test -s conftest.$ac_objext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 gdb_cv_have_gnu_regex=yes
19931 else
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934
19935 gdb_cv_have_gnu_regex=no
19936 fi
19937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19938 fi
19939 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
19940 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
19941 if test $gdb_cv_have_gnu_regex = yes; then
19942 gdb_use_included_regex=no
19943 fi
19944
19945
19946 # Check whether --with-included-regex or --without-included-regex was given.
19947 if test "${with_included_regex+set}" = set; then
19948 withval="$with_included_regex"
19949 gdb_with_regex=$withval
19950 else
19951 gdb_with_regex=$gdb_use_included_regex
19952 fi;
19953 if test "$gdb_with_regex" = yes; then
19954
19955 cat >>confdefs.h <<\_ACEOF
19956 #define USE_INCLUDED_REGEX 1
19957 _ACEOF
19958
19959 fi
19960
19961 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
19962 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
19963 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
19964 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h. */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 #include <sys/param.h>
19974 #include <sys/proc.h>
19975
19976
19977 int
19978 main ()
19979 {
19980 static struct thread ac_aggr;
19981 if (ac_aggr.td_pcb)
19982 return 0;
19983 ;
19984 return 0;
19985 }
19986 _ACEOF
19987 rm -f conftest.$ac_objext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19989 (eval $ac_compile) 2>conftest.er1
19990 ac_status=$?
19991 grep -v '^ *+' conftest.er1 >conftest.err
19992 rm -f conftest.er1
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try='test -z "$ac_c_werror_flag"
19997 || test ! -s conftest.err'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest.$ac_objext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20006 ac_status=$?
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
20009 ac_cv_member_struct_thread_td_pcb=yes
20010 else
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h. */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 #include <sys/param.h>
20021 #include <sys/proc.h>
20022
20023
20024 int
20025 main ()
20026 {
20027 static struct thread ac_aggr;
20028 if (sizeof ac_aggr.td_pcb)
20029 return 0;
20030 ;
20031 return 0;
20032 }
20033 _ACEOF
20034 rm -f conftest.$ac_objext
20035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20036 (eval $ac_compile) 2>conftest.er1
20037 ac_status=$?
20038 grep -v '^ *+' conftest.er1 >conftest.err
20039 rm -f conftest.er1
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } &&
20043 { ac_try='test -z "$ac_c_werror_flag"
20044 || test ! -s conftest.err'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; } &&
20050 { ac_try='test -s conftest.$ac_objext'
20051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052 (eval $ac_try) 2>&5
20053 ac_status=$?
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20056 ac_cv_member_struct_thread_td_pcb=yes
20057 else
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061 ac_cv_member_struct_thread_td_pcb=no
20062 fi
20063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20064 fi
20065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20066 fi
20067 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20068 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
20069 if test $ac_cv_member_struct_thread_td_pcb = yes; then
20070
20071 cat >>confdefs.h <<_ACEOF
20072 #define HAVE_STRUCT_THREAD_TD_PCB 1
20073 _ACEOF
20074
20075
20076 fi
20077
20078
20079 # See if <sys/lwp.h> defines `struct lwp`.
20080 echo "$as_me:$LINENO: checking for struct lwp" >&5
20081 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
20082 if test "${gdb_cv_struct_lwp+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 else
20085 cat >conftest.$ac_ext <<_ACEOF
20086 /* confdefs.h. */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20091 #include <sys/param.h>
20092 #include <sys/lwp.h>
20093 int
20094 main ()
20095 {
20096 struct lwp l;
20097 ;
20098 return 0;
20099 }
20100 _ACEOF
20101 rm -f conftest.$ac_objext
20102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20103 (eval $ac_compile) 2>conftest.er1
20104 ac_status=$?
20105 grep -v '^ *+' conftest.er1 >conftest.err
20106 rm -f conftest.er1
20107 cat conftest.err >&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } &&
20110 { ac_try='test -z "$ac_c_werror_flag"
20111 || test ! -s conftest.err'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; } &&
20117 { ac_try='test -s conftest.$ac_objext'
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; }; then
20123 gdb_cv_struct_lwp=yes
20124 else
20125 echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20127
20128 gdb_cv_struct_lwp=no
20129 fi
20130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20131 fi
20132 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20133 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
20134 if test $gdb_cv_struct_lwp = yes; then
20135
20136 cat >>confdefs.h <<\_ACEOF
20137 #define HAVE_STRUCT_LWP 1
20138 _ACEOF
20139
20140 fi
20141
20142 # See if <machine/reg.h> degines `struct reg'.
20143 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20144 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
20145 if test "${gdb_cv_struct_reg+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 else
20148 cat >conftest.$ac_ext <<_ACEOF
20149 /* confdefs.h. */
20150 _ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h. */
20154 #include <sys/types.h>
20155 #include <machine/reg.h>
20156 int
20157 main ()
20158 {
20159 struct reg r;
20160 ;
20161 return 0;
20162 }
20163 _ACEOF
20164 rm -f conftest.$ac_objext
20165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20166 (eval $ac_compile) 2>conftest.er1
20167 ac_status=$?
20168 grep -v '^ *+' conftest.er1 >conftest.err
20169 rm -f conftest.er1
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } &&
20173 { ac_try='test -z "$ac_c_werror_flag"
20174 || test ! -s conftest.err'
20175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176 (eval $ac_try) 2>&5
20177 ac_status=$?
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); }; } &&
20180 { ac_try='test -s conftest.$ac_objext'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; }; then
20186 gdb_cv_struct_reg=yes
20187 else
20188 echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20190
20191 gdb_cv_struct_reg=no
20192 fi
20193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20194 fi
20195 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20196 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
20197 if test $gdb_cv_struct_reg = yes; then
20198
20199 cat >>confdefs.h <<\_ACEOF
20200 #define HAVE_STRUCT_REG 1
20201 _ACEOF
20202
20203 fi
20204
20205 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20206 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
20207 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20208 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
20209 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212 cat >conftest.$ac_ext <<_ACEOF
20213 /* confdefs.h. */
20214 _ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 #include <machine/reg.h>
20219
20220 int
20221 main ()
20222 {
20223 static struct reg ac_aggr;
20224 if (ac_aggr.r_fs)
20225 return 0;
20226 ;
20227 return 0;
20228 }
20229 _ACEOF
20230 rm -f conftest.$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232 (eval $ac_compile) 2>conftest.er1
20233 ac_status=$?
20234 grep -v '^ *+' conftest.er1 >conftest.err
20235 rm -f conftest.er1
20236 cat conftest.err >&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } &&
20239 { ac_try='test -z "$ac_c_werror_flag"
20240 || test ! -s conftest.err'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; } &&
20246 { ac_try='test -s conftest.$ac_objext'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 ac_cv_member_struct_reg_r_fs=yes
20253 else
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20256
20257 cat >conftest.$ac_ext <<_ACEOF
20258 /* confdefs.h. */
20259 _ACEOF
20260 cat confdefs.h >>conftest.$ac_ext
20261 cat >>conftest.$ac_ext <<_ACEOF
20262 /* end confdefs.h. */
20263 #include <machine/reg.h>
20264
20265 int
20266 main ()
20267 {
20268 static struct reg ac_aggr;
20269 if (sizeof ac_aggr.r_fs)
20270 return 0;
20271 ;
20272 return 0;
20273 }
20274 _ACEOF
20275 rm -f conftest.$ac_objext
20276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20277 (eval $ac_compile) 2>conftest.er1
20278 ac_status=$?
20279 grep -v '^ *+' conftest.er1 >conftest.err
20280 rm -f conftest.er1
20281 cat conftest.err >&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } &&
20284 { ac_try='test -z "$ac_c_werror_flag"
20285 || test ! -s conftest.err'
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } &&
20291 { ac_try='test -s conftest.$ac_objext'
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_cv_member_struct_reg_r_fs=yes
20298 else
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302 ac_cv_member_struct_reg_r_fs=no
20303 fi
20304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20305 fi
20306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20307 fi
20308 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
20309 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
20310 if test $ac_cv_member_struct_reg_r_fs = yes; then
20311
20312 cat >>confdefs.h <<_ACEOF
20313 #define HAVE_STRUCT_REG_R_FS 1
20314 _ACEOF
20315
20316
20317 fi
20318 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
20319 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
20320 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20322 else
20323 cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h. */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 #include <machine/reg.h>
20330
20331 int
20332 main ()
20333 {
20334 static struct reg ac_aggr;
20335 if (ac_aggr.r_gs)
20336 return 0;
20337 ;
20338 return 0;
20339 }
20340 _ACEOF
20341 rm -f conftest.$ac_objext
20342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20343 (eval $ac_compile) 2>conftest.er1
20344 ac_status=$?
20345 grep -v '^ *+' conftest.er1 >conftest.err
20346 rm -f conftest.er1
20347 cat conftest.err >&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); } &&
20350 { ac_try='test -z "$ac_c_werror_flag"
20351 || test ! -s conftest.err'
20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; } &&
20357 { ac_try='test -s conftest.$ac_objext'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; }; then
20363 ac_cv_member_struct_reg_r_gs=yes
20364 else
20365 echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368 cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h. */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20374 #include <machine/reg.h>
20375
20376 int
20377 main ()
20378 {
20379 static struct reg ac_aggr;
20380 if (sizeof ac_aggr.r_gs)
20381 return 0;
20382 ;
20383 return 0;
20384 }
20385 _ACEOF
20386 rm -f conftest.$ac_objext
20387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20388 (eval $ac_compile) 2>conftest.er1
20389 ac_status=$?
20390 grep -v '^ *+' conftest.er1 >conftest.err
20391 rm -f conftest.er1
20392 cat conftest.err >&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } &&
20395 { ac_try='test -z "$ac_c_werror_flag"
20396 || test ! -s conftest.err'
20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398 (eval $ac_try) 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; } &&
20402 { ac_try='test -s conftest.$ac_objext'
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20408 ac_cv_member_struct_reg_r_gs=yes
20409 else
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413 ac_cv_member_struct_reg_r_gs=no
20414 fi
20415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20416 fi
20417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20418 fi
20419 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
20420 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
20421 if test $ac_cv_member_struct_reg_r_gs = yes; then
20422
20423 cat >>confdefs.h <<_ACEOF
20424 #define HAVE_STRUCT_REG_R_GS 1
20425 _ACEOF
20426
20427
20428 fi
20429
20430
20431 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
20432 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
20433 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
20434 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437 cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h. */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443 #include <sys/ptrace.h>
20444 int
20445 main ()
20446 {
20447 PTRACE_GETREGS;
20448 ;
20449 return 0;
20450 }
20451 _ACEOF
20452 rm -f conftest.$ac_objext
20453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20454 (eval $ac_compile) 2>conftest.er1
20455 ac_status=$?
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
20461 { ac_try='test -z "$ac_c_werror_flag"
20462 || test ! -s conftest.err'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; } &&
20468 { ac_try='test -s conftest.$ac_objext'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
20474 gdb_cv_have_ptrace_getregs=yes
20475 else
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479 gdb_cv_have_ptrace_getregs=no
20480 fi
20481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20482 fi
20483
20484 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
20485 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
20486 if test $gdb_cv_have_ptrace_getregs = yes; then
20487
20488 cat >>confdefs.h <<\_ACEOF
20489 #define HAVE_PTRACE_GETREGS 1
20490 _ACEOF
20491
20492 fi
20493
20494 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
20495 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
20496 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
20497 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
20498 echo $ECHO_N "(cached) $ECHO_C" >&6
20499 else
20500 cat >conftest.$ac_ext <<_ACEOF
20501 /* confdefs.h. */
20502 _ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20506 #include <sys/ptrace.h>
20507 int
20508 main ()
20509 {
20510 PTRACE_GETFPXREGS;
20511 ;
20512 return 0;
20513 }
20514 _ACEOF
20515 rm -f conftest.$ac_objext
20516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20517 (eval $ac_compile) 2>conftest.er1
20518 ac_status=$?
20519 grep -v '^ *+' conftest.er1 >conftest.err
20520 rm -f conftest.er1
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } &&
20524 { ac_try='test -z "$ac_c_werror_flag"
20525 || test ! -s conftest.err'
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20528 ac_status=$?
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; } &&
20531 { ac_try='test -s conftest.$ac_objext'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20534 ac_status=$?
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; }; then
20537 gdb_cv_have_ptrace_getfpxregs=yes
20538 else
20539 echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20541
20542 gdb_cv_have_ptrace_getfpxregs=no
20543 fi
20544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20545 fi
20546
20547 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
20548 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
20549 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
20550
20551 cat >>confdefs.h <<\_ACEOF
20552 #define HAVE_PTRACE_GETFPXREGS 1
20553 _ACEOF
20554
20555 fi
20556
20557 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
20558 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
20559 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
20560 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563 cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h. */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20569 #include <sys/types.h>
20570 #include <sys/ptrace.h>
20571 int
20572 main ()
20573 {
20574 PT_GETDBREGS;
20575 ;
20576 return 0;
20577 }
20578 _ACEOF
20579 rm -f conftest.$ac_objext
20580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20581 (eval $ac_compile) 2>conftest.er1
20582 ac_status=$?
20583 grep -v '^ *+' conftest.er1 >conftest.err
20584 rm -f conftest.er1
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } &&
20588 { ac_try='test -z "$ac_c_werror_flag"
20589 || test ! -s conftest.err'
20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20591 (eval $ac_try) 2>&5
20592 ac_status=$?
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; } &&
20595 { ac_try='test -s conftest.$ac_objext'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20601 gdb_cv_have_pt_getdbregs=yes
20602 else
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20605
20606 gdb_cv_have_pt_getdbregs=no
20607 fi
20608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20609 fi
20610
20611 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
20612 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
20613 if test $gdb_cv_have_pt_getdbregs = yes; then
20614
20615 cat >>confdefs.h <<\_ACEOF
20616 #define HAVE_PT_GETDBREGS 1
20617 _ACEOF
20618
20619 fi
20620
20621 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
20622 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
20623 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
20624 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
20625 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 else
20627 cat >conftest.$ac_ext <<_ACEOF
20628 /* confdefs.h. */
20629 _ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20633 #include <sys/types.h>
20634 #include <sys/ptrace.h>
20635 int
20636 main ()
20637 {
20638 PT_GETXMMREGS;
20639 ;
20640 return 0;
20641 }
20642 _ACEOF
20643 rm -f conftest.$ac_objext
20644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20645 (eval $ac_compile) 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } &&
20652 { ac_try='test -z "$ac_c_werror_flag"
20653 || test ! -s conftest.err'
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20656 ac_status=$?
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; } &&
20659 { ac_try='test -s conftest.$ac_objext'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 gdb_cv_have_pt_getxmmregs=yes
20666 else
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 gdb_cv_have_pt_getxmmregs=no
20671 fi
20672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20673 fi
20674
20675 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
20676 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
20677 if test $gdb_cv_have_pt_getxmmregs = yes; then
20678
20679 cat >>confdefs.h <<\_ACEOF
20680 #define HAVE_PT_GETXMMREGS 1
20681 _ACEOF
20682
20683 fi
20684
20685 # If we are configured native on GNU/Linux, work around problems with
20686 # sys/procfs.h
20687 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
20688
20689 if test "${target}" = "${host}"; then
20690 case "${host}" in
20691 i[3456]86-*-linux*)
20692
20693 cat >>confdefs.h <<\_ACEOF
20694 #define START_INFERIOR_TRAPS_EXPECTED 2
20695 _ACEOF
20696
20697
20698 cat >>confdefs.h <<\_ACEOF
20699 #define sys_quotactl 1
20700 _ACEOF
20701
20702 ;;
20703 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
20704
20705 cat >>confdefs.h <<\_ACEOF
20706 #define NEW_PROC_API 1
20707 _ACEOF
20708
20709 ;;
20710 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
20711
20712 cat >>confdefs.h <<\_ACEOF
20713 #define NEW_PROC_API 1
20714 _ACEOF
20715
20716 ;;
20717 mips-sgi-irix5*)
20718 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
20719
20720 cat >>confdefs.h <<\_ACEOF
20721 #define _KMEMUSER 1
20722 _ACEOF
20723
20724 ;;
20725 esac
20726 fi
20727
20728 if test "$ac_cv_header_sys_procfs_h" = yes; then
20729 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
20730 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
20731 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 else
20734 cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h. */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740
20741 #define _SYSCALL32
20742 #include <sys/procfs.h>
20743 int
20744 main ()
20745 {
20746 pstatus_t avar
20747 ;
20748 return 0;
20749 }
20750 _ACEOF
20751 rm -f conftest.$ac_objext
20752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20753 (eval $ac_compile) 2>conftest.er1
20754 ac_status=$?
20755 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } &&
20760 { ac_try='test -z "$ac_c_werror_flag"
20761 || test ! -s conftest.err'
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; } &&
20767 { ac_try='test -s conftest.$ac_objext'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; }; then
20773 bfd_cv_have_sys_procfs_type_pstatus_t=yes
20774 else
20775 echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20777
20778 bfd_cv_have_sys_procfs_type_pstatus_t=no
20779
20780 fi
20781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20782 fi
20783
20784 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
20785
20786 cat >>confdefs.h <<\_ACEOF
20787 #define HAVE_PSTATUS_T 1
20788 _ACEOF
20789
20790 fi
20791 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
20792 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
20793
20794 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
20795 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
20796 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799 cat >conftest.$ac_ext <<_ACEOF
20800 /* confdefs.h. */
20801 _ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h. */
20805
20806 #define _SYSCALL32
20807 #include <sys/procfs.h>
20808 int
20809 main ()
20810 {
20811 prrun_t avar
20812 ;
20813 return 0;
20814 }
20815 _ACEOF
20816 rm -f conftest.$ac_objext
20817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20818 (eval $ac_compile) 2>conftest.er1
20819 ac_status=$?
20820 grep -v '^ *+' conftest.er1 >conftest.err
20821 rm -f conftest.er1
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } &&
20825 { ac_try='test -z "$ac_c_werror_flag"
20826 || test ! -s conftest.err'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; } &&
20832 { ac_try='test -s conftest.$ac_objext'
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20835 ac_status=$?
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; }; then
20838 bfd_cv_have_sys_procfs_type_prrun_t=yes
20839 else
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20842
20843 bfd_cv_have_sys_procfs_type_prrun_t=no
20844
20845 fi
20846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20847 fi
20848
20849 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
20850
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_PRRUN_T 1
20853 _ACEOF
20854
20855 fi
20856 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
20857 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
20858
20859 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
20860 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
20861 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864 cat >conftest.$ac_ext <<_ACEOF
20865 /* confdefs.h. */
20866 _ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20870
20871 #define _SYSCALL32
20872 #include <sys/procfs.h>
20873 int
20874 main ()
20875 {
20876 gregset_t avar
20877 ;
20878 return 0;
20879 }
20880 _ACEOF
20881 rm -f conftest.$ac_objext
20882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20883 (eval $ac_compile) 2>conftest.er1
20884 ac_status=$?
20885 grep -v '^ *+' conftest.er1 >conftest.err
20886 rm -f conftest.er1
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } &&
20890 { ac_try='test -z "$ac_c_werror_flag"
20891 || test ! -s conftest.err'
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20894 ac_status=$?
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; } &&
20897 { ac_try='test -s conftest.$ac_objext'
20898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899 (eval $ac_try) 2>&5
20900 ac_status=$?
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
20903 bfd_cv_have_sys_procfs_type_gregset_t=yes
20904 else
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908 bfd_cv_have_sys_procfs_type_gregset_t=no
20909
20910 fi
20911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20912 fi
20913
20914 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
20915
20916 cat >>confdefs.h <<\_ACEOF
20917 #define HAVE_GREGSET_T 1
20918 _ACEOF
20919
20920 fi
20921 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
20922 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
20923
20924 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
20925 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
20926 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
20927 echo $ECHO_N "(cached) $ECHO_C" >&6
20928 else
20929 cat >conftest.$ac_ext <<_ACEOF
20930 /* confdefs.h. */
20931 _ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20935
20936 #define _SYSCALL32
20937 #include <sys/procfs.h>
20938 int
20939 main ()
20940 {
20941 fpregset_t avar
20942 ;
20943 return 0;
20944 }
20945 _ACEOF
20946 rm -f conftest.$ac_objext
20947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20948 (eval $ac_compile) 2>conftest.er1
20949 ac_status=$?
20950 grep -v '^ *+' conftest.er1 >conftest.err
20951 rm -f conftest.er1
20952 cat conftest.err >&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); } &&
20955 { ac_try='test -z "$ac_c_werror_flag"
20956 || test ! -s conftest.err'
20957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958 (eval $ac_try) 2>&5
20959 ac_status=$?
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; } &&
20962 { ac_try='test -s conftest.$ac_objext'
20963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964 (eval $ac_try) 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; }; then
20968 bfd_cv_have_sys_procfs_type_fpregset_t=yes
20969 else
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20972
20973 bfd_cv_have_sys_procfs_type_fpregset_t=no
20974
20975 fi
20976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20977 fi
20978
20979 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
20980
20981 cat >>confdefs.h <<\_ACEOF
20982 #define HAVE_FPREGSET_T 1
20983 _ACEOF
20984
20985 fi
20986 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
20987 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
20988
20989 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
20990 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
20991 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20994 cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h. */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21000
21001 #define _SYSCALL32
21002 #include <sys/procfs.h>
21003 int
21004 main ()
21005 {
21006 prgregset_t avar
21007 ;
21008 return 0;
21009 }
21010 _ACEOF
21011 rm -f conftest.$ac_objext
21012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21013 (eval $ac_compile) 2>conftest.er1
21014 ac_status=$?
21015 grep -v '^ *+' conftest.er1 >conftest.err
21016 rm -f conftest.er1
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } &&
21020 { ac_try='test -z "$ac_c_werror_flag"
21021 || test ! -s conftest.err'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; } &&
21027 { ac_try='test -s conftest.$ac_objext'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 bfd_cv_have_sys_procfs_type_prgregset_t=yes
21034 else
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21037
21038 bfd_cv_have_sys_procfs_type_prgregset_t=no
21039
21040 fi
21041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21042 fi
21043
21044 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
21045
21046 cat >>confdefs.h <<\_ACEOF
21047 #define HAVE_PRGREGSET_T 1
21048 _ACEOF
21049
21050 fi
21051 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21052 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
21053
21054 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21055 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
21056 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059 cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h. */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h. */
21065
21066 #define _SYSCALL32
21067 #include <sys/procfs.h>
21068 int
21069 main ()
21070 {
21071 prfpregset_t avar
21072 ;
21073 return 0;
21074 }
21075 _ACEOF
21076 rm -f conftest.$ac_objext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21078 (eval $ac_compile) 2>conftest.er1
21079 ac_status=$?
21080 grep -v '^ *+' conftest.er1 >conftest.err
21081 rm -f conftest.er1
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
21085 { ac_try='test -z "$ac_c_werror_flag"
21086 || test ! -s conftest.err'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest.$ac_objext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
21099 else
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21102
21103 bfd_cv_have_sys_procfs_type_prfpregset_t=no
21104
21105 fi
21106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21107 fi
21108
21109 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21110
21111 cat >>confdefs.h <<\_ACEOF
21112 #define HAVE_PRFPREGSET_T 1
21113 _ACEOF
21114
21115 fi
21116 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21117 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
21118
21119 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21120 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
21121 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 else
21124 cat >conftest.$ac_ext <<_ACEOF
21125 /* confdefs.h. */
21126 _ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h. */
21130
21131 #define _SYSCALL32
21132 #include <sys/procfs.h>
21133 int
21134 main ()
21135 {
21136 prgregset32_t avar
21137 ;
21138 return 0;
21139 }
21140 _ACEOF
21141 rm -f conftest.$ac_objext
21142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21143 (eval $ac_compile) 2>conftest.er1
21144 ac_status=$?
21145 grep -v '^ *+' conftest.er1 >conftest.err
21146 rm -f conftest.er1
21147 cat conftest.err >&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } &&
21150 { ac_try='test -z "$ac_c_werror_flag"
21151 || test ! -s conftest.err'
21152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153 (eval $ac_try) 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; } &&
21157 { ac_try='test -s conftest.$ac_objext'
21158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21159 (eval $ac_try) 2>&5
21160 ac_status=$?
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); }; }; then
21163 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
21164 else
21165 echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21167
21168 bfd_cv_have_sys_procfs_type_prgregset32_t=no
21169
21170 fi
21171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21172 fi
21173
21174 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
21175
21176 cat >>confdefs.h <<\_ACEOF
21177 #define HAVE_PRGREGSET32_T 1
21178 _ACEOF
21179
21180 fi
21181 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21182 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
21183
21184 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21185 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
21186 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21187 echo $ECHO_N "(cached) $ECHO_C" >&6
21188 else
21189 cat >conftest.$ac_ext <<_ACEOF
21190 /* confdefs.h. */
21191 _ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h. */
21195
21196 #define _SYSCALL32
21197 #include <sys/procfs.h>
21198 int
21199 main ()
21200 {
21201 prfpregset32_t avar
21202 ;
21203 return 0;
21204 }
21205 _ACEOF
21206 rm -f conftest.$ac_objext
21207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21208 (eval $ac_compile) 2>conftest.er1
21209 ac_status=$?
21210 grep -v '^ *+' conftest.er1 >conftest.err
21211 rm -f conftest.er1
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } &&
21215 { ac_try='test -z "$ac_c_werror_flag"
21216 || test ! -s conftest.err'
21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218 (eval $ac_try) 2>&5
21219 ac_status=$?
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); }; } &&
21222 { ac_try='test -s conftest.$ac_objext'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; }; then
21228 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
21229 else
21230 echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21232
21233 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
21234
21235 fi
21236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21237 fi
21238
21239 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
21240
21241 cat >>confdefs.h <<\_ACEOF
21242 #define HAVE_PRFPREGSET32_T 1
21243 _ACEOF
21244
21245 fi
21246 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21247 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
21248
21249 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21250 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
21251 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21253 else
21254 cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h. */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260
21261 #define _SYSCALL32
21262 #include <sys/procfs.h>
21263 int
21264 main ()
21265 {
21266 lwpid_t avar
21267 ;
21268 return 0;
21269 }
21270 _ACEOF
21271 rm -f conftest.$ac_objext
21272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21273 (eval $ac_compile) 2>conftest.er1
21274 ac_status=$?
21275 grep -v '^ *+' conftest.er1 >conftest.err
21276 rm -f conftest.er1
21277 cat conftest.err >&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } &&
21280 { ac_try='test -z "$ac_c_werror_flag"
21281 || test ! -s conftest.err'
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21284 ac_status=$?
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; } &&
21287 { ac_try='test -s conftest.$ac_objext'
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21290 ac_status=$?
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; }; then
21293 bfd_cv_have_sys_procfs_type_lwpid_t=yes
21294 else
21295 echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21297
21298 bfd_cv_have_sys_procfs_type_lwpid_t=no
21299
21300 fi
21301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21302 fi
21303
21304 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
21305
21306 cat >>confdefs.h <<\_ACEOF
21307 #define HAVE_LWPID_T 1
21308 _ACEOF
21309
21310 fi
21311 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21312 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
21313
21314 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
21315 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
21316 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
21317 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 else
21319 cat >conftest.$ac_ext <<_ACEOF
21320 /* confdefs.h. */
21321 _ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h. */
21325
21326 #define _SYSCALL32
21327 #include <sys/procfs.h>
21328 int
21329 main ()
21330 {
21331 psaddr_t avar
21332 ;
21333 return 0;
21334 }
21335 _ACEOF
21336 rm -f conftest.$ac_objext
21337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21338 (eval $ac_compile) 2>conftest.er1
21339 ac_status=$?
21340 grep -v '^ *+' conftest.er1 >conftest.err
21341 rm -f conftest.er1
21342 cat conftest.err >&5
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); } &&
21345 { ac_try='test -z "$ac_c_werror_flag"
21346 || test ! -s conftest.err'
21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21349 ac_status=$?
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; } &&
21352 { ac_try='test -s conftest.$ac_objext'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; }; then
21358 bfd_cv_have_sys_procfs_type_psaddr_t=yes
21359 else
21360 echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21362
21363 bfd_cv_have_sys_procfs_type_psaddr_t=no
21364
21365 fi
21366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21367 fi
21368
21369 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
21370
21371 cat >>confdefs.h <<\_ACEOF
21372 #define HAVE_PSADDR_T 1
21373 _ACEOF
21374
21375 fi
21376 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21377 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
21378
21379 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
21380 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
21381 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21383 else
21384 cat >conftest.$ac_ext <<_ACEOF
21385 /* confdefs.h. */
21386 _ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h. */
21390
21391 #define _SYSCALL32
21392 #include <sys/procfs.h>
21393 int
21394 main ()
21395 {
21396 prsysent_t avar
21397 ;
21398 return 0;
21399 }
21400 _ACEOF
21401 rm -f conftest.$ac_objext
21402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21403 (eval $ac_compile) 2>conftest.er1
21404 ac_status=$?
21405 grep -v '^ *+' conftest.er1 >conftest.err
21406 rm -f conftest.er1
21407 cat conftest.err >&5
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } &&
21410 { ac_try='test -z "$ac_c_werror_flag"
21411 || test ! -s conftest.err'
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21414 ac_status=$?
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; } &&
21417 { ac_try='test -s conftest.$ac_objext'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 bfd_cv_have_sys_procfs_type_prsysent_t=yes
21424 else
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21427
21428 bfd_cv_have_sys_procfs_type_prsysent_t=no
21429
21430 fi
21431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21432 fi
21433
21434 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
21435
21436 cat >>confdefs.h <<\_ACEOF
21437 #define HAVE_PRSYSENT_T 1
21438 _ACEOF
21439
21440 fi
21441 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
21442 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
21443
21444 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
21445 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
21446 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
21447 echo $ECHO_N "(cached) $ECHO_C" >&6
21448 else
21449 cat >conftest.$ac_ext <<_ACEOF
21450 /* confdefs.h. */
21451 _ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h. */
21455
21456 #define _SYSCALL32
21457 #include <sys/procfs.h>
21458 int
21459 main ()
21460 {
21461 pr_sigset_t avar
21462 ;
21463 return 0;
21464 }
21465 _ACEOF
21466 rm -f conftest.$ac_objext
21467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21468 (eval $ac_compile) 2>conftest.er1
21469 ac_status=$?
21470 grep -v '^ *+' conftest.er1 >conftest.err
21471 rm -f conftest.er1
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
21475 { ac_try='test -z "$ac_c_werror_flag"
21476 || test ! -s conftest.err'
21477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21478 (eval $ac_try) 2>&5
21479 ac_status=$?
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; } &&
21482 { ac_try='test -s conftest.$ac_objext'
21483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484 (eval $ac_try) 2>&5
21485 ac_status=$?
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; }; then
21488 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
21489 else
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21492
21493 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
21494
21495 fi
21496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21497 fi
21498
21499 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
21500
21501 cat >>confdefs.h <<\_ACEOF
21502 #define HAVE_PR_SIGSET_T 1
21503 _ACEOF
21504
21505 fi
21506 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
21507 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
21508
21509 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
21510 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
21511 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
21512 echo $ECHO_N "(cached) $ECHO_C" >&6
21513 else
21514 cat >conftest.$ac_ext <<_ACEOF
21515 /* confdefs.h. */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520
21521 #define _SYSCALL32
21522 #include <sys/procfs.h>
21523 int
21524 main ()
21525 {
21526 pr_sigaction64_t avar
21527 ;
21528 return 0;
21529 }
21530 _ACEOF
21531 rm -f conftest.$ac_objext
21532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21533 (eval $ac_compile) 2>conftest.er1
21534 ac_status=$?
21535 grep -v '^ *+' conftest.er1 >conftest.err
21536 rm -f conftest.er1
21537 cat conftest.err >&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } &&
21540 { ac_try='test -z "$ac_c_werror_flag"
21541 || test ! -s conftest.err'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21544 ac_status=$?
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; } &&
21547 { ac_try='test -s conftest.$ac_objext'
21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549 (eval $ac_try) 2>&5
21550 ac_status=$?
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; }; then
21553 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
21554 else
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21557
21558 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
21559
21560 fi
21561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21562 fi
21563
21564 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
21565
21566 cat >>confdefs.h <<\_ACEOF
21567 #define HAVE_PR_SIGACTION64_T 1
21568 _ACEOF
21569
21570 fi
21571 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
21572 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
21573
21574 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
21575 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
21576 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 else
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h. */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585
21586 #define _SYSCALL32
21587 #include <sys/procfs.h>
21588 int
21589 main ()
21590 {
21591 pr_siginfo64_t avar
21592 ;
21593 return 0;
21594 }
21595 _ACEOF
21596 rm -f conftest.$ac_objext
21597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21598 (eval $ac_compile) 2>conftest.er1
21599 ac_status=$?
21600 grep -v '^ *+' conftest.er1 >conftest.err
21601 rm -f conftest.er1
21602 cat conftest.err >&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } &&
21605 { ac_try='test -z "$ac_c_werror_flag"
21606 || test ! -s conftest.err'
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; } &&
21612 { ac_try='test -s conftest.$ac_objext'
21613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614 (eval $ac_try) 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; }; then
21618 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
21619 else
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21622
21623 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
21624
21625 fi
21626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21627 fi
21628
21629 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
21630
21631 cat >>confdefs.h <<\_ACEOF
21632 #define HAVE_PR_SIGINFO64_T 1
21633 _ACEOF
21634
21635 fi
21636 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
21637 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
21638
21639
21640
21641
21642
21643 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21644 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
21645 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
21646 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21648 else
21649 if test "$cross_compiling" = yes; then
21650 gdb_cv_prfpregset_t_broken=yes
21651 else
21652 cat >conftest.$ac_ext <<_ACEOF
21653 /* confdefs.h. */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21658 #include <sys/procfs.h>
21659 int main ()
21660 {
21661 if (sizeof (prfpregset_t) == sizeof (void *))
21662 return 1;
21663 return 0;
21664 }
21665 _ACEOF
21666 rm -f conftest$ac_exeext
21667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21668 (eval $ac_link) 2>&5
21669 ac_status=$?
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21674 ac_status=$?
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
21677 gdb_cv_prfpregset_t_broken=no
21678 else
21679 echo "$as_me: program exited with status $ac_status" >&5
21680 echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21682
21683 ( exit $ac_status )
21684 gdb_cv_prfpregset_t_broken=yes
21685 fi
21686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21687 fi
21688 fi
21689
21690 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
21691 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
21692 if test $gdb_cv_prfpregset_t_broken = yes; then
21693
21694 cat >>confdefs.h <<\_ACEOF
21695 #define PRFPREGSET_T_BROKEN 1
21696 _ACEOF
21697
21698 fi
21699 fi
21700
21701
21702 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
21703 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
21704 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
21705 echo $ECHO_N "(cached) $ECHO_C" >&6
21706 else
21707 cat >conftest.$ac_ext <<_ACEOF
21708 /* confdefs.h. */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h. */
21713 #include <unistd.h>
21714 #include <sys/types.h>
21715 #include <sys/procfs.h>
21716
21717 int
21718 main ()
21719 {
21720
21721 int dummy;;
21722 dummy = ioctl(0, PIOCSET, &dummy);
21723
21724 ;
21725 return 0;
21726 }
21727 _ACEOF
21728 rm -f conftest.$ac_objext
21729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21730 (eval $ac_compile) 2>conftest.er1
21731 ac_status=$?
21732 grep -v '^ *+' conftest.er1 >conftest.err
21733 rm -f conftest.er1
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } &&
21737 { ac_try='test -z "$ac_c_werror_flag"
21738 || test ! -s conftest.err'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; } &&
21744 { ac_try='test -s conftest.$ac_objext'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 gdb_cv_have_procfs_piocset=yes
21751 else
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21754
21755 gdb_cv_have_procfs_piocset=no
21756 fi
21757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21758 fi
21759
21760 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
21761 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
21762 if test $gdb_cv_have_procfs_piocset = yes; then
21763
21764 cat >>confdefs.h <<\_ACEOF
21765 #define HAVE_PROCFS_PIOCSET 1
21766 _ACEOF
21767
21768 fi
21769 fi
21770
21771 if test ${host} = ${target} ; then
21772
21773 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
21774 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
21775 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21777 else
21778 cat >conftest.$ac_ext <<_ACEOF
21779 /* confdefs.h. */
21780 _ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h. */
21784 #include <link.h>
21785 int
21786 main ()
21787 {
21788 struct link_map lm; (void) lm.l_addr;
21789 ;
21790 return 0;
21791 }
21792 _ACEOF
21793 rm -f conftest.$ac_objext
21794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21795 (eval $ac_compile) 2>conftest.er1
21796 ac_status=$?
21797 grep -v '^ *+' conftest.er1 >conftest.err
21798 rm -f conftest.er1
21799 cat conftest.err >&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } &&
21802 { ac_try='test -z "$ac_c_werror_flag"
21803 || test ! -s conftest.err'
21804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805 (eval $ac_try) 2>&5
21806 ac_status=$?
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); }; } &&
21809 { ac_try='test -s conftest.$ac_objext'
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21812 ac_status=$?
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; }; then
21815 gdb_cv_have_struct_link_map_with_l_members=yes
21816 else
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21819
21820 gdb_cv_have_struct_link_map_with_l_members=no
21821 fi
21822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21823 fi
21824
21825 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
21826 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
21827 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
21828
21829 cat >>confdefs.h <<\_ACEOF
21830 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
21831 _ACEOF
21832
21833 fi
21834
21835
21836 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
21837 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
21838 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841 cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h. */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 #include <sys/types.h>
21848 #include <link.h>
21849 int
21850 main ()
21851 {
21852 struct link_map lm; (void) lm.lm_addr;
21853 ;
21854 return 0;
21855 }
21856 _ACEOF
21857 rm -f conftest.$ac_objext
21858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21859 (eval $ac_compile) 2>conftest.er1
21860 ac_status=$?
21861 grep -v '^ *+' conftest.er1 >conftest.err
21862 rm -f conftest.er1
21863 cat conftest.err >&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } &&
21866 { ac_try='test -z "$ac_c_werror_flag"
21867 || test ! -s conftest.err'
21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; } &&
21873 { ac_try='test -s conftest.$ac_objext'
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21876 ac_status=$?
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; }; then
21879 gdb_cv_have_struct_link_map_with_lm_members=yes
21880 else
21881 echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21883
21884 gdb_cv_have_struct_link_map_with_lm_members=no
21885 fi
21886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21887 fi
21888
21889 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
21890 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
21891 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
21892
21893 cat >>confdefs.h <<\_ACEOF
21894 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
21895 _ACEOF
21896
21897 fi
21898
21899
21900 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
21901 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
21902 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 else
21905 cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h. */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21911 #include <sys/types.h>
21912 #ifdef HAVE_NLIST_H
21913 #include <nlist.h>
21914 #endif
21915 #include <link.h>
21916 int
21917 main ()
21918 {
21919 struct so_map lm; (void) lm.som_addr;
21920 ;
21921 return 0;
21922 }
21923 _ACEOF
21924 rm -f conftest.$ac_objext
21925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21926 (eval $ac_compile) 2>conftest.er1
21927 ac_status=$?
21928 grep -v '^ *+' conftest.er1 >conftest.err
21929 rm -f conftest.er1
21930 cat conftest.err >&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } &&
21933 { ac_try='test -z "$ac_c_werror_flag"
21934 || test ! -s conftest.err'
21935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21937 ac_status=$?
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; } &&
21940 { ac_try='test -s conftest.$ac_objext'
21941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21942 (eval $ac_try) 2>&5
21943 ac_status=$?
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); }; }; then
21946 gdb_cv_have_struct_so_map_with_som_members=yes
21947 else
21948 echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21950
21951 gdb_cv_have_struct_so_map_with_som_members=no
21952 fi
21953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21954 fi
21955
21956 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
21957 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
21958 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
21959
21960 cat >>confdefs.h <<\_ACEOF
21961 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
21962 _ACEOF
21963
21964 fi
21965
21966
21967 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
21968 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
21969 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
21970 echo $ECHO_N "(cached) $ECHO_C" >&6
21971 else
21972 cat >conftest.$ac_ext <<_ACEOF
21973 /* confdefs.h. */
21974 _ACEOF
21975 cat confdefs.h >>conftest.$ac_ext
21976 cat >>conftest.$ac_ext <<_ACEOF
21977 /* end confdefs.h. */
21978 #define _SYSCALL32
21979 #include <sys/link.h>
21980 int
21981 main ()
21982 {
21983 struct link_map32 l;
21984 ;
21985 return 0;
21986 }
21987 _ACEOF
21988 rm -f conftest.$ac_objext
21989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21990 (eval $ac_compile) 2>conftest.er1
21991 ac_status=$?
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } &&
21997 { ac_try='test -z "$ac_c_werror_flag"
21998 || test ! -s conftest.err'
21999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000 (eval $ac_try) 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try='test -s conftest.$ac_objext'
22005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; }; then
22010 gdb_cv_have_struct_link_map32=yes
22011 else
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22014
22015 gdb_cv_have_struct_link_map32=no
22016 fi
22017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22018 fi
22019
22020 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22021 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
22022 if test $gdb_cv_have_struct_link_map32 = yes; then
22023
22024 cat >>confdefs.h <<\_ACEOF
22025 #define HAVE_STRUCT_LINK_MAP32 1
22026 _ACEOF
22027
22028
22029 cat >>confdefs.h <<\_ACEOF
22030 #define _SYSCALL32 1
22031 _ACEOF
22032
22033 fi
22034 fi
22035
22036 # Check if the compiler supports the `long long' type.
22037
22038 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22039 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
22040 if test "${gdb_cv_c_long_long+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 else
22043 cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h. */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049 extern long long foo;
22050 int
22051 main ()
22052 {
22053 switch (foo & 2) { case 0: return 1; }
22054 ;
22055 return 0;
22056 }
22057 _ACEOF
22058 rm -f conftest.$ac_objext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22060 (eval $ac_compile) 2>conftest.er1
22061 ac_status=$?
22062 grep -v '^ *+' conftest.er1 >conftest.err
22063 rm -f conftest.er1
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } &&
22067 { ac_try='test -z "$ac_c_werror_flag"
22068 || test ! -s conftest.err'
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22071 ac_status=$?
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; } &&
22074 { ac_try='test -s conftest.$ac_objext'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
22080 gdb_cv_c_long_long=yes
22081 else
22082 echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22084
22085 gdb_cv_c_long_long=no
22086 fi
22087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22088 fi
22089 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22090 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
22091 if test $gdb_cv_c_long_long = yes; then
22092
22093 cat >>confdefs.h <<\_ACEOF
22094 #define CC_HAS_LONG_LONG 1
22095 _ACEOF
22096
22097 fi
22098
22099 # Check if the compiler and runtime support printing long longs.
22100
22101 echo "$as_me:$LINENO: checking for long long support in printf" >&5
22102 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
22103 if test "${gdb_cv_printf_has_long_long+set}" = set; then
22104 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 else
22106 if test "$cross_compiling" = yes; then
22107 gdb_cv_printf_has_long_long=no
22108 else
22109 cat >conftest.$ac_ext <<_ACEOF
22110 /* confdefs.h. */
22111 _ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22115 $ac_includes_default
22116 int
22117 main ()
22118 {
22119 char buf[32];
22120 long long l = 0;
22121 l = (l << 16) + 0x0123;
22122 l = (l << 16) + 0x4567;
22123 l = (l << 16) + 0x89ab;
22124 l = (l << 16) + 0xcdef;
22125 sprintf (buf, "0x%016llx", l);
22126 return (strcmp ("0x0123456789abcdef", buf));
22127 ;
22128 return 0;
22129 }
22130 _ACEOF
22131 rm -f conftest$ac_exeext
22132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22133 (eval $ac_link) 2>&5
22134 ac_status=$?
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138 (eval $ac_try) 2>&5
22139 ac_status=$?
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; }; then
22142 gdb_cv_printf_has_long_long=yes
22143 else
22144 echo "$as_me: program exited with status $ac_status" >&5
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148 ( exit $ac_status )
22149 gdb_cv_printf_has_long_long=no
22150 fi
22151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22152 fi
22153 fi
22154 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22155 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
22156 if test $gdb_cv_printf_has_long_long = yes; then
22157
22158 cat >>confdefs.h <<\_ACEOF
22159 #define PRINTF_HAS_LONG_LONG 1
22160 _ACEOF
22161
22162 fi
22163
22164 # Check if the compiler supports the `long double' type. We can't use
22165 # AC_C_LONG_DOUBLE because that one does additional checks on the
22166 # constants defined in <float.h> that fail on some systems,
22167 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
22168
22169 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22170 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
22171 if test "${gdb_cv_c_long_double+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22173 else
22174 cat >conftest.$ac_ext <<_ACEOF
22175 /* confdefs.h. */
22176 _ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 long double foo;
22181 _ACEOF
22182 rm -f conftest.$ac_objext
22183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22184 (eval $ac_compile) 2>conftest.er1
22185 ac_status=$?
22186 grep -v '^ *+' conftest.er1 >conftest.err
22187 rm -f conftest.er1
22188 cat conftest.err >&5
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); } &&
22191 { ac_try='test -z "$ac_c_werror_flag"
22192 || test ! -s conftest.err'
22193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194 (eval $ac_try) 2>&5
22195 ac_status=$?
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; } &&
22198 { ac_try='test -s conftest.$ac_objext'
22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200 (eval $ac_try) 2>&5
22201 ac_status=$?
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); }; }; then
22204 gdb_cv_c_long_double=yes
22205 else
22206 echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22208
22209 gdb_cv_c_long_double=no
22210 fi
22211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22212 fi
22213 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22214 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
22215 if test $gdb_cv_c_long_double = yes; then
22216
22217 cat >>confdefs.h <<\_ACEOF
22218 #define HAVE_LONG_DOUBLE 1
22219 _ACEOF
22220
22221 fi
22222
22223 # Check if the compiler and runtime support printing long doubles.
22224
22225 echo "$as_me:$LINENO: checking for long double support in printf" >&5
22226 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
22227 if test "${gdb_cv_printf_has_long_double+set}" = set; then
22228 echo $ECHO_N "(cached) $ECHO_C" >&6
22229 else
22230 if test "$cross_compiling" = yes; then
22231 gdb_cv_printf_has_long_double=no
22232 else
22233 cat >conftest.$ac_ext <<_ACEOF
22234 /* confdefs.h. */
22235 _ACEOF
22236 cat confdefs.h >>conftest.$ac_ext
22237 cat >>conftest.$ac_ext <<_ACEOF
22238 /* end confdefs.h. */
22239 $ac_includes_default
22240 int
22241 main ()
22242 {
22243 char buf[16];
22244 long double f = 3.141592653;
22245 sprintf (buf, "%Lg", f);
22246 return (strncmp ("3.14159", buf, 7));
22247 ;
22248 return 0;
22249 }
22250 _ACEOF
22251 rm -f conftest$ac_exeext
22252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22253 (eval $ac_link) 2>&5
22254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22259 ac_status=$?
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; }; then
22262 gdb_cv_printf_has_long_double=yes
22263 else
22264 echo "$as_me: program exited with status $ac_status" >&5
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22267
22268 ( exit $ac_status )
22269 gdb_cv_printf_has_long_double=no
22270 fi
22271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22272 fi
22273 fi
22274 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
22275 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
22276 if test $gdb_cv_printf_has_long_double = yes; then
22277
22278 cat >>confdefs.h <<\_ACEOF
22279 #define PRINTF_HAS_LONG_DOUBLE 1
22280 _ACEOF
22281
22282 fi
22283
22284 # Check if the compiler and runtime support scanning long doubles.
22285
22286 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
22287 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
22288 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
22289 echo $ECHO_N "(cached) $ECHO_C" >&6
22290 else
22291 if test "$cross_compiling" = yes; then
22292 gdb_cv_scanf_has_long_double=no
22293 else
22294 cat >conftest.$ac_ext <<_ACEOF
22295 /* confdefs.h. */
22296 _ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h. */
22300 #include <stdio.h>
22301 int
22302 main ()
22303 {
22304 char *buf = "3.141592653";
22305 long double f = 0;
22306 sscanf (buf, "%Lg", &f);
22307 return !(f > 3.14159 && f < 3.14160);
22308 ;
22309 return 0;
22310 }
22311 _ACEOF
22312 rm -f conftest$ac_exeext
22313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22314 (eval $ac_link) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22319 (eval $ac_try) 2>&5
22320 ac_status=$?
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; }; then
22323 gdb_cv_scanf_has_long_double=yes
22324 else
22325 echo "$as_me: program exited with status $ac_status" >&5
22326 echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22328
22329 ( exit $ac_status )
22330 gdb_cv_scanf_has_long_double=no
22331 fi
22332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22333 fi
22334 fi
22335 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
22336 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
22337 if test $gdb_cv_scanf_has_long_double = yes; then
22338
22339 cat >>confdefs.h <<\_ACEOF
22340 #define SCANF_HAS_LONG_DOUBLE 1
22341 _ACEOF
22342
22343 fi
22344
22345 case ${host_os} in
22346 aix*)
22347 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
22348 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
22349 if test "${gdb_cv_bigtoc+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 else
22352
22353 SAVE_LDFLAGS=$LDFLAGS
22354
22355 case $GCC in
22356 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
22357 *) gdb_cv_bigtoc=-bbigtoc ;;
22358 esac
22359
22360 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
22361 cat >conftest.$ac_ext <<_ACEOF
22362 /* confdefs.h. */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h. */
22367
22368 int
22369 main ()
22370 {
22371 int i;
22372 ;
22373 return 0;
22374 }
22375 _ACEOF
22376 rm -f conftest.$ac_objext conftest$ac_exeext
22377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22378 (eval $ac_link) 2>conftest.er1
22379 ac_status=$?
22380 grep -v '^ *+' conftest.er1 >conftest.err
22381 rm -f conftest.er1
22382 cat conftest.err >&5
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); } &&
22385 { ac_try='test -z "$ac_c_werror_flag"
22386 || test ! -s conftest.err'
22387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388 (eval $ac_try) 2>&5
22389 ac_status=$?
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; } &&
22392 { ac_try='test -s conftest$ac_exeext'
22393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; }; then
22398 :
22399 else
22400 echo "$as_me: failed program was:" >&5
22401 sed 's/^/| /' conftest.$ac_ext >&5
22402
22403 gdb_cv_bigtoc=
22404 fi
22405 rm -f conftest.err conftest.$ac_objext \
22406 conftest$ac_exeext conftest.$ac_ext
22407 LDFLAGS="${SAVE_LDFLAGS}"
22408
22409 fi
22410 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
22411 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
22412 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
22413 ;;
22414 esac
22415
22416
22417
22418 if test ${build} = ${host} -a ${host} = ${target} ; then
22419 case ${host_os} in
22420 hpux*)
22421 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
22422 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
22423 if test -f /usr/include/dce/cma_config.h ; then
22424 if test "$GCC" = "yes" ; then
22425 echo "$as_me:$LINENO: result: yes" >&5
22426 echo "${ECHO_T}yes" >&6
22427
22428 cat >>confdefs.h <<\_ACEOF
22429 #define HAVE_HPUX_THREAD_SUPPORT 1
22430 _ACEOF
22431
22432 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
22433 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
22434 else
22435 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
22436 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
22437 fi
22438 else
22439 echo "$as_me:$LINENO: result: no" >&5
22440 echo "${ECHO_T}no" >&6
22441 fi
22442 ;;
22443 solaris*)
22444 # See if thread_db library is around for Solaris thread debugging.
22445 # Note that we must explicitly test for version 1 of the library
22446 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
22447 # the same API.
22448 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
22449 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
22450 if test -f /usr/lib/libthread_db.so.1 ; then
22451 echo "$as_me:$LINENO: result: yes" >&5
22452 echo "${ECHO_T}yes" >&6
22453
22454 cat >>confdefs.h <<\_ACEOF
22455 #define HAVE_THREAD_DB_LIB 1
22456 _ACEOF
22457
22458 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
22459 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
22460
22461 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
22465 else
22466 ac_check_lib_save_LIBS=$LIBS
22467 LIBS="-ldl $LIBS"
22468 cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h. */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474
22475 /* Override any gcc2 internal prototype to avoid an error. */
22476 #ifdef __cplusplus
22477 extern "C"
22478 #endif
22479 /* We use char because int might match the return type of a gcc2
22480 builtin and then its argument prototype would still apply. */
22481 char dlopen ();
22482 int
22483 main ()
22484 {
22485 dlopen ();
22486 ;
22487 return 0;
22488 }
22489 _ACEOF
22490 rm -f conftest.$ac_objext conftest$ac_exeext
22491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22492 (eval $ac_link) 2>conftest.er1
22493 ac_status=$?
22494 grep -v '^ *+' conftest.er1 >conftest.err
22495 rm -f conftest.er1
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } &&
22499 { ac_try='test -z "$ac_c_werror_flag"
22500 || test ! -s conftest.err'
22501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502 (eval $ac_try) 2>&5
22503 ac_status=$?
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; } &&
22506 { ac_try='test -s conftest$ac_exeext'
22507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508 (eval $ac_try) 2>&5
22509 ac_status=$?
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); }; }; then
22512 ac_cv_lib_dl_dlopen=yes
22513 else
22514 echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22516
22517 ac_cv_lib_dl_dlopen=no
22518 fi
22519 rm -f conftest.err conftest.$ac_objext \
22520 conftest$ac_exeext conftest.$ac_ext
22521 LIBS=$ac_check_lib_save_LIBS
22522 fi
22523 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22524 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22525 if test $ac_cv_lib_dl_dlopen = yes; then
22526 cat >>confdefs.h <<_ACEOF
22527 #define HAVE_LIBDL 1
22528 _ACEOF
22529
22530 LIBS="-ldl $LIBS"
22531
22532 fi
22533
22534 if test "$GCC" = "yes" ; then
22535 # The GNU linker requires the -export-dynamic option to make
22536 # all symbols visible in the dynamic symbol table.
22537 hold_ldflags=$LDFLAGS
22538 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
22539 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
22540 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
22541 cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h. */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h. */
22547
22548 int
22549 main ()
22550 {
22551 int i;
22552 ;
22553 return 0;
22554 }
22555 _ACEOF
22556 rm -f conftest.$ac_objext conftest$ac_exeext
22557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22558 (eval $ac_link) 2>conftest.er1
22559 ac_status=$?
22560 grep -v '^ *+' conftest.er1 >conftest.err
22561 rm -f conftest.er1
22562 cat conftest.err >&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); } &&
22565 { ac_try='test -z "$ac_c_werror_flag"
22566 || test ! -s conftest.err'
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; } &&
22572 { ac_try='test -s conftest$ac_exeext'
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; }; then
22578 found=yes
22579 else
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22582
22583 found=no
22584 fi
22585 rm -f conftest.err conftest.$ac_objext \
22586 conftest$ac_exeext conftest.$ac_ext
22587 LDFLAGS=$hold_ldflags
22588 echo "$as_me:$LINENO: result: $found" >&5
22589 echo "${ECHO_T}$found" >&6
22590 if test $found = yes; then
22591 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
22592 fi
22593 fi
22594 # Sun randomly tweaked the prototypes in <proc_service.h>
22595 # at one point.
22596 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
22597 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
22598 if test "${gdb_cv_proc_service_is_old+set}" = set; then
22599 echo $ECHO_N "(cached) $ECHO_C" >&6
22600 else
22601
22602 cat >conftest.$ac_ext <<_ACEOF
22603 /* confdefs.h. */
22604 _ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h. */
22608
22609 #include <proc_service.h>
22610 ps_err_e ps_pdwrite
22611 (struct ps_prochandle*, psaddr_t, const void*, size_t);
22612
22613 int
22614 main ()
22615 {
22616
22617 ;
22618 return 0;
22619 }
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 gdb_cv_proc_service_is_old=no
22644 else
22645 echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22647
22648 gdb_cv_proc_service_is_old=yes
22649 fi
22650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22651
22652 fi
22653
22654 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
22655 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
22656 if test $gdb_cv_proc_service_is_old = yes; then
22657
22658 cat >>confdefs.h <<\_ACEOF
22659 #define PROC_SERVICE_IS_OLD 1
22660 _ACEOF
22661
22662 fi
22663 else
22664 echo "$as_me:$LINENO: result: no" >&5
22665 echo "${ECHO_T}no" >&6
22666 fi
22667 ;;
22668 aix*)
22669 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
22670 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
22671 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22673 else
22674 cat >conftest.$ac_ext <<_ACEOF
22675 /* confdefs.h. */
22676 _ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h. */
22680 #include <sys/pthdebug.h>
22681 int
22682 main ()
22683 {
22684 #ifndef PTHDB_VERSION_3
22685 #error
22686 #endif
22687 ;
22688 return 0;
22689 }
22690 _ACEOF
22691 rm -f conftest.$ac_objext
22692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22693 (eval $ac_compile) 2>conftest.er1
22694 ac_status=$?
22695 grep -v '^ *+' conftest.er1 >conftest.err
22696 rm -f conftest.er1
22697 cat conftest.err >&5
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); } &&
22700 { ac_try='test -z "$ac_c_werror_flag"
22701 || test ! -s conftest.err'
22702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22703 (eval $ac_try) 2>&5
22704 ac_status=$?
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); }; } &&
22707 { ac_try='test -s conftest.$ac_objext'
22708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709 (eval $ac_try) 2>&5
22710 ac_status=$?
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; }; then
22713 gdb_cv_have_aix_thread_debug=yes
22714 else
22715 echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22717
22718 gdb_cv_have_aix_thread_debug=no
22719 fi
22720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22721 fi
22722
22723 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
22724 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
22725 if test $gdb_cv_have_aix_thread_debug = yes; then
22726 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
22727 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
22728 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
22729 fi
22730 ;;
22731 esac
22732
22733 fi
22734
22735 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
22736 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
22737 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
22738 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
22739 echo $ECHO_N "(cached) $ECHO_C" >&6
22740 else
22741 cat >conftest.$ac_ext <<_ACEOF
22742 /* confdefs.h. */
22743 _ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h. */
22747 #include <thread_db.h>
22748 int
22749 main ()
22750 {
22751 int i = TD_NOTALLOC;
22752 ;
22753 return 0;
22754 }
22755 _ACEOF
22756 rm -f conftest.$ac_objext
22757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22758 (eval $ac_compile) 2>conftest.er1
22759 ac_status=$?
22760 grep -v '^ *+' conftest.er1 >conftest.err
22761 rm -f conftest.er1
22762 cat conftest.err >&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } &&
22765 { ac_try='test -z "$ac_c_werror_flag"
22766 || test ! -s conftest.err'
22767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768 (eval $ac_try) 2>&5
22769 ac_status=$?
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); }; } &&
22772 { ac_try='test -s conftest.$ac_objext'
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22775 ac_status=$?
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; }; then
22778 gdb_cv_thread_db_h_has_td_notalloc=yes
22779 else
22780 echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22782
22783 gdb_cv_thread_db_h_has_td_notalloc=no
22784
22785 fi
22786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22787
22788 fi
22789 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
22790 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
22791 fi
22792 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
22793
22794 cat >>confdefs.h <<\_ACEOF
22795 #define THREAD_DB_HAS_TD_NOTALLOC 1
22796 _ACEOF
22797
22798 fi
22799
22800 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
22801 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
22802 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
22803 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
22804 echo $ECHO_N "(cached) $ECHO_C" >&6
22805 else
22806 cat >conftest.$ac_ext <<_ACEOF
22807 /* confdefs.h. */
22808 _ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h. */
22812 #include <sys/syscall.h>
22813 int
22814 main ()
22815 {
22816 int i = __NR_tkill;
22817 ;
22818 return 0;
22819 }
22820 _ACEOF
22821 rm -f conftest.$ac_objext
22822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22823 (eval $ac_compile) 2>conftest.er1
22824 ac_status=$?
22825 grep -v '^ *+' conftest.er1 >conftest.err
22826 rm -f conftest.er1
22827 cat conftest.err >&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); } &&
22830 { ac_try='test -z "$ac_c_werror_flag"
22831 || test ! -s conftest.err'
22832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22833 (eval $ac_try) 2>&5
22834 ac_status=$?
22835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836 (exit $ac_status); }; } &&
22837 { ac_try='test -s conftest.$ac_objext'
22838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839 (eval $ac_try) 2>&5
22840 ac_status=$?
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); }; }; then
22843 gdb_cv_sys_syscall_h_has_tkill=yes
22844 else
22845 echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22847
22848 gdb_cv_sys_syscall_h_has_tkill=no
22849
22850 fi
22851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22852
22853 fi
22854 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
22855 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
22856 fi
22857 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
22858
22859 cat >>confdefs.h <<\_ACEOF
22860 #define HAVE_TKILL_SYSCALL 1
22861 _ACEOF
22862
22863 fi
22864
22865
22866
22867 # Check whether --with-sysroot or --without-sysroot was given.
22868 if test "${with_sysroot+set}" = set; then
22869 withval="$with_sysroot"
22870
22871 case ${with_sysroot} in
22872 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
22873 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
22874 esac
22875
22876 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
22877
22878 if test "x$exec_prefix" = xNONE; then
22879 if test "x$prefix" = xNONE; then
22880 test_prefix=/usr/local
22881 else
22882 test_prefix=$prefix
22883 fi
22884 else
22885 test_prefix=$exec_prefix
22886 fi
22887 case ${TARGET_SYSTEM_ROOT} in
22888 "${test_prefix}"|"${test_prefix}/"*|\
22889 '${exec_prefix}'|'${exec_prefix}/'*)
22890 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
22891 TARGET_SYSTEM_ROOT_DEFINE="$t"
22892 ;;
22893 esac
22894
22895 else
22896
22897 TARGET_SYSTEM_ROOT=
22898 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
22899
22900 fi;
22901
22902
22903
22904 # Check whether --enable-werror or --disable-werror was given.
22905 if test "${enable_werror+set}" = set; then
22906 enableval="$enable_werror"
22907 case "${enableval}" in
22908 yes | y) ERROR_ON_WARNING="yes" ;;
22909 no | n) ERROR_ON_WARNING="no" ;;
22910 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
22911 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
22912 { (exit 1); exit 1; }; } ;;
22913 esac
22914 fi;
22915
22916 # Enable -Werror by default when using gcc
22917 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
22918 ERROR_ON_WARNING=yes
22919 fi
22920
22921 WERROR_CFLAGS=""
22922 if test "${ERROR_ON_WARNING}" = yes ; then
22923 WERROR_CFLAGS="-Werror"
22924 fi
22925
22926 # NOTE: Don't add -Wall or -Wunused, they both include
22927 # -Wunused-parameter which reports bogus warnings.
22928 # NOTE: If you add to this list, remember to update
22929 # gdb/doc/gdbint.texinfo.
22930 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
22931 -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
22932 -Wunused-label -Wunused-function -Wno-pointer-sign"
22933
22934 # GCC supports -Wuninitialized only with -O or -On, n != 0.
22935 if test x${CFLAGS+set} = xset; then
22936 case "${CFLAGS}" in
22937 *"-O0"* ) ;;
22938 *"-O"* )
22939 build_warnings="${build_warnings} -Wuninitialized"
22940 ;;
22941 esac
22942 else
22943 build_warnings="${build_warnings} -Wuninitialized"
22944 fi
22945
22946 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
22947 # -Wunused-function -Wunused-variable -Wunused-value
22948 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
22949 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
22950 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
22951 # -Woverloaded-virtual -Winline -Werror"
22952 # Check whether --enable-build-warnings or --disable-build-warnings was given.
22953 if test "${enable_build_warnings+set}" = set; then
22954 enableval="$enable_build_warnings"
22955 case "${enableval}" in
22956 yes) ;;
22957 no) build_warnings="-w";;
22958 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22959 build_warnings="${build_warnings} ${t}";;
22960 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22961 build_warnings="${t} ${build_warnings}";;
22962 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22963 esac
22964 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
22965 echo "Setting compiler warning flags = $build_warnings" 6>&1
22966 fi
22967 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
22968 if test "${enable_gdb_build_warnings+set}" = set; then
22969 enableval="$enable_gdb_build_warnings"
22970 case "${enableval}" in
22971 yes) ;;
22972 no) build_warnings="-w";;
22973 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22974 build_warnings="${build_warnings} ${t}";;
22975 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22976 build_warnings="${t} ${build_warnings}";;
22977 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22978 esac
22979 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
22980 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
22981 fi
22982 fi; WARN_CFLAGS=""
22983 if test "x${build_warnings}" != x -a "x$GCC" = xyes
22984 then
22985 echo "$as_me:$LINENO: checking compiler warning flags" >&5
22986 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
22987 # Separate out the -Werror flag as some files just cannot be
22988 # compiled with it enabled.
22989 for w in ${build_warnings}; do
22990 case $w in
22991 -Werr*) WERROR_CFLAGS=-Werror ;;
22992 *) # Check that GCC accepts it
22993 saved_CFLAGS="$CFLAGS"
22994 CFLAGS="$CFLAGS $w"
22995 cat >conftest.$ac_ext <<_ACEOF
22996 /* confdefs.h. */
22997 _ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h. */
23001
23002 int
23003 main ()
23004 {
23005
23006 ;
23007 return 0;
23008 }
23009 _ACEOF
23010 rm -f conftest.$ac_objext
23011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23012 (eval $ac_compile) 2>conftest.er1
23013 ac_status=$?
23014 grep -v '^ *+' conftest.er1 >conftest.err
23015 rm -f conftest.er1
23016 cat conftest.err >&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); } &&
23019 { ac_try='test -z "$ac_c_werror_flag"
23020 || test ! -s conftest.err'
23021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23022 (eval $ac_try) 2>&5
23023 ac_status=$?
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); }; } &&
23026 { ac_try='test -s conftest.$ac_objext'
23027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028 (eval $ac_try) 2>&5
23029 ac_status=$?
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); }; }; then
23032 WARN_CFLAGS="${WARN_CFLAGS} $w"
23033 else
23034 echo "$as_me: failed program was:" >&5
23035 sed 's/^/| /' conftest.$ac_ext >&5
23036
23037 fi
23038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23039 CFLAGS="$saved_CFLAGS"
23040 esac
23041 done
23042 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
23043 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
23044 fi
23045
23046
23047
23048 # In the Cygwin environment, we need some additional flags.
23049 echo "$as_me:$LINENO: checking for cygwin" >&5
23050 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
23051 if test "${gdb_cv_os_cygwin+set}" = set; then
23052 echo $ECHO_N "(cached) $ECHO_C" >&6
23053 else
23054 cat >conftest.$ac_ext <<_ACEOF
23055 /* confdefs.h. */
23056 _ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h. */
23060
23061 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
23062 lose
23063 #endif
23064 _ACEOF
23065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23066 $EGREP "lose" >/dev/null 2>&1; then
23067 gdb_cv_os_cygwin=yes
23068 else
23069 gdb_cv_os_cygwin=no
23070 fi
23071 rm -f conftest*
23072
23073 fi
23074 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
23075 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
23076
23077
23078 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
23079 case ${host} in
23080 *go32* ) SER_HARDWIRE=ser-go32.o ;;
23081 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
23082 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
23083 esac
23084
23085
23086 # libreadline needs libuser32.a in a cygwin environment
23087 WIN32LIBS=
23088 if test x$gdb_cv_os_cygwin = xyes; then
23089 WIN32LIBS="-luser32"
23090 case "${target}" in
23091 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
23092 ;;
23093 esac
23094 fi
23095
23096 # The ser-tcp.c module requires sockets.
23097 case ${host} in
23098 *mingw32*)
23099
23100 cat >>confdefs.h <<\_ACEOF
23101 #define USE_WIN32API 1
23102 _ACEOF
23103
23104 WIN32LIBS="$WIN32LIBS -lws2_32"
23105 ;;
23106 esac
23107
23108
23109 # Add any host-specific objects to GDB.
23110 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
23111
23112 LIBGUI="../libgui/src/libgui.a"
23113 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
23114
23115
23116
23117 WIN32LDAPP=
23118
23119
23120
23121 case "${host}" in
23122 *-*-cygwin*)
23123 configdir="win"
23124 ;;
23125 *)
23126 configdir="unix"
23127 ;;
23128 esac
23129
23130 GDBTKLIBS=
23131 if test "${enable_gdbtk}" = "yes"; then
23132
23133 # Gdbtk must have an absolute path to srcdir in order to run
23134 # properly when not installed.
23135 here=`pwd`
23136 cd ${srcdir}
23137 GDBTK_SRC_DIR=`pwd`
23138 cd $here
23139
23140
23141 #
23142 # Ok, lets find the tcl configuration
23143 # First, look for one uninstalled.
23144 # the alternative search directory is invoked by --with-tclconfig
23145 #
23146
23147 if test x"${no_tcl}" = x ; then
23148 # we reset no_tcl in case something fails here
23149 no_tcl=true
23150
23151 # Check whether --with-tclconfig or --without-tclconfig was given.
23152 if test "${with_tclconfig+set}" = set; then
23153 withval="$with_tclconfig"
23154 with_tclconfig=${withval}
23155 fi;
23156 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
23157 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
23158 if test "${ac_cv_c_tclconfig+set}" = set; then
23159 echo $ECHO_N "(cached) $ECHO_C" >&6
23160 else
23161
23162
23163 # First check to see if --with-tclconfig was specified.
23164 if test x"${with_tclconfig}" != x ; then
23165 if test -f "${with_tclconfig}/tclConfig.sh" ; then
23166 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
23167 else
23168 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
23169 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
23170 { (exit 1); exit 1; }; }
23171 fi
23172 fi
23173
23174 # then check for a private Tcl installation
23175 if test x"${ac_cv_c_tclconfig}" = x ; then
23176 for i in \
23177 ../tcl \
23178 `ls -dr ../tcl[7-9]* 2>/dev/null` \
23179 ../../tcl \
23180 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
23181 ../../../tcl \
23182 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
23183 if test -f "$i/${configdir}/tclConfig.sh" ; then
23184 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23185 break
23186 fi
23187 done
23188 fi
23189 # check in a few common install locations
23190 if test x"${ac_cv_c_tclconfig}" = x ; then
23191 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23192 if test -f "$i/tclConfig.sh" ; then
23193 ac_cv_c_tclconfig=`(cd $i; pwd)`
23194 break
23195 fi
23196 done
23197 fi
23198 # check in a few other private locations
23199 if test x"${ac_cv_c_tclconfig}" = x ; then
23200 for i in \
23201 ${srcdir}/../tcl \
23202 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
23203 if test -f "$i/${configdir}/tclConfig.sh" ; then
23204 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23205 break
23206 fi
23207 done
23208 fi
23209
23210 fi
23211
23212 if test x"${ac_cv_c_tclconfig}" = x ; then
23213 TCLCONFIG="# no Tcl configs found"
23214 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
23215 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
23216 else
23217 no_tcl=
23218 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
23219 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
23220 echo "${ECHO_T}found $TCLCONFIG" >&6
23221 fi
23222 fi
23223
23224 if test -z "${no_tcl}"; then
23225
23226 . $TCLCONFIG
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254 #
23255 # Ok, lets find the tk configuration
23256 # First, look for one uninstalled.
23257 # the alternative search directory is invoked by --with-tkconfig
23258 #
23259
23260 if test x"${no_tk}" = x ; then
23261 # we reset no_tk in case something fails here
23262 no_tk=true
23263
23264 # Check whether --with-tkconfig or --without-tkconfig was given.
23265 if test "${with_tkconfig+set}" = set; then
23266 withval="$with_tkconfig"
23267 with_tkconfig=${withval}
23268 fi;
23269 echo "$as_me:$LINENO: checking for Tk configuration" >&5
23270 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
23271 if test "${ac_cv_c_tkconfig+set}" = set; then
23272 echo $ECHO_N "(cached) $ECHO_C" >&6
23273 else
23274
23275
23276 # First check to see if --with-tkconfig was specified.
23277 if test x"${with_tkconfig}" != x ; then
23278 if test -f "${with_tkconfig}/tkConfig.sh" ; then
23279 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
23280 else
23281 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
23282 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
23283 { (exit 1); exit 1; }; }
23284 fi
23285 fi
23286
23287 # then check for a private Tk library
23288 if test x"${ac_cv_c_tkconfig}" = x ; then
23289 for i in \
23290 ../tk \
23291 `ls -dr ../tk[4-9]* 2>/dev/null` \
23292 ../../tk \
23293 `ls -dr ../../tk[4-9]* 2>/dev/null` \
23294 ../../../tk \
23295 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
23296 if test -f "$i/${configdir}/tkConfig.sh" ; then
23297 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23298 break
23299 fi
23300 done
23301 fi
23302 # check in a few common install locations
23303 if test x"${ac_cv_c_tkconfig}" = x ; then
23304 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23305 if test -f "$i/tkConfig.sh" ; then
23306 ac_cv_c_tkconfig=`(cd $i; pwd)`
23307 break
23308 fi
23309 done
23310 fi
23311 # check in a few other private locations
23312 if test x"${ac_cv_c_tkconfig}" = x ; then
23313 for i in \
23314 ${srcdir}/../tk \
23315 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
23316 if test -f "$i/${configdir}/tkConfig.sh" ; then
23317 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23318 break
23319 fi
23320 done
23321 fi
23322
23323 fi
23324
23325 if test x"${ac_cv_c_tkconfig}" = x ; then
23326 TKCONFIG="# no Tk configs found"
23327 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
23328 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
23329 else
23330 no_tk=
23331 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
23332 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
23333 echo "${ECHO_T}found $TKCONFIG" >&6
23334 fi
23335 fi
23336
23337
23338
23339 # now look for Tcl library stuff
23340
23341 tcldir="../tcl/${configdir}/"
23342
23343 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
23344
23345 # If $no_tk is nonempty, then we can't do Tk, and there is no
23346 # point to doing Tcl.
23347 if test -z "${no_tk}"; then
23348
23349 if test -f "$TKCONFIG" ; then
23350 . $TKCONFIG
23351 fi
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366 #
23367 # Ok, lets find the tcl source trees so we can use the headers
23368 # Warning: transition of version 9 to 10 will break this algorithm
23369 # because 10 sorts before 9. We also look for just tcl. We have to
23370 # be careful that we don't match stuff like tclX by accident.
23371 # the alternative search directory is involked by --with-tclinclude
23372 #
23373
23374 no_tcl=true
23375 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
23376 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
23377
23378 # Check whether --with-tclinclude or --without-tclinclude was given.
23379 if test "${with_tclinclude+set}" = set; then
23380 withval="$with_tclinclude"
23381 with_tclinclude=${withval}
23382 fi;
23383 if test "${ac_cv_c_tclh+set}" = set; then
23384 echo $ECHO_N "(cached) $ECHO_C" >&6
23385 else
23386
23387 # first check to see if --with-tclinclude was specified
23388 if test x"${with_tclinclude}" != x ; then
23389 if test -f ${with_tclinclude}/tclInt.h ; then
23390 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
23391 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
23392 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
23393 else
23394 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
23395 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
23396 { (exit 1); exit 1; }; }
23397 fi
23398 fi
23399
23400 # next check if it came with Tcl configuration file
23401 if test x"${ac_cv_c_tclconfig}" = x ; then
23402 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
23403 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
23404 fi
23405 fi
23406
23407 # next check in private source directory
23408 #
23409 # since ls returns lowest version numbers first, reverse its output
23410 if test x"${ac_cv_c_tclh}" = x ; then
23411 for i in \
23412 ${srcdir}/../tcl \
23413 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
23414 ${srcdir}/../../tcl \
23415 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
23416 ${srcdir}/../../../tcl \
23417 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
23418 if test -f $i/generic/tclInt.h ; then
23419 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23420 break
23421 fi
23422 done
23423 fi
23424 # finally check in a few common install locations
23425 #
23426 # since ls returns lowest version numbers first, reverse its output
23427 if test x"${ac_cv_c_tclh}" = x ; then
23428 for i in \
23429 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
23430 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
23431 /usr/local/src/tcl \
23432 /usr/local/lib/tcl \
23433 ${prefix}/include ; do
23434 if test -f $i/generic/tclInt.h ; then
23435 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23436 break
23437 fi
23438 done
23439 fi
23440 # see if one is installed
23441 if test x"${ac_cv_c_tclh}" = x ; then
23442 if test "${ac_cv_header_tclInt_h+set}" = set; then
23443 echo "$as_me:$LINENO: checking for tclInt.h" >&5
23444 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
23445 if test "${ac_cv_header_tclInt_h+set}" = set; then
23446 echo $ECHO_N "(cached) $ECHO_C" >&6
23447 fi
23448 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23449 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
23450 else
23451 # Is the header compilable?
23452 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
23453 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
23454 cat >conftest.$ac_ext <<_ACEOF
23455 /* confdefs.h. */
23456 _ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h. */
23460 $ac_includes_default
23461 #include <tclInt.h>
23462 _ACEOF
23463 rm -f conftest.$ac_objext
23464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23465 (eval $ac_compile) 2>conftest.er1
23466 ac_status=$?
23467 grep -v '^ *+' conftest.er1 >conftest.err
23468 rm -f conftest.er1
23469 cat conftest.err >&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); } &&
23472 { ac_try='test -z "$ac_c_werror_flag"
23473 || test ! -s conftest.err'
23474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23475 (eval $ac_try) 2>&5
23476 ac_status=$?
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); }; } &&
23479 { ac_try='test -s conftest.$ac_objext'
23480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23481 (eval $ac_try) 2>&5
23482 ac_status=$?
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); }; }; then
23485 ac_header_compiler=yes
23486 else
23487 echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23489
23490 ac_header_compiler=no
23491 fi
23492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23494 echo "${ECHO_T}$ac_header_compiler" >&6
23495
23496 # Is the header present?
23497 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
23498 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
23499 cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h. */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 #include <tclInt.h>
23506 _ACEOF
23507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23509 ac_status=$?
23510 grep -v '^ *+' conftest.er1 >conftest.err
23511 rm -f conftest.er1
23512 cat conftest.err >&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } >/dev/null; then
23515 if test -s conftest.err; then
23516 ac_cpp_err=$ac_c_preproc_warn_flag
23517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23518 else
23519 ac_cpp_err=
23520 fi
23521 else
23522 ac_cpp_err=yes
23523 fi
23524 if test -z "$ac_cpp_err"; then
23525 ac_header_preproc=yes
23526 else
23527 echo "$as_me: failed program was:" >&5
23528 sed 's/^/| /' conftest.$ac_ext >&5
23529
23530 ac_header_preproc=no
23531 fi
23532 rm -f conftest.err conftest.$ac_ext
23533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23534 echo "${ECHO_T}$ac_header_preproc" >&6
23535
23536 # So? What about this header?
23537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23538 yes:no: )
23539 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23540 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23541 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
23542 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
23543 ac_header_preproc=yes
23544 ;;
23545 no:yes:* )
23546 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
23547 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
23548 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
23549 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
23550 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
23551 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
23552 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
23553 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23554 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
23555 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
23556 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
23557 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
23558 (
23559 cat <<\_ASBOX
23560 ## ------------------------------------------ ##
23561 ## Report this to the AC_PACKAGE_NAME lists. ##
23562 ## ------------------------------------------ ##
23563 _ASBOX
23564 ) |
23565 sed "s/^/$as_me: WARNING: /" >&2
23566 ;;
23567 esac
23568 echo "$as_me:$LINENO: checking for tclInt.h" >&5
23569 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
23570 if test "${ac_cv_header_tclInt_h+set}" = set; then
23571 echo $ECHO_N "(cached) $ECHO_C" >&6
23572 else
23573 ac_cv_header_tclInt_h=$ac_header_preproc
23574 fi
23575 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23576 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
23577
23578 fi
23579 if test $ac_cv_header_tclInt_h = yes; then
23580 ac_cv_c_tclh=installed
23581 else
23582 ac_cv_c_tclh=""
23583 fi
23584
23585
23586 fi
23587
23588 fi
23589
23590 if test x"${ac_cv_c_tclh}" = x ; then
23591 TCLHDIR="# no Tcl private headers found"
23592 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
23593 echo "$as_me: error: Can't find Tcl private headers" >&2;}
23594 { (exit 1); exit 1; }; }
23595 fi
23596 if test x"${ac_cv_c_tclh}" != x ; then
23597 no_tcl=""
23598 if test x"${ac_cv_c_tclh}" = x"installed" ; then
23599 echo "$as_me:$LINENO: result: is installed" >&5
23600 echo "${ECHO_T}is installed" >&6
23601 TCLHDIR=""
23602 else
23603 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
23604 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
23605 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
23606 TCLHDIR="-I${ac_cv_c_tclh}"
23607 fi
23608 fi
23609
23610
23611
23612
23613 #
23614 # Ok, lets find the tk source trees so we can use the headers
23615 # If the directory (presumably symlink) named "tk" exists, use that one
23616 # in preference to any others. Same logic is used when choosing library
23617 # and again with Tcl. The search order is the best place to look first, then in
23618 # decreasing significance. The loop breaks if the trigger file is found.
23619 # Note the gross little conversion here of srcdir by cd'ing to the found
23620 # directory. This converts the path from a relative to an absolute, so
23621 # recursive cache variables for the path will work right. We check all
23622 # the possible paths in one loop rather than many seperate loops to speed
23623 # things up.
23624 # the alternative search directory is involked by --with-tkinclude
23625 #
23626 no_tk=true
23627 echo "$as_me:$LINENO: checking for Tk private headers" >&5
23628 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
23629
23630 # Check whether --with-tkinclude or --without-tkinclude was given.
23631 if test "${with_tkinclude+set}" = set; then
23632 withval="$with_tkinclude"
23633 with_tkinclude=${withval}
23634 fi;
23635 if test "${ac_cv_c_tkh+set}" = set; then
23636 echo $ECHO_N "(cached) $ECHO_C" >&6
23637 else
23638
23639 # first check to see if --with-tkinclude was specified
23640 if test x"${with_tkinclude}" != x ; then
23641 if test -f ${with_tkinclude}/tk.h ; then
23642 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
23643 elif test -f ${with_tkinclude}/generic/tk.h ; then
23644 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
23645 else
23646 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
23647 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
23648 { (exit 1); exit 1; }; }
23649 fi
23650 fi
23651
23652 # next check if it came with Tk configuration file
23653 if test x"${ac_cv_c_tkconfig}" = x ; then
23654 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
23655 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
23656 fi
23657 fi
23658
23659 # next check in private source directory
23660 #
23661 # since ls returns lowest version numbers first, reverse its output
23662 if test x"${ac_cv_c_tkh}" = x ; then
23663 for i in \
23664 ${srcdir}/../tk \
23665 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
23666 ${srcdir}/../../tk \
23667 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
23668 ${srcdir}/../../../tk \
23669 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
23670 if test -f $i/generic/tk.h ; then
23671 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23672 break
23673 fi
23674 done
23675 fi
23676 # finally check in a few common install locations
23677 #
23678 # since ls returns lowest version numbers first, reverse its output
23679 if test x"${ac_cv_c_tkh}" = x ; then
23680 for i in \
23681 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
23682 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
23683 /usr/local/src/tk \
23684 /usr/local/lib/tk \
23685 ${prefix}/include ; do
23686 if test -f $i/generic/tk.h ; then
23687 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23688 break
23689 fi
23690 done
23691 fi
23692 # see if one is installed
23693 if test x"${ac_cv_c_tkh}" = x ; then
23694 if test "${ac_cv_header_tk_h+set}" = set; then
23695 echo "$as_me:$LINENO: checking for tk.h" >&5
23696 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
23697 if test "${ac_cv_header_tk_h+set}" = set; then
23698 echo $ECHO_N "(cached) $ECHO_C" >&6
23699 fi
23700 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23701 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
23702 else
23703 # Is the header compilable?
23704 echo "$as_me:$LINENO: checking tk.h usability" >&5
23705 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
23706 cat >conftest.$ac_ext <<_ACEOF
23707 /* confdefs.h. */
23708 _ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h. */
23712 $ac_includes_default
23713 #include <tk.h>
23714 _ACEOF
23715 rm -f conftest.$ac_objext
23716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23717 (eval $ac_compile) 2>conftest.er1
23718 ac_status=$?
23719 grep -v '^ *+' conftest.er1 >conftest.err
23720 rm -f conftest.er1
23721 cat conftest.err >&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } &&
23724 { ac_try='test -z "$ac_c_werror_flag"
23725 || test ! -s conftest.err'
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727 (eval $ac_try) 2>&5
23728 ac_status=$?
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; } &&
23731 { ac_try='test -s conftest.$ac_objext'
23732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23733 (eval $ac_try) 2>&5
23734 ac_status=$?
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; }; then
23737 ac_header_compiler=yes
23738 else
23739 echo "$as_me: failed program was:" >&5
23740 sed 's/^/| /' conftest.$ac_ext >&5
23741
23742 ac_header_compiler=no
23743 fi
23744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23746 echo "${ECHO_T}$ac_header_compiler" >&6
23747
23748 # Is the header present?
23749 echo "$as_me:$LINENO: checking tk.h presence" >&5
23750 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
23751 cat >conftest.$ac_ext <<_ACEOF
23752 /* confdefs.h. */
23753 _ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23757 #include <tk.h>
23758 _ACEOF
23759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23761 ac_status=$?
23762 grep -v '^ *+' conftest.er1 >conftest.err
23763 rm -f conftest.er1
23764 cat conftest.err >&5
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } >/dev/null; then
23767 if test -s conftest.err; then
23768 ac_cpp_err=$ac_c_preproc_warn_flag
23769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23770 else
23771 ac_cpp_err=
23772 fi
23773 else
23774 ac_cpp_err=yes
23775 fi
23776 if test -z "$ac_cpp_err"; then
23777 ac_header_preproc=yes
23778 else
23779 echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23781
23782 ac_header_preproc=no
23783 fi
23784 rm -f conftest.err conftest.$ac_ext
23785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23786 echo "${ECHO_T}$ac_header_preproc" >&6
23787
23788 # So? What about this header?
23789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23790 yes:no: )
23791 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
23792 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23793 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
23794 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
23795 ac_header_preproc=yes
23796 ;;
23797 no:yes:* )
23798 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
23799 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
23800 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
23801 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
23802 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
23803 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
23804 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
23805 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
23806 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
23807 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
23808 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
23809 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
23810 (
23811 cat <<\_ASBOX
23812 ## ------------------------------------------ ##
23813 ## Report this to the AC_PACKAGE_NAME lists. ##
23814 ## ------------------------------------------ ##
23815 _ASBOX
23816 ) |
23817 sed "s/^/$as_me: WARNING: /" >&2
23818 ;;
23819 esac
23820 echo "$as_me:$LINENO: checking for tk.h" >&5
23821 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
23822 if test "${ac_cv_header_tk_h+set}" = set; then
23823 echo $ECHO_N "(cached) $ECHO_C" >&6
23824 else
23825 ac_cv_header_tk_h=$ac_header_preproc
23826 fi
23827 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23828 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
23829
23830 fi
23831 if test $ac_cv_header_tk_h = yes; then
23832 ac_cv_c_tkh=installed
23833 else
23834 ac_cv_c_tkh=""
23835 fi
23836
23837
23838 fi
23839
23840 fi
23841
23842 if test x"${ac_cv_c_tkh}" != x ; then
23843 no_tk=""
23844 if test x"${ac_cv_c_tkh}" = x"installed" ; then
23845 echo "$as_me:$LINENO: result: is installed" >&5
23846 echo "${ECHO_T}is installed" >&6
23847 TKHDIR=""
23848 else
23849 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
23850 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
23851 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
23852 TKHDIR="-I${ac_cv_c_tkh}"
23853 fi
23854 else
23855 TKHDIR="# no Tk directory found"
23856 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
23857 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
23858 no_tk=true
23859 fi
23860
23861
23862
23863
23864 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
23865 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
23866 if test x"${ac_cv_c_itclh}" = x ; then
23867 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
23868 if test -f $i/generic/itcl.h ; then
23869 ac_cv_c_itclh=`(cd $i/generic; pwd)`
23870 break
23871 fi
23872 done
23873 fi
23874 if test x"${ac_cv_c_itclh}" = x ; then
23875 ITCLHDIR="# no Itcl private headers found"
23876 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
23877 echo "$as_me: error: Can't find Itcl private headers" >&2;}
23878 { (exit 1); exit 1; }; }
23879 fi
23880 if test x"${ac_cv_c_itclh}" != x ; then
23881 ITCLHDIR="-I${ac_cv_c_itclh}"
23882 fi
23883 # should always be here
23884 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
23885
23886 #AC_SUBST(ITCLLIB)
23887
23888
23889 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
23890 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
23891 if test x"${ac_cv_c_itkh}" = x ; then
23892 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
23893 if test -f $i/generic/itk.h ; then
23894 ac_cv_c_itkh=`(cd $i/generic; pwd)`
23895 break
23896 fi
23897 done
23898 fi
23899 if test x"${ac_cv_c_itkh}" = x ; then
23900 ITKHDIR="# no Itk private headers found"
23901 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
23902 echo "$as_me: error: Can't find Itk private headers" >&2;}
23903 { (exit 1); exit 1; }; }
23904 fi
23905 if test x"${ac_cv_c_itkh}" != x ; then
23906 ITKHDIR="-I${ac_cv_c_itkh}"
23907 fi
23908 # should always be here
23909 # ITKLIB="../itcl/itk/unix/libitk.a"
23910
23911 #AC_SUBST(ITKLIB)
23912
23913
23914
23915 # now look for Tk library stuff
23916
23917 tkdir="../tk/${configdir}/"
23918
23919 TK_DEPS="${tkdir}${TK_LIB_FILE}"
23920
23921 # now look for Itcl library stuff
23922
23923
23924 #
23925 # Ok, lets find the itcl configuration
23926 # First, look for one uninstalled.
23927 # the alternative search directory is invoked by --with-itclconfig
23928 #
23929
23930 if test x"${no_itcl}" = x ; then
23931 # we reset no_itcl in case something fails here
23932 no_itcl=true
23933
23934 # Check whether --with-itclconfig or --without-itclconfig was given.
23935 if test "${with_itclconfig+set}" = set; then
23936 withval="$with_itclconfig"
23937 with_itclconfig=${withval}
23938 fi;
23939 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
23940 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
23941 if test "${ac_cv_c_itclconfig+set}" = set; then
23942 echo $ECHO_N "(cached) $ECHO_C" >&6
23943 else
23944
23945
23946 # First check to see if --with-itclconfig was specified.
23947 if test x"${with_itclconfig}" != x ; then
23948 if test -f "${with_itclconfig}/itclConfig.sh" ; then
23949 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
23950 else
23951 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
23952 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
23953 { (exit 1); exit 1; }; }
23954 fi
23955 fi
23956
23957 # then check for a private Itcl library
23958 if test x"${ac_cv_c_itclconfig}" = x ; then
23959 for i in \
23960 ../itcl/itcl \
23961 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
23962 ../../itcl \
23963 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
23964 ../../../itcl \
23965 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
23966 if test -f "$i/itclConfig.sh" ; then
23967 ac_cv_c_itclconfig=`(cd $i; pwd)`
23968 break
23969 fi
23970 done
23971 fi
23972 # check in a few common install locations
23973 if test x"${ac_cv_c_itclconfig}" = x ; then
23974 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23975 if test -f "$i/itclConfig.sh" ; then
23976 ac_cv_c_itclconfig=`(cd $i; pwd)`
23977 break
23978 fi
23979 done
23980 fi
23981 # check in a few other private locations
23982 if test x"${ac_cv_c_itclconfig}" = x ; then
23983 for i in \
23984 ${srcdir}/../itcl/itcl \
23985 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
23986 if test -f "$i/itclConfig.sh" ; then
23987 ac_cv_c_itclconfig=`(cd $i; pwd)`
23988 break
23989 fi
23990 done
23991 fi
23992
23993 fi
23994
23995 if test x"${ac_cv_c_itclconfig}" = x ; then
23996 ITCLCONFIG="# no Itcl configs found"
23997 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
23998 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
23999 else
24000 no_itcl=
24001 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
24002 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
24003 echo "${ECHO_T}found $ITCLCONFIG" >&6
24004 fi
24005 fi
24006
24007 if test -z "${no_itcl}"; then
24008
24009 if test -f "$ITCLCONFIG" ; then
24010 . $ITCLCONFIG
24011 fi
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
24025 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
24026 fi
24027
24028
24029 # now look for Itk library stuff
24030
24031 #
24032 # Ok, lets find the itk configuration
24033 # First, look for one uninstalled.
24034 # the alternative search directory is invoked by --with-itkconfig
24035 #
24036
24037 if test x"${no_itk}" = x ; then
24038 # we reset no_itk in case something fails here
24039 no_itk=true
24040
24041 # Check whether --with-itkconfig or --without-itkconfig was given.
24042 if test "${with_itkconfig+set}" = set; then
24043 withval="$with_itkconfig"
24044 with_itkconfig=${withval}
24045 fi;
24046 echo "$as_me:$LINENO: checking for Itk configuration" >&5
24047 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
24048 if test "${ac_cv_c_itkconfig+set}" = set; then
24049 echo $ECHO_N "(cached) $ECHO_C" >&6
24050 else
24051
24052
24053 # First check to see if --with-itkconfig was specified.
24054 if test x"${with_itkconfig}" != x ; then
24055 if test -f "${with_itkconfig}/itkConfig.sh" ; then
24056 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
24057 else
24058 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
24059 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
24060 { (exit 1); exit 1; }; }
24061 fi
24062 fi
24063
24064 # then check for a private Itk library
24065 if test x"${ac_cv_c_itkconfig}" = x ; then
24066 for i in \
24067 ../itcl/itk \
24068 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
24069 ../../itk \
24070 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
24071 ../../../itk \
24072 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
24073 if test -f "$i/itkConfig.sh" ; then
24074 ac_cv_c_itkconfig=`(cd $i; pwd)`
24075 break
24076 fi
24077 done
24078 fi
24079 # check in a few common install locations
24080 if test x"${ac_cv_c_itkconfig}" = x ; then
24081 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24082 if test -f "$i/itkConfig.sh" ; then
24083 ac_cv_c_itkconfig=`(cd $i; pwd)`
24084 break
24085 fi
24086 done
24087 fi
24088 # check in a few other private locations
24089 if test x"${ac_cv_c_itkconfig}" = x ; then
24090 for i in \
24091 ${srcdir}/../itcl/itk \
24092 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
24093 if test -f "$i/itkConfig.sh" ; then
24094 ac_cv_c_itkconfig=`(cd $i; pwd)`
24095 break
24096 fi
24097 done
24098 fi
24099
24100 fi
24101
24102 if test x"${ac_cv_c_itkconfig}" = x ; then
24103 ITKCONFIG="# no Itk configs found"
24104 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
24105 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
24106 else
24107 no_itk=
24108 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
24109 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
24110 echo "${ECHO_T}found $ITKCONFIG" >&6
24111 fi
24112 fi
24113
24114
24115 if test -z "${no_itcl}"; then
24116
24117 if test -f "$ITKCONFIG" ; then
24118 . $ITKCONFIG
24119 fi
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132 ITKLIB="${ITK_BUILD_LIB_SPEC}"
24133 ITK_DEPS="${ITK_LIB_FULL_PATH}"
24134 fi
24135
24136 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
24137
24138 # Include some libraries that Tcl and Tk want.
24139 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
24140 # Yes, the ordering seems wrong here. But it isn't.
24141 # TK_LIBS is the list of libraries that need to be linked
24142 # after Tcl/Tk. Note that this isn't put into LIBS. If it
24143 # were in LIBS then any link tests after this point would
24144 # try to include things like `$(LIBGUI)', which wouldn't work.
24145 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
24146
24147 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
24148 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
24149 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
24150 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
24151 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
24152 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
24153 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
24154
24155 if test x$gdb_cv_os_cygwin = xyes; then
24156 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
24157 WIN32LDAPP="-Wl,--subsystem,console"
24158 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
24159 fi
24160 fi
24161 fi
24162
24163
24164
24165 subdirs="$subdirs gdbtk"
24166
24167 fi
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182 echo "$as_me:$LINENO: checking for X" >&5
24183 echo $ECHO_N "checking for X... $ECHO_C" >&6
24184
24185
24186 # Check whether --with-x or --without-x was given.
24187 if test "${with_x+set}" = set; then
24188 withval="$with_x"
24189
24190 fi;
24191 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24192 if test "x$with_x" = xno; then
24193 # The user explicitly disabled X.
24194 have_x=disabled
24195 else
24196 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24197 # Both variables are already set.
24198 have_x=yes
24199 else
24200 if test "${ac_cv_have_x+set}" = set; then
24201 echo $ECHO_N "(cached) $ECHO_C" >&6
24202 else
24203 # One or both of the vars are not set, and there is no cached value.
24204 ac_x_includes=no ac_x_libraries=no
24205 rm -fr conftest.dir
24206 if mkdir conftest.dir; then
24207 cd conftest.dir
24208 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24209 cat >Imakefile <<'_ACEOF'
24210 acfindx:
24211 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24212 _ACEOF
24213 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24215 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24216 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24217 for ac_extension in a so sl; do
24218 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
24219 test -f $ac_im_libdir/libX11.$ac_extension; then
24220 ac_im_usrlibdir=$ac_im_libdir; break
24221 fi
24222 done
24223 # Screen out bogus values from the imake configuration. They are
24224 # bogus both because they are the default anyway, and because
24225 # using them would break gcc on systems where it needs fixed includes.
24226 case $ac_im_incroot in
24227 /usr/include) ;;
24228 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24229 esac
24230 case $ac_im_usrlibdir in
24231 /usr/lib | /lib) ;;
24232 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24233 esac
24234 fi
24235 cd ..
24236 rm -fr conftest.dir
24237 fi
24238
24239 # Standard set of common directories for X headers.
24240 # Check X11 before X11Rn because it is often a symlink to the current release.
24241 ac_x_header_dirs='
24242 /usr/X11/include
24243 /usr/X11R6/include
24244 /usr/X11R5/include
24245 /usr/X11R4/include
24246
24247 /usr/include/X11
24248 /usr/include/X11R6
24249 /usr/include/X11R5
24250 /usr/include/X11R4
24251
24252 /usr/local/X11/include
24253 /usr/local/X11R6/include
24254 /usr/local/X11R5/include
24255 /usr/local/X11R4/include
24256
24257 /usr/local/include/X11
24258 /usr/local/include/X11R6
24259 /usr/local/include/X11R5
24260 /usr/local/include/X11R4
24261
24262 /usr/X386/include
24263 /usr/x386/include
24264 /usr/XFree86/include/X11
24265
24266 /usr/include
24267 /usr/local/include
24268 /usr/unsupported/include
24269 /usr/athena/include
24270 /usr/local/x11r5/include
24271 /usr/lpp/Xamples/include
24272
24273 /usr/openwin/include
24274 /usr/openwin/share/include'
24275
24276 if test "$ac_x_includes" = no; then
24277 # Guess where to find include files, by looking for Intrinsic.h.
24278 # First, try using that file with no special directory specified.
24279 cat >conftest.$ac_ext <<_ACEOF
24280 /* confdefs.h. */
24281 _ACEOF
24282 cat confdefs.h >>conftest.$ac_ext
24283 cat >>conftest.$ac_ext <<_ACEOF
24284 /* end confdefs.h. */
24285 #include <X11/Intrinsic.h>
24286 _ACEOF
24287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24289 ac_status=$?
24290 grep -v '^ *+' conftest.er1 >conftest.err
24291 rm -f conftest.er1
24292 cat conftest.err >&5
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); } >/dev/null; then
24295 if test -s conftest.err; then
24296 ac_cpp_err=$ac_c_preproc_warn_flag
24297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24298 else
24299 ac_cpp_err=
24300 fi
24301 else
24302 ac_cpp_err=yes
24303 fi
24304 if test -z "$ac_cpp_err"; then
24305 # We can compile using X headers with no special include directory.
24306 ac_x_includes=
24307 else
24308 echo "$as_me: failed program was:" >&5
24309 sed 's/^/| /' conftest.$ac_ext >&5
24310
24311 for ac_dir in $ac_x_header_dirs; do
24312 if test -r "$ac_dir/X11/Intrinsic.h"; then
24313 ac_x_includes=$ac_dir
24314 break
24315 fi
24316 done
24317 fi
24318 rm -f conftest.err conftest.$ac_ext
24319 fi # $ac_x_includes = no
24320
24321 if test "$ac_x_libraries" = no; then
24322 # Check for the libraries.
24323 # See if we find them without any special options.
24324 # Don't add to $LIBS permanently.
24325 ac_save_LIBS=$LIBS
24326 LIBS="-lXt $LIBS"
24327 cat >conftest.$ac_ext <<_ACEOF
24328 /* confdefs.h. */
24329 _ACEOF
24330 cat confdefs.h >>conftest.$ac_ext
24331 cat >>conftest.$ac_ext <<_ACEOF
24332 /* end confdefs.h. */
24333 #include <X11/Intrinsic.h>
24334 int
24335 main ()
24336 {
24337 XtMalloc (0)
24338 ;
24339 return 0;
24340 }
24341 _ACEOF
24342 rm -f conftest.$ac_objext conftest$ac_exeext
24343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24344 (eval $ac_link) 2>conftest.er1
24345 ac_status=$?
24346 grep -v '^ *+' conftest.er1 >conftest.err
24347 rm -f conftest.er1
24348 cat conftest.err >&5
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); } &&
24351 { ac_try='test -z "$ac_c_werror_flag"
24352 || test ! -s conftest.err'
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24355 ac_status=$?
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; } &&
24358 { ac_try='test -s conftest$ac_exeext'
24359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24360 (eval $ac_try) 2>&5
24361 ac_status=$?
24362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); }; }; then
24364 LIBS=$ac_save_LIBS
24365 # We can link X programs with no special library path.
24366 ac_x_libraries=
24367 else
24368 echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24370
24371 LIBS=$ac_save_LIBS
24372 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24373 do
24374 # Don't even attempt the hair of trying to link an X program!
24375 for ac_extension in a so sl; do
24376 if test -r $ac_dir/libXt.$ac_extension; then
24377 ac_x_libraries=$ac_dir
24378 break 2
24379 fi
24380 done
24381 done
24382 fi
24383 rm -f conftest.err conftest.$ac_objext \
24384 conftest$ac_exeext conftest.$ac_ext
24385 fi # $ac_x_libraries = no
24386
24387 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24388 # Didn't find X anywhere. Cache the known absence of X.
24389 ac_cv_have_x="have_x=no"
24390 else
24391 # Record where we found X for the cache.
24392 ac_cv_have_x="have_x=yes \
24393 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
24394 fi
24395 fi
24396
24397 fi
24398 eval "$ac_cv_have_x"
24399 fi # $with_x != no
24400
24401 if test "$have_x" != yes; then
24402 echo "$as_me:$LINENO: result: $have_x" >&5
24403 echo "${ECHO_T}$have_x" >&6
24404 no_x=yes
24405 else
24406 # If each of the values was on the command line, it overrides each guess.
24407 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24408 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24409 # Update the cache value to reflect the command line values.
24410 ac_cv_have_x="have_x=yes \
24411 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24412 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24413 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
24414 fi
24415
24416
24417 # Check whether we should enable the TUI, but only do so if we really
24418 # can.
24419 if test x"$enable_tui" = xyes; then
24420 if test -d $srcdir/tui; then
24421 if test "$ac_cv_search_waddstr" != no; then
24422 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
24423 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
24424 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
24425 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
24426 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
24427 CONFIG_ALL="${CONFIG_ALL} all-tui"
24428 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
24429 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
24430 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
24431 else
24432 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
24433 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
24434 fi
24435 fi
24436 fi
24437
24438 # Unlike the sim directory, whether a simulator is linked is controlled by
24439 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
24440 # This code just checks for a few cases where we'd like to ignore those
24441 # definitions, even when they're present in the '.mt' file. These cases
24442 # are when --disable-sim is specified, or if the simulator directory is
24443 # not part of the source tree.
24444 #
24445 # Check whether --enable-sim or --disable-sim was given.
24446 if test "${enable_sim+set}" = set; then
24447 enableval="$enable_sim"
24448 echo "enable_sim = $enable_sim";
24449 echo "enableval = ${enableval}";
24450 case "${enableval}" in
24451 yes) ignore_sim=false ;;
24452 no) ignore_sim=true ;;
24453 *) ignore_sim=false ;;
24454 esac
24455 else
24456 ignore_sim=false
24457 fi;
24458
24459 if test ! -d "${srcdir}/../sim"; then
24460 ignore_sim=true
24461 fi
24462
24463 if test "${ignore_sim}" = "true"; then
24464 IGNORE_SIM="SIM="
24465 IGNORE_SIM_OBS="SIM_OBS="
24466 else
24467 IGNORE_SIM=""
24468 IGNORE_SIM_OBS=""
24469
24470 cat >>confdefs.h <<\_ACEOF
24471 #define WITH_SIM 1
24472 _ACEOF
24473
24474 fi
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487
24488
24489 # List of host floatformats.
24490
24491 cat >>confdefs.h <<_ACEOF
24492 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
24493 _ACEOF
24494
24495
24496 cat >>confdefs.h <<_ACEOF
24497 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
24498 _ACEOF
24499
24500
24501 cat >>confdefs.h <<_ACEOF
24502 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
24503 _ACEOF
24504
24505
24506 # target_subdir is used by the testsuite to find the target libraries.
24507 target_subdir=
24508 if test "${host}" != "${target}"; then
24509 target_subdir="${target_alias}/"
24510 fi
24511
24512
24513 frags=
24514 if test "${target}" = "${host}"; then
24515 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
24516 if test ! -f ${host_makefile_frag}; then
24517 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
24518 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
24519 { (exit 1); exit 1; }; }
24520 fi
24521 frags="$frags $host_makefile_frag"
24522 else
24523 host_makefile_frag=/dev/null
24524 fi
24525
24526 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
24527 if test ! -f ${target_makefile_frag}; then
24528 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
24529 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
24530 { (exit 1); exit 1; }; }
24531 fi
24532 frags="$frags $target_makefile_frag"
24533
24534
24535
24536
24537
24538 hostfile=`sed -n '
24539 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24540 ' ${host_makefile_frag}`
24541
24542 targetfile=`sed -n '
24543 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24544 ' ${target_makefile_frag}`
24545
24546 if test "${target}" = "${host}"; then
24547 # We pick this up from the host configuration file (.mh) because we
24548 # do not have a native configuration Makefile fragment.
24549 nativefile=`sed -n '
24550 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24551 ' ${host_makefile_frag}`
24552 fi
24553
24554
24555 if test x"${gdb_osabi}" != x ; then
24556
24557 cat >>confdefs.h <<_ACEOF
24558 #define GDB_OSABI_DEFAULT $gdb_osabi
24559 _ACEOF
24560
24561 fi
24562
24563 # Enable multi-ice-gdb-server.
24564 # Check whether --enable-multi-ice or --disable-multi-ice was given.
24565 if test "${enable_multi_ice+set}" = set; then
24566 enableval="$enable_multi_ice"
24567 case $enableval in
24568 yes | no)
24569 ;;
24570 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
24571 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
24572 { (exit 1); exit 1; }; } ;;
24573 esac
24574 fi;
24575 if test "x$enable_multi_ice" = xyes; then
24576
24577
24578 subdirs="$subdirs multi-ice"
24579
24580 fi
24581
24582 # We only build gdbserver automatically if host and target are the same.
24583 if test "x$target" = "x$host"; then
24584 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
24585 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
24586 if test "x$build_gdbserver" = xyes; then
24587 echo "$as_me:$LINENO: result: yes" >&5
24588 echo "${ECHO_T}yes" >&6
24589
24590
24591 subdirs="$subdirs gdbserver"
24592
24593 else
24594 echo "$as_me:$LINENO: result: no" >&5
24595 echo "${ECHO_T}no" >&6
24596 fi
24597 fi
24598
24599 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
24600 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
24601 # to an empty version.
24602
24603 files=
24604 links=
24605
24606 rm -f xm.h
24607 xm_h=""
24608 if test "${hostfile}" != ""; then
24609 xm_h=xm.h
24610 case "${hostfile}" in
24611 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
24612 * ) GDB_XM_FILE="${hostfile}"
24613 esac
24614 files="${files} ${GDB_XM_FILE}"
24615 links="${links} xm.h"
24616
24617 cat >>confdefs.h <<_ACEOF
24618 #define GDB_XM_FILE "${GDB_XM_FILE}"
24619 _ACEOF
24620
24621 fi
24622
24623
24624 rm -f tm.h
24625 tm_h=""
24626 if test "${targetfile}" != ""; then
24627 tm_h=tm.h
24628 case "${targetfile}" in
24629 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
24630 * ) GDB_TM_FILE="${targetfile}"
24631 esac
24632 files="${files} ${GDB_TM_FILE}"
24633 links="${links} tm.h"
24634
24635 cat >>confdefs.h <<_ACEOF
24636 #define GDB_TM_FILE "${GDB_TM_FILE}"
24637 _ACEOF
24638
24639 fi
24640
24641
24642 rm -f nm.h
24643 nm_h=""
24644 if test "${nativefile}" != ""; then
24645 nm_h=nm.h
24646 case "${nativefile}" in
24647 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
24648 * ) GDB_NM_FILE="${nativefile}"
24649 esac
24650 files="${files} ${GDB_NM_FILE}"
24651 links="${links} nm.h"
24652
24653 cat >>confdefs.h <<_ACEOF
24654 #define GDB_NM_FILE "${GDB_NM_FILE}"
24655 _ACEOF
24656
24657 fi
24658
24659
24660 ac_sources="$files"
24661 ac_dests="$links"
24662 while test -n "$ac_sources"; do
24663 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24664 set $ac_sources; ac_source=$1; shift; ac_sources=$*
24665 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
24666 done
24667 ac_config_links="$ac_config_links $ac_config_links_1"
24668
24669
24670
24671
24672
24673
24674 cat >>confdefs.h <<\_ACEOF
24675 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
24676 _ACEOF
24677
24678
24679
24680
24681
24682 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
24683 if test "${with_libiconv_prefix+set}" = set; then
24684 withval="$with_libiconv_prefix"
24685
24686 for dir in `echo "$withval" | tr : ' '`; do
24687 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
24688 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
24689 done
24690
24691 fi;
24692
24693 echo "$as_me:$LINENO: checking for iconv" >&5
24694 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
24695 if test "${am_cv_func_iconv+set}" = set; then
24696 echo $ECHO_N "(cached) $ECHO_C" >&6
24697 else
24698
24699 am_cv_func_iconv="no, consider installing GNU libiconv"
24700 am_cv_lib_iconv=no
24701 cat >conftest.$ac_ext <<_ACEOF
24702 /* confdefs.h. */
24703 _ACEOF
24704 cat confdefs.h >>conftest.$ac_ext
24705 cat >>conftest.$ac_ext <<_ACEOF
24706 /* end confdefs.h. */
24707 #include <stdlib.h>
24708 #include <iconv.h>
24709 int
24710 main ()
24711 {
24712 iconv_t cd = iconv_open("","");
24713 iconv(cd,NULL,NULL,NULL,NULL);
24714 iconv_close(cd);
24715 ;
24716 return 0;
24717 }
24718 _ACEOF
24719 rm -f conftest.$ac_objext conftest$ac_exeext
24720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24721 (eval $ac_link) 2>conftest.er1
24722 ac_status=$?
24723 grep -v '^ *+' conftest.er1 >conftest.err
24724 rm -f conftest.er1
24725 cat conftest.err >&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } &&
24728 { ac_try='test -z "$ac_c_werror_flag"
24729 || test ! -s conftest.err'
24730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731 (eval $ac_try) 2>&5
24732 ac_status=$?
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; } &&
24735 { ac_try='test -s conftest$ac_exeext'
24736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737 (eval $ac_try) 2>&5
24738 ac_status=$?
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); }; }; then
24741 am_cv_func_iconv=yes
24742 else
24743 echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24745
24746 fi
24747 rm -f conftest.err conftest.$ac_objext \
24748 conftest$ac_exeext conftest.$ac_ext
24749 if test "$am_cv_func_iconv" != yes; then
24750 am_save_LIBS="$LIBS"
24751 LIBS="$LIBS -liconv"
24752 cat >conftest.$ac_ext <<_ACEOF
24753 /* confdefs.h. */
24754 _ACEOF
24755 cat confdefs.h >>conftest.$ac_ext
24756 cat >>conftest.$ac_ext <<_ACEOF
24757 /* end confdefs.h. */
24758 #include <stdlib.h>
24759 #include <iconv.h>
24760 int
24761 main ()
24762 {
24763 iconv_t cd = iconv_open("","");
24764 iconv(cd,NULL,NULL,NULL,NULL);
24765 iconv_close(cd);
24766 ;
24767 return 0;
24768 }
24769 _ACEOF
24770 rm -f conftest.$ac_objext conftest$ac_exeext
24771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24772 (eval $ac_link) 2>conftest.er1
24773 ac_status=$?
24774 grep -v '^ *+' conftest.er1 >conftest.err
24775 rm -f conftest.er1
24776 cat conftest.err >&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } &&
24779 { ac_try='test -z "$ac_c_werror_flag"
24780 || test ! -s conftest.err'
24781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24782 (eval $ac_try) 2>&5
24783 ac_status=$?
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); }; } &&
24786 { ac_try='test -s conftest$ac_exeext'
24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; }; then
24792 am_cv_lib_iconv=yes
24793 am_cv_func_iconv=yes
24794 else
24795 echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24797
24798 fi
24799 rm -f conftest.err conftest.$ac_objext \
24800 conftest$ac_exeext conftest.$ac_ext
24801 LIBS="$am_save_LIBS"
24802 fi
24803
24804 fi
24805 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
24806 echo "${ECHO_T}$am_cv_func_iconv" >&6
24807 if test "$am_cv_func_iconv" = yes; then
24808
24809 cat >>confdefs.h <<\_ACEOF
24810 #define HAVE_ICONV 1
24811 _ACEOF
24812
24813 echo "$as_me:$LINENO: checking for iconv declaration" >&5
24814 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
24815 if test "${am_cv_proto_iconv+set}" = set; then
24816 echo $ECHO_N "(cached) $ECHO_C" >&6
24817 else
24818
24819 cat >conftest.$ac_ext <<_ACEOF
24820 /* confdefs.h. */
24821 _ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h. */
24825
24826 #include <stdlib.h>
24827 #include <iconv.h>
24828 extern
24829 #ifdef __cplusplus
24830 "C"
24831 #endif
24832 #if defined(__STDC__) || defined(__cplusplus)
24833 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
24834 #else
24835 size_t iconv();
24836 #endif
24837
24838 int
24839 main ()
24840 {
24841
24842 ;
24843 return 0;
24844 }
24845 _ACEOF
24846 rm -f conftest.$ac_objext
24847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24848 (eval $ac_compile) 2>conftest.er1
24849 ac_status=$?
24850 grep -v '^ *+' conftest.er1 >conftest.err
24851 rm -f conftest.er1
24852 cat conftest.err >&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } &&
24855 { ac_try='test -z "$ac_c_werror_flag"
24856 || test ! -s conftest.err'
24857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24858 (eval $ac_try) 2>&5
24859 ac_status=$?
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); }; } &&
24862 { ac_try='test -s conftest.$ac_objext'
24863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24864 (eval $ac_try) 2>&5
24865 ac_status=$?
24866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); }; }; then
24868 am_cv_proto_iconv_arg1=""
24869 else
24870 echo "$as_me: failed program was:" >&5
24871 sed 's/^/| /' conftest.$ac_ext >&5
24872
24873 am_cv_proto_iconv_arg1="const"
24874 fi
24875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24876 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);"
24877 fi
24878
24879 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
24880 echo "$as_me:$LINENO: result: ${ac_t:-
24881 }$am_cv_proto_iconv" >&5
24882 echo "${ECHO_T}${ac_t:-
24883 }$am_cv_proto_iconv" >&6
24884
24885 cat >>confdefs.h <<_ACEOF
24886 #define ICONV_CONST $am_cv_proto_iconv_arg1
24887 _ACEOF
24888
24889 fi
24890 LIBICONV=
24891 if test "$am_cv_lib_iconv" = yes; then
24892 LIBICONV="-liconv"
24893 fi
24894
24895
24896
24897 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
24898 ac_config_commands="$ac_config_commands default"
24899 cat >confcache <<\_ACEOF
24900 # This file is a shell script that caches the results of configure
24901 # tests run on this system so they can be shared between configure
24902 # scripts and configure runs, see configure's option --config-cache.
24903 # It is not useful on other systems. If it contains results you don't
24904 # want to keep, you may remove or edit it.
24905 #
24906 # config.status only pays attention to the cache file if you give it
24907 # the --recheck option to rerun configure.
24908 #
24909 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24910 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24911 # following values.
24912
24913 _ACEOF
24914
24915 # The following way of writing the cache mishandles newlines in values,
24916 # but we know of no workaround that is simple, portable, and efficient.
24917 # So, don't put newlines in cache variables' values.
24918 # Ultrix sh set writes to stderr and can't be redirected directly,
24919 # and sets the high bit in the cache file unless we assign to the vars.
24920 {
24921 (set) 2>&1 |
24922 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24923 *ac_space=\ *)
24924 # `set' does not quote correctly, so add quotes (double-quote
24925 # substitution turns \\\\ into \\, and sed turns \\ into \).
24926 sed -n \
24927 "s/'/'\\\\''/g;
24928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24929 ;;
24930 *)
24931 # `set' quotes correctly as required by POSIX, so do not add quotes.
24932 sed -n \
24933 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24934 ;;
24935 esac;
24936 } |
24937 sed '
24938 t clear
24939 : clear
24940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24941 t end
24942 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24943 : end' >>confcache
24944 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24945 if test -w $cache_file; then
24946 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24947 cat confcache >$cache_file
24948 else
24949 echo "not updating unwritable cache $cache_file"
24950 fi
24951 fi
24952 rm -f confcache
24953
24954 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24955 # Let make expand exec_prefix.
24956 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24957
24958 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24959 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24960 # trailing colons and then remove the whole line if VPATH becomes empty
24961 # (actually we leave an empty line to preserve line numbers).
24962 if test "x$srcdir" = x.; then
24963 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24964 s/:*\$(srcdir):*/:/;
24965 s/:*\${srcdir}:*/:/;
24966 s/:*@srcdir@:*/:/;
24967 s/^\([^=]*=[ ]*\):*/\1/;
24968 s/:*$//;
24969 s/^[^=]*=[ ]*$//;
24970 }'
24971 fi
24972
24973 DEFS=-DHAVE_CONFIG_H
24974
24975 ac_libobjs=
24976 ac_ltlibobjs=
24977 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24978 # 1. Remove the extension, and $U if already installed.
24979 ac_i=`echo "$ac_i" |
24980 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24981 # 2. Add them.
24982 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24983 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24984 done
24985 LIBOBJS=$ac_libobjs
24986
24987 LTLIBOBJS=$ac_ltlibobjs
24988
24989
24990 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24991 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24992 Usually this means the macro was only invoked conditionally." >&5
24993 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24994 Usually this means the macro was only invoked conditionally." >&2;}
24995 { (exit 1); exit 1; }; }
24996 fi
24997
24998 : ${CONFIG_STATUS=./config.status}
24999 ac_clean_files_save=$ac_clean_files
25000 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25001 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25002 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25003 cat >$CONFIG_STATUS <<_ACEOF
25004 #! $SHELL
25005 # Generated by $as_me.
25006 # Run this file to recreate the current configuration.
25007 # Compiler output produced by configure, useful for debugging
25008 # configure, is in config.log if it exists.
25009
25010 debug=false
25011 ac_cs_recheck=false
25012 ac_cs_silent=false
25013 SHELL=\${CONFIG_SHELL-$SHELL}
25014 _ACEOF
25015
25016 cat >>$CONFIG_STATUS <<\_ACEOF
25017 ## --------------------- ##
25018 ## M4sh Initialization. ##
25019 ## --------------------- ##
25020
25021 # Be Bourne compatible
25022 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25023 emulate sh
25024 NULLCMD=:
25025 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25026 # is contrary to our usage. Disable this feature.
25027 alias -g '${1+"$@"}'='"$@"'
25028 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25029 set -o posix
25030 fi
25031 DUALCASE=1; export DUALCASE # for MKS sh
25032
25033 # Support unset when possible.
25034 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25035 as_unset=unset
25036 else
25037 as_unset=false
25038 fi
25039
25040
25041 # Work around bugs in pre-3.0 UWIN ksh.
25042 $as_unset ENV MAIL MAILPATH
25043 PS1='$ '
25044 PS2='> '
25045 PS4='+ '
25046
25047 # NLS nuisances.
25048 for as_var in \
25049 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25050 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25051 LC_TELEPHONE LC_TIME
25052 do
25053 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25054 eval $as_var=C; export $as_var
25055 else
25056 $as_unset $as_var
25057 fi
25058 done
25059
25060 # Required to use basename.
25061 if expr a : '\(a\)' >/dev/null 2>&1; then
25062 as_expr=expr
25063 else
25064 as_expr=false
25065 fi
25066
25067 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25068 as_basename=basename
25069 else
25070 as_basename=false
25071 fi
25072
25073
25074 # Name of the executable.
25075 as_me=`$as_basename "$0" ||
25076 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25077 X"$0" : 'X\(//\)$' \| \
25078 X"$0" : 'X\(/\)$' \| \
25079 . : '\(.\)' 2>/dev/null ||
25080 echo X/"$0" |
25081 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25082 /^X\/\(\/\/\)$/{ s//\1/; q; }
25083 /^X\/\(\/\).*/{ s//\1/; q; }
25084 s/.*/./; q'`
25085
25086
25087 # PATH needs CR, and LINENO needs CR and PATH.
25088 # Avoid depending upon Character Ranges.
25089 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25090 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25091 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25092 as_cr_digits='0123456789'
25093 as_cr_alnum=$as_cr_Letters$as_cr_digits
25094
25095 # The user is always right.
25096 if test "${PATH_SEPARATOR+set}" != set; then
25097 echo "#! /bin/sh" >conf$$.sh
25098 echo "exit 0" >>conf$$.sh
25099 chmod +x conf$$.sh
25100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25101 PATH_SEPARATOR=';'
25102 else
25103 PATH_SEPARATOR=:
25104 fi
25105 rm -f conf$$.sh
25106 fi
25107
25108
25109 as_lineno_1=$LINENO
25110 as_lineno_2=$LINENO
25111 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25112 test "x$as_lineno_1" != "x$as_lineno_2" &&
25113 test "x$as_lineno_3" = "x$as_lineno_2" || {
25114 # Find who we are. Look in the path if we contain no path at all
25115 # relative or not.
25116 case $0 in
25117 *[\\/]* ) as_myself=$0 ;;
25118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25119 for as_dir in $PATH
25120 do
25121 IFS=$as_save_IFS
25122 test -z "$as_dir" && as_dir=.
25123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25124 done
25125
25126 ;;
25127 esac
25128 # We did not find ourselves, most probably we were run as `sh COMMAND'
25129 # in which case we are not to be found in the path.
25130 if test "x$as_myself" = x; then
25131 as_myself=$0
25132 fi
25133 if test ! -f "$as_myself"; then
25134 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25135 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25136 { (exit 1); exit 1; }; }
25137 fi
25138 case $CONFIG_SHELL in
25139 '')
25140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25141 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25142 do
25143 IFS=$as_save_IFS
25144 test -z "$as_dir" && as_dir=.
25145 for as_base in sh bash ksh sh5; do
25146 case $as_dir in
25147 /*)
25148 if ("$as_dir/$as_base" -c '
25149 as_lineno_1=$LINENO
25150 as_lineno_2=$LINENO
25151 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25152 test "x$as_lineno_1" != "x$as_lineno_2" &&
25153 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25154 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25155 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25156 CONFIG_SHELL=$as_dir/$as_base
25157 export CONFIG_SHELL
25158 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25159 fi;;
25160 esac
25161 done
25162 done
25163 ;;
25164 esac
25165
25166 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25167 # uniformly replaced by the line number. The first 'sed' inserts a
25168 # line-number line before each line; the second 'sed' does the real
25169 # work. The second script uses 'N' to pair each line-number line
25170 # with the numbered line, and appends trailing '-' during
25171 # substitution so that $LINENO is not a special case at line end.
25172 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25173 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25174 sed '=' <$as_myself |
25175 sed '
25176 N
25177 s,$,-,
25178 : loop
25179 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25180 t loop
25181 s,-$,,
25182 s,^['$as_cr_digits']*\n,,
25183 ' >$as_me.lineno &&
25184 chmod +x $as_me.lineno ||
25185 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25186 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25187 { (exit 1); exit 1; }; }
25188
25189 # Don't try to exec as it changes $[0], causing all sort of problems
25190 # (the dirname of $[0] is not the place where we might find the
25191 # original and so on. Autoconf is especially sensible to this).
25192 . ./$as_me.lineno
25193 # Exit status is that of the last command.
25194 exit
25195 }
25196
25197
25198 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25199 *c*,-n*) ECHO_N= ECHO_C='
25200 ' ECHO_T=' ' ;;
25201 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25202 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25203 esac
25204
25205 if expr a : '\(a\)' >/dev/null 2>&1; then
25206 as_expr=expr
25207 else
25208 as_expr=false
25209 fi
25210
25211 rm -f conf$$ conf$$.exe conf$$.file
25212 echo >conf$$.file
25213 if ln -s conf$$.file conf$$ 2>/dev/null; then
25214 # We could just check for DJGPP; but this test a) works b) is more generic
25215 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25216 if test -f conf$$.exe; then
25217 # Don't use ln at all; we don't have any links
25218 as_ln_s='cp -p'
25219 else
25220 as_ln_s='ln -s'
25221 fi
25222 elif ln conf$$.file conf$$ 2>/dev/null; then
25223 as_ln_s=ln
25224 else
25225 as_ln_s='cp -p'
25226 fi
25227 rm -f conf$$ conf$$.exe conf$$.file
25228
25229 if mkdir -p . 2>/dev/null; then
25230 as_mkdir_p=:
25231 else
25232 test -d ./-p && rmdir ./-p
25233 as_mkdir_p=false
25234 fi
25235
25236 as_executable_p="test -f"
25237
25238 # Sed expression to map a string onto a valid CPP name.
25239 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25240
25241 # Sed expression to map a string onto a valid variable name.
25242 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25243
25244
25245 # IFS
25246 # We need space, tab and new line, in precisely that order.
25247 as_nl='
25248 '
25249 IFS=" $as_nl"
25250
25251 # CDPATH.
25252 $as_unset CDPATH
25253
25254 exec 6>&1
25255
25256 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25257 # report actual input values of CONFIG_FILES etc. instead of their
25258 # values after options handling. Logging --version etc. is OK.
25259 exec 5>>config.log
25260 {
25261 echo
25262 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25263 ## Running $as_me. ##
25264 _ASBOX
25265 } >&5
25266 cat >&5 <<_CSEOF
25267
25268 This file was extended by $as_me, which was
25269 generated by GNU Autoconf 2.59. Invocation command line was
25270
25271 CONFIG_FILES = $CONFIG_FILES
25272 CONFIG_HEADERS = $CONFIG_HEADERS
25273 CONFIG_LINKS = $CONFIG_LINKS
25274 CONFIG_COMMANDS = $CONFIG_COMMANDS
25275 $ $0 $@
25276
25277 _CSEOF
25278 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25279 echo >&5
25280 _ACEOF
25281
25282 # Files that config.status was made for.
25283 if test -n "$ac_config_files"; then
25284 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25285 fi
25286
25287 if test -n "$ac_config_headers"; then
25288 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25289 fi
25290
25291 if test -n "$ac_config_links"; then
25292 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25293 fi
25294
25295 if test -n "$ac_config_commands"; then
25296 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25297 fi
25298
25299 cat >>$CONFIG_STATUS <<\_ACEOF
25300
25301 ac_cs_usage="\
25302 \`$as_me' instantiates files from templates according to the
25303 current configuration.
25304
25305 Usage: $0 [OPTIONS] [FILE]...
25306
25307 -h, --help print this help, then exit
25308 -V, --version print version number, then exit
25309 -q, --quiet do not print progress messages
25310 -d, --debug don't remove temporary files
25311 --recheck update $as_me by reconfiguring in the same conditions
25312 --file=FILE[:TEMPLATE]
25313 instantiate the configuration file FILE
25314 --header=FILE[:TEMPLATE]
25315 instantiate the configuration header FILE
25316
25317 Configuration files:
25318 $config_files
25319
25320 Configuration headers:
25321 $config_headers
25322
25323 Configuration links:
25324 $config_links
25325
25326 Configuration commands:
25327 $config_commands
25328
25329 Report bugs to <bug-autoconf@gnu.org>."
25330 _ACEOF
25331
25332 cat >>$CONFIG_STATUS <<_ACEOF
25333 ac_cs_version="\\
25334 config.status
25335 configured by $0, generated by GNU Autoconf 2.59,
25336 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25337
25338 Copyright (C) 2003 Free Software Foundation, Inc.
25339 This config.status script is free software; the Free Software Foundation
25340 gives unlimited permission to copy, distribute and modify it."
25341 srcdir=$srcdir
25342 INSTALL="$INSTALL"
25343 _ACEOF
25344
25345 cat >>$CONFIG_STATUS <<\_ACEOF
25346 # If no file are specified by the user, then we need to provide default
25347 # value. By we need to know if files were specified by the user.
25348 ac_need_defaults=:
25349 while test $# != 0
25350 do
25351 case $1 in
25352 --*=*)
25353 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25354 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25355 ac_shift=:
25356 ;;
25357 -*)
25358 ac_option=$1
25359 ac_optarg=$2
25360 ac_shift=shift
25361 ;;
25362 *) # This is not an option, so the user has probably given explicit
25363 # arguments.
25364 ac_option=$1
25365 ac_need_defaults=false;;
25366 esac
25367
25368 case $ac_option in
25369 # Handling of the options.
25370 _ACEOF
25371 cat >>$CONFIG_STATUS <<\_ACEOF
25372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25373 ac_cs_recheck=: ;;
25374 --version | --vers* | -V )
25375 echo "$ac_cs_version"; exit 0 ;;
25376 --he | --h)
25377 # Conflict between --help and --header
25378 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25379 Try \`$0 --help' for more information." >&5
25380 echo "$as_me: error: ambiguous option: $1
25381 Try \`$0 --help' for more information." >&2;}
25382 { (exit 1); exit 1; }; };;
25383 --help | --hel | -h )
25384 echo "$ac_cs_usage"; exit 0 ;;
25385 --debug | --d* | -d )
25386 debug=: ;;
25387 --file | --fil | --fi | --f )
25388 $ac_shift
25389 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25390 ac_need_defaults=false;;
25391 --header | --heade | --head | --hea )
25392 $ac_shift
25393 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25394 ac_need_defaults=false;;
25395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25396 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25397 ac_cs_silent=: ;;
25398
25399 # This is an error.
25400 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25401 Try \`$0 --help' for more information." >&5
25402 echo "$as_me: error: unrecognized option: $1
25403 Try \`$0 --help' for more information." >&2;}
25404 { (exit 1); exit 1; }; } ;;
25405
25406 *) ac_config_targets="$ac_config_targets $1" ;;
25407
25408 esac
25409 shift
25410 done
25411
25412 ac_configure_extra_args=
25413
25414 if $ac_cs_silent; then
25415 exec 6>/dev/null
25416 ac_configure_extra_args="$ac_configure_extra_args --silent"
25417 fi
25418
25419 _ACEOF
25420 cat >>$CONFIG_STATUS <<_ACEOF
25421 if \$ac_cs_recheck; then
25422 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25423 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25424 fi
25425
25426 _ACEOF
25427
25428 cat >>$CONFIG_STATUS <<_ACEOF
25429 #
25430 # INIT-COMMANDS section.
25431 #
25432
25433
25434 GCC="$GCC"
25435 CC="$CC"
25436 acx_cv_header_stdint="$acx_cv_header_stdint"
25437 acx_cv_type_int8_t="$acx_cv_type_int8_t"
25438 acx_cv_type_int16_t="$acx_cv_type_int16_t"
25439 acx_cv_type_int32_t="$acx_cv_type_int32_t"
25440 acx_cv_type_int64_t="$acx_cv_type_int64_t"
25441 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
25442 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
25443 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
25444 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25445 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25446 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
25447 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25448 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25449 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
25450
25451
25452 gdb_host_cpu=$gdb_host_cpu
25453 gdb_target_cpu=$gdb_target_cpu
25454 nativefile=$nativefile
25455
25456
25457 _ACEOF
25458
25459
25460
25461 cat >>$CONFIG_STATUS <<\_ACEOF
25462 for ac_config_target in $ac_config_targets
25463 do
25464 case "$ac_config_target" in
25465 # Handling of arguments.
25466 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25467 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
25468 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25469 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
25470 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25471 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
25472 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25473 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25474 { (exit 1); exit 1; }; };;
25475 esac
25476 done
25477
25478 # If the user did not use the arguments to specify the items to instantiate,
25479 # then the envvar interface is used. Set only those that are not.
25480 # We use the long form for the default assignment because of an extremely
25481 # bizarre bug on SunOS 4.1.3.
25482 if $ac_need_defaults; then
25483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25485 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25486 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25487 fi
25488
25489 # Have a temporary directory for convenience. Make it in the build tree
25490 # simply because there is no reason to put it here, and in addition,
25491 # creating and moving files from /tmp can sometimes cause problems.
25492 # Create a temporary directory, and hook for its removal unless debugging.
25493 $debug ||
25494 {
25495 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25496 trap '{ (exit 1); exit 1; }' 1 2 13 15
25497 }
25498
25499 # Create a (secure) tmp directory for tmp files.
25500
25501 {
25502 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25503 test -n "$tmp" && test -d "$tmp"
25504 } ||
25505 {
25506 tmp=./confstat$$-$RANDOM
25507 (umask 077 && mkdir $tmp)
25508 } ||
25509 {
25510 echo "$me: cannot create a temporary directory in ." >&2
25511 { (exit 1); exit 1; }
25512 }
25513
25514 _ACEOF
25515
25516 cat >>$CONFIG_STATUS <<_ACEOF
25517
25518 #
25519 # CONFIG_FILES section.
25520 #
25521
25522 # No need to generate the scripts if there are no CONFIG_FILES.
25523 # This happens for instance when ./config.status config.h
25524 if test -n "\$CONFIG_FILES"; then
25525 # Protect against being on the right side of a sed subst in config.status.
25526 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25527 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25528 s,@SHELL@,$SHELL,;t t
25529 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25530 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25531 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25532 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25533 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25534 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25535 s,@exec_prefix@,$exec_prefix,;t t
25536 s,@prefix@,$prefix,;t t
25537 s,@program_transform_name@,$program_transform_name,;t t
25538 s,@bindir@,$bindir,;t t
25539 s,@sbindir@,$sbindir,;t t
25540 s,@libexecdir@,$libexecdir,;t t
25541 s,@datadir@,$datadir,;t t
25542 s,@sysconfdir@,$sysconfdir,;t t
25543 s,@sharedstatedir@,$sharedstatedir,;t t
25544 s,@localstatedir@,$localstatedir,;t t
25545 s,@libdir@,$libdir,;t t
25546 s,@includedir@,$includedir,;t t
25547 s,@oldincludedir@,$oldincludedir,;t t
25548 s,@infodir@,$infodir,;t t
25549 s,@mandir@,$mandir,;t t
25550 s,@build_alias@,$build_alias,;t t
25551 s,@host_alias@,$host_alias,;t t
25552 s,@target_alias@,$target_alias,;t t
25553 s,@DEFS@,$DEFS,;t t
25554 s,@ECHO_C@,$ECHO_C,;t t
25555 s,@ECHO_N@,$ECHO_N,;t t
25556 s,@ECHO_T@,$ECHO_T,;t t
25557 s,@LIBS@,$LIBS,;t t
25558 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
25559 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
25560 s,@MAINT@,$MAINT,;t t
25561 s,@CC@,$CC,;t t
25562 s,@CFLAGS@,$CFLAGS,;t t
25563 s,@LDFLAGS@,$LDFLAGS,;t t
25564 s,@CPPFLAGS@,$CPPFLAGS,;t t
25565 s,@ac_ct_CC@,$ac_ct_CC,;t t
25566 s,@EXEEXT@,$EXEEXT,;t t
25567 s,@OBJEXT@,$OBJEXT,;t t
25568 s,@CPP@,$CPP,;t t
25569 s,@EGREP@,$EGREP,;t t
25570 s,@build@,$build,;t t
25571 s,@build_cpu@,$build_cpu,;t t
25572 s,@build_vendor@,$build_vendor,;t t
25573 s,@build_os@,$build_os,;t t
25574 s,@host@,$host,;t t
25575 s,@host_cpu@,$host_cpu,;t t
25576 s,@host_vendor@,$host_vendor,;t t
25577 s,@host_os@,$host_os,;t t
25578 s,@target@,$target,;t t
25579 s,@target_cpu@,$target_cpu,;t t
25580 s,@target_vendor@,$target_vendor,;t t
25581 s,@target_os@,$target_os,;t t
25582 s,@SET_MAKE@,$SET_MAKE,;t t
25583 s,@RANLIB@,$RANLIB,;t t
25584 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25585 s,@ALLOCA@,$ALLOCA,;t t
25586 s,@USE_NLS@,$USE_NLS,;t t
25587 s,@MSGFMT@,$MSGFMT,;t t
25588 s,@GMSGFMT@,$GMSGFMT,;t t
25589 s,@XGETTEXT@,$XGETTEXT,;t t
25590 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
25591 s,@CATALOGS@,$CATALOGS,;t t
25592 s,@CATOBJEXT@,$CATOBJEXT,;t t
25593 s,@DATADIRNAME@,$DATADIRNAME,;t t
25594 s,@GMOFILES@,$GMOFILES,;t t
25595 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25596 s,@INTLDEPS@,$INTLDEPS,;t t
25597 s,@INTLLIBS@,$INTLLIBS,;t t
25598 s,@INTLOBJS@,$INTLOBJS,;t t
25599 s,@POFILES@,$POFILES,;t t
25600 s,@POSUB@,$POSUB,;t t
25601 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
25602 s,@GT_NO@,$GT_NO,;t t
25603 s,@GT_YES@,$GT_YES,;t t
25604 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
25605 s,@l@,$l,;t t
25606 s,@localedir@,$localedir,;t t
25607 s,@PACKAGE@,$PACKAGE,;t t
25608 s,@subdirs@,$subdirs,;t t
25609 s,@AWK@,$AWK,;t t
25610 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25611 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25612 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25613 s,@LN_S@,$LN_S,;t t
25614 s,@YACC@,$YACC,;t t
25615 s,@AR@,$AR,;t t
25616 s,@ac_ct_AR@,$ac_ct_AR,;t t
25617 s,@DLLTOOL@,$DLLTOOL,;t t
25618 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
25619 s,@WINDRES@,$WINDRES,;t t
25620 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
25621 s,@MIG@,$MIG,;t t
25622 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
25623 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
25624 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25625 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25626 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
25627 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
25628 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
25629 s,@WIN32LIBS@,$WIN32LIBS,;t t
25630 s,@LIBGUI@,$LIBGUI,;t t
25631 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
25632 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
25633 s,@TCL_VERSION@,$TCL_VERSION,;t t
25634 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
25635 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
25636 s,@TCL_CC@,$TCL_CC,;t t
25637 s,@TCL_DEFS@,$TCL_DEFS,;t t
25638 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
25639 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
25640 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
25641 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
25642 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
25643 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
25644 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
25645 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
25646 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
25647 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
25648 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
25649 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
25650 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
25651 s,@TK_VERSION@,$TK_VERSION,;t t
25652 s,@TK_DEFS@,$TK_DEFS,;t t
25653 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
25654 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
25655 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
25656 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
25657 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
25658 s,@TCLHDIR@,$TCLHDIR,;t t
25659 s,@TKHDIR@,$TKHDIR,;t t
25660 s,@ITCLHDIR@,$ITCLHDIR,;t t
25661 s,@ITKHDIR@,$ITKHDIR,;t t
25662 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
25663 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
25664 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
25665 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
25666 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
25667 s,@ITK_VERSION@,$ITK_VERSION,;t t
25668 s,@ITK_DEFS@,$ITK_DEFS,;t t
25669 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
25670 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
25671 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
25672 s,@X_CFLAGS@,$X_CFLAGS,;t t
25673 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
25674 s,@X_LIBS@,$X_LIBS,;t t
25675 s,@TCL_DEPS@,$TCL_DEPS,;t t
25676 s,@TK_DEPS@,$TK_DEPS,;t t
25677 s,@ITCLLIB@,$ITCLLIB,;t t
25678 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
25679 s,@ITKLIB@,$ITKLIB,;t t
25680 s,@ITK_DEPS@,$ITK_DEPS,;t t
25681 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
25682 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
25683 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
25684 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
25685 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
25686 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
25687 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
25688 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
25689 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
25690 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
25691 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
25692 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
25693 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
25694 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
25695 s,@target_subdir@,$target_subdir,;t t
25696 s,@frags@,$frags,;t t
25697 s,@xm_h@,$xm_h,;t t
25698 s,@tm_h@,$tm_h,;t t
25699 s,@nm_h@,$nm_h,;t t
25700 s,@LIBICONV@,$LIBICONV,;t t
25701 s,@LIBOBJS@,$LIBOBJS,;t t
25702 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25703 /@host_makefile_frag@/r $host_makefile_frag
25704 s,@host_makefile_frag@,,;t t
25705 /@target_makefile_frag@/r $target_makefile_frag
25706 s,@target_makefile_frag@,,;t t
25707 CEOF
25708
25709 _ACEOF
25710
25711 cat >>$CONFIG_STATUS <<\_ACEOF
25712 # Split the substitutions into bite-sized pieces for seds with
25713 # small command number limits, like on Digital OSF/1 and HP-UX.
25714 ac_max_sed_lines=48
25715 ac_sed_frag=1 # Number of current file.
25716 ac_beg=1 # First line for current file.
25717 ac_end=$ac_max_sed_lines # Line after last line for current file.
25718 ac_more_lines=:
25719 ac_sed_cmds=
25720 while $ac_more_lines; do
25721 if test $ac_beg -gt 1; then
25722 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25723 else
25724 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25725 fi
25726 if test ! -s $tmp/subs.frag; then
25727 ac_more_lines=false
25728 else
25729 # The purpose of the label and of the branching condition is to
25730 # speed up the sed processing (if there are no `@' at all, there
25731 # is no need to browse any of the substitutions).
25732 # These are the two extra sed commands mentioned above.
25733 (echo ':t
25734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25735 if test -z "$ac_sed_cmds"; then
25736 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25737 else
25738 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25739 fi
25740 ac_sed_frag=`expr $ac_sed_frag + 1`
25741 ac_beg=$ac_end
25742 ac_end=`expr $ac_end + $ac_max_sed_lines`
25743 fi
25744 done
25745 if test -z "$ac_sed_cmds"; then
25746 ac_sed_cmds=cat
25747 fi
25748 fi # test -n "$CONFIG_FILES"
25749
25750 _ACEOF
25751 cat >>$CONFIG_STATUS <<\_ACEOF
25752 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25753 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25754 case $ac_file in
25755 - | *:- | *:-:* ) # input from stdin
25756 cat >$tmp/stdin
25757 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25759 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25760 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25761 * ) ac_file_in=$ac_file.in ;;
25762 esac
25763
25764 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25765 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25767 X"$ac_file" : 'X\(//\)[^/]' \| \
25768 X"$ac_file" : 'X\(//\)$' \| \
25769 X"$ac_file" : 'X\(/\)' \| \
25770 . : '\(.\)' 2>/dev/null ||
25771 echo X"$ac_file" |
25772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25774 /^X\(\/\/\)$/{ s//\1/; q; }
25775 /^X\(\/\).*/{ s//\1/; q; }
25776 s/.*/./; q'`
25777 { if $as_mkdir_p; then
25778 mkdir -p "$ac_dir"
25779 else
25780 as_dir="$ac_dir"
25781 as_dirs=
25782 while test ! -d "$as_dir"; do
25783 as_dirs="$as_dir $as_dirs"
25784 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25786 X"$as_dir" : 'X\(//\)[^/]' \| \
25787 X"$as_dir" : 'X\(//\)$' \| \
25788 X"$as_dir" : 'X\(/\)' \| \
25789 . : '\(.\)' 2>/dev/null ||
25790 echo X"$as_dir" |
25791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25793 /^X\(\/\/\)$/{ s//\1/; q; }
25794 /^X\(\/\).*/{ s//\1/; q; }
25795 s/.*/./; q'`
25796 done
25797 test ! -n "$as_dirs" || mkdir $as_dirs
25798 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25799 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25800 { (exit 1); exit 1; }; }; }
25801
25802 ac_builddir=.
25803
25804 if test "$ac_dir" != .; then
25805 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25806 # A "../" for each directory in $ac_dir_suffix.
25807 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25808 else
25809 ac_dir_suffix= ac_top_builddir=
25810 fi
25811
25812 case $srcdir in
25813 .) # No --srcdir option. We are building in place.
25814 ac_srcdir=.
25815 if test -z "$ac_top_builddir"; then
25816 ac_top_srcdir=.
25817 else
25818 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25819 fi ;;
25820 [\\/]* | ?:[\\/]* ) # Absolute path.
25821 ac_srcdir=$srcdir$ac_dir_suffix;
25822 ac_top_srcdir=$srcdir ;;
25823 *) # Relative path.
25824 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25825 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25826 esac
25827
25828 # Do not use `cd foo && pwd` to compute absolute paths, because
25829 # the directories may not exist.
25830 case `pwd` in
25831 .) ac_abs_builddir="$ac_dir";;
25832 *)
25833 case "$ac_dir" in
25834 .) ac_abs_builddir=`pwd`;;
25835 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25836 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25837 esac;;
25838 esac
25839 case $ac_abs_builddir in
25840 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25841 *)
25842 case ${ac_top_builddir}. in
25843 .) ac_abs_top_builddir=$ac_abs_builddir;;
25844 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25845 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25846 esac;;
25847 esac
25848 case $ac_abs_builddir in
25849 .) ac_abs_srcdir=$ac_srcdir;;
25850 *)
25851 case $ac_srcdir in
25852 .) ac_abs_srcdir=$ac_abs_builddir;;
25853 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25854 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25855 esac;;
25856 esac
25857 case $ac_abs_builddir in
25858 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25859 *)
25860 case $ac_top_srcdir in
25861 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25862 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25863 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25864 esac;;
25865 esac
25866
25867
25868 case $INSTALL in
25869 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25870 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25871 esac
25872
25873 if test x"$ac_file" != x-; then
25874 { echo "$as_me:$LINENO: creating $ac_file" >&5
25875 echo "$as_me: creating $ac_file" >&6;}
25876 rm -f "$ac_file"
25877 fi
25878 # Let's still pretend it is `configure' which instantiates (i.e., don't
25879 # use $as_me), people would be surprised to read:
25880 # /* config.h. Generated by config.status. */
25881 if test x"$ac_file" = x-; then
25882 configure_input=
25883 else
25884 configure_input="$ac_file. "
25885 fi
25886 configure_input=$configure_input"Generated from `echo $ac_file_in |
25887 sed 's,.*/,,'` by configure."
25888
25889 # First look for the input files in the build tree, otherwise in the
25890 # src tree.
25891 ac_file_inputs=`IFS=:
25892 for f in $ac_file_in; do
25893 case $f in
25894 -) echo $tmp/stdin ;;
25895 [\\/$]*)
25896 # Absolute (can't be DOS-style, as IFS=:)
25897 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25898 echo "$as_me: error: cannot find input file: $f" >&2;}
25899 { (exit 1); exit 1; }; }
25900 echo "$f";;
25901 *) # Relative
25902 if test -f "$f"; then
25903 # Build tree
25904 echo "$f"
25905 elif test -f "$srcdir/$f"; then
25906 # Source tree
25907 echo "$srcdir/$f"
25908 else
25909 # /dev/null tree
25910 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25911 echo "$as_me: error: cannot find input file: $f" >&2;}
25912 { (exit 1); exit 1; }; }
25913 fi;;
25914 esac
25915 done` || { (exit 1); exit 1; }
25916 _ACEOF
25917 cat >>$CONFIG_STATUS <<_ACEOF
25918 sed "$ac_vpsub
25919 $extrasub
25920 _ACEOF
25921 cat >>$CONFIG_STATUS <<\_ACEOF
25922 :t
25923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25924 s,@configure_input@,$configure_input,;t t
25925 s,@srcdir@,$ac_srcdir,;t t
25926 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25927 s,@top_srcdir@,$ac_top_srcdir,;t t
25928 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25929 s,@builddir@,$ac_builddir,;t t
25930 s,@abs_builddir@,$ac_abs_builddir,;t t
25931 s,@top_builddir@,$ac_top_builddir,;t t
25932 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25933 s,@INSTALL@,$ac_INSTALL,;t t
25934 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25935 rm -f $tmp/stdin
25936 if test x"$ac_file" != x-; then
25937 mv $tmp/out $ac_file
25938 else
25939 cat $tmp/out
25940 rm -f $tmp/out
25941 fi
25942
25943 done
25944 _ACEOF
25945 cat >>$CONFIG_STATUS <<\_ACEOF
25946
25947 #
25948 # CONFIG_HEADER section.
25949 #
25950
25951 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25952 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25953 #
25954 # ac_d sets the value in "#define NAME VALUE" lines.
25955 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25956 ac_dB='[ ].*$,\1#\2'
25957 ac_dC=' '
25958 ac_dD=',;t'
25959 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25960 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25961 ac_uB='$,\1#\2define\3'
25962 ac_uC=' '
25963 ac_uD=',;t'
25964
25965 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25966 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25967 case $ac_file in
25968 - | *:- | *:-:* ) # input from stdin
25969 cat >$tmp/stdin
25970 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25971 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25972 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25973 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25974 * ) ac_file_in=$ac_file.in ;;
25975 esac
25976
25977 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25978 echo "$as_me: creating $ac_file" >&6;}
25979
25980 # First look for the input files in the build tree, otherwise in the
25981 # src tree.
25982 ac_file_inputs=`IFS=:
25983 for f in $ac_file_in; do
25984 case $f in
25985 -) echo $tmp/stdin ;;
25986 [\\/$]*)
25987 # Absolute (can't be DOS-style, as IFS=:)
25988 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25989 echo "$as_me: error: cannot find input file: $f" >&2;}
25990 { (exit 1); exit 1; }; }
25991 # Do quote $f, to prevent DOS paths from being IFS'd.
25992 echo "$f";;
25993 *) # Relative
25994 if test -f "$f"; then
25995 # Build tree
25996 echo "$f"
25997 elif test -f "$srcdir/$f"; then
25998 # Source tree
25999 echo "$srcdir/$f"
26000 else
26001 # /dev/null tree
26002 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26003 echo "$as_me: error: cannot find input file: $f" >&2;}
26004 { (exit 1); exit 1; }; }
26005 fi;;
26006 esac
26007 done` || { (exit 1); exit 1; }
26008 # Remove the trailing spaces.
26009 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26010
26011 _ACEOF
26012
26013 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26014 # `conftest.undefs', that substitutes the proper values into
26015 # config.h.in to produce config.h. The first handles `#define'
26016 # templates, and the second `#undef' templates.
26017 # And first: Protect against being on the right side of a sed subst in
26018 # config.status. Protect against being in an unquoted here document
26019 # in config.status.
26020 rm -f conftest.defines conftest.undefs
26021 # Using a here document instead of a string reduces the quoting nightmare.
26022 # Putting comments in sed scripts is not portable.
26023 #
26024 # `end' is used to avoid that the second main sed command (meant for
26025 # 0-ary CPP macros) applies to n-ary macro definitions.
26026 # See the Autoconf documentation for `clear'.
26027 cat >confdef2sed.sed <<\_ACEOF
26028 s/[\\&,]/\\&/g
26029 s,[\\$`],\\&,g
26030 t clear
26031 : clear
26032 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26033 t end
26034 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26035 : end
26036 _ACEOF
26037 # If some macros were called several times there might be several times
26038 # the same #defines, which is useless. Nevertheless, we may not want to
26039 # sort them, since we want the *last* AC-DEFINE to be honored.
26040 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26041 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26042 rm -f confdef2sed.sed
26043
26044 # This sed command replaces #undef with comments. This is necessary, for
26045 # example, in the case of _POSIX_SOURCE, which is predefined and required
26046 # on some systems where configure will not decide to define it.
26047 cat >>conftest.undefs <<\_ACEOF
26048 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26049 _ACEOF
26050
26051 # Break up conftest.defines because some shells have a limit on the size
26052 # of here documents, and old seds have small limits too (100 cmds).
26053 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26054 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26055 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26056 echo ' :' >>$CONFIG_STATUS
26057 rm -f conftest.tail
26058 while grep . conftest.defines >/dev/null
26059 do
26060 # Write a limited-size here document to $tmp/defines.sed.
26061 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26062 # Speed up: don't consider the non `#define' lines.
26063 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26064 # Work around the forget-to-reset-the-flag bug.
26065 echo 't clr' >>$CONFIG_STATUS
26066 echo ': clr' >>$CONFIG_STATUS
26067 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26068 echo 'CEOF
26069 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26070 rm -f $tmp/in
26071 mv $tmp/out $tmp/in
26072 ' >>$CONFIG_STATUS
26073 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26074 rm -f conftest.defines
26075 mv conftest.tail conftest.defines
26076 done
26077 rm -f conftest.defines
26078 echo ' fi # grep' >>$CONFIG_STATUS
26079 echo >>$CONFIG_STATUS
26080
26081 # Break up conftest.undefs because some shells have a limit on the size
26082 # of here documents, and old seds have small limits too (100 cmds).
26083 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26084 rm -f conftest.tail
26085 while grep . conftest.undefs >/dev/null
26086 do
26087 # Write a limited-size here document to $tmp/undefs.sed.
26088 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26089 # Speed up: don't consider the non `#undef'
26090 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26091 # Work around the forget-to-reset-the-flag bug.
26092 echo 't clr' >>$CONFIG_STATUS
26093 echo ': clr' >>$CONFIG_STATUS
26094 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26095 echo 'CEOF
26096 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26097 rm -f $tmp/in
26098 mv $tmp/out $tmp/in
26099 ' >>$CONFIG_STATUS
26100 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26101 rm -f conftest.undefs
26102 mv conftest.tail conftest.undefs
26103 done
26104 rm -f conftest.undefs
26105
26106 cat >>$CONFIG_STATUS <<\_ACEOF
26107 # Let's still pretend it is `configure' which instantiates (i.e., don't
26108 # use $as_me), people would be surprised to read:
26109 # /* config.h. Generated by config.status. */
26110 if test x"$ac_file" = x-; then
26111 echo "/* Generated by configure. */" >$tmp/config.h
26112 else
26113 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26114 fi
26115 cat $tmp/in >>$tmp/config.h
26116 rm -f $tmp/in
26117 if test x"$ac_file" != x-; then
26118 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26119 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26120 echo "$as_me: $ac_file is unchanged" >&6;}
26121 else
26122 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26124 X"$ac_file" : 'X\(//\)[^/]' \| \
26125 X"$ac_file" : 'X\(//\)$' \| \
26126 X"$ac_file" : 'X\(/\)' \| \
26127 . : '\(.\)' 2>/dev/null ||
26128 echo X"$ac_file" |
26129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26131 /^X\(\/\/\)$/{ s//\1/; q; }
26132 /^X\(\/\).*/{ s//\1/; q; }
26133 s/.*/./; q'`
26134 { if $as_mkdir_p; then
26135 mkdir -p "$ac_dir"
26136 else
26137 as_dir="$ac_dir"
26138 as_dirs=
26139 while test ! -d "$as_dir"; do
26140 as_dirs="$as_dir $as_dirs"
26141 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26143 X"$as_dir" : 'X\(//\)[^/]' \| \
26144 X"$as_dir" : 'X\(//\)$' \| \
26145 X"$as_dir" : 'X\(/\)' \| \
26146 . : '\(.\)' 2>/dev/null ||
26147 echo X"$as_dir" |
26148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26150 /^X\(\/\/\)$/{ s//\1/; q; }
26151 /^X\(\/\).*/{ s//\1/; q; }
26152 s/.*/./; q'`
26153 done
26154 test ! -n "$as_dirs" || mkdir $as_dirs
26155 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26156 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26157 { (exit 1); exit 1; }; }; }
26158
26159 rm -f $ac_file
26160 mv $tmp/config.h $ac_file
26161 fi
26162 else
26163 cat $tmp/config.h
26164 rm -f $tmp/config.h
26165 fi
26166 done
26167 _ACEOF
26168 cat >>$CONFIG_STATUS <<\_ACEOF
26169
26170 #
26171 # CONFIG_LINKS section.
26172 #
26173
26174 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
26175 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26176 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26177
26178 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
26179 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
26180
26181 if test ! -r $srcdir/$ac_source; then
26182 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26183 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26184 { (exit 1); exit 1; }; }
26185 fi
26186 rm -f $ac_dest
26187
26188 # Make relative symlinks.
26189 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
26190 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26191 X"$ac_dest" : 'X\(//\)[^/]' \| \
26192 X"$ac_dest" : 'X\(//\)$' \| \
26193 X"$ac_dest" : 'X\(/\)' \| \
26194 . : '\(.\)' 2>/dev/null ||
26195 echo X"$ac_dest" |
26196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26198 /^X\(\/\/\)$/{ s//\1/; q; }
26199 /^X\(\/\).*/{ s//\1/; q; }
26200 s/.*/./; q'`
26201 { if $as_mkdir_p; then
26202 mkdir -p "$ac_dest_dir"
26203 else
26204 as_dir="$ac_dest_dir"
26205 as_dirs=
26206 while test ! -d "$as_dir"; do
26207 as_dirs="$as_dir $as_dirs"
26208 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26210 X"$as_dir" : 'X\(//\)[^/]' \| \
26211 X"$as_dir" : 'X\(//\)$' \| \
26212 X"$as_dir" : 'X\(/\)' \| \
26213 . : '\(.\)' 2>/dev/null ||
26214 echo X"$as_dir" |
26215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26217 /^X\(\/\/\)$/{ s//\1/; q; }
26218 /^X\(\/\).*/{ s//\1/; q; }
26219 s/.*/./; q'`
26220 done
26221 test ! -n "$as_dirs" || mkdir $as_dirs
26222 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
26223 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
26224 { (exit 1); exit 1; }; }; }
26225
26226 ac_builddir=.
26227
26228 if test "$ac_dest_dir" != .; then
26229 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
26230 # A "../" for each directory in $ac_dir_suffix.
26231 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26232 else
26233 ac_dir_suffix= ac_top_builddir=
26234 fi
26235
26236 case $srcdir in
26237 .) # No --srcdir option. We are building in place.
26238 ac_srcdir=.
26239 if test -z "$ac_top_builddir"; then
26240 ac_top_srcdir=.
26241 else
26242 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26243 fi ;;
26244 [\\/]* | ?:[\\/]* ) # Absolute path.
26245 ac_srcdir=$srcdir$ac_dir_suffix;
26246 ac_top_srcdir=$srcdir ;;
26247 *) # Relative path.
26248 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26249 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26250 esac
26251
26252 # Do not use `cd foo && pwd` to compute absolute paths, because
26253 # the directories may not exist.
26254 case `pwd` in
26255 .) ac_abs_builddir="$ac_dest_dir";;
26256 *)
26257 case "$ac_dest_dir" in
26258 .) ac_abs_builddir=`pwd`;;
26259 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
26260 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
26261 esac;;
26262 esac
26263 case $ac_abs_builddir in
26264 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26265 *)
26266 case ${ac_top_builddir}. in
26267 .) ac_abs_top_builddir=$ac_abs_builddir;;
26268 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26269 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26270 esac;;
26271 esac
26272 case $ac_abs_builddir in
26273 .) ac_abs_srcdir=$ac_srcdir;;
26274 *)
26275 case $ac_srcdir in
26276 .) ac_abs_srcdir=$ac_abs_builddir;;
26277 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26278 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26279 esac;;
26280 esac
26281 case $ac_abs_builddir in
26282 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26283 *)
26284 case $ac_top_srcdir in
26285 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26286 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26287 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26288 esac;;
26289 esac
26290
26291
26292 case $srcdir in
26293 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26294 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
26295 esac
26296
26297 # Try a symlink, then a hard link, then a copy.
26298 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26299 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26300 cp -p $srcdir/$ac_source $ac_dest ||
26301 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26302 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
26303 { (exit 1); exit 1; }; }
26304 done
26305 _ACEOF
26306 cat >>$CONFIG_STATUS <<\_ACEOF
26307
26308 #
26309 # CONFIG_COMMANDS section.
26310 #
26311 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26312 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26313 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26314 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26315 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26316 X"$ac_dest" : 'X\(//\)[^/]' \| \
26317 X"$ac_dest" : 'X\(//\)$' \| \
26318 X"$ac_dest" : 'X\(/\)' \| \
26319 . : '\(.\)' 2>/dev/null ||
26320 echo X"$ac_dest" |
26321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26323 /^X\(\/\/\)$/{ s//\1/; q; }
26324 /^X\(\/\).*/{ s//\1/; q; }
26325 s/.*/./; q'`
26326 { if $as_mkdir_p; then
26327 mkdir -p "$ac_dir"
26328 else
26329 as_dir="$ac_dir"
26330 as_dirs=
26331 while test ! -d "$as_dir"; do
26332 as_dirs="$as_dir $as_dirs"
26333 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26335 X"$as_dir" : 'X\(//\)[^/]' \| \
26336 X"$as_dir" : 'X\(//\)$' \| \
26337 X"$as_dir" : 'X\(/\)' \| \
26338 . : '\(.\)' 2>/dev/null ||
26339 echo X"$as_dir" |
26340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26342 /^X\(\/\/\)$/{ s//\1/; q; }
26343 /^X\(\/\).*/{ s//\1/; q; }
26344 s/.*/./; q'`
26345 done
26346 test ! -n "$as_dirs" || mkdir $as_dirs
26347 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26348 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26349 { (exit 1); exit 1; }; }; }
26350
26351 ac_builddir=.
26352
26353 if test "$ac_dir" != .; then
26354 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26355 # A "../" for each directory in $ac_dir_suffix.
26356 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26357 else
26358 ac_dir_suffix= ac_top_builddir=
26359 fi
26360
26361 case $srcdir in
26362 .) # No --srcdir option. We are building in place.
26363 ac_srcdir=.
26364 if test -z "$ac_top_builddir"; then
26365 ac_top_srcdir=.
26366 else
26367 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26368 fi ;;
26369 [\\/]* | ?:[\\/]* ) # Absolute path.
26370 ac_srcdir=$srcdir$ac_dir_suffix;
26371 ac_top_srcdir=$srcdir ;;
26372 *) # Relative path.
26373 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26374 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26375 esac
26376
26377 # Do not use `cd foo && pwd` to compute absolute paths, because
26378 # the directories may not exist.
26379 case `pwd` in
26380 .) ac_abs_builddir="$ac_dir";;
26381 *)
26382 case "$ac_dir" in
26383 .) ac_abs_builddir=`pwd`;;
26384 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26385 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26386 esac;;
26387 esac
26388 case $ac_abs_builddir in
26389 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26390 *)
26391 case ${ac_top_builddir}. in
26392 .) ac_abs_top_builddir=$ac_abs_builddir;;
26393 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26394 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26395 esac;;
26396 esac
26397 case $ac_abs_builddir in
26398 .) ac_abs_srcdir=$ac_srcdir;;
26399 *)
26400 case $ac_srcdir in
26401 .) ac_abs_srcdir=$ac_abs_builddir;;
26402 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26403 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26404 esac;;
26405 esac
26406 case $ac_abs_builddir in
26407 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26408 *)
26409 case $ac_top_srcdir in
26410 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26411 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26412 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26413 esac;;
26414 esac
26415
26416
26417 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26418 echo "$as_me: executing $ac_dest commands" >&6;}
26419 case $ac_dest in
26420 gdb_stdint.h )
26421 if test "$GCC" = yes; then
26422 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
26423 else
26424 echo "/* generated for $CC */" > tmp-stdint.h
26425 fi
26426
26427 sed 's/^ *//' >> tmp-stdint.h <<EOF
26428
26429 #ifndef GCC_GENERATED_STDINT_H
26430 #define GCC_GENERATED_STDINT_H 1
26431
26432 #include <sys/types.h>
26433 EOF
26434
26435 if test "$acx_cv_header_stdint" != stdint.h; then
26436 echo "#include <stddef.h>" >> tmp-stdint.h
26437 fi
26438 if test "$acx_cv_header_stdint" != stddef.h; then
26439 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
26440 fi
26441
26442 sed 's/^ *//' >> tmp-stdint.h <<EOF
26443 /* glibc uses these symbols as guards to prevent redefinitions. */
26444 #ifdef __int8_t_defined
26445 #define _INT8_T
26446 #define _INT16_T
26447 #define _INT32_T
26448 #endif
26449 #ifdef __uint32_t_defined
26450 #define _UINT32_T
26451 #endif
26452
26453 EOF
26454
26455 # ----------------- done header, emit basic int types -------------
26456 if test "$acx_cv_header_stdint" = stddef.h; then
26457 sed 's/^ *//' >> tmp-stdint.h <<EOF
26458
26459 #ifndef _UINT8_T
26460 #define _UINT8_T
26461 typedef unsigned $acx_cv_type_int8_t uint8_t;
26462 #endif
26463
26464 #ifndef _UINT16_T
26465 #define _UINT16_T
26466 typedef unsigned $acx_cv_type_int16_t uint16_t;
26467 #endif
26468
26469 #ifndef _UINT32_T
26470 #define _UINT32_T
26471 typedef unsigned $acx_cv_type_int32_t uint32_t;
26472 #endif
26473
26474 #ifndef _INT8_T
26475 #define _INT8_T
26476 typedef $acx_cv_type_int8_t int8_t;
26477 #endif
26478
26479 #ifndef _INT16_T
26480 #define _INT16_T
26481 typedef $acx_cv_type_int16_t int16_t;
26482 #endif
26483
26484 #ifndef _INT32_T
26485 #define _INT32_T
26486 typedef $acx_cv_type_int32_t int32_t;
26487 #endif
26488 EOF
26489 elif test "$ac_cv_type_u_int32_t" = yes; then
26490 sed 's/^ *//' >> tmp-stdint.h <<EOF
26491
26492 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
26493 #ifndef _INT8_T
26494 #define _INT8_T
26495 #endif
26496 #ifndef _INT16_T
26497 #define _INT16_T
26498 #endif
26499 #ifndef _INT32_T
26500 #define _INT32_T
26501 #endif
26502
26503 #ifndef _UINT8_T
26504 #define _UINT8_T
26505 typedef u_int8_t uint8_t;
26506 #endif
26507
26508 #ifndef _UINT16_T
26509 #define _UINT16_T
26510 typedef u_int16_t uint16_t;
26511 #endif
26512
26513 #ifndef _UINT32_T
26514 #define _UINT32_T
26515 typedef u_int32_t uint32_t;
26516 #endif
26517 EOF
26518 else
26519 sed 's/^ *//' >> tmp-stdint.h <<EOF
26520
26521 /* Some systems have guard macros to prevent redefinitions, define them. */
26522 #ifndef _INT8_T
26523 #define _INT8_T
26524 #endif
26525 #ifndef _INT16_T
26526 #define _INT16_T
26527 #endif
26528 #ifndef _INT32_T
26529 #define _INT32_T
26530 #endif
26531 #ifndef _UINT8_T
26532 #define _UINT8_T
26533 #endif
26534 #ifndef _UINT16_T
26535 #define _UINT16_T
26536 #endif
26537 #ifndef _UINT32_T
26538 #define _UINT32_T
26539 #endif
26540 EOF
26541 fi
26542
26543 # ------------- done basic int types, emit int64_t types ------------
26544 if test "$ac_cv_type_uint64_t" = yes; then
26545 sed 's/^ *//' >> tmp-stdint.h <<EOF
26546
26547 /* system headers have good uint64_t and int64_t */
26548 #ifndef _INT64_T
26549 #define _INT64_T
26550 #endif
26551 #ifndef _UINT64_T
26552 #define _UINT64_T
26553 #endif
26554 EOF
26555 elif test "$ac_cv_type_u_int64_t" = yes; then
26556 sed 's/^ *//' >> tmp-stdint.h <<EOF
26557
26558 /* system headers have an u_int64_t (and int64_t) */
26559 #ifndef _INT64_T
26560 #define _INT64_T
26561 #endif
26562 #ifndef _UINT64_T
26563 #define _UINT64_T
26564 typedef u_int64_t uint64_t;
26565 #endif
26566 EOF
26567 elif test -n "$acx_cv_type_int64_t"; then
26568 sed 's/^ *//' >> tmp-stdint.h <<EOF
26569
26570 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
26571 #ifndef _INT64_T
26572 #define _INT64_T
26573 typedef $acx_cv_type_int64_t int64_t;
26574 #endif
26575 #ifndef _UINT64_T
26576 #define _UINT64_T
26577 typedef unsigned $acx_cv_type_int64_t uint64_t;
26578 #endif
26579 EOF
26580 else
26581 sed 's/^ *//' >> tmp-stdint.h <<EOF
26582
26583 /* some common heuristics for int64_t, using compiler-specific tests */
26584 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
26585 #ifndef _INT64_T
26586 #define _INT64_T
26587 typedef long long int64_t;
26588 #endif
26589 #ifndef _UINT64_T
26590 #define _UINT64_T
26591 typedef unsigned long long uint64_t;
26592 #endif
26593
26594 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
26595 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
26596 does not implement __extension__. But that compiler doesn't define
26597 __GNUC_MINOR__. */
26598 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
26599 # define __extension__
26600 # endif
26601
26602 # ifndef _INT64_T
26603 # define _INT64_T
26604 __extension__ typedef long long int64_t;
26605 # endif
26606 # ifndef _UINT64_T
26607 # define _UINT64_T
26608 __extension__ typedef unsigned long long uint64_t;
26609 # endif
26610
26611 #elif !defined __STRICT_ANSI__
26612 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
26613
26614 # ifndef _INT64_T
26615 # define _INT64_T
26616 typedef __int64 int64_t;
26617 # endif
26618 # ifndef _UINT64_T
26619 # define _UINT64_T
26620 typedef unsigned __int64 uint64_t;
26621 # endif
26622 # endif /* compiler */
26623
26624 #endif /* ANSI version */
26625 EOF
26626 fi
26627
26628 # ------------- done int64_t types, emit intptr types ------------
26629 if test "$ac_cv_type_uintptr_t" != yes; then
26630 sed 's/^ *//' >> tmp-stdint.h <<EOF
26631
26632 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
26633 typedef u$acx_cv_type_intptr_t uintptr_t;
26634 typedef $acx_cv_type_intptr_t intptr_t;
26635 EOF
26636 fi
26637
26638 # ------------- done intptr types, emit int_least types ------------
26639 if test "$ac_cv_type_int_least32_t" != yes; then
26640 sed 's/^ *//' >> tmp-stdint.h <<EOF
26641
26642 /* Define int_least types */
26643 typedef int8_t int_least8_t;
26644 typedef int16_t int_least16_t;
26645 typedef int32_t int_least32_t;
26646 #ifdef _INT64_T
26647 typedef int64_t int_least64_t;
26648 #endif
26649
26650 typedef uint8_t uint_least8_t;
26651 typedef uint16_t uint_least16_t;
26652 typedef uint32_t uint_least32_t;
26653 #ifdef _UINT64_T
26654 typedef uint64_t uint_least64_t;
26655 #endif
26656 EOF
26657 fi
26658
26659 # ------------- done intptr types, emit int_fast types ------------
26660 if test "$ac_cv_type_int_fast32_t" != yes; then
26661 sed 's/^ *//' >> tmp-stdint.h <<EOF
26662
26663 /* Define int_fast types. short is often slow */
26664 typedef int8_t int_fast8_t;
26665 typedef int int_fast16_t;
26666 typedef int32_t int_fast32_t;
26667 #ifdef _INT64_T
26668 typedef int64_t int_fast64_t;
26669 #endif
26670
26671 typedef uint8_t uint_fast8_t;
26672 typedef unsigned int uint_fast16_t;
26673 typedef uint32_t uint_fast32_t;
26674 #ifdef _UINT64_T
26675 typedef uint64_t uint_fast64_t;
26676 #endif
26677 EOF
26678 fi
26679
26680 if test "$ac_cv_type_uintmax_t" != yes; then
26681 sed 's/^ *//' >> tmp-stdint.h <<EOF
26682
26683 /* Define intmax based on what we found */
26684 #ifdef _INT64_T
26685 typedef int64_t intmax_t;
26686 #else
26687 typedef long intmax_t;
26688 #endif
26689 #ifdef _UINT64_T
26690 typedef uint64_t uintmax_t;
26691 #else
26692 typedef unsigned long uintmax_t;
26693 #endif
26694 EOF
26695 fi
26696
26697 sed 's/^ *//' >> tmp-stdint.h <<EOF
26698
26699 #endif /* GCC_GENERATED_STDINT_H */
26700 EOF
26701
26702 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
26703 rm -f tmp-stdint.h
26704 else
26705 mv -f tmp-stdint.h gdb_stdint.h
26706 fi
26707
26708 ;;
26709 default )
26710
26711 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
26712 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
26713 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
26714 mv -f Makefile.tmp Makefile
26715
26716
26717 case x$CONFIG_HEADERS in
26718 xconfig.h:config.in)
26719 echo > stamp-h ;;
26720 esac
26721 ;;
26722 esac
26723 done
26724 _ACEOF
26725
26726 cat >>$CONFIG_STATUS <<\_ACEOF
26727
26728 { (exit 0); exit 0; }
26729 _ACEOF
26730 chmod +x $CONFIG_STATUS
26731 ac_clean_files=$ac_clean_files_save
26732
26733
26734 # configure is writing to config.log, and then calls config.status.
26735 # config.status does its own redirection, appending to config.log.
26736 # Unfortunately, on DOS this fails, as config.log is still kept open
26737 # by configure, so config.status won't be able to write to it; its
26738 # output is simply discarded. So we exec the FD to /dev/null,
26739 # effectively closing config.log, so it can be properly (re)opened and
26740 # appended to by config.status. When coming back to configure, we
26741 # need to make the FD available again.
26742 if test "$no_create" != yes; then
26743 ac_cs_success=:
26744 ac_config_status_args=
26745 test "$silent" = yes &&
26746 ac_config_status_args="$ac_config_status_args --quiet"
26747 exec 5>/dev/null
26748 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26749 exec 5>>config.log
26750 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26751 # would make configure fail if this is the last instruction.
26752 $ac_cs_success || { (exit 1); exit 1; }
26753 fi
26754
26755 #
26756 # CONFIG_SUBDIRS section.
26757 #
26758 if test "$no_recursion" != yes; then
26759
26760 # Remove --cache-file and --srcdir arguments so they do not pile up.
26761 ac_sub_configure_args=
26762 ac_prev=
26763 for ac_arg in $ac_configure_args; do
26764 if test -n "$ac_prev"; then
26765 ac_prev=
26766 continue
26767 fi
26768 case $ac_arg in
26769 -cache-file | --cache-file | --cache-fil | --cache-fi \
26770 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26771 ac_prev=cache_file ;;
26772 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26773 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26774 | --c=*)
26775 ;;
26776 --config-cache | -C)
26777 ;;
26778 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26779 ac_prev=srcdir ;;
26780 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26781 ;;
26782 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26783 ac_prev=prefix ;;
26784 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26785 ;;
26786 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26787 esac
26788 done
26789
26790 # Always prepend --prefix to ensure using the same prefix
26791 # in subdir configurations.
26792 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26793
26794 ac_popdir=`pwd`
26795 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26796
26797 # Do not complain, so a configure script can configure whichever
26798 # parts of a large source tree are present.
26799 test -d $srcdir/$ac_dir || continue
26800
26801 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26802 echo "$as_me: configuring in $ac_dir" >&6;}
26803 { if $as_mkdir_p; then
26804 mkdir -p "$ac_dir"
26805 else
26806 as_dir="$ac_dir"
26807 as_dirs=
26808 while test ! -d "$as_dir"; do
26809 as_dirs="$as_dir $as_dirs"
26810 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26812 X"$as_dir" : 'X\(//\)[^/]' \| \
26813 X"$as_dir" : 'X\(//\)$' \| \
26814 X"$as_dir" : 'X\(/\)' \| \
26815 . : '\(.\)' 2>/dev/null ||
26816 echo X"$as_dir" |
26817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26819 /^X\(\/\/\)$/{ s//\1/; q; }
26820 /^X\(\/\).*/{ s//\1/; q; }
26821 s/.*/./; q'`
26822 done
26823 test ! -n "$as_dirs" || mkdir $as_dirs
26824 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26825 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26826 { (exit 1); exit 1; }; }; }
26827
26828 ac_builddir=.
26829
26830 if test "$ac_dir" != .; then
26831 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26832 # A "../" for each directory in $ac_dir_suffix.
26833 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26834 else
26835 ac_dir_suffix= ac_top_builddir=
26836 fi
26837
26838 case $srcdir in
26839 .) # No --srcdir option. We are building in place.
26840 ac_srcdir=.
26841 if test -z "$ac_top_builddir"; then
26842 ac_top_srcdir=.
26843 else
26844 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26845 fi ;;
26846 [\\/]* | ?:[\\/]* ) # Absolute path.
26847 ac_srcdir=$srcdir$ac_dir_suffix;
26848 ac_top_srcdir=$srcdir ;;
26849 *) # Relative path.
26850 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26851 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26852 esac
26853
26854 # Do not use `cd foo && pwd` to compute absolute paths, because
26855 # the directories may not exist.
26856 case `pwd` in
26857 .) ac_abs_builddir="$ac_dir";;
26858 *)
26859 case "$ac_dir" in
26860 .) ac_abs_builddir=`pwd`;;
26861 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26862 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26863 esac;;
26864 esac
26865 case $ac_abs_builddir in
26866 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26867 *)
26868 case ${ac_top_builddir}. in
26869 .) ac_abs_top_builddir=$ac_abs_builddir;;
26870 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26871 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26872 esac;;
26873 esac
26874 case $ac_abs_builddir in
26875 .) ac_abs_srcdir=$ac_srcdir;;
26876 *)
26877 case $ac_srcdir in
26878 .) ac_abs_srcdir=$ac_abs_builddir;;
26879 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26880 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26881 esac;;
26882 esac
26883 case $ac_abs_builddir in
26884 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26885 *)
26886 case $ac_top_srcdir in
26887 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26888 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26889 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26890 esac;;
26891 esac
26892
26893
26894 cd $ac_dir
26895
26896 # Check for guested configure; otherwise get Cygnus style configure.
26897 if test -f $ac_srcdir/configure.gnu; then
26898 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26899 elif test -f $ac_srcdir/configure; then
26900 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26901 elif test -f $ac_srcdir/configure.in; then
26902 ac_sub_configure=$ac_configure
26903 else
26904 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26905 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26906 ac_sub_configure=
26907 fi
26908
26909 # The recursion is here.
26910 if test -n "$ac_sub_configure"; then
26911 # Make the cache file name correct relative to the subdirectory.
26912 case $cache_file in
26913 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26914 *) # Relative path.
26915 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26916 esac
26917
26918 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26919 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26920 # The eval makes quoting arguments work.
26921 eval $ac_sub_configure $ac_sub_configure_args \
26922 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26923 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26924 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26925 { (exit 1); exit 1; }; }
26926 fi
26927
26928 cd $ac_popdir
26929 done
26930 fi
26931
26932
26933 exit 0
This page took 0.733107 seconds and 4 git commands to generate.