2005-01-27 Andrew Cagney <cagney@gnu.org>
[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_subdirs_all="$ac_subdirs_all rdi-share"
317 ac_subdirs_all="$ac_subdirs_all nlm"
318 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 RANLIB ac_ct_RANLIB SET_MAKE 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'
319 ac_subst_files='host_makefile_frag target_makefile_frag'
320
321 # Initialize some variables set by options.
322 ac_init_help=
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
326 cache_file=/dev/null
327 exec_prefix=NONE
328 no_create=
329 no_recursion=
330 prefix=NONE
331 program_prefix=NONE
332 program_suffix=NONE
333 program_transform_name=s,x,x,
334 silent=
335 site=
336 srcdir=
337 verbose=
338 x_includes=NONE
339 x_libraries=NONE
340
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
358
359 ac_prev=
360 for ac_option
361 do
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
365 ac_prev=
366 continue
367 fi
368
369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370
371 # Accept the important Cygnus configure options, so we can diagnose typos.
372
373 case $ac_option in
374
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 ac_prev=bindir ;;
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378 bindir=$ac_optarg ;;
379
380 -build | --build | --buil | --bui | --bu)
381 ac_prev=build_alias ;;
382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383 build_alias=$ac_optarg ;;
384
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390 cache_file=$ac_optarg ;;
391
392 --config-cache | -C)
393 cache_file=config.cache ;;
394
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 ac_prev=datadir ;;
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 | --da=*)
399 datadir=$ac_optarg ;;
400
401 -disable-* | --disable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
409
410 -enable-* | --enable-*)
411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412 # Reject names that are not valid shell variable names.
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 case $ac_option in
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) ac_optarg=yes ;;
420 esac
421 eval "enable_$ac_feature='$ac_optarg'" ;;
422
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
430 exec_prefix=$ac_optarg ;;
431
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
434 with_gas=yes ;;
435
436 -help | --help | --hel | --he | -h)
437 ac_init_help=long ;;
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
442
443 -host | --host | --hos | --ho)
444 ac_prev=host_alias ;;
445 -host=* | --host=* | --hos=* | --ho=*)
446 host_alias=$ac_optarg ;;
447
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
453 includedir=$ac_optarg ;;
454
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 ac_prev=infodir ;;
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458 infodir=$ac_optarg ;;
459
460 -libdir | --libdir | --libdi | --libd)
461 ac_prev=libdir ;;
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 libdir=$ac_optarg ;;
464
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
470 libexecdir=$ac_optarg ;;
471
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479 localstatedir=$ac_optarg ;;
480
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 ac_prev=mandir ;;
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 mandir=$ac_optarg ;;
485
486 -nfp | --nfp | --nf)
487 # Obsolete; use --without-fp.
488 with_fp=no ;;
489
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c | -n)
492 no_create=yes ;;
493
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 no_recursion=yes ;;
497
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505 oldincludedir=$ac_optarg ;;
506
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 ac_prev=prefix ;;
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 prefix=$ac_optarg ;;
511
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517 program_prefix=$ac_optarg ;;
518
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524 program_suffix=$ac_optarg ;;
525
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
541 program_transform_name=$ac_optarg ;;
542
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
545 silent=yes ;;
546
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 ac_prev=sbindir ;;
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 | --sbi=* | --sb=*)
551 sbindir=$ac_optarg ;;
552
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
556 | --sha | --sh)
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 | --sha=* | --sh=*)
562 sharedstatedir=$ac_optarg ;;
563
564 -site | --site | --sit)
565 ac_prev=site ;;
566 -site=* | --site=* | --sit=*)
567 site=$ac_optarg ;;
568
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 ac_prev=srcdir ;;
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 srcdir=$ac_optarg ;;
573
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579 sysconfdir=$ac_optarg ;;
580
581 -target | --target | --targe | --targ | --tar | --ta | --t)
582 ac_prev=target_alias ;;
583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584 target_alias=$ac_optarg ;;
585
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 verbose=yes ;;
588
589 -version | --version | --versio | --versi | --vers | -V)
590 ac_init_version=: ;;
591
592 -with-* | --with-*)
593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 case $ac_option in
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 *) ac_optarg=yes ;;
602 esac
603 eval "with_$ac_package='$ac_optarg'" ;;
604
605 -without-* | --without-*)
606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607 # Reject names that are not valid shell variable names.
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes=$ac_optarg ;;
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries=$ac_optarg ;;
631
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
635 ;;
636
637 *=*)
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
645 export $ac_envvar ;;
646
647 *)
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 ;;
654
655 esac
656 done
657
658 if test -n "$ac_prev"; then
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
662 fi
663
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
666 do
667 eval ac_val=$`echo $ac_var`
668 case $ac_val in
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
672 esac
673 done
674
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
678 do
679 eval ac_val=$`echo $ac_var`
680 case $ac_val in
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
684 esac
685 done
686
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
690 build=$build_alias
691 host=$host_alias
692 target=$target_alias
693
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
701 cross_compiling=yes
702 fi
703 fi
704
705 ac_tool_prefix=
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708 test "$silent" = yes && exec 6>/dev/null
709
710
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
721 echo X"$0" |
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
726 s/.*/./; q'`
727 srcdir=$ac_confdir
728 if test ! -r $srcdir/$ac_unique_file; then
729 srcdir=..
730 fi
731 else
732 ac_srcdir_defaulted=no
733 fi
734 if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
738 else
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
741 fi
742 fi
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
760 ac_env_CC_value=$CC
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
779
780 #
781 # Report the --help message.
782 #
783 if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
786 cat <<_ACEOF
787 \`configure' configures this package to adapt to many kinds of systems.
788
789 Usage: $0 [OPTION]... [VAR=VALUE]...
790
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE. See below for descriptions of some of the useful variables.
793
794 Defaults for the options are specified in brackets.
795
796 Configuration:
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806
807 _ACEOF
808
809 cat <<_ACEOF
810 Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
812 [$ac_default_prefix]
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 [PREFIX]
815
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
820
821 For better control, use the options below.
822
823 Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
836 _ACEOF
837
838 cat <<\_ACEOF
839
840 Program names:
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844
845 X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849 System types:
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860 Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --disable-nls do not use Native Language Support
866 --disable-gdbcli disable command-line interface (CLI)
867 --disable-gdbmi disable machine-interface (MI)
868 --enable-tui enable full-screen terminal user interface (TUI)
869 --enable-gdbtk enable gdbtk graphical user interface (GUI)
870 --enable-profiling enable profiling of GDB
871 --enable-build-warnings Enable build-time compiler warnings if gcc is used
872 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
873 --enable-sim Link gdb with simulator
874 --enable-multi-ice build the multi-ice-gdb-server
875
876 Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-included-gettext use the GNU gettext library included here
880 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
881 --with-libunwind Use libunwind frame unwinding support
882 --without-included-regex don't use included regex; this is the default
883 on systems with version 2 of the GNU C library
884 (use with caution on other system)
885 --with-sysroot=DIR Search for usr/lib et al within DIR.
886 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
887 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
888 --with-tclinclude=DIR Directory where tcl private headers are
889 --with-tkinclude=DIR Directory where tk private headers are
890 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
891 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
892 --with-x use the X Window System
893 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
894
895 Some influential environment variables:
896 CC C compiler command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
899 nonstandard directory <lib dir>
900 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
901 headers in a nonstandard directory <include dir>
902 CPP C preprocessor
903
904 Use these variables to override the choices made by `configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
906
907 _ACEOF
908 fi
909
910 if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
912 ac_popdir=`pwd`
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
915 ac_builddir=.
916
917 if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 else
922 ac_dir_suffix= ac_top_builddir=
923 fi
924
925 case $srcdir in
926 .) # No --srcdir option. We are building in place.
927 ac_srcdir=.
928 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=.
930 else
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 fi ;;
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
936 *) # Relative path.
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 esac
940
941 # Do not use `cd foo && pwd` to compute absolute paths, because
942 # the directories may not exist.
943 case `pwd` in
944 .) ac_abs_builddir="$ac_dir";;
945 *)
946 case "$ac_dir" in
947 .) ac_abs_builddir=`pwd`;;
948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
950 esac;;
951 esac
952 case $ac_abs_builddir in
953 .) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *)
955 case ${ac_top_builddir}. in
956 .) ac_abs_top_builddir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959 esac;;
960 esac
961 case $ac_abs_builddir in
962 .) ac_abs_srcdir=$ac_srcdir;;
963 *)
964 case $ac_srcdir in
965 .) ac_abs_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968 esac;;
969 esac
970 case $ac_abs_builddir in
971 .) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *)
973 case $ac_top_srcdir in
974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 esac;;
978 esac
979
980 cd $ac_dir
981 # Check for guested configure; otherwise get Cygnus style configure.
982 if test -f $ac_srcdir/configure.gnu; then
983 echo
984 $SHELL $ac_srcdir/configure.gnu --help=recursive
985 elif test -f $ac_srcdir/configure; then
986 echo
987 $SHELL $ac_srcdir/configure --help=recursive
988 elif test -f $ac_srcdir/configure.ac ||
989 test -f $ac_srcdir/configure.in; then
990 echo
991 $ac_configure --help
992 else
993 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
994 fi
995 cd $ac_popdir
996 done
997 fi
998
999 test -n "$ac_init_help" && exit 0
1000 if $ac_init_version; then
1001 cat <<\_ACEOF
1002
1003 Copyright (C) 2003 Free Software Foundation, Inc.
1004 This configure script is free software; the Free Software Foundation
1005 gives unlimited permission to copy, distribute and modify it.
1006 _ACEOF
1007 exit 0
1008 fi
1009 exec 5>config.log
1010 cat >&5 <<_ACEOF
1011 This file contains any messages produced by compilers while
1012 running configure, to aid debugging if configure makes a mistake.
1013
1014 It was created by $as_me, which was
1015 generated by GNU Autoconf 2.59. Invocation command line was
1016
1017 $ $0 $@
1018
1019 _ACEOF
1020 {
1021 cat <<_ASUNAME
1022 ## --------- ##
1023 ## Platform. ##
1024 ## --------- ##
1025
1026 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031
1032 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034
1035 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1036 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1037 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1039 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1040 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1041 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1042
1043 _ASUNAME
1044
1045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1046 for as_dir in $PATH
1047 do
1048 IFS=$as_save_IFS
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1051 done
1052
1053 } >&5
1054
1055 cat >&5 <<_ACEOF
1056
1057
1058 ## ----------- ##
1059 ## Core tests. ##
1060 ## ----------- ##
1061
1062 _ACEOF
1063
1064
1065 # Keep a trace of the command line.
1066 # Strip out --no-create and --no-recursion so they do not pile up.
1067 # Strip out --silent because we don't want to record it for future runs.
1068 # Also quote any args containing shell meta-characters.
1069 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_configure_args=
1071 ac_configure_args0=
1072 ac_configure_args1=
1073 ac_sep=
1074 ac_must_keep_next=false
1075 for ac_pass in 1 2
1076 do
1077 for ac_arg
1078 do
1079 case $ac_arg in
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 continue ;;
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086 esac
1087 case $ac_pass in
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 2)
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1093 else
1094 case $ac_arg in
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101 esac
1102 ;;
1103 -* ) ac_must_keep_next=true ;;
1104 esac
1105 fi
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1108 ac_sep=" "
1109 ;;
1110 esac
1111 done
1112 done
1113 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115
1116 # When interrupted or exit'd, cleanup temporary files, and complete
1117 # config.log. We remove comments because anyway the quotes in there
1118 # would cause problems or look ugly.
1119 # WARNING: Be sure not to use single quotes in there, as some shells,
1120 # such as our DU 5.0 friend, will then `close' the trap.
1121 trap 'exit_status=$?
1122 # Save into config.log some information that might help in debugging.
1123 {
1124 echo
1125
1126 cat <<\_ASBOX
1127 ## ---------------- ##
1128 ## Cache variables. ##
1129 ## ---------------- ##
1130 _ASBOX
1131 echo
1132 # The following way of writing the cache mishandles newlines in values,
1133 {
1134 (set) 2>&1 |
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136 *ac_space=\ *)
1137 sed -n \
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1140 ;;
1141 *)
1142 sed -n \
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ;;
1145 esac;
1146 }
1147 echo
1148
1149 cat <<\_ASBOX
1150 ## ----------------- ##
1151 ## Output variables. ##
1152 ## ----------------- ##
1153 _ASBOX
1154 echo
1155 for ac_var in $ac_subst_vars
1156 do
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1161
1162 if test -n "$ac_subst_files"; then
1163 cat <<\_ASBOX
1164 ## ------------- ##
1165 ## Output files. ##
1166 ## ------------- ##
1167 _ASBOX
1168 echo
1169 for ac_var in $ac_subst_files
1170 do
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1173 done | sort
1174 echo
1175 fi
1176
1177 if test -s confdefs.h; then
1178 cat <<\_ASBOX
1179 ## ----------- ##
1180 ## confdefs.h. ##
1181 ## ----------- ##
1182 _ASBOX
1183 echo
1184 sed "/^$/d" confdefs.h | sort
1185 echo
1186 fi
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1190 } >&5
1191 rm -f core *.core &&
1192 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193 exit $exit_status
1194 ' 0
1195 for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1197 done
1198 ac_signal=0
1199
1200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1201 rm -rf conftest* confdefs.h
1202 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203 echo >confdefs.h
1204
1205 # Predefined preprocessor variables.
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_NAME "$PACKAGE_NAME"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1219 _ACEOF
1220
1221
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_STRING "$PACKAGE_STRING"
1224 _ACEOF
1225
1226
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1229 _ACEOF
1230
1231
1232 # Let the site file select an alternate cache file if it wants to.
1233 # Prefer explicitly selected file to automatically selected ones.
1234 if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 else
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1239 fi
1240 fi
1241 for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244 echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's/^/| /' "$ac_site_file" >&5
1246 . "$ac_site_file"
1247 fi
1248 done
1249
1250 if test -r "$cache_file"; then
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255 echo "$as_me: loading cache $cache_file" >&6;}
1256 case $cache_file in
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1259 esac
1260 fi
1261 else
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263 echo "$as_me: creating cache $cache_file" >&6;}
1264 >$cache_file
1265 fi
1266
1267 # Check that the precious variables saved in the cache have kept the same
1268 # value.
1269 ac_cache_corrupted=false
1270 for ac_var in `(set) 2>&1 |
1271 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1277 set,)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,set)
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1285 ,);;
1286 *)
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291 echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293 echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1295 fi;;
1296 esac
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1299 case $ac_new_val in
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1303 esac
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1307 esac
1308 fi
1309 done
1310 if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
1316 fi
1317
1318 ac_ext=c
1319 ac_cpp='$CPP $CPPFLAGS'
1320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342 ac_config_headers="$ac_config_headers config.h:config.in"
1343
1344 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1345 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1346 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1347 if test "${enable_maintainer_mode+set}" = set; then
1348 enableval="$enable_maintainer_mode"
1349 USE_MAINTAINER_MODE=$enableval
1350 else
1351 USE_MAINTAINER_MODE=no
1352 fi;
1353 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1354 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1355
1356
1357 if test $USE_MAINTAINER_MODE = yes; then
1358 MAINTAINER_MODE_TRUE=
1359 MAINTAINER_MODE_FALSE='#'
1360 else
1361 MAINTAINER_MODE_TRUE='#'
1362 MAINTAINER_MODE_FALSE=
1363 fi
1364
1365 MAINT=$MAINTAINER_MODE_TRUE
1366
1367
1368
1369 ac_ext=c
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374 if test -n "$ac_tool_prefix"; then
1375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1377 echo "$as_me:$LINENO: checking for $ac_word" >&5
1378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1379 if test "${ac_cv_prog_CC+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382 if test -n "$CC"; then
1383 ac_cv_prog_CC="$CC" # Let the user override the test.
1384 else
1385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 for as_dir in $PATH
1387 do
1388 IFS=$as_save_IFS
1389 test -z "$as_dir" && as_dir=.
1390 for ac_exec_ext in '' $ac_executable_extensions; do
1391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1394 break 2
1395 fi
1396 done
1397 done
1398
1399 fi
1400 fi
1401 CC=$ac_cv_prog_CC
1402 if test -n "$CC"; then
1403 echo "$as_me:$LINENO: result: $CC" >&5
1404 echo "${ECHO_T}$CC" >&6
1405 else
1406 echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1408 fi
1409
1410 fi
1411 if test -z "$ac_cv_prog_CC"; then
1412 ac_ct_CC=$CC
1413 # Extract the first word of "gcc", so it can be a program name with args.
1414 set dummy gcc; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420 if test -n "$ac_ct_CC"; then
1421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1422 else
1423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424 for as_dir in $PATH
1425 do
1426 IFS=$as_save_IFS
1427 test -z "$as_dir" && as_dir=.
1428 for ac_exec_ext in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_ac_ct_CC="gcc"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 break 2
1433 fi
1434 done
1435 done
1436
1437 fi
1438 fi
1439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1440 if test -n "$ac_ct_CC"; then
1441 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1442 echo "${ECHO_T}$ac_ct_CC" >&6
1443 else
1444 echo "$as_me:$LINENO: result: no" >&5
1445 echo "${ECHO_T}no" >&6
1446 fi
1447
1448 CC=$ac_ct_CC
1449 else
1450 CC="$ac_cv_prog_CC"
1451 fi
1452
1453 if test -z "$CC"; then
1454 if test -n "$ac_tool_prefix"; then
1455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1456 set dummy ${ac_tool_prefix}cc; ac_word=$2
1457 echo "$as_me:$LINENO: checking for $ac_word" >&5
1458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459 if test "${ac_cv_prog_CC+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 else
1462 if test -n "$CC"; then
1463 ac_cv_prog_CC="$CC" # Let the user override the test.
1464 else
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 for as_dir in $PATH
1467 do
1468 IFS=$as_save_IFS
1469 test -z "$as_dir" && as_dir=.
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 ac_cv_prog_CC="${ac_tool_prefix}cc"
1473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474 break 2
1475 fi
1476 done
1477 done
1478
1479 fi
1480 fi
1481 CC=$ac_cv_prog_CC
1482 if test -n "$CC"; then
1483 echo "$as_me:$LINENO: result: $CC" >&5
1484 echo "${ECHO_T}$CC" >&6
1485 else
1486 echo "$as_me:$LINENO: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1488 fi
1489
1490 fi
1491 if test -z "$ac_cv_prog_CC"; then
1492 ac_ct_CC=$CC
1493 # Extract the first word of "cc", so it can be a program name with args.
1494 set dummy cc; ac_word=$2
1495 echo "$as_me:$LINENO: checking for $ac_word" >&5
1496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500 if test -n "$ac_ct_CC"; then
1501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1502 else
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 for as_dir in $PATH
1505 do
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_ac_ct_CC="cc"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 break 2
1513 fi
1514 done
1515 done
1516
1517 fi
1518 fi
1519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1520 if test -n "$ac_ct_CC"; then
1521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1522 echo "${ECHO_T}$ac_ct_CC" >&6
1523 else
1524 echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1526 fi
1527
1528 CC=$ac_ct_CC
1529 else
1530 CC="$ac_cv_prog_CC"
1531 fi
1532
1533 fi
1534 if test -z "$CC"; then
1535 # Extract the first word of "cc", so it can be a program name with args.
1536 set dummy cc; ac_word=$2
1537 echo "$as_me:$LINENO: checking for $ac_word" >&5
1538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539 if test "${ac_cv_prog_CC+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542 if test -n "$CC"; then
1543 ac_cv_prog_CC="$CC" # Let the user override the test.
1544 else
1545 ac_prog_rejected=no
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1548 do
1549 IFS=$as_save_IFS
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1554 ac_prog_rejected=yes
1555 continue
1556 fi
1557 ac_cv_prog_CC="cc"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1560 fi
1561 done
1562 done
1563
1564 if test $ac_prog_rejected = yes; then
1565 # We found a bogon in the path, so make sure we never use it.
1566 set dummy $ac_cv_prog_CC
1567 shift
1568 if test $# != 0; then
1569 # We chose a different compiler from the bogus one.
1570 # However, it has the same basename, so the bogon will be chosen
1571 # first if we set CC to just the basename; use the full file name.
1572 shift
1573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1574 fi
1575 fi
1576 fi
1577 fi
1578 CC=$ac_cv_prog_CC
1579 if test -n "$CC"; then
1580 echo "$as_me:$LINENO: result: $CC" >&5
1581 echo "${ECHO_T}$CC" >&6
1582 else
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1585 fi
1586
1587 fi
1588 if test -z "$CC"; then
1589 if test -n "$ac_tool_prefix"; then
1590 for ac_prog in cl
1591 do
1592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599 if test -n "$CC"; then
1600 ac_cv_prog_CC="$CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611 break 2
1612 fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 CC=$ac_cv_prog_CC
1619 if test -n "$CC"; then
1620 echo "$as_me:$LINENO: result: $CC" >&5
1621 echo "${ECHO_T}$CC" >&6
1622 else
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627 test -n "$CC" && break
1628 done
1629 fi
1630 if test -z "$CC"; then
1631 ac_ct_CC=$CC
1632 for ac_prog in cl
1633 do
1634 # Extract the first word of "$ac_prog", so it can be a program name with args.
1635 set dummy $ac_prog; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="$ac_prog"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
1654 fi
1655 done
1656 done
1657
1658 fi
1659 fi
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1664 else
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1667 fi
1668
1669 test -n "$ac_ct_CC" && break
1670 done
1671
1672 CC=$ac_ct_CC
1673 fi
1674
1675 fi
1676
1677
1678 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1679 See \`config.log' for more details." >&5
1680 echo "$as_me: error: no acceptable C compiler found in \$PATH
1681 See \`config.log' for more details." >&2;}
1682 { (exit 1); exit 1; }; }
1683
1684 # Provide some information about the compiler.
1685 echo "$as_me:$LINENO:" \
1686 "checking for C compiler version" >&5
1687 ac_compiler=`set X $ac_compile; echo $2`
1688 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1689 (eval $ac_compiler --version </dev/null >&5) 2>&5
1690 ac_status=$?
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1694 (eval $ac_compiler -v </dev/null >&5) 2>&5
1695 ac_status=$?
1696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697 (exit $ac_status); }
1698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1699 (eval $ac_compiler -V </dev/null >&5) 2>&5
1700 ac_status=$?
1701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702 (exit $ac_status); }
1703
1704 cat >conftest.$ac_ext <<_ACEOF
1705 /* confdefs.h. */
1706 _ACEOF
1707 cat confdefs.h >>conftest.$ac_ext
1708 cat >>conftest.$ac_ext <<_ACEOF
1709 /* end confdefs.h. */
1710
1711 int
1712 main ()
1713 {
1714
1715 ;
1716 return 0;
1717 }
1718 _ACEOF
1719 ac_clean_files_save=$ac_clean_files
1720 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1721 # Try to create an executable without -o first, disregard a.out.
1722 # It will help us diagnose broken compilers, and finding out an intuition
1723 # of exeext.
1724 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1725 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1726 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1727 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1728 (eval $ac_link_default) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; then
1732 # Find the output, starting from the most likely. This scheme is
1733 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1734 # resort.
1735
1736 # Be careful to initialize this variable, since it used to be cached.
1737 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1738 ac_cv_exeext=
1739 # b.out is created by i960 compilers.
1740 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1741 do
1742 test -f "$ac_file" || continue
1743 case $ac_file in
1744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1745 ;;
1746 conftest.$ac_ext )
1747 # This is the source file.
1748 ;;
1749 [ab].out )
1750 # We found the default executable, but exeext='' is most
1751 # certainly right.
1752 break;;
1753 *.* )
1754 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1755 # FIXME: I believe we export ac_cv_exeext for Libtool,
1756 # but it would be cool to find out if it's true. Does anybody
1757 # maintain Libtool? --akim.
1758 export ac_cv_exeext
1759 break;;
1760 * )
1761 break;;
1762 esac
1763 done
1764 else
1765 echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1769 See \`config.log' for more details." >&5
1770 echo "$as_me: error: C compiler cannot create executables
1771 See \`config.log' for more details." >&2;}
1772 { (exit 77); exit 77; }; }
1773 fi
1774
1775 ac_exeext=$ac_cv_exeext
1776 echo "$as_me:$LINENO: result: $ac_file" >&5
1777 echo "${ECHO_T}$ac_file" >&6
1778
1779 # Check the compiler produces executables we can run. If not, either
1780 # the compiler is broken, or we cross compile.
1781 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1782 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1783 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1784 # If not cross compiling, check that we can run a simple program.
1785 if test "$cross_compiling" != yes; then
1786 if { ac_try='./$ac_file'
1787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 (eval $ac_try) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1792 cross_compiling=no
1793 else
1794 if test "$cross_compiling" = maybe; then
1795 cross_compiling=yes
1796 else
1797 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'.
1799 See \`config.log' for more details." >&5
1800 echo "$as_me: error: cannot run C compiled programs.
1801 If you meant to cross compile, use \`--host'.
1802 See \`config.log' for more details." >&2;}
1803 { (exit 1); exit 1; }; }
1804 fi
1805 fi
1806 fi
1807 echo "$as_me:$LINENO: result: yes" >&5
1808 echo "${ECHO_T}yes" >&6
1809
1810 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1811 ac_clean_files=$ac_clean_files_save
1812 # Check the compiler produces executables we can run. If not, either
1813 # the compiler is broken, or we cross compile.
1814 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1815 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1816 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1817 echo "${ECHO_T}$cross_compiling" >&6
1818
1819 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1820 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1822 (eval $ac_link) 2>&5
1823 ac_status=$?
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then
1826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1827 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1828 # work properly (i.e., refer to `conftest.exe'), while it won't with
1829 # `rm'.
1830 for ac_file in conftest.exe conftest conftest.*; do
1831 test -f "$ac_file" || continue
1832 case $ac_file in
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1835 export ac_cv_exeext
1836 break;;
1837 * ) break;;
1838 esac
1839 done
1840 else
1841 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1844 See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
1846 fi
1847
1848 rm -f conftest$ac_cv_exeext
1849 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1850 echo "${ECHO_T}$ac_cv_exeext" >&6
1851
1852 rm -f conftest.$ac_ext
1853 EXEEXT=$ac_cv_exeext
1854 ac_exeext=$EXEEXT
1855 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1856 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1857 if test "${ac_cv_objext+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860 cat >conftest.$ac_ext <<_ACEOF
1861 /* confdefs.h. */
1862 _ACEOF
1863 cat confdefs.h >>conftest.$ac_ext
1864 cat >>conftest.$ac_ext <<_ACEOF
1865 /* end confdefs.h. */
1866
1867 int
1868 main ()
1869 {
1870
1871 ;
1872 return 0;
1873 }
1874 _ACEOF
1875 rm -f conftest.o conftest.obj
1876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1877 (eval $ac_compile) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1882 case $ac_file in
1883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1885 break;;
1886 esac
1887 done
1888 else
1889 echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1893 See \`config.log' for more details." >&5
1894 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1895 See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }
1897 fi
1898
1899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1900 fi
1901 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1902 echo "${ECHO_T}$ac_cv_objext" >&6
1903 OBJEXT=$ac_cv_objext
1904 ac_objext=$OBJEXT
1905 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1906 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1907 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910 cat >conftest.$ac_ext <<_ACEOF
1911 /* confdefs.h. */
1912 _ACEOF
1913 cat confdefs.h >>conftest.$ac_ext
1914 cat >>conftest.$ac_ext <<_ACEOF
1915 /* end confdefs.h. */
1916
1917 int
1918 main ()
1919 {
1920 #ifndef __GNUC__
1921 choke me
1922 #endif
1923
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 rm -f conftest.$ac_objext
1929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1930 (eval $ac_compile) 2>conftest.er1
1931 ac_status=$?
1932 grep -v '^ *+' conftest.er1 >conftest.err
1933 rm -f conftest.er1
1934 cat conftest.err >&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); } &&
1937 { ac_try='test -z "$ac_c_werror_flag"
1938 || test ! -s conftest.err'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 (eval $ac_try) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; } &&
1944 { ac_try='test -s conftest.$ac_objext'
1945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946 (eval $ac_try) 2>&5
1947 ac_status=$?
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }; }; then
1950 ac_compiler_gnu=yes
1951 else
1952 echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 ac_compiler_gnu=no
1956 fi
1957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1958 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1959
1960 fi
1961 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1962 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1963 GCC=`test $ac_compiler_gnu = yes && echo yes`
1964 ac_test_CFLAGS=${CFLAGS+set}
1965 ac_save_CFLAGS=$CFLAGS
1966 CFLAGS="-g"
1967 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1968 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1969 if test "${ac_cv_prog_cc_g+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 cat >conftest.$ac_ext <<_ACEOF
1973 /* confdefs.h. */
1974 _ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h. */
1978
1979 int
1980 main ()
1981 {
1982
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1990 ac_status=$?
1991 grep -v '^ *+' conftest.er1 >conftest.err
1992 rm -f conftest.er1
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 ac_cv_prog_cc_g=yes
2010 else
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014 ac_cv_prog_cc_g=no
2015 fi
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 fi
2018 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2019 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2020 if test "$ac_test_CFLAGS" = set; then
2021 CFLAGS=$ac_save_CFLAGS
2022 elif test $ac_cv_prog_cc_g = yes; then
2023 if test "$GCC" = yes; then
2024 CFLAGS="-g -O2"
2025 else
2026 CFLAGS="-g"
2027 fi
2028 else
2029 if test "$GCC" = yes; then
2030 CFLAGS="-O2"
2031 else
2032 CFLAGS=
2033 fi
2034 fi
2035 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2036 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2037 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040 ac_cv_prog_cc_stdc=no
2041 ac_save_CC=$CC
2042 cat >conftest.$ac_ext <<_ACEOF
2043 /* confdefs.h. */
2044 _ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h. */
2048 #include <stdarg.h>
2049 #include <stdio.h>
2050 #include <sys/types.h>
2051 #include <sys/stat.h>
2052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2053 struct buf { int x; };
2054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2055 static char *e (p, i)
2056 char **p;
2057 int i;
2058 {
2059 return p[i];
2060 }
2061 static char *f (char * (*g) (char **, int), char **p, ...)
2062 {
2063 char *s;
2064 va_list v;
2065 va_start (v,p);
2066 s = g (p, va_arg (v,int));
2067 va_end (v);
2068 return s;
2069 }
2070
2071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2072 function prototypes and stuff, but not '\xHH' hex character constants.
2073 These don't provoke an error unfortunately, instead are silently treated
2074 as 'x'. The following induces an error, until -std1 is added to get
2075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2076 array size at least. It's necessary to write '\x00'==0 to get something
2077 that's true only with -std1. */
2078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2079
2080 int test (int i, double x);
2081 struct s1 {int (*f) (int a);};
2082 struct s2 {int (*f) (double a);};
2083 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2084 int argc;
2085 char **argv;
2086 int
2087 main ()
2088 {
2089 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 # Don't try gcc -ansi; that turns off useful extensions and
2095 # breaks some systems' header files.
2096 # AIX -qlanglvl=ansi
2097 # Ultrix and OSF/1 -std1
2098 # HP-UX 10.20 and later -Ae
2099 # HP-UX older versions -Aa -D_HPUX_SOURCE
2100 # SVR4 -Xc -D__EXTENSIONS__
2101 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2102 do
2103 CC="$ac_save_CC $ac_arg"
2104 rm -f conftest.$ac_objext
2105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>conftest.er1
2107 ac_status=$?
2108 grep -v '^ *+' conftest.er1 >conftest.err
2109 rm -f conftest.er1
2110 cat conftest.err >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); } &&
2113 { ac_try='test -z "$ac_c_werror_flag"
2114 || test ! -s conftest.err'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; } &&
2120 { ac_try='test -s conftest.$ac_objext'
2121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 (eval $ac_try) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; }; then
2126 ac_cv_prog_cc_stdc=$ac_arg
2127 break
2128 else
2129 echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2131
2132 fi
2133 rm -f conftest.err conftest.$ac_objext
2134 done
2135 rm -f conftest.$ac_ext conftest.$ac_objext
2136 CC=$ac_save_CC
2137
2138 fi
2139
2140 case "x$ac_cv_prog_cc_stdc" in
2141 x|xno)
2142 echo "$as_me:$LINENO: result: none needed" >&5
2143 echo "${ECHO_T}none needed" >&6 ;;
2144 *)
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2146 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2147 CC="$CC $ac_cv_prog_cc_stdc" ;;
2148 esac
2149
2150 # Some people use a C++ compiler to compile C. Since we use `exit',
2151 # in C++ we need to declare it. In case someone uses the same compiler
2152 # for both compiling C and C++ we need to have the C++ compiler decide
2153 # the declaration of exit, since it's the most demanding environment.
2154 cat >conftest.$ac_ext <<_ACEOF
2155 #ifndef __cplusplus
2156 choke me
2157 #endif
2158 _ACEOF
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2162 ac_status=$?
2163 grep -v '^ *+' conftest.er1 >conftest.err
2164 rm -f conftest.er1
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 for ac_declaration in \
2182 '' \
2183 'extern "C" void std::exit (int) throw (); using std::exit;' \
2184 'extern "C" void std::exit (int); using std::exit;' \
2185 'extern "C" void exit (int) throw ();' \
2186 'extern "C" void exit (int);' \
2187 'void exit (int);'
2188 do
2189 cat >conftest.$ac_ext <<_ACEOF
2190 /* confdefs.h. */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2195 $ac_declaration
2196 #include <stdlib.h>
2197 int
2198 main ()
2199 {
2200 exit (42);
2201 ;
2202 return 0;
2203 }
2204 _ACEOF
2205 rm -f conftest.$ac_objext
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2208 ac_status=$?
2209 grep -v '^ *+' conftest.er1 >conftest.err
2210 rm -f conftest.er1
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag"
2215 || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 :
2228 else
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231
2232 continue
2233 fi
2234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2235 cat >conftest.$ac_ext <<_ACEOF
2236 /* confdefs.h. */
2237 _ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h. */
2241 $ac_declaration
2242 int
2243 main ()
2244 {
2245 exit (42);
2246 ;
2247 return 0;
2248 }
2249 _ACEOF
2250 rm -f conftest.$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2253 ac_status=$?
2254 grep -v '^ *+' conftest.er1 >conftest.err
2255 rm -f conftest.er1
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 break
2273 else
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 fi
2278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2279 done
2280 rm -f conftest*
2281 if test -n "$ac_declaration"; then
2282 echo '#ifdef __cplusplus' >>confdefs.h
2283 echo $ac_declaration >>confdefs.h
2284 echo '#endif' >>confdefs.h
2285 fi
2286
2287 else
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 fi
2292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293 ac_ext=c
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
2931 # doesn't support cross-compilation, but the one from Autoconf 2.5x
2932 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
2933 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
2934 # AC_PROG_RANLIB. This can be removed when we switch to Autoconf
2935 # 2.5x.
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_RANLIB+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 if test -n "$RANLIB"; then
2945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958 done
2959 done
2960
2961 fi
2962 fi
2963 RANLIB=$ac_cv_prog_RANLIB
2964 if test -n "$RANLIB"; then
2965 echo "$as_me:$LINENO: result: $RANLIB" >&5
2966 echo "${ECHO_T}$RANLIB" >&6
2967 else
2968 echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2970 fi
2971
2972 fi
2973 if test -z "$ac_cv_prog_RANLIB"; then
2974 ac_ct_RANLIB=$RANLIB
2975 # Extract the first word of "ranlib", so it can be a program name with args.
2976 set dummy ranlib; ac_word=$2
2977 echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982 if test -n "$ac_ct_RANLIB"; then
2983 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_ac_ct_RANLIB="ranlib"
2993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2995 fi
2996 done
2997 done
2998
2999 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3000 fi
3001 fi
3002 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3003 if test -n "$ac_ct_RANLIB"; then
3004 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3005 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3006 else
3007 echo "$as_me:$LINENO: result: no" >&5
3008 echo "${ECHO_T}no" >&6
3009 fi
3010
3011 RANLIB=$ac_ct_RANLIB
3012 else
3013 RANLIB="$ac_cv_prog_RANLIB"
3014 fi
3015
3016
3017
3018 CONFIG_OBS=
3019 CONFIG_DEPS=
3020 CONFIG_SRCS=
3021 ENABLE_CFLAGS=
3022
3023 CONFIG_ALL=
3024 CONFIG_CLEAN=
3025 CONFIG_INSTALL=
3026 CONFIG_UNINSTALL=
3027
3028
3029 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3030 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3031 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3032 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035 cat >conftest.make <<\_ACEOF
3036 all:
3037 @echo 'ac_maketemp="$(MAKE)"'
3038 _ACEOF
3039 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3040 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3041 if test -n "$ac_maketemp"; then
3042 eval ac_cv_prog_make_${ac_make}_set=yes
3043 else
3044 eval ac_cv_prog_make_${ac_make}_set=no
3045 fi
3046 rm -f conftest.make
3047 fi
3048 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3049 echo "$as_me:$LINENO: result: yes" >&5
3050 echo "${ECHO_T}yes" >&6
3051 SET_MAKE=
3052 else
3053 echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3055 SET_MAKE="MAKE=${MAKE-make}"
3056 fi
3057
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3061 echo "$as_me:$LINENO: checking for $ac_word" >&5
3062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3063 if test "${ac_cv_prog_RANLIB+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 if test -n "$RANLIB"; then
3067 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082
3083 fi
3084 fi
3085 RANLIB=$ac_cv_prog_RANLIB
3086 if test -n "$RANLIB"; then
3087 echo "$as_me:$LINENO: result: $RANLIB" >&5
3088 echo "${ECHO_T}$RANLIB" >&6
3089 else
3090 echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3092 fi
3093
3094 fi
3095 if test -z "$ac_cv_prog_RANLIB"; then
3096 ac_ct_RANLIB=$RANLIB
3097 # Extract the first word of "ranlib", so it can be a program name with args.
3098 set dummy ranlib; ac_word=$2
3099 echo "$as_me:$LINENO: checking for $ac_word" >&5
3100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104 if test -n "$ac_ct_RANLIB"; then
3105 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_RANLIB="ranlib"
3115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118 done
3119 done
3120
3121 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3122 fi
3123 fi
3124 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3125 if test -n "$ac_ct_RANLIB"; then
3126 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3127 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3128 else
3129 echo "$as_me:$LINENO: result: no" >&5
3130 echo "${ECHO_T}no" >&6
3131 fi
3132
3133 RANLIB=$ac_ct_RANLIB
3134 else
3135 RANLIB="$ac_cv_prog_RANLIB"
3136 fi
3137
3138 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3139 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3140 if test "${ac_cv_header_stdc+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143 cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h. */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3149 #include <stdlib.h>
3150 #include <stdarg.h>
3151 #include <string.h>
3152 #include <float.h>
3153
3154 int
3155 main ()
3156 {
3157
3158 ;
3159 return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag"
3172 || test ! -s conftest.err'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_cv_header_stdc=yes
3185 else
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 ac_cv_header_stdc=no
3190 fi
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192
3193 if test $ac_cv_header_stdc = yes; then
3194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3195 cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h. */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3201 #include <string.h>
3202
3203 _ACEOF
3204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3205 $EGREP "memchr" >/dev/null 2>&1; then
3206 :
3207 else
3208 ac_cv_header_stdc=no
3209 fi
3210 rm -f conftest*
3211
3212 fi
3213
3214 if test $ac_cv_header_stdc = yes; then
3215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3222 #include <stdlib.h>
3223
3224 _ACEOF
3225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3226 $EGREP "free" >/dev/null 2>&1; then
3227 :
3228 else
3229 ac_cv_header_stdc=no
3230 fi
3231 rm -f conftest*
3232
3233 fi
3234
3235 if test $ac_cv_header_stdc = yes; then
3236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3237 if test "$cross_compiling" = yes; then
3238 :
3239 else
3240 cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h. */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3246 #include <ctype.h>
3247 #if ((' ' & 0x0FF) == 0x020)
3248 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3249 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3250 #else
3251 # define ISLOWER(c) \
3252 (('a' <= (c) && (c) <= 'i') \
3253 || ('j' <= (c) && (c) <= 'r') \
3254 || ('s' <= (c) && (c) <= 'z'))
3255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3256 #endif
3257
3258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3259 int
3260 main ()
3261 {
3262 int i;
3263 for (i = 0; i < 256; i++)
3264 if (XOR (islower (i), ISLOWER (i))
3265 || toupper (i) != TOUPPER (i))
3266 exit(2);
3267 exit (0);
3268 }
3269 _ACEOF
3270 rm -f conftest$ac_exeext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3272 (eval $ac_link) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 (eval $ac_try) 2>&5
3278 ac_status=$?
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; }; then
3281 :
3282 else
3283 echo "$as_me: program exited with status $ac_status" >&5
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 ( exit $ac_status )
3288 ac_cv_header_stdc=no
3289 fi
3290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3291 fi
3292 fi
3293 fi
3294 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3295 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3296 if test $ac_cv_header_stdc = yes; then
3297
3298 cat >>confdefs.h <<\_ACEOF
3299 #define STDC_HEADERS 1
3300 _ACEOF
3301
3302 fi
3303
3304 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3305 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3306 if test "${ac_cv_c_const+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309 cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h. */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3315
3316 int
3317 main ()
3318 {
3319 /* FIXME: Include the comments suggested by Paul. */
3320 #ifndef __cplusplus
3321 /* Ultrix mips cc rejects this. */
3322 typedef int charset[2];
3323 const charset x;
3324 /* SunOS 4.1.1 cc rejects this. */
3325 char const *const *ccp;
3326 char **p;
3327 /* NEC SVR4.0.2 mips cc rejects this. */
3328 struct point {int x, y;};
3329 static struct point const zero = {0,0};
3330 /* AIX XL C 1.02.0.0 rejects this.
3331 It does not let you subtract one const X* pointer from another in
3332 an arm of an if-expression whose if-part is not a constant
3333 expression */
3334 const char *g = "string";
3335 ccp = &g + (g ? g-g : 0);
3336 /* HPUX 7.0 cc rejects these. */
3337 ++ccp;
3338 p = (char**) ccp;
3339 ccp = (char const *const *) p;
3340 { /* SCO 3.2v4 cc rejects this. */
3341 char *t;
3342 char const *s = 0 ? (char *) 0 : (char const *) 0;
3343
3344 *t++ = 0;
3345 }
3346 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3347 int x[] = {25, 17};
3348 const int *foo = &x[0];
3349 ++foo;
3350 }
3351 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3352 typedef const int *iptr;
3353 iptr p = 0;
3354 ++p;
3355 }
3356 { /* AIX XL C 1.02.0.0 rejects this saying
3357 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3358 struct s { int j; const int *ap[3]; };
3359 struct s *b; b->j = 5;
3360 }
3361 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3362 const int foo = 10;
3363 }
3364 #endif
3365
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 rm -f conftest.$ac_objext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -z "$ac_c_werror_flag"
3380 || test ! -s conftest.err'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 (eval $ac_try) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 (eval $ac_try) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 ac_cv_c_const=yes
3393 else
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 ac_cv_c_const=no
3398 fi
3399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3400 fi
3401 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3402 echo "${ECHO_T}$ac_cv_c_const" >&6
3403 if test $ac_cv_c_const = no; then
3404
3405 cat >>confdefs.h <<\_ACEOF
3406 #define const
3407 _ACEOF
3408
3409 fi
3410
3411 echo "$as_me:$LINENO: checking for inline" >&5
3412 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3413 if test "${ac_cv_c_inline+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 ac_cv_c_inline=no
3417 for ac_kw in inline __inline__ __inline; do
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 #ifndef __cplusplus
3425 typedef int foo_t;
3426 static $ac_kw foo_t static_foo () {return 0; }
3427 $ac_kw foo_t foo () {return 0; }
3428 #endif
3429
3430 _ACEOF
3431 rm -f conftest.$ac_objext
3432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3433 (eval $ac_compile) 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 { ac_try='test -z "$ac_c_werror_flag"
3441 || test ! -s conftest.err'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; } &&
3447 { ac_try='test -s conftest.$ac_objext'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 (eval $ac_try) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; }; then
3453 ac_cv_c_inline=$ac_kw; break
3454 else
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458 fi
3459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3460 done
3461
3462 fi
3463 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3464 echo "${ECHO_T}$ac_cv_c_inline" >&6
3465
3466
3467 case $ac_cv_c_inline in
3468 inline | yes) ;;
3469 *)
3470 case $ac_cv_c_inline in
3471 no) ac_val=;;
3472 *) ac_val=$ac_cv_c_inline;;
3473 esac
3474 cat >>confdefs.h <<_ACEOF
3475 #ifndef __cplusplus
3476 #define inline $ac_val
3477 #endif
3478 _ACEOF
3479 ;;
3480 esac
3481
3482 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3493 inttypes.h stdint.h unistd.h
3494 do
3495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3496 echo "$as_me:$LINENO: checking for $ac_header" >&5
3497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501 cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h. */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3507 $ac_includes_default
3508
3509 #include <$ac_header>
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>conftest.er1
3514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try='test -s conftest.$ac_objext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 (eval $ac_try) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 eval "$as_ac_Header=yes"
3534 else
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 eval "$as_ac_Header=no"
3539 fi
3540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3541 fi
3542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3545 cat >>confdefs.h <<_ACEOF
3546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3547 _ACEOF
3548
3549 fi
3550
3551 done
3552
3553
3554 echo "$as_me:$LINENO: checking for off_t" >&5
3555 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3556 if test "${ac_cv_type_off_t+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559 cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h. */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 $ac_includes_default
3566 int
3567 main ()
3568 {
3569 if ((off_t *) 0)
3570 return 0;
3571 if (sizeof (off_t))
3572 return 0;
3573 ;
3574 return 0;
3575 }
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 ac_cv_type_off_t=yes
3600 else
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 ac_cv_type_off_t=no
3605 fi
3606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3607 fi
3608 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3609 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3610 if test $ac_cv_type_off_t = yes; then
3611 :
3612 else
3613
3614 cat >>confdefs.h <<_ACEOF
3615 #define off_t long
3616 _ACEOF
3617
3618 fi
3619
3620 echo "$as_me:$LINENO: checking for size_t" >&5
3621 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3622 if test "${ac_cv_type_size_t+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625 cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h. */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 $ac_includes_default
3632 int
3633 main ()
3634 {
3635 if ((size_t *) 0)
3636 return 0;
3637 if (sizeof (size_t))
3638 return 0;
3639 ;
3640 return 0;
3641 }
3642 _ACEOF
3643 rm -f conftest.$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3646 ac_status=$?
3647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try='test -z "$ac_c_werror_flag"
3653 || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_type_size_t=yes
3666 else
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3669
3670 ac_cv_type_size_t=no
3671 fi
3672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3673 fi
3674 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3675 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3676 if test $ac_cv_type_size_t = yes; then
3677 :
3678 else
3679
3680 cat >>confdefs.h <<_ACEOF
3681 #define size_t unsigned
3682 _ACEOF
3683
3684 fi
3685
3686 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3687 # for constant arguments. Useless!
3688 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3689 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3690 if test "${ac_cv_working_alloca_h+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693 cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h. */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 #include <alloca.h>
3700 int
3701 main ()
3702 {
3703 char *p = (char *) alloca (2 * sizeof (int));
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 rm -f conftest.$ac_objext conftest$ac_exeext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710 (eval $ac_link) 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -z "$ac_c_werror_flag"
3718 || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try='test -s conftest$ac_exeext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_cv_working_alloca_h=yes
3731 else
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3734
3735 ac_cv_working_alloca_h=no
3736 fi
3737 rm -f conftest.err conftest.$ac_objext \
3738 conftest$ac_exeext conftest.$ac_ext
3739 fi
3740 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3741 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3742 if test $ac_cv_working_alloca_h = yes; then
3743
3744 cat >>confdefs.h <<\_ACEOF
3745 #define HAVE_ALLOCA_H 1
3746 _ACEOF
3747
3748 fi
3749
3750 echo "$as_me:$LINENO: checking for alloca" >&5
3751 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3752 if test "${ac_cv_func_alloca_works+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755 cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h. */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3761 #ifdef __GNUC__
3762 # define alloca __builtin_alloca
3763 #else
3764 # ifdef _MSC_VER
3765 # include <malloc.h>
3766 # define alloca _alloca
3767 # else
3768 # if HAVE_ALLOCA_H
3769 # include <alloca.h>
3770 # else
3771 # ifdef _AIX
3772 #pragma alloca
3773 # else
3774 # ifndef alloca /* predefined by HP cc +Olibcalls */
3775 char *alloca ();
3776 # endif
3777 # endif
3778 # endif
3779 # endif
3780 #endif
3781
3782 int
3783 main ()
3784 {
3785 char *p = (char *) alloca (1);
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 rm -f conftest.$ac_objext conftest$ac_exeext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792 (eval $ac_link) 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag"
3800 || test ! -s conftest.err'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; } &&
3806 { ac_try='test -s conftest$ac_exeext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 (eval $ac_try) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 ac_cv_func_alloca_works=yes
3813 else
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817 ac_cv_func_alloca_works=no
3818 fi
3819 rm -f conftest.err conftest.$ac_objext \
3820 conftest$ac_exeext conftest.$ac_ext
3821 fi
3822 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3823 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3824
3825 if test $ac_cv_func_alloca_works = yes; then
3826
3827 cat >>confdefs.h <<\_ACEOF
3828 #define HAVE_ALLOCA 1
3829 _ACEOF
3830
3831 else
3832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3833 # that cause trouble. Some versions do not even contain alloca or
3834 # contain a buggy version. If you still want to use their alloca,
3835 # use ar to extract alloca.o from them instead of compiling alloca.c.
3836
3837 ALLOCA=alloca.$ac_objext
3838
3839 cat >>confdefs.h <<\_ACEOF
3840 #define C_ALLOCA 1
3841 _ACEOF
3842
3843
3844 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3845 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3846 if test "${ac_cv_os_cray+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #if defined(CRAY) && ! defined(CRAY2)
3856 webecray
3857 #else
3858 wenotbecray
3859 #endif
3860
3861 _ACEOF
3862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3863 $EGREP "webecray" >/dev/null 2>&1; then
3864 ac_cv_os_cray=yes
3865 else
3866 ac_cv_os_cray=no
3867 fi
3868 rm -f conftest*
3869
3870 fi
3871 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3872 echo "${ECHO_T}$ac_cv_os_cray" >&6
3873 if test $ac_cv_os_cray = yes; then
3874 for ac_func in _getb67 GETB67 getb67; do
3875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3876 echo "$as_me:$LINENO: checking for $ac_func" >&5
3877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3878 if eval "test \"\${$as_ac_var+set}\" = set"; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h. */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3889 #define $ac_func innocuous_$ac_func
3890
3891 /* System header to define __stub macros and hopefully few prototypes,
3892 which can conflict with char $ac_func (); below.
3893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 <limits.h> exists even on freestanding compilers. */
3895
3896 #ifdef __STDC__
3897 # include <limits.h>
3898 #else
3899 # include <assert.h>
3900 #endif
3901
3902 #undef $ac_func
3903
3904 /* Override any gcc2 internal prototype to avoid an error. */
3905 #ifdef __cplusplus
3906 extern "C"
3907 {
3908 #endif
3909 /* We use char because int might match the return type of a gcc2
3910 builtin and then its argument prototype would still apply. */
3911 char $ac_func ();
3912 /* The GNU C library defines this for functions which it implements
3913 to always fail with ENOSYS. Some functions are actually named
3914 something starting with __ and the normal name is an alias. */
3915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3916 choke me
3917 #else
3918 char (*f) () = $ac_func;
3919 #endif
3920 #ifdef __cplusplus
3921 }
3922 #endif
3923
3924 int
3925 main ()
3926 {
3927 return f != $ac_func;
3928 ;
3929 return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.$ac_objext conftest$ac_exeext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934 (eval $ac_link) 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -z "$ac_c_werror_flag"
3942 || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest$ac_exeext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 (eval $ac_try) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 eval "$as_ac_var=yes"
3955 else
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3958
3959 eval "$as_ac_var=no"
3960 fi
3961 rm -f conftest.err conftest.$ac_objext \
3962 conftest$ac_exeext conftest.$ac_ext
3963 fi
3964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3966 if test `eval echo '${'$as_ac_var'}'` = yes; then
3967
3968 cat >>confdefs.h <<_ACEOF
3969 #define CRAY_STACKSEG_END $ac_func
3970 _ACEOF
3971
3972 break
3973 fi
3974
3975 done
3976 fi
3977
3978 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3979 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3980 if test "${ac_cv_c_stack_direction+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 if test "$cross_compiling" = yes; then
3984 ac_cv_c_stack_direction=0
3985 else
3986 cat >conftest.$ac_ext <<_ACEOF
3987 /* confdefs.h. */
3988 _ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3992 int
3993 find_stack_direction ()
3994 {
3995 static char *addr = 0;
3996 auto char dummy;
3997 if (addr == 0)
3998 {
3999 addr = &dummy;
4000 return find_stack_direction ();
4001 }
4002 else
4003 return (&dummy > addr) ? 1 : -1;
4004 }
4005
4006 int
4007 main ()
4008 {
4009 exit (find_stack_direction () < 0);
4010 }
4011 _ACEOF
4012 rm -f conftest$ac_exeext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_c_stack_direction=1
4024 else
4025 echo "$as_me: program exited with status $ac_status" >&5
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 ( exit $ac_status )
4030 ac_cv_c_stack_direction=-1
4031 fi
4032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4033 fi
4034 fi
4035 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4036 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4037
4038 cat >>confdefs.h <<_ACEOF
4039 #define STACK_DIRECTION $ac_cv_c_stack_direction
4040 _ACEOF
4041
4042
4043 fi
4044
4045
4046
4047 for ac_header in stdlib.h unistd.h
4048 do
4049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4051 echo "$as_me:$LINENO: checking for $ac_header" >&5
4052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 fi
4056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4058 else
4059 # Is the header compilable?
4060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4069 #include <$ac_header>
4070 _ACEOF
4071 rm -f conftest.$ac_objext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_c_werror_flag"
4081 || test ! -s conftest.err'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 (eval $ac_try) 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_header_compiler=yes
4094 else
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4097
4098 ac_header_compiler=no
4099 fi
4100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4102 echo "${ECHO_T}$ac_header_compiler" >&6
4103
4104 # Is the header present?
4105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4107 cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h. */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 #include <$ac_header>
4114 _ACEOF
4115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } >/dev/null; then
4123 if test -s conftest.err; then
4124 ac_cpp_err=$ac_c_preproc_warn_flag
4125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4126 else
4127 ac_cpp_err=
4128 fi
4129 else
4130 ac_cpp_err=yes
4131 fi
4132 if test -z "$ac_cpp_err"; then
4133 ac_header_preproc=yes
4134 else
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4137
4138 ac_header_preproc=no
4139 fi
4140 rm -f conftest.err conftest.$ac_ext
4141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4142 echo "${ECHO_T}$ac_header_preproc" >&6
4143
4144 # So? What about this header?
4145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4146 yes:no: )
4147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4151 ac_header_preproc=yes
4152 ;;
4153 no:yes:* )
4154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4166 (
4167 cat <<\_ASBOX
4168 ## ------------------------------------------ ##
4169 ## Report this to the AC_PACKAGE_NAME lists. ##
4170 ## ------------------------------------------ ##
4171 _ASBOX
4172 ) |
4173 sed "s/^/$as_me: WARNING: /" >&2
4174 ;;
4175 esac
4176 echo "$as_me:$LINENO: checking for $ac_header" >&5
4177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181 eval "$as_ac_Header=\$ac_header_preproc"
4182 fi
4183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4185
4186 fi
4187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4188 cat >>confdefs.h <<_ACEOF
4189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4190 _ACEOF
4191
4192 fi
4193
4194 done
4195
4196
4197 for ac_func in getpagesize
4198 do
4199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4200 echo "$as_me:$LINENO: checking for $ac_func" >&5
4201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4202 if eval "test \"\${$as_ac_var+set}\" = set"; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4213 #define $ac_func innocuous_$ac_func
4214
4215 /* System header to define __stub macros and hopefully few prototypes,
4216 which can conflict with char $ac_func (); below.
4217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218 <limits.h> exists even on freestanding compilers. */
4219
4220 #ifdef __STDC__
4221 # include <limits.h>
4222 #else
4223 # include <assert.h>
4224 #endif
4225
4226 #undef $ac_func
4227
4228 /* Override any gcc2 internal prototype to avoid an error. */
4229 #ifdef __cplusplus
4230 extern "C"
4231 {
4232 #endif
4233 /* We use char because int might match the return type of a gcc2
4234 builtin and then its argument prototype would still apply. */
4235 char $ac_func ();
4236 /* The GNU C library defines this for functions which it implements
4237 to always fail with ENOSYS. Some functions are actually named
4238 something starting with __ and the normal name is an alias. */
4239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4240 choke me
4241 #else
4242 char (*f) () = $ac_func;
4243 #endif
4244 #ifdef __cplusplus
4245 }
4246 #endif
4247
4248 int
4249 main ()
4250 {
4251 return f != $ac_func;
4252 ;
4253 return 0;
4254 }
4255 _ACEOF
4256 rm -f conftest.$ac_objext conftest$ac_exeext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258 (eval $ac_link) 2>conftest.er1
4259 ac_status=$?
4260 grep -v '^ *+' conftest.er1 >conftest.err
4261 rm -f conftest.er1
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -z "$ac_c_werror_flag"
4266 || test ! -s conftest.err'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 (eval $ac_try) 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest$ac_exeext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 eval "$as_ac_var=yes"
4279 else
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283 eval "$as_ac_var=no"
4284 fi
4285 rm -f conftest.err conftest.$ac_objext \
4286 conftest$ac_exeext conftest.$ac_ext
4287 fi
4288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4290 if test `eval echo '${'$as_ac_var'}'` = yes; then
4291 cat >>confdefs.h <<_ACEOF
4292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4293 _ACEOF
4294
4295 fi
4296 done
4297
4298 echo "$as_me:$LINENO: checking for working mmap" >&5
4299 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4300 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303 if test "$cross_compiling" = yes; then
4304 ac_cv_func_mmap_fixed_mapped=no
4305 else
4306 cat >conftest.$ac_ext <<_ACEOF
4307 /* confdefs.h. */
4308 _ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4312 $ac_includes_default
4313 /* malloc might have been renamed as rpl_malloc. */
4314 #undef malloc
4315
4316 /* Thanks to Mike Haertel and Jim Avera for this test.
4317 Here is a matrix of mmap possibilities:
4318 mmap private not fixed
4319 mmap private fixed at somewhere currently unmapped
4320 mmap private fixed at somewhere already mapped
4321 mmap shared not fixed
4322 mmap shared fixed at somewhere currently unmapped
4323 mmap shared fixed at somewhere already mapped
4324 For private mappings, we should verify that changes cannot be read()
4325 back from the file, nor mmap's back from the file at a different
4326 address. (There have been systems where private was not correctly
4327 implemented like the infamous i386 svr4.0, and systems where the
4328 VM page cache was not coherent with the file system buffer cache
4329 like early versions of FreeBSD and possibly contemporary NetBSD.)
4330 For shared mappings, we should conversely verify that changes get
4331 propagated back to all the places they're supposed to be.
4332
4333 Grep wants private fixed already mapped.
4334 The main things grep needs to know about mmap are:
4335 * does it exist and is it safe to write into the mmap'd area
4336 * how to use it (BSD variants) */
4337
4338 #include <fcntl.h>
4339 #include <sys/mman.h>
4340
4341 #if !STDC_HEADERS && !HAVE_STDLIB_H
4342 char *malloc ();
4343 #endif
4344
4345 /* This mess was copied from the GNU getpagesize.h. */
4346 #if !HAVE_GETPAGESIZE
4347 /* Assume that all systems that can run configure have sys/param.h. */
4348 # if !HAVE_SYS_PARAM_H
4349 # define HAVE_SYS_PARAM_H 1
4350 # endif
4351
4352 # ifdef _SC_PAGESIZE
4353 # define getpagesize() sysconf(_SC_PAGESIZE)
4354 # else /* no _SC_PAGESIZE */
4355 # if HAVE_SYS_PARAM_H
4356 # include <sys/param.h>
4357 # ifdef EXEC_PAGESIZE
4358 # define getpagesize() EXEC_PAGESIZE
4359 # else /* no EXEC_PAGESIZE */
4360 # ifdef NBPG
4361 # define getpagesize() NBPG * CLSIZE
4362 # ifndef CLSIZE
4363 # define CLSIZE 1
4364 # endif /* no CLSIZE */
4365 # else /* no NBPG */
4366 # ifdef NBPC
4367 # define getpagesize() NBPC
4368 # else /* no NBPC */
4369 # ifdef PAGESIZE
4370 # define getpagesize() PAGESIZE
4371 # endif /* PAGESIZE */
4372 # endif /* no NBPC */
4373 # endif /* no NBPG */
4374 # endif /* no EXEC_PAGESIZE */
4375 # else /* no HAVE_SYS_PARAM_H */
4376 # define getpagesize() 8192 /* punt totally */
4377 # endif /* no HAVE_SYS_PARAM_H */
4378 # endif /* no _SC_PAGESIZE */
4379
4380 #endif /* no HAVE_GETPAGESIZE */
4381
4382 int
4383 main ()
4384 {
4385 char *data, *data2, *data3;
4386 int i, pagesize;
4387 int fd;
4388
4389 pagesize = getpagesize ();
4390
4391 /* First, make a file with some known garbage in it. */
4392 data = (char *) malloc (pagesize);
4393 if (!data)
4394 exit (1);
4395 for (i = 0; i < pagesize; ++i)
4396 *(data + i) = rand ();
4397 umask (0);
4398 fd = creat ("conftest.mmap", 0600);
4399 if (fd < 0)
4400 exit (1);
4401 if (write (fd, data, pagesize) != pagesize)
4402 exit (1);
4403 close (fd);
4404
4405 /* Next, try to mmap the file at a fixed address which already has
4406 something else allocated at it. If we can, also make sure that
4407 we see the same garbage. */
4408 fd = open ("conftest.mmap", O_RDWR);
4409 if (fd < 0)
4410 exit (1);
4411 data2 = (char *) malloc (2 * pagesize);
4412 if (!data2)
4413 exit (1);
4414 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4415 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4416 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4417 exit (1);
4418 for (i = 0; i < pagesize; ++i)
4419 if (*(data + i) != *(data2 + i))
4420 exit (1);
4421
4422 /* Finally, make sure that changes to the mapped area do not
4423 percolate back to the file as seen by read(). (This is a bug on
4424 some variants of i386 svr4.0.) */
4425 for (i = 0; i < pagesize; ++i)
4426 *(data2 + i) = *(data2 + i) + 1;
4427 data3 = (char *) malloc (pagesize);
4428 if (!data3)
4429 exit (1);
4430 if (read (fd, data3, pagesize) != pagesize)
4431 exit (1);
4432 for (i = 0; i < pagesize; ++i)
4433 if (*(data + i) != *(data3 + i))
4434 exit (1);
4435 close (fd);
4436 exit (0);
4437 }
4438 _ACEOF
4439 rm -f conftest$ac_exeext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441 (eval $ac_link) 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_func_mmap_fixed_mapped=yes
4451 else
4452 echo "$as_me: program exited with status $ac_status" >&5
4453 echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4455
4456 ( exit $ac_status )
4457 ac_cv_func_mmap_fixed_mapped=no
4458 fi
4459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4460 fi
4461 fi
4462 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4463 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4464 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4465
4466 cat >>confdefs.h <<\_ACEOF
4467 #define HAVE_MMAP 1
4468 _ACEOF
4469
4470 fi
4471 rm -f conftest.mmap
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4484 unistd.h values.h sys/param.h
4485 do
4486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4488 echo "$as_me:$LINENO: checking for $ac_header" >&5
4489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 fi
4493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4495 else
4496 # Is the header compilable?
4497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4499 cat >conftest.$ac_ext <<_ACEOF
4500 /* confdefs.h. */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4505 $ac_includes_default
4506 #include <$ac_header>
4507 _ACEOF
4508 rm -f conftest.$ac_objext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510 (eval $ac_compile) 2>conftest.er1
4511 ac_status=$?
4512 grep -v '^ *+' conftest.er1 >conftest.err
4513 rm -f conftest.er1
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -z "$ac_c_werror_flag"
4518 || test ! -s conftest.err'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 (eval $ac_try) 2>&5
4521 ac_status=$?
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; } &&
4524 { ac_try='test -s conftest.$ac_objext'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 (eval $ac_try) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; }; then
4530 ac_header_compiler=yes
4531 else
4532 echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4534
4535 ac_header_compiler=no
4536 fi
4537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4539 echo "${ECHO_T}$ac_header_compiler" >&6
4540
4541 # Is the header present?
4542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4544 cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h. */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 #include <$ac_header>
4551 _ACEOF
4552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4554 ac_status=$?
4555 grep -v '^ *+' conftest.er1 >conftest.err
4556 rm -f conftest.er1
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } >/dev/null; then
4560 if test -s conftest.err; then
4561 ac_cpp_err=$ac_c_preproc_warn_flag
4562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4563 else
4564 ac_cpp_err=
4565 fi
4566 else
4567 ac_cpp_err=yes
4568 fi
4569 if test -z "$ac_cpp_err"; then
4570 ac_header_preproc=yes
4571 else
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4574
4575 ac_header_preproc=no
4576 fi
4577 rm -f conftest.err conftest.$ac_ext
4578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4579 echo "${ECHO_T}$ac_header_preproc" >&6
4580
4581 # So? What about this header?
4582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4583 yes:no: )
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4588 ac_header_preproc=yes
4589 ;;
4590 no:yes:* )
4591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4603 (
4604 cat <<\_ASBOX
4605 ## ------------------------------------------ ##
4606 ## Report this to the AC_PACKAGE_NAME lists. ##
4607 ## ------------------------------------------ ##
4608 _ASBOX
4609 ) |
4610 sed "s/^/$as_me: WARNING: /" >&2
4611 ;;
4612 esac
4613 echo "$as_me:$LINENO: checking for $ac_header" >&5
4614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618 eval "$as_ac_Header=\$ac_header_preproc"
4619 fi
4620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4622
4623 fi
4624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4625 cat >>confdefs.h <<_ACEOF
4626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4627 _ACEOF
4628
4629 fi
4630
4631 done
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4644 __argz_count __argz_stringify __argz_next
4645 do
4646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4647 echo "$as_me:$LINENO: checking for $ac_func" >&5
4648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4649 if eval "test \"\${$as_ac_var+set}\" = set"; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4660 #define $ac_func innocuous_$ac_func
4661
4662 /* System header to define __stub macros and hopefully few prototypes,
4663 which can conflict with char $ac_func (); below.
4664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 <limits.h> exists even on freestanding compilers. */
4666
4667 #ifdef __STDC__
4668 # include <limits.h>
4669 #else
4670 # include <assert.h>
4671 #endif
4672
4673 #undef $ac_func
4674
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 #ifdef __cplusplus
4677 extern "C"
4678 {
4679 #endif
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4682 char $ac_func ();
4683 /* The GNU C library defines this for functions which it implements
4684 to always fail with ENOSYS. Some functions are actually named
4685 something starting with __ and the normal name is an alias. */
4686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4687 choke me
4688 #else
4689 char (*f) () = $ac_func;
4690 #endif
4691 #ifdef __cplusplus
4692 }
4693 #endif
4694
4695 int
4696 main ()
4697 {
4698 return f != $ac_func;
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 rm -f conftest.$ac_objext conftest$ac_exeext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4705 (eval $ac_link) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest$ac_exeext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 eval "$as_ac_var=yes"
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 eval "$as_ac_var=no"
4731 fi
4732 rm -f conftest.err conftest.$ac_objext \
4733 conftest$ac_exeext conftest.$ac_ext
4734 fi
4735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4737 if test `eval echo '${'$as_ac_var'}'` = yes; then
4738 cat >>confdefs.h <<_ACEOF
4739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4740 _ACEOF
4741
4742 fi
4743 done
4744
4745
4746 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4747
4748 for ac_func in stpcpy
4749 do
4750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4751 echo "$as_me:$LINENO: checking for $ac_func" >&5
4752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4753 if eval "test \"\${$as_ac_var+set}\" = set"; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756 cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h. */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4764 #define $ac_func innocuous_$ac_func
4765
4766 /* System header to define __stub macros and hopefully few prototypes,
4767 which can conflict with char $ac_func (); below.
4768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4769 <limits.h> exists even on freestanding compilers. */
4770
4771 #ifdef __STDC__
4772 # include <limits.h>
4773 #else
4774 # include <assert.h>
4775 #endif
4776
4777 #undef $ac_func
4778
4779 /* Override any gcc2 internal prototype to avoid an error. */
4780 #ifdef __cplusplus
4781 extern "C"
4782 {
4783 #endif
4784 /* We use char because int might match the return type of a gcc2
4785 builtin and then its argument prototype would still apply. */
4786 char $ac_func ();
4787 /* The GNU C library defines this for functions which it implements
4788 to always fail with ENOSYS. Some functions are actually named
4789 something starting with __ and the normal name is an alias. */
4790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4791 choke me
4792 #else
4793 char (*f) () = $ac_func;
4794 #endif
4795 #ifdef __cplusplus
4796 }
4797 #endif
4798
4799 int
4800 main ()
4801 {
4802 return f != $ac_func;
4803 ;
4804 return 0;
4805 }
4806 _ACEOF
4807 rm -f conftest.$ac_objext conftest$ac_exeext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809 (eval $ac_link) 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest$ac_exeext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 eval "$as_ac_var=yes"
4830 else
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834 eval "$as_ac_var=no"
4835 fi
4836 rm -f conftest.err conftest.$ac_objext \
4837 conftest$ac_exeext conftest.$ac_ext
4838 fi
4839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4841 if test `eval echo '${'$as_ac_var'}'` = yes; then
4842 cat >>confdefs.h <<_ACEOF
4843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4844 _ACEOF
4845
4846 fi
4847 done
4848
4849 fi
4850 if test "${ac_cv_func_stpcpy}" = "yes"; then
4851
4852 cat >>confdefs.h <<\_ACEOF
4853 #define HAVE_STPCPY 1
4854 _ACEOF
4855
4856 fi
4857
4858 if test $ac_cv_header_locale_h = yes; then
4859 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4860 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4861 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #include <locale.h>
4871 int
4872 main ()
4873 {
4874 return LC_MESSAGES
4875 ;
4876 return 0;
4877 }
4878 _ACEOF
4879 rm -f conftest.$ac_objext conftest$ac_exeext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4881 (eval $ac_link) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try='test -s conftest$ac_exeext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 am_cv_val_LC_MESSAGES=yes
4902 else
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906 am_cv_val_LC_MESSAGES=no
4907 fi
4908 rm -f conftest.err conftest.$ac_objext \
4909 conftest$ac_exeext conftest.$ac_ext
4910 fi
4911 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4912 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4913 if test $am_cv_val_LC_MESSAGES = yes; then
4914
4915 cat >>confdefs.h <<\_ACEOF
4916 #define HAVE_LC_MESSAGES 1
4917 _ACEOF
4918
4919 fi
4920 fi
4921 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4922 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4923 # Check whether --enable-nls or --disable-nls was given.
4924 if test "${enable_nls+set}" = set; then
4925 enableval="$enable_nls"
4926 USE_NLS=$enableval
4927 else
4928 USE_NLS=yes
4929 fi;
4930 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4931 echo "${ECHO_T}$USE_NLS" >&6
4932
4933
4934 USE_INCLUDED_LIBINTL=no
4935
4936 if test "$USE_NLS" = "yes"; then
4937
4938 cat >>confdefs.h <<\_ACEOF
4939 #define ENABLE_NLS 1
4940 _ACEOF
4941
4942 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4943 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4944
4945 # Check whether --with-included-gettext or --without-included-gettext was given.
4946 if test "${with_included_gettext+set}" = set; then
4947 withval="$with_included_gettext"
4948 nls_cv_force_use_gnu_gettext=$withval
4949 else
4950 nls_cv_force_use_gnu_gettext=no
4951 fi;
4952 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4953 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4954
4955 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4956 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4957 nls_cv_header_intl=
4958 nls_cv_header_libgt=
4959 CATOBJEXT=
4960
4961 if test "${ac_cv_header_libintl_h+set}" = set; then
4962 echo "$as_me:$LINENO: checking for libintl.h" >&5
4963 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4964 if test "${ac_cv_header_libintl_h+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 fi
4967 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4968 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4969 else
4970 # Is the header compilable?
4971 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4972 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 $ac_includes_default
4980 #include <libintl.h>
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>conftest.er1
4985 ac_status=$?
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } &&
4991 { ac_try='test -z "$ac_c_werror_flag"
4992 || test ! -s conftest.err'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try='test -s conftest.$ac_objext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 (eval $ac_try) 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_header_compiler=yes
5005 else
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 ac_header_compiler=no
5010 fi
5011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5013 echo "${ECHO_T}$ac_header_compiler" >&6
5014
5015 # Is the header present?
5016 echo "$as_me:$LINENO: checking libintl.h presence" >&5
5017 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5018 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 #include <libintl.h>
5025 _ACEOF
5026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } >/dev/null; then
5034 if test -s conftest.err; then
5035 ac_cpp_err=$ac_c_preproc_warn_flag
5036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5037 else
5038 ac_cpp_err=
5039 fi
5040 else
5041 ac_cpp_err=yes
5042 fi
5043 if test -z "$ac_cpp_err"; then
5044 ac_header_preproc=yes
5045 else
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 ac_header_preproc=no
5050 fi
5051 rm -f conftest.err conftest.$ac_ext
5052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5053 echo "${ECHO_T}$ac_header_preproc" >&6
5054
5055 # So? What about this header?
5056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5057 yes:no: )
5058 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5059 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5060 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5061 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5062 ac_header_preproc=yes
5063 ;;
5064 no:yes:* )
5065 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5066 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5068 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5070 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5072 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5074 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5076 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5077 (
5078 cat <<\_ASBOX
5079 ## ------------------------------------------ ##
5080 ## Report this to the AC_PACKAGE_NAME lists. ##
5081 ## ------------------------------------------ ##
5082 _ASBOX
5083 ) |
5084 sed "s/^/$as_me: WARNING: /" >&2
5085 ;;
5086 esac
5087 echo "$as_me:$LINENO: checking for libintl.h" >&5
5088 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5089 if test "${ac_cv_header_libintl_h+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 ac_cv_header_libintl_h=$ac_header_preproc
5093 fi
5094 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5095 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5096
5097 fi
5098 if test $ac_cv_header_libintl_h = yes; then
5099 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5100 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5101 if test "${gt_cv_func_gettext_libc+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #include <libintl.h>
5111 int
5112 main ()
5113 {
5114 return (int) gettext ("")
5115 ;
5116 return 0;
5117 }
5118 _ACEOF
5119 rm -f conftest.$ac_objext conftest$ac_exeext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5121 (eval $ac_link) 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest$ac_exeext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 gt_cv_func_gettext_libc=yes
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 gt_cv_func_gettext_libc=no
5147 fi
5148 rm -f conftest.err conftest.$ac_objext \
5149 conftest$ac_exeext conftest.$ac_ext
5150 fi
5151 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5152 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5153
5154 if test "$gt_cv_func_gettext_libc" != "yes"; then
5155 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5156 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5157 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 ac_check_lib_save_LIBS=$LIBS
5161 LIBS="-lintl $LIBS"
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168
5169 /* Override any gcc2 internal prototype to avoid an error. */
5170 #ifdef __cplusplus
5171 extern "C"
5172 #endif
5173 /* We use char because int might match the return type of a gcc2
5174 builtin and then its argument prototype would still apply. */
5175 char bindtextdomain ();
5176 int
5177 main ()
5178 {
5179 bindtextdomain ();
5180 ;
5181 return 0;
5182 }
5183 _ACEOF
5184 rm -f conftest.$ac_objext conftest$ac_exeext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5186 (eval $ac_link) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_c_werror_flag"
5194 || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try='test -s conftest$ac_exeext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_cv_lib_intl_bindtextdomain=yes
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5210
5211 ac_cv_lib_intl_bindtextdomain=no
5212 fi
5213 rm -f conftest.err conftest.$ac_objext \
5214 conftest$ac_exeext conftest.$ac_ext
5215 LIBS=$ac_check_lib_save_LIBS
5216 fi
5217 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5218 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5219 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5220 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5221 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5222 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h. */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231
5232 int
5233 main ()
5234 {
5235 return (int) gettext ("")
5236 ;
5237 return 0;
5238 }
5239 _ACEOF
5240 rm -f conftest.$ac_objext conftest$ac_exeext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242 (eval $ac_link) 2>conftest.er1
5243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try='test -z "$ac_c_werror_flag"
5250 || test ! -s conftest.err'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; } &&
5256 { ac_try='test -s conftest$ac_exeext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 gt_cv_func_gettext_libintl=yes
5263 else
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5266
5267 gt_cv_func_gettext_libintl=no
5268 fi
5269 rm -f conftest.err conftest.$ac_objext \
5270 conftest$ac_exeext conftest.$ac_ext
5271 fi
5272 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5273 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5274 fi
5275
5276 fi
5277
5278 if test "$gt_cv_func_gettext_libc" = "yes" \
5279 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5280
5281 cat >>confdefs.h <<\_ACEOF
5282 #define HAVE_GETTEXT 1
5283 _ACEOF
5284
5285 # Extract the first word of "msgfmt", so it can be a program name with args.
5286 set dummy msgfmt; ac_word=$2
5287 echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5289 if test "${ac_cv_path_MSGFMT+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292 case "$MSGFMT" in
5293 /*)
5294 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5295 ;;
5296 *)
5297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5298 for ac_dir in $PATH; do
5299 test -z "$ac_dir" && ac_dir=.
5300 if test -f $ac_dir/$ac_word; then
5301 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5302 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5303 break
5304 fi
5305 fi
5306 done
5307 IFS="$ac_save_ifs"
5308 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5309 ;;
5310 esac
5311 fi
5312 MSGFMT="$ac_cv_path_MSGFMT"
5313 if test -n "$MSGFMT"; then
5314 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5315 echo "${ECHO_T}$MSGFMT" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6
5319 fi
5320 if test "$MSGFMT" != "no"; then
5321
5322 for ac_func in dcgettext
5323 do
5324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5325 echo "$as_me:$LINENO: checking for $ac_func" >&5
5326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5327 if eval "test \"\${$as_ac_var+set}\" = set"; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330 cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h. */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5338 #define $ac_func innocuous_$ac_func
5339
5340 /* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char $ac_func (); below.
5342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5343 <limits.h> exists even on freestanding compilers. */
5344
5345 #ifdef __STDC__
5346 # include <limits.h>
5347 #else
5348 # include <assert.h>
5349 #endif
5350
5351 #undef $ac_func
5352
5353 /* Override any gcc2 internal prototype to avoid an error. */
5354 #ifdef __cplusplus
5355 extern "C"
5356 {
5357 #endif
5358 /* We use char because int might match the return type of a gcc2
5359 builtin and then its argument prototype would still apply. */
5360 char $ac_func ();
5361 /* The GNU C library defines this for functions which it implements
5362 to always fail with ENOSYS. Some functions are actually named
5363 something starting with __ and the normal name is an alias. */
5364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5365 choke me
5366 #else
5367 char (*f) () = $ac_func;
5368 #endif
5369 #ifdef __cplusplus
5370 }
5371 #endif
5372
5373 int
5374 main ()
5375 {
5376 return f != $ac_func;
5377 ;
5378 return 0;
5379 }
5380 _ACEOF
5381 rm -f conftest.$ac_objext conftest$ac_exeext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383 (eval $ac_link) 2>conftest.er1
5384 ac_status=$?
5385 grep -v '^ *+' conftest.er1 >conftest.err
5386 rm -f conftest.er1
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try='test -z "$ac_c_werror_flag"
5391 || test ! -s conftest.err'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 (eval $ac_try) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; } &&
5397 { ac_try='test -s conftest$ac_exeext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 (eval $ac_try) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 eval "$as_ac_var=yes"
5404 else
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408 eval "$as_ac_var=no"
5409 fi
5410 rm -f conftest.err conftest.$ac_objext \
5411 conftest$ac_exeext conftest.$ac_ext
5412 fi
5413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5415 if test `eval echo '${'$as_ac_var'}'` = yes; then
5416 cat >>confdefs.h <<_ACEOF
5417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5418 _ACEOF
5419
5420 fi
5421 done
5422
5423 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5424 set dummy gmsgfmt; ac_word=$2
5425 echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430 case $GMSGFMT in
5431 [\\/]* | ?:[\\/]*)
5432 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5433 ;;
5434 *)
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5437 do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446 done
5447 done
5448
5449 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5450 ;;
5451 esac
5452 fi
5453 GMSGFMT=$ac_cv_path_GMSGFMT
5454
5455 if test -n "$GMSGFMT"; then
5456 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5457 echo "${ECHO_T}$GMSGFMT" >&6
5458 else
5459 echo "$as_me:$LINENO: result: no" >&5
5460 echo "${ECHO_T}no" >&6
5461 fi
5462
5463 # Extract the first word of "xgettext", so it can be a program name with args.
5464 set dummy xgettext; ac_word=$2
5465 echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5467 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470 case "$XGETTEXT" in
5471 /*)
5472 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5473 ;;
5474 *)
5475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5476 for ac_dir in $PATH; do
5477 test -z "$ac_dir" && ac_dir=.
5478 if test -f $ac_dir/$ac_word; then
5479 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5480 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5481 break
5482 fi
5483 fi
5484 done
5485 IFS="$ac_save_ifs"
5486 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5487 ;;
5488 esac
5489 fi
5490 XGETTEXT="$ac_cv_path_XGETTEXT"
5491 if test -n "$XGETTEXT"; then
5492 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5493 echo "${ECHO_T}$XGETTEXT" >&6
5494 else
5495 echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6
5497 fi
5498
5499 cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h. */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505
5506 int
5507 main ()
5508 {
5509 extern int _nl_msg_cat_cntr;
5510 return _nl_msg_cat_cntr
5511 ;
5512 return 0;
5513 }
5514 _ACEOF
5515 rm -f conftest.$ac_objext conftest$ac_exeext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517 (eval $ac_link) 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
5524 { ac_try='test -z "$ac_c_werror_flag"
5525 || test ! -s conftest.err'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 (eval $ac_try) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; } &&
5531 { ac_try='test -s conftest$ac_exeext'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5537 CATOBJEXT=.gmo
5538 DATADIRNAME=share
5539 else
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543 CATOBJEXT=.mo
5544 DATADIRNAME=lib
5545 fi
5546 rm -f conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
5548 INSTOBJEXT=.mo
5549 fi
5550 fi
5551
5552 fi
5553
5554
5555
5556
5557 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5558 # Neither gettext nor catgets in included in the C library.
5559 # Fall back on GNU gettext library (assuming it is present).
5560 nls_cv_use_gnu_gettext=yes
5561 fi
5562 fi
5563
5564 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5565 INTLOBJS="\$(GETTOBJS)"
5566 # Extract the first word of "msgfmt", so it can be a program name with args.
5567 set dummy msgfmt; ac_word=$2
5568 echo "$as_me:$LINENO: checking for $ac_word" >&5
5569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5570 if test "${ac_cv_path_MSGFMT+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573 case "$MSGFMT" in
5574 /*)
5575 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5576 ;;
5577 *)
5578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5579 for ac_dir in $PATH; do
5580 test -z "$ac_dir" && ac_dir=.
5581 if test -f $ac_dir/$ac_word; then
5582 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5583 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5584 break
5585 fi
5586 fi
5587 done
5588 IFS="$ac_save_ifs"
5589 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5590 ;;
5591 esac
5592 fi
5593 MSGFMT="$ac_cv_path_MSGFMT"
5594 if test -n "$MSGFMT"; then
5595 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5596 echo "${ECHO_T}$MSGFMT" >&6
5597 else
5598 echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5600 fi
5601
5602 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5603 set dummy gmsgfmt; ac_word=$2
5604 echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5606 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609 case $GMSGFMT in
5610 [\\/]* | ?:[\\/]*)
5611 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5612 ;;
5613 *)
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625 done
5626 done
5627
5628 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5629 ;;
5630 esac
5631 fi
5632 GMSGFMT=$ac_cv_path_GMSGFMT
5633
5634 if test -n "$GMSGFMT"; then
5635 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5636 echo "${ECHO_T}$GMSGFMT" >&6
5637 else
5638 echo "$as_me:$LINENO: result: no" >&5
5639 echo "${ECHO_T}no" >&6
5640 fi
5641
5642 # Extract the first word of "xgettext", so it can be a program name with args.
5643 set dummy xgettext; ac_word=$2
5644 echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5646 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 case "$XGETTEXT" in
5650 /*)
5651 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5652 ;;
5653 *)
5654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5655 for ac_dir in $PATH; do
5656 test -z "$ac_dir" && ac_dir=.
5657 if test -f $ac_dir/$ac_word; then
5658 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5659 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5660 break
5661 fi
5662 fi
5663 done
5664 IFS="$ac_save_ifs"
5665 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5666 ;;
5667 esac
5668 fi
5669 XGETTEXT="$ac_cv_path_XGETTEXT"
5670 if test -n "$XGETTEXT"; then
5671 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5672 echo "${ECHO_T}$XGETTEXT" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6
5676 fi
5677
5678
5679 USE_INCLUDED_LIBINTL=yes
5680 CATOBJEXT=.gmo
5681 INSTOBJEXT=.mo
5682 DATADIRNAME=share
5683 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5684 INTLLIBS=$INTLDEPS
5685 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5686 nls_cv_header_intl=libintl.h
5687 nls_cv_header_libgt=libgettext.h
5688 fi
5689
5690 if test "$XGETTEXT" != ":"; then
5691 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5692 : ;
5693 else
5694 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5695 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5696 XGETTEXT=":"
5697 fi
5698 fi
5699
5700 # We need to process the po/ directory.
5701 POSUB=po
5702 else
5703 DATADIRNAME=share
5704 nls_cv_header_intl=libintl.h
5705 nls_cv_header_libgt=libgettext.h
5706 fi
5707
5708 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5709 # because some of the sources are only built for this goal.
5710 if test "$PACKAGE" = gettext; then
5711 USE_NLS=yes
5712 USE_INCLUDED_LIBINTL=yes
5713 fi
5714
5715 for lang in $ALL_LINGUAS; do
5716 GMOFILES="$GMOFILES $lang.gmo"
5717 POFILES="$POFILES $lang.po"
5718 done
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733 if test "x$CATOBJEXT" != "x"; then
5734 if test "x$ALL_LINGUAS" = "x"; then
5735 LINGUAS=
5736 else
5737 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5738 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5739 NEW_LINGUAS=
5740 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5741 case "$ALL_LINGUAS" in
5742 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5743 esac
5744 done
5745 LINGUAS=$NEW_LINGUAS
5746 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5747 echo "${ECHO_T}$LINGUAS" >&6
5748 fi
5749
5750 if test -n "$LINGUAS"; then
5751 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5752 fi
5753 fi
5754
5755 if test $ac_cv_header_locale_h = yes; then
5756 INCLUDE_LOCALE_H="#include <locale.h>"
5757 else
5758 INCLUDE_LOCALE_H="\
5759 /* The system does not provide the header <locale.h>. Take care yourself. */"
5760 fi
5761
5762
5763 if test -f $srcdir/po2tbl.sed.in; then
5764 if test "$CATOBJEXT" = ".cat"; then
5765 if test "${ac_cv_header_linux_version_h+set}" = set; then
5766 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5767 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5768 if test "${ac_cv_header_linux_version_h+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 fi
5771 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5772 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5773 else
5774 # Is the header compilable?
5775 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5776 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5777 cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h. */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783 $ac_includes_default
5784 #include <linux/version.h>
5785 _ACEOF
5786 rm -f conftest.$ac_objext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788 (eval $ac_compile) 2>conftest.er1
5789 ac_status=$?
5790 grep -v '^ *+' conftest.er1 >conftest.err
5791 rm -f conftest.er1
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest.$ac_objext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 ac_header_compiler=yes
5809 else
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5812
5813 ac_header_compiler=no
5814 fi
5815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5817 echo "${ECHO_T}$ac_header_compiler" >&6
5818
5819 # Is the header present?
5820 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5821 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5822 cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h. */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 #include <linux/version.h>
5829 _ACEOF
5830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } >/dev/null; then
5838 if test -s conftest.err; then
5839 ac_cpp_err=$ac_c_preproc_warn_flag
5840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5841 else
5842 ac_cpp_err=
5843 fi
5844 else
5845 ac_cpp_err=yes
5846 fi
5847 if test -z "$ac_cpp_err"; then
5848 ac_header_preproc=yes
5849 else
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ac_header_preproc=no
5854 fi
5855 rm -f conftest.err conftest.$ac_ext
5856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5857 echo "${ECHO_T}$ac_header_preproc" >&6
5858
5859 # So? What about this header?
5860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5861 yes:no: )
5862 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5863 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5865 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5866 ac_header_preproc=yes
5867 ;;
5868 no:yes:* )
5869 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5870 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5872 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5874 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5876 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5878 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5879 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5880 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5881 (
5882 cat <<\_ASBOX
5883 ## ------------------------------------------ ##
5884 ## Report this to the AC_PACKAGE_NAME lists. ##
5885 ## ------------------------------------------ ##
5886 _ASBOX
5887 ) |
5888 sed "s/^/$as_me: WARNING: /" >&2
5889 ;;
5890 esac
5891 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5892 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5893 if test "${ac_cv_header_linux_version_h+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896 ac_cv_header_linux_version_h=$ac_header_preproc
5897 fi
5898 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5899 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5900
5901 fi
5902 if test $ac_cv_header_linux_version_h = yes; then
5903 msgformat=linux
5904 else
5905 msgformat=xopen
5906 fi
5907
5908
5909
5910 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5911 fi
5912 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5913 $srcdir/po2tbl.sed.in > po2tbl.sed
5914 fi
5915
5916 if test "$PACKAGE" = "gettext"; then
5917 GT_NO="#NO#"
5918 GT_YES=
5919 else
5920 GT_NO=
5921 GT_YES="#YES#"
5922 fi
5923
5924
5925
5926 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5927
5928
5929 l=
5930
5931
5932 if test -f $srcdir/po/POTFILES.in; then
5933 test -d po || mkdir po
5934 if test "x$srcdir" != "x."; then
5935 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5936 posrcprefix="$srcdir/"
5937 else
5938 posrcprefix="../$srcdir/"
5939 fi
5940 else
5941 posrcprefix="../"
5942 fi
5943 rm -f po/POTFILES
5944 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5945 < $srcdir/po/POTFILES.in > po/POTFILES
5946 fi
5947
5948
5949 localedir='${datadir}/locale'
5950
5951
5952 if test "x$POSUB" != x; then
5953
5954 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5955 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5956 # Look for .po and .gmo files in the source directory.
5957 CATALOGS=
5958 XLINGUAS=
5959 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5960 # If there aren't any .gmo files the shell will give us the
5961 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5962 # weeded out.
5963 case "$cat" in *\**)
5964 continue;;
5965 esac
5966 # The quadruple backslash is collapsed to a double backslash
5967 # by the backticks, then collapsed again by the double quotes,
5968 # leaving us with one backslash in the sed expression (right
5969 # before the dot that mustn't act as a wildcard).
5970 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5971 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5972 # The user is allowed to set LINGUAS to a list of languages to
5973 # install catalogs for. If it's empty that means "all of them."
5974 if test "x$LINGUAS" = x; then
5975 CATALOGS="$CATALOGS $cat"
5976 XLINGUAS="$XLINGUAS $lang"
5977 else
5978 case "$LINGUAS" in *$lang*)
5979 CATALOGS="$CATALOGS $cat"
5980 XLINGUAS="$XLINGUAS $lang"
5981 ;;
5982 esac
5983 fi
5984 done
5985 LINGUAS="$XLINGUAS"
5986 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5987 echo "${ECHO_T}$LINGUAS" >&6
5988
5989 CONFIG_ALL="$CONFIG_ALL all-po"
5990 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5991 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5992 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5993 fi
5994
5995 PACKAGE=gdb
5996
5997 cat >>confdefs.h <<_ACEOF
5998 #define PACKAGE "$PACKAGE"
5999 _ACEOF
6000
6001
6002
6003 debugdir=${libdir}/debug
6004
6005
6006 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6007 if test "${with_separate_debug_dir+set}" = set; then
6008 withval="$with_separate_debug_dir"
6009 debugdir="${withval}"
6010 fi;
6011
6012
6013 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6014 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6015 ac_define_dir=`eval echo $debugdir`
6016 ac_define_dir=`eval echo $ac_define_dir`
6017
6018 cat >>confdefs.h <<_ACEOF
6019 #define DEBUGDIR "$ac_define_dir"
6020 _ACEOF
6021
6022
6023 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6024
6025
6026
6027 subdirs="$subdirs doc testsuite"
6028
6029
6030 . $srcdir/configure.host
6031
6032 . $srcdir/configure.tgt
6033
6034 # Fetch the default architecture and default target vector from BFD.
6035 targ=$target; . $srcdir/../bfd/config.bfd
6036
6037 # We only want the first architecture, so strip off the others if
6038 # there is more than one.
6039 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6040
6041 if test "x$targ_archs" != x; then
6042
6043 cat >>confdefs.h <<_ACEOF
6044 #define DEFAULT_BFD_ARCH $targ_archs
6045 _ACEOF
6046
6047 fi
6048 if test "x$targ_defvec" != x; then
6049
6050 cat >>confdefs.h <<_ACEOF
6051 #define DEFAULT_BFD_VEC $targ_defvec
6052 _ACEOF
6053
6054 fi
6055
6056 test "$program_prefix" != NONE &&
6057 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6058 # Use a double $ so make ignores it.
6059 test "$program_suffix" != NONE &&
6060 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6061 # Double any \ or $. echo might interpret backslashes.
6062 # By default was `s,x,x', remove it if useless.
6063 cat <<\_ACEOF >conftest.sed
6064 s/[\\$]/&&/g;s/;s,x,x,$//
6065 _ACEOF
6066 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6067 rm conftest.sed
6068
6069
6070 # The CLI cannot be disabled yet, but may be in the future.
6071
6072 # Enable CLI.
6073 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6074 if test "${enable_gdbcli+set}" = set; then
6075 enableval="$enable_gdbcli"
6076 case $enableval in
6077 yes)
6078 ;;
6079 no)
6080 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6081 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6082 { (exit 1); exit 1; }; } ;;
6083 *)
6084 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6085 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6086 { (exit 1); exit 1; }; } ;;
6087 esac
6088 else
6089 enable_gdbcli=yes
6090 fi;
6091 if test x"$enable_gdbcli" = xyes; then
6092 if test -d $srcdir/cli; then
6093 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6094 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6095 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6096 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6097 fi
6098 fi
6099
6100 # Enable MI.
6101 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6102 if test "${enable_gdbmi+set}" = set; then
6103 enableval="$enable_gdbmi"
6104 case $enableval in
6105 yes | no)
6106 ;;
6107 *)
6108 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6109 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6110 { (exit 1); exit 1; }; } ;;
6111 esac
6112 else
6113 enable_gdbmi=yes
6114 fi;
6115 if test x"$enable_gdbmi" = xyes; then
6116 if test -d $srcdir/mi; then
6117 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6118 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6119 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6120 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6121 fi
6122 fi
6123
6124 # Enable TUI.
6125 # Check whether --enable-tui or --disable-tui was given.
6126 if test "${enable_tui+set}" = set; then
6127 enableval="$enable_tui"
6128 case $enableval in
6129 yes | no)
6130 ;;
6131 *)
6132 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6133 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6134 { (exit 1); exit 1; }; } ;;
6135 esac
6136 else
6137 enable_tui=yes
6138 fi;
6139
6140 # Enable gdbtk.
6141 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6142 if test "${enable_gdbtk+set}" = set; then
6143 enableval="$enable_gdbtk"
6144 case $enableval in
6145 yes | no)
6146 ;;
6147 *)
6148 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6149 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6150 { (exit 1); exit 1; }; } ;;
6151 esac
6152 else
6153 if test -d $srcdir/gdbtk; then
6154 enable_gdbtk=yes
6155 else
6156 enable_gdbtk=no
6157 fi
6158 fi;
6159 # We unconditionally disable gdbtk tests on selected platforms.
6160 case $host_os in
6161 go32* | windows*)
6162 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6163 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6164 enable_gdbtk=no ;;
6165 esac
6166
6167 # Libunwind support.
6168
6169 # Check whether --with-libunwind or --without-libunwind was given.
6170 if test "${with_libunwind+set}" = set; then
6171 withval="$with_libunwind"
6172 case "${withval}" in
6173 yes) enable_libunwind=yes ;;
6174 no) enable_libunwind=no ;;
6175 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6176 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6177 { (exit 1); exit 1; }; } ;;
6178 esac
6179 else
6180
6181
6182 for ac_header in libunwind.h
6183 do
6184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6186 echo "$as_me:$LINENO: checking for $ac_header" >&5
6187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 fi
6191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6193 else
6194 # Is the header compilable?
6195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6197 cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h. */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6203 $ac_includes_default
6204 #include <$ac_header>
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>conftest.er1
6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try='test -z "$ac_c_werror_flag"
6216 || test ! -s conftest.err'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; } &&
6222 { ac_try='test -s conftest.$ac_objext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 (eval $ac_try) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_header_compiler=yes
6229 else
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6232
6233 ac_header_compiler=no
6234 fi
6235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6237 echo "${ECHO_T}$ac_header_compiler" >&6
6238
6239 # Is the header present?
6240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6242 cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h. */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 #include <$ac_header>
6249 _ACEOF
6250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } >/dev/null; then
6258 if test -s conftest.err; then
6259 ac_cpp_err=$ac_c_preproc_warn_flag
6260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6261 else
6262 ac_cpp_err=
6263 fi
6264 else
6265 ac_cpp_err=yes
6266 fi
6267 if test -z "$ac_cpp_err"; then
6268 ac_header_preproc=yes
6269 else
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 ac_header_preproc=no
6274 fi
6275 rm -f conftest.err conftest.$ac_ext
6276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6277 echo "${ECHO_T}$ac_header_preproc" >&6
6278
6279 # So? What about this header?
6280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6281 yes:no: )
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6286 ac_header_preproc=yes
6287 ;;
6288 no:yes:* )
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6301 (
6302 cat <<\_ASBOX
6303 ## ------------------------------------------ ##
6304 ## Report this to the AC_PACKAGE_NAME lists. ##
6305 ## ------------------------------------------ ##
6306 _ASBOX
6307 ) |
6308 sed "s/^/$as_me: WARNING: /" >&2
6309 ;;
6310 esac
6311 echo "$as_me:$LINENO: checking for $ac_header" >&5
6312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316 eval "$as_ac_Header=\$ac_header_preproc"
6317 fi
6318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6320
6321 fi
6322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6323 cat >>confdefs.h <<_ACEOF
6324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6325 _ACEOF
6326
6327 fi
6328
6329 done
6330
6331
6332 for ac_header in libunwind-ia64.h
6333 do
6334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6336 echo "$as_me:$LINENO: checking for $ac_header" >&5
6337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 fi
6341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6343 else
6344 # Is the header compilable?
6345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6347 cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h. */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6353 $ac_includes_default
6354 #include <$ac_header>
6355 _ACEOF
6356 rm -f conftest.$ac_objext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6358 (eval $ac_compile) 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -z "$ac_c_werror_flag"
6366 || test ! -s conftest.err'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 (eval $ac_try) 2>&5
6369 ac_status=$?
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; } &&
6372 { ac_try='test -s conftest.$ac_objext'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 (eval $ac_try) 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; }; then
6378 ac_header_compiler=yes
6379 else
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 ac_header_compiler=no
6384 fi
6385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6387 echo "${ECHO_T}$ac_header_compiler" >&6
6388
6389 # Is the header present?
6390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6392 cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h. */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 #include <$ac_header>
6399 _ACEOF
6400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } >/dev/null; then
6408 if test -s conftest.err; then
6409 ac_cpp_err=$ac_c_preproc_warn_flag
6410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6411 else
6412 ac_cpp_err=
6413 fi
6414 else
6415 ac_cpp_err=yes
6416 fi
6417 if test -z "$ac_cpp_err"; then
6418 ac_header_preproc=yes
6419 else
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6422
6423 ac_header_preproc=no
6424 fi
6425 rm -f conftest.err conftest.$ac_ext
6426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6427 echo "${ECHO_T}$ac_header_preproc" >&6
6428
6429 # So? What about this header?
6430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6431 yes:no: )
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6436 ac_header_preproc=yes
6437 ;;
6438 no:yes:* )
6439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6451 (
6452 cat <<\_ASBOX
6453 ## ------------------------------------------ ##
6454 ## Report this to the AC_PACKAGE_NAME lists. ##
6455 ## ------------------------------------------ ##
6456 _ASBOX
6457 ) |
6458 sed "s/^/$as_me: WARNING: /" >&2
6459 ;;
6460 esac
6461 echo "$as_me:$LINENO: checking for $ac_header" >&5
6462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466 eval "$as_ac_Header=\$ac_header_preproc"
6467 fi
6468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6470
6471 fi
6472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6473 cat >>confdefs.h <<_ACEOF
6474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6475 _ACEOF
6476
6477 fi
6478
6479 done
6480
6481 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6482 enable_libunwind=yes;
6483 fi
6484
6485 fi;
6486
6487 if test x"$enable_libunwind" = xyes; then
6488
6489 for ac_header in libunwind.h
6490 do
6491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6493 echo "$as_me:$LINENO: checking for $ac_header" >&5
6494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 fi
6498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6500 else
6501 # Is the header compilable?
6502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6504 cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h. */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 $ac_includes_default
6511 #include <$ac_header>
6512 _ACEOF
6513 rm -f conftest.$ac_objext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6515 (eval $ac_compile) 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try='test -z "$ac_c_werror_flag"
6523 || test ! -s conftest.err'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 (eval $ac_try) 2>&5
6526 ac_status=$?
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; } &&
6529 { ac_try='test -s conftest.$ac_objext'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 (eval $ac_try) 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 ac_header_compiler=yes
6536 else
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6539
6540 ac_header_compiler=no
6541 fi
6542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6544 echo "${ECHO_T}$ac_header_compiler" >&6
6545
6546 # Is the header present?
6547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h. */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555 #include <$ac_header>
6556 _ACEOF
6557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } >/dev/null; then
6565 if test -s conftest.err; then
6566 ac_cpp_err=$ac_c_preproc_warn_flag
6567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6568 else
6569 ac_cpp_err=
6570 fi
6571 else
6572 ac_cpp_err=yes
6573 fi
6574 if test -z "$ac_cpp_err"; then
6575 ac_header_preproc=yes
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 ac_header_preproc=no
6581 fi
6582 rm -f conftest.err conftest.$ac_ext
6583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6584 echo "${ECHO_T}$ac_header_preproc" >&6
6585
6586 # So? What about this header?
6587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6588 yes:no: )
6589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6593 ac_header_preproc=yes
6594 ;;
6595 no:yes:* )
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6608 (
6609 cat <<\_ASBOX
6610 ## ------------------------------------------ ##
6611 ## Report this to the AC_PACKAGE_NAME lists. ##
6612 ## ------------------------------------------ ##
6613 _ASBOX
6614 ) |
6615 sed "s/^/$as_me: WARNING: /" >&2
6616 ;;
6617 esac
6618 echo "$as_me:$LINENO: checking for $ac_header" >&5
6619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623 eval "$as_ac_Header=\$ac_header_preproc"
6624 fi
6625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6627
6628 fi
6629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6630 cat >>confdefs.h <<_ACEOF
6631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6632 _ACEOF
6633
6634 fi
6635
6636 done
6637
6638
6639 for ac_header in libunwind-ia64.h
6640 do
6641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6643 echo "$as_me:$LINENO: checking for $ac_header" >&5
6644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 fi
6648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6650 else
6651 # Is the header compilable?
6652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6654 cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h. */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 $ac_includes_default
6661 #include <$ac_header>
6662 _ACEOF
6663 rm -f conftest.$ac_objext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665 (eval $ac_compile) 2>conftest.er1
6666 ac_status=$?
6667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try='test -z "$ac_c_werror_flag"
6673 || test ! -s conftest.err'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 (eval $ac_try) 2>&5
6676 ac_status=$?
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; } &&
6679 { ac_try='test -s conftest.$ac_objext'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 (eval $ac_try) 2>&5
6682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 ac_header_compiler=yes
6686 else
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6689
6690 ac_header_compiler=no
6691 fi
6692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6693 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6694 echo "${ECHO_T}$ac_header_compiler" >&6
6695
6696 # Is the header present?
6697 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h. */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 #include <$ac_header>
6706 _ACEOF
6707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6709 ac_status=$?
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } >/dev/null; then
6715 if test -s conftest.err; then
6716 ac_cpp_err=$ac_c_preproc_warn_flag
6717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6718 else
6719 ac_cpp_err=
6720 fi
6721 else
6722 ac_cpp_err=yes
6723 fi
6724 if test -z "$ac_cpp_err"; then
6725 ac_header_preproc=yes
6726 else
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 ac_header_preproc=no
6731 fi
6732 rm -f conftest.err conftest.$ac_ext
6733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6734 echo "${ECHO_T}$ac_header_preproc" >&6
6735
6736 # So? What about this header?
6737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6738 yes:no: )
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6743 ac_header_preproc=yes
6744 ;;
6745 no:yes:* )
6746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6753 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6758 (
6759 cat <<\_ASBOX
6760 ## ------------------------------------------ ##
6761 ## Report this to the AC_PACKAGE_NAME lists. ##
6762 ## ------------------------------------------ ##
6763 _ASBOX
6764 ) |
6765 sed "s/^/$as_me: WARNING: /" >&2
6766 ;;
6767 esac
6768 echo "$as_me:$LINENO: checking for $ac_header" >&5
6769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773 eval "$as_ac_Header=\$ac_header_preproc"
6774 fi
6775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6777
6778 fi
6779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6780 cat >>confdefs.h <<_ACEOF
6781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6782 _ACEOF
6783
6784 fi
6785
6786 done
6787
6788 cat >>confdefs.h <<\_ACEOF
6789 #define HAVE_LIBUNWIND 1
6790 _ACEOF
6791
6792 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6793 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6794 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6795 fi
6796
6797 # Profiling support.
6798 # Check whether --enable-profiling or --disable-profiling was given.
6799 if test "${enable_profiling+set}" = set; then
6800 enableval="$enable_profiling"
6801 case $enableval in
6802 yes | no)
6803 ;;
6804 *)
6805 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6806 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6807 { (exit 1); exit 1; }; } ;;
6808 esac
6809 else
6810 enable_profiling=no
6811 fi;
6812
6813
6814
6815 for ac_func in monstartup _mcleanup
6816 do
6817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6818 echo "$as_me:$LINENO: checking for $ac_func" >&5
6819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6820 if eval "test \"\${$as_ac_var+set}\" = set"; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6831 #define $ac_func innocuous_$ac_func
6832
6833 /* System header to define __stub macros and hopefully few prototypes,
6834 which can conflict with char $ac_func (); below.
6835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6836 <limits.h> exists even on freestanding compilers. */
6837
6838 #ifdef __STDC__
6839 # include <limits.h>
6840 #else
6841 # include <assert.h>
6842 #endif
6843
6844 #undef $ac_func
6845
6846 /* Override any gcc2 internal prototype to avoid an error. */
6847 #ifdef __cplusplus
6848 extern "C"
6849 {
6850 #endif
6851 /* We use char because int might match the return type of a gcc2
6852 builtin and then its argument prototype would still apply. */
6853 char $ac_func ();
6854 /* The GNU C library defines this for functions which it implements
6855 to always fail with ENOSYS. Some functions are actually named
6856 something starting with __ and the normal name is an alias. */
6857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6858 choke me
6859 #else
6860 char (*f) () = $ac_func;
6861 #endif
6862 #ifdef __cplusplus
6863 }
6864 #endif
6865
6866 int
6867 main ()
6868 {
6869 return f != $ac_func;
6870 ;
6871 return 0;
6872 }
6873 _ACEOF
6874 rm -f conftest.$ac_objext conftest$ac_exeext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876 (eval $ac_link) 2>conftest.er1
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try='test -z "$ac_c_werror_flag"
6884 || test ! -s conftest.err'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 (eval $ac_try) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; } &&
6890 { ac_try='test -s conftest$ac_exeext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 eval "$as_ac_var=yes"
6897 else
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6900
6901 eval "$as_ac_var=no"
6902 fi
6903 rm -f conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905 fi
6906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6908 if test `eval echo '${'$as_ac_var'}'` = yes; then
6909 cat >>confdefs.h <<_ACEOF
6910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6911 _ACEOF
6912
6913 fi
6914 done
6915
6916 echo "$as_me:$LINENO: checking for _etext" >&5
6917 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6918 if test "${ac_cv_var__etext+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 #include <stdlib.h>
6928 extern char _etext;
6929
6930 int
6931 main ()
6932 {
6933 free (&_etext);
6934 ;
6935 return 0;
6936 }
6937 _ACEOF
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -z "$ac_c_werror_flag"
6948 || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest$ac_exeext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_cv_var__etext=yes
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965 ac_cv_var__etext=no
6966 fi
6967 rm -f conftest.err conftest.$ac_objext \
6968 conftest$ac_exeext conftest.$ac_ext
6969 fi
6970 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6971 echo "${ECHO_T}$ac_cv_var__etext" >&6
6972 if test $ac_cv_var__etext = yes; then
6973
6974 cat >>confdefs.h <<\_ACEOF
6975 #define HAVE__ETEXT 1
6976 _ACEOF
6977
6978 fi
6979 if test "$enable_profiling" = yes ; then
6980 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6981 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6982 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6983 { (exit 1); exit 1; }; }
6984 fi
6985 PROFILE_CFLAGS=-pg
6986 OLD_CFLAGS="$CFLAGS"
6987 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6988
6989 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6990 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6991 if test "${ac_cv_cc_supports_pg+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000
7001 int
7002 main ()
7003 {
7004 int x;
7005 ;
7006 return 0;
7007 }
7008 _ACEOF
7009 rm -f conftest.$ac_objext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -z "$ac_c_werror_flag"
7019 || test ! -s conftest.err'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try='test -s conftest.$ac_objext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 (eval $ac_try) 2>&5
7028 ac_status=$?
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 ac_cv_cc_supports_pg=yes
7032 else
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7035
7036 ac_cv_cc_supports_pg=no
7037 fi
7038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7039 fi
7040 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
7041 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
7042
7043 if test $ac_cv_cc_supports_pg = no; then
7044 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
7045 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
7046 { (exit 1); exit 1; }; }
7047 fi
7048
7049 CFLAGS="$OLD_CFLAGS"
7050 fi
7051
7052 # --------------------- #
7053 # Checks for programs. #
7054 # --------------------- #
7055
7056 for ac_prog in gawk mawk nawk awk
7057 do
7058 # Extract the first word of "$ac_prog", so it can be a program name with args.
7059 set dummy $ac_prog; ac_word=$2
7060 echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7062 if test "${ac_cv_prog_AWK+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 if test -n "$AWK"; then
7066 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_AWK="$ac_prog"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081
7082 fi
7083 fi
7084 AWK=$ac_cv_prog_AWK
7085 if test -n "$AWK"; then
7086 echo "$as_me:$LINENO: result: $AWK" >&5
7087 echo "${ECHO_T}$AWK" >&6
7088 else
7089 echo "$as_me:$LINENO: result: no" >&5
7090 echo "${ECHO_T}no" >&6
7091 fi
7092
7093 test -n "$AWK" && break
7094 done
7095
7096 # Find a good install program. We prefer a C program (faster),
7097 # so one script is as good as another. But avoid the broken or
7098 # incompatible versions:
7099 # SysV /etc/install, /usr/sbin/install
7100 # SunOS /usr/etc/install
7101 # IRIX /sbin/install
7102 # AIX /bin/install
7103 # AmigaOS /C/install, which installs bootblocks on floppy discs
7104 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7105 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7106 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7107 # OS/2's system install, which has a completely different semantic
7108 # ./install, which can be erroneously created by make from ./install.sh.
7109 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7110 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7111 if test -z "$INSTALL"; then
7112 if test "${ac_cv_path_install+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 # Account for people who put trailing slashes in PATH elements.
7121 case $as_dir/ in
7122 ./ | .// | /cC/* | \
7123 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7124 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7125 /usr/ucb/* ) ;;
7126 *)
7127 # OSF1 and SCO ODT 3.0 have their own names for install.
7128 # Don't use installbsd from OSF since it installs stuff as root
7129 # by default.
7130 for ac_prog in ginstall scoinst install; do
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7133 if test $ac_prog = install &&
7134 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7135 # AIX install. It has an incompatible calling convention.
7136 :
7137 elif test $ac_prog = install &&
7138 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7139 # program-specific install script used by HP pwplus--don't use.
7140 :
7141 else
7142 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7143 break 3
7144 fi
7145 fi
7146 done
7147 done
7148 ;;
7149 esac
7150 done
7151
7152
7153 fi
7154 if test "${ac_cv_path_install+set}" = set; then
7155 INSTALL=$ac_cv_path_install
7156 else
7157 # As a last resort, use the slow shell script. We don't cache a
7158 # path for INSTALL within a source directory, because that will
7159 # break other packages using the cache if that directory is
7160 # removed, or if the path is relative.
7161 INSTALL=$ac_install_sh
7162 fi
7163 fi
7164 echo "$as_me:$LINENO: result: $INSTALL" >&5
7165 echo "${ECHO_T}$INSTALL" >&6
7166
7167 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7168 # It thinks the first close brace ends the variable substitution.
7169 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7170
7171 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7172
7173 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7174
7175 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7176 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7177 LN_S=$as_ln_s
7178 if test "$LN_S" = "ln -s"; then
7179 echo "$as_me:$LINENO: result: yes" >&5
7180 echo "${ECHO_T}yes" >&6
7181 else
7182 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7183 echo "${ECHO_T}no, using $LN_S" >&6
7184 fi
7185
7186 if test -n "$ac_tool_prefix"; then
7187 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7189 echo "$as_me:$LINENO: checking for $ac_word" >&5
7190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7191 if test "${ac_cv_prog_RANLIB+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194 if test -n "$RANLIB"; then
7195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 break 2
7207 fi
7208 done
7209 done
7210
7211 fi
7212 fi
7213 RANLIB=$ac_cv_prog_RANLIB
7214 if test -n "$RANLIB"; then
7215 echo "$as_me:$LINENO: result: $RANLIB" >&5
7216 echo "${ECHO_T}$RANLIB" >&6
7217 else
7218 echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6
7220 fi
7221
7222 fi
7223 if test -z "$ac_cv_prog_RANLIB"; then
7224 ac_ct_RANLIB=$RANLIB
7225 # Extract the first word of "ranlib", so it can be a program name with args.
7226 set dummy ranlib; ac_word=$2
7227 echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 if test -n "$ac_ct_RANLIB"; then
7233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_ac_ct_RANLIB="ranlib"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246 done
7247 done
7248
7249 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7250 fi
7251 fi
7252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7253 if test -n "$ac_ct_RANLIB"; then
7254 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7255 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7256 else
7257 echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6
7259 fi
7260
7261 RANLIB=$ac_ct_RANLIB
7262 else
7263 RANLIB="$ac_cv_prog_RANLIB"
7264 fi
7265
7266 for ac_prog in 'bison -y' byacc
7267 do
7268 # Extract the first word of "$ac_prog", so it can be a program name with args.
7269 set dummy $ac_prog; ac_word=$2
7270 echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7272 if test "${ac_cv_prog_YACC+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275 if test -n "$YACC"; then
7276 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_YACC="$ac_prog"
7286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289 done
7290 done
7291
7292 fi
7293 fi
7294 YACC=$ac_cv_prog_YACC
7295 if test -n "$YACC"; then
7296 echo "$as_me:$LINENO: result: $YACC" >&5
7297 echo "${ECHO_T}$YACC" >&6
7298 else
7299 echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6
7301 fi
7302
7303 test -n "$YACC" && break
7304 done
7305 test -n "$YACC" || YACC="yacc"
7306
7307
7308 if test -n "$ac_tool_prefix"; then
7309 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}ar; ac_word=$2
7311 echo "$as_me:$LINENO: checking for $ac_word" >&5
7312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7313 if test "${ac_cv_prog_AR+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316 if test -n "$AR"; then
7317 ac_cv_prog_AR="$AR" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326 ac_cv_prog_AR="${ac_tool_prefix}ar"
7327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330 done
7331 done
7332
7333 fi
7334 fi
7335 AR=$ac_cv_prog_AR
7336 if test -n "$AR"; then
7337 echo "$as_me:$LINENO: result: $AR" >&5
7338 echo "${ECHO_T}$AR" >&6
7339 else
7340 echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6
7342 fi
7343
7344 fi
7345 if test -z "$ac_cv_prog_AR"; then
7346 ac_ct_AR=$AR
7347 # Extract the first word of "ar", so it can be a program name with args.
7348 set dummy ar; ac_word=$2
7349 echo "$as_me:$LINENO: checking for $ac_word" >&5
7350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7351 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354 if test -n "$ac_ct_AR"; then
7355 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_ac_ct_AR="ar"
7365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7367 fi
7368 done
7369 done
7370
7371 fi
7372 fi
7373 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7374 if test -n "$ac_ct_AR"; then
7375 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7376 echo "${ECHO_T}$ac_ct_AR" >&6
7377 else
7378 echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6
7380 fi
7381
7382 AR=$ac_ct_AR
7383 else
7384 AR="$ac_cv_prog_AR"
7385 fi
7386
7387 if test -n "$ac_tool_prefix"; then
7388 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7389 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7390 echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7392 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 if test -n "$DLLTOOL"; then
7396 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401 IFS=$as_save_IFS
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 break 2
7408 fi
7409 done
7410 done
7411
7412 fi
7413 fi
7414 DLLTOOL=$ac_cv_prog_DLLTOOL
7415 if test -n "$DLLTOOL"; then
7416 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7417 echo "${ECHO_T}$DLLTOOL" >&6
7418 else
7419 echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6
7421 fi
7422
7423 fi
7424 if test -z "$ac_cv_prog_DLLTOOL"; then
7425 ac_ct_DLLTOOL=$DLLTOOL
7426 # Extract the first word of "dlltool", so it can be a program name with args.
7427 set dummy dlltool; ac_word=$2
7428 echo "$as_me:$LINENO: checking for $ac_word" >&5
7429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7430 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 if test -n "$ac_ct_DLLTOOL"; then
7434 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447 done
7448 done
7449
7450 fi
7451 fi
7452 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7453 if test -n "$ac_ct_DLLTOOL"; then
7454 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7455 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7456 else
7457 echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6
7459 fi
7460
7461 DLLTOOL=$ac_ct_DLLTOOL
7462 else
7463 DLLTOOL="$ac_cv_prog_DLLTOOL"
7464 fi
7465
7466 if test -n "$ac_tool_prefix"; then
7467 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7468 set dummy ${ac_tool_prefix}windres; ac_word=$2
7469 echo "$as_me:$LINENO: checking for $ac_word" >&5
7470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7471 if test "${ac_cv_prog_WINDRES+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 else
7474 if test -n "$WINDRES"; then
7475 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488 done
7489 done
7490
7491 fi
7492 fi
7493 WINDRES=$ac_cv_prog_WINDRES
7494 if test -n "$WINDRES"; then
7495 echo "$as_me:$LINENO: result: $WINDRES" >&5
7496 echo "${ECHO_T}$WINDRES" >&6
7497 else
7498 echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6
7500 fi
7501
7502 fi
7503 if test -z "$ac_cv_prog_WINDRES"; then
7504 ac_ct_WINDRES=$WINDRES
7505 # Extract the first word of "windres", so it can be a program name with args.
7506 set dummy windres; ac_word=$2
7507 echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7509 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512 if test -n "$ac_ct_WINDRES"; then
7513 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_ac_ct_WINDRES="windres"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526 done
7527 done
7528
7529 fi
7530 fi
7531 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7532 if test -n "$ac_ct_WINDRES"; then
7533 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7534 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7535 else
7536 echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6
7538 fi
7539
7540 WINDRES=$ac_ct_WINDRES
7541 else
7542 WINDRES="$ac_cv_prog_WINDRES"
7543 fi
7544
7545
7546 # Needed for GNU/Hurd.
7547 if test -n "$ac_tool_prefix"; then
7548 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7549 set dummy ${ac_tool_prefix}mig; ac_word=$2
7550 echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7552 if test "${ac_cv_prog_MIG+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555 if test -n "$MIG"; then
7556 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 break 2
7568 fi
7569 done
7570 done
7571
7572 fi
7573 fi
7574 MIG=$ac_cv_prog_MIG
7575 if test -n "$MIG"; then
7576 echo "$as_me:$LINENO: result: $MIG" >&5
7577 echo "${ECHO_T}$MIG" >&6
7578 else
7579 echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6
7581 fi
7582
7583 fi
7584 if test -z "$ac_cv_prog_MIG"; then
7585 ac_ct_MIG=$MIG
7586 # Extract the first word of "mig", so it can be a program name with args.
7587 set dummy mig; ac_word=$2
7588 echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7590 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 if test -n "$ac_ct_MIG"; then
7594 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603 ac_cv_prog_ac_ct_MIG="mig"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607 done
7608 done
7609
7610 fi
7611 fi
7612 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7613 if test -n "$ac_ct_MIG"; then
7614 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7615 echo "${ECHO_T}$ac_ct_MIG" >&6
7616 else
7617 echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6
7619 fi
7620
7621 MIG=$ac_ct_MIG
7622 else
7623 MIG="$ac_cv_prog_MIG"
7624 fi
7625
7626
7627 # ---------------------- #
7628 # Checks for libraries. #
7629 # ---------------------- #
7630
7631 # We might need to link with -lm; most simulators need it.
7632
7633 echo "$as_me:$LINENO: checking for main in -lm" >&5
7634 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7635 if test "${ac_cv_lib_m_main+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638 ac_check_lib_save_LIBS=$LIBS
7639 LIBS="-lm $LIBS"
7640 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h. */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646
7647
7648 int
7649 main ()
7650 {
7651 main ();
7652 ;
7653 return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658 (eval $ac_link) 2>conftest.er1
7659 ac_status=$?
7660 grep -v '^ *+' conftest.er1 >conftest.err
7661 rm -f conftest.er1
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag"
7666 || test ! -s conftest.err'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; } &&
7672 { ac_try='test -s conftest$ac_exeext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 (eval $ac_try) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 ac_cv_lib_m_main=yes
7679 else
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7682
7683 ac_cv_lib_m_main=no
7684 fi
7685 rm -f conftest.err conftest.$ac_objext \
7686 conftest$ac_exeext conftest.$ac_ext
7687 LIBS=$ac_check_lib_save_LIBS
7688 fi
7689 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7690 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7691 if test $ac_cv_lib_m_main = yes; then
7692 cat >>confdefs.h <<_ACEOF
7693 #define HAVE_LIBM 1
7694 _ACEOF
7695
7696 LIBS="-lm $LIBS"
7697
7698 fi
7699
7700
7701 # We need to link with -lw to get `wctype' on Solaris before Solaris
7702 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7703 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7704 # is known to have this problem). Therefore we avoid libw if we can.
7705 echo "$as_me:$LINENO: checking for wctype" >&5
7706 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7707 if test "${ac_cv_func_wctype+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710 cat >conftest.$ac_ext <<_ACEOF
7711 /* confdefs.h. */
7712 _ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7716 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7718 #define wctype innocuous_wctype
7719
7720 /* System header to define __stub macros and hopefully few prototypes,
7721 which can conflict with char wctype (); below.
7722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7723 <limits.h> exists even on freestanding compilers. */
7724
7725 #ifdef __STDC__
7726 # include <limits.h>
7727 #else
7728 # include <assert.h>
7729 #endif
7730
7731 #undef wctype
7732
7733 /* Override any gcc2 internal prototype to avoid an error. */
7734 #ifdef __cplusplus
7735 extern "C"
7736 {
7737 #endif
7738 /* We use char because int might match the return type of a gcc2
7739 builtin and then its argument prototype would still apply. */
7740 char wctype ();
7741 /* The GNU C library defines this for functions which it implements
7742 to always fail with ENOSYS. Some functions are actually named
7743 something starting with __ and the normal name is an alias. */
7744 #if defined (__stub_wctype) || defined (__stub___wctype)
7745 choke me
7746 #else
7747 char (*f) () = wctype;
7748 #endif
7749 #ifdef __cplusplus
7750 }
7751 #endif
7752
7753 int
7754 main ()
7755 {
7756 return f != wctype;
7757 ;
7758 return 0;
7759 }
7760 _ACEOF
7761 rm -f conftest.$ac_objext conftest$ac_exeext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7763 (eval $ac_link) 2>conftest.er1
7764 ac_status=$?
7765 grep -v '^ *+' conftest.er1 >conftest.err
7766 rm -f conftest.er1
7767 cat conftest.err >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } &&
7770 { ac_try='test -z "$ac_c_werror_flag"
7771 || test ! -s conftest.err'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 (eval $ac_try) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; } &&
7777 { ac_try='test -s conftest$ac_exeext'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 (eval $ac_try) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 ac_cv_func_wctype=yes
7784 else
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7787
7788 ac_cv_func_wctype=no
7789 fi
7790 rm -f conftest.err conftest.$ac_objext \
7791 conftest$ac_exeext conftest.$ac_ext
7792 fi
7793 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7794 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7795 if test $ac_cv_func_wctype = yes; then
7796 :
7797 else
7798
7799 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7800 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7801 if test "${ac_cv_lib_w_wctype+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804 ac_check_lib_save_LIBS=$LIBS
7805 LIBS="-lw $LIBS"
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h. */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812
7813 /* Override any gcc2 internal prototype to avoid an error. */
7814 #ifdef __cplusplus
7815 extern "C"
7816 #endif
7817 /* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7819 char wctype ();
7820 int
7821 main ()
7822 {
7823 wctype ();
7824 ;
7825 return 0;
7826 }
7827 _ACEOF
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830 (eval $ac_link) 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest$ac_exeext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_cv_lib_w_wctype=yes
7851 else
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7854
7855 ac_cv_lib_w_wctype=no
7856 fi
7857 rm -f conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
7859 LIBS=$ac_check_lib_save_LIBS
7860 fi
7861 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7862 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7863 if test $ac_cv_lib_w_wctype = yes; then
7864 cat >>confdefs.h <<_ACEOF
7865 #define HAVE_LIBW 1
7866 _ACEOF
7867
7868 LIBS="-lw $LIBS"
7869
7870 fi
7871
7872 fi
7873
7874
7875 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7876 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7877 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7878 if test "${ac_cv_search_gethostbyname+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881 ac_func_search_save_LIBS=$LIBS
7882 ac_cv_search_gethostbyname=no
7883 cat >conftest.$ac_ext <<_ACEOF
7884 /* confdefs.h. */
7885 _ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7889
7890 /* Override any gcc2 internal prototype to avoid an error. */
7891 #ifdef __cplusplus
7892 extern "C"
7893 #endif
7894 /* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7896 char gethostbyname ();
7897 int
7898 main ()
7899 {
7900 gethostbyname ();
7901 ;
7902 return 0;
7903 }
7904 _ACEOF
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>conftest.er1
7908 ac_status=$?
7909 grep -v '^ *+' conftest.er1 >conftest.err
7910 rm -f conftest.er1
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -z "$ac_c_werror_flag"
7915 || test ! -s conftest.err'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 (eval $ac_try) 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 (eval $ac_try) 2>&5
7924 ac_status=$?
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7927 ac_cv_search_gethostbyname="none required"
7928 else
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7931
7932 fi
7933 rm -f conftest.err conftest.$ac_objext \
7934 conftest$ac_exeext conftest.$ac_ext
7935 if test "$ac_cv_search_gethostbyname" = no; then
7936 for ac_lib in nsl; do
7937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944
7945 /* Override any gcc2 internal prototype to avoid an error. */
7946 #ifdef __cplusplus
7947 extern "C"
7948 #endif
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7951 char gethostbyname ();
7952 int
7953 main ()
7954 {
7955 gethostbyname ();
7956 ;
7957 return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -z "$ac_c_werror_flag"
7970 || test ! -s conftest.err'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 ac_cv_search_gethostbyname="-l$ac_lib"
7983 break
7984 else
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7987
7988 fi
7989 rm -f conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
7991 done
7992 fi
7993 LIBS=$ac_func_search_save_LIBS
7994 fi
7995 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7996 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7997 if test "$ac_cv_search_gethostbyname" != no; then
7998 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7999
8000 fi
8001
8002
8003 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8004 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
8005 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
8006 if test "${ac_cv_search_socketpair+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009 ac_func_search_save_LIBS=$LIBS
8010 ac_cv_search_socketpair=no
8011 cat >conftest.$ac_ext <<_ACEOF
8012 /* confdefs.h. */
8013 _ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8017
8018 /* Override any gcc2 internal prototype to avoid an error. */
8019 #ifdef __cplusplus
8020 extern "C"
8021 #endif
8022 /* We use char because int might match the return type of a gcc2
8023 builtin and then its argument prototype would still apply. */
8024 char socketpair ();
8025 int
8026 main ()
8027 {
8028 socketpair ();
8029 ;
8030 return 0;
8031 }
8032 _ACEOF
8033 rm -f conftest.$ac_objext conftest$ac_exeext
8034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8035 (eval $ac_link) 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -z "$ac_c_werror_flag"
8043 || test ! -s conftest.err'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 (eval $ac_try) 2>&5
8046 ac_status=$?
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; } &&
8049 { ac_try='test -s conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 ac_cv_search_socketpair="none required"
8056 else
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 fi
8061 rm -f conftest.err conftest.$ac_objext \
8062 conftest$ac_exeext conftest.$ac_ext
8063 if test "$ac_cv_search_socketpair" = no; then
8064 for ac_lib in socket; do
8065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8066 cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h. */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072
8073 /* Override any gcc2 internal prototype to avoid an error. */
8074 #ifdef __cplusplus
8075 extern "C"
8076 #endif
8077 /* We use char because int might match the return type of a gcc2
8078 builtin and then its argument prototype would still apply. */
8079 char socketpair ();
8080 int
8081 main ()
8082 {
8083 socketpair ();
8084 ;
8085 return 0;
8086 }
8087 _ACEOF
8088 rm -f conftest.$ac_objext conftest$ac_exeext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090 (eval $ac_link) 2>conftest.er1
8091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } &&
8097 { ac_try='test -z "$ac_c_werror_flag"
8098 || test ! -s conftest.err'
8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 (eval $ac_try) 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; } &&
8104 { ac_try='test -s conftest$ac_exeext'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 (eval $ac_try) 2>&5
8107 ac_status=$?
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8110 ac_cv_search_socketpair="-l$ac_lib"
8111 break
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 done
8120 fi
8121 LIBS=$ac_func_search_save_LIBS
8122 fi
8123 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8124 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8125 if test "$ac_cv_search_socketpair" != no; then
8126 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8127
8128 fi
8129
8130
8131 # For the TUI, we need enhanced curses functionality.
8132 #
8133 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8134 # curses library because the latter might not provide all the
8135 # functionality we need. However, this leads to problems on systems
8136 # where the linker searches /usr/local/lib, but the compiler doesn't
8137 # search /usr/local/include, if ncurses is installed in /usr/local. A
8138 # default installation of ncurses on alpha*-dec-osf* will lead to such
8139 # a situation.
8140 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8141 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8142 if test "${ac_cv_search_waddstr+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145 ac_func_search_save_LIBS=$LIBS
8146 ac_cv_search_waddstr=no
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153
8154 /* Override any gcc2 internal prototype to avoid an error. */
8155 #ifdef __cplusplus
8156 extern "C"
8157 #endif
8158 /* We use char because int might match the return type of a gcc2
8159 builtin and then its argument prototype would still apply. */
8160 char waddstr ();
8161 int
8162 main ()
8163 {
8164 waddstr ();
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 rm -f conftest.$ac_objext conftest$ac_exeext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8171 (eval $ac_link) 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag"
8179 || test ! -s conftest.err'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 (eval $ac_try) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; } &&
8185 { ac_try='test -s conftest$ac_exeext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 ac_cv_search_waddstr="none required"
8192 else
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196 fi
8197 rm -f conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8199 if test "$ac_cv_search_waddstr" = no; then
8200 for ac_lib in ncurses cursesX curses; do
8201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8202 cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h. */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208
8209 /* Override any gcc2 internal prototype to avoid an error. */
8210 #ifdef __cplusplus
8211 extern "C"
8212 #endif
8213 /* We use char because int might match the return type of a gcc2
8214 builtin and then its argument prototype would still apply. */
8215 char waddstr ();
8216 int
8217 main ()
8218 {
8219 waddstr ();
8220 ;
8221 return 0;
8222 }
8223 _ACEOF
8224 rm -f conftest.$ac_objext conftest$ac_exeext
8225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8226 (eval $ac_link) 2>conftest.er1
8227 ac_status=$?
8228 grep -v '^ *+' conftest.er1 >conftest.err
8229 rm -f conftest.er1
8230 cat conftest.err >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } &&
8233 { ac_try='test -z "$ac_c_werror_flag"
8234 || test ! -s conftest.err'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; } &&
8240 { ac_try='test -s conftest$ac_exeext'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 (eval $ac_try) 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 ac_cv_search_waddstr="-l$ac_lib"
8247 break
8248 else
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8251
8252 fi
8253 rm -f conftest.err conftest.$ac_objext \
8254 conftest$ac_exeext conftest.$ac_ext
8255 done
8256 fi
8257 LIBS=$ac_func_search_save_LIBS
8258 fi
8259 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8260 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8261 if test "$ac_cv_search_waddstr" != no; then
8262 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8263
8264 fi
8265
8266
8267 # Since GDB uses Readline, we need termcap functionality. In many
8268 # cases this will be provided by the curses library, but some systems
8269 # have a seperate termcap library, or no curses library at all.
8270
8271 case $host_os in
8272 cygwin*)
8273 if test -d $srcdir/libtermcap; then
8274 LIBS="../libtermcap/libtermcap.a $LIBS"
8275 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8276 fi ;;
8277 go32* | *djgpp*)
8278 ac_cv_search_tgetent="none required"
8279 ;;
8280 esac
8281
8282 # These are the libraries checked by Readline.
8283 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8284 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8285 if test "${ac_cv_search_tgetent+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 ac_func_search_save_LIBS=$LIBS
8289 ac_cv_search_tgetent=no
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296
8297 /* Override any gcc2 internal prototype to avoid an error. */
8298 #ifdef __cplusplus
8299 extern "C"
8300 #endif
8301 /* We use char because int might match the return type of a gcc2
8302 builtin and then its argument prototype would still apply. */
8303 char tgetent ();
8304 int
8305 main ()
8306 {
8307 tgetent ();
8308 ;
8309 return 0;
8310 }
8311 _ACEOF
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314 (eval $ac_link) 2>conftest.er1
8315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
8321 { ac_try='test -z "$ac_c_werror_flag"
8322 || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 (eval $ac_try) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest$ac_exeext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_search_tgetent="none required"
8335 else
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339 fi
8340 rm -f conftest.err conftest.$ac_objext \
8341 conftest$ac_exeext conftest.$ac_ext
8342 if test "$ac_cv_search_tgetent" = no; then
8343 for ac_lib in termcap tinfo curses ncurses; do
8344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8345 cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h. */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8351
8352 /* Override any gcc2 internal prototype to avoid an error. */
8353 #ifdef __cplusplus
8354 extern "C"
8355 #endif
8356 /* We use char because int might match the return type of a gcc2
8357 builtin and then its argument prototype would still apply. */
8358 char tgetent ();
8359 int
8360 main ()
8361 {
8362 tgetent ();
8363 ;
8364 return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -z "$ac_c_werror_flag"
8377 || test ! -s conftest.err'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 (eval $ac_try) 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; } &&
8383 { ac_try='test -s conftest$ac_exeext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_cv_search_tgetent="-l$ac_lib"
8390 break
8391 else
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395 fi
8396 rm -f conftest.err conftest.$ac_objext \
8397 conftest$ac_exeext conftest.$ac_ext
8398 done
8399 fi
8400 LIBS=$ac_func_search_save_LIBS
8401 fi
8402 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8403 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8404 if test "$ac_cv_search_tgetent" != no; then
8405 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8406
8407 fi
8408
8409
8410 if test "$ac_cv_search_tgetent" = no; then
8411 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8412 echo "$as_me: error: no termcap library found" >&2;}
8413 { (exit 1); exit 1; }; }
8414 fi
8415
8416 # ------------------------- #
8417 # Checks for header files. #
8418 # ------------------------- #
8419
8420
8421
8422
8423
8424
8425 ac_header_dirent=no
8426 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8427 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8428 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8429 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433 cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h. */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 #include <sys/types.h>
8440 #include <$ac_hdr>
8441
8442 int
8443 main ()
8444 {
8445 if ((DIR *) 0)
8446 return 0;
8447 ;
8448 return 0;
8449 }
8450 _ACEOF
8451 rm -f conftest.$ac_objext
8452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8453 (eval $ac_compile) 2>conftest.er1
8454 ac_status=$?
8455 grep -v '^ *+' conftest.er1 >conftest.err
8456 rm -f conftest.er1
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -z "$ac_c_werror_flag"
8461 || test ! -s conftest.err'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try='test -s conftest.$ac_objext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 eval "$as_ac_Header=yes"
8474 else
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8477
8478 eval "$as_ac_Header=no"
8479 fi
8480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8481 fi
8482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8485 cat >>confdefs.h <<_ACEOF
8486 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8487 _ACEOF
8488
8489 ac_header_dirent=$ac_hdr; break
8490 fi
8491
8492 done
8493 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8494 if test $ac_header_dirent = dirent.h; then
8495 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8496 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8497 if test "${ac_cv_search_opendir+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500 ac_func_search_save_LIBS=$LIBS
8501 ac_cv_search_opendir=no
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508
8509 /* Override any gcc2 internal prototype to avoid an error. */
8510 #ifdef __cplusplus
8511 extern "C"
8512 #endif
8513 /* We use char because int might match the return type of a gcc2
8514 builtin and then its argument prototype would still apply. */
8515 char opendir ();
8516 int
8517 main ()
8518 {
8519 opendir ();
8520 ;
8521 return 0;
8522 }
8523 _ACEOF
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526 (eval $ac_link) 2>conftest.er1
8527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag"
8534 || test ! -s conftest.err'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 (eval $ac_try) 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; } &&
8540 { ac_try='test -s conftest$ac_exeext'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 ac_cv_search_opendir="none required"
8547 else
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8550
8551 fi
8552 rm -f conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8554 if test "$ac_cv_search_opendir" = no; then
8555 for ac_lib in dir; do
8556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8557 cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h. */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563
8564 /* Override any gcc2 internal prototype to avoid an error. */
8565 #ifdef __cplusplus
8566 extern "C"
8567 #endif
8568 /* We use char because int might match the return type of a gcc2
8569 builtin and then its argument prototype would still apply. */
8570 char opendir ();
8571 int
8572 main ()
8573 {
8574 opendir ();
8575 ;
8576 return 0;
8577 }
8578 _ACEOF
8579 rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8581 (eval $ac_link) 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag"
8589 || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_search_opendir="-l$ac_lib"
8602 break
8603 else
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8606
8607 fi
8608 rm -f conftest.err conftest.$ac_objext \
8609 conftest$ac_exeext conftest.$ac_ext
8610 done
8611 fi
8612 LIBS=$ac_func_search_save_LIBS
8613 fi
8614 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8615 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8616 if test "$ac_cv_search_opendir" != no; then
8617 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8618
8619 fi
8620
8621 else
8622 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8623 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8624 if test "${ac_cv_search_opendir+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627 ac_func_search_save_LIBS=$LIBS
8628 ac_cv_search_opendir=no
8629 cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h. */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635
8636 /* Override any gcc2 internal prototype to avoid an error. */
8637 #ifdef __cplusplus
8638 extern "C"
8639 #endif
8640 /* We use char because int might match the return type of a gcc2
8641 builtin and then its argument prototype would still apply. */
8642 char opendir ();
8643 int
8644 main ()
8645 {
8646 opendir ();
8647 ;
8648 return 0;
8649 }
8650 _ACEOF
8651 rm -f conftest.$ac_objext conftest$ac_exeext
8652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653 (eval $ac_link) 2>conftest.er1
8654 ac_status=$?
8655 grep -v '^ *+' conftest.er1 >conftest.err
8656 rm -f conftest.er1
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try='test -z "$ac_c_werror_flag"
8661 || test ! -s conftest.err'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 (eval $ac_try) 2>&5
8664 ac_status=$?
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; } &&
8667 { ac_try='test -s conftest$ac_exeext'
8668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 (eval $ac_try) 2>&5
8670 ac_status=$?
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; }; then
8673 ac_cv_search_opendir="none required"
8674 else
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678 fi
8679 rm -f conftest.err conftest.$ac_objext \
8680 conftest$ac_exeext conftest.$ac_ext
8681 if test "$ac_cv_search_opendir" = no; then
8682 for ac_lib in x; do
8683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8684 cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h. */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690
8691 /* Override any gcc2 internal prototype to avoid an error. */
8692 #ifdef __cplusplus
8693 extern "C"
8694 #endif
8695 /* We use char because int might match the return type of a gcc2
8696 builtin and then its argument prototype would still apply. */
8697 char opendir ();
8698 int
8699 main ()
8700 {
8701 opendir ();
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 rm -f conftest.$ac_objext conftest$ac_exeext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8708 (eval $ac_link) 2>conftest.er1
8709 ac_status=$?
8710 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try='test -z "$ac_c_werror_flag"
8716 || test ! -s conftest.err'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; } &&
8722 { ac_try='test -s conftest$ac_exeext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 ac_cv_search_opendir="-l$ac_lib"
8729 break
8730 else
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8733
8734 fi
8735 rm -f conftest.err conftest.$ac_objext \
8736 conftest$ac_exeext conftest.$ac_ext
8737 done
8738 fi
8739 LIBS=$ac_func_search_save_LIBS
8740 fi
8741 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8742 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8743 if test "$ac_cv_search_opendir" != no; then
8744 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8745
8746 fi
8747
8748 fi
8749
8750 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8751 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8752 if test "${ac_cv_header_stat_broken+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755 cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h. */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8761 #include <sys/types.h>
8762 #include <sys/stat.h>
8763
8764 #if defined(S_ISBLK) && defined(S_IFDIR)
8765 # if S_ISBLK (S_IFDIR)
8766 You lose.
8767 # endif
8768 #endif
8769
8770 #if defined(S_ISBLK) && defined(S_IFCHR)
8771 # if S_ISBLK (S_IFCHR)
8772 You lose.
8773 # endif
8774 #endif
8775
8776 #if defined(S_ISLNK) && defined(S_IFREG)
8777 # if S_ISLNK (S_IFREG)
8778 You lose.
8779 # endif
8780 #endif
8781
8782 #if defined(S_ISSOCK) && defined(S_IFREG)
8783 # if S_ISSOCK (S_IFREG)
8784 You lose.
8785 # endif
8786 #endif
8787
8788 _ACEOF
8789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8790 $EGREP "You lose" >/dev/null 2>&1; then
8791 ac_cv_header_stat_broken=yes
8792 else
8793 ac_cv_header_stat_broken=no
8794 fi
8795 rm -f conftest*
8796
8797 fi
8798 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8799 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8800 if test $ac_cv_header_stat_broken = yes; then
8801
8802 cat >>confdefs.h <<\_ACEOF
8803 #define STAT_MACROS_BROKEN 1
8804 _ACEOF
8805
8806 fi
8807
8808 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8810 if test "${ac_cv_header_stdc+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h. */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819 #include <stdlib.h>
8820 #include <stdarg.h>
8821 #include <string.h>
8822 #include <float.h>
8823
8824 int
8825 main ()
8826 {
8827
8828 ;
8829 return 0;
8830 }
8831 _ACEOF
8832 rm -f conftest.$ac_objext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8834 (eval $ac_compile) 2>conftest.er1
8835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -z "$ac_c_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest.$ac_objext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_header_stdc=yes
8855 else
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859 ac_cv_header_stdc=no
8860 fi
8861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8862
8863 if test $ac_cv_header_stdc = yes; then
8864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8865 cat >conftest.$ac_ext <<_ACEOF
8866 /* confdefs.h. */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8871 #include <string.h>
8872
8873 _ACEOF
8874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8875 $EGREP "memchr" >/dev/null 2>&1; then
8876 :
8877 else
8878 ac_cv_header_stdc=no
8879 fi
8880 rm -f conftest*
8881
8882 fi
8883
8884 if test $ac_cv_header_stdc = yes; then
8885 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8886 cat >conftest.$ac_ext <<_ACEOF
8887 /* confdefs.h. */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 #include <stdlib.h>
8893
8894 _ACEOF
8895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8896 $EGREP "free" >/dev/null 2>&1; then
8897 :
8898 else
8899 ac_cv_header_stdc=no
8900 fi
8901 rm -f conftest*
8902
8903 fi
8904
8905 if test $ac_cv_header_stdc = yes; then
8906 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8907 if test "$cross_compiling" = yes; then
8908 :
8909 else
8910 cat >conftest.$ac_ext <<_ACEOF
8911 /* confdefs.h. */
8912 _ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8916 #include <ctype.h>
8917 #if ((' ' & 0x0FF) == 0x020)
8918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8920 #else
8921 # define ISLOWER(c) \
8922 (('a' <= (c) && (c) <= 'i') \
8923 || ('j' <= (c) && (c) <= 'r') \
8924 || ('s' <= (c) && (c) <= 'z'))
8925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8926 #endif
8927
8928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8929 int
8930 main ()
8931 {
8932 int i;
8933 for (i = 0; i < 256; i++)
8934 if (XOR (islower (i), ISLOWER (i))
8935 || toupper (i) != TOUPPER (i))
8936 exit(2);
8937 exit (0);
8938 }
8939 _ACEOF
8940 rm -f conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 :
8952 else
8953 echo "$as_me: program exited with status $ac_status" >&5
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8956
8957 ( exit $ac_status )
8958 ac_cv_header_stdc=no
8959 fi
8960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8961 fi
8962 fi
8963 fi
8964 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8965 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8966 if test $ac_cv_header_stdc = yes; then
8967
8968 cat >>confdefs.h <<\_ACEOF
8969 #define STDC_HEADERS 1
8970 _ACEOF
8971
8972 fi
8973
8974
8975 for ac_header in nlist.h
8976 do
8977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8979 echo "$as_me:$LINENO: checking for $ac_header" >&5
8980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 fi
8984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8986 else
8987 # Is the header compilable?
8988 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h. */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 $ac_includes_default
8997 #include <$ac_header>
8998 _ACEOF
8999 rm -f conftest.$ac_objext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9001 (eval $ac_compile) 2>conftest.er1
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try='test -z "$ac_c_werror_flag"
9009 || test ! -s conftest.err'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; } &&
9015 { ac_try='test -s conftest.$ac_objext'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; }; then
9021 ac_header_compiler=yes
9022 else
9023 echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9025
9026 ac_header_compiler=no
9027 fi
9028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9030 echo "${ECHO_T}$ac_header_compiler" >&6
9031
9032 # Is the header present?
9033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9035 cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h. */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9041 #include <$ac_header>
9042 _ACEOF
9043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9045 ac_status=$?
9046 grep -v '^ *+' conftest.er1 >conftest.err
9047 rm -f conftest.er1
9048 cat conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } >/dev/null; then
9051 if test -s conftest.err; then
9052 ac_cpp_err=$ac_c_preproc_warn_flag
9053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9054 else
9055 ac_cpp_err=
9056 fi
9057 else
9058 ac_cpp_err=yes
9059 fi
9060 if test -z "$ac_cpp_err"; then
9061 ac_header_preproc=yes
9062 else
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9065
9066 ac_header_preproc=no
9067 fi
9068 rm -f conftest.err conftest.$ac_ext
9069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9070 echo "${ECHO_T}$ac_header_preproc" >&6
9071
9072 # So? What about this header?
9073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9074 yes:no: )
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9079 ac_header_preproc=yes
9080 ;;
9081 no:yes:* )
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9094 (
9095 cat <<\_ASBOX
9096 ## ------------------------------------------ ##
9097 ## Report this to the AC_PACKAGE_NAME lists. ##
9098 ## ------------------------------------------ ##
9099 _ASBOX
9100 ) |
9101 sed "s/^/$as_me: WARNING: /" >&2
9102 ;;
9103 esac
9104 echo "$as_me:$LINENO: checking for $ac_header" >&5
9105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109 eval "$as_ac_Header=\$ac_header_preproc"
9110 fi
9111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9113
9114 fi
9115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9116 cat >>confdefs.h <<_ACEOF
9117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9118 _ACEOF
9119
9120 fi
9121
9122 done
9123
9124
9125 for ac_header in link.h
9126 do
9127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9128 echo "$as_me:$LINENO: checking for $ac_header" >&5
9129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 else
9133 cat >conftest.$ac_ext <<_ACEOF
9134 /* confdefs.h. */
9135 _ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9139 #if HAVE_SYS_TYPES_H
9140 # include <sys/types.h>
9141 #endif
9142 #if HAVE_NLIST_H
9143 # include <nlist.h>
9144 #endif
9145
9146
9147 #include <$ac_header>
9148 _ACEOF
9149 rm -f conftest.$ac_objext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9151 (eval $ac_compile) 2>conftest.er1
9152 ac_status=$?
9153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
9158 { ac_try='test -z "$ac_c_werror_flag"
9159 || test ! -s conftest.err'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 (eval $ac_try) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; } &&
9165 { ac_try='test -s conftest.$ac_objext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 eval "$as_ac_Header=yes"
9172 else
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9175
9176 eval "$as_ac_Header=no"
9177 fi
9178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9179 fi
9180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9183 cat >>confdefs.h <<_ACEOF
9184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9185 _ACEOF
9186
9187 fi
9188
9189 done
9190
9191
9192 for ac_header in machine/reg.h
9193 do
9194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196 echo "$as_me:$LINENO: checking for $ac_header" >&5
9197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 fi
9201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9203 else
9204 # Is the header compilable?
9205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9207 cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h. */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 $ac_includes_default
9214 #include <$ac_header>
9215 _ACEOF
9216 rm -f conftest.$ac_objext
9217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9218 (eval $ac_compile) 2>conftest.er1
9219 ac_status=$?
9220 grep -v '^ *+' conftest.er1 >conftest.err
9221 rm -f conftest.er1
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -z "$ac_c_werror_flag"
9226 || test ! -s conftest.err'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; } &&
9232 { ac_try='test -s conftest.$ac_objext'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 (eval $ac_try) 2>&5
9235 ac_status=$?
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 ac_header_compiler=yes
9239 else
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9242
9243 ac_header_compiler=no
9244 fi
9245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9247 echo "${ECHO_T}$ac_header_compiler" >&6
9248
9249 # Is the header present?
9250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9258 #include <$ac_header>
9259 _ACEOF
9260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9262 ac_status=$?
9263 grep -v '^ *+' conftest.er1 >conftest.err
9264 rm -f conftest.er1
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } >/dev/null; then
9268 if test -s conftest.err; then
9269 ac_cpp_err=$ac_c_preproc_warn_flag
9270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9271 else
9272 ac_cpp_err=
9273 fi
9274 else
9275 ac_cpp_err=yes
9276 fi
9277 if test -z "$ac_cpp_err"; then
9278 ac_header_preproc=yes
9279 else
9280 echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9282
9283 ac_header_preproc=no
9284 fi
9285 rm -f conftest.err conftest.$ac_ext
9286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9287 echo "${ECHO_T}$ac_header_preproc" >&6
9288
9289 # So? What about this header?
9290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9291 yes:no: )
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9296 ac_header_preproc=yes
9297 ;;
9298 no:yes:* )
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9311 (
9312 cat <<\_ASBOX
9313 ## ------------------------------------------ ##
9314 ## Report this to the AC_PACKAGE_NAME lists. ##
9315 ## ------------------------------------------ ##
9316 _ASBOX
9317 ) |
9318 sed "s/^/$as_me: WARNING: /" >&2
9319 ;;
9320 esac
9321 echo "$as_me:$LINENO: checking for $ac_header" >&5
9322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 else
9326 eval "$as_ac_Header=\$ac_header_preproc"
9327 fi
9328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9330
9331 fi
9332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9333 cat >>confdefs.h <<_ACEOF
9334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9335 _ACEOF
9336
9337 fi
9338
9339 done
9340
9341
9342
9343 for ac_header in poll.h sys/poll.h
9344 do
9345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9347 echo "$as_me:$LINENO: checking for $ac_header" >&5
9348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 fi
9352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9354 else
9355 # Is the header compilable?
9356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h. */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364 $ac_includes_default
9365 #include <$ac_header>
9366 _ACEOF
9367 rm -f conftest.$ac_objext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369 (eval $ac_compile) 2>conftest.er1
9370 ac_status=$?
9371 grep -v '^ *+' conftest.er1 >conftest.err
9372 rm -f conftest.er1
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -z "$ac_c_werror_flag"
9377 || test ! -s conftest.err'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try='test -s conftest.$ac_objext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 (eval $ac_try) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 ac_header_compiler=yes
9390 else
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9393
9394 ac_header_compiler=no
9395 fi
9396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9398 echo "${ECHO_T}$ac_header_compiler" >&6
9399
9400 # Is the header present?
9401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9403 cat >conftest.$ac_ext <<_ACEOF
9404 /* confdefs.h. */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9409 #include <$ac_header>
9410 _ACEOF
9411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } >/dev/null; then
9419 if test -s conftest.err; then
9420 ac_cpp_err=$ac_c_preproc_warn_flag
9421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9422 else
9423 ac_cpp_err=
9424 fi
9425 else
9426 ac_cpp_err=yes
9427 fi
9428 if test -z "$ac_cpp_err"; then
9429 ac_header_preproc=yes
9430 else
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9433
9434 ac_header_preproc=no
9435 fi
9436 rm -f conftest.err conftest.$ac_ext
9437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9438 echo "${ECHO_T}$ac_header_preproc" >&6
9439
9440 # So? What about this header?
9441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9442 yes:no: )
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9447 ac_header_preproc=yes
9448 ;;
9449 no:yes:* )
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9462 (
9463 cat <<\_ASBOX
9464 ## ------------------------------------------ ##
9465 ## Report this to the AC_PACKAGE_NAME lists. ##
9466 ## ------------------------------------------ ##
9467 _ASBOX
9468 ) |
9469 sed "s/^/$as_me: WARNING: /" >&2
9470 ;;
9471 esac
9472 echo "$as_me:$LINENO: checking for $ac_header" >&5
9473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477 eval "$as_ac_Header=\$ac_header_preproc"
9478 fi
9479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9481
9482 fi
9483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9484 cat >>confdefs.h <<_ACEOF
9485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9486 _ACEOF
9487
9488 fi
9489
9490 done
9491
9492
9493
9494
9495 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9496 do
9497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9499 echo "$as_me:$LINENO: checking for $ac_header" >&5
9500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 fi
9504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9506 else
9507 # Is the header compilable?
9508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h. */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9516 $ac_includes_default
9517 #include <$ac_header>
9518 _ACEOF
9519 rm -f conftest.$ac_objext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9521 (eval $ac_compile) 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -z "$ac_c_werror_flag"
9529 || test ! -s conftest.err'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 (eval $ac_try) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; } &&
9535 { ac_try='test -s conftest.$ac_objext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 (eval $ac_try) 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_header_compiler=yes
9542 else
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9545
9546 ac_header_compiler=no
9547 fi
9548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9550 echo "${ECHO_T}$ac_header_compiler" >&6
9551
9552 # Is the header present?
9553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9555 cat >conftest.$ac_ext <<_ACEOF
9556 /* confdefs.h. */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9561 #include <$ac_header>
9562 _ACEOF
9563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9565 ac_status=$?
9566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } >/dev/null; then
9571 if test -s conftest.err; then
9572 ac_cpp_err=$ac_c_preproc_warn_flag
9573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9574 else
9575 ac_cpp_err=
9576 fi
9577 else
9578 ac_cpp_err=yes
9579 fi
9580 if test -z "$ac_cpp_err"; then
9581 ac_header_preproc=yes
9582 else
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9585
9586 ac_header_preproc=no
9587 fi
9588 rm -f conftest.err conftest.$ac_ext
9589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9590 echo "${ECHO_T}$ac_header_preproc" >&6
9591
9592 # So? What about this header?
9593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9594 yes:no: )
9595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9599 ac_header_preproc=yes
9600 ;;
9601 no:yes:* )
9602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9614 (
9615 cat <<\_ASBOX
9616 ## ------------------------------------------ ##
9617 ## Report this to the AC_PACKAGE_NAME lists. ##
9618 ## ------------------------------------------ ##
9619 _ASBOX
9620 ) |
9621 sed "s/^/$as_me: WARNING: /" >&2
9622 ;;
9623 esac
9624 echo "$as_me:$LINENO: checking for $ac_header" >&5
9625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 else
9629 eval "$as_ac_Header=\$ac_header_preproc"
9630 fi
9631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9633
9634 fi
9635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9636 cat >>confdefs.h <<_ACEOF
9637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9638 _ACEOF
9639
9640 fi
9641
9642 done
9643
9644
9645 for ac_header in stddef.h
9646 do
9647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9649 echo "$as_me:$LINENO: checking for $ac_header" >&5
9650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 fi
9654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9656 else
9657 # Is the header compilable?
9658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9660 cat >conftest.$ac_ext <<_ACEOF
9661 /* confdefs.h. */
9662 _ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666 $ac_includes_default
9667 #include <$ac_header>
9668 _ACEOF
9669 rm -f conftest.$ac_objext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9671 (eval $ac_compile) 2>conftest.er1
9672 ac_status=$?
9673 grep -v '^ *+' conftest.er1 >conftest.err
9674 rm -f conftest.er1
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
9678 { ac_try='test -z "$ac_c_werror_flag"
9679 || test ! -s conftest.err'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 (eval $ac_try) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest.$ac_objext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 (eval $ac_try) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_header_compiler=yes
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 ac_header_compiler=no
9697 fi
9698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9700 echo "${ECHO_T}$ac_header_compiler" >&6
9701
9702 # Is the header present?
9703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9705 cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h. */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 #include <$ac_header>
9712 _ACEOF
9713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9715 ac_status=$?
9716 grep -v '^ *+' conftest.er1 >conftest.err
9717 rm -f conftest.er1
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } >/dev/null; then
9721 if test -s conftest.err; then
9722 ac_cpp_err=$ac_c_preproc_warn_flag
9723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9724 else
9725 ac_cpp_err=
9726 fi
9727 else
9728 ac_cpp_err=yes
9729 fi
9730 if test -z "$ac_cpp_err"; then
9731 ac_header_preproc=yes
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9735
9736 ac_header_preproc=no
9737 fi
9738 rm -f conftest.err conftest.$ac_ext
9739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9740 echo "${ECHO_T}$ac_header_preproc" >&6
9741
9742 # So? What about this header?
9743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9744 yes:no: )
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9749 ac_header_preproc=yes
9750 ;;
9751 no:yes:* )
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9764 (
9765 cat <<\_ASBOX
9766 ## ------------------------------------------ ##
9767 ## Report this to the AC_PACKAGE_NAME lists. ##
9768 ## ------------------------------------------ ##
9769 _ASBOX
9770 ) |
9771 sed "s/^/$as_me: WARNING: /" >&2
9772 ;;
9773 esac
9774 echo "$as_me:$LINENO: checking for $ac_header" >&5
9775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779 eval "$as_ac_Header=\$ac_header_preproc"
9780 fi
9781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9783
9784 fi
9785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9786 cat >>confdefs.h <<_ACEOF
9787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9788 _ACEOF
9789
9790 fi
9791
9792 done
9793
9794
9795 for ac_header in stdlib.h
9796 do
9797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9799 echo "$as_me:$LINENO: checking for $ac_header" >&5
9800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 fi
9804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9806 else
9807 # Is the header compilable?
9808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 $ac_includes_default
9817 #include <$ac_header>
9818 _ACEOF
9819 rm -f conftest.$ac_objext
9820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9821 (eval $ac_compile) 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -z "$ac_c_werror_flag"
9829 || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest.$ac_objext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_header_compiler=yes
9842 else
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846 ac_header_compiler=no
9847 fi
9848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9850 echo "${ECHO_T}$ac_header_compiler" >&6
9851
9852 # Is the header present?
9853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9855 cat >conftest.$ac_ext <<_ACEOF
9856 /* confdefs.h. */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861 #include <$ac_header>
9862 _ACEOF
9863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9865 ac_status=$?
9866 grep -v '^ *+' conftest.er1 >conftest.err
9867 rm -f conftest.er1
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } >/dev/null; then
9871 if test -s conftest.err; then
9872 ac_cpp_err=$ac_c_preproc_warn_flag
9873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9874 else
9875 ac_cpp_err=
9876 fi
9877 else
9878 ac_cpp_err=yes
9879 fi
9880 if test -z "$ac_cpp_err"; then
9881 ac_header_preproc=yes
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 ac_header_preproc=no
9887 fi
9888 rm -f conftest.err conftest.$ac_ext
9889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9890 echo "${ECHO_T}$ac_header_preproc" >&6
9891
9892 # So? What about this header?
9893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9894 yes:no: )
9895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9899 ac_header_preproc=yes
9900 ;;
9901 no:yes:* )
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9914 (
9915 cat <<\_ASBOX
9916 ## ------------------------------------------ ##
9917 ## Report this to the AC_PACKAGE_NAME lists. ##
9918 ## ------------------------------------------ ##
9919 _ASBOX
9920 ) |
9921 sed "s/^/$as_me: WARNING: /" >&2
9922 ;;
9923 esac
9924 echo "$as_me:$LINENO: checking for $ac_header" >&5
9925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 else
9929 eval "$as_ac_Header=\$ac_header_preproc"
9930 fi
9931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9933
9934 fi
9935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9936 cat >>confdefs.h <<_ACEOF
9937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9938 _ACEOF
9939
9940 fi
9941
9942 done
9943
9944
9945 for ac_header in stdint.h
9946 do
9947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9949 echo "$as_me:$LINENO: checking for $ac_header" >&5
9950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 fi
9954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9956 else
9957 # Is the header compilable?
9958 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9960 cat >conftest.$ac_ext <<_ACEOF
9961 /* confdefs.h. */
9962 _ACEOF
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h. */
9966 $ac_includes_default
9967 #include <$ac_header>
9968 _ACEOF
9969 rm -f conftest.$ac_objext
9970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9971 (eval $ac_compile) 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try='test -z "$ac_c_werror_flag"
9979 || test ! -s conftest.err'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 (eval $ac_try) 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; } &&
9985 { ac_try='test -s conftest.$ac_objext'
9986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 (eval $ac_try) 2>&5
9988 ac_status=$?
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; }; then
9991 ac_header_compiler=yes
9992 else
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9995
9996 ac_header_compiler=no
9997 fi
9998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10000 echo "${ECHO_T}$ac_header_compiler" >&6
10001
10002 # Is the header present?
10003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 #include <$ac_header>
10012 _ACEOF
10013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10015 ac_status=$?
10016 grep -v '^ *+' conftest.er1 >conftest.err
10017 rm -f conftest.er1
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } >/dev/null; then
10021 if test -s conftest.err; then
10022 ac_cpp_err=$ac_c_preproc_warn_flag
10023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10024 else
10025 ac_cpp_err=
10026 fi
10027 else
10028 ac_cpp_err=yes
10029 fi
10030 if test -z "$ac_cpp_err"; then
10031 ac_header_preproc=yes
10032 else
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036 ac_header_preproc=no
10037 fi
10038 rm -f conftest.err conftest.$ac_ext
10039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10040 echo "${ECHO_T}$ac_header_preproc" >&6
10041
10042 # So? What about this header?
10043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10044 yes:no: )
10045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10048 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10049 ac_header_preproc=yes
10050 ;;
10051 no:yes:* )
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10053 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10055 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10057 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10059 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10063 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10064 (
10065 cat <<\_ASBOX
10066 ## ------------------------------------------ ##
10067 ## Report this to the AC_PACKAGE_NAME lists. ##
10068 ## ------------------------------------------ ##
10069 _ASBOX
10070 ) |
10071 sed "s/^/$as_me: WARNING: /" >&2
10072 ;;
10073 esac
10074 echo "$as_me:$LINENO: checking for $ac_header" >&5
10075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079 eval "$as_ac_Header=\$ac_header_preproc"
10080 fi
10081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10083
10084 fi
10085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10086 cat >>confdefs.h <<_ACEOF
10087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10088 _ACEOF
10089
10090 fi
10091
10092 done
10093
10094
10095
10096
10097 for ac_header in string.h memory.h strings.h
10098 do
10099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10101 echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 fi
10106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10108 else
10109 # Is the header compilable?
10110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h. */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 $ac_includes_default
10119 #include <$ac_header>
10120 _ACEOF
10121 rm -f conftest.$ac_objext
10122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10123 (eval $ac_compile) 2>conftest.er1
10124 ac_status=$?
10125 grep -v '^ *+' conftest.er1 >conftest.err
10126 rm -f conftest.er1
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try='test -z "$ac_c_werror_flag"
10131 || test ! -s conftest.err'
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest.$ac_objext'
10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139 (eval $ac_try) 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; }; then
10143 ac_header_compiler=yes
10144 else
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148 ac_header_compiler=no
10149 fi
10150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10152 echo "${ECHO_T}$ac_header_compiler" >&6
10153
10154 # Is the header present?
10155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h. */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163 #include <$ac_header>
10164 _ACEOF
10165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } >/dev/null; then
10173 if test -s conftest.err; then
10174 ac_cpp_err=$ac_c_preproc_warn_flag
10175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10176 else
10177 ac_cpp_err=
10178 fi
10179 else
10180 ac_cpp_err=yes
10181 fi
10182 if test -z "$ac_cpp_err"; then
10183 ac_header_preproc=yes
10184 else
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 ac_header_preproc=no
10189 fi
10190 rm -f conftest.err conftest.$ac_ext
10191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10192 echo "${ECHO_T}$ac_header_preproc" >&6
10193
10194 # So? What about this header?
10195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10196 yes:no: )
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10201 ac_header_preproc=yes
10202 ;;
10203 no:yes:* )
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10216 (
10217 cat <<\_ASBOX
10218 ## ------------------------------------------ ##
10219 ## Report this to the AC_PACKAGE_NAME lists. ##
10220 ## ------------------------------------------ ##
10221 _ASBOX
10222 ) |
10223 sed "s/^/$as_me: WARNING: /" >&2
10224 ;;
10225 esac
10226 echo "$as_me:$LINENO: checking for $ac_header" >&5
10227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231 eval "$as_ac_Header=\$ac_header_preproc"
10232 fi
10233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10235
10236 fi
10237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10238 cat >>confdefs.h <<_ACEOF
10239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10240 _ACEOF
10241
10242 fi
10243
10244 done
10245
10246
10247 for ac_header in sys/fault.h
10248 do
10249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10251 echo "$as_me:$LINENO: checking for $ac_header" >&5
10252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 fi
10256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10258 else
10259 # Is the header compilable?
10260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10262 cat >conftest.$ac_ext <<_ACEOF
10263 /* confdefs.h. */
10264 _ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268 $ac_includes_default
10269 #include <$ac_header>
10270 _ACEOF
10271 rm -f conftest.$ac_objext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273 (eval $ac_compile) 2>conftest.er1
10274 ac_status=$?
10275 grep -v '^ *+' conftest.er1 >conftest.err
10276 rm -f conftest.er1
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -z "$ac_c_werror_flag"
10281 || test ! -s conftest.err'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; } &&
10287 { ac_try='test -s conftest.$ac_objext'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10293 ac_header_compiler=yes
10294 else
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10297
10298 ac_header_compiler=no
10299 fi
10300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10302 echo "${ECHO_T}$ac_header_compiler" >&6
10303
10304 # Is the header present?
10305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10307 cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h. */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 #include <$ac_header>
10314 _ACEOF
10315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } >/dev/null; then
10323 if test -s conftest.err; then
10324 ac_cpp_err=$ac_c_preproc_warn_flag
10325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10326 else
10327 ac_cpp_err=
10328 fi
10329 else
10330 ac_cpp_err=yes
10331 fi
10332 if test -z "$ac_cpp_err"; then
10333 ac_header_preproc=yes
10334 else
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10337
10338 ac_header_preproc=no
10339 fi
10340 rm -f conftest.err conftest.$ac_ext
10341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10342 echo "${ECHO_T}$ac_header_preproc" >&6
10343
10344 # So? What about this header?
10345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10346 yes:no: )
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10351 ac_header_preproc=yes
10352 ;;
10353 no:yes:* )
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10366 (
10367 cat <<\_ASBOX
10368 ## ------------------------------------------ ##
10369 ## Report this to the AC_PACKAGE_NAME lists. ##
10370 ## ------------------------------------------ ##
10371 _ASBOX
10372 ) |
10373 sed "s/^/$as_me: WARNING: /" >&2
10374 ;;
10375 esac
10376 echo "$as_me:$LINENO: checking for $ac_header" >&5
10377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381 eval "$as_ac_Header=\$ac_header_preproc"
10382 fi
10383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10385
10386 fi
10387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10388 cat >>confdefs.h <<_ACEOF
10389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10390 _ACEOF
10391
10392 fi
10393
10394 done
10395
10396
10397 for ac_header in sys/file.h
10398 do
10399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10401 echo "$as_me:$LINENO: checking for $ac_header" >&5
10402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 fi
10406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10408 else
10409 # Is the header compilable?
10410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10412 cat >conftest.$ac_ext <<_ACEOF
10413 /* confdefs.h. */
10414 _ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 $ac_includes_default
10419 #include <$ac_header>
10420 _ACEOF
10421 rm -f conftest.$ac_objext
10422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10423 (eval $ac_compile) 2>conftest.er1
10424 ac_status=$?
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } &&
10430 { ac_try='test -z "$ac_c_werror_flag"
10431 || test ! -s conftest.err'
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; } &&
10437 { ac_try='test -s conftest.$ac_objext'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 ac_header_compiler=yes
10444 else
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448 ac_header_compiler=no
10449 fi
10450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10452 echo "${ECHO_T}$ac_header_compiler" >&6
10453
10454 # Is the header present?
10455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10457 cat >conftest.$ac_ext <<_ACEOF
10458 /* confdefs.h. */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 #include <$ac_header>
10464 _ACEOF
10465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } >/dev/null; then
10473 if test -s conftest.err; then
10474 ac_cpp_err=$ac_c_preproc_warn_flag
10475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10476 else
10477 ac_cpp_err=
10478 fi
10479 else
10480 ac_cpp_err=yes
10481 fi
10482 if test -z "$ac_cpp_err"; then
10483 ac_header_preproc=yes
10484 else
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 ac_header_preproc=no
10489 fi
10490 rm -f conftest.err conftest.$ac_ext
10491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10492 echo "${ECHO_T}$ac_header_preproc" >&6
10493
10494 # So? What about this header?
10495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10496 yes:no: )
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10501 ac_header_preproc=yes
10502 ;;
10503 no:yes:* )
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10516 (
10517 cat <<\_ASBOX
10518 ## ------------------------------------------ ##
10519 ## Report this to the AC_PACKAGE_NAME lists. ##
10520 ## ------------------------------------------ ##
10521 _ASBOX
10522 ) |
10523 sed "s/^/$as_me: WARNING: /" >&2
10524 ;;
10525 esac
10526 echo "$as_me:$LINENO: checking for $ac_header" >&5
10527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531 eval "$as_ac_Header=\$ac_header_preproc"
10532 fi
10533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10535
10536 fi
10537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10538 cat >>confdefs.h <<_ACEOF
10539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10540 _ACEOF
10541
10542 fi
10543
10544 done
10545
10546
10547 for ac_header in sys/filio.h
10548 do
10549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10551 echo "$as_me:$LINENO: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 fi
10556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10558 else
10559 # Is the header compilable?
10560 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10562 cat >conftest.$ac_ext <<_ACEOF
10563 /* confdefs.h. */
10564 _ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568 $ac_includes_default
10569 #include <$ac_header>
10570 _ACEOF
10571 rm -f conftest.$ac_objext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573 (eval $ac_compile) 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag"
10581 || test ! -s conftest.err'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try='test -s conftest.$ac_objext'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 ac_header_compiler=yes
10594 else
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10597
10598 ac_header_compiler=no
10599 fi
10600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10601 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10602 echo "${ECHO_T}$ac_header_compiler" >&6
10603
10604 # Is the header present?
10605 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10607 cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h. */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 #include <$ac_header>
10614 _ACEOF
10615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } >/dev/null; then
10623 if test -s conftest.err; then
10624 ac_cpp_err=$ac_c_preproc_warn_flag
10625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10626 else
10627 ac_cpp_err=
10628 fi
10629 else
10630 ac_cpp_err=yes
10631 fi
10632 if test -z "$ac_cpp_err"; then
10633 ac_header_preproc=yes
10634 else
10635 echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10637
10638 ac_header_preproc=no
10639 fi
10640 rm -f conftest.err conftest.$ac_ext
10641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10642 echo "${ECHO_T}$ac_header_preproc" >&6
10643
10644 # So? What about this header?
10645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10646 yes:no: )
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10651 ac_header_preproc=yes
10652 ;;
10653 no:yes:* )
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10661 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10666 (
10667 cat <<\_ASBOX
10668 ## ------------------------------------------ ##
10669 ## Report this to the AC_PACKAGE_NAME lists. ##
10670 ## ------------------------------------------ ##
10671 _ASBOX
10672 ) |
10673 sed "s/^/$as_me: WARNING: /" >&2
10674 ;;
10675 esac
10676 echo "$as_me:$LINENO: checking for $ac_header" >&5
10677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681 eval "$as_ac_Header=\$ac_header_preproc"
10682 fi
10683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10685
10686 fi
10687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10688 cat >>confdefs.h <<_ACEOF
10689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10690 _ACEOF
10691
10692 fi
10693
10694 done
10695
10696
10697 for ac_header in sys/ioctl.h
10698 do
10699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10701 echo "$as_me:$LINENO: checking for $ac_header" >&5
10702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 fi
10706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10708 else
10709 # Is the header compilable?
10710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10712 cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h. */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 $ac_includes_default
10719 #include <$ac_header>
10720 _ACEOF
10721 rm -f conftest.$ac_objext
10722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10723 (eval $ac_compile) 2>conftest.er1
10724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
10730 { ac_try='test -z "$ac_c_werror_flag"
10731 || test ! -s conftest.err'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; } &&
10737 { ac_try='test -s conftest.$ac_objext'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 ac_header_compiler=yes
10744 else
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10747
10748 ac_header_compiler=no
10749 fi
10750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10752 echo "${ECHO_T}$ac_header_compiler" >&6
10753
10754 # Is the header present?
10755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10757 cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h. */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 #include <$ac_header>
10764 _ACEOF
10765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } >/dev/null; then
10773 if test -s conftest.err; then
10774 ac_cpp_err=$ac_c_preproc_warn_flag
10775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10776 else
10777 ac_cpp_err=
10778 fi
10779 else
10780 ac_cpp_err=yes
10781 fi
10782 if test -z "$ac_cpp_err"; then
10783 ac_header_preproc=yes
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10787
10788 ac_header_preproc=no
10789 fi
10790 rm -f conftest.err conftest.$ac_ext
10791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10792 echo "${ECHO_T}$ac_header_preproc" >&6
10793
10794 # So? What about this header?
10795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10796 yes:no: )
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10801 ac_header_preproc=yes
10802 ;;
10803 no:yes:* )
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10816 (
10817 cat <<\_ASBOX
10818 ## ------------------------------------------ ##
10819 ## Report this to the AC_PACKAGE_NAME lists. ##
10820 ## ------------------------------------------ ##
10821 _ASBOX
10822 ) |
10823 sed "s/^/$as_me: WARNING: /" >&2
10824 ;;
10825 esac
10826 echo "$as_me:$LINENO: checking for $ac_header" >&5
10827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831 eval "$as_ac_Header=\$ac_header_preproc"
10832 fi
10833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10835
10836 fi
10837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10838 cat >>confdefs.h <<_ACEOF
10839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10840 _ACEOF
10841
10842 fi
10843
10844 done
10845
10846
10847 for ac_header in sys/param.h
10848 do
10849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10851 echo "$as_me:$LINENO: checking for $ac_header" >&5
10852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 fi
10856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10858 else
10859 # Is the header compilable?
10860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10862 cat >conftest.$ac_ext <<_ACEOF
10863 /* confdefs.h. */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 $ac_includes_default
10869 #include <$ac_header>
10870 _ACEOF
10871 rm -f conftest.$ac_objext
10872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10873 (eval $ac_compile) 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag"
10881 || test ! -s conftest.err'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; } &&
10887 { ac_try='test -s conftest.$ac_objext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 ac_header_compiler=yes
10894 else
10895 echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10897
10898 ac_header_compiler=no
10899 fi
10900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10902 echo "${ECHO_T}$ac_header_compiler" >&6
10903
10904 # Is the header present?
10905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10907 cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h. */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 #include <$ac_header>
10914 _ACEOF
10915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } >/dev/null; then
10923 if test -s conftest.err; then
10924 ac_cpp_err=$ac_c_preproc_warn_flag
10925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10926 else
10927 ac_cpp_err=
10928 fi
10929 else
10930 ac_cpp_err=yes
10931 fi
10932 if test -z "$ac_cpp_err"; then
10933 ac_header_preproc=yes
10934 else
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10937
10938 ac_header_preproc=no
10939 fi
10940 rm -f conftest.err conftest.$ac_ext
10941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10942 echo "${ECHO_T}$ac_header_preproc" >&6
10943
10944 # So? What about this header?
10945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10946 yes:no: )
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10951 ac_header_preproc=yes
10952 ;;
10953 no:yes:* )
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10966 (
10967 cat <<\_ASBOX
10968 ## ------------------------------------------ ##
10969 ## Report this to the AC_PACKAGE_NAME lists. ##
10970 ## ------------------------------------------ ##
10971 _ASBOX
10972 ) |
10973 sed "s/^/$as_me: WARNING: /" >&2
10974 ;;
10975 esac
10976 echo "$as_me:$LINENO: checking for $ac_header" >&5
10977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 else
10981 eval "$as_ac_Header=\$ac_header_preproc"
10982 fi
10983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10985
10986 fi
10987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10988 cat >>confdefs.h <<_ACEOF
10989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10990 _ACEOF
10991
10992 fi
10993
10994 done
10995
10996
10997 for ac_header in sys/proc.h
10998 do
10999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11000 echo "$as_me:$LINENO: checking for $ac_header" >&5
11001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005 cat >conftest.$ac_ext <<_ACEOF
11006 /* confdefs.h. */
11007 _ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11011 #if HAVE_SYS_PARAM_H
11012 # include <sys/param.h>
11013 #endif
11014
11015
11016 #include <$ac_header>
11017 _ACEOF
11018 rm -f conftest.$ac_objext
11019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11020 (eval $ac_compile) 2>conftest.er1
11021 ac_status=$?
11022 grep -v '^ *+' conftest.er1 >conftest.err
11023 rm -f conftest.er1
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } &&
11027 { ac_try='test -z "$ac_c_werror_flag"
11028 || test ! -s conftest.err'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; } &&
11034 { ac_try='test -s conftest.$ac_objext'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }; then
11040 eval "$as_ac_Header=yes"
11041 else
11042 echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11044
11045 eval "$as_ac_Header=no"
11046 fi
11047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11048 fi
11049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11052 cat >>confdefs.h <<_ACEOF
11053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11054 _ACEOF
11055
11056 fi
11057
11058 done
11059
11060
11061 for ac_header in sys/procfs.h
11062 do
11063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11065 echo "$as_me:$LINENO: checking for $ac_header" >&5
11066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 fi
11070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11072 else
11073 # Is the header compilable?
11074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11076 cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h. */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082 $ac_includes_default
11083 #include <$ac_header>
11084 _ACEOF
11085 rm -f conftest.$ac_objext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11087 (eval $ac_compile) 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag"
11095 || test ! -s conftest.err'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; } &&
11101 { ac_try='test -s conftest.$ac_objext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 ac_header_compiler=yes
11108 else
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11111
11112 ac_header_compiler=no
11113 fi
11114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11116 echo "${ECHO_T}$ac_header_compiler" >&6
11117
11118 # Is the header present?
11119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11121 cat >conftest.$ac_ext <<_ACEOF
11122 /* confdefs.h. */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 #include <$ac_header>
11128 _ACEOF
11129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11131 ac_status=$?
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } >/dev/null; then
11137 if test -s conftest.err; then
11138 ac_cpp_err=$ac_c_preproc_warn_flag
11139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11140 else
11141 ac_cpp_err=
11142 fi
11143 else
11144 ac_cpp_err=yes
11145 fi
11146 if test -z "$ac_cpp_err"; then
11147 ac_header_preproc=yes
11148 else
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11151
11152 ac_header_preproc=no
11153 fi
11154 rm -f conftest.err conftest.$ac_ext
11155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11156 echo "${ECHO_T}$ac_header_preproc" >&6
11157
11158 # So? What about this header?
11159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11160 yes:no: )
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11165 ac_header_preproc=yes
11166 ;;
11167 no:yes:* )
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11180 (
11181 cat <<\_ASBOX
11182 ## ------------------------------------------ ##
11183 ## Report this to the AC_PACKAGE_NAME lists. ##
11184 ## ------------------------------------------ ##
11185 _ASBOX
11186 ) |
11187 sed "s/^/$as_me: WARNING: /" >&2
11188 ;;
11189 esac
11190 echo "$as_me:$LINENO: checking for $ac_header" >&5
11191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195 eval "$as_ac_Header=\$ac_header_preproc"
11196 fi
11197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11199
11200 fi
11201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11202 cat >>confdefs.h <<_ACEOF
11203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11204 _ACEOF
11205
11206 fi
11207
11208 done
11209
11210
11211
11212 for ac_header in sys/ptrace.h ptrace.h
11213 do
11214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11216 echo "$as_me:$LINENO: checking for $ac_header" >&5
11217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 fi
11221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11223 else
11224 # Is the header compilable?
11225 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11227 cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h. */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11233 $ac_includes_default
11234 #include <$ac_header>
11235 _ACEOF
11236 rm -f conftest.$ac_objext
11237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11238 (eval $ac_compile) 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } &&
11245 { ac_try='test -z "$ac_c_werror_flag"
11246 || test ! -s conftest.err'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; } &&
11252 { ac_try='test -s conftest.$ac_objext'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
11258 ac_header_compiler=yes
11259 else
11260 echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.$ac_ext >&5
11262
11263 ac_header_compiler=no
11264 fi
11265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11267 echo "${ECHO_T}$ac_header_compiler" >&6
11268
11269 # Is the header present?
11270 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11272 cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h. */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 #include <$ac_header>
11279 _ACEOF
11280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11282 ac_status=$?
11283 grep -v '^ *+' conftest.er1 >conftest.err
11284 rm -f conftest.er1
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } >/dev/null; then
11288 if test -s conftest.err; then
11289 ac_cpp_err=$ac_c_preproc_warn_flag
11290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11291 else
11292 ac_cpp_err=
11293 fi
11294 else
11295 ac_cpp_err=yes
11296 fi
11297 if test -z "$ac_cpp_err"; then
11298 ac_header_preproc=yes
11299 else
11300 echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11302
11303 ac_header_preproc=no
11304 fi
11305 rm -f conftest.err conftest.$ac_ext
11306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11307 echo "${ECHO_T}$ac_header_preproc" >&6
11308
11309 # So? What about this header?
11310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11311 yes:no: )
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11315 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11316 ac_header_preproc=yes
11317 ;;
11318 no:yes:* )
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11324 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11326 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11330 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11331 (
11332 cat <<\_ASBOX
11333 ## ------------------------------------------ ##
11334 ## Report this to the AC_PACKAGE_NAME lists. ##
11335 ## ------------------------------------------ ##
11336 _ASBOX
11337 ) |
11338 sed "s/^/$as_me: WARNING: /" >&2
11339 ;;
11340 esac
11341 echo "$as_me:$LINENO: checking for $ac_header" >&5
11342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346 eval "$as_ac_Header=\$ac_header_preproc"
11347 fi
11348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11350
11351 fi
11352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11353 cat >>confdefs.h <<_ACEOF
11354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11355 _ACEOF
11356
11357 fi
11358
11359 done
11360
11361
11362
11363 for ac_header in sys/reg.h sys/debugreg.h
11364 do
11365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11367 echo "$as_me:$LINENO: checking for $ac_header" >&5
11368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 fi
11372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11374 else
11375 # Is the header compilable?
11376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11378 cat >conftest.$ac_ext <<_ACEOF
11379 /* confdefs.h. */
11380 _ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 $ac_includes_default
11385 #include <$ac_header>
11386 _ACEOF
11387 rm -f conftest.$ac_objext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11389 (eval $ac_compile) 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } &&
11396 { ac_try='test -z "$ac_c_werror_flag"
11397 || test ! -s conftest.err'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11400 ac_status=$?
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; } &&
11403 { ac_try='test -s conftest.$ac_objext'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 ac_header_compiler=yes
11410 else
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11413
11414 ac_header_compiler=no
11415 fi
11416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11418 echo "${ECHO_T}$ac_header_compiler" >&6
11419
11420 # Is the header present?
11421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11423 cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h. */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 #include <$ac_header>
11430 _ACEOF
11431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } >/dev/null; then
11439 if test -s conftest.err; then
11440 ac_cpp_err=$ac_c_preproc_warn_flag
11441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11442 else
11443 ac_cpp_err=
11444 fi
11445 else
11446 ac_cpp_err=yes
11447 fi
11448 if test -z "$ac_cpp_err"; then
11449 ac_header_preproc=yes
11450 else
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11453
11454 ac_header_preproc=no
11455 fi
11456 rm -f conftest.err conftest.$ac_ext
11457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458 echo "${ECHO_T}$ac_header_preproc" >&6
11459
11460 # So? What about this header?
11461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11462 yes:no: )
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11467 ac_header_preproc=yes
11468 ;;
11469 no:yes:* )
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11482 (
11483 cat <<\_ASBOX
11484 ## ------------------------------------------ ##
11485 ## Report this to the AC_PACKAGE_NAME lists. ##
11486 ## ------------------------------------------ ##
11487 _ASBOX
11488 ) |
11489 sed "s/^/$as_me: WARNING: /" >&2
11490 ;;
11491 esac
11492 echo "$as_me:$LINENO: checking for $ac_header" >&5
11493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497 eval "$as_ac_Header=\$ac_header_preproc"
11498 fi
11499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11501
11502 fi
11503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11504 cat >>confdefs.h <<_ACEOF
11505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11506 _ACEOF
11507
11508 fi
11509
11510 done
11511
11512
11513 for ac_header in sys/select.h
11514 do
11515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11517 echo "$as_me:$LINENO: checking for $ac_header" >&5
11518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 fi
11522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11524 else
11525 # Is the header compilable?
11526 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h. */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 $ac_includes_default
11535 #include <$ac_header>
11536 _ACEOF
11537 rm -f conftest.$ac_objext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539 (eval $ac_compile) 2>conftest.er1
11540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -z "$ac_c_werror_flag"
11547 || test ! -s conftest.err'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; } &&
11553 { ac_try='test -s conftest.$ac_objext'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 ac_header_compiler=yes
11560 else
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11563
11564 ac_header_compiler=no
11565 fi
11566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11568 echo "${ECHO_T}$ac_header_compiler" >&6
11569
11570 # Is the header present?
11571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 #include <$ac_header>
11580 _ACEOF
11581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } >/dev/null; then
11589 if test -s conftest.err; then
11590 ac_cpp_err=$ac_c_preproc_warn_flag
11591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11592 else
11593 ac_cpp_err=
11594 fi
11595 else
11596 ac_cpp_err=yes
11597 fi
11598 if test -z "$ac_cpp_err"; then
11599 ac_header_preproc=yes
11600 else
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11603
11604 ac_header_preproc=no
11605 fi
11606 rm -f conftest.err conftest.$ac_ext
11607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608 echo "${ECHO_T}$ac_header_preproc" >&6
11609
11610 # So? What about this header?
11611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612 yes:no: )
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617 ac_header_preproc=yes
11618 ;;
11619 no:yes:* )
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11632 (
11633 cat <<\_ASBOX
11634 ## ------------------------------------------ ##
11635 ## Report this to the AC_PACKAGE_NAME lists. ##
11636 ## ------------------------------------------ ##
11637 _ASBOX
11638 ) |
11639 sed "s/^/$as_me: WARNING: /" >&2
11640 ;;
11641 esac
11642 echo "$as_me:$LINENO: checking for $ac_header" >&5
11643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647 eval "$as_ac_Header=\$ac_header_preproc"
11648 fi
11649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11651
11652 fi
11653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11654 cat >>confdefs.h <<_ACEOF
11655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11656 _ACEOF
11657
11658 fi
11659
11660 done
11661
11662
11663 for ac_header in sys/syscall.h
11664 do
11665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11667 echo "$as_me:$LINENO: checking for $ac_header" >&5
11668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 fi
11672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11674 else
11675 # Is the header compilable?
11676 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11678 cat >conftest.$ac_ext <<_ACEOF
11679 /* confdefs.h. */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 $ac_includes_default
11685 #include <$ac_header>
11686 _ACEOF
11687 rm -f conftest.$ac_objext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11689 (eval $ac_compile) 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -z "$ac_c_werror_flag"
11697 || test ! -s conftest.err'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest.$ac_objext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 ac_header_compiler=yes
11710 else
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11713
11714 ac_header_compiler=no
11715 fi
11716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11718 echo "${ECHO_T}$ac_header_compiler" >&6
11719
11720 # Is the header present?
11721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11723 cat >conftest.$ac_ext <<_ACEOF
11724 /* confdefs.h. */
11725 _ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11729 #include <$ac_header>
11730 _ACEOF
11731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } >/dev/null; then
11739 if test -s conftest.err; then
11740 ac_cpp_err=$ac_c_preproc_warn_flag
11741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11742 else
11743 ac_cpp_err=
11744 fi
11745 else
11746 ac_cpp_err=yes
11747 fi
11748 if test -z "$ac_cpp_err"; then
11749 ac_header_preproc=yes
11750 else
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11753
11754 ac_header_preproc=no
11755 fi
11756 rm -f conftest.err conftest.$ac_ext
11757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11758 echo "${ECHO_T}$ac_header_preproc" >&6
11759
11760 # So? What about this header?
11761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11762 yes:no: )
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11767 ac_header_preproc=yes
11768 ;;
11769 no:yes:* )
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11782 (
11783 cat <<\_ASBOX
11784 ## ------------------------------------------ ##
11785 ## Report this to the AC_PACKAGE_NAME lists. ##
11786 ## ------------------------------------------ ##
11787 _ASBOX
11788 ) |
11789 sed "s/^/$as_me: WARNING: /" >&2
11790 ;;
11791 esac
11792 echo "$as_me:$LINENO: checking for $ac_header" >&5
11793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797 eval "$as_ac_Header=\$ac_header_preproc"
11798 fi
11799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11801
11802 fi
11803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11804 cat >>confdefs.h <<_ACEOF
11805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11806 _ACEOF
11807
11808 fi
11809
11810 done
11811
11812
11813 for ac_header in sys/types.h
11814 do
11815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11817 echo "$as_me:$LINENO: checking for $ac_header" >&5
11818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 fi
11822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11824 else
11825 # Is the header compilable?
11826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h. */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 $ac_includes_default
11835 #include <$ac_header>
11836 _ACEOF
11837 rm -f conftest.$ac_objext
11838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11839 (eval $ac_compile) 2>conftest.er1
11840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try='test -z "$ac_c_werror_flag"
11847 || test ! -s conftest.err'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; } &&
11853 { ac_try='test -s conftest.$ac_objext'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 ac_header_compiler=yes
11860 else
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11863
11864 ac_header_compiler=no
11865 fi
11866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11867 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11868 echo "${ECHO_T}$ac_header_compiler" >&6
11869
11870 # Is the header present?
11871 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h. */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 #include <$ac_header>
11880 _ACEOF
11881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11883 ac_status=$?
11884 grep -v '^ *+' conftest.er1 >conftest.err
11885 rm -f conftest.er1
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } >/dev/null; then
11889 if test -s conftest.err; then
11890 ac_cpp_err=$ac_c_preproc_warn_flag
11891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11892 else
11893 ac_cpp_err=
11894 fi
11895 else
11896 ac_cpp_err=yes
11897 fi
11898 if test -z "$ac_cpp_err"; then
11899 ac_header_preproc=yes
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904 ac_header_preproc=no
11905 fi
11906 rm -f conftest.err conftest.$ac_ext
11907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11908 echo "${ECHO_T}$ac_header_preproc" >&6
11909
11910 # So? What about this header?
11911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11912 yes:no: )
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11917 ac_header_preproc=yes
11918 ;;
11919 no:yes:* )
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11932 (
11933 cat <<\_ASBOX
11934 ## ------------------------------------------ ##
11935 ## Report this to the AC_PACKAGE_NAME lists. ##
11936 ## ------------------------------------------ ##
11937 _ASBOX
11938 ) |
11939 sed "s/^/$as_me: WARNING: /" >&2
11940 ;;
11941 esac
11942 echo "$as_me:$LINENO: checking for $ac_header" >&5
11943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947 eval "$as_ac_Header=\$ac_header_preproc"
11948 fi
11949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11951
11952 fi
11953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11954 cat >>confdefs.h <<_ACEOF
11955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956 _ACEOF
11957
11958 fi
11959
11960 done
11961
11962
11963 for ac_header in sys/user.h
11964 do
11965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11966 echo "$as_me:$LINENO: checking for $ac_header" >&5
11967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971 cat >conftest.$ac_ext <<_ACEOF
11972 /* confdefs.h. */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11977 #if HAVE_SYS_PARAM_H
11978 # include <sys/param.h>
11979 #endif
11980
11981
11982 #include <$ac_header>
11983 _ACEOF
11984 rm -f conftest.$ac_objext
11985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11986 (eval $ac_compile) 2>conftest.er1
11987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -z "$ac_c_werror_flag"
11994 || test ! -s conftest.err'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try='test -s conftest.$ac_objext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12006 eval "$as_ac_Header=yes"
12007 else
12008 echo "$as_me: failed program was:" >&5
12009 sed 's/^/| /' conftest.$ac_ext >&5
12010
12011 eval "$as_ac_Header=no"
12012 fi
12013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12014 fi
12015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12020 _ACEOF
12021
12022 fi
12023
12024 done
12025
12026
12027
12028 for ac_header in sys/wait.h wait.h
12029 do
12030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12032 echo "$as_me:$LINENO: checking for $ac_header" >&5
12033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 fi
12037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12039 else
12040 # Is the header compilable?
12041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12043 cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h. */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 $ac_includes_default
12050 #include <$ac_header>
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054 (eval $ac_compile) 2>conftest.er1
12055 ac_status=$?
12056 grep -v '^ *+' conftest.er1 >conftest.err
12057 rm -f conftest.er1
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
12061 { ac_try='test -z "$ac_c_werror_flag"
12062 || test ! -s conftest.err'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; } &&
12068 { ac_try='test -s conftest.$ac_objext'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12071 ac_status=$?
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; }; then
12074 ac_header_compiler=yes
12075 else
12076 echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12078
12079 ac_header_compiler=no
12080 fi
12081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12083 echo "${ECHO_T}$ac_header_compiler" >&6
12084
12085 # Is the header present?
12086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <$ac_header>
12095 _ACEOF
12096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } >/dev/null; then
12104 if test -s conftest.err; then
12105 ac_cpp_err=$ac_c_preproc_warn_flag
12106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12107 else
12108 ac_cpp_err=
12109 fi
12110 else
12111 ac_cpp_err=yes
12112 fi
12113 if test -z "$ac_cpp_err"; then
12114 ac_header_preproc=yes
12115 else
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12118
12119 ac_header_preproc=no
12120 fi
12121 rm -f conftest.err conftest.$ac_ext
12122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12123 echo "${ECHO_T}$ac_header_preproc" >&6
12124
12125 # So? What about this header?
12126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12127 yes:no: )
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12132 ac_header_preproc=yes
12133 ;;
12134 no:yes:* )
12135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12147 (
12148 cat <<\_ASBOX
12149 ## ------------------------------------------ ##
12150 ## Report this to the AC_PACKAGE_NAME lists. ##
12151 ## ------------------------------------------ ##
12152 _ASBOX
12153 ) |
12154 sed "s/^/$as_me: WARNING: /" >&2
12155 ;;
12156 esac
12157 echo "$as_me:$LINENO: checking for $ac_header" >&5
12158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 else
12162 eval "$as_ac_Header=\$ac_header_preproc"
12163 fi
12164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12166
12167 fi
12168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12169 cat >>confdefs.h <<_ACEOF
12170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12171 _ACEOF
12172
12173 fi
12174
12175 done
12176
12177
12178
12179
12180 for ac_header in termios.h termio.h sgtty.h
12181 do
12182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12184 echo "$as_me:$LINENO: checking for $ac_header" >&5
12185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 fi
12189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12191 else
12192 # Is the header compilable?
12193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12195 cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h. */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12201 $ac_includes_default
12202 #include <$ac_header>
12203 _ACEOF
12204 rm -f conftest.$ac_objext
12205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12206 (eval $ac_compile) 2>conftest.er1
12207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try='test -z "$ac_c_werror_flag"
12214 || test ! -s conftest.err'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest.$ac_objext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_header_compiler=yes
12227 else
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 ac_header_compiler=no
12232 fi
12233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12235 echo "${ECHO_T}$ac_header_compiler" >&6
12236
12237 # Is the header present?
12238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12240 cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h. */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246 #include <$ac_header>
12247 _ACEOF
12248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } >/dev/null; then
12256 if test -s conftest.err; then
12257 ac_cpp_err=$ac_c_preproc_warn_flag
12258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12259 else
12260 ac_cpp_err=
12261 fi
12262 else
12263 ac_cpp_err=yes
12264 fi
12265 if test -z "$ac_cpp_err"; then
12266 ac_header_preproc=yes
12267 else
12268 echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 ac_header_preproc=no
12272 fi
12273 rm -f conftest.err conftest.$ac_ext
12274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12275 echo "${ECHO_T}$ac_header_preproc" >&6
12276
12277 # So? What about this header?
12278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12279 yes:no: )
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12284 ac_header_preproc=yes
12285 ;;
12286 no:yes:* )
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12299 (
12300 cat <<\_ASBOX
12301 ## ------------------------------------------ ##
12302 ## Report this to the AC_PACKAGE_NAME lists. ##
12303 ## ------------------------------------------ ##
12304 _ASBOX
12305 ) |
12306 sed "s/^/$as_me: WARNING: /" >&2
12307 ;;
12308 esac
12309 echo "$as_me:$LINENO: checking for $ac_header" >&5
12310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314 eval "$as_ac_Header=\$ac_header_preproc"
12315 fi
12316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12318
12319 fi
12320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12321 cat >>confdefs.h <<_ACEOF
12322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12323 _ACEOF
12324
12325 fi
12326
12327 done
12328
12329
12330 for ac_header in unistd.h
12331 do
12332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12334 echo "$as_me:$LINENO: checking for $ac_header" >&5
12335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 fi
12339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12341 else
12342 # Is the header compilable?
12343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12345 cat >conftest.$ac_ext <<_ACEOF
12346 /* confdefs.h. */
12347 _ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h. */
12351 $ac_includes_default
12352 #include <$ac_header>
12353 _ACEOF
12354 rm -f conftest.$ac_objext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12356 (eval $ac_compile) 2>conftest.er1
12357 ac_status=$?
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -z "$ac_c_werror_flag"
12364 || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest.$ac_objext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_header_compiler=yes
12377 else
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381 ac_header_compiler=no
12382 fi
12383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12385 echo "${ECHO_T}$ac_header_compiler" >&6
12386
12387 # Is the header present?
12388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12390 cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h. */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396 #include <$ac_header>
12397 _ACEOF
12398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12400 ac_status=$?
12401 grep -v '^ *+' conftest.er1 >conftest.err
12402 rm -f conftest.er1
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } >/dev/null; then
12406 if test -s conftest.err; then
12407 ac_cpp_err=$ac_c_preproc_warn_flag
12408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12409 else
12410 ac_cpp_err=
12411 fi
12412 else
12413 ac_cpp_err=yes
12414 fi
12415 if test -z "$ac_cpp_err"; then
12416 ac_header_preproc=yes
12417 else
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421 ac_header_preproc=no
12422 fi
12423 rm -f conftest.err conftest.$ac_ext
12424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12425 echo "${ECHO_T}$ac_header_preproc" >&6
12426
12427 # So? What about this header?
12428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12429 yes:no: )
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12434 ac_header_preproc=yes
12435 ;;
12436 no:yes:* )
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12449 (
12450 cat <<\_ASBOX
12451 ## ------------------------------------------ ##
12452 ## Report this to the AC_PACKAGE_NAME lists. ##
12453 ## ------------------------------------------ ##
12454 _ASBOX
12455 ) |
12456 sed "s/^/$as_me: WARNING: /" >&2
12457 ;;
12458 esac
12459 echo "$as_me:$LINENO: checking for $ac_header" >&5
12460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464 eval "$as_ac_Header=\$ac_header_preproc"
12465 fi
12466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12468
12469 fi
12470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12471 cat >>confdefs.h <<_ACEOF
12472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12473 _ACEOF
12474
12475 fi
12476
12477 done
12478
12479
12480 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12481 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12482 # think that we don't have <curses.h> if we're using GCC.
12483 case $host_os in
12484 solaris2.[789])
12485 if test "$GCC" = yes; then
12486
12487 cat >>confdefs.h <<\_ACEOF
12488 #define _MSE_INT_H 1
12489 _ACEOF
12490
12491 fi ;;
12492 esac
12493
12494
12495
12496
12497 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12498 do
12499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12501 echo "$as_me:$LINENO: checking for $ac_header" >&5
12502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 fi
12506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12508 else
12509 # Is the header compilable?
12510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 $ac_includes_default
12519 #include <$ac_header>
12520 _ACEOF
12521 rm -f conftest.$ac_objext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12523 (eval $ac_compile) 2>conftest.er1
12524 ac_status=$?
12525 grep -v '^ *+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag"
12531 || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest.$ac_objext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 ac_header_compiler=yes
12544 else
12545 echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548 ac_header_compiler=no
12549 fi
12550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12552 echo "${ECHO_T}$ac_header_compiler" >&6
12553
12554 # Is the header present?
12555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12557 cat >conftest.$ac_ext <<_ACEOF
12558 /* confdefs.h. */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12563 #include <$ac_header>
12564 _ACEOF
12565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } >/dev/null; then
12573 if test -s conftest.err; then
12574 ac_cpp_err=$ac_c_preproc_warn_flag
12575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12576 else
12577 ac_cpp_err=
12578 fi
12579 else
12580 ac_cpp_err=yes
12581 fi
12582 if test -z "$ac_cpp_err"; then
12583 ac_header_preproc=yes
12584 else
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12587
12588 ac_header_preproc=no
12589 fi
12590 rm -f conftest.err conftest.$ac_ext
12591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12592 echo "${ECHO_T}$ac_header_preproc" >&6
12593
12594 # So? What about this header?
12595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12596 yes:no: )
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12601 ac_header_preproc=yes
12602 ;;
12603 no:yes:* )
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12616 (
12617 cat <<\_ASBOX
12618 ## ------------------------------------------ ##
12619 ## Report this to the AC_PACKAGE_NAME lists. ##
12620 ## ------------------------------------------ ##
12621 _ASBOX
12622 ) |
12623 sed "s/^/$as_me: WARNING: /" >&2
12624 ;;
12625 esac
12626 echo "$as_me:$LINENO: checking for $ac_header" >&5
12627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
12630 else
12631 eval "$as_ac_Header=\$ac_header_preproc"
12632 fi
12633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12635
12636 fi
12637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12638 cat >>confdefs.h <<_ACEOF
12639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12640 _ACEOF
12641
12642 fi
12643
12644 done
12645
12646
12647 for ac_header in ncurses/term.h
12648 do
12649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12651 echo "$as_me:$LINENO: checking for $ac_header" >&5
12652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 fi
12656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12658 else
12659 # Is the header compilable?
12660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12662 cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h. */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 $ac_includes_default
12669 #include <$ac_header>
12670 _ACEOF
12671 rm -f conftest.$ac_objext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673 (eval $ac_compile) 2>conftest.er1
12674 ac_status=$?
12675 grep -v '^ *+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try='test -z "$ac_c_werror_flag"
12681 || test ! -s conftest.err'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; } &&
12687 { ac_try='test -s conftest.$ac_objext'
12688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689 (eval $ac_try) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; }; then
12693 ac_header_compiler=yes
12694 else
12695 echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12697
12698 ac_header_compiler=no
12699 fi
12700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12702 echo "${ECHO_T}$ac_header_compiler" >&6
12703
12704 # Is the header present?
12705 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12707 cat >conftest.$ac_ext <<_ACEOF
12708 /* confdefs.h. */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713 #include <$ac_header>
12714 _ACEOF
12715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } >/dev/null; then
12723 if test -s conftest.err; then
12724 ac_cpp_err=$ac_c_preproc_warn_flag
12725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12726 else
12727 ac_cpp_err=
12728 fi
12729 else
12730 ac_cpp_err=yes
12731 fi
12732 if test -z "$ac_cpp_err"; then
12733 ac_header_preproc=yes
12734 else
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 ac_header_preproc=no
12739 fi
12740 rm -f conftest.err conftest.$ac_ext
12741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12742 echo "${ECHO_T}$ac_header_preproc" >&6
12743
12744 # So? What about this header?
12745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12746 yes:no: )
12747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12751 ac_header_preproc=yes
12752 ;;
12753 no:yes:* )
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12766 (
12767 cat <<\_ASBOX
12768 ## ------------------------------------------ ##
12769 ## Report this to the AC_PACKAGE_NAME lists. ##
12770 ## ------------------------------------------ ##
12771 _ASBOX
12772 ) |
12773 sed "s/^/$as_me: WARNING: /" >&2
12774 ;;
12775 esac
12776 echo "$as_me:$LINENO: checking for $ac_header" >&5
12777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781 eval "$as_ac_Header=\$ac_header_preproc"
12782 fi
12783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12785
12786 fi
12787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12788 cat >>confdefs.h <<_ACEOF
12789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12790 _ACEOF
12791
12792 fi
12793
12794 done
12795
12796
12797 for ac_header in term.h
12798 do
12799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12800 echo "$as_me:$LINENO: checking for $ac_header" >&5
12801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805 cat >conftest.$ac_ext <<_ACEOF
12806 /* confdefs.h. */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12811 #if HAVE_CURSES_H
12812 # include <curses.h>
12813 #endif
12814
12815
12816 #include <$ac_header>
12817 _ACEOF
12818 rm -f conftest.$ac_objext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -z "$ac_c_werror_flag"
12828 || test ! -s conftest.err'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; } &&
12834 { ac_try='test -s conftest.$ac_objext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 eval "$as_ac_Header=yes"
12841 else
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12844
12845 eval "$as_ac_Header=no"
12846 fi
12847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12848 fi
12849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12852 cat >>confdefs.h <<_ACEOF
12853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12854 _ACEOF
12855
12856 fi
12857
12858 done
12859
12860
12861 # FIXME: kettenis/20030102: In most cases we include these
12862 # unconditionally, so what's the point in checking these?
12863
12864
12865 for ac_header in ctype.h time.h
12866 do
12867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12869 echo "$as_me:$LINENO: checking for $ac_header" >&5
12870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
12873 fi
12874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12876 else
12877 # Is the header compilable?
12878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 $ac_includes_default
12887 #include <$ac_header>
12888 _ACEOF
12889 rm -f conftest.$ac_objext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891 (eval $ac_compile) 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -z "$ac_c_werror_flag"
12899 || test ! -s conftest.err'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try='test -s conftest.$ac_objext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_header_compiler=yes
12912 else
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12915
12916 ac_header_compiler=no
12917 fi
12918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12920 echo "${ECHO_T}$ac_header_compiler" >&6
12921
12922 # Is the header present?
12923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h. */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 #include <$ac_header>
12932 _ACEOF
12933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } >/dev/null; then
12941 if test -s conftest.err; then
12942 ac_cpp_err=$ac_c_preproc_warn_flag
12943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12944 else
12945 ac_cpp_err=
12946 fi
12947 else
12948 ac_cpp_err=yes
12949 fi
12950 if test -z "$ac_cpp_err"; then
12951 ac_header_preproc=yes
12952 else
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956 ac_header_preproc=no
12957 fi
12958 rm -f conftest.err conftest.$ac_ext
12959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12960 echo "${ECHO_T}$ac_header_preproc" >&6
12961
12962 # So? What about this header?
12963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12964 yes:no: )
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12969 ac_header_preproc=yes
12970 ;;
12971 no:yes:* )
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12984 (
12985 cat <<\_ASBOX
12986 ## ------------------------------------------ ##
12987 ## Report this to the AC_PACKAGE_NAME lists. ##
12988 ## ------------------------------------------ ##
12989 _ASBOX
12990 ) |
12991 sed "s/^/$as_me: WARNING: /" >&2
12992 ;;
12993 esac
12994 echo "$as_me:$LINENO: checking for $ac_header" >&5
12995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999 eval "$as_ac_Header=\$ac_header_preproc"
13000 fi
13001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13003
13004 fi
13005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13006 cat >>confdefs.h <<_ACEOF
13007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13008 _ACEOF
13009
13010 fi
13011
13012 done
13013
13014
13015 # ------------------------- #
13016 # Checks for declarations. #
13017 # ------------------------- #
13018
13019 echo "$as_me:$LINENO: checking whether free is declared" >&5
13020 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13021 if test "${ac_cv_have_decl_free+set}" = set; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 else
13024 cat >conftest.$ac_ext <<_ACEOF
13025 /* confdefs.h. */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13030 $ac_includes_default
13031 int
13032 main ()
13033 {
13034 #ifndef free
13035 char *p = (char *) free;
13036 #endif
13037
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_have_decl_free=yes
13065 else
13066 echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13068
13069 ac_cv_have_decl_free=no
13070 fi
13071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13072 fi
13073 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13074 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13075 if test $ac_cv_have_decl_free = yes; then
13076
13077 cat >>confdefs.h <<_ACEOF
13078 #define HAVE_DECL_FREE 1
13079 _ACEOF
13080
13081
13082 else
13083 cat >>confdefs.h <<_ACEOF
13084 #define HAVE_DECL_FREE 0
13085 _ACEOF
13086
13087
13088 fi
13089 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13090 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13091 if test "${ac_cv_have_decl_malloc+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 else
13094 cat >conftest.$ac_ext <<_ACEOF
13095 /* confdefs.h. */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13100 $ac_includes_default
13101 int
13102 main ()
13103 {
13104 #ifndef malloc
13105 char *p = (char *) malloc;
13106 #endif
13107
13108 ;
13109 return 0;
13110 }
13111 _ACEOF
13112 rm -f conftest.$ac_objext
13113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13114 (eval $ac_compile) 2>conftest.er1
13115 ac_status=$?
13116 grep -v '^ *+' conftest.er1 >conftest.err
13117 rm -f conftest.er1
13118 cat conftest.err >&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -z "$ac_c_werror_flag"
13122 || test ! -s conftest.err'
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); }; } &&
13128 { ac_try='test -s conftest.$ac_objext'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
13134 ac_cv_have_decl_malloc=yes
13135 else
13136 echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13138
13139 ac_cv_have_decl_malloc=no
13140 fi
13141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13142 fi
13143 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13144 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13145 if test $ac_cv_have_decl_malloc = yes; then
13146
13147 cat >>confdefs.h <<_ACEOF
13148 #define HAVE_DECL_MALLOC 1
13149 _ACEOF
13150
13151
13152 else
13153 cat >>confdefs.h <<_ACEOF
13154 #define HAVE_DECL_MALLOC 0
13155 _ACEOF
13156
13157
13158 fi
13159 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13160 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13161 if test "${ac_cv_have_decl_realloc+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 else
13164 cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h. */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13170 $ac_includes_default
13171 int
13172 main ()
13173 {
13174 #ifndef realloc
13175 char *p = (char *) realloc;
13176 #endif
13177
13178 ;
13179 return 0;
13180 }
13181 _ACEOF
13182 rm -f conftest.$ac_objext
13183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>conftest.er1
13185 ac_status=$?
13186 grep -v '^ *+' conftest.er1 >conftest.err
13187 rm -f conftest.er1
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_c_werror_flag"
13192 || test ! -s conftest.err'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest.$ac_objext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13204 ac_cv_have_decl_realloc=yes
13205 else
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13208
13209 ac_cv_have_decl_realloc=no
13210 fi
13211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13212 fi
13213 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13214 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13215 if test $ac_cv_have_decl_realloc = yes; then
13216
13217 cat >>confdefs.h <<_ACEOF
13218 #define HAVE_DECL_REALLOC 1
13219 _ACEOF
13220
13221
13222 else
13223 cat >>confdefs.h <<_ACEOF
13224 #define HAVE_DECL_REALLOC 0
13225 _ACEOF
13226
13227
13228 fi
13229
13230
13231 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13232 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13233 if test "${ac_cv_have_decl_strerror+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 $ac_includes_default
13243 int
13244 main ()
13245 {
13246 #ifndef strerror
13247 char *p = (char *) strerror;
13248 #endif
13249
13250 ;
13251 return 0;
13252 }
13253 _ACEOF
13254 rm -f conftest.$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 (eval $ac_compile) 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -z "$ac_c_werror_flag"
13264 || test ! -s conftest.err'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; } &&
13270 { ac_try='test -s conftest.$ac_objext'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13276 ac_cv_have_decl_strerror=yes
13277 else
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13280
13281 ac_cv_have_decl_strerror=no
13282 fi
13283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13284 fi
13285 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13286 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13287 if test $ac_cv_have_decl_strerror = yes; then
13288
13289 cat >>confdefs.h <<_ACEOF
13290 #define HAVE_DECL_STRERROR 1
13291 _ACEOF
13292
13293
13294 else
13295 cat >>confdefs.h <<_ACEOF
13296 #define HAVE_DECL_STRERROR 0
13297 _ACEOF
13298
13299
13300 fi
13301 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13302 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13303 if test "${ac_cv_have_decl_strstr+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 else
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h. */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 $ac_includes_default
13313 int
13314 main ()
13315 {
13316 #ifndef strstr
13317 char *p = (char *) strstr;
13318 #endif
13319
13320 ;
13321 return 0;
13322 }
13323 _ACEOF
13324 rm -f conftest.$ac_objext
13325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13326 (eval $ac_compile) 2>conftest.er1
13327 ac_status=$?
13328 grep -v '^ *+' conftest.er1 >conftest.err
13329 rm -f conftest.er1
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try='test -z "$ac_c_werror_flag"
13334 || test ! -s conftest.err'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; } &&
13340 { ac_try='test -s conftest.$ac_objext'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 ac_cv_have_decl_strstr=yes
13347 else
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13350
13351 ac_cv_have_decl_strstr=no
13352 fi
13353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13354 fi
13355 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13356 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13357 if test $ac_cv_have_decl_strstr = yes; then
13358
13359 cat >>confdefs.h <<_ACEOF
13360 #define HAVE_DECL_STRSTR 1
13361 _ACEOF
13362
13363
13364 else
13365 cat >>confdefs.h <<_ACEOF
13366 #define HAVE_DECL_STRSTR 0
13367 _ACEOF
13368
13369
13370 fi
13371
13372
13373 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13374 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13375 if test "${ac_cv_have_decl_getopt+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378 cat >conftest.$ac_ext <<_ACEOF
13379 /* confdefs.h. */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13384 $ac_includes_default
13385 int
13386 main ()
13387 {
13388 #ifndef getopt
13389 char *p = (char *) getopt;
13390 #endif
13391
13392 ;
13393 return 0;
13394 }
13395 _ACEOF
13396 rm -f conftest.$ac_objext
13397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398 (eval $ac_compile) 2>conftest.er1
13399 ac_status=$?
13400 grep -v '^ *+' conftest.er1 >conftest.err
13401 rm -f conftest.er1
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
13405 { ac_try='test -z "$ac_c_werror_flag"
13406 || test ! -s conftest.err'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest.$ac_objext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_cv_have_decl_getopt=yes
13419 else
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13422
13423 ac_cv_have_decl_getopt=no
13424 fi
13425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13426 fi
13427 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13428 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13429 if test $ac_cv_have_decl_getopt = yes; then
13430
13431 cat >>confdefs.h <<_ACEOF
13432 #define HAVE_DECL_GETOPT 1
13433 _ACEOF
13434
13435
13436 else
13437 cat >>confdefs.h <<_ACEOF
13438 #define HAVE_DECL_GETOPT 0
13439 _ACEOF
13440
13441
13442 fi
13443
13444
13445
13446 # ----------------------- #
13447 # Checks for structures. #
13448 # ----------------------- #
13449
13450 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13451 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13452 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 else
13455 cat >conftest.$ac_ext <<_ACEOF
13456 /* confdefs.h. */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13461 $ac_includes_default
13462 int
13463 main ()
13464 {
13465 static struct stat ac_aggr;
13466 if (ac_aggr.st_blocks)
13467 return 0;
13468 ;
13469 return 0;
13470 }
13471 _ACEOF
13472 rm -f conftest.$ac_objext
13473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13474 (eval $ac_compile) 2>conftest.er1
13475 ac_status=$?
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } &&
13481 { ac_try='test -z "$ac_c_werror_flag"
13482 || test ! -s conftest.err'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest.$ac_objext'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 ac_cv_member_struct_stat_st_blocks=yes
13495 else
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13498
13499 cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h. */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13505 $ac_includes_default
13506 int
13507 main ()
13508 {
13509 static struct stat ac_aggr;
13510 if (sizeof ac_aggr.st_blocks)
13511 return 0;
13512 ;
13513 return 0;
13514 }
13515 _ACEOF
13516 rm -f conftest.$ac_objext
13517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13518 (eval $ac_compile) 2>conftest.er1
13519 ac_status=$?
13520 grep -v '^ *+' conftest.er1 >conftest.err
13521 rm -f conftest.er1
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } &&
13525 { ac_try='test -z "$ac_c_werror_flag"
13526 || test ! -s conftest.err'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13529 ac_status=$?
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; } &&
13532 { ac_try='test -s conftest.$ac_objext'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 ac_cv_member_struct_stat_st_blocks=yes
13539 else
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543 ac_cv_member_struct_stat_st_blocks=no
13544 fi
13545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13546 fi
13547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13548 fi
13549 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13550 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13551 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13552
13553 cat >>confdefs.h <<_ACEOF
13554 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13555 _ACEOF
13556
13557
13558 fi
13559
13560
13561 # ------------------ #
13562 # Checks for types. #
13563 # ------------------ #
13564
13565 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13566 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13567 if test "${ac_cv_type_signal+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 else
13570 cat >conftest.$ac_ext <<_ACEOF
13571 /* confdefs.h. */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13576 #include <sys/types.h>
13577 #include <signal.h>
13578 #ifdef signal
13579 # undef signal
13580 #endif
13581 #ifdef __cplusplus
13582 extern "C" void (*signal (int, void (*)(int)))(int);
13583 #else
13584 void (*signal ()) ();
13585 #endif
13586
13587 int
13588 main ()
13589 {
13590 int i;
13591 ;
13592 return 0;
13593 }
13594 _ACEOF
13595 rm -f conftest.$ac_objext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13597 (eval $ac_compile) 2>conftest.er1
13598 ac_status=$?
13599 grep -v '^ *+' conftest.er1 >conftest.err
13600 rm -f conftest.er1
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -z "$ac_c_werror_flag"
13605 || test ! -s conftest.err'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest.$ac_objext'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
13617 ac_cv_type_signal=void
13618 else
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13621
13622 ac_cv_type_signal=int
13623 fi
13624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13625 fi
13626 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13627 echo "${ECHO_T}$ac_cv_type_signal" >&6
13628
13629 cat >>confdefs.h <<_ACEOF
13630 #define RETSIGTYPE $ac_cv_type_signal
13631 _ACEOF
13632
13633
13634
13635 # ------------------------------------- #
13636 # Checks for compiler characteristics. #
13637 # ------------------------------------- #
13638
13639 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13640 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13641 if test "${ac_cv_c_const+set}" = set; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 else
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h. */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650
13651 int
13652 main ()
13653 {
13654 /* FIXME: Include the comments suggested by Paul. */
13655 #ifndef __cplusplus
13656 /* Ultrix mips cc rejects this. */
13657 typedef int charset[2];
13658 const charset x;
13659 /* SunOS 4.1.1 cc rejects this. */
13660 char const *const *ccp;
13661 char **p;
13662 /* NEC SVR4.0.2 mips cc rejects this. */
13663 struct point {int x, y;};
13664 static struct point const zero = {0,0};
13665 /* AIX XL C 1.02.0.0 rejects this.
13666 It does not let you subtract one const X* pointer from another in
13667 an arm of an if-expression whose if-part is not a constant
13668 expression */
13669 const char *g = "string";
13670 ccp = &g + (g ? g-g : 0);
13671 /* HPUX 7.0 cc rejects these. */
13672 ++ccp;
13673 p = (char**) ccp;
13674 ccp = (char const *const *) p;
13675 { /* SCO 3.2v4 cc rejects this. */
13676 char *t;
13677 char const *s = 0 ? (char *) 0 : (char const *) 0;
13678
13679 *t++ = 0;
13680 }
13681 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13682 int x[] = {25, 17};
13683 const int *foo = &x[0];
13684 ++foo;
13685 }
13686 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13687 typedef const int *iptr;
13688 iptr p = 0;
13689 ++p;
13690 }
13691 { /* AIX XL C 1.02.0.0 rejects this saying
13692 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13693 struct s { int j; const int *ap[3]; };
13694 struct s *b; b->j = 5;
13695 }
13696 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13697 const int foo = 10;
13698 }
13699 #endif
13700
13701 ;
13702 return 0;
13703 }
13704 _ACEOF
13705 rm -f conftest.$ac_objext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13707 (eval $ac_compile) 2>conftest.er1
13708 ac_status=$?
13709 grep -v '^ *+' conftest.er1 >conftest.err
13710 rm -f conftest.er1
13711 cat conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } &&
13714 { ac_try='test -z "$ac_c_werror_flag"
13715 || test ! -s conftest.err'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest.$ac_objext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 ac_cv_c_const=yes
13728 else
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13731
13732 ac_cv_c_const=no
13733 fi
13734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13735 fi
13736 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13737 echo "${ECHO_T}$ac_cv_c_const" >&6
13738 if test $ac_cv_c_const = no; then
13739
13740 cat >>confdefs.h <<\_ACEOF
13741 #define const
13742 _ACEOF
13743
13744 fi
13745
13746 echo "$as_me:$LINENO: checking for inline" >&5
13747 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13748 if test "${ac_cv_c_inline+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750 else
13751 ac_cv_c_inline=no
13752 for ac_kw in inline __inline__ __inline; do
13753 cat >conftest.$ac_ext <<_ACEOF
13754 /* confdefs.h. */
13755 _ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 #ifndef __cplusplus
13760 typedef int foo_t;
13761 static $ac_kw foo_t static_foo () {return 0; }
13762 $ac_kw foo_t foo () {return 0; }
13763 #endif
13764
13765 _ACEOF
13766 rm -f conftest.$ac_objext
13767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768 (eval $ac_compile) 2>conftest.er1
13769 ac_status=$?
13770 grep -v '^ *+' conftest.er1 >conftest.err
13771 rm -f conftest.er1
13772 cat conftest.err >&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } &&
13775 { ac_try='test -z "$ac_c_werror_flag"
13776 || test ! -s conftest.err'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13788 ac_cv_c_inline=$ac_kw; break
13789 else
13790 echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13792
13793 fi
13794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13795 done
13796
13797 fi
13798 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13799 echo "${ECHO_T}$ac_cv_c_inline" >&6
13800
13801
13802 case $ac_cv_c_inline in
13803 inline | yes) ;;
13804 *)
13805 case $ac_cv_c_inline in
13806 no) ac_val=;;
13807 *) ac_val=$ac_cv_c_inline;;
13808 esac
13809 cat >>confdefs.h <<_ACEOF
13810 #ifndef __cplusplus
13811 #define inline $ac_val
13812 #endif
13813 _ACEOF
13814 ;;
13815 esac
13816
13817
13818 # ------------------------------ #
13819 # Checks for library functions. #
13820 # ------------------------------ #
13821
13822 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13823 # for constant arguments. Useless!
13824 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13825 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13826 if test "${ac_cv_working_alloca_h+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829 cat >conftest.$ac_ext <<_ACEOF
13830 /* confdefs.h. */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 #include <alloca.h>
13836 int
13837 main ()
13838 {
13839 char *p = (char *) alloca (2 * sizeof (int));
13840 ;
13841 return 0;
13842 }
13843 _ACEOF
13844 rm -f conftest.$ac_objext conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_c_werror_flag"
13854 || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest$ac_exeext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 ac_cv_working_alloca_h=yes
13867 else
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13870
13871 ac_cv_working_alloca_h=no
13872 fi
13873 rm -f conftest.err conftest.$ac_objext \
13874 conftest$ac_exeext conftest.$ac_ext
13875 fi
13876 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13877 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13878 if test $ac_cv_working_alloca_h = yes; then
13879
13880 cat >>confdefs.h <<\_ACEOF
13881 #define HAVE_ALLOCA_H 1
13882 _ACEOF
13883
13884 fi
13885
13886 echo "$as_me:$LINENO: checking for alloca" >&5
13887 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13888 if test "${ac_cv_func_alloca_works+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891 cat >conftest.$ac_ext <<_ACEOF
13892 /* confdefs.h. */
13893 _ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13897 #ifdef __GNUC__
13898 # define alloca __builtin_alloca
13899 #else
13900 # ifdef _MSC_VER
13901 # include <malloc.h>
13902 # define alloca _alloca
13903 # else
13904 # if HAVE_ALLOCA_H
13905 # include <alloca.h>
13906 # else
13907 # ifdef _AIX
13908 #pragma alloca
13909 # else
13910 # ifndef alloca /* predefined by HP cc +Olibcalls */
13911 char *alloca ();
13912 # endif
13913 # endif
13914 # endif
13915 # endif
13916 #endif
13917
13918 int
13919 main ()
13920 {
13921 char *p = (char *) alloca (1);
13922 ;
13923 return 0;
13924 }
13925 _ACEOF
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928 (eval $ac_link) 2>conftest.er1
13929 ac_status=$?
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag"
13936 || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest$ac_exeext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_func_alloca_works=yes
13949 else
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953 ac_cv_func_alloca_works=no
13954 fi
13955 rm -f conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext conftest.$ac_ext
13957 fi
13958 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13959 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13960
13961 if test $ac_cv_func_alloca_works = yes; then
13962
13963 cat >>confdefs.h <<\_ACEOF
13964 #define HAVE_ALLOCA 1
13965 _ACEOF
13966
13967 else
13968 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13969 # that cause trouble. Some versions do not even contain alloca or
13970 # contain a buggy version. If you still want to use their alloca,
13971 # use ar to extract alloca.o from them instead of compiling alloca.c.
13972
13973 ALLOCA=alloca.$ac_objext
13974
13975 cat >>confdefs.h <<\_ACEOF
13976 #define C_ALLOCA 1
13977 _ACEOF
13978
13979
13980 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13981 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13982 if test "${ac_cv_os_cray+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 else
13985 cat >conftest.$ac_ext <<_ACEOF
13986 /* confdefs.h. */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13991 #if defined(CRAY) && ! defined(CRAY2)
13992 webecray
13993 #else
13994 wenotbecray
13995 #endif
13996
13997 _ACEOF
13998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13999 $EGREP "webecray" >/dev/null 2>&1; then
14000 ac_cv_os_cray=yes
14001 else
14002 ac_cv_os_cray=no
14003 fi
14004 rm -f conftest*
14005
14006 fi
14007 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14008 echo "${ECHO_T}$ac_cv_os_cray" >&6
14009 if test $ac_cv_os_cray = yes; then
14010 for ac_func in _getb67 GETB67 getb67; do
14011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14012 echo "$as_me:$LINENO: checking for $ac_func" >&5
14013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14014 if eval "test \"\${$as_ac_var+set}\" = set"; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017 cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h. */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14025 #define $ac_func innocuous_$ac_func
14026
14027 /* System header to define __stub macros and hopefully few prototypes,
14028 which can conflict with char $ac_func (); below.
14029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14030 <limits.h> exists even on freestanding compilers. */
14031
14032 #ifdef __STDC__
14033 # include <limits.h>
14034 #else
14035 # include <assert.h>
14036 #endif
14037
14038 #undef $ac_func
14039
14040 /* Override any gcc2 internal prototype to avoid an error. */
14041 #ifdef __cplusplus
14042 extern "C"
14043 {
14044 #endif
14045 /* We use char because int might match the return type of a gcc2
14046 builtin and then its argument prototype would still apply. */
14047 char $ac_func ();
14048 /* The GNU C library defines this for functions which it implements
14049 to always fail with ENOSYS. Some functions are actually named
14050 something starting with __ and the normal name is an alias. */
14051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14052 choke me
14053 #else
14054 char (*f) () = $ac_func;
14055 #endif
14056 #ifdef __cplusplus
14057 }
14058 #endif
14059
14060 int
14061 main ()
14062 {
14063 return f != $ac_func;
14064 ;
14065 return 0;
14066 }
14067 _ACEOF
14068 rm -f conftest.$ac_objext conftest$ac_exeext
14069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14070 (eval $ac_link) 2>conftest.er1
14071 ac_status=$?
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
14077 { ac_try='test -z "$ac_c_werror_flag"
14078 || test ! -s conftest.err'
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; } &&
14084 { ac_try='test -s conftest$ac_exeext'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14090 eval "$as_ac_var=yes"
14091 else
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14094
14095 eval "$as_ac_var=no"
14096 fi
14097 rm -f conftest.err conftest.$ac_objext \
14098 conftest$ac_exeext conftest.$ac_ext
14099 fi
14100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14102 if test `eval echo '${'$as_ac_var'}'` = yes; then
14103
14104 cat >>confdefs.h <<_ACEOF
14105 #define CRAY_STACKSEG_END $ac_func
14106 _ACEOF
14107
14108 break
14109 fi
14110
14111 done
14112 fi
14113
14114 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14115 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14116 if test "${ac_cv_c_stack_direction+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 else
14119 if test "$cross_compiling" = yes; then
14120 ac_cv_c_stack_direction=0
14121 else
14122 cat >conftest.$ac_ext <<_ACEOF
14123 /* confdefs.h. */
14124 _ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 int
14129 find_stack_direction ()
14130 {
14131 static char *addr = 0;
14132 auto char dummy;
14133 if (addr == 0)
14134 {
14135 addr = &dummy;
14136 return find_stack_direction ();
14137 }
14138 else
14139 return (&dummy > addr) ? 1 : -1;
14140 }
14141
14142 int
14143 main ()
14144 {
14145 exit (find_stack_direction () < 0);
14146 }
14147 _ACEOF
14148 rm -f conftest$ac_exeext
14149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14150 (eval $ac_link) 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 ac_cv_c_stack_direction=1
14160 else
14161 echo "$as_me: program exited with status $ac_status" >&5
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14164
14165 ( exit $ac_status )
14166 ac_cv_c_stack_direction=-1
14167 fi
14168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14169 fi
14170 fi
14171 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14172 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14173
14174 cat >>confdefs.h <<_ACEOF
14175 #define STACK_DIRECTION $ac_cv_c_stack_direction
14176 _ACEOF
14177
14178
14179 fi
14180
14181
14182
14183 for ac_header in stdlib.h unistd.h
14184 do
14185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14187 echo "$as_me:$LINENO: checking for $ac_header" >&5
14188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 fi
14192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14194 else
14195 # Is the header compilable?
14196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14198 cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h. */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14204 $ac_includes_default
14205 #include <$ac_header>
14206 _ACEOF
14207 rm -f conftest.$ac_objext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209 (eval $ac_compile) 2>conftest.er1
14210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -z "$ac_c_werror_flag"
14217 || test ! -s conftest.err'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; } &&
14223 { ac_try='test -s conftest.$ac_objext'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14226 ac_status=$?
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; }; then
14229 ac_header_compiler=yes
14230 else
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14233
14234 ac_header_compiler=no
14235 fi
14236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14238 echo "${ECHO_T}$ac_header_compiler" >&6
14239
14240 # Is the header present?
14241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14243 cat >conftest.$ac_ext <<_ACEOF
14244 /* confdefs.h. */
14245 _ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h. */
14249 #include <$ac_header>
14250 _ACEOF
14251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14253 ac_status=$?
14254 grep -v '^ *+' conftest.er1 >conftest.err
14255 rm -f conftest.er1
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } >/dev/null; then
14259 if test -s conftest.err; then
14260 ac_cpp_err=$ac_c_preproc_warn_flag
14261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14262 else
14263 ac_cpp_err=
14264 fi
14265 else
14266 ac_cpp_err=yes
14267 fi
14268 if test -z "$ac_cpp_err"; then
14269 ac_header_preproc=yes
14270 else
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274 ac_header_preproc=no
14275 fi
14276 rm -f conftest.err conftest.$ac_ext
14277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14278 echo "${ECHO_T}$ac_header_preproc" >&6
14279
14280 # So? What about this header?
14281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14282 yes:no: )
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14287 ac_header_preproc=yes
14288 ;;
14289 no:yes:* )
14290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14297 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14302 (
14303 cat <<\_ASBOX
14304 ## ------------------------------------------ ##
14305 ## Report this to the AC_PACKAGE_NAME lists. ##
14306 ## ------------------------------------------ ##
14307 _ASBOX
14308 ) |
14309 sed "s/^/$as_me: WARNING: /" >&2
14310 ;;
14311 esac
14312 echo "$as_me:$LINENO: checking for $ac_header" >&5
14313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 else
14317 eval "$as_ac_Header=\$ac_header_preproc"
14318 fi
14319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14321
14322 fi
14323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14324 cat >>confdefs.h <<_ACEOF
14325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14326 _ACEOF
14327
14328 fi
14329
14330 done
14331
14332
14333 for ac_func in getpagesize
14334 do
14335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14336 echo "$as_me:$LINENO: checking for $ac_func" >&5
14337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14338 if eval "test \"\${$as_ac_var+set}\" = set"; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341 cat >conftest.$ac_ext <<_ACEOF
14342 /* confdefs.h. */
14343 _ACEOF
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h. */
14347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14349 #define $ac_func innocuous_$ac_func
14350
14351 /* System header to define __stub macros and hopefully few prototypes,
14352 which can conflict with char $ac_func (); below.
14353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14354 <limits.h> exists even on freestanding compilers. */
14355
14356 #ifdef __STDC__
14357 # include <limits.h>
14358 #else
14359 # include <assert.h>
14360 #endif
14361
14362 #undef $ac_func
14363
14364 /* Override any gcc2 internal prototype to avoid an error. */
14365 #ifdef __cplusplus
14366 extern "C"
14367 {
14368 #endif
14369 /* We use char because int might match the return type of a gcc2
14370 builtin and then its argument prototype would still apply. */
14371 char $ac_func ();
14372 /* The GNU C library defines this for functions which it implements
14373 to always fail with ENOSYS. Some functions are actually named
14374 something starting with __ and the normal name is an alias. */
14375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14376 choke me
14377 #else
14378 char (*f) () = $ac_func;
14379 #endif
14380 #ifdef __cplusplus
14381 }
14382 #endif
14383
14384 int
14385 main ()
14386 {
14387 return f != $ac_func;
14388 ;
14389 return 0;
14390 }
14391 _ACEOF
14392 rm -f conftest.$ac_objext conftest$ac_exeext
14393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14394 (eval $ac_link) 2>conftest.er1
14395 ac_status=$?
14396 grep -v '^ *+' conftest.er1 >conftest.err
14397 rm -f conftest.er1
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } &&
14401 { ac_try='test -z "$ac_c_werror_flag"
14402 || test ! -s conftest.err'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; } &&
14408 { ac_try='test -s conftest$ac_exeext'
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 eval "$as_ac_var=yes"
14415 else
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14418
14419 eval "$as_ac_var=no"
14420 fi
14421 rm -f conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext conftest.$ac_ext
14423 fi
14424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14426 if test `eval echo '${'$as_ac_var'}'` = yes; then
14427 cat >>confdefs.h <<_ACEOF
14428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14429 _ACEOF
14430
14431 fi
14432 done
14433
14434 echo "$as_me:$LINENO: checking for working mmap" >&5
14435 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14436 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439 if test "$cross_compiling" = yes; then
14440 ac_cv_func_mmap_fixed_mapped=no
14441 else
14442 cat >conftest.$ac_ext <<_ACEOF
14443 /* confdefs.h. */
14444 _ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448 $ac_includes_default
14449 /* malloc might have been renamed as rpl_malloc. */
14450 #undef malloc
14451
14452 /* Thanks to Mike Haertel and Jim Avera for this test.
14453 Here is a matrix of mmap possibilities:
14454 mmap private not fixed
14455 mmap private fixed at somewhere currently unmapped
14456 mmap private fixed at somewhere already mapped
14457 mmap shared not fixed
14458 mmap shared fixed at somewhere currently unmapped
14459 mmap shared fixed at somewhere already mapped
14460 For private mappings, we should verify that changes cannot be read()
14461 back from the file, nor mmap's back from the file at a different
14462 address. (There have been systems where private was not correctly
14463 implemented like the infamous i386 svr4.0, and systems where the
14464 VM page cache was not coherent with the file system buffer cache
14465 like early versions of FreeBSD and possibly contemporary NetBSD.)
14466 For shared mappings, we should conversely verify that changes get
14467 propagated back to all the places they're supposed to be.
14468
14469 Grep wants private fixed already mapped.
14470 The main things grep needs to know about mmap are:
14471 * does it exist and is it safe to write into the mmap'd area
14472 * how to use it (BSD variants) */
14473
14474 #include <fcntl.h>
14475 #include <sys/mman.h>
14476
14477 #if !STDC_HEADERS && !HAVE_STDLIB_H
14478 char *malloc ();
14479 #endif
14480
14481 /* This mess was copied from the GNU getpagesize.h. */
14482 #if !HAVE_GETPAGESIZE
14483 /* Assume that all systems that can run configure have sys/param.h. */
14484 # if !HAVE_SYS_PARAM_H
14485 # define HAVE_SYS_PARAM_H 1
14486 # endif
14487
14488 # ifdef _SC_PAGESIZE
14489 # define getpagesize() sysconf(_SC_PAGESIZE)
14490 # else /* no _SC_PAGESIZE */
14491 # if HAVE_SYS_PARAM_H
14492 # include <sys/param.h>
14493 # ifdef EXEC_PAGESIZE
14494 # define getpagesize() EXEC_PAGESIZE
14495 # else /* no EXEC_PAGESIZE */
14496 # ifdef NBPG
14497 # define getpagesize() NBPG * CLSIZE
14498 # ifndef CLSIZE
14499 # define CLSIZE 1
14500 # endif /* no CLSIZE */
14501 # else /* no NBPG */
14502 # ifdef NBPC
14503 # define getpagesize() NBPC
14504 # else /* no NBPC */
14505 # ifdef PAGESIZE
14506 # define getpagesize() PAGESIZE
14507 # endif /* PAGESIZE */
14508 # endif /* no NBPC */
14509 # endif /* no NBPG */
14510 # endif /* no EXEC_PAGESIZE */
14511 # else /* no HAVE_SYS_PARAM_H */
14512 # define getpagesize() 8192 /* punt totally */
14513 # endif /* no HAVE_SYS_PARAM_H */
14514 # endif /* no _SC_PAGESIZE */
14515
14516 #endif /* no HAVE_GETPAGESIZE */
14517
14518 int
14519 main ()
14520 {
14521 char *data, *data2, *data3;
14522 int i, pagesize;
14523 int fd;
14524
14525 pagesize = getpagesize ();
14526
14527 /* First, make a file with some known garbage in it. */
14528 data = (char *) malloc (pagesize);
14529 if (!data)
14530 exit (1);
14531 for (i = 0; i < pagesize; ++i)
14532 *(data + i) = rand ();
14533 umask (0);
14534 fd = creat ("conftest.mmap", 0600);
14535 if (fd < 0)
14536 exit (1);
14537 if (write (fd, data, pagesize) != pagesize)
14538 exit (1);
14539 close (fd);
14540
14541 /* Next, try to mmap the file at a fixed address which already has
14542 something else allocated at it. If we can, also make sure that
14543 we see the same garbage. */
14544 fd = open ("conftest.mmap", O_RDWR);
14545 if (fd < 0)
14546 exit (1);
14547 data2 = (char *) malloc (2 * pagesize);
14548 if (!data2)
14549 exit (1);
14550 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14551 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14552 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14553 exit (1);
14554 for (i = 0; i < pagesize; ++i)
14555 if (*(data + i) != *(data2 + i))
14556 exit (1);
14557
14558 /* Finally, make sure that changes to the mapped area do not
14559 percolate back to the file as seen by read(). (This is a bug on
14560 some variants of i386 svr4.0.) */
14561 for (i = 0; i < pagesize; ++i)
14562 *(data2 + i) = *(data2 + i) + 1;
14563 data3 = (char *) malloc (pagesize);
14564 if (!data3)
14565 exit (1);
14566 if (read (fd, data3, pagesize) != pagesize)
14567 exit (1);
14568 for (i = 0; i < pagesize; ++i)
14569 if (*(data + i) != *(data3 + i))
14570 exit (1);
14571 close (fd);
14572 exit (0);
14573 }
14574 _ACEOF
14575 rm -f conftest$ac_exeext
14576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14577 (eval $ac_link) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14586 ac_cv_func_mmap_fixed_mapped=yes
14587 else
14588 echo "$as_me: program exited with status $ac_status" >&5
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592 ( exit $ac_status )
14593 ac_cv_func_mmap_fixed_mapped=no
14594 fi
14595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14596 fi
14597 fi
14598 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14599 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14600 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14601
14602 cat >>confdefs.h <<\_ACEOF
14603 #define HAVE_MMAP 1
14604 _ACEOF
14605
14606 fi
14607 rm -f conftest.mmap
14608
14609 echo "$as_me:$LINENO: checking for pid_t" >&5
14610 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14611 if test "${ac_cv_type_pid_t+set}" = set; then
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 else
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h. */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 $ac_includes_default
14621 int
14622 main ()
14623 {
14624 if ((pid_t *) 0)
14625 return 0;
14626 if (sizeof (pid_t))
14627 return 0;
14628 ;
14629 return 0;
14630 }
14631 _ACEOF
14632 rm -f conftest.$ac_objext
14633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14634 (eval $ac_compile) 2>conftest.er1
14635 ac_status=$?
14636 grep -v '^ *+' conftest.er1 >conftest.err
14637 rm -f conftest.er1
14638 cat conftest.err >&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } &&
14641 { ac_try='test -z "$ac_c_werror_flag"
14642 || test ! -s conftest.err'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; } &&
14648 { ac_try='test -s conftest.$ac_objext'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14651 ac_status=$?
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14654 ac_cv_type_pid_t=yes
14655 else
14656 echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14658
14659 ac_cv_type_pid_t=no
14660 fi
14661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14662 fi
14663 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14664 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14665 if test $ac_cv_type_pid_t = yes; then
14666 :
14667 else
14668
14669 cat >>confdefs.h <<_ACEOF
14670 #define pid_t int
14671 _ACEOF
14672
14673 fi
14674
14675
14676
14677 for ac_header in unistd.h vfork.h
14678 do
14679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14681 echo "$as_me:$LINENO: checking for $ac_header" >&5
14682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 fi
14686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14688 else
14689 # Is the header compilable?
14690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14692 cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h. */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 $ac_includes_default
14699 #include <$ac_header>
14700 _ACEOF
14701 rm -f conftest.$ac_objext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703 (eval $ac_compile) 2>conftest.er1
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try='test -z "$ac_c_werror_flag"
14711 || test ! -s conftest.err'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try='test -s conftest.$ac_objext'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_header_compiler=yes
14724 else
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14727
14728 ac_header_compiler=no
14729 fi
14730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14732 echo "${ECHO_T}$ac_header_compiler" >&6
14733
14734 # Is the header present?
14735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14737 cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h. */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743 #include <$ac_header>
14744 _ACEOF
14745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } >/dev/null; then
14753 if test -s conftest.err; then
14754 ac_cpp_err=$ac_c_preproc_warn_flag
14755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14756 else
14757 ac_cpp_err=
14758 fi
14759 else
14760 ac_cpp_err=yes
14761 fi
14762 if test -z "$ac_cpp_err"; then
14763 ac_header_preproc=yes
14764 else
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 ac_header_preproc=no
14769 fi
14770 rm -f conftest.err conftest.$ac_ext
14771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14772 echo "${ECHO_T}$ac_header_preproc" >&6
14773
14774 # So? What about this header?
14775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14776 yes:no: )
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14781 ac_header_preproc=yes
14782 ;;
14783 no:yes:* )
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14796 (
14797 cat <<\_ASBOX
14798 ## ------------------------------------------ ##
14799 ## Report this to the AC_PACKAGE_NAME lists. ##
14800 ## ------------------------------------------ ##
14801 _ASBOX
14802 ) |
14803 sed "s/^/$as_me: WARNING: /" >&2
14804 ;;
14805 esac
14806 echo "$as_me:$LINENO: checking for $ac_header" >&5
14807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14810 else
14811 eval "$as_ac_Header=\$ac_header_preproc"
14812 fi
14813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14815
14816 fi
14817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14818 cat >>confdefs.h <<_ACEOF
14819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14820 _ACEOF
14821
14822 fi
14823
14824 done
14825
14826
14827
14828 for ac_func in fork vfork
14829 do
14830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14831 echo "$as_me:$LINENO: checking for $ac_func" >&5
14832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14833 if eval "test \"\${$as_ac_var+set}\" = set"; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836 cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h. */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14844 #define $ac_func innocuous_$ac_func
14845
14846 /* System header to define __stub macros and hopefully few prototypes,
14847 which can conflict with char $ac_func (); below.
14848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14849 <limits.h> exists even on freestanding compilers. */
14850
14851 #ifdef __STDC__
14852 # include <limits.h>
14853 #else
14854 # include <assert.h>
14855 #endif
14856
14857 #undef $ac_func
14858
14859 /* Override any gcc2 internal prototype to avoid an error. */
14860 #ifdef __cplusplus
14861 extern "C"
14862 {
14863 #endif
14864 /* We use char because int might match the return type of a gcc2
14865 builtin and then its argument prototype would still apply. */
14866 char $ac_func ();
14867 /* The GNU C library defines this for functions which it implements
14868 to always fail with ENOSYS. Some functions are actually named
14869 something starting with __ and the normal name is an alias. */
14870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14871 choke me
14872 #else
14873 char (*f) () = $ac_func;
14874 #endif
14875 #ifdef __cplusplus
14876 }
14877 #endif
14878
14879 int
14880 main ()
14881 {
14882 return f != $ac_func;
14883 ;
14884 return 0;
14885 }
14886 _ACEOF
14887 rm -f conftest.$ac_objext conftest$ac_exeext
14888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14889 (eval $ac_link) 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -z "$ac_c_werror_flag"
14897 || test ! -s conftest.err'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; } &&
14903 { ac_try='test -s conftest$ac_exeext'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 eval "$as_ac_var=yes"
14910 else
14911 echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14913
14914 eval "$as_ac_var=no"
14915 fi
14916 rm -f conftest.err conftest.$ac_objext \
14917 conftest$ac_exeext conftest.$ac_ext
14918 fi
14919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14921 if test `eval echo '${'$as_ac_var'}'` = yes; then
14922 cat >>confdefs.h <<_ACEOF
14923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14924 _ACEOF
14925
14926 fi
14927 done
14928
14929 if test "x$ac_cv_func_fork" = xyes; then
14930 echo "$as_me:$LINENO: checking for working fork" >&5
14931 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14932 if test "${ac_cv_func_fork_works+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935 if test "$cross_compiling" = yes; then
14936 ac_cv_func_fork_works=cross
14937 else
14938 cat >conftest.$ac_ext <<_ACEOF
14939 /* By Ruediger Kuhlmann. */
14940 #include <sys/types.h>
14941 #if HAVE_UNISTD_H
14942 # include <unistd.h>
14943 #endif
14944 /* Some systems only have a dummy stub for fork() */
14945 int main ()
14946 {
14947 if (fork() < 0)
14948 exit (1);
14949 exit (0);
14950 }
14951 _ACEOF
14952 rm -f conftest$ac_exeext
14953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14954 (eval $ac_link) 2>&5
14955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 ac_cv_func_fork_works=yes
14964 else
14965 echo "$as_me: program exited with status $ac_status" >&5
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14968
14969 ( exit $ac_status )
14970 ac_cv_func_fork_works=no
14971 fi
14972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14973 fi
14974 fi
14975 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14976 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14977
14978 else
14979 ac_cv_func_fork_works=$ac_cv_func_fork
14980 fi
14981 if test "x$ac_cv_func_fork_works" = xcross; then
14982 case $host in
14983 *-*-amigaos* | *-*-msdosdjgpp*)
14984 # Override, as these systems have only a dummy fork() stub
14985 ac_cv_func_fork_works=no
14986 ;;
14987 *)
14988 ac_cv_func_fork_works=yes
14989 ;;
14990 esac
14991 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14992 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14993 fi
14994 ac_cv_func_vfork_works=$ac_cv_func_vfork
14995 if test "x$ac_cv_func_vfork" = xyes; then
14996 echo "$as_me:$LINENO: checking for working vfork" >&5
14997 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14998 if test "${ac_cv_func_vfork_works+set}" = set; then
14999 echo $ECHO_N "(cached) $ECHO_C" >&6
15000 else
15001 if test "$cross_compiling" = yes; then
15002 ac_cv_func_vfork_works=cross
15003 else
15004 cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h. */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 /* Thanks to Paul Eggert for this test. */
15011 #include <stdio.h>
15012 #include <stdlib.h>
15013 #include <sys/types.h>
15014 #include <sys/stat.h>
15015 #include <sys/wait.h>
15016 #if HAVE_UNISTD_H
15017 # include <unistd.h>
15018 #endif
15019 #if HAVE_VFORK_H
15020 # include <vfork.h>
15021 #endif
15022 /* On some sparc systems, changes by the child to local and incoming
15023 argument registers are propagated back to the parent. The compiler
15024 is told about this with #include <vfork.h>, but some compilers
15025 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15026 static variable whose address is put into a register that is
15027 clobbered by the vfork. */
15028 static void
15029 #ifdef __cplusplus
15030 sparc_address_test (int arg)
15031 # else
15032 sparc_address_test (arg) int arg;
15033 #endif
15034 {
15035 static pid_t child;
15036 if (!child) {
15037 child = vfork ();
15038 if (child < 0) {
15039 perror ("vfork");
15040 _exit(2);
15041 }
15042 if (!child) {
15043 arg = getpid();
15044 write(-1, "", 0);
15045 _exit (arg);
15046 }
15047 }
15048 }
15049
15050 int
15051 main ()
15052 {
15053 pid_t parent = getpid ();
15054 pid_t child;
15055
15056 sparc_address_test (0);
15057
15058 child = vfork ();
15059
15060 if (child == 0) {
15061 /* Here is another test for sparc vfork register problems. This
15062 test uses lots of local variables, at least as many local
15063 variables as main has allocated so far including compiler
15064 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15065 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15066 reuse the register of parent for one of the local variables,
15067 since it will think that parent can't possibly be used any more
15068 in this routine. Assigning to the local variable will thus
15069 munge parent in the parent process. */
15070 pid_t
15071 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15072 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15073 /* Convince the compiler that p..p7 are live; otherwise, it might
15074 use the same hardware register for all 8 local variables. */
15075 if (p != p1 || p != p2 || p != p3 || p != p4
15076 || p != p5 || p != p6 || p != p7)
15077 _exit(1);
15078
15079 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15080 from child file descriptors. If the child closes a descriptor
15081 before it execs or exits, this munges the parent's descriptor
15082 as well. Test for this by closing stdout in the child. */
15083 _exit(close(fileno(stdout)) != 0);
15084 } else {
15085 int status;
15086 struct stat st;
15087
15088 while (wait(&status) != child)
15089 ;
15090 exit(
15091 /* Was there some problem with vforking? */
15092 child < 0
15093
15094 /* Did the child fail? (This shouldn't happen.) */
15095 || status
15096
15097 /* Did the vfork/compiler bug occur? */
15098 || parent != getpid()
15099
15100 /* Did the file descriptor bug occur? */
15101 || fstat(fileno(stdout), &st) != 0
15102 );
15103 }
15104 }
15105 _ACEOF
15106 rm -f conftest$ac_exeext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15108 (eval $ac_link) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113 (eval $ac_try) 2>&5
15114 ac_status=$?
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; }; then
15117 ac_cv_func_vfork_works=yes
15118 else
15119 echo "$as_me: program exited with status $ac_status" >&5
15120 echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15122
15123 ( exit $ac_status )
15124 ac_cv_func_vfork_works=no
15125 fi
15126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15127 fi
15128 fi
15129 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15130 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15131
15132 fi;
15133 if test "x$ac_cv_func_fork_works" = xcross; then
15134 ac_cv_func_vfork_works=$ac_cv_func_vfork
15135 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15136 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15137 fi
15138
15139 if test "x$ac_cv_func_vfork_works" = xyes; then
15140
15141 cat >>confdefs.h <<\_ACEOF
15142 #define HAVE_WORKING_VFORK 1
15143 _ACEOF
15144
15145 else
15146
15147 cat >>confdefs.h <<\_ACEOF
15148 #define vfork fork
15149 _ACEOF
15150
15151 fi
15152 if test "x$ac_cv_func_fork_works" = xyes; then
15153
15154 cat >>confdefs.h <<\_ACEOF
15155 #define HAVE_WORKING_FORK 1
15156 _ACEOF
15157
15158 fi
15159
15160
15161
15162 for ac_func in canonicalize_file_name realpath
15163 do
15164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15165 echo "$as_me:$LINENO: checking for $ac_func" >&5
15166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15167 if eval "test \"\${$as_ac_var+set}\" = set"; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 else
15170 cat >conftest.$ac_ext <<_ACEOF
15171 /* confdefs.h. */
15172 _ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15178 #define $ac_func innocuous_$ac_func
15179
15180 /* System header to define __stub macros and hopefully few prototypes,
15181 which can conflict with char $ac_func (); below.
15182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15183 <limits.h> exists even on freestanding compilers. */
15184
15185 #ifdef __STDC__
15186 # include <limits.h>
15187 #else
15188 # include <assert.h>
15189 #endif
15190
15191 #undef $ac_func
15192
15193 /* Override any gcc2 internal prototype to avoid an error. */
15194 #ifdef __cplusplus
15195 extern "C"
15196 {
15197 #endif
15198 /* We use char because int might match the return type of a gcc2
15199 builtin and then its argument prototype would still apply. */
15200 char $ac_func ();
15201 /* The GNU C library defines this for functions which it implements
15202 to always fail with ENOSYS. Some functions are actually named
15203 something starting with __ and the normal name is an alias. */
15204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15205 choke me
15206 #else
15207 char (*f) () = $ac_func;
15208 #endif
15209 #ifdef __cplusplus
15210 }
15211 #endif
15212
15213 int
15214 main ()
15215 {
15216 return f != $ac_func;
15217 ;
15218 return 0;
15219 }
15220 _ACEOF
15221 rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15223 (eval $ac_link) 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
15230 { ac_try='test -z "$ac_c_werror_flag"
15231 || test ! -s conftest.err'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } &&
15237 { ac_try='test -s conftest$ac_exeext'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15240 ac_status=$?
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 eval "$as_ac_var=yes"
15244 else
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15247
15248 eval "$as_ac_var=no"
15249 fi
15250 rm -f conftest.err conftest.$ac_objext \
15251 conftest$ac_exeext conftest.$ac_ext
15252 fi
15253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15255 if test `eval echo '${'$as_ac_var'}'` = yes; then
15256 cat >>confdefs.h <<_ACEOF
15257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15258 _ACEOF
15259
15260 fi
15261 done
15262
15263
15264 for ac_func in poll
15265 do
15266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15267 echo "$as_me:$LINENO: checking for $ac_func" >&5
15268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15269 if eval "test \"\${$as_ac_var+set}\" = set"; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272 cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h. */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15280 #define $ac_func innocuous_$ac_func
15281
15282 /* System header to define __stub macros and hopefully few prototypes,
15283 which can conflict with char $ac_func (); below.
15284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15285 <limits.h> exists even on freestanding compilers. */
15286
15287 #ifdef __STDC__
15288 # include <limits.h>
15289 #else
15290 # include <assert.h>
15291 #endif
15292
15293 #undef $ac_func
15294
15295 /* Override any gcc2 internal prototype to avoid an error. */
15296 #ifdef __cplusplus
15297 extern "C"
15298 {
15299 #endif
15300 /* We use char because int might match the return type of a gcc2
15301 builtin and then its argument prototype would still apply. */
15302 char $ac_func ();
15303 /* The GNU C library defines this for functions which it implements
15304 to always fail with ENOSYS. Some functions are actually named
15305 something starting with __ and the normal name is an alias. */
15306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15307 choke me
15308 #else
15309 char (*f) () = $ac_func;
15310 #endif
15311 #ifdef __cplusplus
15312 }
15313 #endif
15314
15315 int
15316 main ()
15317 {
15318 return f != $ac_func;
15319 ;
15320 return 0;
15321 }
15322 _ACEOF
15323 rm -f conftest.$ac_objext conftest$ac_exeext
15324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15325 (eval $ac_link) 2>conftest.er1
15326 ac_status=$?
15327 grep -v '^ *+' conftest.er1 >conftest.err
15328 rm -f conftest.er1
15329 cat conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try='test -z "$ac_c_werror_flag"
15333 || test ! -s conftest.err'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; } &&
15339 { ac_try='test -s conftest$ac_exeext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 eval "$as_ac_var=yes"
15346 else
15347 echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15349
15350 eval "$as_ac_var=no"
15351 fi
15352 rm -f conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
15354 fi
15355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15357 if test `eval echo '${'$as_ac_var'}'` = yes; then
15358 cat >>confdefs.h <<_ACEOF
15359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15360 _ACEOF
15361
15362 fi
15363 done
15364
15365
15366 for ac_func in pread64
15367 do
15368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15369 echo "$as_me:$LINENO: checking for $ac_func" >&5
15370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15371 if eval "test \"\${$as_ac_var+set}\" = set"; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374 cat >conftest.$ac_ext <<_ACEOF
15375 /* confdefs.h. */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15382 #define $ac_func innocuous_$ac_func
15383
15384 /* System header to define __stub macros and hopefully few prototypes,
15385 which can conflict with char $ac_func (); below.
15386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15387 <limits.h> exists even on freestanding compilers. */
15388
15389 #ifdef __STDC__
15390 # include <limits.h>
15391 #else
15392 # include <assert.h>
15393 #endif
15394
15395 #undef $ac_func
15396
15397 /* Override any gcc2 internal prototype to avoid an error. */
15398 #ifdef __cplusplus
15399 extern "C"
15400 {
15401 #endif
15402 /* We use char because int might match the return type of a gcc2
15403 builtin and then its argument prototype would still apply. */
15404 char $ac_func ();
15405 /* The GNU C library defines this for functions which it implements
15406 to always fail with ENOSYS. Some functions are actually named
15407 something starting with __ and the normal name is an alias. */
15408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15409 choke me
15410 #else
15411 char (*f) () = $ac_func;
15412 #endif
15413 #ifdef __cplusplus
15414 }
15415 #endif
15416
15417 int
15418 main ()
15419 {
15420 return f != $ac_func;
15421 ;
15422 return 0;
15423 }
15424 _ACEOF
15425 rm -f conftest.$ac_objext conftest$ac_exeext
15426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15427 (eval $ac_link) 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
15434 { ac_try='test -z "$ac_c_werror_flag"
15435 || test ! -s conftest.err'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest$ac_exeext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 eval "$as_ac_var=yes"
15448 else
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 eval "$as_ac_var=no"
15453 fi
15454 rm -f conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456 fi
15457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15459 if test `eval echo '${'$as_ac_var'}'` = yes; then
15460 cat >>confdefs.h <<_ACEOF
15461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15462 _ACEOF
15463
15464 fi
15465 done
15466
15467
15468 for ac_func in sbrk
15469 do
15470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15471 echo "$as_me:$LINENO: checking for $ac_func" >&5
15472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15473 if eval "test \"\${$as_ac_var+set}\" = set"; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476 cat >conftest.$ac_ext <<_ACEOF
15477 /* confdefs.h. */
15478 _ACEOF
15479 cat confdefs.h >>conftest.$ac_ext
15480 cat >>conftest.$ac_ext <<_ACEOF
15481 /* end confdefs.h. */
15482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15484 #define $ac_func innocuous_$ac_func
15485
15486 /* System header to define __stub macros and hopefully few prototypes,
15487 which can conflict with char $ac_func (); below.
15488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15489 <limits.h> exists even on freestanding compilers. */
15490
15491 #ifdef __STDC__
15492 # include <limits.h>
15493 #else
15494 # include <assert.h>
15495 #endif
15496
15497 #undef $ac_func
15498
15499 /* Override any gcc2 internal prototype to avoid an error. */
15500 #ifdef __cplusplus
15501 extern "C"
15502 {
15503 #endif
15504 /* We use char because int might match the return type of a gcc2
15505 builtin and then its argument prototype would still apply. */
15506 char $ac_func ();
15507 /* The GNU C library defines this for functions which it implements
15508 to always fail with ENOSYS. Some functions are actually named
15509 something starting with __ and the normal name is an alias. */
15510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15511 choke me
15512 #else
15513 char (*f) () = $ac_func;
15514 #endif
15515 #ifdef __cplusplus
15516 }
15517 #endif
15518
15519 int
15520 main ()
15521 {
15522 return f != $ac_func;
15523 ;
15524 return 0;
15525 }
15526 _ACEOF
15527 rm -f conftest.$ac_objext conftest$ac_exeext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15529 (eval $ac_link) 2>conftest.er1
15530 ac_status=$?
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } &&
15536 { ac_try='test -z "$ac_c_werror_flag"
15537 || test ! -s conftest.err'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest$ac_exeext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 eval "$as_ac_var=yes"
15550 else
15551 echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554 eval "$as_ac_var=no"
15555 fi
15556 rm -f conftest.err conftest.$ac_objext \
15557 conftest$ac_exeext conftest.$ac_ext
15558 fi
15559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15561 if test `eval echo '${'$as_ac_var'}'` = yes; then
15562 cat >>confdefs.h <<_ACEOF
15563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15564 _ACEOF
15565
15566 fi
15567 done
15568
15569
15570
15571 for ac_func in setpgid setpgrp
15572 do
15573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15574 echo "$as_me:$LINENO: checking for $ac_func" >&5
15575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15576 if eval "test \"\${$as_ac_var+set}\" = set"; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 else
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h. */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15587 #define $ac_func innocuous_$ac_func
15588
15589 /* System header to define __stub macros and hopefully few prototypes,
15590 which can conflict with char $ac_func (); below.
15591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15592 <limits.h> exists even on freestanding compilers. */
15593
15594 #ifdef __STDC__
15595 # include <limits.h>
15596 #else
15597 # include <assert.h>
15598 #endif
15599
15600 #undef $ac_func
15601
15602 /* Override any gcc2 internal prototype to avoid an error. */
15603 #ifdef __cplusplus
15604 extern "C"
15605 {
15606 #endif
15607 /* We use char because int might match the return type of a gcc2
15608 builtin and then its argument prototype would still apply. */
15609 char $ac_func ();
15610 /* The GNU C library defines this for functions which it implements
15611 to always fail with ENOSYS. Some functions are actually named
15612 something starting with __ and the normal name is an alias. */
15613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15614 choke me
15615 #else
15616 char (*f) () = $ac_func;
15617 #endif
15618 #ifdef __cplusplus
15619 }
15620 #endif
15621
15622 int
15623 main ()
15624 {
15625 return f != $ac_func;
15626 ;
15627 return 0;
15628 }
15629 _ACEOF
15630 rm -f conftest.$ac_objext conftest$ac_exeext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15632 (eval $ac_link) 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try='test -s conftest$ac_exeext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 eval "$as_ac_var=yes"
15653 else
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15656
15657 eval "$as_ac_var=no"
15658 fi
15659 rm -f conftest.err conftest.$ac_objext \
15660 conftest$ac_exeext conftest.$ac_ext
15661 fi
15662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15664 if test `eval echo '${'$as_ac_var'}'` = yes; then
15665 cat >>confdefs.h <<_ACEOF
15666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15667 _ACEOF
15668
15669 fi
15670 done
15671
15672
15673
15674
15675 for ac_func in sigaction sigprocmask sigsetmask
15676 do
15677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15678 echo "$as_me:$LINENO: checking for $ac_func" >&5
15679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15680 if eval "test \"\${$as_ac_var+set}\" = set"; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15682 else
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h. */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15691 #define $ac_func innocuous_$ac_func
15692
15693 /* System header to define __stub macros and hopefully few prototypes,
15694 which can conflict with char $ac_func (); below.
15695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15696 <limits.h> exists even on freestanding compilers. */
15697
15698 #ifdef __STDC__
15699 # include <limits.h>
15700 #else
15701 # include <assert.h>
15702 #endif
15703
15704 #undef $ac_func
15705
15706 /* Override any gcc2 internal prototype to avoid an error. */
15707 #ifdef __cplusplus
15708 extern "C"
15709 {
15710 #endif
15711 /* We use char because int might match the return type of a gcc2
15712 builtin and then its argument prototype would still apply. */
15713 char $ac_func ();
15714 /* The GNU C library defines this for functions which it implements
15715 to always fail with ENOSYS. Some functions are actually named
15716 something starting with __ and the normal name is an alias. */
15717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15718 choke me
15719 #else
15720 char (*f) () = $ac_func;
15721 #endif
15722 #ifdef __cplusplus
15723 }
15724 #endif
15725
15726 int
15727 main ()
15728 {
15729 return f != $ac_func;
15730 ;
15731 return 0;
15732 }
15733 _ACEOF
15734 rm -f conftest.$ac_objext conftest$ac_exeext
15735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15736 (eval $ac_link) 2>conftest.er1
15737 ac_status=$?
15738 grep -v '^ *+' conftest.er1 >conftest.err
15739 rm -f conftest.er1
15740 cat conftest.err >&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } &&
15743 { ac_try='test -z "$ac_c_werror_flag"
15744 || test ! -s conftest.err'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; } &&
15750 { ac_try='test -s conftest$ac_exeext'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 eval "$as_ac_var=yes"
15757 else
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15760
15761 eval "$as_ac_var=no"
15762 fi
15763 rm -f conftest.err conftest.$ac_objext \
15764 conftest$ac_exeext conftest.$ac_ext
15765 fi
15766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15768 if test `eval echo '${'$as_ac_var'}'` = yes; then
15769 cat >>confdefs.h <<_ACEOF
15770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15771 _ACEOF
15772
15773 fi
15774 done
15775
15776
15777 for ac_func in socketpair
15778 do
15779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15780 echo "$as_me:$LINENO: checking for $ac_func" >&5
15781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15782 if eval "test \"\${$as_ac_var+set}\" = set"; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 else
15785 cat >conftest.$ac_ext <<_ACEOF
15786 /* confdefs.h. */
15787 _ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15793 #define $ac_func innocuous_$ac_func
15794
15795 /* System header to define __stub macros and hopefully few prototypes,
15796 which can conflict with char $ac_func (); below.
15797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15798 <limits.h> exists even on freestanding compilers. */
15799
15800 #ifdef __STDC__
15801 # include <limits.h>
15802 #else
15803 # include <assert.h>
15804 #endif
15805
15806 #undef $ac_func
15807
15808 /* Override any gcc2 internal prototype to avoid an error. */
15809 #ifdef __cplusplus
15810 extern "C"
15811 {
15812 #endif
15813 /* We use char because int might match the return type of a gcc2
15814 builtin and then its argument prototype would still apply. */
15815 char $ac_func ();
15816 /* The GNU C library defines this for functions which it implements
15817 to always fail with ENOSYS. Some functions are actually named
15818 something starting with __ and the normal name is an alias. */
15819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15820 choke me
15821 #else
15822 char (*f) () = $ac_func;
15823 #endif
15824 #ifdef __cplusplus
15825 }
15826 #endif
15827
15828 int
15829 main ()
15830 {
15831 return f != $ac_func;
15832 ;
15833 return 0;
15834 }
15835 _ACEOF
15836 rm -f conftest.$ac_objext conftest$ac_exeext
15837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15838 (eval $ac_link) 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag"
15846 || test ! -s conftest.err'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; } &&
15852 { ac_try='test -s conftest$ac_exeext'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15858 eval "$as_ac_var=yes"
15859 else
15860 echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15862
15863 eval "$as_ac_var=no"
15864 fi
15865 rm -f conftest.err conftest.$ac_objext \
15866 conftest$ac_exeext conftest.$ac_ext
15867 fi
15868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15870 if test `eval echo '${'$as_ac_var'}'` = yes; then
15871 cat >>confdefs.h <<_ACEOF
15872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15873 _ACEOF
15874
15875 fi
15876 done
15877
15878
15879 for ac_func in syscall
15880 do
15881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15882 echo "$as_me:$LINENO: checking for $ac_func" >&5
15883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15884 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15895 #define $ac_func innocuous_$ac_func
15896
15897 /* System header to define __stub macros and hopefully few prototypes,
15898 which can conflict with char $ac_func (); below.
15899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15900 <limits.h> exists even on freestanding compilers. */
15901
15902 #ifdef __STDC__
15903 # include <limits.h>
15904 #else
15905 # include <assert.h>
15906 #endif
15907
15908 #undef $ac_func
15909
15910 /* Override any gcc2 internal prototype to avoid an error. */
15911 #ifdef __cplusplus
15912 extern "C"
15913 {
15914 #endif
15915 /* We use char because int might match the return type of a gcc2
15916 builtin and then its argument prototype would still apply. */
15917 char $ac_func ();
15918 /* The GNU C library defines this for functions which it implements
15919 to always fail with ENOSYS. Some functions are actually named
15920 something starting with __ and the normal name is an alias. */
15921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15922 choke me
15923 #else
15924 char (*f) () = $ac_func;
15925 #endif
15926 #ifdef __cplusplus
15927 }
15928 #endif
15929
15930 int
15931 main ()
15932 {
15933 return f != $ac_func;
15934 ;
15935 return 0;
15936 }
15937 _ACEOF
15938 rm -f conftest.$ac_objext conftest$ac_exeext
15939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15940 (eval $ac_link) 2>conftest.er1
15941 ac_status=$?
15942 grep -v '^ *+' conftest.er1 >conftest.err
15943 rm -f conftest.er1
15944 cat conftest.err >&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } &&
15947 { ac_try='test -z "$ac_c_werror_flag"
15948 || test ! -s conftest.err'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; } &&
15954 { ac_try='test -s conftest$ac_exeext'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 eval "$as_ac_var=yes"
15961 else
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15964
15965 eval "$as_ac_var=no"
15966 fi
15967 rm -f conftest.err conftest.$ac_objext \
15968 conftest$ac_exeext conftest.$ac_ext
15969 fi
15970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15972 if test `eval echo '${'$as_ac_var'}'` = yes; then
15973 cat >>confdefs.h <<_ACEOF
15974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15975 _ACEOF
15976
15977 fi
15978 done
15979
15980
15981 for ac_func in ttrace
15982 do
15983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15984 echo "$as_me:$LINENO: checking for $ac_func" >&5
15985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15986 if eval "test \"\${$as_ac_var+set}\" = set"; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15988 else
15989 cat >conftest.$ac_ext <<_ACEOF
15990 /* confdefs.h. */
15991 _ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
15995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15997 #define $ac_func innocuous_$ac_func
15998
15999 /* System header to define __stub macros and hopefully few prototypes,
16000 which can conflict with char $ac_func (); below.
16001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16002 <limits.h> exists even on freestanding compilers. */
16003
16004 #ifdef __STDC__
16005 # include <limits.h>
16006 #else
16007 # include <assert.h>
16008 #endif
16009
16010 #undef $ac_func
16011
16012 /* Override any gcc2 internal prototype to avoid an error. */
16013 #ifdef __cplusplus
16014 extern "C"
16015 {
16016 #endif
16017 /* We use char because int might match the return type of a gcc2
16018 builtin and then its argument prototype would still apply. */
16019 char $ac_func ();
16020 /* The GNU C library defines this for functions which it implements
16021 to always fail with ENOSYS. Some functions are actually named
16022 something starting with __ and the normal name is an alias. */
16023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16024 choke me
16025 #else
16026 char (*f) () = $ac_func;
16027 #endif
16028 #ifdef __cplusplus
16029 }
16030 #endif
16031
16032 int
16033 main ()
16034 {
16035 return f != $ac_func;
16036 ;
16037 return 0;
16038 }
16039 _ACEOF
16040 rm -f conftest.$ac_objext conftest$ac_exeext
16041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16042 (eval $ac_link) 2>conftest.er1
16043 ac_status=$?
16044 grep -v '^ *+' conftest.er1 >conftest.err
16045 rm -f conftest.er1
16046 cat conftest.err >&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } &&
16049 { ac_try='test -z "$ac_c_werror_flag"
16050 || test ! -s conftest.err'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } &&
16056 { ac_try='test -s conftest$ac_exeext'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 eval "$as_ac_var=yes"
16063 else
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 eval "$as_ac_var=no"
16068 fi
16069 rm -f conftest.err conftest.$ac_objext \
16070 conftest$ac_exeext conftest.$ac_ext
16071 fi
16072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16074 if test `eval echo '${'$as_ac_var'}'` = yes; then
16075 cat >>confdefs.h <<_ACEOF
16076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16077 _ACEOF
16078
16079 fi
16080 done
16081
16082
16083 for ac_func in wborder
16084 do
16085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16086 echo "$as_me:$LINENO: checking for $ac_func" >&5
16087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16088 if eval "test \"\${$as_ac_var+set}\" = set"; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090 else
16091 cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h. */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16099 #define $ac_func innocuous_$ac_func
16100
16101 /* System header to define __stub macros and hopefully few prototypes,
16102 which can conflict with char $ac_func (); below.
16103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16104 <limits.h> exists even on freestanding compilers. */
16105
16106 #ifdef __STDC__
16107 # include <limits.h>
16108 #else
16109 # include <assert.h>
16110 #endif
16111
16112 #undef $ac_func
16113
16114 /* Override any gcc2 internal prototype to avoid an error. */
16115 #ifdef __cplusplus
16116 extern "C"
16117 {
16118 #endif
16119 /* We use char because int might match the return type of a gcc2
16120 builtin and then its argument prototype would still apply. */
16121 char $ac_func ();
16122 /* The GNU C library defines this for functions which it implements
16123 to always fail with ENOSYS. Some functions are actually named
16124 something starting with __ and the normal name is an alias. */
16125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16126 choke me
16127 #else
16128 char (*f) () = $ac_func;
16129 #endif
16130 #ifdef __cplusplus
16131 }
16132 #endif
16133
16134 int
16135 main ()
16136 {
16137 return f != $ac_func;
16138 ;
16139 return 0;
16140 }
16141 _ACEOF
16142 rm -f conftest.$ac_objext conftest$ac_exeext
16143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16144 (eval $ac_link) 2>conftest.er1
16145 ac_status=$?
16146 grep -v '^ *+' conftest.er1 >conftest.err
16147 rm -f conftest.er1
16148 cat conftest.err >&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -z "$ac_c_werror_flag"
16152 || test ! -s conftest.err'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; } &&
16158 { ac_try='test -s conftest$ac_exeext'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
16164 eval "$as_ac_var=yes"
16165 else
16166 echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16168
16169 eval "$as_ac_var=no"
16170 fi
16171 rm -f conftest.err conftest.$ac_objext \
16172 conftest$ac_exeext conftest.$ac_ext
16173 fi
16174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16176 if test `eval echo '${'$as_ac_var'}'` = yes; then
16177 cat >>confdefs.h <<_ACEOF
16178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16179 _ACEOF
16180
16181 fi
16182 done
16183
16184
16185 # Check the return and argument types of ptrace. No canned test for
16186 # this, so roll our own.
16187 gdb_ptrace_headers='
16188 #if HAVE_SYS_TYPES_H
16189 # include <sys/types.h>
16190 #endif
16191 #if HAVE_SYS_PTRACE_H
16192 # include <sys/ptrace.h>
16193 #endif
16194 #if HAVE_UNISTD_H
16195 # include <unistd.h>
16196 #endif
16197 '
16198 # There is no point in checking if we don't have a prototype.
16199 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16200 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16201 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 else
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h. */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 $gdb_ptrace_headers
16211
16212 int
16213 main ()
16214 {
16215 #ifndef ptrace
16216 char *p = (char *) ptrace;
16217 #endif
16218
16219 ;
16220 return 0;
16221 }
16222 _ACEOF
16223 rm -f conftest.$ac_objext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest.$ac_objext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245 ac_cv_have_decl_ptrace=yes
16246 else
16247 echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16249
16250 ac_cv_have_decl_ptrace=no
16251 fi
16252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16253 fi
16254 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16255 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16256 if test $ac_cv_have_decl_ptrace = yes; then
16257
16258 cat >>confdefs.h <<_ACEOF
16259 #define HAVE_DECL_PTRACE 1
16260 _ACEOF
16261
16262
16263 else
16264 cat >>confdefs.h <<_ACEOF
16265 #define HAVE_DECL_PTRACE 0
16266 _ACEOF
16267
16268
16269 : ${gdb_cv_func_ptrace_ret='int'}
16270 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16271
16272 fi
16273
16274
16275 # Check return type.
16276 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16277 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16278 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 else
16281 cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h. */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 $gdb_ptrace_headers
16288 int
16289 main ()
16290 {
16291 extern int ptrace ();
16292 ;
16293 return 0;
16294 }
16295 _ACEOF
16296 rm -f conftest.$ac_objext
16297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16298 (eval $ac_compile) 2>conftest.er1
16299 ac_status=$?
16300 grep -v '^ *+' conftest.er1 >conftest.err
16301 rm -f conftest.er1
16302 cat conftest.err >&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } &&
16305 { ac_try='test -z "$ac_c_werror_flag"
16306 || test ! -s conftest.err'
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; } &&
16312 { ac_try='test -s conftest.$ac_objext'
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 gdb_cv_func_ptrace_ret='int'
16319 else
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16322
16323 gdb_cv_func_ptrace_ret='long'
16324 fi
16325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16326 fi
16327 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16328 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16329
16330 cat >>confdefs.h <<_ACEOF
16331 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16332 _ACEOF
16333
16334 # Check argument types.
16335 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16336 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16337 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 else
16340
16341 for gdb_arg1 in 'int' 'long'; do
16342 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16343 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16344 for gdb_arg4 in 'int' 'long'; do
16345 cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h. */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16351 $gdb_ptrace_headers
16352 int
16353 main ()
16354 {
16355
16356 extern $gdb_cv_func_ptrace_ret
16357 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16358
16359 ;
16360 return 0;
16361 }
16362 _ACEOF
16363 rm -f conftest.$ac_objext
16364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16365 (eval $ac_compile) 2>conftest.er1
16366 ac_status=$?
16367 grep -v '^ *+' conftest.er1 >conftest.err
16368 rm -f conftest.er1
16369 cat conftest.err >&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } &&
16372 { ac_try='test -z "$ac_c_werror_flag"
16373 || test ! -s conftest.err'
16374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 (eval $ac_try) 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; } &&
16379 { ac_try='test -s conftest.$ac_objext'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
16385 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16386 break 4;
16387 else
16388 echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16390
16391 fi
16392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16393 for gdb_arg5 in 'int *' 'int' 'long'; do
16394 cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h. */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 $gdb_ptrace_headers
16401 int
16402 main ()
16403 {
16404
16405 extern $gdb_cv_func_ptrace_ret
16406 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16407
16408 ;
16409 return 0;
16410 }
16411 _ACEOF
16412 rm -f conftest.$ac_objext
16413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16414 (eval $ac_compile) 2>conftest.er1
16415 ac_status=$?
16416 grep -v '^ *+' conftest.er1 >conftest.err
16417 rm -f conftest.er1
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -z "$ac_c_werror_flag"
16422 || test ! -s conftest.err'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; } &&
16428 { ac_try='test -s conftest.$ac_objext'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16431 ac_status=$?
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434
16435 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16436 break 5;
16437 else
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 fi
16442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16443 done
16444 done
16445 done
16446 done
16447 done
16448 # Provide a safe default value.
16449 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16450
16451 fi
16452 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16453 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16454 ac_save_IFS=$IFS; IFS=','
16455 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16456 IFS=$ac_save_IFS
16457 shift
16458
16459 cat >>confdefs.h <<_ACEOF
16460 #define PTRACE_TYPE_ARG3 $3
16461 _ACEOF
16462
16463 if test -n "$5"; then
16464
16465 cat >>confdefs.h <<_ACEOF
16466 #define PTRACE_TYPE_ARG5 $5
16467 _ACEOF
16468
16469 fi
16470
16471 if test "$cross_compiling" = no; then
16472 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16473 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16474 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477 if test "$cross_compiling" = yes; then
16478 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16479 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16480 { (exit 1); exit 1; }; }
16481 else
16482 cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h. */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 #if HAVE_UNISTD_H
16489 # include <unistd.h>
16490 #endif
16491
16492 int
16493 main ()
16494 {
16495 /* If this system has a BSD-style setpgrp which takes arguments,
16496 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16497 exit successfully. */
16498 exit (setpgrp (1,1) == -1 ? 0 : 1);
16499 ;
16500 return 0;
16501 }
16502 _ACEOF
16503 rm -f conftest$ac_exeext
16504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16505 (eval $ac_link) 2>&5
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16514 ac_cv_func_setpgrp_void=no
16515 else
16516 echo "$as_me: program exited with status $ac_status" >&5
16517 echo "$as_me: failed program was:" >&5
16518 sed 's/^/| /' conftest.$ac_ext >&5
16519
16520 ( exit $ac_status )
16521 ac_cv_func_setpgrp_void=yes
16522 fi
16523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16524 fi
16525 fi
16526 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16527 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16528 if test $ac_cv_func_setpgrp_void = yes; then
16529
16530 cat >>confdefs.h <<\_ACEOF
16531 #define SETPGRP_VOID 1
16532 _ACEOF
16533
16534 fi
16535
16536 else
16537 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16538 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16539 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
16541 else
16542 cat >conftest.$ac_ext <<_ACEOF
16543 /* confdefs.h. */
16544 _ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16548
16549 #include <unistd.h>
16550
16551 int
16552 main ()
16553 {
16554
16555 if (setpgrp(1,1) == -1)
16556 exit (0);
16557 else
16558 exit (1);
16559
16560 ;
16561 return 0;
16562 }
16563 _ACEOF
16564 rm -f conftest.$ac_objext
16565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16566 (eval $ac_compile) 2>conftest.er1
16567 ac_status=$?
16568 grep -v '^ *+' conftest.er1 >conftest.err
16569 rm -f conftest.er1
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try='test -z "$ac_c_werror_flag"
16574 || test ! -s conftest.err'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try='test -s conftest.$ac_objext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_func_setpgrp_void=no
16587 else
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 ac_cv_func_setpgrp_void=yes
16592 fi
16593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16594 fi
16595 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16596 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16597 if test $ac_cv_func_setpgrp_void = yes; then
16598 cat >>confdefs.h <<\_ACEOF
16599 #define SETPGRP_VOID 1
16600 _ACEOF
16601
16602 fi
16603 fi
16604
16605 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16606 # since sigsetjmp might only be defined as a macro.
16607 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16608 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16609 if test "${gdb_cv_func_sigsetjmp+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
16619 #include <setjmp.h>
16620
16621 int
16622 main ()
16623 {
16624 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16625 ;
16626 return 0;
16627 }
16628 _ACEOF
16629 rm -f conftest.$ac_objext
16630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16631 (eval $ac_compile) 2>conftest.er1
16632 ac_status=$?
16633 grep -v '^ *+' conftest.er1 >conftest.err
16634 rm -f conftest.er1
16635 cat conftest.err >&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
16638 { ac_try='test -z "$ac_c_werror_flag"
16639 || test ! -s conftest.err'
16640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16641 (eval $ac_try) 2>&5
16642 ac_status=$?
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); }; } &&
16645 { ac_try='test -s conftest.$ac_objext'
16646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 gdb_cv_func_sigsetjmp=yes
16652 else
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16655
16656 gdb_cv_func_sigsetjmp=no
16657 fi
16658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16659 fi
16660 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16661 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16662 if test $gdb_cv_func_sigsetjmp = yes; then
16663
16664 cat >>confdefs.h <<\_ACEOF
16665 #define HAVE_SIGSETJMP 1
16666 _ACEOF
16667
16668 fi
16669
16670 # Assume we'll default to using the included libiberty regex.
16671 gdb_use_included_regex=yes
16672
16673 # However, if the system regex is GNU regex, then default to *not*
16674 # using the included regex.
16675 echo "$as_me:$LINENO: checking for GNU regex" >&5
16676 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16677 if test "${gdb_cv_have_gnu_regex+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 <gnu-versions.h>
16687 int
16688 main ()
16689 {
16690 #define REGEX_INTERFACE_VERSION 1
16691 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16692 # error "Version mismatch"
16693 #endif
16694 ;
16695 return 0;
16696 }
16697 _ACEOF
16698 rm -f conftest.$ac_objext
16699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700 (eval $ac_compile) 2>conftest.er1
16701 ac_status=$?
16702 grep -v '^ *+' conftest.er1 >conftest.err
16703 rm -f conftest.er1
16704 cat conftest.err >&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); } &&
16707 { ac_try='test -z "$ac_c_werror_flag"
16708 || test ! -s conftest.err'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 gdb_cv_have_gnu_regex=yes
16721 else
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16724
16725 gdb_cv_have_gnu_regex=no
16726 fi
16727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16728 fi
16729 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16730 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16731 if test $gdb_cv_have_gnu_regex = yes; then
16732 gdb_use_included_regex=no
16733 fi
16734
16735
16736 # Check whether --with-included-regex or --without-included-regex was given.
16737 if test "${with_included_regex+set}" = set; then
16738 withval="$with_included_regex"
16739 gdb_with_regex=$withval
16740 else
16741 gdb_with_regex=$gdb_use_included_regex
16742 fi;
16743 if test "$gdb_with_regex" = yes; then
16744
16745 cat >>confdefs.h <<\_ACEOF
16746 #define USE_INCLUDED_REGEX 1
16747 _ACEOF
16748
16749 fi
16750
16751 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16752 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16753 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16754 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 else
16757 cat >conftest.$ac_ext <<_ACEOF
16758 /* confdefs.h. */
16759 _ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 #include <sys/param.h>
16764 #include <sys/proc.h>
16765
16766
16767 int
16768 main ()
16769 {
16770 static struct thread ac_aggr;
16771 if (ac_aggr.td_pcb)
16772 return 0;
16773 ;
16774 return 0;
16775 }
16776 _ACEOF
16777 rm -f conftest.$ac_objext
16778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16779 (eval $ac_compile) 2>conftest.er1
16780 ac_status=$?
16781 grep -v '^ *+' conftest.er1 >conftest.err
16782 rm -f conftest.er1
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } &&
16786 { ac_try='test -z "$ac_c_werror_flag"
16787 || test ! -s conftest.err'
16788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16790 ac_status=$?
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; } &&
16793 { ac_try='test -s conftest.$ac_objext'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; }; then
16799 ac_cv_member_struct_thread_td_pcb=yes
16800 else
16801 echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16803
16804 cat >conftest.$ac_ext <<_ACEOF
16805 /* confdefs.h. */
16806 _ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h. */
16810 #include <sys/param.h>
16811 #include <sys/proc.h>
16812
16813
16814 int
16815 main ()
16816 {
16817 static struct thread ac_aggr;
16818 if (sizeof ac_aggr.td_pcb)
16819 return 0;
16820 ;
16821 return 0;
16822 }
16823 _ACEOF
16824 rm -f conftest.$ac_objext
16825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16826 (eval $ac_compile) 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
16833 { ac_try='test -z "$ac_c_werror_flag"
16834 || test ! -s conftest.err'
16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; } &&
16840 { ac_try='test -s conftest.$ac_objext'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; }; then
16846 ac_cv_member_struct_thread_td_pcb=yes
16847 else
16848 echo "$as_me: failed program was:" >&5
16849 sed 's/^/| /' conftest.$ac_ext >&5
16850
16851 ac_cv_member_struct_thread_td_pcb=no
16852 fi
16853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16854 fi
16855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16856 fi
16857 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16858 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16859 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16860
16861 cat >>confdefs.h <<_ACEOF
16862 #define HAVE_STRUCT_THREAD_TD_PCB 1
16863 _ACEOF
16864
16865
16866 fi
16867
16868
16869 # See if <sys/lwp.h> defines `struct lwp`.
16870 echo "$as_me:$LINENO: checking for struct lwp" >&5
16871 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16872 if test "${gdb_cv_struct_lwp+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16874 else
16875 cat >conftest.$ac_ext <<_ACEOF
16876 /* confdefs.h. */
16877 _ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16881 #include <sys/param.h>
16882 #include <sys/lwp.h>
16883 int
16884 main ()
16885 {
16886 struct lwp l;
16887 ;
16888 return 0;
16889 }
16890 _ACEOF
16891 rm -f conftest.$ac_objext
16892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16893 (eval $ac_compile) 2>conftest.er1
16894 ac_status=$?
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } &&
16900 { ac_try='test -z "$ac_c_werror_flag"
16901 || test ! -s conftest.err'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; } &&
16907 { ac_try='test -s conftest.$ac_objext'
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 gdb_cv_struct_lwp=yes
16914 else
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918 gdb_cv_struct_lwp=no
16919 fi
16920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16921 fi
16922 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16923 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16924 if test $gdb_cv_struct_lwp = yes; then
16925
16926 cat >>confdefs.h <<\_ACEOF
16927 #define HAVE_STRUCT_LWP 1
16928 _ACEOF
16929
16930 fi
16931
16932 # See if <machine/reg.h> degines `struct reg'.
16933 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16934 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16935 if test "${gdb_cv_struct_reg+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h. */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 #include <sys/types.h>
16945 #include <machine/reg.h>
16946 int
16947 main ()
16948 {
16949 struct reg r;
16950 ;
16951 return 0;
16952 }
16953 _ACEOF
16954 rm -f conftest.$ac_objext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16956 (eval $ac_compile) 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag"
16964 || test ! -s conftest.err'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest.$ac_objext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 gdb_cv_struct_reg=yes
16977 else
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16980
16981 gdb_cv_struct_reg=no
16982 fi
16983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16984 fi
16985 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16986 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16987 if test $gdb_cv_struct_reg = yes; then
16988
16989 cat >>confdefs.h <<\_ACEOF
16990 #define HAVE_STRUCT_REG 1
16991 _ACEOF
16992
16993 fi
16994
16995 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16996 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16997 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16998 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16999 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002 cat >conftest.$ac_ext <<_ACEOF
17003 /* confdefs.h. */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17008 #include <machine/reg.h>
17009
17010 int
17011 main ()
17012 {
17013 static struct reg ac_aggr;
17014 if (ac_aggr.r_fs)
17015 return 0;
17016 ;
17017 return 0;
17018 }
17019 _ACEOF
17020 rm -f conftest.$ac_objext
17021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17022 (eval $ac_compile) 2>conftest.er1
17023 ac_status=$?
17024 grep -v '^ *+' conftest.er1 >conftest.err
17025 rm -f conftest.er1
17026 cat conftest.err >&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } &&
17029 { ac_try='test -z "$ac_c_werror_flag"
17030 || test ! -s conftest.err'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; } &&
17036 { ac_try='test -s conftest.$ac_objext'
17037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038 (eval $ac_try) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 ac_cv_member_struct_reg_r_fs=yes
17043 else
17044 echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17046
17047 cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h. */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17053 #include <machine/reg.h>
17054
17055 int
17056 main ()
17057 {
17058 static struct reg ac_aggr;
17059 if (sizeof ac_aggr.r_fs)
17060 return 0;
17061 ;
17062 return 0;
17063 }
17064 _ACEOF
17065 rm -f conftest.$ac_objext
17066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17067 (eval $ac_compile) 2>conftest.er1
17068 ac_status=$?
17069 grep -v '^ *+' conftest.er1 >conftest.err
17070 rm -f conftest.er1
17071 cat conftest.err >&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } &&
17074 { ac_try='test -z "$ac_c_werror_flag"
17075 || test ! -s conftest.err'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17078 ac_status=$?
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; } &&
17081 { ac_try='test -s conftest.$ac_objext'
17082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083 (eval $ac_try) 2>&5
17084 ac_status=$?
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; }; then
17087 ac_cv_member_struct_reg_r_fs=yes
17088 else
17089 echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17091
17092 ac_cv_member_struct_reg_r_fs=no
17093 fi
17094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17095 fi
17096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17097 fi
17098 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17099 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17100 if test $ac_cv_member_struct_reg_r_fs = yes; then
17101
17102 cat >>confdefs.h <<_ACEOF
17103 #define HAVE_STRUCT_REG_R_FS 1
17104 _ACEOF
17105
17106
17107 fi
17108 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17109 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17110 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113 cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h. */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 #include <machine/reg.h>
17120
17121 int
17122 main ()
17123 {
17124 static struct reg ac_aggr;
17125 if (ac_aggr.r_gs)
17126 return 0;
17127 ;
17128 return 0;
17129 }
17130 _ACEOF
17131 rm -f conftest.$ac_objext
17132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17133 (eval $ac_compile) 2>conftest.er1
17134 ac_status=$?
17135 grep -v '^ *+' conftest.er1 >conftest.err
17136 rm -f conftest.er1
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -z "$ac_c_werror_flag"
17141 || test ! -s conftest.err'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest.$ac_objext'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 ac_cv_member_struct_reg_r_gs=yes
17154 else
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17157
17158 cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h. */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 #include <machine/reg.h>
17165
17166 int
17167 main ()
17168 {
17169 static struct reg ac_aggr;
17170 if (sizeof ac_aggr.r_gs)
17171 return 0;
17172 ;
17173 return 0;
17174 }
17175 _ACEOF
17176 rm -f conftest.$ac_objext
17177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17178 (eval $ac_compile) 2>conftest.er1
17179 ac_status=$?
17180 grep -v '^ *+' conftest.er1 >conftest.err
17181 rm -f conftest.er1
17182 cat conftest.err >&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); } &&
17185 { ac_try='test -z "$ac_c_werror_flag"
17186 || test ! -s conftest.err'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; } &&
17192 { ac_try='test -s conftest.$ac_objext'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_cv_member_struct_reg_r_gs=yes
17199 else
17200 echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17202
17203 ac_cv_member_struct_reg_r_gs=no
17204 fi
17205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17206 fi
17207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17208 fi
17209 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17210 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17211 if test $ac_cv_member_struct_reg_r_gs = yes; then
17212
17213 cat >>confdefs.h <<_ACEOF
17214 #define HAVE_STRUCT_REG_R_GS 1
17215 _ACEOF
17216
17217
17218 fi
17219
17220
17221 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17222 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17223 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17224 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227 cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h. */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 #include <sys/ptrace.h>
17234 int
17235 main ()
17236 {
17237 PTRACE_GETREGS;
17238 ;
17239 return 0;
17240 }
17241 _ACEOF
17242 rm -f conftest.$ac_objext
17243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17244 (eval $ac_compile) 2>conftest.er1
17245 ac_status=$?
17246 grep -v '^ *+' conftest.er1 >conftest.err
17247 rm -f conftest.er1
17248 cat conftest.err >&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
17251 { ac_try='test -z "$ac_c_werror_flag"
17252 || test ! -s conftest.err'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest.$ac_objext'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 gdb_cv_have_ptrace_getregs=yes
17265 else
17266 echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17268
17269 gdb_cv_have_ptrace_getregs=no
17270 fi
17271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17272 fi
17273
17274 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17275 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17276 if test $gdb_cv_have_ptrace_getregs = yes; then
17277 cat >>confdefs.h <<\_ACEOF
17278 #define HAVE_PTRACE_GETREGS 1
17279 _ACEOF
17280
17281 fi
17282
17283 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17284 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17285 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17286 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289 cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h. */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17295 #include <sys/ptrace.h>
17296 int
17297 main ()
17298 {
17299 PTRACE_GETFPXREGS;
17300 ;
17301 return 0;
17302 }
17303 _ACEOF
17304 rm -f conftest.$ac_objext
17305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17306 (eval $ac_compile) 2>conftest.er1
17307 ac_status=$?
17308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try='test -z "$ac_c_werror_flag"
17314 || test ! -s conftest.err'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; } &&
17320 { ac_try='test -s conftest.$ac_objext'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 gdb_cv_have_ptrace_getfpxregs=yes
17327 else
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17330
17331 gdb_cv_have_ptrace_getfpxregs=no
17332 fi
17333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17334 fi
17335
17336 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17337 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17338 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17339 cat >>confdefs.h <<\_ACEOF
17340 #define HAVE_PTRACE_GETFPXREGS 1
17341 _ACEOF
17342
17343 fi
17344
17345 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17346 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17347 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17348 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17349 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 else
17351 cat >conftest.$ac_ext <<_ACEOF
17352 /* confdefs.h. */
17353 _ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17357 #include <sys/types.h>
17358 #include <sys/ptrace.h>
17359 int
17360 main ()
17361 {
17362 PT_GETDBREGS;
17363 ;
17364 return 0;
17365 }
17366 _ACEOF
17367 rm -f conftest.$ac_objext
17368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17369 (eval $ac_compile) 2>conftest.er1
17370 ac_status=$?
17371 grep -v '^ *+' conftest.er1 >conftest.err
17372 rm -f conftest.er1
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } &&
17376 { ac_try='test -z "$ac_c_werror_flag"
17377 || test ! -s conftest.err'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; } &&
17383 { ac_try='test -s conftest.$ac_objext'
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; }; then
17389 gdb_cv_have_pt_getdbregs=yes
17390 else
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17393
17394 gdb_cv_have_pt_getdbregs=no
17395 fi
17396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17397 fi
17398
17399 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17400 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17401 if test $gdb_cv_have_pt_getdbregs = yes; then
17402 cat >>confdefs.h <<\_ACEOF
17403 #define HAVE_PT_GETDBREGS 1
17404 _ACEOF
17405
17406 fi
17407
17408 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17409 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17410 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17411 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17413 else
17414 cat >conftest.$ac_ext <<_ACEOF
17415 /* confdefs.h. */
17416 _ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17420 #include <sys/types.h>
17421 #include <sys/ptrace.h>
17422 int
17423 main ()
17424 {
17425 PT_GETXMMREGS;
17426 ;
17427 return 0;
17428 }
17429 _ACEOF
17430 rm -f conftest.$ac_objext
17431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17432 (eval $ac_compile) 2>conftest.er1
17433 ac_status=$?
17434 grep -v '^ *+' conftest.er1 >conftest.err
17435 rm -f conftest.er1
17436 cat conftest.err >&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } &&
17439 { ac_try='test -z "$ac_c_werror_flag"
17440 || test ! -s conftest.err'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; } &&
17446 { ac_try='test -s conftest.$ac_objext'
17447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448 (eval $ac_try) 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 gdb_cv_have_pt_getxmmregs=yes
17453 else
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17456
17457 gdb_cv_have_pt_getxmmregs=no
17458 fi
17459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17460 fi
17461
17462 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17463 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17464 if test $gdb_cv_have_pt_getxmmregs = yes; then
17465 cat >>confdefs.h <<\_ACEOF
17466 #define HAVE_PT_GETXMMREGS 1
17467 _ACEOF
17468
17469 fi
17470
17471 # See if stdint.h provides the uintptr_t type.
17472 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
17473 echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
17474 echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
17475 if test "${gdb_cv_have_uintptr_t+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 else
17478 cat >conftest.$ac_ext <<_ACEOF
17479 /* confdefs.h. */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17484 #include <stdint.h>
17485 int
17486 main ()
17487 {
17488 uintptr_t foo = 0;
17489 ;
17490 return 0;
17491 }
17492 _ACEOF
17493 rm -f conftest.$ac_objext
17494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17495 (eval $ac_compile) 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
17502 { ac_try='test -z "$ac_c_werror_flag"
17503 || test ! -s conftest.err'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17506 ac_status=$?
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; } &&
17509 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17515 gdb_cv_have_uintptr_t=yes
17516 else
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17519
17520 gdb_cv_have_uintptr_t=no
17521 fi
17522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17523 fi
17524 echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
17525 echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
17526 if test $gdb_cv_have_uintptr_t = yes; then
17527
17528 cat >>confdefs.h <<\_ACEOF
17529 #define HAVE_UINTPTR_T 1
17530 _ACEOF
17531
17532 fi
17533
17534 # If we are configured native on GNU/Linux, work around problems with
17535 # sys/procfs.h
17536 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
17537
17538 if test "${target}" = "${host}"; then
17539 case "${host}" in
17540 i[3456]86-*-linux*)
17541 cat >>confdefs.h <<\_ACEOF
17542 #define START_INFERIOR_TRAPS_EXPECTED 2
17543 _ACEOF
17544
17545 cat >>confdefs.h <<\_ACEOF
17546 #define sys_quotactl 1
17547 _ACEOF
17548
17549 ;;
17550 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17551 cat >>confdefs.h <<\_ACEOF
17552 #define NEW_PROC_API 1
17553 _ACEOF
17554
17555 ;;
17556 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17557 cat >>confdefs.h <<\_ACEOF
17558 #define NEW_PROC_API 1
17559 _ACEOF
17560
17561 ;;
17562 mips-sgi-irix5*)
17563 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17564 cat >>confdefs.h <<\_ACEOF
17565 #define _KMEMUSER 1
17566 _ACEOF
17567
17568 ;;
17569 esac
17570 fi
17571
17572 if test "$ac_cv_header_sys_procfs_h" = yes; then
17573 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17574 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17575 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17577 else
17578 cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h. */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17584
17585 #define _SYSCALL32
17586 #include <sys/procfs.h>
17587 int
17588 main ()
17589 {
17590 pstatus_t avar
17591 ;
17592 return 0;
17593 }
17594 _ACEOF
17595 rm -f conftest.$ac_objext
17596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17597 (eval $ac_compile) 2>conftest.er1
17598 ac_status=$?
17599 grep -v '^ *+' conftest.er1 >conftest.err
17600 rm -f conftest.er1
17601 cat conftest.err >&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); } &&
17604 { ac_try='test -z "$ac_c_werror_flag"
17605 || test ! -s conftest.err'
17606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607 (eval $ac_try) 2>&5
17608 ac_status=$?
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; } &&
17611 { ac_try='test -s conftest.$ac_objext'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17618 else
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17621
17622 bfd_cv_have_sys_procfs_type_pstatus_t=no
17623
17624 fi
17625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17626 fi
17627
17628 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17629
17630 cat >>confdefs.h <<\_ACEOF
17631 #define HAVE_PSTATUS_T 1
17632 _ACEOF
17633
17634 fi
17635 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17636 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17637
17638 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17639 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17640 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17642 else
17643 cat >conftest.$ac_ext <<_ACEOF
17644 /* confdefs.h. */
17645 _ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h. */
17649
17650 #define _SYSCALL32
17651 #include <sys/procfs.h>
17652 int
17653 main ()
17654 {
17655 prrun_t avar
17656 ;
17657 return 0;
17658 }
17659 _ACEOF
17660 rm -f conftest.$ac_objext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17662 (eval $ac_compile) 2>conftest.er1
17663 ac_status=$?
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
17669 { ac_try='test -z "$ac_c_werror_flag"
17670 || test ! -s conftest.err'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest.$ac_objext'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 bfd_cv_have_sys_procfs_type_prrun_t=yes
17683 else
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687 bfd_cv_have_sys_procfs_type_prrun_t=no
17688
17689 fi
17690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17691 fi
17692
17693 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17694
17695 cat >>confdefs.h <<\_ACEOF
17696 #define HAVE_PRRUN_T 1
17697 _ACEOF
17698
17699 fi
17700 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17701 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17702
17703 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17704 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17705 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 else
17708 cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h. */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714
17715 #define _SYSCALL32
17716 #include <sys/procfs.h>
17717 int
17718 main ()
17719 {
17720 gregset_t avar
17721 ;
17722 return 0;
17723 }
17724 _ACEOF
17725 rm -f conftest.$ac_objext
17726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17727 (eval $ac_compile) 2>conftest.er1
17728 ac_status=$?
17729 grep -v '^ *+' conftest.er1 >conftest.err
17730 rm -f conftest.er1
17731 cat conftest.err >&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } &&
17734 { ac_try='test -z "$ac_c_werror_flag"
17735 || test ! -s conftest.err'
17736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737 (eval $ac_try) 2>&5
17738 ac_status=$?
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; } &&
17741 { ac_try='test -s conftest.$ac_objext'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
17747 bfd_cv_have_sys_procfs_type_gregset_t=yes
17748 else
17749 echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17751
17752 bfd_cv_have_sys_procfs_type_gregset_t=no
17753
17754 fi
17755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17756 fi
17757
17758 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17759
17760 cat >>confdefs.h <<\_ACEOF
17761 #define HAVE_GREGSET_T 1
17762 _ACEOF
17763
17764 fi
17765 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17766 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17767
17768 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17769 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17770 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17771 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 else
17773 cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h. */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779
17780 #define _SYSCALL32
17781 #include <sys/procfs.h>
17782 int
17783 main ()
17784 {
17785 fpregset_t avar
17786 ;
17787 return 0;
17788 }
17789 _ACEOF
17790 rm -f conftest.$ac_objext
17791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17792 (eval $ac_compile) 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
17799 { ac_try='test -z "$ac_c_werror_flag"
17800 || test ! -s conftest.err'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; } &&
17806 { ac_try='test -s conftest.$ac_objext'
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; }; then
17812 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17813 else
17814 echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17816
17817 bfd_cv_have_sys_procfs_type_fpregset_t=no
17818
17819 fi
17820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17821 fi
17822
17823 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17824
17825 cat >>confdefs.h <<\_ACEOF
17826 #define HAVE_FPREGSET_T 1
17827 _ACEOF
17828
17829 fi
17830 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17831 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17832
17833 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17834 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17835 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 else
17838 cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h. */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844
17845 #define _SYSCALL32
17846 #include <sys/procfs.h>
17847 int
17848 main ()
17849 {
17850 prgregset_t avar
17851 ;
17852 return 0;
17853 }
17854 _ACEOF
17855 rm -f conftest.$ac_objext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857 (eval $ac_compile) 2>conftest.er1
17858 ac_status=$?
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try='test -z "$ac_c_werror_flag"
17865 || test ! -s conftest.err'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17868 ac_status=$?
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; } &&
17871 { ac_try='test -s conftest.$ac_objext'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; }; then
17877 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17878 else
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17881
17882 bfd_cv_have_sys_procfs_type_prgregset_t=no
17883
17884 fi
17885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17886 fi
17887
17888 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17889
17890 cat >>confdefs.h <<\_ACEOF
17891 #define HAVE_PRGREGSET_T 1
17892 _ACEOF
17893
17894 fi
17895 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17896 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17897
17898 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17899 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17900 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903 cat >conftest.$ac_ext <<_ACEOF
17904 /* confdefs.h. */
17905 _ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h. */
17909
17910 #define _SYSCALL32
17911 #include <sys/procfs.h>
17912 int
17913 main ()
17914 {
17915 prfpregset_t avar
17916 ;
17917 return 0;
17918 }
17919 _ACEOF
17920 rm -f conftest.$ac_objext
17921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17922 (eval $ac_compile) 2>conftest.er1
17923 ac_status=$?
17924 grep -v '^ *+' conftest.er1 >conftest.err
17925 rm -f conftest.er1
17926 cat conftest.err >&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } &&
17929 { ac_try='test -z "$ac_c_werror_flag"
17930 || test ! -s conftest.err'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; } &&
17936 { ac_try='test -s conftest.$ac_objext'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17943 else
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17946
17947 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17948
17949 fi
17950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17951 fi
17952
17953 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17954
17955 cat >>confdefs.h <<\_ACEOF
17956 #define HAVE_PRFPREGSET_T 1
17957 _ACEOF
17958
17959 fi
17960 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17961 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17962
17963 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17964 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17965 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17967 else
17968 cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h. */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17974
17975 #define _SYSCALL32
17976 #include <sys/procfs.h>
17977 int
17978 main ()
17979 {
17980 prgregset32_t avar
17981 ;
17982 return 0;
17983 }
17984 _ACEOF
17985 rm -f conftest.$ac_objext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17987 (eval $ac_compile) 2>conftest.er1
17988 ac_status=$?
17989 grep -v '^ *+' conftest.er1 >conftest.err
17990 rm -f conftest.er1
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try='test -z "$ac_c_werror_flag"
17995 || test ! -s conftest.err'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
18008 else
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18011
18012 bfd_cv_have_sys_procfs_type_prgregset32_t=no
18013
18014 fi
18015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18016 fi
18017
18018 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
18019
18020 cat >>confdefs.h <<\_ACEOF
18021 #define HAVE_PRGREGSET32_T 1
18022 _ACEOF
18023
18024 fi
18025 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18026 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
18027
18028 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18029 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18030 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 else
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h. */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039
18040 #define _SYSCALL32
18041 #include <sys/procfs.h>
18042 int
18043 main ()
18044 {
18045 prfpregset32_t avar
18046 ;
18047 return 0;
18048 }
18049 _ACEOF
18050 rm -f conftest.$ac_objext
18051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18052 (eval $ac_compile) 2>conftest.er1
18053 ac_status=$?
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try='test -z "$ac_c_werror_flag"
18060 || test ! -s conftest.err'
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; } &&
18066 { ac_try='test -s conftest.$ac_objext'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
18073 else
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18076
18077 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18078
18079 fi
18080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18081 fi
18082
18083 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
18084
18085 cat >>confdefs.h <<\_ACEOF
18086 #define HAVE_PRFPREGSET32_T 1
18087 _ACEOF
18088
18089 fi
18090 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18091 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18092
18093 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18094 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18095 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098 cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h. */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18104
18105 #define _SYSCALL32
18106 #include <sys/procfs.h>
18107 int
18108 main ()
18109 {
18110 lwpid_t avar
18111 ;
18112 return 0;
18113 }
18114 _ACEOF
18115 rm -f conftest.$ac_objext
18116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18117 (eval $ac_compile) 2>conftest.er1
18118 ac_status=$?
18119 grep -v '^ *+' conftest.er1 >conftest.err
18120 rm -f conftest.er1
18121 cat conftest.err >&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } &&
18124 { ac_try='test -z "$ac_c_werror_flag"
18125 || test ! -s conftest.err'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; } &&
18131 { ac_try='test -s conftest.$ac_objext'
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; }; then
18137 bfd_cv_have_sys_procfs_type_lwpid_t=yes
18138 else
18139 echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142 bfd_cv_have_sys_procfs_type_lwpid_t=no
18143
18144 fi
18145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18146 fi
18147
18148 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18149
18150 cat >>confdefs.h <<\_ACEOF
18151 #define HAVE_LWPID_T 1
18152 _ACEOF
18153
18154 fi
18155 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18156 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18157
18158 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18159 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18160 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18162 else
18163 cat >conftest.$ac_ext <<_ACEOF
18164 /* confdefs.h. */
18165 _ACEOF
18166 cat confdefs.h >>conftest.$ac_ext
18167 cat >>conftest.$ac_ext <<_ACEOF
18168 /* end confdefs.h. */
18169
18170 #define _SYSCALL32
18171 #include <sys/procfs.h>
18172 int
18173 main ()
18174 {
18175 psaddr_t avar
18176 ;
18177 return 0;
18178 }
18179 _ACEOF
18180 rm -f conftest.$ac_objext
18181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18182 (eval $ac_compile) 2>conftest.er1
18183 ac_status=$?
18184 grep -v '^ *+' conftest.er1 >conftest.err
18185 rm -f conftest.er1
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } &&
18189 { ac_try='test -z "$ac_c_werror_flag"
18190 || test ! -s conftest.err'
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; } &&
18196 { ac_try='test -s conftest.$ac_objext'
18197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18198 (eval $ac_try) 2>&5
18199 ac_status=$?
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
18202 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18203 else
18204 echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18206
18207 bfd_cv_have_sys_procfs_type_psaddr_t=no
18208
18209 fi
18210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18211 fi
18212
18213 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18214
18215 cat >>confdefs.h <<\_ACEOF
18216 #define HAVE_PSADDR_T 1
18217 _ACEOF
18218
18219 fi
18220 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18221 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18222
18223 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18224 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18225 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18227 else
18228 cat >conftest.$ac_ext <<_ACEOF
18229 /* confdefs.h. */
18230 _ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18234
18235 #define _SYSCALL32
18236 #include <sys/procfs.h>
18237 int
18238 main ()
18239 {
18240 prsysent_t avar
18241 ;
18242 return 0;
18243 }
18244 _ACEOF
18245 rm -f conftest.$ac_objext
18246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18247 (eval $ac_compile) 2>conftest.er1
18248 ac_status=$?
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 { ac_try='test -z "$ac_c_werror_flag"
18255 || test ! -s conftest.err'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest.$ac_objext'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18268 else
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18271
18272 bfd_cv_have_sys_procfs_type_prsysent_t=no
18273
18274 fi
18275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18276 fi
18277
18278 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18279
18280 cat >>confdefs.h <<\_ACEOF
18281 #define HAVE_PRSYSENT_T 1
18282 _ACEOF
18283
18284 fi
18285 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18286 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18287
18288 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18289 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18290 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18292 else
18293 cat >conftest.$ac_ext <<_ACEOF
18294 /* confdefs.h. */
18295 _ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h. */
18299
18300 #define _SYSCALL32
18301 #include <sys/procfs.h>
18302 int
18303 main ()
18304 {
18305 pr_sigset_t avar
18306 ;
18307 return 0;
18308 }
18309 _ACEOF
18310 rm -f conftest.$ac_objext
18311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18312 (eval $ac_compile) 2>conftest.er1
18313 ac_status=$?
18314 grep -v '^ *+' conftest.er1 >conftest.err
18315 rm -f conftest.er1
18316 cat conftest.err >&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } &&
18319 { ac_try='test -z "$ac_c_werror_flag"
18320 || test ! -s conftest.err'
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; } &&
18326 { ac_try='test -s conftest.$ac_objext'
18327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18328 (eval $ac_try) 2>&5
18329 ac_status=$?
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; }; then
18332 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18333 else
18334 echo "$as_me: failed program was:" >&5
18335 sed 's/^/| /' conftest.$ac_ext >&5
18336
18337 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18338
18339 fi
18340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18341 fi
18342
18343 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18344
18345 cat >>confdefs.h <<\_ACEOF
18346 #define HAVE_PR_SIGSET_T 1
18347 _ACEOF
18348
18349 fi
18350 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18351 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18352
18353 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18354 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18355 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18357 else
18358 cat >conftest.$ac_ext <<_ACEOF
18359 /* confdefs.h. */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18364
18365 #define _SYSCALL32
18366 #include <sys/procfs.h>
18367 int
18368 main ()
18369 {
18370 pr_sigaction64_t avar
18371 ;
18372 return 0;
18373 }
18374 _ACEOF
18375 rm -f conftest.$ac_objext
18376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18377 (eval $ac_compile) 2>conftest.er1
18378 ac_status=$?
18379 grep -v '^ *+' conftest.er1 >conftest.err
18380 rm -f conftest.er1
18381 cat conftest.err >&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
18384 { ac_try='test -z "$ac_c_werror_flag"
18385 || test ! -s conftest.err'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; } &&
18391 { ac_try='test -s conftest.$ac_objext'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18398 else
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18401
18402 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18403
18404 fi
18405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18406 fi
18407
18408 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18409
18410 cat >>confdefs.h <<\_ACEOF
18411 #define HAVE_PR_SIGACTION64_T 1
18412 _ACEOF
18413
18414 fi
18415 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18416 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18417
18418 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18419 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18420 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
18422 else
18423 cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h. */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18429
18430 #define _SYSCALL32
18431 #include <sys/procfs.h>
18432 int
18433 main ()
18434 {
18435 pr_siginfo64_t avar
18436 ;
18437 return 0;
18438 }
18439 _ACEOF
18440 rm -f conftest.$ac_objext
18441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18442 (eval $ac_compile) 2>conftest.er1
18443 ac_status=$?
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
18449 { ac_try='test -z "$ac_c_werror_flag"
18450 || test ! -s conftest.err'
18451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18452 (eval $ac_try) 2>&5
18453 ac_status=$?
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; } &&
18456 { ac_try='test -s conftest.$ac_objext'
18457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458 (eval $ac_try) 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; }; then
18462 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18463 else
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18466
18467 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18468
18469 fi
18470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18471 fi
18472
18473 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18474
18475 cat >>confdefs.h <<\_ACEOF
18476 #define HAVE_PR_SIGINFO64_T 1
18477 _ACEOF
18478
18479 fi
18480 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18481 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18482
18483
18484
18485
18486
18487 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18488 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18489 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18490 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18491 echo $ECHO_N "(cached) $ECHO_C" >&6
18492 else
18493 if test "$cross_compiling" = yes; then
18494 gdb_cv_prfpregset_t_broken=yes
18495 else
18496 cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h. */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h. */
18502 #include <sys/procfs.h>
18503 int main ()
18504 {
18505 if (sizeof (prfpregset_t) == sizeof (void *))
18506 return 1;
18507 return 0;
18508 }
18509 _ACEOF
18510 rm -f conftest$ac_exeext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18512 (eval $ac_link) 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517 (eval $ac_try) 2>&5
18518 ac_status=$?
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); }; }; then
18521 gdb_cv_prfpregset_t_broken=no
18522 else
18523 echo "$as_me: program exited with status $ac_status" >&5
18524 echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18526
18527 ( exit $ac_status )
18528 gdb_cv_prfpregset_t_broken=yes
18529 fi
18530 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18531 fi
18532 fi
18533
18534 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18535 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18536 if test $gdb_cv_prfpregset_t_broken = yes; then
18537 cat >>confdefs.h <<\_ACEOF
18538 #define PRFPREGSET_T_BROKEN 1
18539 _ACEOF
18540
18541 fi
18542 fi
18543
18544
18545 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18546 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18547 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18549 else
18550 cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h. */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556 #include <unistd.h>
18557 #include <sys/types.h>
18558 #include <sys/procfs.h>
18559
18560 int
18561 main ()
18562 {
18563
18564 int dummy;;
18565 dummy = ioctl(0, PIOCSET, &dummy);
18566
18567 ;
18568 return 0;
18569 }
18570 _ACEOF
18571 rm -f conftest.$ac_objext
18572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18573 (eval $ac_compile) 2>conftest.er1
18574 ac_status=$?
18575 grep -v '^ *+' conftest.er1 >conftest.err
18576 rm -f conftest.er1
18577 cat conftest.err >&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } &&
18580 { ac_try='test -z "$ac_c_werror_flag"
18581 || test ! -s conftest.err'
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; } &&
18587 { ac_try='test -s conftest.$ac_objext'
18588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589 (eval $ac_try) 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; }; then
18593 gdb_cv_have_procfs_piocset=yes
18594 else
18595 echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18597
18598 gdb_cv_have_procfs_piocset=no
18599 fi
18600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18601 fi
18602
18603 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18604 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18605 if test $gdb_cv_have_procfs_piocset = yes; then
18606 cat >>confdefs.h <<\_ACEOF
18607 #define HAVE_PROCFS_PIOCSET 1
18608 _ACEOF
18609
18610 fi
18611 fi
18612
18613 if test ${host} = ${target} ; then
18614
18615 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18616 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18617 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 else
18620 cat >conftest.$ac_ext <<_ACEOF
18621 /* confdefs.h. */
18622 _ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h. */
18626 #include <link.h>
18627 int
18628 main ()
18629 {
18630 struct link_map lm; (void) lm.l_addr;
18631 ;
18632 return 0;
18633 }
18634 _ACEOF
18635 rm -f conftest.$ac_objext
18636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18637 (eval $ac_compile) 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_objext'
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 gdb_cv_have_struct_link_map_with_l_members=yes
18658 else
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18661
18662 gdb_cv_have_struct_link_map_with_l_members=no
18663 fi
18664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18665 fi
18666
18667 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18668 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18669 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18670 cat >>confdefs.h <<\_ACEOF
18671 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18672 _ACEOF
18673
18674 fi
18675
18676
18677 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18678 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18679 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18680 echo $ECHO_N "(cached) $ECHO_C" >&6
18681 else
18682 cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h. */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 #include <sys/types.h>
18689 #include <link.h>
18690 int
18691 main ()
18692 {
18693 struct link_map lm; (void) lm.lm_addr;
18694 ;
18695 return 0;
18696 }
18697 _ACEOF
18698 rm -f conftest.$ac_objext
18699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18700 (eval $ac_compile) 2>conftest.er1
18701 ac_status=$?
18702 grep -v '^ *+' conftest.er1 >conftest.err
18703 rm -f conftest.er1
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } &&
18707 { ac_try='test -z "$ac_c_werror_flag"
18708 || test ! -s conftest.err'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; } &&
18714 { ac_try='test -s conftest.$ac_objext'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; }; then
18720 gdb_cv_have_struct_link_map_with_lm_members=yes
18721 else
18722 echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18724
18725 gdb_cv_have_struct_link_map_with_lm_members=no
18726 fi
18727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18728 fi
18729
18730 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18731 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18732 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18733 cat >>confdefs.h <<\_ACEOF
18734 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18735 _ACEOF
18736
18737 fi
18738
18739
18740 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18741 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18742 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 else
18745 cat >conftest.$ac_ext <<_ACEOF
18746 /* confdefs.h. */
18747 _ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18751 #include <sys/types.h>
18752 #ifdef HAVE_NLIST_H
18753 #include <nlist.h>
18754 #endif
18755 #include <link.h>
18756 int
18757 main ()
18758 {
18759 struct so_map lm; (void) lm.som_addr;
18760 ;
18761 return 0;
18762 }
18763 _ACEOF
18764 rm -f conftest.$ac_objext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18766 (eval $ac_compile) 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
18773 { ac_try='test -z "$ac_c_werror_flag"
18774 || test ! -s conftest.err'
18775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776 (eval $ac_try) 2>&5
18777 ac_status=$?
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; } &&
18780 { ac_try='test -s conftest.$ac_objext'
18781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782 (eval $ac_try) 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; }; then
18786 gdb_cv_have_struct_so_map_with_som_members=yes
18787 else
18788 echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18790
18791 gdb_cv_have_struct_so_map_with_som_members=no
18792 fi
18793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18794 fi
18795
18796 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18797 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18798 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18799 cat >>confdefs.h <<\_ACEOF
18800 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18801 _ACEOF
18802
18803 fi
18804
18805
18806 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18807 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18808 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18810 else
18811 cat >conftest.$ac_ext <<_ACEOF
18812 /* confdefs.h. */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18817 #define _SYSCALL32
18818 #include <sys/link.h>
18819 int
18820 main ()
18821 {
18822 struct link_map32 l;
18823 ;
18824 return 0;
18825 }
18826 _ACEOF
18827 rm -f conftest.$ac_objext
18828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18829 (eval $ac_compile) 2>conftest.er1
18830 ac_status=$?
18831 grep -v '^ *+' conftest.er1 >conftest.err
18832 rm -f conftest.er1
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
18836 { ac_try='test -z "$ac_c_werror_flag"
18837 || test ! -s conftest.err'
18838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18839 (eval $ac_try) 2>&5
18840 ac_status=$?
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }; } &&
18843 { ac_try='test -s conftest.$ac_objext'
18844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845 (eval $ac_try) 2>&5
18846 ac_status=$?
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; }; then
18849 gdb_cv_have_struct_link_map32=yes
18850 else
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18853
18854 gdb_cv_have_struct_link_map32=no
18855 fi
18856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18857 fi
18858
18859 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18860 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18861 if test $gdb_cv_have_struct_link_map32 = yes; then
18862 cat >>confdefs.h <<\_ACEOF
18863 #define HAVE_STRUCT_LINK_MAP32 1
18864 _ACEOF
18865
18866 cat >>confdefs.h <<\_ACEOF
18867 #define _SYSCALL32 1
18868 _ACEOF
18869
18870 fi
18871 fi
18872
18873 # Check if the compiler supports the `long long' type.
18874
18875 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18876 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18877 if test "${gdb_cv_c_long_long+set}" = set; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18879 else
18880 cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h. */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886 extern long long foo;
18887 int
18888 main ()
18889 {
18890 switch (foo & 2) { case 0: return 1; }
18891 ;
18892 return 0;
18893 }
18894 _ACEOF
18895 rm -f conftest.$ac_objext
18896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18897 (eval $ac_compile) 2>conftest.er1
18898 ac_status=$?
18899 grep -v '^ *+' conftest.er1 >conftest.err
18900 rm -f conftest.er1
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } &&
18904 { ac_try='test -z "$ac_c_werror_flag"
18905 || test ! -s conftest.err'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18908 ac_status=$?
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; } &&
18911 { ac_try='test -s conftest.$ac_objext'
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18914 ac_status=$?
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18917 gdb_cv_c_long_long=yes
18918 else
18919 echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18921
18922 gdb_cv_c_long_long=no
18923 fi
18924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18925 fi
18926 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18927 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18928 if test $gdb_cv_c_long_long = yes; then
18929
18930 cat >>confdefs.h <<\_ACEOF
18931 #define CC_HAS_LONG_LONG 1
18932 _ACEOF
18933
18934 fi
18935
18936 # Check if the compiler and runtime support printing long longs.
18937
18938 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18939 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18940 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
18942 else
18943 if test "$cross_compiling" = yes; then
18944 gdb_cv_printf_has_long_long=no
18945 else
18946 cat >conftest.$ac_ext <<_ACEOF
18947 /* confdefs.h. */
18948 _ACEOF
18949 cat confdefs.h >>conftest.$ac_ext
18950 cat >>conftest.$ac_ext <<_ACEOF
18951 /* end confdefs.h. */
18952 $ac_includes_default
18953 int
18954 main ()
18955 {
18956 char buf[32];
18957 long long l = 0;
18958 l = (l << 16) + 0x0123;
18959 l = (l << 16) + 0x4567;
18960 l = (l << 16) + 0x89ab;
18961 l = (l << 16) + 0xcdef;
18962 sprintf (buf, "0x%016llx", l);
18963 return (strcmp ("0x0123456789abcdef", buf));
18964 ;
18965 return 0;
18966 }
18967 _ACEOF
18968 rm -f conftest$ac_exeext
18969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18970 (eval $ac_link) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; }; then
18979 gdb_cv_printf_has_long_long=yes
18980 else
18981 echo "$as_me: program exited with status $ac_status" >&5
18982 echo "$as_me: failed program was:" >&5
18983 sed 's/^/| /' conftest.$ac_ext >&5
18984
18985 ( exit $ac_status )
18986 gdb_cv_printf_has_long_long=no
18987 fi
18988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18989 fi
18990 fi
18991 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18992 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18993 if test $gdb_cv_printf_has_long_long = yes; then
18994
18995 cat >>confdefs.h <<\_ACEOF
18996 #define PRINTF_HAS_LONG_LONG 1
18997 _ACEOF
18998
18999 fi
19000
19001 # Check if the compiler supports the `long double' type. We can't use
19002 # AC_C_LONG_DOUBLE because that one does additional checks on the
19003 # constants defined in <float.h> that fail on some systems,
19004 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
19005
19006 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19007 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
19008 if test "${gdb_cv_c_long_double+set}" = set; then
19009 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 else
19011 cat >conftest.$ac_ext <<_ACEOF
19012 /* confdefs.h. */
19013 _ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h. */
19017 long double foo;
19018 _ACEOF
19019 rm -f conftest.$ac_objext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19021 (eval $ac_compile) 2>conftest.er1
19022 ac_status=$?
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_c_werror_flag"
19029 || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest.$ac_objext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 gdb_cv_c_long_double=yes
19042 else
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19045
19046 gdb_cv_c_long_double=no
19047 fi
19048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19049 fi
19050 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19051 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19052 if test $gdb_cv_c_long_double = yes; then
19053
19054 cat >>confdefs.h <<\_ACEOF
19055 #define HAVE_LONG_DOUBLE 1
19056 _ACEOF
19057
19058 fi
19059
19060 # Check if the compiler and runtime support printing long doubles.
19061
19062 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19063 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19064 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19065 echo $ECHO_N "(cached) $ECHO_C" >&6
19066 else
19067 if test "$cross_compiling" = yes; then
19068 gdb_cv_printf_has_long_double=no
19069 else
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h. */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076 $ac_includes_default
19077 int
19078 main ()
19079 {
19080 char buf[16];
19081 long double f = 3.141592653;
19082 sprintf (buf, "%Lg", f);
19083 return (strncmp ("3.14159", buf, 7));
19084 ;
19085 return 0;
19086 }
19087 _ACEOF
19088 rm -f conftest$ac_exeext
19089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19090 (eval $ac_link) 2>&5
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 gdb_cv_printf_has_long_double=yes
19100 else
19101 echo "$as_me: program exited with status $ac_status" >&5
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19104
19105 ( exit $ac_status )
19106 gdb_cv_printf_has_long_double=no
19107 fi
19108 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19109 fi
19110 fi
19111 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19112 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19113 if test $gdb_cv_printf_has_long_double = yes; then
19114
19115 cat >>confdefs.h <<\_ACEOF
19116 #define PRINTF_HAS_LONG_DOUBLE 1
19117 _ACEOF
19118
19119 fi
19120
19121 # Check if the compiler and runtime support scanning long doubles.
19122
19123 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19124 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19125 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19127 else
19128 if test "$cross_compiling" = yes; then
19129 gdb_cv_scanf_has_long_double=no
19130 else
19131 cat >conftest.$ac_ext <<_ACEOF
19132 /* confdefs.h. */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19137 #include <stdio.h>
19138 int
19139 main ()
19140 {
19141 char *buf = "3.141592653";
19142 long double f = 0;
19143 sscanf (buf, "%Lg", &f);
19144 return !(f > 3.14159 && f < 3.14160);
19145 ;
19146 return 0;
19147 }
19148 _ACEOF
19149 rm -f conftest$ac_exeext
19150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151 (eval $ac_link) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 gdb_cv_scanf_has_long_double=yes
19161 else
19162 echo "$as_me: program exited with status $ac_status" >&5
19163 echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19165
19166 ( exit $ac_status )
19167 gdb_cv_scanf_has_long_double=no
19168 fi
19169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19170 fi
19171 fi
19172 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19173 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19174 if test $gdb_cv_scanf_has_long_double = yes; then
19175
19176 cat >>confdefs.h <<\_ACEOF
19177 #define SCANF_HAS_LONG_DOUBLE 1
19178 _ACEOF
19179
19180 fi
19181
19182 case ${host_os} in
19183 aix*)
19184 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19185 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19186 if test "${gdb_cv_bigtoc+set}" = set; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 else
19189
19190 SAVE_LDFLAGS=$LDFLAGS
19191
19192 case $GCC in
19193 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19194 *) gdb_cv_bigtoc=-bbigtoc ;;
19195 esac
19196
19197 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19198 cat >conftest.$ac_ext <<_ACEOF
19199 /* confdefs.h. */
19200 _ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h. */
19204
19205 int
19206 main ()
19207 {
19208 int i;
19209 ;
19210 return 0;
19211 }
19212 _ACEOF
19213 rm -f conftest.$ac_objext conftest$ac_exeext
19214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19215 (eval $ac_link) 2>conftest.er1
19216 ac_status=$?
19217 grep -v '^ *+' conftest.er1 >conftest.err
19218 rm -f conftest.er1
19219 cat conftest.err >&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
19222 { ac_try='test -z "$ac_c_werror_flag"
19223 || test ! -s conftest.err'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest$ac_exeext'
19230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19235 :
19236 else
19237 echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19239
19240 gdb_cv_bigtoc=
19241 fi
19242 rm -f conftest.err conftest.$ac_objext \
19243 conftest$ac_exeext conftest.$ac_ext
19244 LDFLAGS="${SAVE_LDFLAGS}"
19245
19246 fi
19247 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19248 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19249 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19250 ;;
19251 esac
19252
19253
19254
19255 if test ${build} = ${host} -a ${host} = ${target} ; then
19256 case ${host_os} in
19257 hpux*)
19258 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19259 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19260 if test -f /usr/include/dce/cma_config.h ; then
19261 if test "$GCC" = "yes" ; then
19262 echo "$as_me:$LINENO: result: yes" >&5
19263 echo "${ECHO_T}yes" >&6
19264 cat >>confdefs.h <<\_ACEOF
19265 #define HAVE_HPUX_THREAD_SUPPORT 1
19266 _ACEOF
19267
19268 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19269 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19270 else
19271 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19272 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19273 fi
19274 else
19275 echo "$as_me:$LINENO: result: no" >&5
19276 echo "${ECHO_T}no" >&6
19277 fi
19278 ;;
19279 solaris*)
19280 # See if thread_db library is around for Solaris thread debugging.
19281 # Note that we must explicitly test for version 1 of the library
19282 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19283 # the same API.
19284 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19285 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19286 if test -f /usr/lib/libthread_db.so.1 ; then
19287 echo "$as_me:$LINENO: result: yes" >&5
19288 echo "${ECHO_T}yes" >&6
19289 cat >>confdefs.h <<\_ACEOF
19290 #define HAVE_THREAD_DB_LIB 1
19291 _ACEOF
19292
19293 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19294 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19295
19296 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19297 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19298 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 else
19301 ac_check_lib_save_LIBS=$LIBS
19302 LIBS="-ldl $LIBS"
19303 cat >conftest.$ac_ext <<_ACEOF
19304 /* confdefs.h. */
19305 _ACEOF
19306 cat confdefs.h >>conftest.$ac_ext
19307 cat >>conftest.$ac_ext <<_ACEOF
19308 /* end confdefs.h. */
19309
19310 /* Override any gcc2 internal prototype to avoid an error. */
19311 #ifdef __cplusplus
19312 extern "C"
19313 #endif
19314 /* We use char because int might match the return type of a gcc2
19315 builtin and then its argument prototype would still apply. */
19316 char dlopen ();
19317 int
19318 main ()
19319 {
19320 dlopen ();
19321 ;
19322 return 0;
19323 }
19324 _ACEOF
19325 rm -f conftest.$ac_objext conftest$ac_exeext
19326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327 (eval $ac_link) 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
19334 { ac_try='test -z "$ac_c_werror_flag"
19335 || test ! -s conftest.err'
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; } &&
19341 { ac_try='test -s conftest$ac_exeext'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347 ac_cv_lib_dl_dlopen=yes
19348 else
19349 echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19351
19352 ac_cv_lib_dl_dlopen=no
19353 fi
19354 rm -f conftest.err conftest.$ac_objext \
19355 conftest$ac_exeext conftest.$ac_ext
19356 LIBS=$ac_check_lib_save_LIBS
19357 fi
19358 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19359 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19360 if test $ac_cv_lib_dl_dlopen = yes; then
19361 cat >>confdefs.h <<_ACEOF
19362 #define HAVE_LIBDL 1
19363 _ACEOF
19364
19365 LIBS="-ldl $LIBS"
19366
19367 fi
19368
19369 if test "$GCC" = "yes" ; then
19370 # The GNU linker requires the -export-dynamic option to make
19371 # all symbols visible in the dynamic symbol table.
19372 hold_ldflags=$LDFLAGS
19373 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19374 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19375 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h. */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382
19383 int
19384 main ()
19385 {
19386 int i;
19387 ;
19388 return 0;
19389 }
19390 _ACEOF
19391 rm -f conftest.$ac_objext conftest$ac_exeext
19392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19393 (eval $ac_link) 2>conftest.er1
19394 ac_status=$?
19395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
19400 { ac_try='test -z "$ac_c_werror_flag"
19401 || test ! -s conftest.err'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; } &&
19407 { ac_try='test -s conftest$ac_exeext'
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
19413 found=yes
19414 else
19415 echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19417
19418 found=no
19419 fi
19420 rm -f conftest.err conftest.$ac_objext \
19421 conftest$ac_exeext conftest.$ac_ext
19422 LDFLAGS=$hold_ldflags
19423 echo "$as_me:$LINENO: result: $found" >&5
19424 echo "${ECHO_T}$found" >&6
19425 if test $found = yes; then
19426 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19427 fi
19428 fi
19429 # Sun randomly tweaked the prototypes in <proc_service.h>
19430 # at one point.
19431 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19432 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19433 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19435 else
19436
19437 cat >conftest.$ac_ext <<_ACEOF
19438 /* confdefs.h. */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19443
19444 #include <proc_service.h>
19445 ps_err_e ps_pdwrite
19446 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19447
19448 int
19449 main ()
19450 {
19451
19452 ;
19453 return 0;
19454 }
19455 _ACEOF
19456 rm -f conftest.$ac_objext
19457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19458 (eval $ac_compile) 2>conftest.er1
19459 ac_status=$?
19460 grep -v '^ *+' conftest.er1 >conftest.err
19461 rm -f conftest.er1
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
19465 { ac_try='test -z "$ac_c_werror_flag"
19466 || test ! -s conftest.err'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest.$ac_objext'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 gdb_cv_proc_service_is_old=no
19479 else
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483 gdb_cv_proc_service_is_old=yes
19484 fi
19485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19486
19487 fi
19488
19489 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19490 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19491 if test $gdb_cv_proc_service_is_old = yes; then
19492 cat >>confdefs.h <<\_ACEOF
19493 #define PROC_SERVICE_IS_OLD 1
19494 _ACEOF
19495
19496 fi
19497 else
19498 echo "$as_me:$LINENO: result: no" >&5
19499 echo "${ECHO_T}no" >&6
19500 fi
19501 ;;
19502 aix*)
19503 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19504 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19505 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h. */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 #include <sys/pthdebug.h>
19515 int
19516 main ()
19517 {
19518 #ifndef PTHDB_VERSION_3
19519 #error
19520 #endif
19521 ;
19522 return 0;
19523 }
19524 _ACEOF
19525 rm -f conftest.$ac_objext
19526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19527 (eval $ac_compile) 2>conftest.er1
19528 ac_status=$?
19529 grep -v '^ *+' conftest.er1 >conftest.err
19530 rm -f conftest.er1
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try='test -z "$ac_c_werror_flag"
19535 || test ! -s conftest.err'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; } &&
19541 { ac_try='test -s conftest.$ac_objext'
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 gdb_cv_have_aix_thread_debug=yes
19548 else
19549 echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19551
19552 gdb_cv_have_aix_thread_debug=no
19553 fi
19554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19555 fi
19556
19557 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19558 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19559 if test $gdb_cv_have_aix_thread_debug = yes; then
19560 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19561 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19562 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19563 fi
19564 ;;
19565 esac
19566
19567 fi
19568
19569 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19570 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19571 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19572 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19573 echo $ECHO_N "(cached) $ECHO_C" >&6
19574 else
19575 cat >conftest.$ac_ext <<_ACEOF
19576 /* confdefs.h. */
19577 _ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h. */
19581 #include <thread_db.h>
19582 int
19583 main ()
19584 {
19585 int i = TD_NOTALLOC;
19586 ;
19587 return 0;
19588 }
19589 _ACEOF
19590 rm -f conftest.$ac_objext
19591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19592 (eval $ac_compile) 2>conftest.er1
19593 ac_status=$?
19594 grep -v '^ *+' conftest.er1 >conftest.err
19595 rm -f conftest.er1
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -z "$ac_c_werror_flag"
19600 || test ! -s conftest.err'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 gdb_cv_thread_db_h_has_td_notalloc=yes
19613 else
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617 gdb_cv_thread_db_h_has_td_notalloc=no
19618
19619 fi
19620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19621
19622 fi
19623 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19624 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19625 fi
19626 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19627
19628 cat >>confdefs.h <<\_ACEOF
19629 #define THREAD_DB_HAS_TD_NOTALLOC 1
19630 _ACEOF
19631
19632 fi
19633
19634 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19635 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19636 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19637 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19639 else
19640 cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h. */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646 #include <sys/syscall.h>
19647 int
19648 main ()
19649 {
19650 int i = __NR_tkill;
19651 ;
19652 return 0;
19653 }
19654 _ACEOF
19655 rm -f conftest.$ac_objext
19656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657 (eval $ac_compile) 2>conftest.er1
19658 ac_status=$?
19659 grep -v '^ *+' conftest.er1 >conftest.err
19660 rm -f conftest.er1
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } &&
19664 { ac_try='test -z "$ac_c_werror_flag"
19665 || test ! -s conftest.err'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; } &&
19671 { ac_try='test -s conftest.$ac_objext'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
19677 gdb_cv_sys_syscall_h_has_tkill=yes
19678 else
19679 echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19681
19682 gdb_cv_sys_syscall_h_has_tkill=no
19683
19684 fi
19685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19686
19687 fi
19688 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19689 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19690 fi
19691 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19692
19693 cat >>confdefs.h <<\_ACEOF
19694 #define HAVE_TKILL_SYSCALL 1
19695 _ACEOF
19696
19697 fi
19698
19699
19700
19701 # Check whether --with-sysroot or --without-sysroot was given.
19702 if test "${with_sysroot+set}" = set; then
19703 withval="$with_sysroot"
19704
19705 case ${with_sysroot} in
19706 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19707 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19708 esac
19709
19710 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19711
19712 if test "x$exec_prefix" = xNONE; then
19713 if test "x$prefix" = xNONE; then
19714 test_prefix=/usr/local
19715 else
19716 test_prefix=$prefix
19717 fi
19718 else
19719 test_prefix=$exec_prefix
19720 fi
19721 case ${TARGET_SYSTEM_ROOT} in
19722 "${test_prefix}"|"${test_prefix}/"*|\
19723 '${exec_prefix}'|'${exec_prefix}/'*)
19724 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19725 TARGET_SYSTEM_ROOT_DEFINE="$t"
19726 ;;
19727 esac
19728
19729 else
19730
19731 TARGET_SYSTEM_ROOT=
19732 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19733
19734 fi;
19735
19736
19737
19738 # NOTE: Don't add -Wall or -Wunused, they both include
19739 # -Wunused-parameter which reports bogus warnings.
19740 # NOTE: If you add to this list, remember to update
19741 # gdb/doc/gdbint.texinfo.
19742 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
19743 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
19744 -Wunused-label -Wunused-function"
19745 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
19746 # -Wunused-function -Wunused-variable -Wunused-value
19747 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
19748 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19749 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19750 # -Woverloaded-virtual -Winline -Werror"
19751 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19752 if test "${enable_build_warnings+set}" = set; then
19753 enableval="$enable_build_warnings"
19754 case "${enableval}" in
19755 yes) ;;
19756 no) build_warnings="-w";;
19757 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19758 build_warnings="${build_warnings} ${t}";;
19759 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19760 build_warnings="${t} ${build_warnings}";;
19761 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19762 esac
19763 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19764 echo "Setting compiler warning flags = $build_warnings" 6>&1
19765 fi
19766 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19767 if test "${enable_gdb_build_warnings+set}" = set; then
19768 enableval="$enable_gdb_build_warnings"
19769 case "${enableval}" in
19770 yes) ;;
19771 no) build_warnings="-w";;
19772 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19773 build_warnings="${build_warnings} ${t}";;
19774 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19775 build_warnings="${t} ${build_warnings}";;
19776 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19777 esac
19778 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19779 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19780 fi
19781 fi; WARN_CFLAGS=""
19782 WERROR_CFLAGS=""
19783 if test "x${build_warnings}" != x -a "x$GCC" = xyes
19784 then
19785 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19786 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
19787 # Separate out the -Werror flag as some files just cannot be
19788 # compiled with it enabled.
19789 for w in ${build_warnings}; do
19790 case $w in
19791 -Werr*) WERROR_CFLAGS=-Werror ;;
19792 *) # Check that GCC accepts it
19793 saved_CFLAGS="$CFLAGS"
19794 CFLAGS="$CFLAGS $w"
19795 cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h. */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801
19802 int
19803 main ()
19804 {
19805
19806 ;
19807 return 0;
19808 }
19809 _ACEOF
19810 rm -f conftest.$ac_objext
19811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19812 (eval $ac_compile) 2>conftest.er1
19813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
19819 { ac_try='test -z "$ac_c_werror_flag"
19820 || test ! -s conftest.err'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; } &&
19826 { ac_try='test -s conftest.$ac_objext'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 WARN_CFLAGS="${WARN_CFLAGS} $w"
19833 else
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19836
19837 fi
19838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19839 CFLAGS="$saved_CFLAGS"
19840 esac
19841 done
19842 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
19843 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
19844 fi
19845
19846
19847
19848 # In the Cygwin environment, we need some additional flags.
19849 echo "$as_me:$LINENO: checking for cygwin" >&5
19850 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19851 if test "${gdb_cv_os_cygwin+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 else
19854 cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h. */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860
19861 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
19862 lose
19863 #endif
19864 _ACEOF
19865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19866 $EGREP "lose" >/dev/null 2>&1; then
19867 gdb_cv_os_cygwin=yes
19868 else
19869 gdb_cv_os_cygwin=no
19870 fi
19871 rm -f conftest*
19872
19873 fi
19874 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19875 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
19876
19877
19878 SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
19879 case ${host} in
19880 *go32* ) SER_HARDWIRE=ser-go32.o ;;
19881 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
19882 esac
19883
19884
19885 # libreadline needs libuser32.a in a cygwin environment
19886 WIN32LIBS=
19887 if test x$gdb_cv_os_cygwin = xyes; then
19888 WIN32LIBS="-luser32"
19889 case "${target}" in
19890 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19891 ;;
19892 esac
19893 fi
19894
19895
19896 LIBGUI="../libgui/src/libgui.a"
19897 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19898
19899
19900
19901 WIN32LDAPP=
19902
19903
19904
19905 case "${host}" in
19906 *-*-cygwin*)
19907 configdir="win"
19908 ;;
19909 *)
19910 configdir="unix"
19911 ;;
19912 esac
19913
19914 GDBTKLIBS=
19915 if test "${enable_gdbtk}" = "yes"; then
19916
19917 # Gdbtk must have an absolute path to srcdir in order to run
19918 # properly when not installed.
19919 here=`pwd`
19920 cd ${srcdir}
19921 GDBTK_SRC_DIR=`pwd`
19922 cd $here
19923
19924
19925 #
19926 # Ok, lets find the tcl configuration
19927 # First, look for one uninstalled.
19928 # the alternative search directory is invoked by --with-tclconfig
19929 #
19930
19931 if test x"${no_tcl}" = x ; then
19932 # we reset no_tcl in case something fails here
19933 no_tcl=true
19934
19935 # Check whether --with-tclconfig or --without-tclconfig was given.
19936 if test "${with_tclconfig+set}" = set; then
19937 withval="$with_tclconfig"
19938 with_tclconfig=${withval}
19939 fi;
19940 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19941 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19942 if test "${ac_cv_c_tclconfig+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945
19946
19947 # First check to see if --with-tclconfig was specified.
19948 if test x"${with_tclconfig}" != x ; then
19949 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19950 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19951 else
19952 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19953 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19954 { (exit 1); exit 1; }; }
19955 fi
19956 fi
19957
19958 # then check for a private Tcl installation
19959 if test x"${ac_cv_c_tclconfig}" = x ; then
19960 for i in \
19961 ../tcl \
19962 `ls -dr ../tcl[7-9]* 2>/dev/null` \
19963 ../../tcl \
19964 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
19965 ../../../tcl \
19966 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
19967 if test -f "$i/${configdir}/tclConfig.sh" ; then
19968 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19969 break
19970 fi
19971 done
19972 fi
19973 # check in a few common install locations
19974 if test x"${ac_cv_c_tclconfig}" = x ; then
19975 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
19976 if test -f "$i/tclConfig.sh" ; then
19977 ac_cv_c_tclconfig=`(cd $i; pwd)`
19978 break
19979 fi
19980 done
19981 fi
19982 # check in a few other private locations
19983 if test x"${ac_cv_c_tclconfig}" = x ; then
19984 for i in \
19985 ${srcdir}/../tcl \
19986 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
19987 if test -f "$i/${configdir}/tclConfig.sh" ; then
19988 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19989 break
19990 fi
19991 done
19992 fi
19993
19994 fi
19995
19996 if test x"${ac_cv_c_tclconfig}" = x ; then
19997 TCLCONFIG="# no Tcl configs found"
19998 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19999 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20000 else
20001 no_tcl=
20002 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
20003 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20004 echo "${ECHO_T}found $TCLCONFIG" >&6
20005 fi
20006 fi
20007
20008 if test -z "${no_tcl}"; then
20009
20010 . $TCLCONFIG
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038 #
20039 # Ok, lets find the tk configuration
20040 # First, look for one uninstalled.
20041 # the alternative search directory is invoked by --with-tkconfig
20042 #
20043
20044 if test x"${no_tk}" = x ; then
20045 # we reset no_tk in case something fails here
20046 no_tk=true
20047
20048 # Check whether --with-tkconfig or --without-tkconfig was given.
20049 if test "${with_tkconfig+set}" = set; then
20050 withval="$with_tkconfig"
20051 with_tkconfig=${withval}
20052 fi;
20053 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20054 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20055 if test "${ac_cv_c_tkconfig+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058
20059
20060 # First check to see if --with-tkconfig was specified.
20061 if test x"${with_tkconfig}" != x ; then
20062 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20063 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20064 else
20065 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20066 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20067 { (exit 1); exit 1; }; }
20068 fi
20069 fi
20070
20071 # then check for a private Tk library
20072 if test x"${ac_cv_c_tkconfig}" = x ; then
20073 for i in \
20074 ../tk \
20075 `ls -dr ../tk[4-9]* 2>/dev/null` \
20076 ../../tk \
20077 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20078 ../../../tk \
20079 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20080 if test -f "$i/${configdir}/tkConfig.sh" ; then
20081 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20082 break
20083 fi
20084 done
20085 fi
20086 # check in a few common install locations
20087 if test x"${ac_cv_c_tkconfig}" = x ; then
20088 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20089 if test -f "$i/tkConfig.sh" ; then
20090 ac_cv_c_tkconfig=`(cd $i; pwd)`
20091 break
20092 fi
20093 done
20094 fi
20095 # check in a few other private locations
20096 if test x"${ac_cv_c_tkconfig}" = x ; then
20097 for i in \
20098 ${srcdir}/../tk \
20099 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20100 if test -f "$i/${configdir}/tkConfig.sh" ; then
20101 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20102 break
20103 fi
20104 done
20105 fi
20106
20107 fi
20108
20109 if test x"${ac_cv_c_tkconfig}" = x ; then
20110 TKCONFIG="# no Tk configs found"
20111 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20112 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20113 else
20114 no_tk=
20115 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20116 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20117 echo "${ECHO_T}found $TKCONFIG" >&6
20118 fi
20119 fi
20120
20121
20122
20123 # now look for Tcl library stuff
20124
20125 tcldir="../tcl/${configdir}/"
20126
20127 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20128
20129 # If $no_tk is nonempty, then we can't do Tk, and there is no
20130 # point to doing Tcl.
20131 if test -z "${no_tk}"; then
20132
20133 if test -f "$TKCONFIG" ; then
20134 . $TKCONFIG
20135 fi
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150 #
20151 # Ok, lets find the tcl source trees so we can use the headers
20152 # Warning: transition of version 9 to 10 will break this algorithm
20153 # because 10 sorts before 9. We also look for just tcl. We have to
20154 # be careful that we don't match stuff like tclX by accident.
20155 # the alternative search directory is involked by --with-tclinclude
20156 #
20157
20158 no_tcl=true
20159 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20160 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20161
20162 # Check whether --with-tclinclude or --without-tclinclude was given.
20163 if test "${with_tclinclude+set}" = set; then
20164 withval="$with_tclinclude"
20165 with_tclinclude=${withval}
20166 fi;
20167 if test "${ac_cv_c_tclh+set}" = set; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
20169 else
20170
20171 # first check to see if --with-tclinclude was specified
20172 if test x"${with_tclinclude}" != x ; then
20173 if test -f ${with_tclinclude}/tclInt.h ; then
20174 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20175 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20176 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20177 else
20178 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20179 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20180 { (exit 1); exit 1; }; }
20181 fi
20182 fi
20183
20184 # next check if it came with Tcl configuration file
20185 if test x"${ac_cv_c_tclconfig}" = x ; then
20186 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20187 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20188 fi
20189 fi
20190
20191 # next check in private source directory
20192 #
20193 # since ls returns lowest version numbers first, reverse its output
20194 if test x"${ac_cv_c_tclh}" = x ; then
20195 for i in \
20196 ${srcdir}/../tcl \
20197 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20198 ${srcdir}/../../tcl \
20199 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20200 ${srcdir}/../../../tcl \
20201 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20202 if test -f $i/generic/tclInt.h ; then
20203 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20204 break
20205 fi
20206 done
20207 fi
20208 # finally check in a few common install locations
20209 #
20210 # since ls returns lowest version numbers first, reverse its output
20211 if test x"${ac_cv_c_tclh}" = x ; then
20212 for i in \
20213 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20214 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20215 /usr/local/src/tcl \
20216 /usr/local/lib/tcl \
20217 ${prefix}/include ; do
20218 if test -f $i/generic/tclInt.h ; then
20219 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20220 break
20221 fi
20222 done
20223 fi
20224 # see if one is installed
20225 if test x"${ac_cv_c_tclh}" = x ; then
20226 if test "${ac_cv_header_tclInt_h+set}" = set; then
20227 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20228 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20229 if test "${ac_cv_header_tclInt_h+set}" = set; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 fi
20232 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20233 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20234 else
20235 # Is the header compilable?
20236 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20237 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h. */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 $ac_includes_default
20245 #include <tclInt.h>
20246 _ACEOF
20247 rm -f conftest.$ac_objext
20248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20249 (eval $ac_compile) 2>conftest.er1
20250 ac_status=$?
20251 grep -v '^ *+' conftest.er1 >conftest.err
20252 rm -f conftest.er1
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } &&
20256 { ac_try='test -z "$ac_c_werror_flag"
20257 || test ! -s conftest.err'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; } &&
20263 { ac_try='test -s conftest.$ac_objext'
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20266 ac_status=$?
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; }; then
20269 ac_header_compiler=yes
20270 else
20271 echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20273
20274 ac_header_compiler=no
20275 fi
20276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20278 echo "${ECHO_T}$ac_header_compiler" >&6
20279
20280 # Is the header present?
20281 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20282 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20283 cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h. */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 #include <tclInt.h>
20290 _ACEOF
20291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20293 ac_status=$?
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } >/dev/null; then
20299 if test -s conftest.err; then
20300 ac_cpp_err=$ac_c_preproc_warn_flag
20301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20302 else
20303 ac_cpp_err=
20304 fi
20305 else
20306 ac_cpp_err=yes
20307 fi
20308 if test -z "$ac_cpp_err"; then
20309 ac_header_preproc=yes
20310 else
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314 ac_header_preproc=no
20315 fi
20316 rm -f conftest.err conftest.$ac_ext
20317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20318 echo "${ECHO_T}$ac_header_preproc" >&6
20319
20320 # So? What about this header?
20321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20322 yes:no: )
20323 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20324 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20325 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20326 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20327 ac_header_preproc=yes
20328 ;;
20329 no:yes:* )
20330 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20331 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20332 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20333 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20334 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20335 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20337 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20338 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20339 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20340 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20341 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20342 (
20343 cat <<\_ASBOX
20344 ## ------------------------------------------ ##
20345 ## Report this to the AC_PACKAGE_NAME lists. ##
20346 ## ------------------------------------------ ##
20347 _ASBOX
20348 ) |
20349 sed "s/^/$as_me: WARNING: /" >&2
20350 ;;
20351 esac
20352 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20353 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20354 if test "${ac_cv_header_tclInt_h+set}" = set; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20356 else
20357 ac_cv_header_tclInt_h=$ac_header_preproc
20358 fi
20359 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20360 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20361
20362 fi
20363 if test $ac_cv_header_tclInt_h = yes; then
20364 ac_cv_c_tclh=installed
20365 else
20366 ac_cv_c_tclh=""
20367 fi
20368
20369
20370 fi
20371
20372 fi
20373
20374 if test x"${ac_cv_c_tclh}" = x ; then
20375 TCLHDIR="# no Tcl private headers found"
20376 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20377 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20378 { (exit 1); exit 1; }; }
20379 fi
20380 if test x"${ac_cv_c_tclh}" != x ; then
20381 no_tcl=""
20382 if test x"${ac_cv_c_tclh}" = x"installed" ; then
20383 echo "$as_me:$LINENO: result: is installed" >&5
20384 echo "${ECHO_T}is installed" >&6
20385 TCLHDIR=""
20386 else
20387 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20388 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20389 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20390 TCLHDIR="-I${ac_cv_c_tclh}"
20391 fi
20392 fi
20393
20394
20395
20396
20397 #
20398 # Ok, lets find the tk source trees so we can use the headers
20399 # If the directory (presumably symlink) named "tk" exists, use that one
20400 # in preference to any others. Same logic is used when choosing library
20401 # and again with Tcl. The search order is the best place to look first, then in
20402 # decreasing significance. The loop breaks if the trigger file is found.
20403 # Note the gross little conversion here of srcdir by cd'ing to the found
20404 # directory. This converts the path from a relative to an absolute, so
20405 # recursive cache variables for the path will work right. We check all
20406 # the possible paths in one loop rather than many seperate loops to speed
20407 # things up.
20408 # the alternative search directory is involked by --with-tkinclude
20409 #
20410 no_tk=true
20411 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20412 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20413
20414 # Check whether --with-tkinclude or --without-tkinclude was given.
20415 if test "${with_tkinclude+set}" = set; then
20416 withval="$with_tkinclude"
20417 with_tkinclude=${withval}
20418 fi;
20419 if test "${ac_cv_c_tkh+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20421 else
20422
20423 # first check to see if --with-tkinclude was specified
20424 if test x"${with_tkinclude}" != x ; then
20425 if test -f ${with_tkinclude}/tk.h ; then
20426 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20427 elif test -f ${with_tkinclude}/generic/tk.h ; then
20428 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20429 else
20430 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20431 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20432 { (exit 1); exit 1; }; }
20433 fi
20434 fi
20435
20436 # next check if it came with Tk configuration file
20437 if test x"${ac_cv_c_tkconfig}" = x ; then
20438 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20439 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20440 fi
20441 fi
20442
20443 # next check in private source directory
20444 #
20445 # since ls returns lowest version numbers first, reverse its output
20446 if test x"${ac_cv_c_tkh}" = x ; then
20447 for i in \
20448 ${srcdir}/../tk \
20449 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20450 ${srcdir}/../../tk \
20451 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20452 ${srcdir}/../../../tk \
20453 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20454 if test -f $i/generic/tk.h ; then
20455 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20456 break
20457 fi
20458 done
20459 fi
20460 # finally check in a few common install locations
20461 #
20462 # since ls returns lowest version numbers first, reverse its output
20463 if test x"${ac_cv_c_tkh}" = x ; then
20464 for i in \
20465 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20466 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20467 /usr/local/src/tk \
20468 /usr/local/lib/tk \
20469 ${prefix}/include ; do
20470 if test -f $i/generic/tk.h ; then
20471 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20472 break
20473 fi
20474 done
20475 fi
20476 # see if one is installed
20477 if test x"${ac_cv_c_tkh}" = x ; then
20478 if test "${ac_cv_header_tk_h+set}" = set; then
20479 echo "$as_me:$LINENO: checking for tk.h" >&5
20480 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20481 if test "${ac_cv_header_tk_h+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
20483 fi
20484 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20485 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20486 else
20487 # Is the header compilable?
20488 echo "$as_me:$LINENO: checking tk.h usability" >&5
20489 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20490 cat >conftest.$ac_ext <<_ACEOF
20491 /* confdefs.h. */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h. */
20496 $ac_includes_default
20497 #include <tk.h>
20498 _ACEOF
20499 rm -f conftest.$ac_objext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501 (eval $ac_compile) 2>conftest.er1
20502 ac_status=$?
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
20508 { ac_try='test -z "$ac_c_werror_flag"
20509 || test ! -s conftest.err'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; } &&
20515 { ac_try='test -s conftest.$ac_objext'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20518 ac_status=$?
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_header_compiler=yes
20522 else
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 ac_header_compiler=no
20527 fi
20528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20530 echo "${ECHO_T}$ac_header_compiler" >&6
20531
20532 # Is the header present?
20533 echo "$as_me:$LINENO: checking tk.h presence" >&5
20534 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h. */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20541 #include <tk.h>
20542 _ACEOF
20543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20545 ac_status=$?
20546 grep -v '^ *+' conftest.er1 >conftest.err
20547 rm -f conftest.er1
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } >/dev/null; then
20551 if test -s conftest.err; then
20552 ac_cpp_err=$ac_c_preproc_warn_flag
20553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20554 else
20555 ac_cpp_err=
20556 fi
20557 else
20558 ac_cpp_err=yes
20559 fi
20560 if test -z "$ac_cpp_err"; then
20561 ac_header_preproc=yes
20562 else
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566 ac_header_preproc=no
20567 fi
20568 rm -f conftest.err conftest.$ac_ext
20569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20570 echo "${ECHO_T}$ac_header_preproc" >&6
20571
20572 # So? What about this header?
20573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20574 yes:no: )
20575 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20576 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20577 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20578 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20579 ac_header_preproc=yes
20580 ;;
20581 no:yes:* )
20582 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20583 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20584 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20585 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20586 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20587 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20588 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20589 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20590 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20591 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20592 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20593 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20594 (
20595 cat <<\_ASBOX
20596 ## ------------------------------------------ ##
20597 ## Report this to the AC_PACKAGE_NAME lists. ##
20598 ## ------------------------------------------ ##
20599 _ASBOX
20600 ) |
20601 sed "s/^/$as_me: WARNING: /" >&2
20602 ;;
20603 esac
20604 echo "$as_me:$LINENO: checking for tk.h" >&5
20605 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20606 if test "${ac_cv_header_tk_h+set}" = set; then
20607 echo $ECHO_N "(cached) $ECHO_C" >&6
20608 else
20609 ac_cv_header_tk_h=$ac_header_preproc
20610 fi
20611 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20612 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20613
20614 fi
20615 if test $ac_cv_header_tk_h = yes; then
20616 ac_cv_c_tkh=installed
20617 else
20618 ac_cv_c_tkh=""
20619 fi
20620
20621
20622 fi
20623
20624 fi
20625
20626 if test x"${ac_cv_c_tkh}" != x ; then
20627 no_tk=""
20628 if test x"${ac_cv_c_tkh}" = x"installed" ; then
20629 echo "$as_me:$LINENO: result: is installed" >&5
20630 echo "${ECHO_T}is installed" >&6
20631 TKHDIR=""
20632 else
20633 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20634 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
20635 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20636 TKHDIR="-I${ac_cv_c_tkh}"
20637 fi
20638 else
20639 TKHDIR="# no Tk directory found"
20640 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20641 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
20642 no_tk=true
20643 fi
20644
20645
20646
20647
20648 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20649 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
20650 if test x"${ac_cv_c_itclh}" = x ; then
20651 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20652 if test -f $i/generic/itcl.h ; then
20653 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20654 break
20655 fi
20656 done
20657 fi
20658 if test x"${ac_cv_c_itclh}" = x ; then
20659 ITCLHDIR="# no Itcl private headers found"
20660 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20661 echo "$as_me: error: Can't find Itcl private headers" >&2;}
20662 { (exit 1); exit 1; }; }
20663 fi
20664 if test x"${ac_cv_c_itclh}" != x ; then
20665 ITCLHDIR="-I${ac_cv_c_itclh}"
20666 fi
20667 # should always be here
20668 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
20669
20670 #AC_SUBST(ITCLLIB)
20671
20672
20673 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20674 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
20675 if test x"${ac_cv_c_itkh}" = x ; then
20676 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20677 if test -f $i/generic/itk.h ; then
20678 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20679 break
20680 fi
20681 done
20682 fi
20683 if test x"${ac_cv_c_itkh}" = x ; then
20684 ITKHDIR="# no Itk private headers found"
20685 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20686 echo "$as_me: error: Can't find Itk private headers" >&2;}
20687 { (exit 1); exit 1; }; }
20688 fi
20689 if test x"${ac_cv_c_itkh}" != x ; then
20690 ITKHDIR="-I${ac_cv_c_itkh}"
20691 fi
20692 # should always be here
20693 # ITKLIB="../itcl/itk/unix/libitk.a"
20694
20695 #AC_SUBST(ITKLIB)
20696
20697
20698
20699 # now look for Tk library stuff
20700
20701 tkdir="../tk/${configdir}/"
20702
20703 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20704
20705 # now look for Itcl library stuff
20706
20707
20708 #
20709 # Ok, lets find the itcl configuration
20710 # First, look for one uninstalled.
20711 # the alternative search directory is invoked by --with-itclconfig
20712 #
20713
20714 if test x"${no_itcl}" = x ; then
20715 # we reset no_itcl in case something fails here
20716 no_itcl=true
20717
20718 # Check whether --with-itclconfig or --without-itclconfig was given.
20719 if test "${with_itclconfig+set}" = set; then
20720 withval="$with_itclconfig"
20721 with_itclconfig=${withval}
20722 fi;
20723 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20724 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20725 if test "${ac_cv_c_itclconfig+set}" = set; then
20726 echo $ECHO_N "(cached) $ECHO_C" >&6
20727 else
20728
20729
20730 # First check to see if --with-itclconfig was specified.
20731 if test x"${with_itclconfig}" != x ; then
20732 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20733 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20734 else
20735 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20736 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20737 { (exit 1); exit 1; }; }
20738 fi
20739 fi
20740
20741 # then check for a private Itcl library
20742 if test x"${ac_cv_c_itclconfig}" = x ; then
20743 for i in \
20744 ../itcl/itcl \
20745 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20746 ../../itcl \
20747 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20748 ../../../itcl \
20749 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20750 if test -f "$i/itclConfig.sh" ; then
20751 ac_cv_c_itclconfig=`(cd $i; pwd)`
20752 break
20753 fi
20754 done
20755 fi
20756 # check in a few common install locations
20757 if test x"${ac_cv_c_itclconfig}" = x ; then
20758 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20759 if test -f "$i/itclConfig.sh" ; then
20760 ac_cv_c_itclconfig=`(cd $i; pwd)`
20761 break
20762 fi
20763 done
20764 fi
20765 # check in a few other private locations
20766 if test x"${ac_cv_c_itclconfig}" = x ; then
20767 for i in \
20768 ${srcdir}/../itcl/itcl \
20769 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
20770 if test -f "$i/itclConfig.sh" ; then
20771 ac_cv_c_itclconfig=`(cd $i; pwd)`
20772 break
20773 fi
20774 done
20775 fi
20776
20777 fi
20778
20779 if test x"${ac_cv_c_itclconfig}" = x ; then
20780 ITCLCONFIG="# no Itcl configs found"
20781 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
20782 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
20783 else
20784 no_itcl=
20785 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
20786 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
20787 echo "${ECHO_T}found $ITCLCONFIG" >&6
20788 fi
20789 fi
20790
20791 if test -z "${no_itcl}"; then
20792
20793 if test -f "$ITCLCONFIG" ; then
20794 . $ITCLCONFIG
20795 fi
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
20809 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
20810 fi
20811
20812
20813 # now look for Itk library stuff
20814
20815 #
20816 # Ok, lets find the itk configuration
20817 # First, look for one uninstalled.
20818 # the alternative search directory is invoked by --with-itkconfig
20819 #
20820
20821 if test x"${no_itk}" = x ; then
20822 # we reset no_itk in case something fails here
20823 no_itk=true
20824
20825 # Check whether --with-itkconfig or --without-itkconfig was given.
20826 if test "${with_itkconfig+set}" = set; then
20827 withval="$with_itkconfig"
20828 with_itkconfig=${withval}
20829 fi;
20830 echo "$as_me:$LINENO: checking for Itk configuration" >&5
20831 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
20832 if test "${ac_cv_c_itkconfig+set}" = set; then
20833 echo $ECHO_N "(cached) $ECHO_C" >&6
20834 else
20835
20836
20837 # First check to see if --with-itkconfig was specified.
20838 if test x"${with_itkconfig}" != x ; then
20839 if test -f "${with_itkconfig}/itkConfig.sh" ; then
20840 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
20841 else
20842 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
20843 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
20844 { (exit 1); exit 1; }; }
20845 fi
20846 fi
20847
20848 # then check for a private Itk library
20849 if test x"${ac_cv_c_itkconfig}" = x ; then
20850 for i in \
20851 ../itcl/itk \
20852 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
20853 ../../itk \
20854 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
20855 ../../../itk \
20856 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
20857 if test -f "$i/itkConfig.sh" ; then
20858 ac_cv_c_itkconfig=`(cd $i; pwd)`
20859 break
20860 fi
20861 done
20862 fi
20863 # check in a few common install locations
20864 if test x"${ac_cv_c_itkconfig}" = x ; then
20865 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20866 if test -f "$i/itkConfig.sh" ; then
20867 ac_cv_c_itkconfig=`(cd $i; pwd)`
20868 break
20869 fi
20870 done
20871 fi
20872 # check in a few other private locations
20873 if test x"${ac_cv_c_itkconfig}" = x ; then
20874 for i in \
20875 ${srcdir}/../itcl/itk \
20876 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
20877 if test -f "$i/itkConfig.sh" ; then
20878 ac_cv_c_itkconfig=`(cd $i; pwd)`
20879 break
20880 fi
20881 done
20882 fi
20883
20884 fi
20885
20886 if test x"${ac_cv_c_itkconfig}" = x ; then
20887 ITKCONFIG="# no Itk configs found"
20888 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
20889 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
20890 else
20891 no_itk=
20892 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
20893 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
20894 echo "${ECHO_T}found $ITKCONFIG" >&6
20895 fi
20896 fi
20897
20898
20899 if test -z "${no_itcl}"; then
20900
20901 if test -f "$ITKCONFIG" ; then
20902 . $ITKCONFIG
20903 fi
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916 ITKLIB="${ITK_BUILD_LIB_SPEC}"
20917 ITK_DEPS="${ITK_LIB_FULL_PATH}"
20918 fi
20919
20920 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20921 # Tcl/Tk 8.1 require -fwritable strings. I don't
20922 # know whether 8.2 will or not, but I bet it will.
20923 # I don't have to worry about 7.x since we don't support it.
20924 GDBTK_CFLAGS=""
20925 if test "$GCC" = "yes"; then
20926 if test "$TCL_VERSION" != "8.0" ; then
20927 GDBTK_CFLAGS="-fwritable-strings"
20928 fi
20929 fi
20930
20931 # Include some libraries that Tcl and Tk want.
20932 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20933 # Yes, the ordering seems wrong here. But it isn't.
20934 # TK_LIBS is the list of libraries that need to be linked
20935 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20936 # were in LIBS then any link tests after this point would
20937 # try to include things like `$(LIBGUI)', which wouldn't work.
20938 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20939
20940 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20941 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20942 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20943 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20944 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20945 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20946 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20947
20948 if test x$gdb_cv_os_cygwin = xyes; then
20949 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20950 WIN32LDAPP="-Wl,--subsystem,console"
20951 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20952 fi
20953 fi
20954 fi
20955
20956
20957
20958 subdirs="$subdirs gdbtk"
20959
20960 fi
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975 echo "$as_me:$LINENO: checking for X" >&5
20976 echo $ECHO_N "checking for X... $ECHO_C" >&6
20977
20978
20979 # Check whether --with-x or --without-x was given.
20980 if test "${with_x+set}" = set; then
20981 withval="$with_x"
20982
20983 fi;
20984 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20985 if test "x$with_x" = xno; then
20986 # The user explicitly disabled X.
20987 have_x=disabled
20988 else
20989 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20990 # Both variables are already set.
20991 have_x=yes
20992 else
20993 if test "${ac_cv_have_x+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20995 else
20996 # One or both of the vars are not set, and there is no cached value.
20997 ac_x_includes=no ac_x_libraries=no
20998 rm -fr conftest.dir
20999 if mkdir conftest.dir; then
21000 cd conftest.dir
21001 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21002 cat >Imakefile <<'_ACEOF'
21003 acfindx:
21004 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21005 _ACEOF
21006 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21007 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21008 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21009 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21010 for ac_extension in a so sl; do
21011 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21012 test -f $ac_im_libdir/libX11.$ac_extension; then
21013 ac_im_usrlibdir=$ac_im_libdir; break
21014 fi
21015 done
21016 # Screen out bogus values from the imake configuration. They are
21017 # bogus both because they are the default anyway, and because
21018 # using them would break gcc on systems where it needs fixed includes.
21019 case $ac_im_incroot in
21020 /usr/include) ;;
21021 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21022 esac
21023 case $ac_im_usrlibdir in
21024 /usr/lib | /lib) ;;
21025 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21026 esac
21027 fi
21028 cd ..
21029 rm -fr conftest.dir
21030 fi
21031
21032 # Standard set of common directories for X headers.
21033 # Check X11 before X11Rn because it is often a symlink to the current release.
21034 ac_x_header_dirs='
21035 /usr/X11/include
21036 /usr/X11R6/include
21037 /usr/X11R5/include
21038 /usr/X11R4/include
21039
21040 /usr/include/X11
21041 /usr/include/X11R6
21042 /usr/include/X11R5
21043 /usr/include/X11R4
21044
21045 /usr/local/X11/include
21046 /usr/local/X11R6/include
21047 /usr/local/X11R5/include
21048 /usr/local/X11R4/include
21049
21050 /usr/local/include/X11
21051 /usr/local/include/X11R6
21052 /usr/local/include/X11R5
21053 /usr/local/include/X11R4
21054
21055 /usr/X386/include
21056 /usr/x386/include
21057 /usr/XFree86/include/X11
21058
21059 /usr/include
21060 /usr/local/include
21061 /usr/unsupported/include
21062 /usr/athena/include
21063 /usr/local/x11r5/include
21064 /usr/lpp/Xamples/include
21065
21066 /usr/openwin/include
21067 /usr/openwin/share/include'
21068
21069 if test "$ac_x_includes" = no; then
21070 # Guess where to find include files, by looking for Intrinsic.h.
21071 # First, try using that file with no special directory specified.
21072 cat >conftest.$ac_ext <<_ACEOF
21073 /* confdefs.h. */
21074 _ACEOF
21075 cat confdefs.h >>conftest.$ac_ext
21076 cat >>conftest.$ac_ext <<_ACEOF
21077 /* end confdefs.h. */
21078 #include <X11/Intrinsic.h>
21079 _ACEOF
21080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21082 ac_status=$?
21083 grep -v '^ *+' conftest.er1 >conftest.err
21084 rm -f conftest.er1
21085 cat conftest.err >&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } >/dev/null; then
21088 if test -s conftest.err; then
21089 ac_cpp_err=$ac_c_preproc_warn_flag
21090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21091 else
21092 ac_cpp_err=
21093 fi
21094 else
21095 ac_cpp_err=yes
21096 fi
21097 if test -z "$ac_cpp_err"; then
21098 # We can compile using X headers with no special include directory.
21099 ac_x_includes=
21100 else
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21103
21104 for ac_dir in $ac_x_header_dirs; do
21105 if test -r "$ac_dir/X11/Intrinsic.h"; then
21106 ac_x_includes=$ac_dir
21107 break
21108 fi
21109 done
21110 fi
21111 rm -f conftest.err conftest.$ac_ext
21112 fi # $ac_x_includes = no
21113
21114 if test "$ac_x_libraries" = no; then
21115 # Check for the libraries.
21116 # See if we find them without any special options.
21117 # Don't add to $LIBS permanently.
21118 ac_save_LIBS=$LIBS
21119 LIBS="-lXt $LIBS"
21120 cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h. */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 #include <X11/Intrinsic.h>
21127 int
21128 main ()
21129 {
21130 XtMalloc (0)
21131 ;
21132 return 0;
21133 }
21134 _ACEOF
21135 rm -f conftest.$ac_objext conftest$ac_exeext
21136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21137 (eval $ac_link) 2>conftest.er1
21138 ac_status=$?
21139 grep -v '^ *+' conftest.er1 >conftest.err
21140 rm -f conftest.er1
21141 cat conftest.err >&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); } &&
21144 { ac_try='test -z "$ac_c_werror_flag"
21145 || test ! -s conftest.err'
21146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21148 ac_status=$?
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; } &&
21151 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21157 LIBS=$ac_save_LIBS
21158 # We can link X programs with no special library path.
21159 ac_x_libraries=
21160 else
21161 echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21163
21164 LIBS=$ac_save_LIBS
21165 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21166 do
21167 # Don't even attempt the hair of trying to link an X program!
21168 for ac_extension in a so sl; do
21169 if test -r $ac_dir/libXt.$ac_extension; then
21170 ac_x_libraries=$ac_dir
21171 break 2
21172 fi
21173 done
21174 done
21175 fi
21176 rm -f conftest.err conftest.$ac_objext \
21177 conftest$ac_exeext conftest.$ac_ext
21178 fi # $ac_x_libraries = no
21179
21180 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21181 # Didn't find X anywhere. Cache the known absence of X.
21182 ac_cv_have_x="have_x=no"
21183 else
21184 # Record where we found X for the cache.
21185 ac_cv_have_x="have_x=yes \
21186 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21187 fi
21188 fi
21189
21190 fi
21191 eval "$ac_cv_have_x"
21192 fi # $with_x != no
21193
21194 if test "$have_x" != yes; then
21195 echo "$as_me:$LINENO: result: $have_x" >&5
21196 echo "${ECHO_T}$have_x" >&6
21197 no_x=yes
21198 else
21199 # If each of the values was on the command line, it overrides each guess.
21200 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21201 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21202 # Update the cache value to reflect the command line values.
21203 ac_cv_have_x="have_x=yes \
21204 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21205 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21206 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21207 fi
21208
21209
21210 # Check whether we should enable the TUI, but only do so if we really
21211 # can.
21212 if test x"$enable_tui" = xyes; then
21213 if test -d $srcdir/tui; then
21214 if test "$ac_cv_search_waddstr" != no; then
21215 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21216 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21217 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21218 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21219 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21220 CONFIG_ALL="${CONFIG_ALL} all-tui"
21221 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21222 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21223 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21224 else
21225 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21226 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21227 fi
21228 fi
21229 fi
21230
21231 # Unlike the sim directory, whether a simulator is linked is controlled by
21232 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21233 # This code just checks for a few cases where we'd like to ignore those
21234 # definitions, even when they're present in the '.mt' file. These cases
21235 # are when --disable-sim is specified, or if the simulator directory is
21236 # not part of the source tree.
21237 #
21238 # Check whether --enable-sim or --disable-sim was given.
21239 if test "${enable_sim+set}" = set; then
21240 enableval="$enable_sim"
21241 echo "enable_sim = $enable_sim";
21242 echo "enableval = ${enableval}";
21243 case "${enableval}" in
21244 yes) ignore_sim=false ;;
21245 no) ignore_sim=true ;;
21246 *) ignore_sim=false ;;
21247 esac
21248 else
21249 ignore_sim=false
21250 fi;
21251
21252 if test ! -d "${srcdir}/../sim"; then
21253 ignore_sim=true
21254 fi
21255
21256 if test "${ignore_sim}" = "true"; then
21257 IGNORE_SIM="SIM="
21258 IGNORE_SIM_OBS="SIM_OBS="
21259 else
21260 IGNORE_SIM=""
21261 IGNORE_SIM_OBS=""
21262 cat >>confdefs.h <<\_ACEOF
21263 #define WITH_SIM 1
21264 _ACEOF
21265
21266 fi
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281 # List of host floatformats.
21282
21283 cat >>confdefs.h <<_ACEOF
21284 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21285 _ACEOF
21286
21287
21288 cat >>confdefs.h <<_ACEOF
21289 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21290 _ACEOF
21291
21292
21293 cat >>confdefs.h <<_ACEOF
21294 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21295 _ACEOF
21296
21297
21298 # target_subdir is used by the testsuite to find the target libraries.
21299 target_subdir=
21300 if test "${host}" != "${target}"; then
21301 target_subdir="${target_alias}/"
21302 fi
21303
21304
21305 frags=
21306 if test "${target}" = "${host}"; then
21307 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21308 if test ! -f ${host_makefile_frag}; then
21309 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21310 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21311 { (exit 1); exit 1; }; }
21312 fi
21313 frags="$frags $host_makefile_frag"
21314 else
21315 host_makefile_frag=/dev/null
21316 fi
21317
21318 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21319 if test ! -f ${target_makefile_frag}; then
21320 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21321 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21322 { (exit 1); exit 1; }; }
21323 fi
21324 frags="$frags $target_makefile_frag"
21325
21326
21327
21328
21329
21330 hostfile=`sed -n '
21331 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21332 ' ${host_makefile_frag}`
21333
21334 targetfile=`sed -n '
21335 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21336 ' ${target_makefile_frag}`
21337
21338 if test "${target}" = "${host}"; then
21339 # We pick this up from the host configuration file (.mh) because we
21340 # do not have a native configuration Makefile fragment.
21341 nativefile=`sed -n '
21342 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21343 ' ${host_makefile_frag}`
21344 fi
21345
21346
21347 if test x"${gdb_osabi}" != x ; then
21348
21349 cat >>confdefs.h <<_ACEOF
21350 #define GDB_OSABI_DEFAULT $gdb_osabi
21351 _ACEOF
21352
21353 fi
21354
21355 # Enable multi-ice-gdb-server.
21356 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21357 if test "${enable_multi_ice+set}" = set; then
21358 enableval="$enable_multi_ice"
21359 case $enableval in
21360 yes | no)
21361 ;;
21362 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21363 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21364 { (exit 1); exit 1; }; } ;;
21365 esac
21366 fi;
21367 if test "x$enable_multi_ice" = xyes; then
21368
21369
21370 subdirs="$subdirs multi-ice"
21371
21372 fi
21373
21374 # We only build gdbserver automatically if host and target are the same.
21375 if test "x$target" = "x$host"; then
21376 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21377 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21378 if test "x$build_gdbserver" = xyes; then
21379 echo "$as_me:$LINENO: result: yes" >&5
21380 echo "${ECHO_T}yes" >&6
21381
21382
21383 subdirs="$subdirs gdbserver"
21384
21385 else
21386 echo "$as_me:$LINENO: result: no" >&5
21387 echo "${ECHO_T}no" >&6
21388 fi
21389 fi
21390
21391 # We build rdi-share on ARM-based targets, as instructed by configure.tgt.
21392 if test "x$build_rdi_share" = xyes; then
21393
21394
21395 subdirs="$subdirs rdi-share"
21396
21397 fi
21398
21399 # We configure the nlm subdirectory on netware targets, as instructed
21400 # by configure.tgt.
21401 if test "x$build_nlm" = xyes; then
21402
21403
21404 subdirs="$subdirs nlm"
21405
21406 fi
21407
21408 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21409 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21410 # to an empty version.
21411
21412 files=
21413 links=
21414
21415 rm -f xm.h
21416 xm_h=""
21417 if test "${hostfile}" != ""; then
21418 xm_h=xm.h
21419 case "${hostfile}" in
21420 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21421 * ) GDB_XM_FILE="${hostfile}"
21422 esac
21423 files="${files} ${GDB_XM_FILE}"
21424 links="${links} xm.h"
21425 cat >>confdefs.h <<_ACEOF
21426 #define GDB_XM_FILE "${GDB_XM_FILE}"
21427 _ACEOF
21428
21429 fi
21430
21431
21432 rm -f tm.h
21433 tm_h=""
21434 if test "${targetfile}" != ""; then
21435 tm_h=tm.h
21436 case "${targetfile}" in
21437 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21438 * ) GDB_TM_FILE="${targetfile}"
21439 esac
21440 files="${files} ${GDB_TM_FILE}"
21441 links="${links} tm.h"
21442 cat >>confdefs.h <<_ACEOF
21443 #define GDB_TM_FILE "${GDB_TM_FILE}"
21444 _ACEOF
21445
21446 fi
21447
21448
21449 rm -f nm.h
21450 nm_h=""
21451 if test "${nativefile}" != ""; then
21452 nm_h=nm.h
21453 case "${nativefile}" in
21454 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21455 * ) GDB_NM_FILE="${nativefile}"
21456 esac
21457 files="${files} ${GDB_NM_FILE}"
21458 links="${links} nm.h"
21459 cat >>confdefs.h <<_ACEOF
21460 #define GDB_NM_FILE "${GDB_NM_FILE}"
21461 _ACEOF
21462
21463 fi
21464
21465
21466 ac_sources="$files"
21467 ac_dests="$links"
21468 while test -n "$ac_sources"; do
21469 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21470 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21471 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21472 done
21473 ac_config_links="$ac_config_links $ac_config_links_1"
21474
21475
21476
21477
21478
21479
21480 cat >>confdefs.h <<\_ACEOF
21481 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21482 _ACEOF
21483
21484
21485
21486
21487
21488 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21489 if test "${with_libiconv_prefix+set}" = set; then
21490 withval="$with_libiconv_prefix"
21491
21492 for dir in `echo "$withval" | tr : ' '`; do
21493 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21494 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21495 done
21496
21497 fi;
21498
21499 echo "$as_me:$LINENO: checking for iconv" >&5
21500 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21501 if test "${am_cv_func_iconv+set}" = set; then
21502 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 else
21504
21505 am_cv_func_iconv="no, consider installing GNU libiconv"
21506 am_cv_lib_iconv=no
21507 cat >conftest.$ac_ext <<_ACEOF
21508 /* confdefs.h. */
21509 _ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 #include <stdlib.h>
21514 #include <iconv.h>
21515 int
21516 main ()
21517 {
21518 iconv_t cd = iconv_open("","");
21519 iconv(cd,NULL,NULL,NULL,NULL);
21520 iconv_close(cd);
21521 ;
21522 return 0;
21523 }
21524 _ACEOF
21525 rm -f conftest.$ac_objext conftest$ac_exeext
21526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21527 (eval $ac_link) 2>conftest.er1
21528 ac_status=$?
21529 grep -v '^ *+' conftest.er1 >conftest.err
21530 rm -f conftest.er1
21531 cat conftest.err >&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } &&
21534 { ac_try='test -z "$ac_c_werror_flag"
21535 || test ! -s conftest.err'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21538 ac_status=$?
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; } &&
21541 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21547 am_cv_func_iconv=yes
21548 else
21549 echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21551
21552 fi
21553 rm -f conftest.err conftest.$ac_objext \
21554 conftest$ac_exeext conftest.$ac_ext
21555 if test "$am_cv_func_iconv" != yes; then
21556 am_save_LIBS="$LIBS"
21557 LIBS="$LIBS -liconv"
21558 cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h. */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564 #include <stdlib.h>
21565 #include <iconv.h>
21566 int
21567 main ()
21568 {
21569 iconv_t cd = iconv_open("","");
21570 iconv(cd,NULL,NULL,NULL,NULL);
21571 iconv_close(cd);
21572 ;
21573 return 0;
21574 }
21575 _ACEOF
21576 rm -f conftest.$ac_objext conftest$ac_exeext
21577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21578 (eval $ac_link) 2>conftest.er1
21579 ac_status=$?
21580 grep -v '^ *+' conftest.er1 >conftest.err
21581 rm -f conftest.er1
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } &&
21585 { ac_try='test -z "$ac_c_werror_flag"
21586 || test ! -s conftest.err'
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21589 ac_status=$?
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; } &&
21592 { ac_try='test -s conftest$ac_exeext'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21595 ac_status=$?
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; }; then
21598 am_cv_lib_iconv=yes
21599 am_cv_func_iconv=yes
21600 else
21601 echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21603
21604 fi
21605 rm -f conftest.err conftest.$ac_objext \
21606 conftest$ac_exeext conftest.$ac_ext
21607 LIBS="$am_save_LIBS"
21608 fi
21609
21610 fi
21611 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21612 echo "${ECHO_T}$am_cv_func_iconv" >&6
21613 if test "$am_cv_func_iconv" = yes; then
21614
21615 cat >>confdefs.h <<\_ACEOF
21616 #define HAVE_ICONV 1
21617 _ACEOF
21618
21619 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21620 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21621 if test "${am_cv_proto_iconv+set}" = set; then
21622 echo $ECHO_N "(cached) $ECHO_C" >&6
21623 else
21624
21625 cat >conftest.$ac_ext <<_ACEOF
21626 /* confdefs.h. */
21627 _ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h. */
21631
21632 #include <stdlib.h>
21633 #include <iconv.h>
21634 extern
21635 #ifdef __cplusplus
21636 "C"
21637 #endif
21638 #if defined(__STDC__) || defined(__cplusplus)
21639 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21640 #else
21641 size_t iconv();
21642 #endif
21643
21644 int
21645 main ()
21646 {
21647
21648 ;
21649 return 0;
21650 }
21651 _ACEOF
21652 rm -f conftest.$ac_objext
21653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21654 (eval $ac_compile) 2>conftest.er1
21655 ac_status=$?
21656 grep -v '^ *+' conftest.er1 >conftest.err
21657 rm -f conftest.er1
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } &&
21661 { ac_try='test -z "$ac_c_werror_flag"
21662 || test ! -s conftest.err'
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21665 ac_status=$?
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try='test -s conftest.$ac_objext'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21671 ac_status=$?
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674 am_cv_proto_iconv_arg1=""
21675 else
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21678
21679 am_cv_proto_iconv_arg1="const"
21680 fi
21681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21682 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);"
21683 fi
21684
21685 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21686 echo "$as_me:$LINENO: result: ${ac_t:-
21687 }$am_cv_proto_iconv" >&5
21688 echo "${ECHO_T}${ac_t:-
21689 }$am_cv_proto_iconv" >&6
21690
21691 cat >>confdefs.h <<_ACEOF
21692 #define ICONV_CONST $am_cv_proto_iconv_arg1
21693 _ACEOF
21694
21695 fi
21696 LIBICONV=
21697 if test "$am_cv_lib_iconv" = yes; then
21698 LIBICONV="-liconv"
21699 fi
21700
21701
21702
21703 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21704 ac_config_commands="$ac_config_commands default"
21705 cat >confcache <<\_ACEOF
21706 # This file is a shell script that caches the results of configure
21707 # tests run on this system so they can be shared between configure
21708 # scripts and configure runs, see configure's option --config-cache.
21709 # It is not useful on other systems. If it contains results you don't
21710 # want to keep, you may remove or edit it.
21711 #
21712 # config.status only pays attention to the cache file if you give it
21713 # the --recheck option to rerun configure.
21714 #
21715 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21716 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21717 # following values.
21718
21719 _ACEOF
21720
21721 # The following way of writing the cache mishandles newlines in values,
21722 # but we know of no workaround that is simple, portable, and efficient.
21723 # So, don't put newlines in cache variables' values.
21724 # Ultrix sh set writes to stderr and can't be redirected directly,
21725 # and sets the high bit in the cache file unless we assign to the vars.
21726 {
21727 (set) 2>&1 |
21728 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21729 *ac_space=\ *)
21730 # `set' does not quote correctly, so add quotes (double-quote
21731 # substitution turns \\\\ into \\, and sed turns \\ into \).
21732 sed -n \
21733 "s/'/'\\\\''/g;
21734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21735 ;;
21736 *)
21737 # `set' quotes correctly as required by POSIX, so do not add quotes.
21738 sed -n \
21739 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21740 ;;
21741 esac;
21742 } |
21743 sed '
21744 t clear
21745 : clear
21746 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21747 t end
21748 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21749 : end' >>confcache
21750 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21751 if test -w $cache_file; then
21752 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21753 cat confcache >$cache_file
21754 else
21755 echo "not updating unwritable cache $cache_file"
21756 fi
21757 fi
21758 rm -f confcache
21759
21760 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21761 # Let make expand exec_prefix.
21762 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21763
21764 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21765 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21766 # trailing colons and then remove the whole line if VPATH becomes empty
21767 # (actually we leave an empty line to preserve line numbers).
21768 if test "x$srcdir" = x.; then
21769 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21770 s/:*\$(srcdir):*/:/;
21771 s/:*\${srcdir}:*/:/;
21772 s/:*@srcdir@:*/:/;
21773 s/^\([^=]*=[ ]*\):*/\1/;
21774 s/:*$//;
21775 s/^[^=]*=[ ]*$//;
21776 }'
21777 fi
21778
21779 DEFS=-DHAVE_CONFIG_H
21780
21781 ac_libobjs=
21782 ac_ltlibobjs=
21783 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21784 # 1. Remove the extension, and $U if already installed.
21785 ac_i=`echo "$ac_i" |
21786 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21787 # 2. Add them.
21788 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21789 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21790 done
21791 LIBOBJS=$ac_libobjs
21792
21793 LTLIBOBJS=$ac_ltlibobjs
21794
21795
21796 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21797 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21798 Usually this means the macro was only invoked conditionally." >&5
21799 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21800 Usually this means the macro was only invoked conditionally." >&2;}
21801 { (exit 1); exit 1; }; }
21802 fi
21803
21804 : ${CONFIG_STATUS=./config.status}
21805 ac_clean_files_save=$ac_clean_files
21806 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21807 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21808 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21809 cat >$CONFIG_STATUS <<_ACEOF
21810 #! $SHELL
21811 # Generated by $as_me.
21812 # Run this file to recreate the current configuration.
21813 # Compiler output produced by configure, useful for debugging
21814 # configure, is in config.log if it exists.
21815
21816 debug=false
21817 ac_cs_recheck=false
21818 ac_cs_silent=false
21819 SHELL=\${CONFIG_SHELL-$SHELL}
21820 _ACEOF
21821
21822 cat >>$CONFIG_STATUS <<\_ACEOF
21823 ## --------------------- ##
21824 ## M4sh Initialization. ##
21825 ## --------------------- ##
21826
21827 # Be Bourne compatible
21828 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21829 emulate sh
21830 NULLCMD=:
21831 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21832 # is contrary to our usage. Disable this feature.
21833 alias -g '${1+"$@"}'='"$@"'
21834 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21835 set -o posix
21836 fi
21837 DUALCASE=1; export DUALCASE # for MKS sh
21838
21839 # Support unset when possible.
21840 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21841 as_unset=unset
21842 else
21843 as_unset=false
21844 fi
21845
21846
21847 # Work around bugs in pre-3.0 UWIN ksh.
21848 $as_unset ENV MAIL MAILPATH
21849 PS1='$ '
21850 PS2='> '
21851 PS4='+ '
21852
21853 # NLS nuisances.
21854 for as_var in \
21855 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21856 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21857 LC_TELEPHONE LC_TIME
21858 do
21859 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21860 eval $as_var=C; export $as_var
21861 else
21862 $as_unset $as_var
21863 fi
21864 done
21865
21866 # Required to use basename.
21867 if expr a : '\(a\)' >/dev/null 2>&1; then
21868 as_expr=expr
21869 else
21870 as_expr=false
21871 fi
21872
21873 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21874 as_basename=basename
21875 else
21876 as_basename=false
21877 fi
21878
21879
21880 # Name of the executable.
21881 as_me=`$as_basename "$0" ||
21882 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21883 X"$0" : 'X\(//\)$' \| \
21884 X"$0" : 'X\(/\)$' \| \
21885 . : '\(.\)' 2>/dev/null ||
21886 echo X/"$0" |
21887 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21888 /^X\/\(\/\/\)$/{ s//\1/; q; }
21889 /^X\/\(\/\).*/{ s//\1/; q; }
21890 s/.*/./; q'`
21891
21892
21893 # PATH needs CR, and LINENO needs CR and PATH.
21894 # Avoid depending upon Character Ranges.
21895 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21896 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21897 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21898 as_cr_digits='0123456789'
21899 as_cr_alnum=$as_cr_Letters$as_cr_digits
21900
21901 # The user is always right.
21902 if test "${PATH_SEPARATOR+set}" != set; then
21903 echo "#! /bin/sh" >conf$$.sh
21904 echo "exit 0" >>conf$$.sh
21905 chmod +x conf$$.sh
21906 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21907 PATH_SEPARATOR=';'
21908 else
21909 PATH_SEPARATOR=:
21910 fi
21911 rm -f conf$$.sh
21912 fi
21913
21914
21915 as_lineno_1=$LINENO
21916 as_lineno_2=$LINENO
21917 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21918 test "x$as_lineno_1" != "x$as_lineno_2" &&
21919 test "x$as_lineno_3" = "x$as_lineno_2" || {
21920 # Find who we are. Look in the path if we contain no path at all
21921 # relative or not.
21922 case $0 in
21923 *[\\/]* ) as_myself=$0 ;;
21924 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21925 for as_dir in $PATH
21926 do
21927 IFS=$as_save_IFS
21928 test -z "$as_dir" && as_dir=.
21929 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21930 done
21931
21932 ;;
21933 esac
21934 # We did not find ourselves, most probably we were run as `sh COMMAND'
21935 # in which case we are not to be found in the path.
21936 if test "x$as_myself" = x; then
21937 as_myself=$0
21938 fi
21939 if test ! -f "$as_myself"; then
21940 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21941 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21942 { (exit 1); exit 1; }; }
21943 fi
21944 case $CONFIG_SHELL in
21945 '')
21946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21947 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21948 do
21949 IFS=$as_save_IFS
21950 test -z "$as_dir" && as_dir=.
21951 for as_base in sh bash ksh sh5; do
21952 case $as_dir in
21953 /*)
21954 if ("$as_dir/$as_base" -c '
21955 as_lineno_1=$LINENO
21956 as_lineno_2=$LINENO
21957 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21958 test "x$as_lineno_1" != "x$as_lineno_2" &&
21959 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21960 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21961 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21962 CONFIG_SHELL=$as_dir/$as_base
21963 export CONFIG_SHELL
21964 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21965 fi;;
21966 esac
21967 done
21968 done
21969 ;;
21970 esac
21971
21972 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21973 # uniformly replaced by the line number. The first 'sed' inserts a
21974 # line-number line before each line; the second 'sed' does the real
21975 # work. The second script uses 'N' to pair each line-number line
21976 # with the numbered line, and appends trailing '-' during
21977 # substitution so that $LINENO is not a special case at line end.
21978 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21979 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21980 sed '=' <$as_myself |
21981 sed '
21982 N
21983 s,$,-,
21984 : loop
21985 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21986 t loop
21987 s,-$,,
21988 s,^['$as_cr_digits']*\n,,
21989 ' >$as_me.lineno &&
21990 chmod +x $as_me.lineno ||
21991 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21992 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21993 { (exit 1); exit 1; }; }
21994
21995 # Don't try to exec as it changes $[0], causing all sort of problems
21996 # (the dirname of $[0] is not the place where we might find the
21997 # original and so on. Autoconf is especially sensible to this).
21998 . ./$as_me.lineno
21999 # Exit status is that of the last command.
22000 exit
22001 }
22002
22003
22004 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22005 *c*,-n*) ECHO_N= ECHO_C='
22006 ' ECHO_T=' ' ;;
22007 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22008 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22009 esac
22010
22011 if expr a : '\(a\)' >/dev/null 2>&1; then
22012 as_expr=expr
22013 else
22014 as_expr=false
22015 fi
22016
22017 rm -f conf$$ conf$$.exe conf$$.file
22018 echo >conf$$.file
22019 if ln -s conf$$.file conf$$ 2>/dev/null; then
22020 # We could just check for DJGPP; but this test a) works b) is more generic
22021 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22022 if test -f conf$$.exe; then
22023 # Don't use ln at all; we don't have any links
22024 as_ln_s='cp -p'
22025 else
22026 as_ln_s='ln -s'
22027 fi
22028 elif ln conf$$.file conf$$ 2>/dev/null; then
22029 as_ln_s=ln
22030 else
22031 as_ln_s='cp -p'
22032 fi
22033 rm -f conf$$ conf$$.exe conf$$.file
22034
22035 if mkdir -p . 2>/dev/null; then
22036 as_mkdir_p=:
22037 else
22038 test -d ./-p && rmdir ./-p
22039 as_mkdir_p=false
22040 fi
22041
22042 as_executable_p="test -f"
22043
22044 # Sed expression to map a string onto a valid CPP name.
22045 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22046
22047 # Sed expression to map a string onto a valid variable name.
22048 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22049
22050
22051 # IFS
22052 # We need space, tab and new line, in precisely that order.
22053 as_nl='
22054 '
22055 IFS=" $as_nl"
22056
22057 # CDPATH.
22058 $as_unset CDPATH
22059
22060 exec 6>&1
22061
22062 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22063 # report actual input values of CONFIG_FILES etc. instead of their
22064 # values after options handling. Logging --version etc. is OK.
22065 exec 5>>config.log
22066 {
22067 echo
22068 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22069 ## Running $as_me. ##
22070 _ASBOX
22071 } >&5
22072 cat >&5 <<_CSEOF
22073
22074 This file was extended by $as_me, which was
22075 generated by GNU Autoconf 2.59. Invocation command line was
22076
22077 CONFIG_FILES = $CONFIG_FILES
22078 CONFIG_HEADERS = $CONFIG_HEADERS
22079 CONFIG_LINKS = $CONFIG_LINKS
22080 CONFIG_COMMANDS = $CONFIG_COMMANDS
22081 $ $0 $@
22082
22083 _CSEOF
22084 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22085 echo >&5
22086 _ACEOF
22087
22088 # Files that config.status was made for.
22089 if test -n "$ac_config_files"; then
22090 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22091 fi
22092
22093 if test -n "$ac_config_headers"; then
22094 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22095 fi
22096
22097 if test -n "$ac_config_links"; then
22098 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22099 fi
22100
22101 if test -n "$ac_config_commands"; then
22102 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22103 fi
22104
22105 cat >>$CONFIG_STATUS <<\_ACEOF
22106
22107 ac_cs_usage="\
22108 \`$as_me' instantiates files from templates according to the
22109 current configuration.
22110
22111 Usage: $0 [OPTIONS] [FILE]...
22112
22113 -h, --help print this help, then exit
22114 -V, --version print version number, then exit
22115 -q, --quiet do not print progress messages
22116 -d, --debug don't remove temporary files
22117 --recheck update $as_me by reconfiguring in the same conditions
22118 --file=FILE[:TEMPLATE]
22119 instantiate the configuration file FILE
22120 --header=FILE[:TEMPLATE]
22121 instantiate the configuration header FILE
22122
22123 Configuration files:
22124 $config_files
22125
22126 Configuration headers:
22127 $config_headers
22128
22129 Configuration links:
22130 $config_links
22131
22132 Configuration commands:
22133 $config_commands
22134
22135 Report bugs to <bug-autoconf@gnu.org>."
22136 _ACEOF
22137
22138 cat >>$CONFIG_STATUS <<_ACEOF
22139 ac_cs_version="\\
22140 config.status
22141 configured by $0, generated by GNU Autoconf 2.59,
22142 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22143
22144 Copyright (C) 2003 Free Software Foundation, Inc.
22145 This config.status script is free software; the Free Software Foundation
22146 gives unlimited permission to copy, distribute and modify it."
22147 srcdir=$srcdir
22148 INSTALL="$INSTALL"
22149 _ACEOF
22150
22151 cat >>$CONFIG_STATUS <<\_ACEOF
22152 # If no file are specified by the user, then we need to provide default
22153 # value. By we need to know if files were specified by the user.
22154 ac_need_defaults=:
22155 while test $# != 0
22156 do
22157 case $1 in
22158 --*=*)
22159 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22160 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22161 ac_shift=:
22162 ;;
22163 -*)
22164 ac_option=$1
22165 ac_optarg=$2
22166 ac_shift=shift
22167 ;;
22168 *) # This is not an option, so the user has probably given explicit
22169 # arguments.
22170 ac_option=$1
22171 ac_need_defaults=false;;
22172 esac
22173
22174 case $ac_option in
22175 # Handling of the options.
22176 _ACEOF
22177 cat >>$CONFIG_STATUS <<\_ACEOF
22178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22179 ac_cs_recheck=: ;;
22180 --version | --vers* | -V )
22181 echo "$ac_cs_version"; exit 0 ;;
22182 --he | --h)
22183 # Conflict between --help and --header
22184 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22185 Try \`$0 --help' for more information." >&5
22186 echo "$as_me: error: ambiguous option: $1
22187 Try \`$0 --help' for more information." >&2;}
22188 { (exit 1); exit 1; }; };;
22189 --help | --hel | -h )
22190 echo "$ac_cs_usage"; exit 0 ;;
22191 --debug | --d* | -d )
22192 debug=: ;;
22193 --file | --fil | --fi | --f )
22194 $ac_shift
22195 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22196 ac_need_defaults=false;;
22197 --header | --heade | --head | --hea )
22198 $ac_shift
22199 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22200 ac_need_defaults=false;;
22201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22202 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22203 ac_cs_silent=: ;;
22204
22205 # This is an error.
22206 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22207 Try \`$0 --help' for more information." >&5
22208 echo "$as_me: error: unrecognized option: $1
22209 Try \`$0 --help' for more information." >&2;}
22210 { (exit 1); exit 1; }; } ;;
22211
22212 *) ac_config_targets="$ac_config_targets $1" ;;
22213
22214 esac
22215 shift
22216 done
22217
22218 ac_configure_extra_args=
22219
22220 if $ac_cs_silent; then
22221 exec 6>/dev/null
22222 ac_configure_extra_args="$ac_configure_extra_args --silent"
22223 fi
22224
22225 _ACEOF
22226 cat >>$CONFIG_STATUS <<_ACEOF
22227 if \$ac_cs_recheck; then
22228 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22229 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22230 fi
22231
22232 _ACEOF
22233
22234 cat >>$CONFIG_STATUS <<_ACEOF
22235 #
22236 # INIT-COMMANDS section.
22237 #
22238
22239
22240 gdb_host_cpu=$gdb_host_cpu
22241 gdb_target_cpu=$gdb_target_cpu
22242 nativefile=$nativefile
22243
22244
22245 _ACEOF
22246
22247
22248
22249 cat >>$CONFIG_STATUS <<\_ACEOF
22250 for ac_config_target in $ac_config_targets
22251 do
22252 case "$ac_config_target" in
22253 # Handling of arguments.
22254 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22255 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22256 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22257 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22258 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22259 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22260 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22261 { (exit 1); exit 1; }; };;
22262 esac
22263 done
22264
22265 # If the user did not use the arguments to specify the items to instantiate,
22266 # then the envvar interface is used. Set only those that are not.
22267 # We use the long form for the default assignment because of an extremely
22268 # bizarre bug on SunOS 4.1.3.
22269 if $ac_need_defaults; then
22270 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22271 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22272 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22273 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22274 fi
22275
22276 # Have a temporary directory for convenience. Make it in the build tree
22277 # simply because there is no reason to put it here, and in addition,
22278 # creating and moving files from /tmp can sometimes cause problems.
22279 # Create a temporary directory, and hook for its removal unless debugging.
22280 $debug ||
22281 {
22282 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22283 trap '{ (exit 1); exit 1; }' 1 2 13 15
22284 }
22285
22286 # Create a (secure) tmp directory for tmp files.
22287
22288 {
22289 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22290 test -n "$tmp" && test -d "$tmp"
22291 } ||
22292 {
22293 tmp=./confstat$$-$RANDOM
22294 (umask 077 && mkdir $tmp)
22295 } ||
22296 {
22297 echo "$me: cannot create a temporary directory in ." >&2
22298 { (exit 1); exit 1; }
22299 }
22300
22301 _ACEOF
22302
22303 cat >>$CONFIG_STATUS <<_ACEOF
22304
22305 #
22306 # CONFIG_FILES section.
22307 #
22308
22309 # No need to generate the scripts if there are no CONFIG_FILES.
22310 # This happens for instance when ./config.status config.h
22311 if test -n "\$CONFIG_FILES"; then
22312 # Protect against being on the right side of a sed subst in config.status.
22313 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22314 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22315 s,@SHELL@,$SHELL,;t t
22316 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22317 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22318 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22319 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22320 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22321 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22322 s,@exec_prefix@,$exec_prefix,;t t
22323 s,@prefix@,$prefix,;t t
22324 s,@program_transform_name@,$program_transform_name,;t t
22325 s,@bindir@,$bindir,;t t
22326 s,@sbindir@,$sbindir,;t t
22327 s,@libexecdir@,$libexecdir,;t t
22328 s,@datadir@,$datadir,;t t
22329 s,@sysconfdir@,$sysconfdir,;t t
22330 s,@sharedstatedir@,$sharedstatedir,;t t
22331 s,@localstatedir@,$localstatedir,;t t
22332 s,@libdir@,$libdir,;t t
22333 s,@includedir@,$includedir,;t t
22334 s,@oldincludedir@,$oldincludedir,;t t
22335 s,@infodir@,$infodir,;t t
22336 s,@mandir@,$mandir,;t t
22337 s,@build_alias@,$build_alias,;t t
22338 s,@host_alias@,$host_alias,;t t
22339 s,@target_alias@,$target_alias,;t t
22340 s,@DEFS@,$DEFS,;t t
22341 s,@ECHO_C@,$ECHO_C,;t t
22342 s,@ECHO_N@,$ECHO_N,;t t
22343 s,@ECHO_T@,$ECHO_T,;t t
22344 s,@LIBS@,$LIBS,;t t
22345 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22346 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22347 s,@MAINT@,$MAINT,;t t
22348 s,@CC@,$CC,;t t
22349 s,@CFLAGS@,$CFLAGS,;t t
22350 s,@LDFLAGS@,$LDFLAGS,;t t
22351 s,@CPPFLAGS@,$CPPFLAGS,;t t
22352 s,@ac_ct_CC@,$ac_ct_CC,;t t
22353 s,@EXEEXT@,$EXEEXT,;t t
22354 s,@OBJEXT@,$OBJEXT,;t t
22355 s,@CPP@,$CPP,;t t
22356 s,@EGREP@,$EGREP,;t t
22357 s,@build@,$build,;t t
22358 s,@build_cpu@,$build_cpu,;t t
22359 s,@build_vendor@,$build_vendor,;t t
22360 s,@build_os@,$build_os,;t t
22361 s,@host@,$host,;t t
22362 s,@host_cpu@,$host_cpu,;t t
22363 s,@host_vendor@,$host_vendor,;t t
22364 s,@host_os@,$host_os,;t t
22365 s,@target@,$target,;t t
22366 s,@target_cpu@,$target_cpu,;t t
22367 s,@target_vendor@,$target_vendor,;t t
22368 s,@target_os@,$target_os,;t t
22369 s,@RANLIB@,$RANLIB,;t t
22370 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22371 s,@SET_MAKE@,$SET_MAKE,;t t
22372 s,@ALLOCA@,$ALLOCA,;t t
22373 s,@USE_NLS@,$USE_NLS,;t t
22374 s,@MSGFMT@,$MSGFMT,;t t
22375 s,@GMSGFMT@,$GMSGFMT,;t t
22376 s,@XGETTEXT@,$XGETTEXT,;t t
22377 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22378 s,@CATALOGS@,$CATALOGS,;t t
22379 s,@CATOBJEXT@,$CATOBJEXT,;t t
22380 s,@DATADIRNAME@,$DATADIRNAME,;t t
22381 s,@GMOFILES@,$GMOFILES,;t t
22382 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22383 s,@INTLDEPS@,$INTLDEPS,;t t
22384 s,@INTLLIBS@,$INTLLIBS,;t t
22385 s,@INTLOBJS@,$INTLOBJS,;t t
22386 s,@POFILES@,$POFILES,;t t
22387 s,@POSUB@,$POSUB,;t t
22388 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22389 s,@GT_NO@,$GT_NO,;t t
22390 s,@GT_YES@,$GT_YES,;t t
22391 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22392 s,@l@,$l,;t t
22393 s,@localedir@,$localedir,;t t
22394 s,@PACKAGE@,$PACKAGE,;t t
22395 s,@subdirs@,$subdirs,;t t
22396 s,@AWK@,$AWK,;t t
22397 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22398 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22399 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22400 s,@LN_S@,$LN_S,;t t
22401 s,@YACC@,$YACC,;t t
22402 s,@AR@,$AR,;t t
22403 s,@ac_ct_AR@,$ac_ct_AR,;t t
22404 s,@DLLTOOL@,$DLLTOOL,;t t
22405 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22406 s,@WINDRES@,$WINDRES,;t t
22407 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22408 s,@MIG@,$MIG,;t t
22409 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22410 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22411 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22412 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22413 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22414 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22415 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22416 s,@WIN32LIBS@,$WIN32LIBS,;t t
22417 s,@LIBGUI@,$LIBGUI,;t t
22418 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22419 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22420 s,@TCL_VERSION@,$TCL_VERSION,;t t
22421 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22422 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22423 s,@TCL_CC@,$TCL_CC,;t t
22424 s,@TCL_DEFS@,$TCL_DEFS,;t t
22425 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22426 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22427 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22428 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22429 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22430 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22431 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22432 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22433 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22434 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22435 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22436 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22437 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22438 s,@TK_VERSION@,$TK_VERSION,;t t
22439 s,@TK_DEFS@,$TK_DEFS,;t t
22440 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22441 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22442 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22443 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22444 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22445 s,@TCLHDIR@,$TCLHDIR,;t t
22446 s,@TKHDIR@,$TKHDIR,;t t
22447 s,@ITCLHDIR@,$ITCLHDIR,;t t
22448 s,@ITKHDIR@,$ITKHDIR,;t t
22449 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22450 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22451 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22452 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22453 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22454 s,@ITK_VERSION@,$ITK_VERSION,;t t
22455 s,@ITK_DEFS@,$ITK_DEFS,;t t
22456 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22457 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22458 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22459 s,@X_CFLAGS@,$X_CFLAGS,;t t
22460 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22461 s,@X_LIBS@,$X_LIBS,;t t
22462 s,@TCL_DEPS@,$TCL_DEPS,;t t
22463 s,@TK_DEPS@,$TK_DEPS,;t t
22464 s,@ITCLLIB@,$ITCLLIB,;t t
22465 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22466 s,@ITKLIB@,$ITKLIB,;t t
22467 s,@ITK_DEPS@,$ITK_DEPS,;t t
22468 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22469 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22470 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22471 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22472 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22473 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22474 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22475 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22476 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22477 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22478 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22479 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22480 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22481 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22482 s,@target_subdir@,$target_subdir,;t t
22483 s,@frags@,$frags,;t t
22484 s,@xm_h@,$xm_h,;t t
22485 s,@tm_h@,$tm_h,;t t
22486 s,@nm_h@,$nm_h,;t t
22487 s,@LIBICONV@,$LIBICONV,;t t
22488 s,@LIBOBJS@,$LIBOBJS,;t t
22489 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22490 /@host_makefile_frag@/r $host_makefile_frag
22491 s,@host_makefile_frag@,,;t t
22492 /@target_makefile_frag@/r $target_makefile_frag
22493 s,@target_makefile_frag@,,;t t
22494 CEOF
22495
22496 _ACEOF
22497
22498 cat >>$CONFIG_STATUS <<\_ACEOF
22499 # Split the substitutions into bite-sized pieces for seds with
22500 # small command number limits, like on Digital OSF/1 and HP-UX.
22501 ac_max_sed_lines=48
22502 ac_sed_frag=1 # Number of current file.
22503 ac_beg=1 # First line for current file.
22504 ac_end=$ac_max_sed_lines # Line after last line for current file.
22505 ac_more_lines=:
22506 ac_sed_cmds=
22507 while $ac_more_lines; do
22508 if test $ac_beg -gt 1; then
22509 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22510 else
22511 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22512 fi
22513 if test ! -s $tmp/subs.frag; then
22514 ac_more_lines=false
22515 else
22516 # The purpose of the label and of the branching condition is to
22517 # speed up the sed processing (if there are no `@' at all, there
22518 # is no need to browse any of the substitutions).
22519 # These are the two extra sed commands mentioned above.
22520 (echo ':t
22521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22522 if test -z "$ac_sed_cmds"; then
22523 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22524 else
22525 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22526 fi
22527 ac_sed_frag=`expr $ac_sed_frag + 1`
22528 ac_beg=$ac_end
22529 ac_end=`expr $ac_end + $ac_max_sed_lines`
22530 fi
22531 done
22532 if test -z "$ac_sed_cmds"; then
22533 ac_sed_cmds=cat
22534 fi
22535 fi # test -n "$CONFIG_FILES"
22536
22537 _ACEOF
22538 cat >>$CONFIG_STATUS <<\_ACEOF
22539 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22540 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22541 case $ac_file in
22542 - | *:- | *:-:* ) # input from stdin
22543 cat >$tmp/stdin
22544 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22545 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22546 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22547 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22548 * ) ac_file_in=$ac_file.in ;;
22549 esac
22550
22551 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22552 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22554 X"$ac_file" : 'X\(//\)[^/]' \| \
22555 X"$ac_file" : 'X\(//\)$' \| \
22556 X"$ac_file" : 'X\(/\)' \| \
22557 . : '\(.\)' 2>/dev/null ||
22558 echo X"$ac_file" |
22559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22561 /^X\(\/\/\)$/{ s//\1/; q; }
22562 /^X\(\/\).*/{ s//\1/; q; }
22563 s/.*/./; q'`
22564 { if $as_mkdir_p; then
22565 mkdir -p "$ac_dir"
22566 else
22567 as_dir="$ac_dir"
22568 as_dirs=
22569 while test ! -d "$as_dir"; do
22570 as_dirs="$as_dir $as_dirs"
22571 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22573 X"$as_dir" : 'X\(//\)[^/]' \| \
22574 X"$as_dir" : 'X\(//\)$' \| \
22575 X"$as_dir" : 'X\(/\)' \| \
22576 . : '\(.\)' 2>/dev/null ||
22577 echo X"$as_dir" |
22578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22580 /^X\(\/\/\)$/{ s//\1/; q; }
22581 /^X\(\/\).*/{ s//\1/; q; }
22582 s/.*/./; q'`
22583 done
22584 test ! -n "$as_dirs" || mkdir $as_dirs
22585 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22586 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22587 { (exit 1); exit 1; }; }; }
22588
22589 ac_builddir=.
22590
22591 if test "$ac_dir" != .; then
22592 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22593 # A "../" for each directory in $ac_dir_suffix.
22594 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22595 else
22596 ac_dir_suffix= ac_top_builddir=
22597 fi
22598
22599 case $srcdir in
22600 .) # No --srcdir option. We are building in place.
22601 ac_srcdir=.
22602 if test -z "$ac_top_builddir"; then
22603 ac_top_srcdir=.
22604 else
22605 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22606 fi ;;
22607 [\\/]* | ?:[\\/]* ) # Absolute path.
22608 ac_srcdir=$srcdir$ac_dir_suffix;
22609 ac_top_srcdir=$srcdir ;;
22610 *) # Relative path.
22611 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22612 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22613 esac
22614
22615 # Do not use `cd foo && pwd` to compute absolute paths, because
22616 # the directories may not exist.
22617 case `pwd` in
22618 .) ac_abs_builddir="$ac_dir";;
22619 *)
22620 case "$ac_dir" in
22621 .) ac_abs_builddir=`pwd`;;
22622 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22623 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22624 esac;;
22625 esac
22626 case $ac_abs_builddir in
22627 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22628 *)
22629 case ${ac_top_builddir}. in
22630 .) ac_abs_top_builddir=$ac_abs_builddir;;
22631 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22632 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22633 esac;;
22634 esac
22635 case $ac_abs_builddir in
22636 .) ac_abs_srcdir=$ac_srcdir;;
22637 *)
22638 case $ac_srcdir in
22639 .) ac_abs_srcdir=$ac_abs_builddir;;
22640 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22641 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22642 esac;;
22643 esac
22644 case $ac_abs_builddir in
22645 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22646 *)
22647 case $ac_top_srcdir in
22648 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22649 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22650 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22651 esac;;
22652 esac
22653
22654
22655 case $INSTALL in
22656 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22657 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22658 esac
22659
22660 if test x"$ac_file" != x-; then
22661 { echo "$as_me:$LINENO: creating $ac_file" >&5
22662 echo "$as_me: creating $ac_file" >&6;}
22663 rm -f "$ac_file"
22664 fi
22665 # Let's still pretend it is `configure' which instantiates (i.e., don't
22666 # use $as_me), people would be surprised to read:
22667 # /* config.h. Generated by config.status. */
22668 if test x"$ac_file" = x-; then
22669 configure_input=
22670 else
22671 configure_input="$ac_file. "
22672 fi
22673 configure_input=$configure_input"Generated from `echo $ac_file_in |
22674 sed 's,.*/,,'` by configure."
22675
22676 # First look for the input files in the build tree, otherwise in the
22677 # src tree.
22678 ac_file_inputs=`IFS=:
22679 for f in $ac_file_in; do
22680 case $f in
22681 -) echo $tmp/stdin ;;
22682 [\\/$]*)
22683 # Absolute (can't be DOS-style, as IFS=:)
22684 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22685 echo "$as_me: error: cannot find input file: $f" >&2;}
22686 { (exit 1); exit 1; }; }
22687 echo "$f";;
22688 *) # Relative
22689 if test -f "$f"; then
22690 # Build tree
22691 echo "$f"
22692 elif test -f "$srcdir/$f"; then
22693 # Source tree
22694 echo "$srcdir/$f"
22695 else
22696 # /dev/null tree
22697 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22698 echo "$as_me: error: cannot find input file: $f" >&2;}
22699 { (exit 1); exit 1; }; }
22700 fi;;
22701 esac
22702 done` || { (exit 1); exit 1; }
22703 _ACEOF
22704 cat >>$CONFIG_STATUS <<_ACEOF
22705 sed "$ac_vpsub
22706 $extrasub
22707 _ACEOF
22708 cat >>$CONFIG_STATUS <<\_ACEOF
22709 :t
22710 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22711 s,@configure_input@,$configure_input,;t t
22712 s,@srcdir@,$ac_srcdir,;t t
22713 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22714 s,@top_srcdir@,$ac_top_srcdir,;t t
22715 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22716 s,@builddir@,$ac_builddir,;t t
22717 s,@abs_builddir@,$ac_abs_builddir,;t t
22718 s,@top_builddir@,$ac_top_builddir,;t t
22719 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22720 s,@INSTALL@,$ac_INSTALL,;t t
22721 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22722 rm -f $tmp/stdin
22723 if test x"$ac_file" != x-; then
22724 mv $tmp/out $ac_file
22725 else
22726 cat $tmp/out
22727 rm -f $tmp/out
22728 fi
22729
22730 done
22731 _ACEOF
22732 cat >>$CONFIG_STATUS <<\_ACEOF
22733
22734 #
22735 # CONFIG_HEADER section.
22736 #
22737
22738 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22739 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22740 #
22741 # ac_d sets the value in "#define NAME VALUE" lines.
22742 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22743 ac_dB='[ ].*$,\1#\2'
22744 ac_dC=' '
22745 ac_dD=',;t'
22746 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22747 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22748 ac_uB='$,\1#\2define\3'
22749 ac_uC=' '
22750 ac_uD=',;t'
22751
22752 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22753 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22754 case $ac_file in
22755 - | *:- | *:-:* ) # input from stdin
22756 cat >$tmp/stdin
22757 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22759 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22760 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22761 * ) ac_file_in=$ac_file.in ;;
22762 esac
22763
22764 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22765 echo "$as_me: creating $ac_file" >&6;}
22766
22767 # First look for the input files in the build tree, otherwise in the
22768 # src tree.
22769 ac_file_inputs=`IFS=:
22770 for f in $ac_file_in; do
22771 case $f in
22772 -) echo $tmp/stdin ;;
22773 [\\/$]*)
22774 # Absolute (can't be DOS-style, as IFS=:)
22775 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22776 echo "$as_me: error: cannot find input file: $f" >&2;}
22777 { (exit 1); exit 1; }; }
22778 # Do quote $f, to prevent DOS paths from being IFS'd.
22779 echo "$f";;
22780 *) # Relative
22781 if test -f "$f"; then
22782 # Build tree
22783 echo "$f"
22784 elif test -f "$srcdir/$f"; then
22785 # Source tree
22786 echo "$srcdir/$f"
22787 else
22788 # /dev/null tree
22789 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22790 echo "$as_me: error: cannot find input file: $f" >&2;}
22791 { (exit 1); exit 1; }; }
22792 fi;;
22793 esac
22794 done` || { (exit 1); exit 1; }
22795 # Remove the trailing spaces.
22796 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22797
22798 _ACEOF
22799
22800 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22801 # `conftest.undefs', that substitutes the proper values into
22802 # config.h.in to produce config.h. The first handles `#define'
22803 # templates, and the second `#undef' templates.
22804 # And first: Protect against being on the right side of a sed subst in
22805 # config.status. Protect against being in an unquoted here document
22806 # in config.status.
22807 rm -f conftest.defines conftest.undefs
22808 # Using a here document instead of a string reduces the quoting nightmare.
22809 # Putting comments in sed scripts is not portable.
22810 #
22811 # `end' is used to avoid that the second main sed command (meant for
22812 # 0-ary CPP macros) applies to n-ary macro definitions.
22813 # See the Autoconf documentation for `clear'.
22814 cat >confdef2sed.sed <<\_ACEOF
22815 s/[\\&,]/\\&/g
22816 s,[\\$`],\\&,g
22817 t clear
22818 : clear
22819 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22820 t end
22821 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22822 : end
22823 _ACEOF
22824 # If some macros were called several times there might be several times
22825 # the same #defines, which is useless. Nevertheless, we may not want to
22826 # sort them, since we want the *last* AC-DEFINE to be honored.
22827 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22828 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22829 rm -f confdef2sed.sed
22830
22831 # This sed command replaces #undef with comments. This is necessary, for
22832 # example, in the case of _POSIX_SOURCE, which is predefined and required
22833 # on some systems where configure will not decide to define it.
22834 cat >>conftest.undefs <<\_ACEOF
22835 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22836 _ACEOF
22837
22838 # Break up conftest.defines because some shells have a limit on the size
22839 # of here documents, and old seds have small limits too (100 cmds).
22840 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22841 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22842 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22843 echo ' :' >>$CONFIG_STATUS
22844 rm -f conftest.tail
22845 while grep . conftest.defines >/dev/null
22846 do
22847 # Write a limited-size here document to $tmp/defines.sed.
22848 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22849 # Speed up: don't consider the non `#define' lines.
22850 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22851 # Work around the forget-to-reset-the-flag bug.
22852 echo 't clr' >>$CONFIG_STATUS
22853 echo ': clr' >>$CONFIG_STATUS
22854 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22855 echo 'CEOF
22856 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22857 rm -f $tmp/in
22858 mv $tmp/out $tmp/in
22859 ' >>$CONFIG_STATUS
22860 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22861 rm -f conftest.defines
22862 mv conftest.tail conftest.defines
22863 done
22864 rm -f conftest.defines
22865 echo ' fi # grep' >>$CONFIG_STATUS
22866 echo >>$CONFIG_STATUS
22867
22868 # Break up conftest.undefs because some shells have a limit on the size
22869 # of here documents, and old seds have small limits too (100 cmds).
22870 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22871 rm -f conftest.tail
22872 while grep . conftest.undefs >/dev/null
22873 do
22874 # Write a limited-size here document to $tmp/undefs.sed.
22875 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22876 # Speed up: don't consider the non `#undef'
22877 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22878 # Work around the forget-to-reset-the-flag bug.
22879 echo 't clr' >>$CONFIG_STATUS
22880 echo ': clr' >>$CONFIG_STATUS
22881 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22882 echo 'CEOF
22883 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22884 rm -f $tmp/in
22885 mv $tmp/out $tmp/in
22886 ' >>$CONFIG_STATUS
22887 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22888 rm -f conftest.undefs
22889 mv conftest.tail conftest.undefs
22890 done
22891 rm -f conftest.undefs
22892
22893 cat >>$CONFIG_STATUS <<\_ACEOF
22894 # Let's still pretend it is `configure' which instantiates (i.e., don't
22895 # use $as_me), people would be surprised to read:
22896 # /* config.h. Generated by config.status. */
22897 if test x"$ac_file" = x-; then
22898 echo "/* Generated by configure. */" >$tmp/config.h
22899 else
22900 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22901 fi
22902 cat $tmp/in >>$tmp/config.h
22903 rm -f $tmp/in
22904 if test x"$ac_file" != x-; then
22905 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22906 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22907 echo "$as_me: $ac_file is unchanged" >&6;}
22908 else
22909 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22911 X"$ac_file" : 'X\(//\)[^/]' \| \
22912 X"$ac_file" : 'X\(//\)$' \| \
22913 X"$ac_file" : 'X\(/\)' \| \
22914 . : '\(.\)' 2>/dev/null ||
22915 echo X"$ac_file" |
22916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22918 /^X\(\/\/\)$/{ s//\1/; q; }
22919 /^X\(\/\).*/{ s//\1/; q; }
22920 s/.*/./; q'`
22921 { if $as_mkdir_p; then
22922 mkdir -p "$ac_dir"
22923 else
22924 as_dir="$ac_dir"
22925 as_dirs=
22926 while test ! -d "$as_dir"; do
22927 as_dirs="$as_dir $as_dirs"
22928 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22930 X"$as_dir" : 'X\(//\)[^/]' \| \
22931 X"$as_dir" : 'X\(//\)$' \| \
22932 X"$as_dir" : 'X\(/\)' \| \
22933 . : '\(.\)' 2>/dev/null ||
22934 echo X"$as_dir" |
22935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22937 /^X\(\/\/\)$/{ s//\1/; q; }
22938 /^X\(\/\).*/{ s//\1/; q; }
22939 s/.*/./; q'`
22940 done
22941 test ! -n "$as_dirs" || mkdir $as_dirs
22942 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22943 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22944 { (exit 1); exit 1; }; }; }
22945
22946 rm -f $ac_file
22947 mv $tmp/config.h $ac_file
22948 fi
22949 else
22950 cat $tmp/config.h
22951 rm -f $tmp/config.h
22952 fi
22953 done
22954 _ACEOF
22955 cat >>$CONFIG_STATUS <<\_ACEOF
22956
22957 #
22958 # CONFIG_LINKS section.
22959 #
22960
22961 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22962 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22963 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22964
22965 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22966 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22967
22968 if test ! -r $srcdir/$ac_source; then
22969 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22970 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22971 { (exit 1); exit 1; }; }
22972 fi
22973 rm -f $ac_dest
22974
22975 # Make relative symlinks.
22976 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22977 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22978 X"$ac_dest" : 'X\(//\)[^/]' \| \
22979 X"$ac_dest" : 'X\(//\)$' \| \
22980 X"$ac_dest" : 'X\(/\)' \| \
22981 . : '\(.\)' 2>/dev/null ||
22982 echo X"$ac_dest" |
22983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22985 /^X\(\/\/\)$/{ s//\1/; q; }
22986 /^X\(\/\).*/{ s//\1/; q; }
22987 s/.*/./; q'`
22988 { if $as_mkdir_p; then
22989 mkdir -p "$ac_dest_dir"
22990 else
22991 as_dir="$ac_dest_dir"
22992 as_dirs=
22993 while test ! -d "$as_dir"; do
22994 as_dirs="$as_dir $as_dirs"
22995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22997 X"$as_dir" : 'X\(//\)[^/]' \| \
22998 X"$as_dir" : 'X\(//\)$' \| \
22999 X"$as_dir" : 'X\(/\)' \| \
23000 . : '\(.\)' 2>/dev/null ||
23001 echo X"$as_dir" |
23002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23004 /^X\(\/\/\)$/{ s//\1/; q; }
23005 /^X\(\/\).*/{ s//\1/; q; }
23006 s/.*/./; q'`
23007 done
23008 test ! -n "$as_dirs" || mkdir $as_dirs
23009 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23010 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23011 { (exit 1); exit 1; }; }; }
23012
23013 ac_builddir=.
23014
23015 if test "$ac_dest_dir" != .; then
23016 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23017 # A "../" for each directory in $ac_dir_suffix.
23018 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23019 else
23020 ac_dir_suffix= ac_top_builddir=
23021 fi
23022
23023 case $srcdir in
23024 .) # No --srcdir option. We are building in place.
23025 ac_srcdir=.
23026 if test -z "$ac_top_builddir"; then
23027 ac_top_srcdir=.
23028 else
23029 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23030 fi ;;
23031 [\\/]* | ?:[\\/]* ) # Absolute path.
23032 ac_srcdir=$srcdir$ac_dir_suffix;
23033 ac_top_srcdir=$srcdir ;;
23034 *) # Relative path.
23035 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23036 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23037 esac
23038
23039 # Do not use `cd foo && pwd` to compute absolute paths, because
23040 # the directories may not exist.
23041 case `pwd` in
23042 .) ac_abs_builddir="$ac_dest_dir";;
23043 *)
23044 case "$ac_dest_dir" in
23045 .) ac_abs_builddir=`pwd`;;
23046 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23047 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23048 esac;;
23049 esac
23050 case $ac_abs_builddir in
23051 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23052 *)
23053 case ${ac_top_builddir}. in
23054 .) ac_abs_top_builddir=$ac_abs_builddir;;
23055 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23056 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23057 esac;;
23058 esac
23059 case $ac_abs_builddir in
23060 .) ac_abs_srcdir=$ac_srcdir;;
23061 *)
23062 case $ac_srcdir in
23063 .) ac_abs_srcdir=$ac_abs_builddir;;
23064 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23065 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23066 esac;;
23067 esac
23068 case $ac_abs_builddir in
23069 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23070 *)
23071 case $ac_top_srcdir in
23072 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23073 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23074 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23075 esac;;
23076 esac
23077
23078
23079 case $srcdir in
23080 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23081 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23082 esac
23083
23084 # Try a symlink, then a hard link, then a copy.
23085 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23086 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23087 cp -p $srcdir/$ac_source $ac_dest ||
23088 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23089 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23090 { (exit 1); exit 1; }; }
23091 done
23092 _ACEOF
23093 cat >>$CONFIG_STATUS <<\_ACEOF
23094
23095 #
23096 # CONFIG_COMMANDS section.
23097 #
23098 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23099 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23100 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23101 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23102 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23103 X"$ac_dest" : 'X\(//\)[^/]' \| \
23104 X"$ac_dest" : 'X\(//\)$' \| \
23105 X"$ac_dest" : 'X\(/\)' \| \
23106 . : '\(.\)' 2>/dev/null ||
23107 echo X"$ac_dest" |
23108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23110 /^X\(\/\/\)$/{ s//\1/; q; }
23111 /^X\(\/\).*/{ s//\1/; q; }
23112 s/.*/./; q'`
23113 { if $as_mkdir_p; then
23114 mkdir -p "$ac_dir"
23115 else
23116 as_dir="$ac_dir"
23117 as_dirs=
23118 while test ! -d "$as_dir"; do
23119 as_dirs="$as_dir $as_dirs"
23120 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23122 X"$as_dir" : 'X\(//\)[^/]' \| \
23123 X"$as_dir" : 'X\(//\)$' \| \
23124 X"$as_dir" : 'X\(/\)' \| \
23125 . : '\(.\)' 2>/dev/null ||
23126 echo X"$as_dir" |
23127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23129 /^X\(\/\/\)$/{ s//\1/; q; }
23130 /^X\(\/\).*/{ s//\1/; q; }
23131 s/.*/./; q'`
23132 done
23133 test ! -n "$as_dirs" || mkdir $as_dirs
23134 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23135 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23136 { (exit 1); exit 1; }; }; }
23137
23138 ac_builddir=.
23139
23140 if test "$ac_dir" != .; then
23141 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23142 # A "../" for each directory in $ac_dir_suffix.
23143 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23144 else
23145 ac_dir_suffix= ac_top_builddir=
23146 fi
23147
23148 case $srcdir in
23149 .) # No --srcdir option. We are building in place.
23150 ac_srcdir=.
23151 if test -z "$ac_top_builddir"; then
23152 ac_top_srcdir=.
23153 else
23154 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23155 fi ;;
23156 [\\/]* | ?:[\\/]* ) # Absolute path.
23157 ac_srcdir=$srcdir$ac_dir_suffix;
23158 ac_top_srcdir=$srcdir ;;
23159 *) # Relative path.
23160 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23161 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23162 esac
23163
23164 # Do not use `cd foo && pwd` to compute absolute paths, because
23165 # the directories may not exist.
23166 case `pwd` in
23167 .) ac_abs_builddir="$ac_dir";;
23168 *)
23169 case "$ac_dir" in
23170 .) ac_abs_builddir=`pwd`;;
23171 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23172 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23173 esac;;
23174 esac
23175 case $ac_abs_builddir in
23176 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23177 *)
23178 case ${ac_top_builddir}. in
23179 .) ac_abs_top_builddir=$ac_abs_builddir;;
23180 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23181 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23182 esac;;
23183 esac
23184 case $ac_abs_builddir in
23185 .) ac_abs_srcdir=$ac_srcdir;;
23186 *)
23187 case $ac_srcdir in
23188 .) ac_abs_srcdir=$ac_abs_builddir;;
23189 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23190 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23191 esac;;
23192 esac
23193 case $ac_abs_builddir in
23194 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23195 *)
23196 case $ac_top_srcdir in
23197 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23198 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23199 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23200 esac;;
23201 esac
23202
23203
23204 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23205 echo "$as_me: executing $ac_dest commands" >&6;}
23206 case $ac_dest in
23207 default )
23208
23209 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
23210 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23211 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23212 mv -f Makefile.tmp Makefile
23213
23214
23215 case x$CONFIG_HEADERS in
23216 xconfig.h:config.in)
23217 echo > stamp-h ;;
23218 esac
23219 ;;
23220 esac
23221 done
23222 _ACEOF
23223
23224 cat >>$CONFIG_STATUS <<\_ACEOF
23225
23226 { (exit 0); exit 0; }
23227 _ACEOF
23228 chmod +x $CONFIG_STATUS
23229 ac_clean_files=$ac_clean_files_save
23230
23231
23232 # configure is writing to config.log, and then calls config.status.
23233 # config.status does its own redirection, appending to config.log.
23234 # Unfortunately, on DOS this fails, as config.log is still kept open
23235 # by configure, so config.status won't be able to write to it; its
23236 # output is simply discarded. So we exec the FD to /dev/null,
23237 # effectively closing config.log, so it can be properly (re)opened and
23238 # appended to by config.status. When coming back to configure, we
23239 # need to make the FD available again.
23240 if test "$no_create" != yes; then
23241 ac_cs_success=:
23242 ac_config_status_args=
23243 test "$silent" = yes &&
23244 ac_config_status_args="$ac_config_status_args --quiet"
23245 exec 5>/dev/null
23246 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23247 exec 5>>config.log
23248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23249 # would make configure fail if this is the last instruction.
23250 $ac_cs_success || { (exit 1); exit 1; }
23251 fi
23252
23253 #
23254 # CONFIG_SUBDIRS section.
23255 #
23256 if test "$no_recursion" != yes; then
23257
23258 # Remove --cache-file and --srcdir arguments so they do not pile up.
23259 ac_sub_configure_args=
23260 ac_prev=
23261 for ac_arg in $ac_configure_args; do
23262 if test -n "$ac_prev"; then
23263 ac_prev=
23264 continue
23265 fi
23266 case $ac_arg in
23267 -cache-file | --cache-file | --cache-fil | --cache-fi \
23268 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23269 ac_prev=cache_file ;;
23270 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23271 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23272 | --c=*)
23273 ;;
23274 --config-cache | -C)
23275 ;;
23276 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23277 ac_prev=srcdir ;;
23278 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23279 ;;
23280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23281 ac_prev=prefix ;;
23282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23283 ;;
23284 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23285 esac
23286 done
23287
23288 # Always prepend --prefix to ensure using the same prefix
23289 # in subdir configurations.
23290 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23291
23292 ac_popdir=`pwd`
23293 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23294
23295 # Do not complain, so a configure script can configure whichever
23296 # parts of a large source tree are present.
23297 test -d $srcdir/$ac_dir || continue
23298
23299 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23300 echo "$as_me: configuring in $ac_dir" >&6;}
23301 { if $as_mkdir_p; then
23302 mkdir -p "$ac_dir"
23303 else
23304 as_dir="$ac_dir"
23305 as_dirs=
23306 while test ! -d "$as_dir"; do
23307 as_dirs="$as_dir $as_dirs"
23308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23310 X"$as_dir" : 'X\(//\)[^/]' \| \
23311 X"$as_dir" : 'X\(//\)$' \| \
23312 X"$as_dir" : 'X\(/\)' \| \
23313 . : '\(.\)' 2>/dev/null ||
23314 echo X"$as_dir" |
23315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23317 /^X\(\/\/\)$/{ s//\1/; q; }
23318 /^X\(\/\).*/{ s//\1/; q; }
23319 s/.*/./; q'`
23320 done
23321 test ! -n "$as_dirs" || mkdir $as_dirs
23322 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23324 { (exit 1); exit 1; }; }; }
23325
23326 ac_builddir=.
23327
23328 if test "$ac_dir" != .; then
23329 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23330 # A "../" for each directory in $ac_dir_suffix.
23331 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23332 else
23333 ac_dir_suffix= ac_top_builddir=
23334 fi
23335
23336 case $srcdir in
23337 .) # No --srcdir option. We are building in place.
23338 ac_srcdir=.
23339 if test -z "$ac_top_builddir"; then
23340 ac_top_srcdir=.
23341 else
23342 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23343 fi ;;
23344 [\\/]* | ?:[\\/]* ) # Absolute path.
23345 ac_srcdir=$srcdir$ac_dir_suffix;
23346 ac_top_srcdir=$srcdir ;;
23347 *) # Relative path.
23348 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23349 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23350 esac
23351
23352 # Do not use `cd foo && pwd` to compute absolute paths, because
23353 # the directories may not exist.
23354 case `pwd` in
23355 .) ac_abs_builddir="$ac_dir";;
23356 *)
23357 case "$ac_dir" in
23358 .) ac_abs_builddir=`pwd`;;
23359 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23360 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23361 esac;;
23362 esac
23363 case $ac_abs_builddir in
23364 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23365 *)
23366 case ${ac_top_builddir}. in
23367 .) ac_abs_top_builddir=$ac_abs_builddir;;
23368 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23369 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23370 esac;;
23371 esac
23372 case $ac_abs_builddir in
23373 .) ac_abs_srcdir=$ac_srcdir;;
23374 *)
23375 case $ac_srcdir in
23376 .) ac_abs_srcdir=$ac_abs_builddir;;
23377 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23378 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23379 esac;;
23380 esac
23381 case $ac_abs_builddir in
23382 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23383 *)
23384 case $ac_top_srcdir in
23385 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23386 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23387 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23388 esac;;
23389 esac
23390
23391
23392 cd $ac_dir
23393
23394 # Check for guested configure; otherwise get Cygnus style configure.
23395 if test -f $ac_srcdir/configure.gnu; then
23396 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23397 elif test -f $ac_srcdir/configure; then
23398 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23399 elif test -f $ac_srcdir/configure.in; then
23400 ac_sub_configure=$ac_configure
23401 else
23402 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23403 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23404 ac_sub_configure=
23405 fi
23406
23407 # The recursion is here.
23408 if test -n "$ac_sub_configure"; then
23409 # Make the cache file name correct relative to the subdirectory.
23410 case $cache_file in
23411 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23412 *) # Relative path.
23413 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23414 esac
23415
23416 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23417 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23418 # The eval makes quoting arguments work.
23419 eval $ac_sub_configure $ac_sub_configure_args \
23420 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23421 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23422 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23423 { (exit 1); exit 1; }; }
23424 fi
23425
23426 cd $ac_popdir
23427 done
23428 fi
23429
23430
23431 exit 0
This page took 0.74859 seconds and 5 git commands to generate.