* acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
[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=NONE
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 "$CATOBJEXT" = "NONE"; then
5558 nls_cv_use_gnu_gettext=yes
5559 fi
5560 fi
5561
5562 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5563 INTLOBJS="\$(GETTOBJS)"
5564 # Extract the first word of "msgfmt", so it can be a program name with args.
5565 set dummy msgfmt; ac_word=$2
5566 echo "$as_me:$LINENO: checking for $ac_word" >&5
5567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5568 if test "${ac_cv_path_MSGFMT+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571 case "$MSGFMT" in
5572 /*)
5573 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5574 ;;
5575 *)
5576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5577 for ac_dir in $PATH; do
5578 test -z "$ac_dir" && ac_dir=.
5579 if test -f $ac_dir/$ac_word; then
5580 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5581 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5582 break
5583 fi
5584 fi
5585 done
5586 IFS="$ac_save_ifs"
5587 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5588 ;;
5589 esac
5590 fi
5591 MSGFMT="$ac_cv_path_MSGFMT"
5592 if test -n "$MSGFMT"; then
5593 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5594 echo "${ECHO_T}$MSGFMT" >&6
5595 else
5596 echo "$as_me:$LINENO: result: no" >&5
5597 echo "${ECHO_T}no" >&6
5598 fi
5599
5600 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5601 set dummy gmsgfmt; ac_word=$2
5602 echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607 case $GMSGFMT in
5608 [\\/]* | ?:[\\/]*)
5609 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5610 ;;
5611 *)
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623 done
5624 done
5625
5626 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5627 ;;
5628 esac
5629 fi
5630 GMSGFMT=$ac_cv_path_GMSGFMT
5631
5632 if test -n "$GMSGFMT"; then
5633 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5634 echo "${ECHO_T}$GMSGFMT" >&6
5635 else
5636 echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5638 fi
5639
5640 # Extract the first word of "xgettext", so it can be a program name with args.
5641 set dummy xgettext; ac_word=$2
5642 echo "$as_me:$LINENO: checking for $ac_word" >&5
5643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5644 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647 case "$XGETTEXT" in
5648 /*)
5649 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5650 ;;
5651 *)
5652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5653 for ac_dir in $PATH; do
5654 test -z "$ac_dir" && ac_dir=.
5655 if test -f $ac_dir/$ac_word; then
5656 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5657 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5658 break
5659 fi
5660 fi
5661 done
5662 IFS="$ac_save_ifs"
5663 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5664 ;;
5665 esac
5666 fi
5667 XGETTEXT="$ac_cv_path_XGETTEXT"
5668 if test -n "$XGETTEXT"; then
5669 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5670 echo "${ECHO_T}$XGETTEXT" >&6
5671 else
5672 echo "$as_me:$LINENO: result: no" >&5
5673 echo "${ECHO_T}no" >&6
5674 fi
5675
5676
5677 USE_INCLUDED_LIBINTL=yes
5678 CATOBJEXT=.gmo
5679 INSTOBJEXT=.mo
5680 DATADIRNAME=share
5681 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5682 INTLLIBS=$INTLDEPS
5683 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5684 nls_cv_header_intl=libintl.h
5685 nls_cv_header_libgt=libgettext.h
5686 fi
5687
5688 if test "$XGETTEXT" != ":"; then
5689 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5690 : ;
5691 else
5692 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5693 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5694 XGETTEXT=":"
5695 fi
5696 fi
5697
5698 # We need to process the po/ directory.
5699 POSUB=po
5700 else
5701 DATADIRNAME=share
5702 nls_cv_header_intl=libintl.h
5703 nls_cv_header_libgt=libgettext.h
5704 fi
5705
5706 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5707 # because some of the sources are only built for this goal.
5708 if test "$PACKAGE" = gettext; then
5709 USE_NLS=yes
5710 USE_INCLUDED_LIBINTL=yes
5711 fi
5712
5713 for lang in $ALL_LINGUAS; do
5714 GMOFILES="$GMOFILES $lang.gmo"
5715 POFILES="$POFILES $lang.po"
5716 done
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731 if test "x$CATOBJEXT" != "x"; then
5732 if test "x$ALL_LINGUAS" = "x"; then
5733 LINGUAS=
5734 else
5735 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5736 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5737 NEW_LINGUAS=
5738 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5739 case "$ALL_LINGUAS" in
5740 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5741 esac
5742 done
5743 LINGUAS=$NEW_LINGUAS
5744 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5745 echo "${ECHO_T}$LINGUAS" >&6
5746 fi
5747
5748 if test -n "$LINGUAS"; then
5749 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5750 fi
5751 fi
5752
5753 if test $ac_cv_header_locale_h = yes; then
5754 INCLUDE_LOCALE_H="#include <locale.h>"
5755 else
5756 INCLUDE_LOCALE_H="\
5757 /* The system does not provide the header <locale.h>. Take care yourself. */"
5758 fi
5759
5760
5761 if test -f $srcdir/po2tbl.sed.in; then
5762 if test "$CATOBJEXT" = ".cat"; then
5763 if test "${ac_cv_header_linux_version_h+set}" = set; then
5764 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5765 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5766 if test "${ac_cv_header_linux_version_h+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 fi
5769 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5770 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5771 else
5772 # Is the header compilable?
5773 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5774 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5775 cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h. */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 $ac_includes_default
5782 #include <linux/version.h>
5783 _ACEOF
5784 rm -f conftest.$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>conftest.er1
5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try='test -z "$ac_c_werror_flag"
5794 || test ! -s conftest.err'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try='test -s conftest.$ac_objext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 (eval $ac_try) 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_header_compiler=yes
5807 else
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811 ac_header_compiler=no
5812 fi
5813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5815 echo "${ECHO_T}$ac_header_compiler" >&6
5816
5817 # Is the header present?
5818 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5819 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 #include <linux/version.h>
5827 _ACEOF
5828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } >/dev/null; then
5836 if test -s conftest.err; then
5837 ac_cpp_err=$ac_c_preproc_warn_flag
5838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5839 else
5840 ac_cpp_err=
5841 fi
5842 else
5843 ac_cpp_err=yes
5844 fi
5845 if test -z "$ac_cpp_err"; then
5846 ac_header_preproc=yes
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851 ac_header_preproc=no
5852 fi
5853 rm -f conftest.err conftest.$ac_ext
5854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5855 echo "${ECHO_T}$ac_header_preproc" >&6
5856
5857 # So? What about this header?
5858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5859 yes:no: )
5860 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5861 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5863 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5864 ac_header_preproc=yes
5865 ;;
5866 no:yes:* )
5867 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5868 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5869 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5870 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5872 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5874 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5876 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5878 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5879 (
5880 cat <<\_ASBOX
5881 ## ------------------------------------------ ##
5882 ## Report this to the AC_PACKAGE_NAME lists. ##
5883 ## ------------------------------------------ ##
5884 _ASBOX
5885 ) |
5886 sed "s/^/$as_me: WARNING: /" >&2
5887 ;;
5888 esac
5889 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5890 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5891 if test "${ac_cv_header_linux_version_h+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 ac_cv_header_linux_version_h=$ac_header_preproc
5895 fi
5896 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5897 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5898
5899 fi
5900 if test $ac_cv_header_linux_version_h = yes; then
5901 msgformat=linux
5902 else
5903 msgformat=xopen
5904 fi
5905
5906
5907
5908 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5909 fi
5910 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5911 $srcdir/po2tbl.sed.in > po2tbl.sed
5912 fi
5913
5914 if test "$PACKAGE" = "gettext"; then
5915 GT_NO="#NO#"
5916 GT_YES=
5917 else
5918 GT_NO=
5919 GT_YES="#YES#"
5920 fi
5921
5922
5923
5924 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5925
5926
5927 l=
5928
5929
5930 if test -f $srcdir/po/POTFILES.in; then
5931 test -d po || mkdir po
5932 if test "x$srcdir" != "x."; then
5933 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5934 posrcprefix="$srcdir/"
5935 else
5936 posrcprefix="../$srcdir/"
5937 fi
5938 else
5939 posrcprefix="../"
5940 fi
5941 rm -f po/POTFILES
5942 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5943 < $srcdir/po/POTFILES.in > po/POTFILES
5944 fi
5945
5946
5947 localedir='${datadir}/locale'
5948
5949
5950 if test "x$POSUB" != x; then
5951
5952 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5953 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5954 # Look for .po and .gmo files in the source directory.
5955 CATALOGS=
5956 XLINGUAS=
5957 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5958 # If there aren't any .gmo files the shell will give us the
5959 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5960 # weeded out.
5961 case "$cat" in *\**)
5962 continue;;
5963 esac
5964 # The quadruple backslash is collapsed to a double backslash
5965 # by the backticks, then collapsed again by the double quotes,
5966 # leaving us with one backslash in the sed expression (right
5967 # before the dot that mustn't act as a wildcard).
5968 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5969 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5970 # The user is allowed to set LINGUAS to a list of languages to
5971 # install catalogs for. If it's empty that means "all of them."
5972 if test "x$LINGUAS" = x; then
5973 CATALOGS="$CATALOGS $cat"
5974 XLINGUAS="$XLINGUAS $lang"
5975 else
5976 case "$LINGUAS" in *$lang*)
5977 CATALOGS="$CATALOGS $cat"
5978 XLINGUAS="$XLINGUAS $lang"
5979 ;;
5980 esac
5981 fi
5982 done
5983 LINGUAS="$XLINGUAS"
5984 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5985 echo "${ECHO_T}$LINGUAS" >&6
5986
5987 CONFIG_ALL="$CONFIG_ALL all-po"
5988 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5989 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5990 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5991 fi
5992
5993 PACKAGE=gdb
5994
5995 cat >>confdefs.h <<_ACEOF
5996 #define PACKAGE "$PACKAGE"
5997 _ACEOF
5998
5999
6000
6001 debugdir=${libdir}/debug
6002
6003
6004 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6005 if test "${with_separate_debug_dir+set}" = set; then
6006 withval="$with_separate_debug_dir"
6007 debugdir="${withval}"
6008 fi;
6009
6010
6011 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6012 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6013 ac_define_dir=`eval echo $debugdir`
6014 ac_define_dir=`eval echo $ac_define_dir`
6015
6016 cat >>confdefs.h <<_ACEOF
6017 #define DEBUGDIR "$ac_define_dir"
6018 _ACEOF
6019
6020
6021 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6022
6023
6024
6025 subdirs="$subdirs doc testsuite"
6026
6027
6028 . $srcdir/configure.host
6029
6030 . $srcdir/configure.tgt
6031
6032 # Fetch the default architecture and default target vector from BFD.
6033 targ=$target; . $srcdir/../bfd/config.bfd
6034
6035 # We only want the first architecture, so strip off the others if
6036 # there is more than one.
6037 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6038
6039 if test "x$targ_archs" != x; then
6040
6041 cat >>confdefs.h <<_ACEOF
6042 #define DEFAULT_BFD_ARCH $targ_archs
6043 _ACEOF
6044
6045 fi
6046 if test "x$targ_defvec" != x; then
6047
6048 cat >>confdefs.h <<_ACEOF
6049 #define DEFAULT_BFD_VEC $targ_defvec
6050 _ACEOF
6051
6052 fi
6053
6054 test "$program_prefix" != NONE &&
6055 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6056 # Use a double $ so make ignores it.
6057 test "$program_suffix" != NONE &&
6058 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6059 # Double any \ or $. echo might interpret backslashes.
6060 # By default was `s,x,x', remove it if useless.
6061 cat <<\_ACEOF >conftest.sed
6062 s/[\\$]/&&/g;s/;s,x,x,$//
6063 _ACEOF
6064 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6065 rm conftest.sed
6066
6067
6068 # The CLI cannot be disabled yet, but may be in the future.
6069
6070 # Enable CLI.
6071 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6072 if test "${enable_gdbcli+set}" = set; then
6073 enableval="$enable_gdbcli"
6074 case $enableval in
6075 yes)
6076 ;;
6077 no)
6078 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6079 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6080 { (exit 1); exit 1; }; } ;;
6081 *)
6082 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6083 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6084 { (exit 1); exit 1; }; } ;;
6085 esac
6086 else
6087 enable_gdbcli=yes
6088 fi;
6089 if test x"$enable_gdbcli" = xyes; then
6090 if test -d $srcdir/cli; then
6091 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6092 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6093 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6094 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6095 fi
6096 fi
6097
6098 # Enable MI.
6099 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6100 if test "${enable_gdbmi+set}" = set; then
6101 enableval="$enable_gdbmi"
6102 case $enableval in
6103 yes | no)
6104 ;;
6105 *)
6106 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6107 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6108 { (exit 1); exit 1; }; } ;;
6109 esac
6110 else
6111 enable_gdbmi=yes
6112 fi;
6113 if test x"$enable_gdbmi" = xyes; then
6114 if test -d $srcdir/mi; then
6115 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6116 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6117 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6118 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6119 fi
6120 fi
6121
6122 # Enable TUI.
6123 # Check whether --enable-tui or --disable-tui was given.
6124 if test "${enable_tui+set}" = set; then
6125 enableval="$enable_tui"
6126 case $enableval in
6127 yes | no)
6128 ;;
6129 *)
6130 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6131 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6132 { (exit 1); exit 1; }; } ;;
6133 esac
6134 else
6135 enable_tui=yes
6136 fi;
6137
6138 # Enable gdbtk.
6139 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6140 if test "${enable_gdbtk+set}" = set; then
6141 enableval="$enable_gdbtk"
6142 case $enableval in
6143 yes | no)
6144 ;;
6145 *)
6146 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6147 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6148 { (exit 1); exit 1; }; } ;;
6149 esac
6150 else
6151 if test -d $srcdir/gdbtk; then
6152 enable_gdbtk=yes
6153 else
6154 enable_gdbtk=no
6155 fi
6156 fi;
6157 # We unconditionally disable gdbtk tests on selected platforms.
6158 case $host_os in
6159 go32* | windows*)
6160 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6161 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6162 enable_gdbtk=no ;;
6163 esac
6164
6165 # Libunwind support.
6166
6167 # Check whether --with-libunwind or --without-libunwind was given.
6168 if test "${with_libunwind+set}" = set; then
6169 withval="$with_libunwind"
6170 case "${withval}" in
6171 yes) enable_libunwind=yes ;;
6172 no) enable_libunwind=no ;;
6173 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6174 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6175 { (exit 1); exit 1; }; } ;;
6176 esac
6177 else
6178
6179
6180 for ac_header in libunwind.h
6181 do
6182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6184 echo "$as_me:$LINENO: checking for $ac_header" >&5
6185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 fi
6189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6191 else
6192 # Is the header compilable?
6193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6195 cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h. */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 $ac_includes_default
6202 #include <$ac_header>
6203 _ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>conftest.er1
6207 ac_status=$?
6208 grep -v '^ *+' conftest.er1 >conftest.err
6209 rm -f conftest.er1
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -z "$ac_c_werror_flag"
6214 || test ! -s conftest.err'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest.$ac_objext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_header_compiler=yes
6227 else
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6230
6231 ac_header_compiler=no
6232 fi
6233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6235 echo "${ECHO_T}$ac_header_compiler" >&6
6236
6237 # Is the header present?
6238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6240 cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h. */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 #include <$ac_header>
6247 _ACEOF
6248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } >/dev/null; then
6256 if test -s conftest.err; then
6257 ac_cpp_err=$ac_c_preproc_warn_flag
6258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6259 else
6260 ac_cpp_err=
6261 fi
6262 else
6263 ac_cpp_err=yes
6264 fi
6265 if test -z "$ac_cpp_err"; then
6266 ac_header_preproc=yes
6267 else
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6270
6271 ac_header_preproc=no
6272 fi
6273 rm -f conftest.err conftest.$ac_ext
6274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6275 echo "${ECHO_T}$ac_header_preproc" >&6
6276
6277 # So? What about this header?
6278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6279 yes:no: )
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6284 ac_header_preproc=yes
6285 ;;
6286 no:yes:* )
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6299 (
6300 cat <<\_ASBOX
6301 ## ------------------------------------------ ##
6302 ## Report this to the AC_PACKAGE_NAME lists. ##
6303 ## ------------------------------------------ ##
6304 _ASBOX
6305 ) |
6306 sed "s/^/$as_me: WARNING: /" >&2
6307 ;;
6308 esac
6309 echo "$as_me:$LINENO: checking for $ac_header" >&5
6310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314 eval "$as_ac_Header=\$ac_header_preproc"
6315 fi
6316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6318
6319 fi
6320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6321 cat >>confdefs.h <<_ACEOF
6322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6323 _ACEOF
6324
6325 fi
6326
6327 done
6328
6329
6330 for ac_header in libunwind-ia64.h
6331 do
6332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo "$as_me:$LINENO: checking for $ac_header" >&5
6335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 fi
6339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6341 else
6342 # Is the header compilable?
6343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6345 cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h. */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 $ac_includes_default
6352 #include <$ac_header>
6353 _ACEOF
6354 rm -f conftest.$ac_objext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag"
6364 || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try='test -s conftest.$ac_objext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_header_compiler=yes
6377 else
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381 ac_header_compiler=no
6382 fi
6383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6385 echo "${ECHO_T}$ac_header_compiler" >&6
6386
6387 # Is the header present?
6388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 #include <$ac_header>
6397 _ACEOF
6398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } >/dev/null; then
6406 if test -s conftest.err; then
6407 ac_cpp_err=$ac_c_preproc_warn_flag
6408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6409 else
6410 ac_cpp_err=
6411 fi
6412 else
6413 ac_cpp_err=yes
6414 fi
6415 if test -z "$ac_cpp_err"; then
6416 ac_header_preproc=yes
6417 else
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 ac_header_preproc=no
6422 fi
6423 rm -f conftest.err conftest.$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6425 echo "${ECHO_T}$ac_header_preproc" >&6
6426
6427 # So? What about this header?
6428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6429 yes:no: )
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6434 ac_header_preproc=yes
6435 ;;
6436 no:yes:* )
6437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6449 (
6450 cat <<\_ASBOX
6451 ## ------------------------------------------ ##
6452 ## Report this to the AC_PACKAGE_NAME lists. ##
6453 ## ------------------------------------------ ##
6454 _ASBOX
6455 ) |
6456 sed "s/^/$as_me: WARNING: /" >&2
6457 ;;
6458 esac
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
6460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464 eval "$as_ac_Header=\$ac_header_preproc"
6465 fi
6466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6468
6469 fi
6470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6473 _ACEOF
6474
6475 fi
6476
6477 done
6478
6479 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6480 enable_libunwind=yes;
6481 fi
6482
6483 fi;
6484
6485 if test x"$enable_libunwind" = xyes; then
6486
6487 for ac_header in libunwind.h
6488 do
6489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491 echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 fi
6496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6498 else
6499 # Is the header compilable?
6500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 $ac_includes_default
6509 #include <$ac_header>
6510 _ACEOF
6511 rm -f conftest.$ac_objext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513 (eval $ac_compile) 2>conftest.er1
6514 ac_status=$?
6515 grep -v '^ *+' conftest.er1 >conftest.err
6516 rm -f conftest.er1
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_c_werror_flag"
6521 || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 ac_header_compiler=yes
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538 ac_header_compiler=no
6539 fi
6540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6542 echo "${ECHO_T}$ac_header_compiler" >&6
6543
6544 # Is the header present?
6545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6547 cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h. */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 #include <$ac_header>
6554 _ACEOF
6555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } >/dev/null; then
6563 if test -s conftest.err; then
6564 ac_cpp_err=$ac_c_preproc_warn_flag
6565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6566 else
6567 ac_cpp_err=
6568 fi
6569 else
6570 ac_cpp_err=yes
6571 fi
6572 if test -z "$ac_cpp_err"; then
6573 ac_header_preproc=yes
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 ac_header_preproc=no
6579 fi
6580 rm -f conftest.err conftest.$ac_ext
6581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6582 echo "${ECHO_T}$ac_header_preproc" >&6
6583
6584 # So? What about this header?
6585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6586 yes:no: )
6587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6591 ac_header_preproc=yes
6592 ;;
6593 no:yes:* )
6594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6606 (
6607 cat <<\_ASBOX
6608 ## ------------------------------------------ ##
6609 ## Report this to the AC_PACKAGE_NAME lists. ##
6610 ## ------------------------------------------ ##
6611 _ASBOX
6612 ) |
6613 sed "s/^/$as_me: WARNING: /" >&2
6614 ;;
6615 esac
6616 echo "$as_me:$LINENO: checking for $ac_header" >&5
6617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 eval "$as_ac_Header=\$ac_header_preproc"
6622 fi
6623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6625
6626 fi
6627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6628 cat >>confdefs.h <<_ACEOF
6629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6630 _ACEOF
6631
6632 fi
6633
6634 done
6635
6636
6637 for ac_header in libunwind-ia64.h
6638 do
6639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6641 echo "$as_me:$LINENO: checking for $ac_header" >&5
6642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 fi
6646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6648 else
6649 # Is the header compilable?
6650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6652 cat >conftest.$ac_ext <<_ACEOF
6653 /* confdefs.h. */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 $ac_includes_default
6659 #include <$ac_header>
6660 _ACEOF
6661 rm -f conftest.$ac_objext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 (eval $ac_compile) 2>conftest.er1
6664 ac_status=$?
6665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -z "$ac_c_werror_flag"
6671 || test ! -s conftest.err'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 (eval $ac_try) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; } &&
6677 { ac_try='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 ac_header_compiler=yes
6684 else
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 ac_header_compiler=no
6689 fi
6690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6692 echo "${ECHO_T}$ac_header_compiler" >&6
6693
6694 # Is the header present?
6695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #include <$ac_header>
6704 _ACEOF
6705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } >/dev/null; then
6713 if test -s conftest.err; then
6714 ac_cpp_err=$ac_c_preproc_warn_flag
6715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6716 else
6717 ac_cpp_err=
6718 fi
6719 else
6720 ac_cpp_err=yes
6721 fi
6722 if test -z "$ac_cpp_err"; then
6723 ac_header_preproc=yes
6724 else
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6727
6728 ac_header_preproc=no
6729 fi
6730 rm -f conftest.err conftest.$ac_ext
6731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6732 echo "${ECHO_T}$ac_header_preproc" >&6
6733
6734 # So? What about this header?
6735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6736 yes:no: )
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6741 ac_header_preproc=yes
6742 ;;
6743 no:yes:* )
6744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6756 (
6757 cat <<\_ASBOX
6758 ## ------------------------------------------ ##
6759 ## Report this to the AC_PACKAGE_NAME lists. ##
6760 ## ------------------------------------------ ##
6761 _ASBOX
6762 ) |
6763 sed "s/^/$as_me: WARNING: /" >&2
6764 ;;
6765 esac
6766 echo "$as_me:$LINENO: checking for $ac_header" >&5
6767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771 eval "$as_ac_Header=\$ac_header_preproc"
6772 fi
6773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6775
6776 fi
6777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6778 cat >>confdefs.h <<_ACEOF
6779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6780 _ACEOF
6781
6782 fi
6783
6784 done
6785
6786 cat >>confdefs.h <<\_ACEOF
6787 #define HAVE_LIBUNWIND 1
6788 _ACEOF
6789
6790 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6791 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6792 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6793 fi
6794
6795 # Profiling support.
6796 # Check whether --enable-profiling or --disable-profiling was given.
6797 if test "${enable_profiling+set}" = set; then
6798 enableval="$enable_profiling"
6799 case $enableval in
6800 yes | no)
6801 ;;
6802 *)
6803 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6804 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6805 { (exit 1); exit 1; }; } ;;
6806 esac
6807 else
6808 enable_profiling=no
6809 fi;
6810
6811
6812
6813 for ac_func in monstartup _mcleanup
6814 do
6815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6816 echo "$as_me:$LINENO: checking for $ac_func" >&5
6817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6818 if eval "test \"\${$as_ac_var+set}\" = set"; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h. */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6829 #define $ac_func innocuous_$ac_func
6830
6831 /* System header to define __stub macros and hopefully few prototypes,
6832 which can conflict with char $ac_func (); below.
6833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6834 <limits.h> exists even on freestanding compilers. */
6835
6836 #ifdef __STDC__
6837 # include <limits.h>
6838 #else
6839 # include <assert.h>
6840 #endif
6841
6842 #undef $ac_func
6843
6844 /* Override any gcc2 internal prototype to avoid an error. */
6845 #ifdef __cplusplus
6846 extern "C"
6847 {
6848 #endif
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6851 char $ac_func ();
6852 /* The GNU C library defines this for functions which it implements
6853 to always fail with ENOSYS. Some functions are actually named
6854 something starting with __ and the normal name is an alias. */
6855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6856 choke me
6857 #else
6858 char (*f) () = $ac_func;
6859 #endif
6860 #ifdef __cplusplus
6861 }
6862 #endif
6863
6864 int
6865 main ()
6866 {
6867 return f != $ac_func;
6868 ;
6869 return 0;
6870 }
6871 _ACEOF
6872 rm -f conftest.$ac_objext conftest$ac_exeext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6874 (eval $ac_link) 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 (eval $ac_try) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try='test -s conftest$ac_exeext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 eval "$as_ac_var=yes"
6895 else
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6898
6899 eval "$as_ac_var=no"
6900 fi
6901 rm -f conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
6903 fi
6904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6906 if test `eval echo '${'$as_ac_var'}'` = yes; then
6907 cat >>confdefs.h <<_ACEOF
6908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6909 _ACEOF
6910
6911 fi
6912 done
6913
6914 echo "$as_me:$LINENO: checking for _etext" >&5
6915 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6916 if test "${ac_cv_var__etext+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h. */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 #include <stdlib.h>
6926 extern char _etext;
6927
6928 int
6929 main ()
6930 {
6931 free (&_etext);
6932 ;
6933 return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -z "$ac_c_werror_flag"
6946 || test ! -s conftest.err'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 (eval $ac_try) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; } &&
6952 { ac_try='test -s conftest$ac_exeext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 (eval $ac_try) 2>&5
6955 ac_status=$?
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 ac_cv_var__etext=yes
6959 else
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963 ac_cv_var__etext=no
6964 fi
6965 rm -f conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
6967 fi
6968 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6969 echo "${ECHO_T}$ac_cv_var__etext" >&6
6970 if test $ac_cv_var__etext = yes; then
6971
6972 cat >>confdefs.h <<\_ACEOF
6973 #define HAVE__ETEXT 1
6974 _ACEOF
6975
6976 fi
6977 if test "$enable_profiling" = yes ; then
6978 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6979 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6980 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6981 { (exit 1); exit 1; }; }
6982 fi
6983 PROFILE_CFLAGS=-pg
6984 OLD_CFLAGS="$CFLAGS"
6985 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6986
6987 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6988 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6989 if test "${ac_cv_cc_supports_pg+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992 cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h. */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998
6999 int
7000 main ()
7001 {
7002 int x;
7003 ;
7004 return 0;
7005 }
7006 _ACEOF
7007 rm -f conftest.$ac_objext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7009 (eval $ac_compile) 2>conftest.er1
7010 ac_status=$?
7011 grep -v '^ *+' conftest.er1 >conftest.err
7012 rm -f conftest.er1
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -z "$ac_c_werror_flag"
7017 || test ! -s conftest.err'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; } &&
7023 { ac_try='test -s conftest.$ac_objext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 (eval $ac_try) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 ac_cv_cc_supports_pg=yes
7030 else
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034 ac_cv_cc_supports_pg=no
7035 fi
7036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7037 fi
7038 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
7039 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
7040
7041 if test $ac_cv_cc_supports_pg = no; then
7042 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
7043 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
7044 { (exit 1); exit 1; }; }
7045 fi
7046
7047 CFLAGS="$OLD_CFLAGS"
7048 fi
7049
7050 # --------------------- #
7051 # Checks for programs. #
7052 # --------------------- #
7053
7054 for ac_prog in gawk mawk nawk awk
7055 do
7056 # Extract the first word of "$ac_prog", so it can be a program name with args.
7057 set dummy $ac_prog; ac_word=$2
7058 echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7060 if test "${ac_cv_prog_AWK+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063 if test -n "$AWK"; then
7064 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073 ac_cv_prog_AWK="$ac_prog"
7074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077 done
7078 done
7079
7080 fi
7081 fi
7082 AWK=$ac_cv_prog_AWK
7083 if test -n "$AWK"; then
7084 echo "$as_me:$LINENO: result: $AWK" >&5
7085 echo "${ECHO_T}$AWK" >&6
7086 else
7087 echo "$as_me:$LINENO: result: no" >&5
7088 echo "${ECHO_T}no" >&6
7089 fi
7090
7091 test -n "$AWK" && break
7092 done
7093
7094 # Find a good install program. We prefer a C program (faster),
7095 # so one script is as good as another. But avoid the broken or
7096 # incompatible versions:
7097 # SysV /etc/install, /usr/sbin/install
7098 # SunOS /usr/etc/install
7099 # IRIX /sbin/install
7100 # AIX /bin/install
7101 # AmigaOS /C/install, which installs bootblocks on floppy discs
7102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7105 # OS/2's system install, which has a completely different semantic
7106 # ./install, which can be erroneously created by make from ./install.sh.
7107 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7108 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7109 if test -z "$INSTALL"; then
7110 if test "${ac_cv_path_install+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 # Account for people who put trailing slashes in PATH elements.
7119 case $as_dir/ in
7120 ./ | .// | /cC/* | \
7121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7122 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7123 /usr/ucb/* ) ;;
7124 *)
7125 # OSF1 and SCO ODT 3.0 have their own names for install.
7126 # Don't use installbsd from OSF since it installs stuff as root
7127 # by default.
7128 for ac_prog in ginstall scoinst install; do
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7131 if test $ac_prog = install &&
7132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7133 # AIX install. It has an incompatible calling convention.
7134 :
7135 elif test $ac_prog = install &&
7136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7137 # program-specific install script used by HP pwplus--don't use.
7138 :
7139 else
7140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7141 break 3
7142 fi
7143 fi
7144 done
7145 done
7146 ;;
7147 esac
7148 done
7149
7150
7151 fi
7152 if test "${ac_cv_path_install+set}" = set; then
7153 INSTALL=$ac_cv_path_install
7154 else
7155 # As a last resort, use the slow shell script. We don't cache a
7156 # path for INSTALL within a source directory, because that will
7157 # break other packages using the cache if that directory is
7158 # removed, or if the path is relative.
7159 INSTALL=$ac_install_sh
7160 fi
7161 fi
7162 echo "$as_me:$LINENO: result: $INSTALL" >&5
7163 echo "${ECHO_T}$INSTALL" >&6
7164
7165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7166 # It thinks the first close brace ends the variable substitution.
7167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7168
7169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7170
7171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7172
7173 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7174 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7175 LN_S=$as_ln_s
7176 if test "$LN_S" = "ln -s"; then
7177 echo "$as_me:$LINENO: result: yes" >&5
7178 echo "${ECHO_T}yes" >&6
7179 else
7180 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7181 echo "${ECHO_T}no, using $LN_S" >&6
7182 fi
7183
7184 if test -n "$ac_tool_prefix"; then
7185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7187 echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7189 if test "${ac_cv_prog_RANLIB+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192 if test -n "$RANLIB"; then
7193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206 done
7207 done
7208
7209 fi
7210 fi
7211 RANLIB=$ac_cv_prog_RANLIB
7212 if test -n "$RANLIB"; then
7213 echo "$as_me:$LINENO: result: $RANLIB" >&5
7214 echo "${ECHO_T}$RANLIB" >&6
7215 else
7216 echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6
7218 fi
7219
7220 fi
7221 if test -z "$ac_cv_prog_RANLIB"; then
7222 ac_ct_RANLIB=$RANLIB
7223 # Extract the first word of "ranlib", so it can be a program name with args.
7224 set dummy ranlib; ac_word=$2
7225 echo "$as_me:$LINENO: checking for $ac_word" >&5
7226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7227 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230 if test -n "$ac_ct_RANLIB"; then
7231 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7232 else
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240 ac_cv_prog_ac_ct_RANLIB="ranlib"
7241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 break 2
7243 fi
7244 done
7245 done
7246
7247 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7248 fi
7249 fi
7250 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7251 if test -n "$ac_ct_RANLIB"; then
7252 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7253 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7254 else
7255 echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6
7257 fi
7258
7259 RANLIB=$ac_ct_RANLIB
7260 else
7261 RANLIB="$ac_cv_prog_RANLIB"
7262 fi
7263
7264 for ac_prog in 'bison -y' byacc
7265 do
7266 # Extract the first word of "$ac_prog", so it can be a program name with args.
7267 set dummy $ac_prog; ac_word=$2
7268 echo "$as_me:$LINENO: checking for $ac_word" >&5
7269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7270 if test "${ac_cv_prog_YACC+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273 if test -n "$YACC"; then
7274 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7275 else
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283 ac_cv_prog_YACC="$ac_prog"
7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7286 fi
7287 done
7288 done
7289
7290 fi
7291 fi
7292 YACC=$ac_cv_prog_YACC
7293 if test -n "$YACC"; then
7294 echo "$as_me:$LINENO: result: $YACC" >&5
7295 echo "${ECHO_T}$YACC" >&6
7296 else
7297 echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6
7299 fi
7300
7301 test -n "$YACC" && break
7302 done
7303 test -n "$YACC" || YACC="yacc"
7304
7305
7306 if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7308 set dummy ${ac_tool_prefix}ar; ac_word=$2
7309 echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311 if test "${ac_cv_prog_AR+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 if test -n "$AR"; then
7315 ac_cv_prog_AR="$AR" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_AR="${ac_tool_prefix}ar"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7327 fi
7328 done
7329 done
7330
7331 fi
7332 fi
7333 AR=$ac_cv_prog_AR
7334 if test -n "$AR"; then
7335 echo "$as_me:$LINENO: result: $AR" >&5
7336 echo "${ECHO_T}$AR" >&6
7337 else
7338 echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6
7340 fi
7341
7342 fi
7343 if test -z "$ac_cv_prog_AR"; then
7344 ac_ct_AR=$AR
7345 # Extract the first word of "ar", so it can be a program name with args.
7346 set dummy ar; ac_word=$2
7347 echo "$as_me:$LINENO: checking for $ac_word" >&5
7348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7349 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 if test -n "$ac_ct_AR"; then
7353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_ac_ct_AR="ar"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366 done
7367 done
7368
7369 fi
7370 fi
7371 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7372 if test -n "$ac_ct_AR"; then
7373 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7374 echo "${ECHO_T}$ac_ct_AR" >&6
7375 else
7376 echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6
7378 fi
7379
7380 AR=$ac_ct_AR
7381 else
7382 AR="$ac_cv_prog_AR"
7383 fi
7384
7385 if test -n "$ac_tool_prefix"; then
7386 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7387 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7388 echo "$as_me:$LINENO: checking for $ac_word" >&5
7389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7390 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393 if test -n "$DLLTOOL"; then
7394 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7406 fi
7407 done
7408 done
7409
7410 fi
7411 fi
7412 DLLTOOL=$ac_cv_prog_DLLTOOL
7413 if test -n "$DLLTOOL"; then
7414 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7415 echo "${ECHO_T}$DLLTOOL" >&6
7416 else
7417 echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7419 fi
7420
7421 fi
7422 if test -z "$ac_cv_prog_DLLTOOL"; then
7423 ac_ct_DLLTOOL=$DLLTOOL
7424 # Extract the first word of "dlltool", so it can be a program name with args.
7425 set dummy dlltool; ac_word=$2
7426 echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7428 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431 if test -n "$ac_ct_DLLTOOL"; then
7432 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7433 else
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7444 fi
7445 done
7446 done
7447
7448 fi
7449 fi
7450 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7451 if test -n "$ac_ct_DLLTOOL"; then
7452 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7453 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7454 else
7455 echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6
7457 fi
7458
7459 DLLTOOL=$ac_ct_DLLTOOL
7460 else
7461 DLLTOOL="$ac_cv_prog_DLLTOOL"
7462 fi
7463
7464 if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7466 set dummy ${ac_tool_prefix}windres; ac_word=$2
7467 echo "$as_me:$LINENO: checking for $ac_word" >&5
7468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7469 if test "${ac_cv_prog_WINDRES+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472 if test -n "$WINDRES"; then
7473 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486 done
7487 done
7488
7489 fi
7490 fi
7491 WINDRES=$ac_cv_prog_WINDRES
7492 if test -n "$WINDRES"; then
7493 echo "$as_me:$LINENO: result: $WINDRES" >&5
7494 echo "${ECHO_T}$WINDRES" >&6
7495 else
7496 echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6
7498 fi
7499
7500 fi
7501 if test -z "$ac_cv_prog_WINDRES"; then
7502 ac_ct_WINDRES=$WINDRES
7503 # Extract the first word of "windres", so it can be a program name with args.
7504 set dummy windres; ac_word=$2
7505 echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7507 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 if test -n "$ac_ct_WINDRES"; then
7511 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_ac_ct_WINDRES="windres"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524 done
7525 done
7526
7527 fi
7528 fi
7529 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7530 if test -n "$ac_ct_WINDRES"; then
7531 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7532 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7533 else
7534 echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6
7536 fi
7537
7538 WINDRES=$ac_ct_WINDRES
7539 else
7540 WINDRES="$ac_cv_prog_WINDRES"
7541 fi
7542
7543
7544 # Needed for GNU/Hurd.
7545 if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7547 set dummy ${ac_tool_prefix}mig; ac_word=$2
7548 echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7550 if test "${ac_cv_prog_MIG+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553 if test -n "$MIG"; then
7554 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567 done
7568 done
7569
7570 fi
7571 fi
7572 MIG=$ac_cv_prog_MIG
7573 if test -n "$MIG"; then
7574 echo "$as_me:$LINENO: result: $MIG" >&5
7575 echo "${ECHO_T}$MIG" >&6
7576 else
7577 echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7579 fi
7580
7581 fi
7582 if test -z "$ac_cv_prog_MIG"; then
7583 ac_ct_MIG=$MIG
7584 # Extract the first word of "mig", so it can be a program name with args.
7585 set dummy mig; ac_word=$2
7586 echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7588 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591 if test -n "$ac_ct_MIG"; then
7592 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_ac_ct_MIG="mig"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605 done
7606 done
7607
7608 fi
7609 fi
7610 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7611 if test -n "$ac_ct_MIG"; then
7612 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7613 echo "${ECHO_T}$ac_ct_MIG" >&6
7614 else
7615 echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6
7617 fi
7618
7619 MIG=$ac_ct_MIG
7620 else
7621 MIG="$ac_cv_prog_MIG"
7622 fi
7623
7624
7625 # ---------------------- #
7626 # Checks for libraries. #
7627 # ---------------------- #
7628
7629 # We might need to link with -lm; most simulators need it.
7630
7631 echo "$as_me:$LINENO: checking for main in -lm" >&5
7632 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7633 if test "${ac_cv_lib_m_main+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636 ac_check_lib_save_LIBS=$LIBS
7637 LIBS="-lm $LIBS"
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h. */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644
7645
7646 int
7647 main ()
7648 {
7649 main ();
7650 ;
7651 return 0;
7652 }
7653 _ACEOF
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -z "$ac_c_werror_flag"
7664 || test ! -s conftest.err'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try='test -s conftest$ac_exeext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 (eval $ac_try) 2>&5
7673 ac_status=$?
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_cv_lib_m_main=yes
7677 else
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681 ac_cv_lib_m_main=no
7682 fi
7683 rm -f conftest.err conftest.$ac_objext \
7684 conftest$ac_exeext conftest.$ac_ext
7685 LIBS=$ac_check_lib_save_LIBS
7686 fi
7687 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7688 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7689 if test $ac_cv_lib_m_main = yes; then
7690 cat >>confdefs.h <<_ACEOF
7691 #define HAVE_LIBM 1
7692 _ACEOF
7693
7694 LIBS="-lm $LIBS"
7695
7696 fi
7697
7698
7699 # We need to link with -lw to get `wctype' on Solaris before Solaris
7700 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7701 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7702 # is known to have this problem). Therefore we avoid libw if we can.
7703 echo "$as_me:$LINENO: checking for wctype" >&5
7704 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7705 if test "${ac_cv_func_wctype+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h. */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7716 #define wctype innocuous_wctype
7717
7718 /* System header to define __stub macros and hopefully few prototypes,
7719 which can conflict with char wctype (); below.
7720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7721 <limits.h> exists even on freestanding compilers. */
7722
7723 #ifdef __STDC__
7724 # include <limits.h>
7725 #else
7726 # include <assert.h>
7727 #endif
7728
7729 #undef wctype
7730
7731 /* Override any gcc2 internal prototype to avoid an error. */
7732 #ifdef __cplusplus
7733 extern "C"
7734 {
7735 #endif
7736 /* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7738 char wctype ();
7739 /* The GNU C library defines this for functions which it implements
7740 to always fail with ENOSYS. Some functions are actually named
7741 something starting with __ and the normal name is an alias. */
7742 #if defined (__stub_wctype) || defined (__stub___wctype)
7743 choke me
7744 #else
7745 char (*f) () = wctype;
7746 #endif
7747 #ifdef __cplusplus
7748 }
7749 #endif
7750
7751 int
7752 main ()
7753 {
7754 return f != wctype;
7755 ;
7756 return 0;
7757 }
7758 _ACEOF
7759 rm -f conftest.$ac_objext conftest$ac_exeext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7761 (eval $ac_link) 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_c_werror_flag"
7769 || test ! -s conftest.err'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest$ac_exeext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 ac_cv_func_wctype=yes
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 ac_cv_func_wctype=no
7787 fi
7788 rm -f conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7790 fi
7791 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7792 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7793 if test $ac_cv_func_wctype = yes; then
7794 :
7795 else
7796
7797 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7798 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7799 if test "${ac_cv_lib_w_wctype+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802 ac_check_lib_save_LIBS=$LIBS
7803 LIBS="-lw $LIBS"
7804 cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h. */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7810
7811 /* Override any gcc2 internal prototype to avoid an error. */
7812 #ifdef __cplusplus
7813 extern "C"
7814 #endif
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7817 char wctype ();
7818 int
7819 main ()
7820 {
7821 wctype ();
7822 ;
7823 return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828 (eval $ac_link) 2>conftest.er1
7829 ac_status=$?
7830 grep -v '^ *+' conftest.er1 >conftest.err
7831 rm -f conftest.er1
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try='test -z "$ac_c_werror_flag"
7836 || test ! -s conftest.err'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 (eval $ac_try) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 (eval $ac_try) 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_lib_w_wctype=yes
7849 else
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 ac_cv_lib_w_wctype=no
7854 fi
7855 rm -f conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS
7858 fi
7859 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7860 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7861 if test $ac_cv_lib_w_wctype = yes; then
7862 cat >>confdefs.h <<_ACEOF
7863 #define HAVE_LIBW 1
7864 _ACEOF
7865
7866 LIBS="-lw $LIBS"
7867
7868 fi
7869
7870 fi
7871
7872
7873 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7874 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7875 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7876 if test "${ac_cv_search_gethostbyname+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879 ac_func_search_save_LIBS=$LIBS
7880 ac_cv_search_gethostbyname=no
7881 cat >conftest.$ac_ext <<_ACEOF
7882 /* confdefs.h. */
7883 _ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7887
7888 /* Override any gcc2 internal prototype to avoid an error. */
7889 #ifdef __cplusplus
7890 extern "C"
7891 #endif
7892 /* We use char because int might match the return type of a gcc2
7893 builtin and then its argument prototype would still apply. */
7894 char gethostbyname ();
7895 int
7896 main ()
7897 {
7898 gethostbyname ();
7899 ;
7900 return 0;
7901 }
7902 _ACEOF
7903 rm -f conftest.$ac_objext conftest$ac_exeext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7905 (eval $ac_link) 2>conftest.er1
7906 ac_status=$?
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } &&
7912 { ac_try='test -z "$ac_c_werror_flag"
7913 || test ! -s conftest.err'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 (eval $ac_try) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; } &&
7919 { ac_try='test -s conftest$ac_exeext'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 (eval $ac_try) 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 ac_cv_search_gethostbyname="none required"
7926 else
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7929
7930 fi
7931 rm -f conftest.err conftest.$ac_objext \
7932 conftest$ac_exeext conftest.$ac_ext
7933 if test "$ac_cv_search_gethostbyname" = no; then
7934 for ac_lib in nsl; do
7935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7936 cat >conftest.$ac_ext <<_ACEOF
7937 /* confdefs.h. */
7938 _ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7942
7943 /* Override any gcc2 internal prototype to avoid an error. */
7944 #ifdef __cplusplus
7945 extern "C"
7946 #endif
7947 /* We use char because int might match the return type of a gcc2
7948 builtin and then its argument prototype would still apply. */
7949 char gethostbyname ();
7950 int
7951 main ()
7952 {
7953 gethostbyname ();
7954 ;
7955 return 0;
7956 }
7957 _ACEOF
7958 rm -f conftest.$ac_objext conftest$ac_exeext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960 (eval $ac_link) 2>conftest.er1
7961 ac_status=$?
7962 grep -v '^ *+' conftest.er1 >conftest.err
7963 rm -f conftest.er1
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -z "$ac_c_werror_flag"
7968 || test ! -s conftest.err'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try='test -s conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_search_gethostbyname="-l$ac_lib"
7981 break
7982 else
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7985
7986 fi
7987 rm -f conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
7989 done
7990 fi
7991 LIBS=$ac_func_search_save_LIBS
7992 fi
7993 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7994 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7995 if test "$ac_cv_search_gethostbyname" != no; then
7996 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7997
7998 fi
7999
8000
8001 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8002 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
8003 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
8004 if test "${ac_cv_search_socketpair+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007 ac_func_search_save_LIBS=$LIBS
8008 ac_cv_search_socketpair=no
8009 cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h. */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015
8016 /* Override any gcc2 internal prototype to avoid an error. */
8017 #ifdef __cplusplus
8018 extern "C"
8019 #endif
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022 char socketpair ();
8023 int
8024 main ()
8025 {
8026 socketpair ();
8027 ;
8028 return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8033 (eval $ac_link) 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -z "$ac_c_werror_flag"
8041 || test ! -s conftest.err'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest$ac_exeext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_cv_search_socketpair="none required"
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8057
8058 fi
8059 rm -f conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
8061 if test "$ac_cv_search_socketpair" = no; then
8062 for ac_lib in socket; do
8063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8064 cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h. */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8070
8071 /* Override any gcc2 internal prototype to avoid an error. */
8072 #ifdef __cplusplus
8073 extern "C"
8074 #endif
8075 /* We use char because int might match the return type of a gcc2
8076 builtin and then its argument prototype would still apply. */
8077 char socketpair ();
8078 int
8079 main ()
8080 {
8081 socketpair ();
8082 ;
8083 return 0;
8084 }
8085 _ACEOF
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>conftest.er1
8089 ac_status=$?
8090 grep -v '^ *+' conftest.er1 >conftest.err
8091 rm -f conftest.er1
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -z "$ac_c_werror_flag"
8096 || test ! -s conftest.err'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 (eval $ac_try) 2>&5
8099 ac_status=$?
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; } &&
8102 { ac_try='test -s conftest$ac_exeext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 (eval $ac_try) 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 ac_cv_search_socketpair="-l$ac_lib"
8109 break
8110 else
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8113
8114 fi
8115 rm -f conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8117 done
8118 fi
8119 LIBS=$ac_func_search_save_LIBS
8120 fi
8121 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8122 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8123 if test "$ac_cv_search_socketpair" != no; then
8124 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8125
8126 fi
8127
8128
8129 # For the TUI, we need enhanced curses functionality.
8130 #
8131 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8132 # curses library because the latter might not provide all the
8133 # functionality we need. However, this leads to problems on systems
8134 # where the linker searches /usr/local/lib, but the compiler doesn't
8135 # search /usr/local/include, if ncurses is installed in /usr/local. A
8136 # default installation of ncurses on alpha*-dec-osf* will lead to such
8137 # a situation.
8138 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8139 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8140 if test "${ac_cv_search_waddstr+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143 ac_func_search_save_LIBS=$LIBS
8144 ac_cv_search_waddstr=no
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h. */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151
8152 /* Override any gcc2 internal prototype to avoid an error. */
8153 #ifdef __cplusplus
8154 extern "C"
8155 #endif
8156 /* We use char because int might match the return type of a gcc2
8157 builtin and then its argument prototype would still apply. */
8158 char waddstr ();
8159 int
8160 main ()
8161 {
8162 waddstr ();
8163 ;
8164 return 0;
8165 }
8166 _ACEOF
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169 (eval $ac_link) 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -z "$ac_c_werror_flag"
8177 || test ! -s conftest.err'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 (eval $ac_try) 2>&5
8180 ac_status=$?
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; } &&
8183 { ac_try='test -s conftest$ac_exeext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 (eval $ac_try) 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_search_waddstr="none required"
8190 else
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 fi
8195 rm -f conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8197 if test "$ac_cv_search_waddstr" = no; then
8198 for ac_lib in ncurses cursesX curses; do
8199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8200 cat >conftest.$ac_ext <<_ACEOF
8201 /* confdefs.h. */
8202 _ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8206
8207 /* Override any gcc2 internal prototype to avoid an error. */
8208 #ifdef __cplusplus
8209 extern "C"
8210 #endif
8211 /* We use char because int might match the return type of a gcc2
8212 builtin and then its argument prototype would still apply. */
8213 char waddstr ();
8214 int
8215 main ()
8216 {
8217 waddstr ();
8218 ;
8219 return 0;
8220 }
8221 _ACEOF
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8224 (eval $ac_link) 2>conftest.er1
8225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } &&
8231 { ac_try='test -z "$ac_c_werror_flag"
8232 || test ! -s conftest.err'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 (eval $ac_try) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; } &&
8238 { ac_try='test -s conftest$ac_exeext'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 (eval $ac_try) 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 ac_cv_search_waddstr="-l$ac_lib"
8245 break
8246 else
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8249
8250 fi
8251 rm -f conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8253 done
8254 fi
8255 LIBS=$ac_func_search_save_LIBS
8256 fi
8257 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8258 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8259 if test "$ac_cv_search_waddstr" != no; then
8260 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8261
8262 fi
8263
8264
8265 # Since GDB uses Readline, we need termcap functionality. In many
8266 # cases this will be provided by the curses library, but some systems
8267 # have a seperate termcap library, or no curses library at all.
8268
8269 case $host_os in
8270 cygwin*)
8271 if test -d $srcdir/libtermcap; then
8272 LIBS="../libtermcap/libtermcap.a $LIBS"
8273 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8274 fi ;;
8275 go32* | *djgpp*)
8276 ac_cv_search_tgetent="none required"
8277 ;;
8278 esac
8279
8280 # These are the libraries checked by Readline.
8281 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8282 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8283 if test "${ac_cv_search_tgetent+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286 ac_func_search_save_LIBS=$LIBS
8287 ac_cv_search_tgetent=no
8288 cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h. */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8294
8295 /* Override any gcc2 internal prototype to avoid an error. */
8296 #ifdef __cplusplus
8297 extern "C"
8298 #endif
8299 /* We use char because int might match the return type of a gcc2
8300 builtin and then its argument prototype would still apply. */
8301 char tgetent ();
8302 int
8303 main ()
8304 {
8305 tgetent ();
8306 ;
8307 return 0;
8308 }
8309 _ACEOF
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8312 (eval $ac_link) 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -z "$ac_c_werror_flag"
8320 || test ! -s conftest.err'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } &&
8326 { ac_try='test -s conftest$ac_exeext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_search_tgetent="none required"
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337 fi
8338 rm -f conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext conftest.$ac_ext
8340 if test "$ac_cv_search_tgetent" = no; then
8341 for ac_lib in termcap tinfo curses ncurses; do
8342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h. */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349
8350 /* Override any gcc2 internal prototype to avoid an error. */
8351 #ifdef __cplusplus
8352 extern "C"
8353 #endif
8354 /* We use char because int might match the return type of a gcc2
8355 builtin and then its argument prototype would still apply. */
8356 char tgetent ();
8357 int
8358 main ()
8359 {
8360 tgetent ();
8361 ;
8362 return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367 (eval $ac_link) 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_c_werror_flag"
8375 || test ! -s conftest.err'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_cv_search_tgetent="-l$ac_lib"
8388 break
8389 else
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8392
8393 fi
8394 rm -f conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396 done
8397 fi
8398 LIBS=$ac_func_search_save_LIBS
8399 fi
8400 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8401 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8402 if test "$ac_cv_search_tgetent" != no; then
8403 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8404
8405 fi
8406
8407
8408 if test "$ac_cv_search_tgetent" = no; then
8409 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8410 echo "$as_me: error: no termcap library found" >&2;}
8411 { (exit 1); exit 1; }; }
8412 fi
8413
8414 # ------------------------- #
8415 # Checks for header files. #
8416 # ------------------------- #
8417
8418
8419
8420
8421
8422
8423 ac_header_dirent=no
8424 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8425 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8426 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8427 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 else
8431 cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h. */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8437 #include <sys/types.h>
8438 #include <$ac_hdr>
8439
8440 int
8441 main ()
8442 {
8443 if ((DIR *) 0)
8444 return 0;
8445 ;
8446 return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest.$ac_objext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8451 (eval $ac_compile) 2>conftest.er1
8452 ac_status=$?
8453 grep -v '^ *+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -z "$ac_c_werror_flag"
8459 || test ! -s conftest.err'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 (eval $ac_try) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest.$ac_objext'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 (eval $ac_try) 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 eval "$as_ac_Header=yes"
8472 else
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 eval "$as_ac_Header=no"
8477 fi
8478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8479 fi
8480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8483 cat >>confdefs.h <<_ACEOF
8484 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8485 _ACEOF
8486
8487 ac_header_dirent=$ac_hdr; break
8488 fi
8489
8490 done
8491 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8492 if test $ac_header_dirent = dirent.h; then
8493 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8494 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8495 if test "${ac_cv_search_opendir+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 else
8498 ac_func_search_save_LIBS=$LIBS
8499 ac_cv_search_opendir=no
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506
8507 /* Override any gcc2 internal prototype to avoid an error. */
8508 #ifdef __cplusplus
8509 extern "C"
8510 #endif
8511 /* We use char because int might match the return type of a gcc2
8512 builtin and then its argument prototype would still apply. */
8513 char opendir ();
8514 int
8515 main ()
8516 {
8517 opendir ();
8518 ;
8519 return 0;
8520 }
8521 _ACEOF
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524 (eval $ac_link) 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -z "$ac_c_werror_flag"
8532 || test ! -s conftest.err'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 (eval $ac_try) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest$ac_exeext'
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 (eval $ac_try) 2>&5
8541 ac_status=$?
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8544 ac_cv_search_opendir="none required"
8545 else
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 fi
8550 rm -f conftest.err conftest.$ac_objext \
8551 conftest$ac_exeext conftest.$ac_ext
8552 if test "$ac_cv_search_opendir" = no; then
8553 for ac_lib in dir; do
8554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8555 cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h. */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8561
8562 /* Override any gcc2 internal prototype to avoid an error. */
8563 #ifdef __cplusplus
8564 extern "C"
8565 #endif
8566 /* We use char because int might match the return type of a gcc2
8567 builtin and then its argument prototype would still apply. */
8568 char opendir ();
8569 int
8570 main ()
8571 {
8572 opendir ();
8573 ;
8574 return 0;
8575 }
8576 _ACEOF
8577 rm -f conftest.$ac_objext conftest$ac_exeext
8578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8579 (eval $ac_link) 2>conftest.er1
8580 ac_status=$?
8581 grep -v '^ *+' conftest.er1 >conftest.err
8582 rm -f conftest.er1
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_c_werror_flag"
8587 || test ! -s conftest.err'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try='test -s conftest$ac_exeext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 (eval $ac_try) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 ac_cv_search_opendir="-l$ac_lib"
8600 break
8601 else
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8604
8605 fi
8606 rm -f conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8608 done
8609 fi
8610 LIBS=$ac_func_search_save_LIBS
8611 fi
8612 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8613 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8614 if test "$ac_cv_search_opendir" != no; then
8615 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8616
8617 fi
8618
8619 else
8620 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8621 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8622 if test "${ac_cv_search_opendir+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625 ac_func_search_save_LIBS=$LIBS
8626 ac_cv_search_opendir=no
8627 cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h. */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633
8634 /* Override any gcc2 internal prototype to avoid an error. */
8635 #ifdef __cplusplus
8636 extern "C"
8637 #endif
8638 /* We use char because int might match the return type of a gcc2
8639 builtin and then its argument prototype would still apply. */
8640 char opendir ();
8641 int
8642 main ()
8643 {
8644 opendir ();
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext conftest$ac_exeext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8651 (eval $ac_link) 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -z "$ac_c_werror_flag"
8659 || test ! -s conftest.err'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest$ac_exeext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 (eval $ac_try) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 ac_cv_search_opendir="none required"
8672 else
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8675
8676 fi
8677 rm -f conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679 if test "$ac_cv_search_opendir" = no; then
8680 for ac_lib in x; do
8681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8682 cat >conftest.$ac_ext <<_ACEOF
8683 /* confdefs.h. */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688
8689 /* Override any gcc2 internal prototype to avoid an error. */
8690 #ifdef __cplusplus
8691 extern "C"
8692 #endif
8693 /* We use char because int might match the return type of a gcc2
8694 builtin and then its argument prototype would still apply. */
8695 char opendir ();
8696 int
8697 main ()
8698 {
8699 opendir ();
8700 ;
8701 return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706 (eval $ac_link) 2>conftest.er1
8707 ac_status=$?
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag"
8714 || test ! -s conftest.err'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest$ac_exeext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_cv_search_opendir="-l$ac_lib"
8727 break
8728 else
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8731
8732 fi
8733 rm -f conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
8735 done
8736 fi
8737 LIBS=$ac_func_search_save_LIBS
8738 fi
8739 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8740 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8741 if test "$ac_cv_search_opendir" != no; then
8742 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8743
8744 fi
8745
8746 fi
8747
8748 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8749 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8750 if test "${ac_cv_header_stat_broken+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h. */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 #include <sys/types.h>
8760 #include <sys/stat.h>
8761
8762 #if defined(S_ISBLK) && defined(S_IFDIR)
8763 # if S_ISBLK (S_IFDIR)
8764 You lose.
8765 # endif
8766 #endif
8767
8768 #if defined(S_ISBLK) && defined(S_IFCHR)
8769 # if S_ISBLK (S_IFCHR)
8770 You lose.
8771 # endif
8772 #endif
8773
8774 #if defined(S_ISLNK) && defined(S_IFREG)
8775 # if S_ISLNK (S_IFREG)
8776 You lose.
8777 # endif
8778 #endif
8779
8780 #if defined(S_ISSOCK) && defined(S_IFREG)
8781 # if S_ISSOCK (S_IFREG)
8782 You lose.
8783 # endif
8784 #endif
8785
8786 _ACEOF
8787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8788 $EGREP "You lose" >/dev/null 2>&1; then
8789 ac_cv_header_stat_broken=yes
8790 else
8791 ac_cv_header_stat_broken=no
8792 fi
8793 rm -f conftest*
8794
8795 fi
8796 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8797 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8798 if test $ac_cv_header_stat_broken = yes; then
8799
8800 cat >>confdefs.h <<\_ACEOF
8801 #define STAT_MACROS_BROKEN 1
8802 _ACEOF
8803
8804 fi
8805
8806 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8808 if test "${ac_cv_header_stdc+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811 cat >conftest.$ac_ext <<_ACEOF
8812 /* confdefs.h. */
8813 _ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8817 #include <stdlib.h>
8818 #include <stdarg.h>
8819 #include <string.h>
8820 #include <float.h>
8821
8822 int
8823 main ()
8824 {
8825
8826 ;
8827 return 0;
8828 }
8829 _ACEOF
8830 rm -f conftest.$ac_objext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832 (eval $ac_compile) 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag"
8840 || test ! -s conftest.err'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 (eval $ac_try) 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; } &&
8846 { ac_try='test -s conftest.$ac_objext'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 (eval $ac_try) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8852 ac_cv_header_stdc=yes
8853 else
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8856
8857 ac_cv_header_stdc=no
8858 fi
8859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8860
8861 if test $ac_cv_header_stdc = yes; then
8862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8863 cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h. */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 #include <string.h>
8870
8871 _ACEOF
8872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8873 $EGREP "memchr" >/dev/null 2>&1; then
8874 :
8875 else
8876 ac_cv_header_stdc=no
8877 fi
8878 rm -f conftest*
8879
8880 fi
8881
8882 if test $ac_cv_header_stdc = yes; then
8883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8884 cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h. */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 #include <stdlib.h>
8891
8892 _ACEOF
8893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8894 $EGREP "free" >/dev/null 2>&1; then
8895 :
8896 else
8897 ac_cv_header_stdc=no
8898 fi
8899 rm -f conftest*
8900
8901 fi
8902
8903 if test $ac_cv_header_stdc = yes; then
8904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8905 if test "$cross_compiling" = yes; then
8906 :
8907 else
8908 cat >conftest.$ac_ext <<_ACEOF
8909 /* confdefs.h. */
8910 _ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h. */
8914 #include <ctype.h>
8915 #if ((' ' & 0x0FF) == 0x020)
8916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8918 #else
8919 # define ISLOWER(c) \
8920 (('a' <= (c) && (c) <= 'i') \
8921 || ('j' <= (c) && (c) <= 'r') \
8922 || ('s' <= (c) && (c) <= 'z'))
8923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8924 #endif
8925
8926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8927 int
8928 main ()
8929 {
8930 int i;
8931 for (i = 0; i < 256; i++)
8932 if (XOR (islower (i), ISLOWER (i))
8933 || toupper (i) != TOUPPER (i))
8934 exit(2);
8935 exit (0);
8936 }
8937 _ACEOF
8938 rm -f conftest$ac_exeext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 (eval $ac_try) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8949 :
8950 else
8951 echo "$as_me: program exited with status $ac_status" >&5
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8954
8955 ( exit $ac_status )
8956 ac_cv_header_stdc=no
8957 fi
8958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8959 fi
8960 fi
8961 fi
8962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8964 if test $ac_cv_header_stdc = yes; then
8965
8966 cat >>confdefs.h <<\_ACEOF
8967 #define STDC_HEADERS 1
8968 _ACEOF
8969
8970 fi
8971
8972
8973 for ac_header in nlist.h
8974 do
8975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8977 echo "$as_me:$LINENO: checking for $ac_header" >&5
8978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 fi
8982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8984 else
8985 # Is the header compilable?
8986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8988 cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h. */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994 $ac_includes_default
8995 #include <$ac_header>
8996 _ACEOF
8997 rm -f conftest.$ac_objext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>conftest.er1
9000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -z "$ac_c_werror_flag"
9007 || test ! -s conftest.err'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; } &&
9013 { ac_try='test -s conftest.$ac_objext'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 (eval $ac_try) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; }; then
9019 ac_header_compiler=yes
9020 else
9021 echo "$as_me: failed program was:" >&5
9022 sed 's/^/| /' conftest.$ac_ext >&5
9023
9024 ac_header_compiler=no
9025 fi
9026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9028 echo "${ECHO_T}$ac_header_compiler" >&6
9029
9030 # Is the header present?
9031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9033 cat >conftest.$ac_ext <<_ACEOF
9034 /* confdefs.h. */
9035 _ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h. */
9039 #include <$ac_header>
9040 _ACEOF
9041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9043 ac_status=$?
9044 grep -v '^ *+' conftest.er1 >conftest.err
9045 rm -f conftest.er1
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } >/dev/null; then
9049 if test -s conftest.err; then
9050 ac_cpp_err=$ac_c_preproc_warn_flag
9051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9052 else
9053 ac_cpp_err=
9054 fi
9055 else
9056 ac_cpp_err=yes
9057 fi
9058 if test -z "$ac_cpp_err"; then
9059 ac_header_preproc=yes
9060 else
9061 echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9063
9064 ac_header_preproc=no
9065 fi
9066 rm -f conftest.err conftest.$ac_ext
9067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9068 echo "${ECHO_T}$ac_header_preproc" >&6
9069
9070 # So? What about this header?
9071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9072 yes:no: )
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9077 ac_header_preproc=yes
9078 ;;
9079 no:yes:* )
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9092 (
9093 cat <<\_ASBOX
9094 ## ------------------------------------------ ##
9095 ## Report this to the AC_PACKAGE_NAME lists. ##
9096 ## ------------------------------------------ ##
9097 _ASBOX
9098 ) |
9099 sed "s/^/$as_me: WARNING: /" >&2
9100 ;;
9101 esac
9102 echo "$as_me:$LINENO: checking for $ac_header" >&5
9103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 else
9107 eval "$as_ac_Header=\$ac_header_preproc"
9108 fi
9109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9111
9112 fi
9113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9114 cat >>confdefs.h <<_ACEOF
9115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9116 _ACEOF
9117
9118 fi
9119
9120 done
9121
9122
9123 for ac_header in link.h
9124 do
9125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9126 echo "$as_me:$LINENO: checking for $ac_header" >&5
9127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131 cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h. */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 #if HAVE_SYS_TYPES_H
9138 # include <sys/types.h>
9139 #endif
9140 #if HAVE_NLIST_H
9141 # include <nlist.h>
9142 #endif
9143
9144
9145 #include <$ac_header>
9146 _ACEOF
9147 rm -f conftest.$ac_objext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9149 (eval $ac_compile) 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -z "$ac_c_werror_flag"
9157 || test ! -s conftest.err'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 (eval $ac_try) 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest.$ac_objext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 (eval $ac_try) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 eval "$as_ac_Header=yes"
9170 else
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9173
9174 eval "$as_ac_Header=no"
9175 fi
9176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9177 fi
9178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9181 cat >>confdefs.h <<_ACEOF
9182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9183 _ACEOF
9184
9185 fi
9186
9187 done
9188
9189
9190 for ac_header in machine/reg.h
9191 do
9192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9194 echo "$as_me:$LINENO: checking for $ac_header" >&5
9195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 fi
9199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9201 else
9202 # Is the header compilable?
9203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9205 cat >conftest.$ac_ext <<_ACEOF
9206 /* confdefs.h. */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 $ac_includes_default
9212 #include <$ac_header>
9213 _ACEOF
9214 rm -f conftest.$ac_objext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216 (eval $ac_compile) 2>conftest.er1
9217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -z "$ac_c_werror_flag"
9224 || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest.$ac_objext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_header_compiler=yes
9237 else
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9240
9241 ac_header_compiler=no
9242 fi
9243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9245 echo "${ECHO_T}$ac_header_compiler" >&6
9246
9247 # Is the header present?
9248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h. */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 #include <$ac_header>
9257 _ACEOF
9258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } >/dev/null; then
9266 if test -s conftest.err; then
9267 ac_cpp_err=$ac_c_preproc_warn_flag
9268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9269 else
9270 ac_cpp_err=
9271 fi
9272 else
9273 ac_cpp_err=yes
9274 fi
9275 if test -z "$ac_cpp_err"; then
9276 ac_header_preproc=yes
9277 else
9278 echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9280
9281 ac_header_preproc=no
9282 fi
9283 rm -f conftest.err conftest.$ac_ext
9284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9285 echo "${ECHO_T}$ac_header_preproc" >&6
9286
9287 # So? What about this header?
9288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9289 yes:no: )
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9294 ac_header_preproc=yes
9295 ;;
9296 no:yes:* )
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9309 (
9310 cat <<\_ASBOX
9311 ## ------------------------------------------ ##
9312 ## Report this to the AC_PACKAGE_NAME lists. ##
9313 ## ------------------------------------------ ##
9314 _ASBOX
9315 ) |
9316 sed "s/^/$as_me: WARNING: /" >&2
9317 ;;
9318 esac
9319 echo "$as_me:$LINENO: checking for $ac_header" >&5
9320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324 eval "$as_ac_Header=\$ac_header_preproc"
9325 fi
9326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9328
9329 fi
9330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9331 cat >>confdefs.h <<_ACEOF
9332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9333 _ACEOF
9334
9335 fi
9336
9337 done
9338
9339
9340
9341 for ac_header in poll.h sys/poll.h
9342 do
9343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9345 echo "$as_me:$LINENO: checking for $ac_header" >&5
9346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 fi
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9352 else
9353 # Is the header compilable?
9354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h. */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 $ac_includes_default
9363 #include <$ac_header>
9364 _ACEOF
9365 rm -f conftest.$ac_objext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367 (eval $ac_compile) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -z "$ac_c_werror_flag"
9375 || test ! -s conftest.err'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest.$ac_objext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9387 ac_header_compiler=yes
9388 else
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9391
9392 ac_header_compiler=no
9393 fi
9394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9396 echo "${ECHO_T}$ac_header_compiler" >&6
9397
9398 # Is the header present?
9399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 #include <$ac_header>
9408 _ACEOF
9409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9411 ac_status=$?
9412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } >/dev/null; then
9417 if test -s conftest.err; then
9418 ac_cpp_err=$ac_c_preproc_warn_flag
9419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9420 else
9421 ac_cpp_err=
9422 fi
9423 else
9424 ac_cpp_err=yes
9425 fi
9426 if test -z "$ac_cpp_err"; then
9427 ac_header_preproc=yes
9428 else
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ac_header_preproc=no
9433 fi
9434 rm -f conftest.err conftest.$ac_ext
9435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9436 echo "${ECHO_T}$ac_header_preproc" >&6
9437
9438 # So? What about this header?
9439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9440 yes:no: )
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9445 ac_header_preproc=yes
9446 ;;
9447 no:yes:* )
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9460 (
9461 cat <<\_ASBOX
9462 ## ------------------------------------------ ##
9463 ## Report this to the AC_PACKAGE_NAME lists. ##
9464 ## ------------------------------------------ ##
9465 _ASBOX
9466 ) |
9467 sed "s/^/$as_me: WARNING: /" >&2
9468 ;;
9469 esac
9470 echo "$as_me:$LINENO: checking for $ac_header" >&5
9471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475 eval "$as_ac_Header=\$ac_header_preproc"
9476 fi
9477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9479
9480 fi
9481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9482 cat >>confdefs.h <<_ACEOF
9483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9484 _ACEOF
9485
9486 fi
9487
9488 done
9489
9490
9491
9492
9493 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9494 do
9495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9497 echo "$as_me:$LINENO: checking for $ac_header" >&5
9498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 fi
9502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9504 else
9505 # Is the header compilable?
9506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 #include <$ac_header>
9516 _ACEOF
9517 rm -f conftest.$ac_objext
9518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9519 (eval $ac_compile) 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } &&
9526 { ac_try='test -z "$ac_c_werror_flag"
9527 || test ! -s conftest.err'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; } &&
9533 { ac_try='test -s conftest.$ac_objext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_header_compiler=yes
9540 else
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9543
9544 ac_header_compiler=no
9545 fi
9546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9548 echo "${ECHO_T}$ac_header_compiler" >&6
9549
9550 # Is the header present?
9551 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9553 cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h. */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 #include <$ac_header>
9560 _ACEOF
9561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9563 ac_status=$?
9564 grep -v '^ *+' conftest.er1 >conftest.err
9565 rm -f conftest.er1
9566 cat conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } >/dev/null; then
9569 if test -s conftest.err; then
9570 ac_cpp_err=$ac_c_preproc_warn_flag
9571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9572 else
9573 ac_cpp_err=
9574 fi
9575 else
9576 ac_cpp_err=yes
9577 fi
9578 if test -z "$ac_cpp_err"; then
9579 ac_header_preproc=yes
9580 else
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9583
9584 ac_header_preproc=no
9585 fi
9586 rm -f conftest.err conftest.$ac_ext
9587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9588 echo "${ECHO_T}$ac_header_preproc" >&6
9589
9590 # So? What about this header?
9591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9592 yes:no: )
9593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9597 ac_header_preproc=yes
9598 ;;
9599 no:yes:* )
9600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9612 (
9613 cat <<\_ASBOX
9614 ## ------------------------------------------ ##
9615 ## Report this to the AC_PACKAGE_NAME lists. ##
9616 ## ------------------------------------------ ##
9617 _ASBOX
9618 ) |
9619 sed "s/^/$as_me: WARNING: /" >&2
9620 ;;
9621 esac
9622 echo "$as_me:$LINENO: checking for $ac_header" >&5
9623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 else
9627 eval "$as_ac_Header=\$ac_header_preproc"
9628 fi
9629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9631
9632 fi
9633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9634 cat >>confdefs.h <<_ACEOF
9635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9636 _ACEOF
9637
9638 fi
9639
9640 done
9641
9642
9643 for ac_header in stddef.h
9644 do
9645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9647 echo "$as_me:$LINENO: checking for $ac_header" >&5
9648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 fi
9652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9654 else
9655 # Is the header compilable?
9656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h. */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 $ac_includes_default
9665 #include <$ac_header>
9666 _ACEOF
9667 rm -f conftest.$ac_objext
9668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9669 (eval $ac_compile) 2>conftest.er1
9670 ac_status=$?
9671 grep -v '^ *+' conftest.er1 >conftest.err
9672 rm -f conftest.er1
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
9676 { ac_try='test -z "$ac_c_werror_flag"
9677 || test ! -s conftest.err'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 (eval $ac_try) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; } &&
9683 { ac_try='test -s conftest.$ac_objext'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
9689 ac_header_compiler=yes
9690 else
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9693
9694 ac_header_compiler=no
9695 fi
9696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9698 echo "${ECHO_T}$ac_header_compiler" >&6
9699
9700 # Is the header present?
9701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h. */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709 #include <$ac_header>
9710 _ACEOF
9711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } >/dev/null; then
9719 if test -s conftest.err; then
9720 ac_cpp_err=$ac_c_preproc_warn_flag
9721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9722 else
9723 ac_cpp_err=
9724 fi
9725 else
9726 ac_cpp_err=yes
9727 fi
9728 if test -z "$ac_cpp_err"; then
9729 ac_header_preproc=yes
9730 else
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9733
9734 ac_header_preproc=no
9735 fi
9736 rm -f conftest.err conftest.$ac_ext
9737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9738 echo "${ECHO_T}$ac_header_preproc" >&6
9739
9740 # So? What about this header?
9741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9742 yes:no: )
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9747 ac_header_preproc=yes
9748 ;;
9749 no:yes:* )
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9762 (
9763 cat <<\_ASBOX
9764 ## ------------------------------------------ ##
9765 ## Report this to the AC_PACKAGE_NAME lists. ##
9766 ## ------------------------------------------ ##
9767 _ASBOX
9768 ) |
9769 sed "s/^/$as_me: WARNING: /" >&2
9770 ;;
9771 esac
9772 echo "$as_me:$LINENO: checking for $ac_header" >&5
9773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9777 eval "$as_ac_Header=\$ac_header_preproc"
9778 fi
9779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9781
9782 fi
9783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9784 cat >>confdefs.h <<_ACEOF
9785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9786 _ACEOF
9787
9788 fi
9789
9790 done
9791
9792
9793 for ac_header in stdlib.h
9794 do
9795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9797 echo "$as_me:$LINENO: checking for $ac_header" >&5
9798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 fi
9802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9804 else
9805 # Is the header compilable?
9806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9808 cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h. */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 $ac_includes_default
9815 #include <$ac_header>
9816 _ACEOF
9817 rm -f conftest.$ac_objext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819 (eval $ac_compile) 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest.$ac_objext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_header_compiler=yes
9840 else
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9843
9844 ac_header_compiler=no
9845 fi
9846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9848 echo "${ECHO_T}$ac_header_compiler" >&6
9849
9850 # Is the header present?
9851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h. */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 #include <$ac_header>
9860 _ACEOF
9861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } >/dev/null; then
9869 if test -s conftest.err; then
9870 ac_cpp_err=$ac_c_preproc_warn_flag
9871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9872 else
9873 ac_cpp_err=
9874 fi
9875 else
9876 ac_cpp_err=yes
9877 fi
9878 if test -z "$ac_cpp_err"; then
9879 ac_header_preproc=yes
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884 ac_header_preproc=no
9885 fi
9886 rm -f conftest.err conftest.$ac_ext
9887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9888 echo "${ECHO_T}$ac_header_preproc" >&6
9889
9890 # So? What about this header?
9891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9892 yes:no: )
9893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9897 ac_header_preproc=yes
9898 ;;
9899 no:yes:* )
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9912 (
9913 cat <<\_ASBOX
9914 ## ------------------------------------------ ##
9915 ## Report this to the AC_PACKAGE_NAME lists. ##
9916 ## ------------------------------------------ ##
9917 _ASBOX
9918 ) |
9919 sed "s/^/$as_me: WARNING: /" >&2
9920 ;;
9921 esac
9922 echo "$as_me:$LINENO: checking for $ac_header" >&5
9923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927 eval "$as_ac_Header=\$ac_header_preproc"
9928 fi
9929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9931
9932 fi
9933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9934 cat >>confdefs.h <<_ACEOF
9935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9936 _ACEOF
9937
9938 fi
9939
9940 done
9941
9942
9943 for ac_header in stdint.h
9944 do
9945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9947 echo "$as_me:$LINENO: checking for $ac_header" >&5
9948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 fi
9952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9954 else
9955 # Is the header compilable?
9956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9958 cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h. */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964 $ac_includes_default
9965 #include <$ac_header>
9966 _ACEOF
9967 rm -f conftest.$ac_objext
9968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9969 (eval $ac_compile) 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_c_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest.$ac_objext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 ac_header_compiler=yes
9990 else
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994 ac_header_compiler=no
9995 fi
9996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9998 echo "${ECHO_T}$ac_header_compiler" >&6
9999
10000 # Is the header present?
10001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10003 cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h. */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 #include <$ac_header>
10010 _ACEOF
10011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } >/dev/null; then
10019 if test -s conftest.err; then
10020 ac_cpp_err=$ac_c_preproc_warn_flag
10021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10022 else
10023 ac_cpp_err=
10024 fi
10025 else
10026 ac_cpp_err=yes
10027 fi
10028 if test -z "$ac_cpp_err"; then
10029 ac_header_preproc=yes
10030 else
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10033
10034 ac_header_preproc=no
10035 fi
10036 rm -f conftest.err conftest.$ac_ext
10037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10038 echo "${ECHO_T}$ac_header_preproc" >&6
10039
10040 # So? What about this header?
10041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10042 yes:no: )
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10047 ac_header_preproc=yes
10048 ;;
10049 no:yes:* )
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10062 (
10063 cat <<\_ASBOX
10064 ## ------------------------------------------ ##
10065 ## Report this to the AC_PACKAGE_NAME lists. ##
10066 ## ------------------------------------------ ##
10067 _ASBOX
10068 ) |
10069 sed "s/^/$as_me: WARNING: /" >&2
10070 ;;
10071 esac
10072 echo "$as_me:$LINENO: checking for $ac_header" >&5
10073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077 eval "$as_ac_Header=\$ac_header_preproc"
10078 fi
10079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10081
10082 fi
10083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10084 cat >>confdefs.h <<_ACEOF
10085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10086 _ACEOF
10087
10088 fi
10089
10090 done
10091
10092
10093
10094
10095 for ac_header in string.h memory.h strings.h
10096 do
10097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10099 echo "$as_me:$LINENO: checking for $ac_header" >&5
10100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 fi
10104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10106 else
10107 # Is the header compilable?
10108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 $ac_includes_default
10117 #include <$ac_header>
10118 _ACEOF
10119 rm -f conftest.$ac_objext
10120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10121 (eval $ac_compile) 2>conftest.er1
10122 ac_status=$?
10123 grep -v '^ *+' conftest.er1 >conftest.err
10124 rm -f conftest.er1
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -z "$ac_c_werror_flag"
10129 || test ! -s conftest.err'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } &&
10135 { ac_try='test -s conftest.$ac_objext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_header_compiler=yes
10142 else
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146 ac_header_compiler=no
10147 fi
10148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10150 echo "${ECHO_T}$ac_header_compiler" >&6
10151
10152 # Is the header present?
10153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10155 cat >conftest.$ac_ext <<_ACEOF
10156 /* confdefs.h. */
10157 _ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10161 #include <$ac_header>
10162 _ACEOF
10163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10165 ac_status=$?
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } >/dev/null; then
10171 if test -s conftest.err; then
10172 ac_cpp_err=$ac_c_preproc_warn_flag
10173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10174 else
10175 ac_cpp_err=
10176 fi
10177 else
10178 ac_cpp_err=yes
10179 fi
10180 if test -z "$ac_cpp_err"; then
10181 ac_header_preproc=yes
10182 else
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10185
10186 ac_header_preproc=no
10187 fi
10188 rm -f conftest.err conftest.$ac_ext
10189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10190 echo "${ECHO_T}$ac_header_preproc" >&6
10191
10192 # So? What about this header?
10193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10194 yes:no: )
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10199 ac_header_preproc=yes
10200 ;;
10201 no:yes:* )
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10214 (
10215 cat <<\_ASBOX
10216 ## ------------------------------------------ ##
10217 ## Report this to the AC_PACKAGE_NAME lists. ##
10218 ## ------------------------------------------ ##
10219 _ASBOX
10220 ) |
10221 sed "s/^/$as_me: WARNING: /" >&2
10222 ;;
10223 esac
10224 echo "$as_me:$LINENO: checking for $ac_header" >&5
10225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228 else
10229 eval "$as_ac_Header=\$ac_header_preproc"
10230 fi
10231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10233
10234 fi
10235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10236 cat >>confdefs.h <<_ACEOF
10237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10238 _ACEOF
10239
10240 fi
10241
10242 done
10243
10244
10245 for ac_header in sys/fault.h
10246 do
10247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10249 echo "$as_me:$LINENO: checking for $ac_header" >&5
10250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 fi
10254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10256 else
10257 # Is the header compilable?
10258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10260 cat >conftest.$ac_ext <<_ACEOF
10261 /* confdefs.h. */
10262 _ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10266 $ac_includes_default
10267 #include <$ac_header>
10268 _ACEOF
10269 rm -f conftest.$ac_objext
10270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271 (eval $ac_compile) 2>conftest.er1
10272 ac_status=$?
10273 grep -v '^ *+' conftest.er1 >conftest.err
10274 rm -f conftest.er1
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } &&
10278 { ac_try='test -z "$ac_c_werror_flag"
10279 || test ! -s conftest.err'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; } &&
10285 { ac_try='test -s conftest.$ac_objext'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; }; then
10291 ac_header_compiler=yes
10292 else
10293 echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10295
10296 ac_header_compiler=no
10297 fi
10298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10300 echo "${ECHO_T}$ac_header_compiler" >&6
10301
10302 # Is the header present?
10303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10305 cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h. */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 #include <$ac_header>
10312 _ACEOF
10313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } >/dev/null; then
10321 if test -s conftest.err; then
10322 ac_cpp_err=$ac_c_preproc_warn_flag
10323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10324 else
10325 ac_cpp_err=
10326 fi
10327 else
10328 ac_cpp_err=yes
10329 fi
10330 if test -z "$ac_cpp_err"; then
10331 ac_header_preproc=yes
10332 else
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10335
10336 ac_header_preproc=no
10337 fi
10338 rm -f conftest.err conftest.$ac_ext
10339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10340 echo "${ECHO_T}$ac_header_preproc" >&6
10341
10342 # So? What about this header?
10343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10344 yes:no: )
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10349 ac_header_preproc=yes
10350 ;;
10351 no:yes:* )
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10364 (
10365 cat <<\_ASBOX
10366 ## ------------------------------------------ ##
10367 ## Report this to the AC_PACKAGE_NAME lists. ##
10368 ## ------------------------------------------ ##
10369 _ASBOX
10370 ) |
10371 sed "s/^/$as_me: WARNING: /" >&2
10372 ;;
10373 esac
10374 echo "$as_me:$LINENO: checking for $ac_header" >&5
10375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379 eval "$as_ac_Header=\$ac_header_preproc"
10380 fi
10381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10383
10384 fi
10385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10386 cat >>confdefs.h <<_ACEOF
10387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10388 _ACEOF
10389
10390 fi
10391
10392 done
10393
10394
10395 for ac_header in sys/file.h
10396 do
10397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10399 echo "$as_me:$LINENO: checking for $ac_header" >&5
10400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 fi
10404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10406 else
10407 # Is the header compilable?
10408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10410 cat >conftest.$ac_ext <<_ACEOF
10411 /* confdefs.h. */
10412 _ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h. */
10416 $ac_includes_default
10417 #include <$ac_header>
10418 _ACEOF
10419 rm -f conftest.$ac_objext
10420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421 (eval $ac_compile) 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } &&
10428 { ac_try='test -z "$ac_c_werror_flag"
10429 || test ! -s conftest.err'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest.$ac_objext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 ac_header_compiler=yes
10442 else
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10445
10446 ac_header_compiler=no
10447 fi
10448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10450 echo "${ECHO_T}$ac_header_compiler" >&6
10451
10452 # Is the header present?
10453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 #include <$ac_header>
10462 _ACEOF
10463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } >/dev/null; then
10471 if test -s conftest.err; then
10472 ac_cpp_err=$ac_c_preproc_warn_flag
10473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10474 else
10475 ac_cpp_err=
10476 fi
10477 else
10478 ac_cpp_err=yes
10479 fi
10480 if test -z "$ac_cpp_err"; then
10481 ac_header_preproc=yes
10482 else
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10485
10486 ac_header_preproc=no
10487 fi
10488 rm -f conftest.err conftest.$ac_ext
10489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10490 echo "${ECHO_T}$ac_header_preproc" >&6
10491
10492 # So? What about this header?
10493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10494 yes:no: )
10495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10499 ac_header_preproc=yes
10500 ;;
10501 no:yes:* )
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10514 (
10515 cat <<\_ASBOX
10516 ## ------------------------------------------ ##
10517 ## Report this to the AC_PACKAGE_NAME lists. ##
10518 ## ------------------------------------------ ##
10519 _ASBOX
10520 ) |
10521 sed "s/^/$as_me: WARNING: /" >&2
10522 ;;
10523 esac
10524 echo "$as_me:$LINENO: checking for $ac_header" >&5
10525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529 eval "$as_ac_Header=\$ac_header_preproc"
10530 fi
10531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10533
10534 fi
10535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10536 cat >>confdefs.h <<_ACEOF
10537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10538 _ACEOF
10539
10540 fi
10541
10542 done
10543
10544
10545 for ac_header in sys/filio.h
10546 do
10547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10549 echo "$as_me:$LINENO: checking for $ac_header" >&5
10550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 fi
10554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10556 else
10557 # Is the header compilable?
10558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h. */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 $ac_includes_default
10567 #include <$ac_header>
10568 _ACEOF
10569 rm -f conftest.$ac_objext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10571 (eval $ac_compile) 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -z "$ac_c_werror_flag"
10579 || test ! -s conftest.err'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; } &&
10585 { ac_try='test -s conftest.$ac_objext'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 ac_header_compiler=yes
10592 else
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 ac_header_compiler=no
10597 fi
10598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10600 echo "${ECHO_T}$ac_header_compiler" >&6
10601
10602 # Is the header present?
10603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10605 cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h. */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 #include <$ac_header>
10612 _ACEOF
10613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } >/dev/null; then
10621 if test -s conftest.err; then
10622 ac_cpp_err=$ac_c_preproc_warn_flag
10623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10624 else
10625 ac_cpp_err=
10626 fi
10627 else
10628 ac_cpp_err=yes
10629 fi
10630 if test -z "$ac_cpp_err"; then
10631 ac_header_preproc=yes
10632 else
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636 ac_header_preproc=no
10637 fi
10638 rm -f conftest.err conftest.$ac_ext
10639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10640 echo "${ECHO_T}$ac_header_preproc" >&6
10641
10642 # So? What about this header?
10643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10644 yes:no: )
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10649 ac_header_preproc=yes
10650 ;;
10651 no:yes:* )
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10664 (
10665 cat <<\_ASBOX
10666 ## ------------------------------------------ ##
10667 ## Report this to the AC_PACKAGE_NAME lists. ##
10668 ## ------------------------------------------ ##
10669 _ASBOX
10670 ) |
10671 sed "s/^/$as_me: WARNING: /" >&2
10672 ;;
10673 esac
10674 echo "$as_me:$LINENO: checking for $ac_header" >&5
10675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679 eval "$as_ac_Header=\$ac_header_preproc"
10680 fi
10681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10683
10684 fi
10685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10686 cat >>confdefs.h <<_ACEOF
10687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10688 _ACEOF
10689
10690 fi
10691
10692 done
10693
10694
10695 for ac_header in sys/ioctl.h
10696 do
10697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10699 echo "$as_me:$LINENO: checking for $ac_header" >&5
10700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 fi
10704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10706 else
10707 # Is the header compilable?
10708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10710 cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h. */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10716 $ac_includes_default
10717 #include <$ac_header>
10718 _ACEOF
10719 rm -f conftest.$ac_objext
10720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10721 (eval $ac_compile) 2>conftest.er1
10722 ac_status=$?
10723 grep -v '^ *+' conftest.er1 >conftest.err
10724 rm -f conftest.er1
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
10728 { ac_try='test -z "$ac_c_werror_flag"
10729 || test ! -s conftest.err'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; } &&
10735 { ac_try='test -s conftest.$ac_objext'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 ac_header_compiler=yes
10742 else
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10745
10746 ac_header_compiler=no
10747 fi
10748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750 echo "${ECHO_T}$ac_header_compiler" >&6
10751
10752 # Is the header present?
10753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h. */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 #include <$ac_header>
10762 _ACEOF
10763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } >/dev/null; then
10771 if test -s conftest.err; then
10772 ac_cpp_err=$ac_c_preproc_warn_flag
10773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10774 else
10775 ac_cpp_err=
10776 fi
10777 else
10778 ac_cpp_err=yes
10779 fi
10780 if test -z "$ac_cpp_err"; then
10781 ac_header_preproc=yes
10782 else
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 ac_header_preproc=no
10787 fi
10788 rm -f conftest.err conftest.$ac_ext
10789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10790 echo "${ECHO_T}$ac_header_preproc" >&6
10791
10792 # So? What about this header?
10793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10794 yes:no: )
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10799 ac_header_preproc=yes
10800 ;;
10801 no:yes:* )
10802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10814 (
10815 cat <<\_ASBOX
10816 ## ------------------------------------------ ##
10817 ## Report this to the AC_PACKAGE_NAME lists. ##
10818 ## ------------------------------------------ ##
10819 _ASBOX
10820 ) |
10821 sed "s/^/$as_me: WARNING: /" >&2
10822 ;;
10823 esac
10824 echo "$as_me:$LINENO: checking for $ac_header" >&5
10825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829 eval "$as_ac_Header=\$ac_header_preproc"
10830 fi
10831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10833
10834 fi
10835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10836 cat >>confdefs.h <<_ACEOF
10837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10838 _ACEOF
10839
10840 fi
10841
10842 done
10843
10844
10845 for ac_header in sys/param.h
10846 do
10847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10849 echo "$as_me:$LINENO: checking for $ac_header" >&5
10850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 fi
10854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10856 else
10857 # Is the header compilable?
10858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10860 cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h. */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 $ac_includes_default
10867 #include <$ac_header>
10868 _ACEOF
10869 rm -f conftest.$ac_objext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10871 (eval $ac_compile) 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try='test -z "$ac_c_werror_flag"
10879 || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest.$ac_objext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_header_compiler=yes
10892 else
10893 echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10895
10896 ac_header_compiler=no
10897 fi
10898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10900 echo "${ECHO_T}$ac_header_compiler" >&6
10901
10902 # Is the header present?
10903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10905 cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h. */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10911 #include <$ac_header>
10912 _ACEOF
10913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } >/dev/null; then
10921 if test -s conftest.err; then
10922 ac_cpp_err=$ac_c_preproc_warn_flag
10923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10924 else
10925 ac_cpp_err=
10926 fi
10927 else
10928 ac_cpp_err=yes
10929 fi
10930 if test -z "$ac_cpp_err"; then
10931 ac_header_preproc=yes
10932 else
10933 echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10935
10936 ac_header_preproc=no
10937 fi
10938 rm -f conftest.err conftest.$ac_ext
10939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10940 echo "${ECHO_T}$ac_header_preproc" >&6
10941
10942 # So? What about this header?
10943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10944 yes:no: )
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10949 ac_header_preproc=yes
10950 ;;
10951 no:yes:* )
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10964 (
10965 cat <<\_ASBOX
10966 ## ------------------------------------------ ##
10967 ## Report this to the AC_PACKAGE_NAME lists. ##
10968 ## ------------------------------------------ ##
10969 _ASBOX
10970 ) |
10971 sed "s/^/$as_me: WARNING: /" >&2
10972 ;;
10973 esac
10974 echo "$as_me:$LINENO: checking for $ac_header" >&5
10975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979 eval "$as_ac_Header=\$ac_header_preproc"
10980 fi
10981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10983
10984 fi
10985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10986 cat >>confdefs.h <<_ACEOF
10987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10988 _ACEOF
10989
10990 fi
10991
10992 done
10993
10994
10995 for ac_header in sys/proc.h
10996 do
10997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10998 echo "$as_me:$LINENO: checking for $ac_header" >&5
10999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 else
11003 cat >conftest.$ac_ext <<_ACEOF
11004 /* confdefs.h. */
11005 _ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11009 #if HAVE_SYS_PARAM_H
11010 # include <sys/param.h>
11011 #endif
11012
11013
11014 #include <$ac_header>
11015 _ACEOF
11016 rm -f conftest.$ac_objext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11018 (eval $ac_compile) 2>conftest.er1
11019 ac_status=$?
11020 grep -v '^ *+' conftest.er1 >conftest.err
11021 rm -f conftest.er1
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -z "$ac_c_werror_flag"
11026 || test ! -s conftest.err'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; } &&
11032 { ac_try='test -s conftest.$ac_objext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 eval "$as_ac_Header=yes"
11039 else
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 eval "$as_ac_Header=no"
11044 fi
11045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11046 fi
11047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11050 cat >>confdefs.h <<_ACEOF
11051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11052 _ACEOF
11053
11054 fi
11055
11056 done
11057
11058
11059 for ac_header in sys/procfs.h
11060 do
11061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11063 echo "$as_me:$LINENO: checking for $ac_header" >&5
11064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 fi
11068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11070 else
11071 # Is the header compilable?
11072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h. */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 $ac_includes_default
11081 #include <$ac_header>
11082 _ACEOF
11083 rm -f conftest.$ac_objext
11084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11085 (eval $ac_compile) 2>conftest.er1
11086 ac_status=$?
11087 grep -v '^ *+' conftest.er1 >conftest.err
11088 rm -f conftest.er1
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } &&
11092 { ac_try='test -z "$ac_c_werror_flag"
11093 || test ! -s conftest.err'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; } &&
11099 { ac_try='test -s conftest.$ac_objext'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; }; then
11105 ac_header_compiler=yes
11106 else
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110 ac_header_compiler=no
11111 fi
11112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11114 echo "${ECHO_T}$ac_header_compiler" >&6
11115
11116 # Is the header present?
11117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h. */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125 #include <$ac_header>
11126 _ACEOF
11127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } >/dev/null; then
11135 if test -s conftest.err; then
11136 ac_cpp_err=$ac_c_preproc_warn_flag
11137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11138 else
11139 ac_cpp_err=
11140 fi
11141 else
11142 ac_cpp_err=yes
11143 fi
11144 if test -z "$ac_cpp_err"; then
11145 ac_header_preproc=yes
11146 else
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11149
11150 ac_header_preproc=no
11151 fi
11152 rm -f conftest.err conftest.$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11154 echo "${ECHO_T}$ac_header_preproc" >&6
11155
11156 # So? What about this header?
11157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11158 yes:no: )
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11163 ac_header_preproc=yes
11164 ;;
11165 no:yes:* )
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11178 (
11179 cat <<\_ASBOX
11180 ## ------------------------------------------ ##
11181 ## Report this to the AC_PACKAGE_NAME lists. ##
11182 ## ------------------------------------------ ##
11183 _ASBOX
11184 ) |
11185 sed "s/^/$as_me: WARNING: /" >&2
11186 ;;
11187 esac
11188 echo "$as_me:$LINENO: checking for $ac_header" >&5
11189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193 eval "$as_ac_Header=\$ac_header_preproc"
11194 fi
11195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11197
11198 fi
11199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11200 cat >>confdefs.h <<_ACEOF
11201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11202 _ACEOF
11203
11204 fi
11205
11206 done
11207
11208
11209
11210 for ac_header in sys/ptrace.h ptrace.h
11211 do
11212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11214 echo "$as_me:$LINENO: checking for $ac_header" >&5
11215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 fi
11219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11221 else
11222 # Is the header compilable?
11223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11225 cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h. */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 $ac_includes_default
11232 #include <$ac_header>
11233 _ACEOF
11234 rm -f conftest.$ac_objext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11236 (eval $ac_compile) 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try='test -z "$ac_c_werror_flag"
11244 || test ! -s conftest.err'
11245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11247 ac_status=$?
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; } &&
11250 { ac_try='test -s conftest.$ac_objext'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_header_compiler=yes
11257 else
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11260
11261 ac_header_compiler=no
11262 fi
11263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11265 echo "${ECHO_T}$ac_header_compiler" >&6
11266
11267 # Is the header present?
11268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11270 cat >conftest.$ac_ext <<_ACEOF
11271 /* confdefs.h. */
11272 _ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11276 #include <$ac_header>
11277 _ACEOF
11278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } >/dev/null; then
11286 if test -s conftest.err; then
11287 ac_cpp_err=$ac_c_preproc_warn_flag
11288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11289 else
11290 ac_cpp_err=
11291 fi
11292 else
11293 ac_cpp_err=yes
11294 fi
11295 if test -z "$ac_cpp_err"; then
11296 ac_header_preproc=yes
11297 else
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11300
11301 ac_header_preproc=no
11302 fi
11303 rm -f conftest.err conftest.$ac_ext
11304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11305 echo "${ECHO_T}$ac_header_preproc" >&6
11306
11307 # So? What about this header?
11308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11309 yes:no: )
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11314 ac_header_preproc=yes
11315 ;;
11316 no:yes:* )
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11329 (
11330 cat <<\_ASBOX
11331 ## ------------------------------------------ ##
11332 ## Report this to the AC_PACKAGE_NAME lists. ##
11333 ## ------------------------------------------ ##
11334 _ASBOX
11335 ) |
11336 sed "s/^/$as_me: WARNING: /" >&2
11337 ;;
11338 esac
11339 echo "$as_me:$LINENO: checking for $ac_header" >&5
11340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344 eval "$as_ac_Header=\$ac_header_preproc"
11345 fi
11346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11348
11349 fi
11350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11351 cat >>confdefs.h <<_ACEOF
11352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11353 _ACEOF
11354
11355 fi
11356
11357 done
11358
11359
11360
11361 for ac_header in sys/reg.h sys/debugreg.h
11362 do
11363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11365 echo "$as_me:$LINENO: checking for $ac_header" >&5
11366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 fi
11370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11372 else
11373 # Is the header compilable?
11374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h. */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 $ac_includes_default
11383 #include <$ac_header>
11384 _ACEOF
11385 rm -f conftest.$ac_objext
11386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11387 (eval $ac_compile) 2>conftest.er1
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -z "$ac_c_werror_flag"
11395 || test ! -s conftest.err'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; } &&
11401 { ac_try='test -s conftest.$ac_objext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_header_compiler=yes
11408 else
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11411
11412 ac_header_compiler=no
11413 fi
11414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11416 echo "${ECHO_T}$ac_header_compiler" >&6
11417
11418 # Is the header present?
11419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 #include <$ac_header>
11428 _ACEOF
11429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } >/dev/null; then
11437 if test -s conftest.err; then
11438 ac_cpp_err=$ac_c_preproc_warn_flag
11439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11440 else
11441 ac_cpp_err=
11442 fi
11443 else
11444 ac_cpp_err=yes
11445 fi
11446 if test -z "$ac_cpp_err"; then
11447 ac_header_preproc=yes
11448 else
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11451
11452 ac_header_preproc=no
11453 fi
11454 rm -f conftest.err conftest.$ac_ext
11455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11456 echo "${ECHO_T}$ac_header_preproc" >&6
11457
11458 # So? What about this header?
11459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11460 yes:no: )
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11465 ac_header_preproc=yes
11466 ;;
11467 no:yes:* )
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11480 (
11481 cat <<\_ASBOX
11482 ## ------------------------------------------ ##
11483 ## Report this to the AC_PACKAGE_NAME lists. ##
11484 ## ------------------------------------------ ##
11485 _ASBOX
11486 ) |
11487 sed "s/^/$as_me: WARNING: /" >&2
11488 ;;
11489 esac
11490 echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 else
11495 eval "$as_ac_Header=\$ac_header_preproc"
11496 fi
11497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11499
11500 fi
11501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11502 cat >>confdefs.h <<_ACEOF
11503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11504 _ACEOF
11505
11506 fi
11507
11508 done
11509
11510
11511 for ac_header in sys/select.h
11512 do
11513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11515 echo "$as_me:$LINENO: checking for $ac_header" >&5
11516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 fi
11520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11522 else
11523 # Is the header compilable?
11524 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 $ac_includes_default
11533 #include <$ac_header>
11534 _ACEOF
11535 rm -f conftest.$ac_objext
11536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11537 (eval $ac_compile) 2>conftest.er1
11538 ac_status=$?
11539 grep -v '^ *+' conftest.er1 >conftest.err
11540 rm -f conftest.er1
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } &&
11544 { ac_try='test -z "$ac_c_werror_flag"
11545 || test ! -s conftest.err'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_header_compiler=yes
11558 else
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11561
11562 ac_header_compiler=no
11563 fi
11564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11566 echo "${ECHO_T}$ac_header_compiler" >&6
11567
11568 # Is the header present?
11569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11571 cat >conftest.$ac_ext <<_ACEOF
11572 /* confdefs.h. */
11573 _ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 #include <$ac_header>
11578 _ACEOF
11579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11581 ac_status=$?
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } >/dev/null; then
11587 if test -s conftest.err; then
11588 ac_cpp_err=$ac_c_preproc_warn_flag
11589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11590 else
11591 ac_cpp_err=
11592 fi
11593 else
11594 ac_cpp_err=yes
11595 fi
11596 if test -z "$ac_cpp_err"; then
11597 ac_header_preproc=yes
11598 else
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11601
11602 ac_header_preproc=no
11603 fi
11604 rm -f conftest.err conftest.$ac_ext
11605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11606 echo "${ECHO_T}$ac_header_preproc" >&6
11607
11608 # So? What about this header?
11609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11610 yes:no: )
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11615 ac_header_preproc=yes
11616 ;;
11617 no:yes:* )
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11630 (
11631 cat <<\_ASBOX
11632 ## ------------------------------------------ ##
11633 ## Report this to the AC_PACKAGE_NAME lists. ##
11634 ## ------------------------------------------ ##
11635 _ASBOX
11636 ) |
11637 sed "s/^/$as_me: WARNING: /" >&2
11638 ;;
11639 esac
11640 echo "$as_me:$LINENO: checking for $ac_header" >&5
11641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645 eval "$as_ac_Header=\$ac_header_preproc"
11646 fi
11647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11649
11650 fi
11651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11652 cat >>confdefs.h <<_ACEOF
11653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11654 _ACEOF
11655
11656 fi
11657
11658 done
11659
11660
11661 for ac_header in sys/syscall.h
11662 do
11663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11665 echo "$as_me:$LINENO: checking for $ac_header" >&5
11666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 fi
11670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11672 else
11673 # Is the header compilable?
11674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11676 cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h. */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 $ac_includes_default
11683 #include <$ac_header>
11684 _ACEOF
11685 rm -f conftest.$ac_objext
11686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687 (eval $ac_compile) 2>conftest.er1
11688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag"
11695 || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_header_compiler=yes
11708 else
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 ac_header_compiler=no
11713 fi
11714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11716 echo "${ECHO_T}$ac_header_compiler" >&6
11717
11718 # Is the header present?
11719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11721 cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h. */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11727 #include <$ac_header>
11728 _ACEOF
11729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11731 ac_status=$?
11732 grep -v '^ *+' conftest.er1 >conftest.err
11733 rm -f conftest.er1
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } >/dev/null; then
11737 if test -s conftest.err; then
11738 ac_cpp_err=$ac_c_preproc_warn_flag
11739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11740 else
11741 ac_cpp_err=
11742 fi
11743 else
11744 ac_cpp_err=yes
11745 fi
11746 if test -z "$ac_cpp_err"; then
11747 ac_header_preproc=yes
11748 else
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11751
11752 ac_header_preproc=no
11753 fi
11754 rm -f conftest.err conftest.$ac_ext
11755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11756 echo "${ECHO_T}$ac_header_preproc" >&6
11757
11758 # So? What about this header?
11759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11760 yes:no: )
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11765 ac_header_preproc=yes
11766 ;;
11767 no:yes:* )
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11780 (
11781 cat <<\_ASBOX
11782 ## ------------------------------------------ ##
11783 ## Report this to the AC_PACKAGE_NAME lists. ##
11784 ## ------------------------------------------ ##
11785 _ASBOX
11786 ) |
11787 sed "s/^/$as_me: WARNING: /" >&2
11788 ;;
11789 esac
11790 echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795 eval "$as_ac_Header=\$ac_header_preproc"
11796 fi
11797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11799
11800 fi
11801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11802 cat >>confdefs.h <<_ACEOF
11803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11804 _ACEOF
11805
11806 fi
11807
11808 done
11809
11810
11811 for ac_header in sys/types.h
11812 do
11813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11815 echo "$as_me:$LINENO: checking for $ac_header" >&5
11816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 fi
11820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11822 else
11823 # Is the header compilable?
11824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11826 cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h. */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 $ac_includes_default
11833 #include <$ac_header>
11834 _ACEOF
11835 rm -f conftest.$ac_objext
11836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11837 (eval $ac_compile) 2>conftest.er1
11838 ac_status=$?
11839 grep -v '^ *+' conftest.er1 >conftest.err
11840 rm -f conftest.er1
11841 cat conftest.err >&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } &&
11844 { ac_try='test -z "$ac_c_werror_flag"
11845 || test ! -s conftest.err'
11846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847 (eval $ac_try) 2>&5
11848 ac_status=$?
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; } &&
11851 { ac_try='test -s conftest.$ac_objext'
11852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853 (eval $ac_try) 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
11857 ac_header_compiler=yes
11858 else
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11861
11862 ac_header_compiler=no
11863 fi
11864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11866 echo "${ECHO_T}$ac_header_compiler" >&6
11867
11868 # Is the header present?
11869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11871 cat >conftest.$ac_ext <<_ACEOF
11872 /* confdefs.h. */
11873 _ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11877 #include <$ac_header>
11878 _ACEOF
11879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } >/dev/null; then
11887 if test -s conftest.err; then
11888 ac_cpp_err=$ac_c_preproc_warn_flag
11889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11890 else
11891 ac_cpp_err=
11892 fi
11893 else
11894 ac_cpp_err=yes
11895 fi
11896 if test -z "$ac_cpp_err"; then
11897 ac_header_preproc=yes
11898 else
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_header_preproc=no
11903 fi
11904 rm -f conftest.err conftest.$ac_ext
11905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11906 echo "${ECHO_T}$ac_header_preproc" >&6
11907
11908 # So? What about this header?
11909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11910 yes:no: )
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11915 ac_header_preproc=yes
11916 ;;
11917 no:yes:* )
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11930 (
11931 cat <<\_ASBOX
11932 ## ------------------------------------------ ##
11933 ## Report this to the AC_PACKAGE_NAME lists. ##
11934 ## ------------------------------------------ ##
11935 _ASBOX
11936 ) |
11937 sed "s/^/$as_me: WARNING: /" >&2
11938 ;;
11939 esac
11940 echo "$as_me:$LINENO: checking for $ac_header" >&5
11941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945 eval "$as_ac_Header=\$ac_header_preproc"
11946 fi
11947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11949
11950 fi
11951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11952 cat >>confdefs.h <<_ACEOF
11953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11954 _ACEOF
11955
11956 fi
11957
11958 done
11959
11960
11961 for ac_header in sys/user.h
11962 do
11963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11964 echo "$as_me:$LINENO: checking for $ac_header" >&5
11965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 else
11969 cat >conftest.$ac_ext <<_ACEOF
11970 /* confdefs.h. */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 #if HAVE_SYS_PARAM_H
11976 # include <sys/param.h>
11977 #endif
11978
11979
11980 #include <$ac_header>
11981 _ACEOF
11982 rm -f conftest.$ac_objext
11983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11984 (eval $ac_compile) 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try='test -z "$ac_c_werror_flag"
11992 || test ! -s conftest.err'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; } &&
11998 { ac_try='test -s conftest.$ac_objext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 eval "$as_ac_Header=yes"
12005 else
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12008
12009 eval "$as_ac_Header=no"
12010 fi
12011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12012 fi
12013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12016 cat >>confdefs.h <<_ACEOF
12017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12018 _ACEOF
12019
12020 fi
12021
12022 done
12023
12024
12025
12026 for ac_header in sys/wait.h wait.h
12027 do
12028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12030 echo "$as_me:$LINENO: checking for $ac_header" >&5
12031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 fi
12035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12037 else
12038 # Is the header compilable?
12039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12041 cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h. */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 $ac_includes_default
12048 #include <$ac_header>
12049 _ACEOF
12050 rm -f conftest.$ac_objext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12052 (eval $ac_compile) 2>conftest.er1
12053 ac_status=$?
12054 grep -v '^ *+' conftest.er1 >conftest.err
12055 rm -f conftest.er1
12056 cat conftest.err >&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } &&
12059 { ac_try='test -z "$ac_c_werror_flag"
12060 || test ! -s conftest.err'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest.$ac_objext'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 ac_header_compiler=yes
12073 else
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12076
12077 ac_header_compiler=no
12078 fi
12079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12081 echo "${ECHO_T}$ac_header_compiler" >&6
12082
12083 # Is the header present?
12084 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h. */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 #include <$ac_header>
12093 _ACEOF
12094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } >/dev/null; then
12102 if test -s conftest.err; then
12103 ac_cpp_err=$ac_c_preproc_warn_flag
12104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12105 else
12106 ac_cpp_err=
12107 fi
12108 else
12109 ac_cpp_err=yes
12110 fi
12111 if test -z "$ac_cpp_err"; then
12112 ac_header_preproc=yes
12113 else
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12116
12117 ac_header_preproc=no
12118 fi
12119 rm -f conftest.err conftest.$ac_ext
12120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12121 echo "${ECHO_T}$ac_header_preproc" >&6
12122
12123 # So? What about this header?
12124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12125 yes:no: )
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12130 ac_header_preproc=yes
12131 ;;
12132 no:yes:* )
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12145 (
12146 cat <<\_ASBOX
12147 ## ------------------------------------------ ##
12148 ## Report this to the AC_PACKAGE_NAME lists. ##
12149 ## ------------------------------------------ ##
12150 _ASBOX
12151 ) |
12152 sed "s/^/$as_me: WARNING: /" >&2
12153 ;;
12154 esac
12155 echo "$as_me:$LINENO: checking for $ac_header" >&5
12156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 else
12160 eval "$as_ac_Header=\$ac_header_preproc"
12161 fi
12162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12164
12165 fi
12166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12167 cat >>confdefs.h <<_ACEOF
12168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12169 _ACEOF
12170
12171 fi
12172
12173 done
12174
12175
12176
12177
12178 for ac_header in termios.h termio.h sgtty.h
12179 do
12180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12182 echo "$as_me:$LINENO: checking for $ac_header" >&5
12183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186 fi
12187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12189 else
12190 # Is the header compilable?
12191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12193 cat >conftest.$ac_ext <<_ACEOF
12194 /* confdefs.h. */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 $ac_includes_default
12200 #include <$ac_header>
12201 _ACEOF
12202 rm -f conftest.$ac_objext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12204 (eval $ac_compile) 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -z "$ac_c_werror_flag"
12212 || test ! -s conftest.err'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest.$ac_objext'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_header_compiler=yes
12225 else
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 ac_header_compiler=no
12230 fi
12231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12233 echo "${ECHO_T}$ac_header_compiler" >&6
12234
12235 # Is the header present?
12236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12238 cat >conftest.$ac_ext <<_ACEOF
12239 /* confdefs.h. */
12240 _ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12244 #include <$ac_header>
12245 _ACEOF
12246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12248 ac_status=$?
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } >/dev/null; then
12254 if test -s conftest.err; then
12255 ac_cpp_err=$ac_c_preproc_warn_flag
12256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12257 else
12258 ac_cpp_err=
12259 fi
12260 else
12261 ac_cpp_err=yes
12262 fi
12263 if test -z "$ac_cpp_err"; then
12264 ac_header_preproc=yes
12265 else
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12268
12269 ac_header_preproc=no
12270 fi
12271 rm -f conftest.err conftest.$ac_ext
12272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12273 echo "${ECHO_T}$ac_header_preproc" >&6
12274
12275 # So? What about this header?
12276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12277 yes:no: )
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12282 ac_header_preproc=yes
12283 ;;
12284 no:yes:* )
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12297 (
12298 cat <<\_ASBOX
12299 ## ------------------------------------------ ##
12300 ## Report this to the AC_PACKAGE_NAME lists. ##
12301 ## ------------------------------------------ ##
12302 _ASBOX
12303 ) |
12304 sed "s/^/$as_me: WARNING: /" >&2
12305 ;;
12306 esac
12307 echo "$as_me:$LINENO: checking for $ac_header" >&5
12308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312 eval "$as_ac_Header=\$ac_header_preproc"
12313 fi
12314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12316
12317 fi
12318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12319 cat >>confdefs.h <<_ACEOF
12320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12321 _ACEOF
12322
12323 fi
12324
12325 done
12326
12327
12328 for ac_header in unistd.h
12329 do
12330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12332 echo "$as_me:$LINENO: checking for $ac_header" >&5
12333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 fi
12337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12339 else
12340 # Is the header compilable?
12341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h. */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 $ac_includes_default
12350 #include <$ac_header>
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_header_compiler=yes
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 ac_header_compiler=no
12380 fi
12381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383 echo "${ECHO_T}$ac_header_compiler" >&6
12384
12385 # Is the header present?
12386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h. */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 #include <$ac_header>
12395 _ACEOF
12396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } >/dev/null; then
12404 if test -s conftest.err; then
12405 ac_cpp_err=$ac_c_preproc_warn_flag
12406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12407 else
12408 ac_cpp_err=
12409 fi
12410 else
12411 ac_cpp_err=yes
12412 fi
12413 if test -z "$ac_cpp_err"; then
12414 ac_header_preproc=yes
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_header_preproc=no
12420 fi
12421 rm -f conftest.err conftest.$ac_ext
12422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12423 echo "${ECHO_T}$ac_header_preproc" >&6
12424
12425 # So? What about this header?
12426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12427 yes:no: )
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12432 ac_header_preproc=yes
12433 ;;
12434 no:yes:* )
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12447 (
12448 cat <<\_ASBOX
12449 ## ------------------------------------------ ##
12450 ## Report this to the AC_PACKAGE_NAME lists. ##
12451 ## ------------------------------------------ ##
12452 _ASBOX
12453 ) |
12454 sed "s/^/$as_me: WARNING: /" >&2
12455 ;;
12456 esac
12457 echo "$as_me:$LINENO: checking for $ac_header" >&5
12458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462 eval "$as_ac_Header=\$ac_header_preproc"
12463 fi
12464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12466
12467 fi
12468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12469 cat >>confdefs.h <<_ACEOF
12470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12471 _ACEOF
12472
12473 fi
12474
12475 done
12476
12477
12478 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12479 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12480 # think that we don't have <curses.h> if we're using GCC.
12481 case $host_os in
12482 solaris2.[789])
12483 if test "$GCC" = yes; then
12484
12485 cat >>confdefs.h <<\_ACEOF
12486 #define _MSE_INT_H 1
12487 _ACEOF
12488
12489 fi ;;
12490 esac
12491
12492
12493
12494
12495 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12496 do
12497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo "$as_me:$LINENO: checking for $ac_header" >&5
12500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 fi
12504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12506 else
12507 # Is the header compilable?
12508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12510 cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h. */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 $ac_includes_default
12517 #include <$ac_header>
12518 _ACEOF
12519 rm -f conftest.$ac_objext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521 (eval $ac_compile) 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag"
12529 || test ! -s conftest.err'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest.$ac_objext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 ac_header_compiler=yes
12542 else
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12545
12546 ac_header_compiler=no
12547 fi
12548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12550 echo "${ECHO_T}$ac_header_compiler" >&6
12551
12552 # Is the header present?
12553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12555 cat >conftest.$ac_ext <<_ACEOF
12556 /* confdefs.h. */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12561 #include <$ac_header>
12562 _ACEOF
12563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12565 ac_status=$?
12566 grep -v '^ *+' conftest.er1 >conftest.err
12567 rm -f conftest.er1
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } >/dev/null; then
12571 if test -s conftest.err; then
12572 ac_cpp_err=$ac_c_preproc_warn_flag
12573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12574 else
12575 ac_cpp_err=
12576 fi
12577 else
12578 ac_cpp_err=yes
12579 fi
12580 if test -z "$ac_cpp_err"; then
12581 ac_header_preproc=yes
12582 else
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12585
12586 ac_header_preproc=no
12587 fi
12588 rm -f conftest.err conftest.$ac_ext
12589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12590 echo "${ECHO_T}$ac_header_preproc" >&6
12591
12592 # So? What about this header?
12593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12594 yes:no: )
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12599 ac_header_preproc=yes
12600 ;;
12601 no:yes:* )
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12614 (
12615 cat <<\_ASBOX
12616 ## ------------------------------------------ ##
12617 ## Report this to the AC_PACKAGE_NAME lists. ##
12618 ## ------------------------------------------ ##
12619 _ASBOX
12620 ) |
12621 sed "s/^/$as_me: WARNING: /" >&2
12622 ;;
12623 esac
12624 echo "$as_me:$LINENO: checking for $ac_header" >&5
12625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 else
12629 eval "$as_ac_Header=\$ac_header_preproc"
12630 fi
12631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12633
12634 fi
12635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12636 cat >>confdefs.h <<_ACEOF
12637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12638 _ACEOF
12639
12640 fi
12641
12642 done
12643
12644
12645 for ac_header in ncurses/term.h
12646 do
12647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12649 echo "$as_me:$LINENO: checking for $ac_header" >&5
12650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 fi
12654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12656 else
12657 # Is the header compilable?
12658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12660 cat >conftest.$ac_ext <<_ACEOF
12661 /* confdefs.h. */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 $ac_includes_default
12667 #include <$ac_header>
12668 _ACEOF
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag"
12679 || test ! -s conftest.err'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest.$ac_objext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 ac_header_compiler=yes
12692 else
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696 ac_header_compiler=no
12697 fi
12698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12700 echo "${ECHO_T}$ac_header_compiler" >&6
12701
12702 # Is the header present?
12703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h. */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include <$ac_header>
12712 _ACEOF
12713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12715 ac_status=$?
12716 grep -v '^ *+' conftest.er1 >conftest.err
12717 rm -f conftest.er1
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } >/dev/null; then
12721 if test -s conftest.err; then
12722 ac_cpp_err=$ac_c_preproc_warn_flag
12723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12724 else
12725 ac_cpp_err=
12726 fi
12727 else
12728 ac_cpp_err=yes
12729 fi
12730 if test -z "$ac_cpp_err"; then
12731 ac_header_preproc=yes
12732 else
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12735
12736 ac_header_preproc=no
12737 fi
12738 rm -f conftest.err conftest.$ac_ext
12739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12740 echo "${ECHO_T}$ac_header_preproc" >&6
12741
12742 # So? What about this header?
12743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12744 yes:no: )
12745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12749 ac_header_preproc=yes
12750 ;;
12751 no:yes:* )
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12764 (
12765 cat <<\_ASBOX
12766 ## ------------------------------------------ ##
12767 ## Report this to the AC_PACKAGE_NAME lists. ##
12768 ## ------------------------------------------ ##
12769 _ASBOX
12770 ) |
12771 sed "s/^/$as_me: WARNING: /" >&2
12772 ;;
12773 esac
12774 echo "$as_me:$LINENO: checking for $ac_header" >&5
12775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779 eval "$as_ac_Header=\$ac_header_preproc"
12780 fi
12781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12783
12784 fi
12785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12786 cat >>confdefs.h <<_ACEOF
12787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12788 _ACEOF
12789
12790 fi
12791
12792 done
12793
12794
12795 for ac_header in term.h
12796 do
12797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12798 echo "$as_me:$LINENO: checking for $ac_header" >&5
12799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 else
12803 cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h. */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12809 #if HAVE_CURSES_H
12810 # include <curses.h>
12811 #endif
12812
12813
12814 #include <$ac_header>
12815 _ACEOF
12816 rm -f conftest.$ac_objext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818 (eval $ac_compile) 2>conftest.er1
12819 ac_status=$?
12820 grep -v '^ *+' conftest.er1 >conftest.err
12821 rm -f conftest.er1
12822 cat conftest.err >&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } &&
12825 { ac_try='test -z "$ac_c_werror_flag"
12826 || test ! -s conftest.err'
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; } &&
12832 { ac_try='test -s conftest.$ac_objext'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 eval "$as_ac_Header=yes"
12839 else
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12842
12843 eval "$as_ac_Header=no"
12844 fi
12845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12846 fi
12847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12850 cat >>confdefs.h <<_ACEOF
12851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12852 _ACEOF
12853
12854 fi
12855
12856 done
12857
12858
12859 # FIXME: kettenis/20030102: In most cases we include these
12860 # unconditionally, so what's the point in checking these?
12861
12862
12863 for ac_header in ctype.h time.h
12864 do
12865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12867 echo "$as_me:$LINENO: checking for $ac_header" >&5
12868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 fi
12872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12874 else
12875 # Is the header compilable?
12876 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h. */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 $ac_includes_default
12885 #include <$ac_header>
12886 _ACEOF
12887 rm -f conftest.$ac_objext
12888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889 (eval $ac_compile) 2>conftest.er1
12890 ac_status=$?
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -z "$ac_c_werror_flag"
12897 || test ! -s conftest.err'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest.$ac_objext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_header_compiler=yes
12910 else
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12913
12914 ac_header_compiler=no
12915 fi
12916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12918 echo "${ECHO_T}$ac_header_compiler" >&6
12919
12920 # Is the header present?
12921 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12923 cat >conftest.$ac_ext <<_ACEOF
12924 /* confdefs.h. */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929 #include <$ac_header>
12930 _ACEOF
12931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } >/dev/null; then
12939 if test -s conftest.err; then
12940 ac_cpp_err=$ac_c_preproc_warn_flag
12941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12942 else
12943 ac_cpp_err=
12944 fi
12945 else
12946 ac_cpp_err=yes
12947 fi
12948 if test -z "$ac_cpp_err"; then
12949 ac_header_preproc=yes
12950 else
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12953
12954 ac_header_preproc=no
12955 fi
12956 rm -f conftest.err conftest.$ac_ext
12957 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12958 echo "${ECHO_T}$ac_header_preproc" >&6
12959
12960 # So? What about this header?
12961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12962 yes:no: )
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12967 ac_header_preproc=yes
12968 ;;
12969 no:yes:* )
12970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12977 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12982 (
12983 cat <<\_ASBOX
12984 ## ------------------------------------------ ##
12985 ## Report this to the AC_PACKAGE_NAME lists. ##
12986 ## ------------------------------------------ ##
12987 _ASBOX
12988 ) |
12989 sed "s/^/$as_me: WARNING: /" >&2
12990 ;;
12991 esac
12992 echo "$as_me:$LINENO: checking for $ac_header" >&5
12993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 else
12997 eval "$as_ac_Header=\$ac_header_preproc"
12998 fi
12999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13001
13002 fi
13003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13004 cat >>confdefs.h <<_ACEOF
13005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13006 _ACEOF
13007
13008 fi
13009
13010 done
13011
13012
13013 # ------------------------- #
13014 # Checks for declarations. #
13015 # ------------------------- #
13016
13017 echo "$as_me:$LINENO: checking whether free is declared" >&5
13018 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13019 if test "${ac_cv_have_decl_free+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022 cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h. */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 $ac_includes_default
13029 int
13030 main ()
13031 {
13032 #ifndef free
13033 char *p = (char *) free;
13034 #endif
13035
13036 ;
13037 return 0;
13038 }
13039 _ACEOF
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>conftest.er1
13043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag"
13050 || test ! -s conftest.err'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; } &&
13056 { ac_try='test -s conftest.$ac_objext'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 ac_cv_have_decl_free=yes
13063 else
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13066
13067 ac_cv_have_decl_free=no
13068 fi
13069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13070 fi
13071 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13072 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13073 if test $ac_cv_have_decl_free = yes; then
13074
13075 cat >>confdefs.h <<_ACEOF
13076 #define HAVE_DECL_FREE 1
13077 _ACEOF
13078
13079
13080 else
13081 cat >>confdefs.h <<_ACEOF
13082 #define HAVE_DECL_FREE 0
13083 _ACEOF
13084
13085
13086 fi
13087 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13088 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13089 if test "${ac_cv_have_decl_malloc+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 else
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h. */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13098 $ac_includes_default
13099 int
13100 main ()
13101 {
13102 #ifndef malloc
13103 char *p = (char *) malloc;
13104 #endif
13105
13106 ;
13107 return 0;
13108 }
13109 _ACEOF
13110 rm -f conftest.$ac_objext
13111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13112 (eval $ac_compile) 2>conftest.er1
13113 ac_status=$?
13114 grep -v '^ *+' conftest.er1 >conftest.err
13115 rm -f conftest.er1
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -z "$ac_c_werror_flag"
13120 || test ! -s conftest.err'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; } &&
13126 { ac_try='test -s conftest.$ac_objext'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13129 ac_status=$?
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13132 ac_cv_have_decl_malloc=yes
13133 else
13134 echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13136
13137 ac_cv_have_decl_malloc=no
13138 fi
13139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13140 fi
13141 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13142 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13143 if test $ac_cv_have_decl_malloc = yes; then
13144
13145 cat >>confdefs.h <<_ACEOF
13146 #define HAVE_DECL_MALLOC 1
13147 _ACEOF
13148
13149
13150 else
13151 cat >>confdefs.h <<_ACEOF
13152 #define HAVE_DECL_MALLOC 0
13153 _ACEOF
13154
13155
13156 fi
13157 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13158 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13159 if test "${ac_cv_have_decl_realloc+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162 cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h. */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 $ac_includes_default
13169 int
13170 main ()
13171 {
13172 #ifndef realloc
13173 char *p = (char *) realloc;
13174 #endif
13175
13176 ;
13177 return 0;
13178 }
13179 _ACEOF
13180 rm -f conftest.$ac_objext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13182 (eval $ac_compile) 2>conftest.er1
13183 ac_status=$?
13184 grep -v '^ *+' conftest.er1 >conftest.err
13185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try='test -z "$ac_c_werror_flag"
13190 || test ! -s conftest.err'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; } &&
13196 { ac_try='test -s conftest.$ac_objext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 ac_cv_have_decl_realloc=yes
13203 else
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13206
13207 ac_cv_have_decl_realloc=no
13208 fi
13209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13210 fi
13211 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13212 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13213 if test $ac_cv_have_decl_realloc = yes; then
13214
13215 cat >>confdefs.h <<_ACEOF
13216 #define HAVE_DECL_REALLOC 1
13217 _ACEOF
13218
13219
13220 else
13221 cat >>confdefs.h <<_ACEOF
13222 #define HAVE_DECL_REALLOC 0
13223 _ACEOF
13224
13225
13226 fi
13227
13228
13229 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13230 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13231 if test "${ac_cv_have_decl_strerror+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 else
13234 cat >conftest.$ac_ext <<_ACEOF
13235 /* confdefs.h. */
13236 _ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13240 $ac_includes_default
13241 int
13242 main ()
13243 {
13244 #ifndef strerror
13245 char *p = (char *) strerror;
13246 #endif
13247
13248 ;
13249 return 0;
13250 }
13251 _ACEOF
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -z "$ac_c_werror_flag"
13262 || test ! -s conftest.err'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest.$ac_objext'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_cv_have_decl_strerror=yes
13275 else
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13278
13279 ac_cv_have_decl_strerror=no
13280 fi
13281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13282 fi
13283 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13284 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13285 if test $ac_cv_have_decl_strerror = yes; then
13286
13287 cat >>confdefs.h <<_ACEOF
13288 #define HAVE_DECL_STRERROR 1
13289 _ACEOF
13290
13291
13292 else
13293 cat >>confdefs.h <<_ACEOF
13294 #define HAVE_DECL_STRERROR 0
13295 _ACEOF
13296
13297
13298 fi
13299 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13300 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13301 if test "${ac_cv_have_decl_strstr+set}" = set; then
13302 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 else
13304 cat >conftest.$ac_ext <<_ACEOF
13305 /* confdefs.h. */
13306 _ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13310 $ac_includes_default
13311 int
13312 main ()
13313 {
13314 #ifndef strstr
13315 char *p = (char *) strstr;
13316 #endif
13317
13318 ;
13319 return 0;
13320 }
13321 _ACEOF
13322 rm -f conftest.$ac_objext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13324 (eval $ac_compile) 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -z "$ac_c_werror_flag"
13332 || test ! -s conftest.err'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest.$ac_objext'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 ac_cv_have_decl_strstr=yes
13345 else
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13348
13349 ac_cv_have_decl_strstr=no
13350 fi
13351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13352 fi
13353 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13354 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13355 if test $ac_cv_have_decl_strstr = yes; then
13356
13357 cat >>confdefs.h <<_ACEOF
13358 #define HAVE_DECL_STRSTR 1
13359 _ACEOF
13360
13361
13362 else
13363 cat >>confdefs.h <<_ACEOF
13364 #define HAVE_DECL_STRSTR 0
13365 _ACEOF
13366
13367
13368 fi
13369
13370
13371 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13372 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13373 if test "${ac_cv_have_decl_getopt+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 else
13376 cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h. */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13382 $ac_includes_default
13383 int
13384 main ()
13385 {
13386 #ifndef getopt
13387 char *p = (char *) getopt;
13388 #endif
13389
13390 ;
13391 return 0;
13392 }
13393 _ACEOF
13394 rm -f conftest.$ac_objext
13395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13396 (eval $ac_compile) 2>conftest.er1
13397 ac_status=$?
13398 grep -v '^ *+' conftest.er1 >conftest.err
13399 rm -f conftest.er1
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } &&
13403 { ac_try='test -z "$ac_c_werror_flag"
13404 || test ! -s conftest.err'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; } &&
13410 { ac_try='test -s conftest.$ac_objext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 ac_cv_have_decl_getopt=yes
13417 else
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13420
13421 ac_cv_have_decl_getopt=no
13422 fi
13423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13424 fi
13425 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13426 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13427 if test $ac_cv_have_decl_getopt = yes; then
13428
13429 cat >>confdefs.h <<_ACEOF
13430 #define HAVE_DECL_GETOPT 1
13431 _ACEOF
13432
13433
13434 else
13435 cat >>confdefs.h <<_ACEOF
13436 #define HAVE_DECL_GETOPT 0
13437 _ACEOF
13438
13439
13440 fi
13441
13442
13443
13444 # ----------------------- #
13445 # Checks for structures. #
13446 # ----------------------- #
13447
13448 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13449 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13450 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 else
13453 cat >conftest.$ac_ext <<_ACEOF
13454 /* confdefs.h. */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13459 $ac_includes_default
13460 int
13461 main ()
13462 {
13463 static struct stat ac_aggr;
13464 if (ac_aggr.st_blocks)
13465 return 0;
13466 ;
13467 return 0;
13468 }
13469 _ACEOF
13470 rm -f conftest.$ac_objext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13472 (eval $ac_compile) 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } &&
13479 { ac_try='test -z "$ac_c_werror_flag"
13480 || test ! -s conftest.err'
13481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482 (eval $ac_try) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; } &&
13486 { ac_try='test -s conftest.$ac_objext'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492 ac_cv_member_struct_stat_st_blocks=yes
13493 else
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 cat >conftest.$ac_ext <<_ACEOF
13498 /* confdefs.h. */
13499 _ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 $ac_includes_default
13504 int
13505 main ()
13506 {
13507 static struct stat ac_aggr;
13508 if (sizeof ac_aggr.st_blocks)
13509 return 0;
13510 ;
13511 return 0;
13512 }
13513 _ACEOF
13514 rm -f conftest.$ac_objext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13516 (eval $ac_compile) 2>conftest.er1
13517 ac_status=$?
13518 grep -v '^ *+' conftest.er1 >conftest.err
13519 rm -f conftest.er1
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try='test -z "$ac_c_werror_flag"
13524 || test ! -s conftest.err'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; } &&
13530 { ac_try='test -s conftest.$ac_objext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_cv_member_struct_stat_st_blocks=yes
13537 else
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541 ac_cv_member_struct_stat_st_blocks=no
13542 fi
13543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13544 fi
13545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13546 fi
13547 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13548 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13549 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13550
13551 cat >>confdefs.h <<_ACEOF
13552 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13553 _ACEOF
13554
13555
13556 fi
13557
13558
13559 # ------------------ #
13560 # Checks for types. #
13561 # ------------------ #
13562
13563 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13564 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13565 if test "${ac_cv_type_signal+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 else
13568 cat >conftest.$ac_ext <<_ACEOF
13569 /* confdefs.h. */
13570 _ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h. */
13574 #include <sys/types.h>
13575 #include <signal.h>
13576 #ifdef signal
13577 # undef signal
13578 #endif
13579 #ifdef __cplusplus
13580 extern "C" void (*signal (int, void (*)(int)))(int);
13581 #else
13582 void (*signal ()) ();
13583 #endif
13584
13585 int
13586 main ()
13587 {
13588 int i;
13589 ;
13590 return 0;
13591 }
13592 _ACEOF
13593 rm -f conftest.$ac_objext
13594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13595 (eval $ac_compile) 2>conftest.er1
13596 ac_status=$?
13597 grep -v '^ *+' conftest.er1 >conftest.err
13598 rm -f conftest.er1
13599 cat conftest.err >&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } &&
13602 { ac_try='test -z "$ac_c_werror_flag"
13603 || test ! -s conftest.err'
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; } &&
13609 { ac_try='test -s conftest.$ac_objext'
13610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611 (eval $ac_try) 2>&5
13612 ac_status=$?
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; }; then
13615 ac_cv_type_signal=void
13616 else
13617 echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13619
13620 ac_cv_type_signal=int
13621 fi
13622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13623 fi
13624 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13625 echo "${ECHO_T}$ac_cv_type_signal" >&6
13626
13627 cat >>confdefs.h <<_ACEOF
13628 #define RETSIGTYPE $ac_cv_type_signal
13629 _ACEOF
13630
13631
13632
13633 # ------------------------------------- #
13634 # Checks for compiler characteristics. #
13635 # ------------------------------------- #
13636
13637 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13638 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13639 if test "${ac_cv_c_const+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642 cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h. */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648
13649 int
13650 main ()
13651 {
13652 /* FIXME: Include the comments suggested by Paul. */
13653 #ifndef __cplusplus
13654 /* Ultrix mips cc rejects this. */
13655 typedef int charset[2];
13656 const charset x;
13657 /* SunOS 4.1.1 cc rejects this. */
13658 char const *const *ccp;
13659 char **p;
13660 /* NEC SVR4.0.2 mips cc rejects this. */
13661 struct point {int x, y;};
13662 static struct point const zero = {0,0};
13663 /* AIX XL C 1.02.0.0 rejects this.
13664 It does not let you subtract one const X* pointer from another in
13665 an arm of an if-expression whose if-part is not a constant
13666 expression */
13667 const char *g = "string";
13668 ccp = &g + (g ? g-g : 0);
13669 /* HPUX 7.0 cc rejects these. */
13670 ++ccp;
13671 p = (char**) ccp;
13672 ccp = (char const *const *) p;
13673 { /* SCO 3.2v4 cc rejects this. */
13674 char *t;
13675 char const *s = 0 ? (char *) 0 : (char const *) 0;
13676
13677 *t++ = 0;
13678 }
13679 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13680 int x[] = {25, 17};
13681 const int *foo = &x[0];
13682 ++foo;
13683 }
13684 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13685 typedef const int *iptr;
13686 iptr p = 0;
13687 ++p;
13688 }
13689 { /* AIX XL C 1.02.0.0 rejects this saying
13690 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13691 struct s { int j; const int *ap[3]; };
13692 struct s *b; b->j = 5;
13693 }
13694 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13695 const int foo = 10;
13696 }
13697 #endif
13698
13699 ;
13700 return 0;
13701 }
13702 _ACEOF
13703 rm -f conftest.$ac_objext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13705 (eval $ac_compile) 2>conftest.er1
13706 ac_status=$?
13707 grep -v '^ *+' conftest.er1 >conftest.err
13708 rm -f conftest.er1
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
13712 { ac_try='test -z "$ac_c_werror_flag"
13713 || test ! -s conftest.err'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest.$ac_objext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_cv_c_const=yes
13726 else
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13729
13730 ac_cv_c_const=no
13731 fi
13732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13733 fi
13734 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13735 echo "${ECHO_T}$ac_cv_c_const" >&6
13736 if test $ac_cv_c_const = no; then
13737
13738 cat >>confdefs.h <<\_ACEOF
13739 #define const
13740 _ACEOF
13741
13742 fi
13743
13744 echo "$as_me:$LINENO: checking for inline" >&5
13745 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13746 if test "${ac_cv_c_inline+set}" = set; then
13747 echo $ECHO_N "(cached) $ECHO_C" >&6
13748 else
13749 ac_cv_c_inline=no
13750 for ac_kw in inline __inline__ __inline; do
13751 cat >conftest.$ac_ext <<_ACEOF
13752 /* confdefs.h. */
13753 _ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13757 #ifndef __cplusplus
13758 typedef int foo_t;
13759 static $ac_kw foo_t static_foo () {return 0; }
13760 $ac_kw foo_t foo () {return 0; }
13761 #endif
13762
13763 _ACEOF
13764 rm -f conftest.$ac_objext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766 (eval $ac_compile) 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_c_werror_flag"
13774 || test ! -s conftest.err'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; } &&
13780 { ac_try='test -s conftest.$ac_objext'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 ac_cv_c_inline=$ac_kw; break
13787 else
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13790
13791 fi
13792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13793 done
13794
13795 fi
13796 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13797 echo "${ECHO_T}$ac_cv_c_inline" >&6
13798
13799
13800 case $ac_cv_c_inline in
13801 inline | yes) ;;
13802 *)
13803 case $ac_cv_c_inline in
13804 no) ac_val=;;
13805 *) ac_val=$ac_cv_c_inline;;
13806 esac
13807 cat >>confdefs.h <<_ACEOF
13808 #ifndef __cplusplus
13809 #define inline $ac_val
13810 #endif
13811 _ACEOF
13812 ;;
13813 esac
13814
13815
13816 # ------------------------------ #
13817 # Checks for library functions. #
13818 # ------------------------------ #
13819
13820 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13821 # for constant arguments. Useless!
13822 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13823 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13824 if test "${ac_cv_working_alloca_h+set}" = set; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 else
13827 cat >conftest.$ac_ext <<_ACEOF
13828 /* confdefs.h. */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 #include <alloca.h>
13834 int
13835 main ()
13836 {
13837 char *p = (char *) alloca (2 * sizeof (int));
13838 ;
13839 return 0;
13840 }
13841 _ACEOF
13842 rm -f conftest.$ac_objext conftest$ac_exeext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844 (eval $ac_link) 2>conftest.er1
13845 ac_status=$?
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try='test -z "$ac_c_werror_flag"
13852 || test ! -s conftest.err'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; } &&
13858 { ac_try='test -s conftest$ac_exeext'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864 ac_cv_working_alloca_h=yes
13865 else
13866 echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869 ac_cv_working_alloca_h=no
13870 fi
13871 rm -f conftest.err conftest.$ac_objext \
13872 conftest$ac_exeext conftest.$ac_ext
13873 fi
13874 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13875 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13876 if test $ac_cv_working_alloca_h = yes; then
13877
13878 cat >>confdefs.h <<\_ACEOF
13879 #define HAVE_ALLOCA_H 1
13880 _ACEOF
13881
13882 fi
13883
13884 echo "$as_me:$LINENO: checking for alloca" >&5
13885 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13886 if test "${ac_cv_func_alloca_works+set}" = set; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 else
13889 cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h. */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 #ifdef __GNUC__
13896 # define alloca __builtin_alloca
13897 #else
13898 # ifdef _MSC_VER
13899 # include <malloc.h>
13900 # define alloca _alloca
13901 # else
13902 # if HAVE_ALLOCA_H
13903 # include <alloca.h>
13904 # else
13905 # ifdef _AIX
13906 #pragma alloca
13907 # else
13908 # ifndef alloca /* predefined by HP cc +Olibcalls */
13909 char *alloca ();
13910 # endif
13911 # endif
13912 # endif
13913 # endif
13914 #endif
13915
13916 int
13917 main ()
13918 {
13919 char *p = (char *) alloca (1);
13920 ;
13921 return 0;
13922 }
13923 _ACEOF
13924 rm -f conftest.$ac_objext conftest$ac_exeext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13926 (eval $ac_link) 2>conftest.er1
13927 ac_status=$?
13928 grep -v '^ *+' conftest.er1 >conftest.err
13929 rm -f conftest.er1
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -z "$ac_c_werror_flag"
13934 || test ! -s conftest.err'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest$ac_exeext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_cv_func_alloca_works=yes
13947 else
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13950
13951 ac_cv_func_alloca_works=no
13952 fi
13953 rm -f conftest.err conftest.$ac_objext \
13954 conftest$ac_exeext conftest.$ac_ext
13955 fi
13956 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13957 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13958
13959 if test $ac_cv_func_alloca_works = yes; then
13960
13961 cat >>confdefs.h <<\_ACEOF
13962 #define HAVE_ALLOCA 1
13963 _ACEOF
13964
13965 else
13966 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13967 # that cause trouble. Some versions do not even contain alloca or
13968 # contain a buggy version. If you still want to use their alloca,
13969 # use ar to extract alloca.o from them instead of compiling alloca.c.
13970
13971 ALLOCA=alloca.$ac_objext
13972
13973 cat >>confdefs.h <<\_ACEOF
13974 #define C_ALLOCA 1
13975 _ACEOF
13976
13977
13978 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13979 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13980 if test "${ac_cv_os_cray+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 else
13983 cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h. */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13989 #if defined(CRAY) && ! defined(CRAY2)
13990 webecray
13991 #else
13992 wenotbecray
13993 #endif
13994
13995 _ACEOF
13996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13997 $EGREP "webecray" >/dev/null 2>&1; then
13998 ac_cv_os_cray=yes
13999 else
14000 ac_cv_os_cray=no
14001 fi
14002 rm -f conftest*
14003
14004 fi
14005 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14006 echo "${ECHO_T}$ac_cv_os_cray" >&6
14007 if test $ac_cv_os_cray = yes; then
14008 for ac_func in _getb67 GETB67 getb67; do
14009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14010 echo "$as_me:$LINENO: checking for $ac_func" >&5
14011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14012 if eval "test \"\${$as_ac_var+set}\" = set"; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015 cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h. */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14023 #define $ac_func innocuous_$ac_func
14024
14025 /* System header to define __stub macros and hopefully few prototypes,
14026 which can conflict with char $ac_func (); below.
14027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14028 <limits.h> exists even on freestanding compilers. */
14029
14030 #ifdef __STDC__
14031 # include <limits.h>
14032 #else
14033 # include <assert.h>
14034 #endif
14035
14036 #undef $ac_func
14037
14038 /* Override any gcc2 internal prototype to avoid an error. */
14039 #ifdef __cplusplus
14040 extern "C"
14041 {
14042 #endif
14043 /* We use char because int might match the return type of a gcc2
14044 builtin and then its argument prototype would still apply. */
14045 char $ac_func ();
14046 /* The GNU C library defines this for functions which it implements
14047 to always fail with ENOSYS. Some functions are actually named
14048 something starting with __ and the normal name is an alias. */
14049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14050 choke me
14051 #else
14052 char (*f) () = $ac_func;
14053 #endif
14054 #ifdef __cplusplus
14055 }
14056 #endif
14057
14058 int
14059 main ()
14060 {
14061 return f != $ac_func;
14062 ;
14063 return 0;
14064 }
14065 _ACEOF
14066 rm -f conftest.$ac_objext conftest$ac_exeext
14067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14068 (eval $ac_link) 2>conftest.er1
14069 ac_status=$?
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } &&
14075 { ac_try='test -z "$ac_c_werror_flag"
14076 || test ! -s conftest.err'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest$ac_exeext'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }; then
14088 eval "$as_ac_var=yes"
14089 else
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093 eval "$as_ac_var=no"
14094 fi
14095 rm -f conftest.err conftest.$ac_objext \
14096 conftest$ac_exeext conftest.$ac_ext
14097 fi
14098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14100 if test `eval echo '${'$as_ac_var'}'` = yes; then
14101
14102 cat >>confdefs.h <<_ACEOF
14103 #define CRAY_STACKSEG_END $ac_func
14104 _ACEOF
14105
14106 break
14107 fi
14108
14109 done
14110 fi
14111
14112 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14113 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14114 if test "${ac_cv_c_stack_direction+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117 if test "$cross_compiling" = yes; then
14118 ac_cv_c_stack_direction=0
14119 else
14120 cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 int
14127 find_stack_direction ()
14128 {
14129 static char *addr = 0;
14130 auto char dummy;
14131 if (addr == 0)
14132 {
14133 addr = &dummy;
14134 return find_stack_direction ();
14135 }
14136 else
14137 return (&dummy > addr) ? 1 : -1;
14138 }
14139
14140 int
14141 main ()
14142 {
14143 exit (find_stack_direction () < 0);
14144 }
14145 _ACEOF
14146 rm -f conftest$ac_exeext
14147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14148 (eval $ac_link) 2>&5
14149 ac_status=$?
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14154 ac_status=$?
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14157 ac_cv_c_stack_direction=1
14158 else
14159 echo "$as_me: program exited with status $ac_status" >&5
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163 ( exit $ac_status )
14164 ac_cv_c_stack_direction=-1
14165 fi
14166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14167 fi
14168 fi
14169 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14170 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14171
14172 cat >>confdefs.h <<_ACEOF
14173 #define STACK_DIRECTION $ac_cv_c_stack_direction
14174 _ACEOF
14175
14176
14177 fi
14178
14179
14180
14181 for ac_header in stdlib.h unistd.h
14182 do
14183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14185 echo "$as_me:$LINENO: checking for $ac_header" >&5
14186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 fi
14190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14192 else
14193 # Is the header compilable?
14194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14196 cat >conftest.$ac_ext <<_ACEOF
14197 /* confdefs.h. */
14198 _ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14202 $ac_includes_default
14203 #include <$ac_header>
14204 _ACEOF
14205 rm -f conftest.$ac_objext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14207 (eval $ac_compile) 2>conftest.er1
14208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag"
14215 || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest.$ac_objext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_header_compiler=yes
14228 else
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14231
14232 ac_header_compiler=no
14233 fi
14234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14236 echo "${ECHO_T}$ac_header_compiler" >&6
14237
14238 # Is the header present?
14239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14241 cat >conftest.$ac_ext <<_ACEOF
14242 /* confdefs.h. */
14243 _ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14247 #include <$ac_header>
14248 _ACEOF
14249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } >/dev/null; then
14257 if test -s conftest.err; then
14258 ac_cpp_err=$ac_c_preproc_warn_flag
14259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14260 else
14261 ac_cpp_err=
14262 fi
14263 else
14264 ac_cpp_err=yes
14265 fi
14266 if test -z "$ac_cpp_err"; then
14267 ac_header_preproc=yes
14268 else
14269 echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14271
14272 ac_header_preproc=no
14273 fi
14274 rm -f conftest.err conftest.$ac_ext
14275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14276 echo "${ECHO_T}$ac_header_preproc" >&6
14277
14278 # So? What about this header?
14279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14280 yes:no: )
14281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14285 ac_header_preproc=yes
14286 ;;
14287 no:yes:* )
14288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14300 (
14301 cat <<\_ASBOX
14302 ## ------------------------------------------ ##
14303 ## Report this to the AC_PACKAGE_NAME lists. ##
14304 ## ------------------------------------------ ##
14305 _ASBOX
14306 ) |
14307 sed "s/^/$as_me: WARNING: /" >&2
14308 ;;
14309 esac
14310 echo "$as_me:$LINENO: checking for $ac_header" >&5
14311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315 eval "$as_ac_Header=\$ac_header_preproc"
14316 fi
14317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14319
14320 fi
14321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14322 cat >>confdefs.h <<_ACEOF
14323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14324 _ACEOF
14325
14326 fi
14327
14328 done
14329
14330
14331 for ac_func in getpagesize
14332 do
14333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14334 echo "$as_me:$LINENO: checking for $ac_func" >&5
14335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14336 if eval "test \"\${$as_ac_var+set}\" = set"; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 else
14339 cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h. */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14347 #define $ac_func innocuous_$ac_func
14348
14349 /* System header to define __stub macros and hopefully few prototypes,
14350 which can conflict with char $ac_func (); below.
14351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14352 <limits.h> exists even on freestanding compilers. */
14353
14354 #ifdef __STDC__
14355 # include <limits.h>
14356 #else
14357 # include <assert.h>
14358 #endif
14359
14360 #undef $ac_func
14361
14362 /* Override any gcc2 internal prototype to avoid an error. */
14363 #ifdef __cplusplus
14364 extern "C"
14365 {
14366 #endif
14367 /* We use char because int might match the return type of a gcc2
14368 builtin and then its argument prototype would still apply. */
14369 char $ac_func ();
14370 /* The GNU C library defines this for functions which it implements
14371 to always fail with ENOSYS. Some functions are actually named
14372 something starting with __ and the normal name is an alias. */
14373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14374 choke me
14375 #else
14376 char (*f) () = $ac_func;
14377 #endif
14378 #ifdef __cplusplus
14379 }
14380 #endif
14381
14382 int
14383 main ()
14384 {
14385 return f != $ac_func;
14386 ;
14387 return 0;
14388 }
14389 _ACEOF
14390 rm -f conftest.$ac_objext conftest$ac_exeext
14391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14392 (eval $ac_link) 2>conftest.er1
14393 ac_status=$?
14394 grep -v '^ *+' conftest.er1 >conftest.err
14395 rm -f conftest.er1
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } &&
14399 { ac_try='test -z "$ac_c_werror_flag"
14400 || test ! -s conftest.err'
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402 (eval $ac_try) 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; } &&
14406 { ac_try='test -s conftest$ac_exeext'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14412 eval "$as_ac_var=yes"
14413 else
14414 echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14416
14417 eval "$as_ac_var=no"
14418 fi
14419 rm -f conftest.err conftest.$ac_objext \
14420 conftest$ac_exeext conftest.$ac_ext
14421 fi
14422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14424 if test `eval echo '${'$as_ac_var'}'` = yes; then
14425 cat >>confdefs.h <<_ACEOF
14426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14427 _ACEOF
14428
14429 fi
14430 done
14431
14432 echo "$as_me:$LINENO: checking for working mmap" >&5
14433 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14434 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437 if test "$cross_compiling" = yes; then
14438 ac_cv_func_mmap_fixed_mapped=no
14439 else
14440 cat >conftest.$ac_ext <<_ACEOF
14441 /* confdefs.h. */
14442 _ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14446 $ac_includes_default
14447 /* malloc might have been renamed as rpl_malloc. */
14448 #undef malloc
14449
14450 /* Thanks to Mike Haertel and Jim Avera for this test.
14451 Here is a matrix of mmap possibilities:
14452 mmap private not fixed
14453 mmap private fixed at somewhere currently unmapped
14454 mmap private fixed at somewhere already mapped
14455 mmap shared not fixed
14456 mmap shared fixed at somewhere currently unmapped
14457 mmap shared fixed at somewhere already mapped
14458 For private mappings, we should verify that changes cannot be read()
14459 back from the file, nor mmap's back from the file at a different
14460 address. (There have been systems where private was not correctly
14461 implemented like the infamous i386 svr4.0, and systems where the
14462 VM page cache was not coherent with the file system buffer cache
14463 like early versions of FreeBSD and possibly contemporary NetBSD.)
14464 For shared mappings, we should conversely verify that changes get
14465 propagated back to all the places they're supposed to be.
14466
14467 Grep wants private fixed already mapped.
14468 The main things grep needs to know about mmap are:
14469 * does it exist and is it safe to write into the mmap'd area
14470 * how to use it (BSD variants) */
14471
14472 #include <fcntl.h>
14473 #include <sys/mman.h>
14474
14475 #if !STDC_HEADERS && !HAVE_STDLIB_H
14476 char *malloc ();
14477 #endif
14478
14479 /* This mess was copied from the GNU getpagesize.h. */
14480 #if !HAVE_GETPAGESIZE
14481 /* Assume that all systems that can run configure have sys/param.h. */
14482 # if !HAVE_SYS_PARAM_H
14483 # define HAVE_SYS_PARAM_H 1
14484 # endif
14485
14486 # ifdef _SC_PAGESIZE
14487 # define getpagesize() sysconf(_SC_PAGESIZE)
14488 # else /* no _SC_PAGESIZE */
14489 # if HAVE_SYS_PARAM_H
14490 # include <sys/param.h>
14491 # ifdef EXEC_PAGESIZE
14492 # define getpagesize() EXEC_PAGESIZE
14493 # else /* no EXEC_PAGESIZE */
14494 # ifdef NBPG
14495 # define getpagesize() NBPG * CLSIZE
14496 # ifndef CLSIZE
14497 # define CLSIZE 1
14498 # endif /* no CLSIZE */
14499 # else /* no NBPG */
14500 # ifdef NBPC
14501 # define getpagesize() NBPC
14502 # else /* no NBPC */
14503 # ifdef PAGESIZE
14504 # define getpagesize() PAGESIZE
14505 # endif /* PAGESIZE */
14506 # endif /* no NBPC */
14507 # endif /* no NBPG */
14508 # endif /* no EXEC_PAGESIZE */
14509 # else /* no HAVE_SYS_PARAM_H */
14510 # define getpagesize() 8192 /* punt totally */
14511 # endif /* no HAVE_SYS_PARAM_H */
14512 # endif /* no _SC_PAGESIZE */
14513
14514 #endif /* no HAVE_GETPAGESIZE */
14515
14516 int
14517 main ()
14518 {
14519 char *data, *data2, *data3;
14520 int i, pagesize;
14521 int fd;
14522
14523 pagesize = getpagesize ();
14524
14525 /* First, make a file with some known garbage in it. */
14526 data = (char *) malloc (pagesize);
14527 if (!data)
14528 exit (1);
14529 for (i = 0; i < pagesize; ++i)
14530 *(data + i) = rand ();
14531 umask (0);
14532 fd = creat ("conftest.mmap", 0600);
14533 if (fd < 0)
14534 exit (1);
14535 if (write (fd, data, pagesize) != pagesize)
14536 exit (1);
14537 close (fd);
14538
14539 /* Next, try to mmap the file at a fixed address which already has
14540 something else allocated at it. If we can, also make sure that
14541 we see the same garbage. */
14542 fd = open ("conftest.mmap", O_RDWR);
14543 if (fd < 0)
14544 exit (1);
14545 data2 = (char *) malloc (2 * pagesize);
14546 if (!data2)
14547 exit (1);
14548 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14549 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14550 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14551 exit (1);
14552 for (i = 0; i < pagesize; ++i)
14553 if (*(data + i) != *(data2 + i))
14554 exit (1);
14555
14556 /* Finally, make sure that changes to the mapped area do not
14557 percolate back to the file as seen by read(). (This is a bug on
14558 some variants of i386 svr4.0.) */
14559 for (i = 0; i < pagesize; ++i)
14560 *(data2 + i) = *(data2 + i) + 1;
14561 data3 = (char *) malloc (pagesize);
14562 if (!data3)
14563 exit (1);
14564 if (read (fd, data3, pagesize) != pagesize)
14565 exit (1);
14566 for (i = 0; i < pagesize; ++i)
14567 if (*(data + i) != *(data3 + i))
14568 exit (1);
14569 close (fd);
14570 exit (0);
14571 }
14572 _ACEOF
14573 rm -f conftest$ac_exeext
14574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14575 (eval $ac_link) 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }; then
14584 ac_cv_func_mmap_fixed_mapped=yes
14585 else
14586 echo "$as_me: program exited with status $ac_status" >&5
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590 ( exit $ac_status )
14591 ac_cv_func_mmap_fixed_mapped=no
14592 fi
14593 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14594 fi
14595 fi
14596 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14597 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14598 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14599
14600 cat >>confdefs.h <<\_ACEOF
14601 #define HAVE_MMAP 1
14602 _ACEOF
14603
14604 fi
14605 rm -f conftest.mmap
14606
14607 echo "$as_me:$LINENO: checking for pid_t" >&5
14608 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14609 if test "${ac_cv_type_pid_t+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 else
14612 cat >conftest.$ac_ext <<_ACEOF
14613 /* confdefs.h. */
14614 _ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 $ac_includes_default
14619 int
14620 main ()
14621 {
14622 if ((pid_t *) 0)
14623 return 0;
14624 if (sizeof (pid_t))
14625 return 0;
14626 ;
14627 return 0;
14628 }
14629 _ACEOF
14630 rm -f conftest.$ac_objext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14632 (eval $ac_compile) 2>conftest.er1
14633 ac_status=$?
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
14639 { ac_try='test -z "$ac_c_werror_flag"
14640 || test ! -s conftest.err'
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14643 ac_status=$?
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; } &&
14646 { ac_try='test -s conftest.$ac_objext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_cv_type_pid_t=yes
14653 else
14654 echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14656
14657 ac_cv_type_pid_t=no
14658 fi
14659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14660 fi
14661 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14662 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14663 if test $ac_cv_type_pid_t = yes; then
14664 :
14665 else
14666
14667 cat >>confdefs.h <<_ACEOF
14668 #define pid_t int
14669 _ACEOF
14670
14671 fi
14672
14673
14674
14675 for ac_header in unistd.h vfork.h
14676 do
14677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14679 echo "$as_me:$LINENO: checking for $ac_header" >&5
14680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 fi
14684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14686 else
14687 # Is the header compilable?
14688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14690 cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h. */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696 $ac_includes_default
14697 #include <$ac_header>
14698 _ACEOF
14699 rm -f conftest.$ac_objext
14700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14701 (eval $ac_compile) 2>conftest.er1
14702 ac_status=$?
14703 grep -v '^ *+' conftest.er1 >conftest.err
14704 rm -f conftest.er1
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } &&
14708 { ac_try='test -z "$ac_c_werror_flag"
14709 || test ! -s conftest.err'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; } &&
14715 { ac_try='test -s conftest.$ac_objext'
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; }; then
14721 ac_header_compiler=yes
14722 else
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14725
14726 ac_header_compiler=no
14727 fi
14728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14730 echo "${ECHO_T}$ac_header_compiler" >&6
14731
14732 # Is the header present?
14733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14735 cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h. */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 #include <$ac_header>
14742 _ACEOF
14743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } >/dev/null; then
14751 if test -s conftest.err; then
14752 ac_cpp_err=$ac_c_preproc_warn_flag
14753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14754 else
14755 ac_cpp_err=
14756 fi
14757 else
14758 ac_cpp_err=yes
14759 fi
14760 if test -z "$ac_cpp_err"; then
14761 ac_header_preproc=yes
14762 else
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14765
14766 ac_header_preproc=no
14767 fi
14768 rm -f conftest.err conftest.$ac_ext
14769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14770 echo "${ECHO_T}$ac_header_preproc" >&6
14771
14772 # So? What about this header?
14773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14774 yes:no: )
14775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14779 ac_header_preproc=yes
14780 ;;
14781 no:yes:* )
14782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14794 (
14795 cat <<\_ASBOX
14796 ## ------------------------------------------ ##
14797 ## Report this to the AC_PACKAGE_NAME lists. ##
14798 ## ------------------------------------------ ##
14799 _ASBOX
14800 ) |
14801 sed "s/^/$as_me: WARNING: /" >&2
14802 ;;
14803 esac
14804 echo "$as_me:$LINENO: checking for $ac_header" >&5
14805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809 eval "$as_ac_Header=\$ac_header_preproc"
14810 fi
14811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14813
14814 fi
14815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14816 cat >>confdefs.h <<_ACEOF
14817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14818 _ACEOF
14819
14820 fi
14821
14822 done
14823
14824
14825
14826 for ac_func in fork vfork
14827 do
14828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14829 echo "$as_me:$LINENO: checking for $ac_func" >&5
14830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14831 if eval "test \"\${$as_ac_var+set}\" = set"; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834 cat >conftest.$ac_ext <<_ACEOF
14835 /* confdefs.h. */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14842 #define $ac_func innocuous_$ac_func
14843
14844 /* System header to define __stub macros and hopefully few prototypes,
14845 which can conflict with char $ac_func (); below.
14846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14847 <limits.h> exists even on freestanding compilers. */
14848
14849 #ifdef __STDC__
14850 # include <limits.h>
14851 #else
14852 # include <assert.h>
14853 #endif
14854
14855 #undef $ac_func
14856
14857 /* Override any gcc2 internal prototype to avoid an error. */
14858 #ifdef __cplusplus
14859 extern "C"
14860 {
14861 #endif
14862 /* We use char because int might match the return type of a gcc2
14863 builtin and then its argument prototype would still apply. */
14864 char $ac_func ();
14865 /* The GNU C library defines this for functions which it implements
14866 to always fail with ENOSYS. Some functions are actually named
14867 something starting with __ and the normal name is an alias. */
14868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14869 choke me
14870 #else
14871 char (*f) () = $ac_func;
14872 #endif
14873 #ifdef __cplusplus
14874 }
14875 #endif
14876
14877 int
14878 main ()
14879 {
14880 return f != $ac_func;
14881 ;
14882 return 0;
14883 }
14884 _ACEOF
14885 rm -f conftest.$ac_objext conftest$ac_exeext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14887 (eval $ac_link) 2>conftest.er1
14888 ac_status=$?
14889 grep -v '^ *+' conftest.er1 >conftest.err
14890 rm -f conftest.er1
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -z "$ac_c_werror_flag"
14895 || test ! -s conftest.err'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } &&
14901 { ac_try='test -s conftest$ac_exeext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 eval "$as_ac_var=yes"
14908 else
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14911
14912 eval "$as_ac_var=no"
14913 fi
14914 rm -f conftest.err conftest.$ac_objext \
14915 conftest$ac_exeext conftest.$ac_ext
14916 fi
14917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14919 if test `eval echo '${'$as_ac_var'}'` = yes; then
14920 cat >>confdefs.h <<_ACEOF
14921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14922 _ACEOF
14923
14924 fi
14925 done
14926
14927 if test "x$ac_cv_func_fork" = xyes; then
14928 echo "$as_me:$LINENO: checking for working fork" >&5
14929 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14930 if test "${ac_cv_func_fork_works+set}" = set; then
14931 echo $ECHO_N "(cached) $ECHO_C" >&6
14932 else
14933 if test "$cross_compiling" = yes; then
14934 ac_cv_func_fork_works=cross
14935 else
14936 cat >conftest.$ac_ext <<_ACEOF
14937 /* By Ruediger Kuhlmann. */
14938 #include <sys/types.h>
14939 #if HAVE_UNISTD_H
14940 # include <unistd.h>
14941 #endif
14942 /* Some systems only have a dummy stub for fork() */
14943 int main ()
14944 {
14945 if (fork() < 0)
14946 exit (1);
14947 exit (0);
14948 }
14949 _ACEOF
14950 rm -f conftest$ac_exeext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14952 (eval $ac_link) 2>&5
14953 ac_status=$?
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; }; then
14961 ac_cv_func_fork_works=yes
14962 else
14963 echo "$as_me: program exited with status $ac_status" >&5
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14966
14967 ( exit $ac_status )
14968 ac_cv_func_fork_works=no
14969 fi
14970 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14971 fi
14972 fi
14973 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14974 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14975
14976 else
14977 ac_cv_func_fork_works=$ac_cv_func_fork
14978 fi
14979 if test "x$ac_cv_func_fork_works" = xcross; then
14980 case $host in
14981 *-*-amigaos* | *-*-msdosdjgpp*)
14982 # Override, as these systems have only a dummy fork() stub
14983 ac_cv_func_fork_works=no
14984 ;;
14985 *)
14986 ac_cv_func_fork_works=yes
14987 ;;
14988 esac
14989 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14990 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14991 fi
14992 ac_cv_func_vfork_works=$ac_cv_func_vfork
14993 if test "x$ac_cv_func_vfork" = xyes; then
14994 echo "$as_me:$LINENO: checking for working vfork" >&5
14995 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14996 if test "${ac_cv_func_vfork_works+set}" = set; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 else
14999 if test "$cross_compiling" = yes; then
15000 ac_cv_func_vfork_works=cross
15001 else
15002 cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h. */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 /* Thanks to Paul Eggert for this test. */
15009 #include <stdio.h>
15010 #include <stdlib.h>
15011 #include <sys/types.h>
15012 #include <sys/stat.h>
15013 #include <sys/wait.h>
15014 #if HAVE_UNISTD_H
15015 # include <unistd.h>
15016 #endif
15017 #if HAVE_VFORK_H
15018 # include <vfork.h>
15019 #endif
15020 /* On some sparc systems, changes by the child to local and incoming
15021 argument registers are propagated back to the parent. The compiler
15022 is told about this with #include <vfork.h>, but some compilers
15023 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15024 static variable whose address is put into a register that is
15025 clobbered by the vfork. */
15026 static void
15027 #ifdef __cplusplus
15028 sparc_address_test (int arg)
15029 # else
15030 sparc_address_test (arg) int arg;
15031 #endif
15032 {
15033 static pid_t child;
15034 if (!child) {
15035 child = vfork ();
15036 if (child < 0) {
15037 perror ("vfork");
15038 _exit(2);
15039 }
15040 if (!child) {
15041 arg = getpid();
15042 write(-1, "", 0);
15043 _exit (arg);
15044 }
15045 }
15046 }
15047
15048 int
15049 main ()
15050 {
15051 pid_t parent = getpid ();
15052 pid_t child;
15053
15054 sparc_address_test (0);
15055
15056 child = vfork ();
15057
15058 if (child == 0) {
15059 /* Here is another test for sparc vfork register problems. This
15060 test uses lots of local variables, at least as many local
15061 variables as main has allocated so far including compiler
15062 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15063 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15064 reuse the register of parent for one of the local variables,
15065 since it will think that parent can't possibly be used any more
15066 in this routine. Assigning to the local variable will thus
15067 munge parent in the parent process. */
15068 pid_t
15069 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15070 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15071 /* Convince the compiler that p..p7 are live; otherwise, it might
15072 use the same hardware register for all 8 local variables. */
15073 if (p != p1 || p != p2 || p != p3 || p != p4
15074 || p != p5 || p != p6 || p != p7)
15075 _exit(1);
15076
15077 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15078 from child file descriptors. If the child closes a descriptor
15079 before it execs or exits, this munges the parent's descriptor
15080 as well. Test for this by closing stdout in the child. */
15081 _exit(close(fileno(stdout)) != 0);
15082 } else {
15083 int status;
15084 struct stat st;
15085
15086 while (wait(&status) != child)
15087 ;
15088 exit(
15089 /* Was there some problem with vforking? */
15090 child < 0
15091
15092 /* Did the child fail? (This shouldn't happen.) */
15093 || status
15094
15095 /* Did the vfork/compiler bug occur? */
15096 || parent != getpid()
15097
15098 /* Did the file descriptor bug occur? */
15099 || fstat(fileno(stdout), &st) != 0
15100 );
15101 }
15102 }
15103 _ACEOF
15104 rm -f conftest$ac_exeext
15105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15106 (eval $ac_link) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; }; then
15115 ac_cv_func_vfork_works=yes
15116 else
15117 echo "$as_me: program exited with status $ac_status" >&5
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15120
15121 ( exit $ac_status )
15122 ac_cv_func_vfork_works=no
15123 fi
15124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15125 fi
15126 fi
15127 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15128 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15129
15130 fi;
15131 if test "x$ac_cv_func_fork_works" = xcross; then
15132 ac_cv_func_vfork_works=$ac_cv_func_vfork
15133 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15134 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15135 fi
15136
15137 if test "x$ac_cv_func_vfork_works" = xyes; then
15138
15139 cat >>confdefs.h <<\_ACEOF
15140 #define HAVE_WORKING_VFORK 1
15141 _ACEOF
15142
15143 else
15144
15145 cat >>confdefs.h <<\_ACEOF
15146 #define vfork fork
15147 _ACEOF
15148
15149 fi
15150 if test "x$ac_cv_func_fork_works" = xyes; then
15151
15152 cat >>confdefs.h <<\_ACEOF
15153 #define HAVE_WORKING_FORK 1
15154 _ACEOF
15155
15156 fi
15157
15158
15159
15160 for ac_func in canonicalize_file_name realpath
15161 do
15162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15163 echo "$as_me:$LINENO: checking for $ac_func" >&5
15164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15165 if eval "test \"\${$as_ac_var+set}\" = set"; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168 cat >conftest.$ac_ext <<_ACEOF
15169 /* confdefs.h. */
15170 _ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15176 #define $ac_func innocuous_$ac_func
15177
15178 /* System header to define __stub macros and hopefully few prototypes,
15179 which can conflict with char $ac_func (); below.
15180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15181 <limits.h> exists even on freestanding compilers. */
15182
15183 #ifdef __STDC__
15184 # include <limits.h>
15185 #else
15186 # include <assert.h>
15187 #endif
15188
15189 #undef $ac_func
15190
15191 /* Override any gcc2 internal prototype to avoid an error. */
15192 #ifdef __cplusplus
15193 extern "C"
15194 {
15195 #endif
15196 /* We use char because int might match the return type of a gcc2
15197 builtin and then its argument prototype would still apply. */
15198 char $ac_func ();
15199 /* The GNU C library defines this for functions which it implements
15200 to always fail with ENOSYS. Some functions are actually named
15201 something starting with __ and the normal name is an alias. */
15202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15203 choke me
15204 #else
15205 char (*f) () = $ac_func;
15206 #endif
15207 #ifdef __cplusplus
15208 }
15209 #endif
15210
15211 int
15212 main ()
15213 {
15214 return f != $ac_func;
15215 ;
15216 return 0;
15217 }
15218 _ACEOF
15219 rm -f conftest.$ac_objext conftest$ac_exeext
15220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15221 (eval $ac_link) 2>conftest.er1
15222 ac_status=$?
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } &&
15228 { ac_try='test -z "$ac_c_werror_flag"
15229 || test ! -s conftest.err'
15230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231 (eval $ac_try) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest$ac_exeext'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 eval "$as_ac_var=yes"
15242 else
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15245
15246 eval "$as_ac_var=no"
15247 fi
15248 rm -f conftest.err conftest.$ac_objext \
15249 conftest$ac_exeext conftest.$ac_ext
15250 fi
15251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15253 if test `eval echo '${'$as_ac_var'}'` = yes; then
15254 cat >>confdefs.h <<_ACEOF
15255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15256 _ACEOF
15257
15258 fi
15259 done
15260
15261
15262 for ac_func in poll
15263 do
15264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15265 echo "$as_me:$LINENO: checking for $ac_func" >&5
15266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15267 if eval "test \"\${$as_ac_var+set}\" = set"; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270 cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h. */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15278 #define $ac_func innocuous_$ac_func
15279
15280 /* System header to define __stub macros and hopefully few prototypes,
15281 which can conflict with char $ac_func (); below.
15282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15283 <limits.h> exists even on freestanding compilers. */
15284
15285 #ifdef __STDC__
15286 # include <limits.h>
15287 #else
15288 # include <assert.h>
15289 #endif
15290
15291 #undef $ac_func
15292
15293 /* Override any gcc2 internal prototype to avoid an error. */
15294 #ifdef __cplusplus
15295 extern "C"
15296 {
15297 #endif
15298 /* We use char because int might match the return type of a gcc2
15299 builtin and then its argument prototype would still apply. */
15300 char $ac_func ();
15301 /* The GNU C library defines this for functions which it implements
15302 to always fail with ENOSYS. Some functions are actually named
15303 something starting with __ and the normal name is an alias. */
15304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15305 choke me
15306 #else
15307 char (*f) () = $ac_func;
15308 #endif
15309 #ifdef __cplusplus
15310 }
15311 #endif
15312
15313 int
15314 main ()
15315 {
15316 return f != $ac_func;
15317 ;
15318 return 0;
15319 }
15320 _ACEOF
15321 rm -f conftest.$ac_objext conftest$ac_exeext
15322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15323 (eval $ac_link) 2>conftest.er1
15324 ac_status=$?
15325 grep -v '^ *+' conftest.er1 >conftest.err
15326 rm -f conftest.er1
15327 cat conftest.err >&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
15330 { ac_try='test -z "$ac_c_werror_flag"
15331 || test ! -s conftest.err'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; } &&
15337 { ac_try='test -s conftest$ac_exeext'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343 eval "$as_ac_var=yes"
15344 else
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15347
15348 eval "$as_ac_var=no"
15349 fi
15350 rm -f conftest.err conftest.$ac_objext \
15351 conftest$ac_exeext conftest.$ac_ext
15352 fi
15353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15355 if test `eval echo '${'$as_ac_var'}'` = yes; then
15356 cat >>confdefs.h <<_ACEOF
15357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15358 _ACEOF
15359
15360 fi
15361 done
15362
15363
15364 for ac_func in pread64
15365 do
15366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15367 echo "$as_me:$LINENO: checking for $ac_func" >&5
15368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15369 if eval "test \"\${$as_ac_var+set}\" = set"; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372 cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h. */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15380 #define $ac_func innocuous_$ac_func
15381
15382 /* System header to define __stub macros and hopefully few prototypes,
15383 which can conflict with char $ac_func (); below.
15384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15385 <limits.h> exists even on freestanding compilers. */
15386
15387 #ifdef __STDC__
15388 # include <limits.h>
15389 #else
15390 # include <assert.h>
15391 #endif
15392
15393 #undef $ac_func
15394
15395 /* Override any gcc2 internal prototype to avoid an error. */
15396 #ifdef __cplusplus
15397 extern "C"
15398 {
15399 #endif
15400 /* We use char because int might match the return type of a gcc2
15401 builtin and then its argument prototype would still apply. */
15402 char $ac_func ();
15403 /* The GNU C library defines this for functions which it implements
15404 to always fail with ENOSYS. Some functions are actually named
15405 something starting with __ and the normal name is an alias. */
15406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15407 choke me
15408 #else
15409 char (*f) () = $ac_func;
15410 #endif
15411 #ifdef __cplusplus
15412 }
15413 #endif
15414
15415 int
15416 main ()
15417 {
15418 return f != $ac_func;
15419 ;
15420 return 0;
15421 }
15422 _ACEOF
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15425 (eval $ac_link) 2>conftest.er1
15426 ac_status=$?
15427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
15432 { ac_try='test -z "$ac_c_werror_flag"
15433 || test ! -s conftest.err'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest$ac_exeext'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 eval "$as_ac_var=yes"
15446 else
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15449
15450 eval "$as_ac_var=no"
15451 fi
15452 rm -f conftest.err conftest.$ac_objext \
15453 conftest$ac_exeext conftest.$ac_ext
15454 fi
15455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15457 if test `eval echo '${'$as_ac_var'}'` = yes; then
15458 cat >>confdefs.h <<_ACEOF
15459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15460 _ACEOF
15461
15462 fi
15463 done
15464
15465
15466 for ac_func in sbrk
15467 do
15468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15469 echo "$as_me:$LINENO: checking for $ac_func" >&5
15470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15471 if eval "test \"\${$as_ac_var+set}\" = set"; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 else
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15482 #define $ac_func innocuous_$ac_func
15483
15484 /* System header to define __stub macros and hopefully few prototypes,
15485 which can conflict with char $ac_func (); below.
15486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15487 <limits.h> exists even on freestanding compilers. */
15488
15489 #ifdef __STDC__
15490 # include <limits.h>
15491 #else
15492 # include <assert.h>
15493 #endif
15494
15495 #undef $ac_func
15496
15497 /* Override any gcc2 internal prototype to avoid an error. */
15498 #ifdef __cplusplus
15499 extern "C"
15500 {
15501 #endif
15502 /* We use char because int might match the return type of a gcc2
15503 builtin and then its argument prototype would still apply. */
15504 char $ac_func ();
15505 /* The GNU C library defines this for functions which it implements
15506 to always fail with ENOSYS. Some functions are actually named
15507 something starting with __ and the normal name is an alias. */
15508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15509 choke me
15510 #else
15511 char (*f) () = $ac_func;
15512 #endif
15513 #ifdef __cplusplus
15514 }
15515 #endif
15516
15517 int
15518 main ()
15519 {
15520 return f != $ac_func;
15521 ;
15522 return 0;
15523 }
15524 _ACEOF
15525 rm -f conftest.$ac_objext conftest$ac_exeext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15527 (eval $ac_link) 2>conftest.er1
15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -z "$ac_c_werror_flag"
15535 || test ! -s conftest.err'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try='test -s conftest$ac_exeext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 eval "$as_ac_var=yes"
15548 else
15549 echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15551
15552 eval "$as_ac_var=no"
15553 fi
15554 rm -f conftest.err conftest.$ac_objext \
15555 conftest$ac_exeext conftest.$ac_ext
15556 fi
15557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15559 if test `eval echo '${'$as_ac_var'}'` = yes; then
15560 cat >>confdefs.h <<_ACEOF
15561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15562 _ACEOF
15563
15564 fi
15565 done
15566
15567
15568
15569 for ac_func in setpgid setpgrp
15570 do
15571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15572 echo "$as_me:$LINENO: checking for $ac_func" >&5
15573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15574 if eval "test \"\${$as_ac_var+set}\" = set"; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15576 else
15577 cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h. */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15585 #define $ac_func innocuous_$ac_func
15586
15587 /* System header to define __stub macros and hopefully few prototypes,
15588 which can conflict with char $ac_func (); below.
15589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15590 <limits.h> exists even on freestanding compilers. */
15591
15592 #ifdef __STDC__
15593 # include <limits.h>
15594 #else
15595 # include <assert.h>
15596 #endif
15597
15598 #undef $ac_func
15599
15600 /* Override any gcc2 internal prototype to avoid an error. */
15601 #ifdef __cplusplus
15602 extern "C"
15603 {
15604 #endif
15605 /* We use char because int might match the return type of a gcc2
15606 builtin and then its argument prototype would still apply. */
15607 char $ac_func ();
15608 /* The GNU C library defines this for functions which it implements
15609 to always fail with ENOSYS. Some functions are actually named
15610 something starting with __ and the normal name is an alias. */
15611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15612 choke me
15613 #else
15614 char (*f) () = $ac_func;
15615 #endif
15616 #ifdef __cplusplus
15617 }
15618 #endif
15619
15620 int
15621 main ()
15622 {
15623 return f != $ac_func;
15624 ;
15625 return 0;
15626 }
15627 _ACEOF
15628 rm -f conftest.$ac_objext conftest$ac_exeext
15629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15630 (eval $ac_link) 2>conftest.er1
15631 ac_status=$?
15632 grep -v '^ *+' conftest.er1 >conftest.err
15633 rm -f conftest.er1
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try='test -z "$ac_c_werror_flag"
15638 || test ! -s conftest.err'
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; } &&
15644 { ac_try='test -s conftest$ac_exeext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 eval "$as_ac_var=yes"
15651 else
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15654
15655 eval "$as_ac_var=no"
15656 fi
15657 rm -f conftest.err conftest.$ac_objext \
15658 conftest$ac_exeext conftest.$ac_ext
15659 fi
15660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15662 if test `eval echo '${'$as_ac_var'}'` = yes; then
15663 cat >>confdefs.h <<_ACEOF
15664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15665 _ACEOF
15666
15667 fi
15668 done
15669
15670
15671
15672
15673 for ac_func in sigaction sigprocmask sigsetmask
15674 do
15675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15676 echo "$as_me:$LINENO: checking for $ac_func" >&5
15677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15678 if eval "test \"\${$as_ac_var+set}\" = set"; then
15679 echo $ECHO_N "(cached) $ECHO_C" >&6
15680 else
15681 cat >conftest.$ac_ext <<_ACEOF
15682 /* confdefs.h. */
15683 _ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15689 #define $ac_func innocuous_$ac_func
15690
15691 /* System header to define __stub macros and hopefully few prototypes,
15692 which can conflict with char $ac_func (); below.
15693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15694 <limits.h> exists even on freestanding compilers. */
15695
15696 #ifdef __STDC__
15697 # include <limits.h>
15698 #else
15699 # include <assert.h>
15700 #endif
15701
15702 #undef $ac_func
15703
15704 /* Override any gcc2 internal prototype to avoid an error. */
15705 #ifdef __cplusplus
15706 extern "C"
15707 {
15708 #endif
15709 /* We use char because int might match the return type of a gcc2
15710 builtin and then its argument prototype would still apply. */
15711 char $ac_func ();
15712 /* The GNU C library defines this for functions which it implements
15713 to always fail with ENOSYS. Some functions are actually named
15714 something starting with __ and the normal name is an alias. */
15715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15716 choke me
15717 #else
15718 char (*f) () = $ac_func;
15719 #endif
15720 #ifdef __cplusplus
15721 }
15722 #endif
15723
15724 int
15725 main ()
15726 {
15727 return f != $ac_func;
15728 ;
15729 return 0;
15730 }
15731 _ACEOF
15732 rm -f conftest.$ac_objext conftest$ac_exeext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15734 (eval $ac_link) 2>conftest.er1
15735 ac_status=$?
15736 grep -v '^ *+' conftest.er1 >conftest.err
15737 rm -f conftest.er1
15738 cat conftest.err >&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } &&
15741 { ac_try='test -z "$ac_c_werror_flag"
15742 || test ! -s conftest.err'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; } &&
15748 { ac_try='test -s conftest$ac_exeext'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 eval "$as_ac_var=yes"
15755 else
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15758
15759 eval "$as_ac_var=no"
15760 fi
15761 rm -f conftest.err conftest.$ac_objext \
15762 conftest$ac_exeext conftest.$ac_ext
15763 fi
15764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15766 if test `eval echo '${'$as_ac_var'}'` = yes; then
15767 cat >>confdefs.h <<_ACEOF
15768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15769 _ACEOF
15770
15771 fi
15772 done
15773
15774
15775 for ac_func in socketpair
15776 do
15777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15778 echo "$as_me:$LINENO: checking for $ac_func" >&5
15779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15780 if eval "test \"\${$as_ac_var+set}\" = set"; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783 cat >conftest.$ac_ext <<_ACEOF
15784 /* confdefs.h. */
15785 _ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15791 #define $ac_func innocuous_$ac_func
15792
15793 /* System header to define __stub macros and hopefully few prototypes,
15794 which can conflict with char $ac_func (); below.
15795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15796 <limits.h> exists even on freestanding compilers. */
15797
15798 #ifdef __STDC__
15799 # include <limits.h>
15800 #else
15801 # include <assert.h>
15802 #endif
15803
15804 #undef $ac_func
15805
15806 /* Override any gcc2 internal prototype to avoid an error. */
15807 #ifdef __cplusplus
15808 extern "C"
15809 {
15810 #endif
15811 /* We use char because int might match the return type of a gcc2
15812 builtin and then its argument prototype would still apply. */
15813 char $ac_func ();
15814 /* The GNU C library defines this for functions which it implements
15815 to always fail with ENOSYS. Some functions are actually named
15816 something starting with __ and the normal name is an alias. */
15817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15818 choke me
15819 #else
15820 char (*f) () = $ac_func;
15821 #endif
15822 #ifdef __cplusplus
15823 }
15824 #endif
15825
15826 int
15827 main ()
15828 {
15829 return f != $ac_func;
15830 ;
15831 return 0;
15832 }
15833 _ACEOF
15834 rm -f conftest.$ac_objext conftest$ac_exeext
15835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15836 (eval $ac_link) 2>conftest.er1
15837 ac_status=$?
15838 grep -v '^ *+' conftest.er1 >conftest.err
15839 rm -f conftest.er1
15840 cat conftest.err >&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
15843 { ac_try='test -z "$ac_c_werror_flag"
15844 || test ! -s conftest.err'
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; } &&
15850 { ac_try='test -s conftest$ac_exeext'
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 eval "$as_ac_var=yes"
15857 else
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15860
15861 eval "$as_ac_var=no"
15862 fi
15863 rm -f conftest.err conftest.$ac_objext \
15864 conftest$ac_exeext conftest.$ac_ext
15865 fi
15866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15868 if test `eval echo '${'$as_ac_var'}'` = yes; then
15869 cat >>confdefs.h <<_ACEOF
15870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15871 _ACEOF
15872
15873 fi
15874 done
15875
15876
15877 for ac_func in syscall
15878 do
15879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15880 echo "$as_me:$LINENO: checking for $ac_func" >&5
15881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15882 if eval "test \"\${$as_ac_var+set}\" = set"; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15884 else
15885 cat >conftest.$ac_ext <<_ACEOF
15886 /* confdefs.h. */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15893 #define $ac_func innocuous_$ac_func
15894
15895 /* System header to define __stub macros and hopefully few prototypes,
15896 which can conflict with char $ac_func (); below.
15897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15898 <limits.h> exists even on freestanding compilers. */
15899
15900 #ifdef __STDC__
15901 # include <limits.h>
15902 #else
15903 # include <assert.h>
15904 #endif
15905
15906 #undef $ac_func
15907
15908 /* Override any gcc2 internal prototype to avoid an error. */
15909 #ifdef __cplusplus
15910 extern "C"
15911 {
15912 #endif
15913 /* We use char because int might match the return type of a gcc2
15914 builtin and then its argument prototype would still apply. */
15915 char $ac_func ();
15916 /* The GNU C library defines this for functions which it implements
15917 to always fail with ENOSYS. Some functions are actually named
15918 something starting with __ and the normal name is an alias. */
15919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15920 choke me
15921 #else
15922 char (*f) () = $ac_func;
15923 #endif
15924 #ifdef __cplusplus
15925 }
15926 #endif
15927
15928 int
15929 main ()
15930 {
15931 return f != $ac_func;
15932 ;
15933 return 0;
15934 }
15935 _ACEOF
15936 rm -f conftest.$ac_objext conftest$ac_exeext
15937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15938 (eval $ac_link) 2>conftest.er1
15939 ac_status=$?
15940 grep -v '^ *+' conftest.er1 >conftest.err
15941 rm -f conftest.er1
15942 cat conftest.err >&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); } &&
15945 { ac_try='test -z "$ac_c_werror_flag"
15946 || test ! -s conftest.err'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest$ac_exeext'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 eval "$as_ac_var=yes"
15959 else
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15962
15963 eval "$as_ac_var=no"
15964 fi
15965 rm -f conftest.err conftest.$ac_objext \
15966 conftest$ac_exeext conftest.$ac_ext
15967 fi
15968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15970 if test `eval echo '${'$as_ac_var'}'` = yes; then
15971 cat >>confdefs.h <<_ACEOF
15972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15973 _ACEOF
15974
15975 fi
15976 done
15977
15978
15979 for ac_func in ttrace
15980 do
15981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15982 echo "$as_me:$LINENO: checking for $ac_func" >&5
15983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15984 if eval "test \"\${$as_ac_var+set}\" = set"; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 else
15987 cat >conftest.$ac_ext <<_ACEOF
15988 /* confdefs.h. */
15989 _ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h. */
15993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15995 #define $ac_func innocuous_$ac_func
15996
15997 /* System header to define __stub macros and hopefully few prototypes,
15998 which can conflict with char $ac_func (); below.
15999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16000 <limits.h> exists even on freestanding compilers. */
16001
16002 #ifdef __STDC__
16003 # include <limits.h>
16004 #else
16005 # include <assert.h>
16006 #endif
16007
16008 #undef $ac_func
16009
16010 /* Override any gcc2 internal prototype to avoid an error. */
16011 #ifdef __cplusplus
16012 extern "C"
16013 {
16014 #endif
16015 /* We use char because int might match the return type of a gcc2
16016 builtin and then its argument prototype would still apply. */
16017 char $ac_func ();
16018 /* The GNU C library defines this for functions which it implements
16019 to always fail with ENOSYS. Some functions are actually named
16020 something starting with __ and the normal name is an alias. */
16021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16022 choke me
16023 #else
16024 char (*f) () = $ac_func;
16025 #endif
16026 #ifdef __cplusplus
16027 }
16028 #endif
16029
16030 int
16031 main ()
16032 {
16033 return f != $ac_func;
16034 ;
16035 return 0;
16036 }
16037 _ACEOF
16038 rm -f conftest.$ac_objext conftest$ac_exeext
16039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16040 (eval $ac_link) 2>conftest.er1
16041 ac_status=$?
16042 grep -v '^ *+' conftest.er1 >conftest.err
16043 rm -f conftest.er1
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } &&
16047 { ac_try='test -z "$ac_c_werror_flag"
16048 || test ! -s conftest.err'
16049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16050 (eval $ac_try) 2>&5
16051 ac_status=$?
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); }; } &&
16054 { ac_try='test -s conftest$ac_exeext'
16055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16056 (eval $ac_try) 2>&5
16057 ac_status=$?
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); }; }; then
16060 eval "$as_ac_var=yes"
16061 else
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16064
16065 eval "$as_ac_var=no"
16066 fi
16067 rm -f conftest.err conftest.$ac_objext \
16068 conftest$ac_exeext conftest.$ac_ext
16069 fi
16070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16072 if test `eval echo '${'$as_ac_var'}'` = yes; then
16073 cat >>confdefs.h <<_ACEOF
16074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16075 _ACEOF
16076
16077 fi
16078 done
16079
16080
16081 for ac_func in wborder
16082 do
16083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16084 echo "$as_me:$LINENO: checking for $ac_func" >&5
16085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16086 if eval "test \"\${$as_ac_var+set}\" = set"; then
16087 echo $ECHO_N "(cached) $ECHO_C" >&6
16088 else
16089 cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h. */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16097 #define $ac_func innocuous_$ac_func
16098
16099 /* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char $ac_func (); below.
16101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16102 <limits.h> exists even on freestanding compilers. */
16103
16104 #ifdef __STDC__
16105 # include <limits.h>
16106 #else
16107 # include <assert.h>
16108 #endif
16109
16110 #undef $ac_func
16111
16112 /* Override any gcc2 internal prototype to avoid an error. */
16113 #ifdef __cplusplus
16114 extern "C"
16115 {
16116 #endif
16117 /* We use char because int might match the return type of a gcc2
16118 builtin and then its argument prototype would still apply. */
16119 char $ac_func ();
16120 /* The GNU C library defines this for functions which it implements
16121 to always fail with ENOSYS. Some functions are actually named
16122 something starting with __ and the normal name is an alias. */
16123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16124 choke me
16125 #else
16126 char (*f) () = $ac_func;
16127 #endif
16128 #ifdef __cplusplus
16129 }
16130 #endif
16131
16132 int
16133 main ()
16134 {
16135 return f != $ac_func;
16136 ;
16137 return 0;
16138 }
16139 _ACEOF
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16142 (eval $ac_link) 2>conftest.er1
16143 ac_status=$?
16144 grep -v '^ *+' conftest.er1 >conftest.err
16145 rm -f conftest.er1
16146 cat conftest.err >&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
16149 { ac_try='test -z "$ac_c_werror_flag"
16150 || test ! -s conftest.err'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try='test -s conftest$ac_exeext'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 eval "$as_ac_var=yes"
16163 else
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167 eval "$as_ac_var=no"
16168 fi
16169 rm -f conftest.err conftest.$ac_objext \
16170 conftest$ac_exeext conftest.$ac_ext
16171 fi
16172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16174 if test `eval echo '${'$as_ac_var'}'` = yes; then
16175 cat >>confdefs.h <<_ACEOF
16176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16177 _ACEOF
16178
16179 fi
16180 done
16181
16182
16183 # Check the return and argument types of ptrace. No canned test for
16184 # this, so roll our own.
16185 gdb_ptrace_headers='
16186 #if HAVE_SYS_TYPES_H
16187 # include <sys/types.h>
16188 #endif
16189 #if HAVE_SYS_PTRACE_H
16190 # include <sys/ptrace.h>
16191 #endif
16192 #if HAVE_UNISTD_H
16193 # include <unistd.h>
16194 #endif
16195 '
16196 # There is no point in checking if we don't have a prototype.
16197 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16198 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16199 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202 cat >conftest.$ac_ext <<_ACEOF
16203 /* confdefs.h. */
16204 _ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h. */
16208 $gdb_ptrace_headers
16209
16210 int
16211 main ()
16212 {
16213 #ifndef ptrace
16214 char *p = (char *) ptrace;
16215 #endif
16216
16217 ;
16218 return 0;
16219 }
16220 _ACEOF
16221 rm -f conftest.$ac_objext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16223 (eval $ac_compile) 2>conftest.er1
16224 ac_status=$?
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag"
16231 || test ! -s conftest.err'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest.$ac_objext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16240 ac_status=$?
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_cv_have_decl_ptrace=yes
16244 else
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248 ac_cv_have_decl_ptrace=no
16249 fi
16250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16251 fi
16252 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16253 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16254 if test $ac_cv_have_decl_ptrace = yes; then
16255
16256 cat >>confdefs.h <<_ACEOF
16257 #define HAVE_DECL_PTRACE 1
16258 _ACEOF
16259
16260
16261 else
16262 cat >>confdefs.h <<_ACEOF
16263 #define HAVE_DECL_PTRACE 0
16264 _ACEOF
16265
16266
16267 : ${gdb_cv_func_ptrace_ret='int'}
16268 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16269
16270 fi
16271
16272
16273 # Check return type.
16274 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16275 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16276 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16278 else
16279 cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h. */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 $gdb_ptrace_headers
16286 int
16287 main ()
16288 {
16289 extern int ptrace ();
16290 ;
16291 return 0;
16292 }
16293 _ACEOF
16294 rm -f conftest.$ac_objext
16295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296 (eval $ac_compile) 2>conftest.er1
16297 ac_status=$?
16298 grep -v '^ *+' conftest.er1 >conftest.err
16299 rm -f conftest.er1
16300 cat conftest.err >&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } &&
16303 { ac_try='test -z "$ac_c_werror_flag"
16304 || test ! -s conftest.err'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16307 ac_status=$?
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; } &&
16310 { ac_try='test -s conftest.$ac_objext'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; }; then
16316 gdb_cv_func_ptrace_ret='int'
16317 else
16318 echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16320
16321 gdb_cv_func_ptrace_ret='long'
16322 fi
16323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16324 fi
16325 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16326 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16327
16328 cat >>confdefs.h <<_ACEOF
16329 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16330 _ACEOF
16331
16332 # Check argument types.
16333 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16334 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16335 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16336 echo $ECHO_N "(cached) $ECHO_C" >&6
16337 else
16338
16339 for gdb_arg1 in 'int' 'long'; do
16340 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16341 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16342 for gdb_arg4 in 'int' 'long'; do
16343 cat >conftest.$ac_ext <<_ACEOF
16344 /* confdefs.h. */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16349 $gdb_ptrace_headers
16350 int
16351 main ()
16352 {
16353
16354 extern $gdb_cv_func_ptrace_ret
16355 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16356
16357 ;
16358 return 0;
16359 }
16360 _ACEOF
16361 rm -f conftest.$ac_objext
16362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16363 (eval $ac_compile) 2>conftest.er1
16364 ac_status=$?
16365 grep -v '^ *+' conftest.er1 >conftest.err
16366 rm -f conftest.er1
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
16370 { ac_try='test -z "$ac_c_werror_flag"
16371 || test ! -s conftest.err'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16374 ac_status=$?
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; } &&
16377 { ac_try='test -s conftest.$ac_objext'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
16383 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16384 break 4;
16385 else
16386 echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16388
16389 fi
16390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16391 for gdb_arg5 in 'int *' 'int' 'long'; do
16392 cat >conftest.$ac_ext <<_ACEOF
16393 /* confdefs.h. */
16394 _ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16398 $gdb_ptrace_headers
16399 int
16400 main ()
16401 {
16402
16403 extern $gdb_cv_func_ptrace_ret
16404 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16405
16406 ;
16407 return 0;
16408 }
16409 _ACEOF
16410 rm -f conftest.$ac_objext
16411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16412 (eval $ac_compile) 2>conftest.er1
16413 ac_status=$?
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } &&
16419 { ac_try='test -z "$ac_c_werror_flag"
16420 || test ! -s conftest.err'
16421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; } &&
16426 { ac_try='test -s conftest.$ac_objext'
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432
16433 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16434 break 5;
16435 else
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439 fi
16440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16441 done
16442 done
16443 done
16444 done
16445 done
16446 # Provide a safe default value.
16447 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16448
16449 fi
16450 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16451 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16452 ac_save_IFS=$IFS; IFS=','
16453 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16454 IFS=$ac_save_IFS
16455 shift
16456
16457 cat >>confdefs.h <<_ACEOF
16458 #define PTRACE_TYPE_ARG3 $3
16459 _ACEOF
16460
16461 if test -n "$5"; then
16462
16463 cat >>confdefs.h <<_ACEOF
16464 #define PTRACE_TYPE_ARG5 $5
16465 _ACEOF
16466
16467 fi
16468
16469 if test "$cross_compiling" = no; then
16470 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16471 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16472 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475 if test "$cross_compiling" = yes; then
16476 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16477 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16478 { (exit 1); exit 1; }; }
16479 else
16480 cat >conftest.$ac_ext <<_ACEOF
16481 /* confdefs.h. */
16482 _ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16486 #if HAVE_UNISTD_H
16487 # include <unistd.h>
16488 #endif
16489
16490 int
16491 main ()
16492 {
16493 /* If this system has a BSD-style setpgrp which takes arguments,
16494 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16495 exit successfully. */
16496 exit (setpgrp (1,1) == -1 ? 0 : 1);
16497 ;
16498 return 0;
16499 }
16500 _ACEOF
16501 rm -f conftest$ac_exeext
16502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16503 (eval $ac_link) 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; }; then
16512 ac_cv_func_setpgrp_void=no
16513 else
16514 echo "$as_me: program exited with status $ac_status" >&5
16515 echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16517
16518 ( exit $ac_status )
16519 ac_cv_func_setpgrp_void=yes
16520 fi
16521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16522 fi
16523 fi
16524 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16525 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16526 if test $ac_cv_func_setpgrp_void = yes; then
16527
16528 cat >>confdefs.h <<\_ACEOF
16529 #define SETPGRP_VOID 1
16530 _ACEOF
16531
16532 fi
16533
16534 else
16535 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16536 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16537 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16539 else
16540 cat >conftest.$ac_ext <<_ACEOF
16541 /* confdefs.h. */
16542 _ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546
16547 #include <unistd.h>
16548
16549 int
16550 main ()
16551 {
16552
16553 if (setpgrp(1,1) == -1)
16554 exit (0);
16555 else
16556 exit (1);
16557
16558 ;
16559 return 0;
16560 }
16561 _ACEOF
16562 rm -f conftest.$ac_objext
16563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16564 (eval $ac_compile) 2>conftest.er1
16565 ac_status=$?
16566 grep -v '^ *+' conftest.er1 >conftest.err
16567 rm -f conftest.er1
16568 cat conftest.err >&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } &&
16571 { ac_try='test -z "$ac_c_werror_flag"
16572 || test ! -s conftest.err'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; } &&
16578 { ac_try='test -s conftest.$ac_objext'
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16584 ac_cv_func_setpgrp_void=no
16585 else
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16588
16589 ac_cv_func_setpgrp_void=yes
16590 fi
16591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16592 fi
16593 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16594 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16595 if test $ac_cv_func_setpgrp_void = yes; then
16596 cat >>confdefs.h <<\_ACEOF
16597 #define SETPGRP_VOID 1
16598 _ACEOF
16599
16600 fi
16601 fi
16602
16603 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16604 # since sigsetjmp might only be defined as a macro.
16605 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16606 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16607 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16609 else
16610 cat >conftest.$ac_ext <<_ACEOF
16611 /* confdefs.h. */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16616
16617 #include <setjmp.h>
16618
16619 int
16620 main ()
16621 {
16622 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16623 ;
16624 return 0;
16625 }
16626 _ACEOF
16627 rm -f conftest.$ac_objext
16628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16629 (eval $ac_compile) 2>conftest.er1
16630 ac_status=$?
16631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
16636 { ac_try='test -z "$ac_c_werror_flag"
16637 || test ! -s conftest.err'
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; } &&
16643 { ac_try='test -s conftest.$ac_objext'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 gdb_cv_func_sigsetjmp=yes
16650 else
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654 gdb_cv_func_sigsetjmp=no
16655 fi
16656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16657 fi
16658 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16659 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16660 if test $gdb_cv_func_sigsetjmp = yes; then
16661
16662 cat >>confdefs.h <<\_ACEOF
16663 #define HAVE_SIGSETJMP 1
16664 _ACEOF
16665
16666 fi
16667
16668 # Assume we'll default to using the included libiberty regex.
16669 gdb_use_included_regex=yes
16670
16671 # However, if the system regex is GNU regex, then default to *not*
16672 # using the included regex.
16673 echo "$as_me:$LINENO: checking for GNU regex" >&5
16674 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16675 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 else
16678 cat >conftest.$ac_ext <<_ACEOF
16679 /* confdefs.h. */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 #include <gnu-versions.h>
16685 int
16686 main ()
16687 {
16688 #define REGEX_INTERFACE_VERSION 1
16689 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16690 # error "Version mismatch"
16691 #endif
16692 ;
16693 return 0;
16694 }
16695 _ACEOF
16696 rm -f conftest.$ac_objext
16697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16698 (eval $ac_compile) 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try='test -z "$ac_c_werror_flag"
16706 || test ! -s conftest.err'
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; } &&
16712 { ac_try='test -s conftest.$ac_objext'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718 gdb_cv_have_gnu_regex=yes
16719 else
16720 echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16722
16723 gdb_cv_have_gnu_regex=no
16724 fi
16725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16726 fi
16727 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16728 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16729 if test $gdb_cv_have_gnu_regex = yes; then
16730 gdb_use_included_regex=no
16731 fi
16732
16733
16734 # Check whether --with-included-regex or --without-included-regex was given.
16735 if test "${with_included_regex+set}" = set; then
16736 withval="$with_included_regex"
16737 gdb_with_regex=$withval
16738 else
16739 gdb_with_regex=$gdb_use_included_regex
16740 fi;
16741 if test "$gdb_with_regex" = yes; then
16742
16743 cat >>confdefs.h <<\_ACEOF
16744 #define USE_INCLUDED_REGEX 1
16745 _ACEOF
16746
16747 fi
16748
16749 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16750 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16751 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16752 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h. */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 #include <sys/param.h>
16762 #include <sys/proc.h>
16763
16764
16765 int
16766 main ()
16767 {
16768 static struct thread ac_aggr;
16769 if (ac_aggr.td_pcb)
16770 return 0;
16771 ;
16772 return 0;
16773 }
16774 _ACEOF
16775 rm -f conftest.$ac_objext
16776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16777 (eval $ac_compile) 2>conftest.er1
16778 ac_status=$?
16779 grep -v '^ *+' conftest.er1 >conftest.err
16780 rm -f conftest.er1
16781 cat conftest.err >&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } &&
16784 { ac_try='test -z "$ac_c_werror_flag"
16785 || test ! -s conftest.err'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; } &&
16791 { ac_try='test -s conftest.$ac_objext'
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; }; then
16797 ac_cv_member_struct_thread_td_pcb=yes
16798 else
16799 echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16801
16802 cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h. */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 #include <sys/param.h>
16809 #include <sys/proc.h>
16810
16811
16812 int
16813 main ()
16814 {
16815 static struct thread ac_aggr;
16816 if (sizeof ac_aggr.td_pcb)
16817 return 0;
16818 ;
16819 return 0;
16820 }
16821 _ACEOF
16822 rm -f conftest.$ac_objext
16823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16824 (eval $ac_compile) 2>conftest.er1
16825 ac_status=$?
16826 grep -v '^ *+' conftest.er1 >conftest.err
16827 rm -f conftest.er1
16828 cat conftest.err >&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } &&
16831 { ac_try='test -z "$ac_c_werror_flag"
16832 || test ! -s conftest.err'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16835 ac_status=$?
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; } &&
16838 { ac_try='test -s conftest.$ac_objext'
16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 ac_cv_member_struct_thread_td_pcb=yes
16845 else
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16848
16849 ac_cv_member_struct_thread_td_pcb=no
16850 fi
16851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16852 fi
16853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16854 fi
16855 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16856 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16857 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16858
16859 cat >>confdefs.h <<_ACEOF
16860 #define HAVE_STRUCT_THREAD_TD_PCB 1
16861 _ACEOF
16862
16863
16864 fi
16865
16866
16867 # See if <sys/lwp.h> defines `struct lwp`.
16868 echo "$as_me:$LINENO: checking for struct lwp" >&5
16869 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16870 if test "${gdb_cv_struct_lwp+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16872 else
16873 cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h. */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 #include <sys/param.h>
16880 #include <sys/lwp.h>
16881 int
16882 main ()
16883 {
16884 struct lwp l;
16885 ;
16886 return 0;
16887 }
16888 _ACEOF
16889 rm -f conftest.$ac_objext
16890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16891 (eval $ac_compile) 2>conftest.er1
16892 ac_status=$?
16893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } &&
16898 { ac_try='test -z "$ac_c_werror_flag"
16899 || test ! -s conftest.err'
16900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901 (eval $ac_try) 2>&5
16902 ac_status=$?
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; } &&
16905 { ac_try='test -s conftest.$ac_objext'
16906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; }; then
16911 gdb_cv_struct_lwp=yes
16912 else
16913 echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16915
16916 gdb_cv_struct_lwp=no
16917 fi
16918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16919 fi
16920 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16921 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16922 if test $gdb_cv_struct_lwp = yes; then
16923
16924 cat >>confdefs.h <<\_ACEOF
16925 #define HAVE_STRUCT_LWP 1
16926 _ACEOF
16927
16928 fi
16929
16930 # See if <machine/reg.h> degines `struct reg'.
16931 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16932 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16933 if test "${gdb_cv_struct_reg+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935 else
16936 cat >conftest.$ac_ext <<_ACEOF
16937 /* confdefs.h. */
16938 _ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h. */
16942 #include <sys/types.h>
16943 #include <machine/reg.h>
16944 int
16945 main ()
16946 {
16947 struct reg r;
16948 ;
16949 return 0;
16950 }
16951 _ACEOF
16952 rm -f conftest.$ac_objext
16953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16954 (eval $ac_compile) 2>conftest.er1
16955 ac_status=$?
16956 grep -v '^ *+' conftest.er1 >conftest.err
16957 rm -f conftest.er1
16958 cat conftest.err >&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } &&
16961 { ac_try='test -z "$ac_c_werror_flag"
16962 || test ! -s conftest.err'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; } &&
16968 { ac_try='test -s conftest.$ac_objext'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16971 ac_status=$?
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 gdb_cv_struct_reg=yes
16975 else
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16978
16979 gdb_cv_struct_reg=no
16980 fi
16981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16982 fi
16983 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16984 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16985 if test $gdb_cv_struct_reg = yes; then
16986
16987 cat >>confdefs.h <<\_ACEOF
16988 #define HAVE_STRUCT_REG 1
16989 _ACEOF
16990
16991 fi
16992
16993 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16994 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16995 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16996 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16997 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
16999 else
17000 cat >conftest.$ac_ext <<_ACEOF
17001 /* confdefs.h. */
17002 _ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17006 #include <machine/reg.h>
17007
17008 int
17009 main ()
17010 {
17011 static struct reg ac_aggr;
17012 if (ac_aggr.r_fs)
17013 return 0;
17014 ;
17015 return 0;
17016 }
17017 _ACEOF
17018 rm -f conftest.$ac_objext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17020 (eval $ac_compile) 2>conftest.er1
17021 ac_status=$?
17022 grep -v '^ *+' conftest.er1 >conftest.err
17023 rm -f conftest.er1
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -z "$ac_c_werror_flag"
17028 || test ! -s conftest.err'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest.$ac_objext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_cv_member_struct_reg_r_fs=yes
17041 else
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 cat >conftest.$ac_ext <<_ACEOF
17046 /* confdefs.h. */
17047 _ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h. */
17051 #include <machine/reg.h>
17052
17053 int
17054 main ()
17055 {
17056 static struct reg ac_aggr;
17057 if (sizeof ac_aggr.r_fs)
17058 return 0;
17059 ;
17060 return 0;
17061 }
17062 _ACEOF
17063 rm -f conftest.$ac_objext
17064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17065 (eval $ac_compile) 2>conftest.er1
17066 ac_status=$?
17067 grep -v '^ *+' conftest.er1 >conftest.err
17068 rm -f conftest.er1
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } &&
17072 { ac_try='test -z "$ac_c_werror_flag"
17073 || test ! -s conftest.err'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_cv_member_struct_reg_r_fs=yes
17086 else
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17089
17090 ac_cv_member_struct_reg_r_fs=no
17091 fi
17092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17093 fi
17094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17095 fi
17096 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17097 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17098 if test $ac_cv_member_struct_reg_r_fs = yes; then
17099
17100 cat >>confdefs.h <<_ACEOF
17101 #define HAVE_STRUCT_REG_R_FS 1
17102 _ACEOF
17103
17104
17105 fi
17106 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17107 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17108 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 else
17111 cat >conftest.$ac_ext <<_ACEOF
17112 /* confdefs.h. */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17117 #include <machine/reg.h>
17118
17119 int
17120 main ()
17121 {
17122 static struct reg ac_aggr;
17123 if (ac_aggr.r_gs)
17124 return 0;
17125 ;
17126 return 0;
17127 }
17128 _ACEOF
17129 rm -f conftest.$ac_objext
17130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17131 (eval $ac_compile) 2>conftest.er1
17132 ac_status=$?
17133 grep -v '^ *+' conftest.er1 >conftest.err
17134 rm -f conftest.er1
17135 cat conftest.err >&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } &&
17138 { ac_try='test -z "$ac_c_werror_flag"
17139 || test ! -s conftest.err'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; } &&
17145 { ac_try='test -s conftest.$ac_objext'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; }; then
17151 ac_cv_member_struct_reg_r_gs=yes
17152 else
17153 echo "$as_me: failed program was:" >&5
17154 sed 's/^/| /' conftest.$ac_ext >&5
17155
17156 cat >conftest.$ac_ext <<_ACEOF
17157 /* confdefs.h. */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 #include <machine/reg.h>
17163
17164 int
17165 main ()
17166 {
17167 static struct reg ac_aggr;
17168 if (sizeof ac_aggr.r_gs)
17169 return 0;
17170 ;
17171 return 0;
17172 }
17173 _ACEOF
17174 rm -f conftest.$ac_objext
17175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17176 (eval $ac_compile) 2>conftest.er1
17177 ac_status=$?
17178 grep -v '^ *+' conftest.er1 >conftest.err
17179 rm -f conftest.er1
17180 cat conftest.err >&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } &&
17183 { ac_try='test -z "$ac_c_werror_flag"
17184 || test ! -s conftest.err'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest.$ac_objext'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196 ac_cv_member_struct_reg_r_gs=yes
17197 else
17198 echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17200
17201 ac_cv_member_struct_reg_r_gs=no
17202 fi
17203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17204 fi
17205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17206 fi
17207 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17208 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17209 if test $ac_cv_member_struct_reg_r_gs = yes; then
17210
17211 cat >>confdefs.h <<_ACEOF
17212 #define HAVE_STRUCT_REG_R_GS 1
17213 _ACEOF
17214
17215
17216 fi
17217
17218
17219 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17220 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17221 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17222 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225 cat >conftest.$ac_ext <<_ACEOF
17226 /* confdefs.h. */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 #include <sys/ptrace.h>
17232 int
17233 main ()
17234 {
17235 PTRACE_GETREGS;
17236 ;
17237 return 0;
17238 }
17239 _ACEOF
17240 rm -f conftest.$ac_objext
17241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17242 (eval $ac_compile) 2>conftest.er1
17243 ac_status=$?
17244 grep -v '^ *+' conftest.er1 >conftest.err
17245 rm -f conftest.er1
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } &&
17249 { ac_try='test -z "$ac_c_werror_flag"
17250 || test ! -s conftest.err'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest.$ac_objext'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; }; then
17262 gdb_cv_have_ptrace_getregs=yes
17263 else
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17266
17267 gdb_cv_have_ptrace_getregs=no
17268 fi
17269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17270 fi
17271
17272 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17273 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17274 if test $gdb_cv_have_ptrace_getregs = yes; then
17275 cat >>confdefs.h <<\_ACEOF
17276 #define HAVE_PTRACE_GETREGS 1
17277 _ACEOF
17278
17279 fi
17280
17281 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17282 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17283 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17284 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17286 else
17287 cat >conftest.$ac_ext <<_ACEOF
17288 /* confdefs.h. */
17289 _ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17293 #include <sys/ptrace.h>
17294 int
17295 main ()
17296 {
17297 PTRACE_GETFPXREGS;
17298 ;
17299 return 0;
17300 }
17301 _ACEOF
17302 rm -f conftest.$ac_objext
17303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17304 (eval $ac_compile) 2>conftest.er1
17305 ac_status=$?
17306 grep -v '^ *+' conftest.er1 >conftest.err
17307 rm -f conftest.er1
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } &&
17311 { ac_try='test -z "$ac_c_werror_flag"
17312 || test ! -s conftest.err'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17315 ac_status=$?
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; } &&
17318 { ac_try='test -s conftest.$ac_objext'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; }; then
17324 gdb_cv_have_ptrace_getfpxregs=yes
17325 else
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17328
17329 gdb_cv_have_ptrace_getfpxregs=no
17330 fi
17331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17332 fi
17333
17334 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17335 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17336 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17337 cat >>confdefs.h <<\_ACEOF
17338 #define HAVE_PTRACE_GETFPXREGS 1
17339 _ACEOF
17340
17341 fi
17342
17343 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17344 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17345 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17346 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 else
17349 cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h. */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355 #include <sys/types.h>
17356 #include <sys/ptrace.h>
17357 int
17358 main ()
17359 {
17360 PT_GETDBREGS;
17361 ;
17362 return 0;
17363 }
17364 _ACEOF
17365 rm -f conftest.$ac_objext
17366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17367 (eval $ac_compile) 2>conftest.er1
17368 ac_status=$?
17369 grep -v '^ *+' conftest.er1 >conftest.err
17370 rm -f conftest.er1
17371 cat conftest.err >&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } &&
17374 { ac_try='test -z "$ac_c_werror_flag"
17375 || test ! -s conftest.err'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; } &&
17381 { ac_try='test -s conftest.$ac_objext'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17384 ac_status=$?
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
17387 gdb_cv_have_pt_getdbregs=yes
17388 else
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17391
17392 gdb_cv_have_pt_getdbregs=no
17393 fi
17394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17395 fi
17396
17397 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17398 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17399 if test $gdb_cv_have_pt_getdbregs = yes; then
17400 cat >>confdefs.h <<\_ACEOF
17401 #define HAVE_PT_GETDBREGS 1
17402 _ACEOF
17403
17404 fi
17405
17406 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17407 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17408 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17409 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412 cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h. */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 #include <sys/types.h>
17419 #include <sys/ptrace.h>
17420 int
17421 main ()
17422 {
17423 PT_GETXMMREGS;
17424 ;
17425 return 0;
17426 }
17427 _ACEOF
17428 rm -f conftest.$ac_objext
17429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17430 (eval $ac_compile) 2>conftest.er1
17431 ac_status=$?
17432 grep -v '^ *+' conftest.er1 >conftest.err
17433 rm -f conftest.er1
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -z "$ac_c_werror_flag"
17438 || test ! -s conftest.err'
17439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440 (eval $ac_try) 2>&5
17441 ac_status=$?
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest.$ac_objext'
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17447 ac_status=$?
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; }; then
17450 gdb_cv_have_pt_getxmmregs=yes
17451 else
17452 echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17454
17455 gdb_cv_have_pt_getxmmregs=no
17456 fi
17457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17458 fi
17459
17460 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17461 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17462 if test $gdb_cv_have_pt_getxmmregs = yes; then
17463 cat >>confdefs.h <<\_ACEOF
17464 #define HAVE_PT_GETXMMREGS 1
17465 _ACEOF
17466
17467 fi
17468
17469 # See if stdint.h provides the uintptr_t type.
17470 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
17471 echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
17472 echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
17473 if test "${gdb_cv_have_uintptr_t+set}" = set; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 else
17476 cat >conftest.$ac_ext <<_ACEOF
17477 /* confdefs.h. */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17482 #include <stdint.h>
17483 int
17484 main ()
17485 {
17486 uintptr_t foo = 0;
17487 ;
17488 return 0;
17489 }
17490 _ACEOF
17491 rm -f conftest.$ac_objext
17492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17493 (eval $ac_compile) 2>conftest.er1
17494 ac_status=$?
17495 grep -v '^ *+' conftest.er1 >conftest.err
17496 rm -f conftest.er1
17497 cat conftest.err >&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try='test -z "$ac_c_werror_flag"
17501 || test ! -s conftest.err'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest.$ac_objext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 gdb_cv_have_uintptr_t=yes
17514 else
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518 gdb_cv_have_uintptr_t=no
17519 fi
17520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17521 fi
17522 echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
17523 echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
17524 if test $gdb_cv_have_uintptr_t = yes; then
17525
17526 cat >>confdefs.h <<\_ACEOF
17527 #define HAVE_UINTPTR_T 1
17528 _ACEOF
17529
17530 fi
17531
17532 # If we are configured native on GNU/Linux, work around problems with
17533 # sys/procfs.h
17534 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
17535
17536 if test "${target}" = "${host}"; then
17537 case "${host}" in
17538 i[3456]86-*-linux*)
17539 cat >>confdefs.h <<\_ACEOF
17540 #define START_INFERIOR_TRAPS_EXPECTED 2
17541 _ACEOF
17542
17543 cat >>confdefs.h <<\_ACEOF
17544 #define sys_quotactl 1
17545 _ACEOF
17546
17547 ;;
17548 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17549 cat >>confdefs.h <<\_ACEOF
17550 #define NEW_PROC_API 1
17551 _ACEOF
17552
17553 ;;
17554 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17555 cat >>confdefs.h <<\_ACEOF
17556 #define NEW_PROC_API 1
17557 _ACEOF
17558
17559 ;;
17560 mips-sgi-irix5*)
17561 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17562 cat >>confdefs.h <<\_ACEOF
17563 #define _KMEMUSER 1
17564 _ACEOF
17565
17566 ;;
17567 esac
17568 fi
17569
17570 if test "$ac_cv_header_sys_procfs_h" = yes; then
17571 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17572 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17573 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 else
17576 cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h. */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17582
17583 #define _SYSCALL32
17584 #include <sys/procfs.h>
17585 int
17586 main ()
17587 {
17588 pstatus_t avar
17589 ;
17590 return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595 (eval $ac_compile) 2>conftest.er1
17596 ac_status=$?
17597 grep -v '^ *+' conftest.er1 >conftest.err
17598 rm -f conftest.er1
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest.$ac_objext'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17616 else
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17619
17620 bfd_cv_have_sys_procfs_type_pstatus_t=no
17621
17622 fi
17623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17624 fi
17625
17626 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17627
17628 cat >>confdefs.h <<\_ACEOF
17629 #define HAVE_PSTATUS_T 1
17630 _ACEOF
17631
17632 fi
17633 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17634 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17635
17636 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17637 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17638 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17639 echo $ECHO_N "(cached) $ECHO_C" >&6
17640 else
17641 cat >conftest.$ac_ext <<_ACEOF
17642 /* confdefs.h. */
17643 _ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17647
17648 #define _SYSCALL32
17649 #include <sys/procfs.h>
17650 int
17651 main ()
17652 {
17653 prrun_t avar
17654 ;
17655 return 0;
17656 }
17657 _ACEOF
17658 rm -f conftest.$ac_objext
17659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17660 (eval $ac_compile) 2>conftest.er1
17661 ac_status=$?
17662 grep -v '^ *+' conftest.er1 >conftest.err
17663 rm -f conftest.er1
17664 cat conftest.err >&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } &&
17667 { ac_try='test -z "$ac_c_werror_flag"
17668 || test ! -s conftest.err'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } &&
17674 { ac_try='test -s conftest.$ac_objext'
17675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676 (eval $ac_try) 2>&5
17677 ac_status=$?
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; }; then
17680 bfd_cv_have_sys_procfs_type_prrun_t=yes
17681 else
17682 echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17684
17685 bfd_cv_have_sys_procfs_type_prrun_t=no
17686
17687 fi
17688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17689 fi
17690
17691 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17692
17693 cat >>confdefs.h <<\_ACEOF
17694 #define HAVE_PRRUN_T 1
17695 _ACEOF
17696
17697 fi
17698 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17699 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17700
17701 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17702 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17703 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 else
17706 cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h. */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712
17713 #define _SYSCALL32
17714 #include <sys/procfs.h>
17715 int
17716 main ()
17717 {
17718 gregset_t avar
17719 ;
17720 return 0;
17721 }
17722 _ACEOF
17723 rm -f conftest.$ac_objext
17724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17725 (eval $ac_compile) 2>conftest.er1
17726 ac_status=$?
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag"
17733 || test ! -s conftest.err'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; } &&
17739 { ac_try='test -s conftest.$ac_objext'
17740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741 (eval $ac_try) 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 bfd_cv_have_sys_procfs_type_gregset_t=yes
17746 else
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17749
17750 bfd_cv_have_sys_procfs_type_gregset_t=no
17751
17752 fi
17753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17754 fi
17755
17756 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17757
17758 cat >>confdefs.h <<\_ACEOF
17759 #define HAVE_GREGSET_T 1
17760 _ACEOF
17761
17762 fi
17763 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17764 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17765
17766 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17767 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17768 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17770 else
17771 cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h. */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17777
17778 #define _SYSCALL32
17779 #include <sys/procfs.h>
17780 int
17781 main ()
17782 {
17783 fpregset_t avar
17784 ;
17785 return 0;
17786 }
17787 _ACEOF
17788 rm -f conftest.$ac_objext
17789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17790 (eval $ac_compile) 2>conftest.er1
17791 ac_status=$?
17792 grep -v '^ *+' conftest.er1 >conftest.err
17793 rm -f conftest.er1
17794 cat conftest.err >&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); } &&
17797 { ac_try='test -z "$ac_c_werror_flag"
17798 || test ! -s conftest.err'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; } &&
17804 { ac_try='test -s conftest.$ac_objext'
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; }; then
17810 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17811 else
17812 echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17814
17815 bfd_cv_have_sys_procfs_type_fpregset_t=no
17816
17817 fi
17818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17819 fi
17820
17821 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17822
17823 cat >>confdefs.h <<\_ACEOF
17824 #define HAVE_FPREGSET_T 1
17825 _ACEOF
17826
17827 fi
17828 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17829 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17830
17831 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17832 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17833 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17835 else
17836 cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h. */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17842
17843 #define _SYSCALL32
17844 #include <sys/procfs.h>
17845 int
17846 main ()
17847 {
17848 prgregset_t avar
17849 ;
17850 return 0;
17851 }
17852 _ACEOF
17853 rm -f conftest.$ac_objext
17854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17855 (eval $ac_compile) 2>conftest.er1
17856 ac_status=$?
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -f conftest.er1
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
17862 { ac_try='test -z "$ac_c_werror_flag"
17863 || test ! -s conftest.err'
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest.$ac_objext'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17876 else
17877 echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 bfd_cv_have_sys_procfs_type_prgregset_t=no
17881
17882 fi
17883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17884 fi
17885
17886 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17887
17888 cat >>confdefs.h <<\_ACEOF
17889 #define HAVE_PRGREGSET_T 1
17890 _ACEOF
17891
17892 fi
17893 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17894 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17895
17896 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17897 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17898 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17900 else
17901 cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h. */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907
17908 #define _SYSCALL32
17909 #include <sys/procfs.h>
17910 int
17911 main ()
17912 {
17913 prfpregset_t avar
17914 ;
17915 return 0;
17916 }
17917 _ACEOF
17918 rm -f conftest.$ac_objext
17919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17920 (eval $ac_compile) 2>conftest.er1
17921 ac_status=$?
17922 grep -v '^ *+' conftest.er1 >conftest.err
17923 rm -f conftest.er1
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
17927 { ac_try='test -z "$ac_c_werror_flag"
17928 || test ! -s conftest.err'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest.$ac_objext'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17941 else
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17944
17945 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17946
17947 fi
17948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17949 fi
17950
17951 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17952
17953 cat >>confdefs.h <<\_ACEOF
17954 #define HAVE_PRFPREGSET_T 1
17955 _ACEOF
17956
17957 fi
17958 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17959 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17960
17961 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17962 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17963 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 else
17966 cat >conftest.$ac_ext <<_ACEOF
17967 /* confdefs.h. */
17968 _ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h. */
17972
17973 #define _SYSCALL32
17974 #include <sys/procfs.h>
17975 int
17976 main ()
17977 {
17978 prgregset32_t avar
17979 ;
17980 return 0;
17981 }
17982 _ACEOF
17983 rm -f conftest.$ac_objext
17984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17985 (eval $ac_compile) 2>conftest.er1
17986 ac_status=$?
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
17992 { ac_try='test -z "$ac_c_werror_flag"
17993 || test ! -s conftest.err'
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17996 ac_status=$?
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; } &&
17999 { ac_try='test -s conftest.$ac_objext'
18000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
18006 else
18007 echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18009
18010 bfd_cv_have_sys_procfs_type_prgregset32_t=no
18011
18012 fi
18013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18014 fi
18015
18016 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
18017
18018 cat >>confdefs.h <<\_ACEOF
18019 #define HAVE_PRGREGSET32_T 1
18020 _ACEOF
18021
18022 fi
18023 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18024 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
18025
18026 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18027 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18028 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 else
18031 cat >conftest.$ac_ext <<_ACEOF
18032 /* confdefs.h. */
18033 _ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18037
18038 #define _SYSCALL32
18039 #include <sys/procfs.h>
18040 int
18041 main ()
18042 {
18043 prfpregset32_t avar
18044 ;
18045 return 0;
18046 }
18047 _ACEOF
18048 rm -f conftest.$ac_objext
18049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18050 (eval $ac_compile) 2>conftest.er1
18051 ac_status=$?
18052 grep -v '^ *+' conftest.er1 >conftest.err
18053 rm -f conftest.er1
18054 cat conftest.err >&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
18057 { ac_try='test -z "$ac_c_werror_flag"
18058 || test ! -s conftest.err'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; } &&
18064 { ac_try='test -s conftest.$ac_objext'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
18071 else
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18076
18077 fi
18078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18079 fi
18080
18081 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
18082
18083 cat >>confdefs.h <<\_ACEOF
18084 #define HAVE_PRFPREGSET32_T 1
18085 _ACEOF
18086
18087 fi
18088 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18089 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18090
18091 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18092 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18093 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18095 else
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h. */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102
18103 #define _SYSCALL32
18104 #include <sys/procfs.h>
18105 int
18106 main ()
18107 {
18108 lwpid_t avar
18109 ;
18110 return 0;
18111 }
18112 _ACEOF
18113 rm -f conftest.$ac_objext
18114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115 (eval $ac_compile) 2>conftest.er1
18116 ac_status=$?
18117 grep -v '^ *+' conftest.er1 >conftest.err
18118 rm -f conftest.er1
18119 cat conftest.err >&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } &&
18122 { ac_try='test -z "$ac_c_werror_flag"
18123 || test ! -s conftest.err'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest.$ac_objext'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 bfd_cv_have_sys_procfs_type_lwpid_t=yes
18136 else
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18139
18140 bfd_cv_have_sys_procfs_type_lwpid_t=no
18141
18142 fi
18143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18144 fi
18145
18146 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18147
18148 cat >>confdefs.h <<\_ACEOF
18149 #define HAVE_LWPID_T 1
18150 _ACEOF
18151
18152 fi
18153 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18154 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18155
18156 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18157 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18158 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
18160 else
18161 cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h. */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167
18168 #define _SYSCALL32
18169 #include <sys/procfs.h>
18170 int
18171 main ()
18172 {
18173 psaddr_t avar
18174 ;
18175 return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext
18179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18180 (eval $ac_compile) 2>conftest.er1
18181 ac_status=$?
18182 grep -v '^ *+' conftest.er1 >conftest.err
18183 rm -f conftest.er1
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } &&
18187 { ac_try='test -z "$ac_c_werror_flag"
18188 || test ! -s conftest.err'
18189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190 (eval $ac_try) 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; } &&
18194 { ac_try='test -s conftest.$ac_objext'
18195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196 (eval $ac_try) 2>&5
18197 ac_status=$?
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; }; then
18200 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18201 else
18202 echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18204
18205 bfd_cv_have_sys_procfs_type_psaddr_t=no
18206
18207 fi
18208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18209 fi
18210
18211 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18212
18213 cat >>confdefs.h <<\_ACEOF
18214 #define HAVE_PSADDR_T 1
18215 _ACEOF
18216
18217 fi
18218 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18219 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18220
18221 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18222 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18223 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18225 else
18226 cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h. */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232
18233 #define _SYSCALL32
18234 #include <sys/procfs.h>
18235 int
18236 main ()
18237 {
18238 prsysent_t avar
18239 ;
18240 return 0;
18241 }
18242 _ACEOF
18243 rm -f conftest.$ac_objext
18244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18245 (eval $ac_compile) 2>conftest.er1
18246 ac_status=$?
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -z "$ac_c_werror_flag"
18253 || test ! -s conftest.err'
18254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255 (eval $ac_try) 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; } &&
18259 { ac_try='test -s conftest.$ac_objext'
18260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261 (eval $ac_try) 2>&5
18262 ac_status=$?
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; }; then
18265 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18266 else
18267 echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18269
18270 bfd_cv_have_sys_procfs_type_prsysent_t=no
18271
18272 fi
18273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18274 fi
18275
18276 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18277
18278 cat >>confdefs.h <<\_ACEOF
18279 #define HAVE_PRSYSENT_T 1
18280 _ACEOF
18281
18282 fi
18283 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18284 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18285
18286 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18287 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18288 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18289 echo $ECHO_N "(cached) $ECHO_C" >&6
18290 else
18291 cat >conftest.$ac_ext <<_ACEOF
18292 /* confdefs.h. */
18293 _ACEOF
18294 cat confdefs.h >>conftest.$ac_ext
18295 cat >>conftest.$ac_ext <<_ACEOF
18296 /* end confdefs.h. */
18297
18298 #define _SYSCALL32
18299 #include <sys/procfs.h>
18300 int
18301 main ()
18302 {
18303 pr_sigset_t avar
18304 ;
18305 return 0;
18306 }
18307 _ACEOF
18308 rm -f conftest.$ac_objext
18309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18310 (eval $ac_compile) 2>conftest.er1
18311 ac_status=$?
18312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
18317 { ac_try='test -z "$ac_c_werror_flag"
18318 || test ! -s conftest.err'
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try='test -s conftest.$ac_objext'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18331 else
18332 echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18334
18335 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18336
18337 fi
18338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18339 fi
18340
18341 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18342
18343 cat >>confdefs.h <<\_ACEOF
18344 #define HAVE_PR_SIGSET_T 1
18345 _ACEOF
18346
18347 fi
18348 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18349 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18350
18351 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18352 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18353 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18354 echo $ECHO_N "(cached) $ECHO_C" >&6
18355 else
18356 cat >conftest.$ac_ext <<_ACEOF
18357 /* confdefs.h. */
18358 _ACEOF
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h. */
18362
18363 #define _SYSCALL32
18364 #include <sys/procfs.h>
18365 int
18366 main ()
18367 {
18368 pr_sigaction64_t avar
18369 ;
18370 return 0;
18371 }
18372 _ACEOF
18373 rm -f conftest.$ac_objext
18374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18375 (eval $ac_compile) 2>conftest.er1
18376 ac_status=$?
18377 grep -v '^ *+' conftest.er1 >conftest.err
18378 rm -f conftest.er1
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } &&
18382 { ac_try='test -z "$ac_c_werror_flag"
18383 || test ! -s conftest.err'
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; } &&
18389 { ac_try='test -s conftest.$ac_objext'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18396 else
18397 echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18399
18400 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18401
18402 fi
18403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18404 fi
18405
18406 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18407
18408 cat >>confdefs.h <<\_ACEOF
18409 #define HAVE_PR_SIGACTION64_T 1
18410 _ACEOF
18411
18412 fi
18413 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18414 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18415
18416 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18417 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18418 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18420 else
18421 cat >conftest.$ac_ext <<_ACEOF
18422 /* confdefs.h. */
18423 _ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h. */
18427
18428 #define _SYSCALL32
18429 #include <sys/procfs.h>
18430 int
18431 main ()
18432 {
18433 pr_siginfo64_t avar
18434 ;
18435 return 0;
18436 }
18437 _ACEOF
18438 rm -f conftest.$ac_objext
18439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18440 (eval $ac_compile) 2>conftest.er1
18441 ac_status=$?
18442 grep -v '^ *+' conftest.er1 >conftest.err
18443 rm -f conftest.er1
18444 cat conftest.err >&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); } &&
18447 { ac_try='test -z "$ac_c_werror_flag"
18448 || test ! -s conftest.err'
18449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450 (eval $ac_try) 2>&5
18451 ac_status=$?
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); }; } &&
18454 { ac_try='test -s conftest.$ac_objext'
18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18457 ac_status=$?
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; }; then
18460 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18461 else
18462 echo "$as_me: failed program was:" >&5
18463 sed 's/^/| /' conftest.$ac_ext >&5
18464
18465 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18466
18467 fi
18468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18469 fi
18470
18471 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18472
18473 cat >>confdefs.h <<\_ACEOF
18474 #define HAVE_PR_SIGINFO64_T 1
18475 _ACEOF
18476
18477 fi
18478 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18479 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18480
18481
18482
18483
18484
18485 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18486 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18487 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18488 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18490 else
18491 if test "$cross_compiling" = yes; then
18492 gdb_cv_prfpregset_t_broken=yes
18493 else
18494 cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h. */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18500 #include <sys/procfs.h>
18501 int main ()
18502 {
18503 if (sizeof (prfpregset_t) == sizeof (void *))
18504 return 1;
18505 return 0;
18506 }
18507 _ACEOF
18508 rm -f conftest$ac_exeext
18509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18510 (eval $ac_link) 2>&5
18511 ac_status=$?
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515 (eval $ac_try) 2>&5
18516 ac_status=$?
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; }; then
18519 gdb_cv_prfpregset_t_broken=no
18520 else
18521 echo "$as_me: program exited with status $ac_status" >&5
18522 echo "$as_me: failed program was:" >&5
18523 sed 's/^/| /' conftest.$ac_ext >&5
18524
18525 ( exit $ac_status )
18526 gdb_cv_prfpregset_t_broken=yes
18527 fi
18528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18529 fi
18530 fi
18531
18532 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18533 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18534 if test $gdb_cv_prfpregset_t_broken = yes; then
18535 cat >>confdefs.h <<\_ACEOF
18536 #define PRFPREGSET_T_BROKEN 1
18537 _ACEOF
18538
18539 fi
18540 fi
18541
18542
18543 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18544 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18545 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548 cat >conftest.$ac_ext <<_ACEOF
18549 /* confdefs.h. */
18550 _ACEOF
18551 cat confdefs.h >>conftest.$ac_ext
18552 cat >>conftest.$ac_ext <<_ACEOF
18553 /* end confdefs.h. */
18554 #include <unistd.h>
18555 #include <sys/types.h>
18556 #include <sys/procfs.h>
18557
18558 int
18559 main ()
18560 {
18561
18562 int dummy;;
18563 dummy = ioctl(0, PIOCSET, &dummy);
18564
18565 ;
18566 return 0;
18567 }
18568 _ACEOF
18569 rm -f conftest.$ac_objext
18570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18571 (eval $ac_compile) 2>conftest.er1
18572 ac_status=$?
18573 grep -v '^ *+' conftest.er1 >conftest.err
18574 rm -f conftest.er1
18575 cat conftest.err >&5
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); } &&
18578 { ac_try='test -z "$ac_c_werror_flag"
18579 || test ! -s conftest.err'
18580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18581 (eval $ac_try) 2>&5
18582 ac_status=$?
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); }; } &&
18585 { ac_try='test -s conftest.$ac_objext'
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; }; then
18591 gdb_cv_have_procfs_piocset=yes
18592 else
18593 echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596 gdb_cv_have_procfs_piocset=no
18597 fi
18598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18599 fi
18600
18601 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18602 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18603 if test $gdb_cv_have_procfs_piocset = yes; then
18604 cat >>confdefs.h <<\_ACEOF
18605 #define HAVE_PROCFS_PIOCSET 1
18606 _ACEOF
18607
18608 fi
18609 fi
18610
18611 if test ${host} = ${target} ; then
18612
18613 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18614 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18615 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 else
18618 cat >conftest.$ac_ext <<_ACEOF
18619 /* confdefs.h. */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18624 #include <link.h>
18625 int
18626 main ()
18627 {
18628 struct link_map lm; (void) lm.l_addr;
18629 ;
18630 return 0;
18631 }
18632 _ACEOF
18633 rm -f conftest.$ac_objext
18634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18635 (eval $ac_compile) 2>conftest.er1
18636 ac_status=$?
18637 grep -v '^ *+' conftest.er1 >conftest.err
18638 rm -f conftest.er1
18639 cat conftest.err >&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } &&
18642 { ac_try='test -z "$ac_c_werror_flag"
18643 || test ! -s conftest.err'
18644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18645 (eval $ac_try) 2>&5
18646 ac_status=$?
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; } &&
18649 { ac_try='test -s conftest.$ac_objext'
18650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18651 (eval $ac_try) 2>&5
18652 ac_status=$?
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); }; }; then
18655 gdb_cv_have_struct_link_map_with_l_members=yes
18656 else
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18659
18660 gdb_cv_have_struct_link_map_with_l_members=no
18661 fi
18662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18663 fi
18664
18665 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18666 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18667 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18668 cat >>confdefs.h <<\_ACEOF
18669 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18670 _ACEOF
18671
18672 fi
18673
18674
18675 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18676 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18677 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18679 else
18680 cat >conftest.$ac_ext <<_ACEOF
18681 /* confdefs.h. */
18682 _ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18686 #include <sys/types.h>
18687 #include <link.h>
18688 int
18689 main ()
18690 {
18691 struct link_map lm; (void) lm.lm_addr;
18692 ;
18693 return 0;
18694 }
18695 _ACEOF
18696 rm -f conftest.$ac_objext
18697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18698 (eval $ac_compile) 2>conftest.er1
18699 ac_status=$?
18700 grep -v '^ *+' conftest.er1 >conftest.err
18701 rm -f conftest.er1
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } &&
18705 { ac_try='test -z "$ac_c_werror_flag"
18706 || test ! -s conftest.err'
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18709 ac_status=$?
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; } &&
18712 { ac_try='test -s conftest.$ac_objext'
18713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18714 (eval $ac_try) 2>&5
18715 ac_status=$?
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; }; then
18718 gdb_cv_have_struct_link_map_with_lm_members=yes
18719 else
18720 echo "$as_me: failed program was:" >&5
18721 sed 's/^/| /' conftest.$ac_ext >&5
18722
18723 gdb_cv_have_struct_link_map_with_lm_members=no
18724 fi
18725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18726 fi
18727
18728 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18729 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18730 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18731 cat >>confdefs.h <<\_ACEOF
18732 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18733 _ACEOF
18734
18735 fi
18736
18737
18738 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18739 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18740 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 else
18743 cat >conftest.$ac_ext <<_ACEOF
18744 /* confdefs.h. */
18745 _ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h. */
18749 #include <sys/types.h>
18750 #ifdef HAVE_NLIST_H
18751 #include <nlist.h>
18752 #endif
18753 #include <link.h>
18754 int
18755 main ()
18756 {
18757 struct so_map lm; (void) lm.som_addr;
18758 ;
18759 return 0;
18760 }
18761 _ACEOF
18762 rm -f conftest.$ac_objext
18763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18764 (eval $ac_compile) 2>conftest.er1
18765 ac_status=$?
18766 grep -v '^ *+' conftest.er1 >conftest.err
18767 rm -f conftest.er1
18768 cat conftest.err >&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } &&
18771 { ac_try='test -z "$ac_c_werror_flag"
18772 || test ! -s conftest.err'
18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774 (eval $ac_try) 2>&5
18775 ac_status=$?
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; } &&
18778 { ac_try='test -s conftest.$ac_objext'
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; }; then
18784 gdb_cv_have_struct_so_map_with_som_members=yes
18785 else
18786 echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18788
18789 gdb_cv_have_struct_so_map_with_som_members=no
18790 fi
18791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18792 fi
18793
18794 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18795 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18796 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18797 cat >>confdefs.h <<\_ACEOF
18798 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18799 _ACEOF
18800
18801 fi
18802
18803
18804 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18805 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18806 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 else
18809 cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h. */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18815 #define _SYSCALL32
18816 #include <sys/link.h>
18817 int
18818 main ()
18819 {
18820 struct link_map32 l;
18821 ;
18822 return 0;
18823 }
18824 _ACEOF
18825 rm -f conftest.$ac_objext
18826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18827 (eval $ac_compile) 2>conftest.er1
18828 ac_status=$?
18829 grep -v '^ *+' conftest.er1 >conftest.err
18830 rm -f conftest.er1
18831 cat conftest.err >&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } &&
18834 { ac_try='test -z "$ac_c_werror_flag"
18835 || test ! -s conftest.err'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest.$ac_objext'
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; }; then
18847 gdb_cv_have_struct_link_map32=yes
18848 else
18849 echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18851
18852 gdb_cv_have_struct_link_map32=no
18853 fi
18854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18855 fi
18856
18857 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18858 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18859 if test $gdb_cv_have_struct_link_map32 = yes; then
18860 cat >>confdefs.h <<\_ACEOF
18861 #define HAVE_STRUCT_LINK_MAP32 1
18862 _ACEOF
18863
18864 cat >>confdefs.h <<\_ACEOF
18865 #define _SYSCALL32 1
18866 _ACEOF
18867
18868 fi
18869 fi
18870
18871 # Check if the compiler supports the `long long' type.
18872
18873 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18874 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18875 if test "${gdb_cv_c_long_long+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878 cat >conftest.$ac_ext <<_ACEOF
18879 /* confdefs.h. */
18880 _ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h. */
18884 extern long long foo;
18885 int
18886 main ()
18887 {
18888 switch (foo & 2) { case 0: return 1; }
18889 ;
18890 return 0;
18891 }
18892 _ACEOF
18893 rm -f conftest.$ac_objext
18894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18895 (eval $ac_compile) 2>conftest.er1
18896 ac_status=$?
18897 grep -v '^ *+' conftest.er1 >conftest.err
18898 rm -f conftest.er1
18899 cat conftest.err >&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } &&
18902 { ac_try='test -z "$ac_c_werror_flag"
18903 || test ! -s conftest.err'
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; } &&
18909 { ac_try='test -s conftest.$ac_objext'
18910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911 (eval $ac_try) 2>&5
18912 ac_status=$?
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18915 gdb_cv_c_long_long=yes
18916 else
18917 echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.$ac_ext >&5
18919
18920 gdb_cv_c_long_long=no
18921 fi
18922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18923 fi
18924 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18925 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18926 if test $gdb_cv_c_long_long = yes; then
18927
18928 cat >>confdefs.h <<\_ACEOF
18929 #define CC_HAS_LONG_LONG 1
18930 _ACEOF
18931
18932 fi
18933
18934 # Check if the compiler and runtime support printing long longs.
18935
18936 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18937 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18938 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18940 else
18941 if test "$cross_compiling" = yes; then
18942 gdb_cv_printf_has_long_long=no
18943 else
18944 cat >conftest.$ac_ext <<_ACEOF
18945 /* confdefs.h. */
18946 _ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
18949 /* end confdefs.h. */
18950 $ac_includes_default
18951 int
18952 main ()
18953 {
18954 char buf[32];
18955 long long l = 0;
18956 l = (l << 16) + 0x0123;
18957 l = (l << 16) + 0x4567;
18958 l = (l << 16) + 0x89ab;
18959 l = (l << 16) + 0xcdef;
18960 sprintf (buf, "0x%016llx", l);
18961 return (strcmp ("0x0123456789abcdef", buf));
18962 ;
18963 return 0;
18964 }
18965 _ACEOF
18966 rm -f conftest$ac_exeext
18967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18968 (eval $ac_link) 2>&5
18969 ac_status=$?
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; }; then
18977 gdb_cv_printf_has_long_long=yes
18978 else
18979 echo "$as_me: program exited with status $ac_status" >&5
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18982
18983 ( exit $ac_status )
18984 gdb_cv_printf_has_long_long=no
18985 fi
18986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18987 fi
18988 fi
18989 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18990 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18991 if test $gdb_cv_printf_has_long_long = yes; then
18992
18993 cat >>confdefs.h <<\_ACEOF
18994 #define PRINTF_HAS_LONG_LONG 1
18995 _ACEOF
18996
18997 fi
18998
18999 # Check if the compiler supports the `long double' type. We can't use
19000 # AC_C_LONG_DOUBLE because that one does additional checks on the
19001 # constants defined in <float.h> that fail on some systems,
19002 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
19003
19004 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19005 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
19006 if test "${gdb_cv_c_long_double+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009 cat >conftest.$ac_ext <<_ACEOF
19010 /* confdefs.h. */
19011 _ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h. */
19015 long double foo;
19016 _ACEOF
19017 rm -f conftest.$ac_objext
19018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19019 (eval $ac_compile) 2>conftest.er1
19020 ac_status=$?
19021 grep -v '^ *+' conftest.er1 >conftest.err
19022 rm -f conftest.er1
19023 cat conftest.err >&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } &&
19026 { ac_try='test -z "$ac_c_werror_flag"
19027 || test ! -s conftest.err'
19028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029 (eval $ac_try) 2>&5
19030 ac_status=$?
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; } &&
19033 { ac_try='test -s conftest.$ac_objext'
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 gdb_cv_c_long_double=yes
19040 else
19041 echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19043
19044 gdb_cv_c_long_double=no
19045 fi
19046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19047 fi
19048 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19049 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19050 if test $gdb_cv_c_long_double = yes; then
19051
19052 cat >>confdefs.h <<\_ACEOF
19053 #define HAVE_LONG_DOUBLE 1
19054 _ACEOF
19055
19056 fi
19057
19058 # Check if the compiler and runtime support printing long doubles.
19059
19060 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19061 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19062 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19064 else
19065 if test "$cross_compiling" = yes; then
19066 gdb_cv_printf_has_long_double=no
19067 else
19068 cat >conftest.$ac_ext <<_ACEOF
19069 /* confdefs.h. */
19070 _ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19074 $ac_includes_default
19075 int
19076 main ()
19077 {
19078 char buf[16];
19079 long double f = 3.141592653;
19080 sprintf (buf, "%Lg", f);
19081 return (strncmp ("3.14159", buf, 7));
19082 ;
19083 return 0;
19084 }
19085 _ACEOF
19086 rm -f conftest$ac_exeext
19087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19088 (eval $ac_link) 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 gdb_cv_printf_has_long_double=yes
19098 else
19099 echo "$as_me: program exited with status $ac_status" >&5
19100 echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19102
19103 ( exit $ac_status )
19104 gdb_cv_printf_has_long_double=no
19105 fi
19106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19107 fi
19108 fi
19109 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19110 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19111 if test $gdb_cv_printf_has_long_double = yes; then
19112
19113 cat >>confdefs.h <<\_ACEOF
19114 #define PRINTF_HAS_LONG_DOUBLE 1
19115 _ACEOF
19116
19117 fi
19118
19119 # Check if the compiler and runtime support scanning long doubles.
19120
19121 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19122 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19123 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 else
19126 if test "$cross_compiling" = yes; then
19127 gdb_cv_scanf_has_long_double=no
19128 else
19129 cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h. */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19135 #include <stdio.h>
19136 int
19137 main ()
19138 {
19139 char *buf = "3.141592653";
19140 long double f = 0;
19141 sscanf (buf, "%Lg", &f);
19142 return !(f > 3.14159 && f < 3.14160);
19143 ;
19144 return 0;
19145 }
19146 _ACEOF
19147 rm -f conftest$ac_exeext
19148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19149 (eval $ac_link) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 gdb_cv_scanf_has_long_double=yes
19159 else
19160 echo "$as_me: program exited with status $ac_status" >&5
19161 echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19163
19164 ( exit $ac_status )
19165 gdb_cv_scanf_has_long_double=no
19166 fi
19167 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19168 fi
19169 fi
19170 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19171 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19172 if test $gdb_cv_scanf_has_long_double = yes; then
19173
19174 cat >>confdefs.h <<\_ACEOF
19175 #define SCANF_HAS_LONG_DOUBLE 1
19176 _ACEOF
19177
19178 fi
19179
19180 case ${host_os} in
19181 aix*)
19182 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19183 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19184 if test "${gdb_cv_bigtoc+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 else
19187
19188 SAVE_LDFLAGS=$LDFLAGS
19189
19190 case $GCC in
19191 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19192 *) gdb_cv_bigtoc=-bbigtoc ;;
19193 esac
19194
19195 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19196 cat >conftest.$ac_ext <<_ACEOF
19197 /* confdefs.h. */
19198 _ACEOF
19199 cat confdefs.h >>conftest.$ac_ext
19200 cat >>conftest.$ac_ext <<_ACEOF
19201 /* end confdefs.h. */
19202
19203 int
19204 main ()
19205 {
19206 int i;
19207 ;
19208 return 0;
19209 }
19210 _ACEOF
19211 rm -f conftest.$ac_objext conftest$ac_exeext
19212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19213 (eval $ac_link) 2>conftest.er1
19214 ac_status=$?
19215 grep -v '^ *+' conftest.er1 >conftest.err
19216 rm -f conftest.er1
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } &&
19220 { ac_try='test -z "$ac_c_werror_flag"
19221 || test ! -s conftest.err'
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; } &&
19227 { ac_try='test -s conftest$ac_exeext'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 :
19234 else
19235 echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19237
19238 gdb_cv_bigtoc=
19239 fi
19240 rm -f conftest.err conftest.$ac_objext \
19241 conftest$ac_exeext conftest.$ac_ext
19242 LDFLAGS="${SAVE_LDFLAGS}"
19243
19244 fi
19245 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19246 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19247 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19248 ;;
19249 esac
19250
19251
19252
19253 if test ${build} = ${host} -a ${host} = ${target} ; then
19254 case ${host_os} in
19255 hpux*)
19256 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19257 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19258 if test -f /usr/include/dce/cma_config.h ; then
19259 if test "$GCC" = "yes" ; then
19260 echo "$as_me:$LINENO: result: yes" >&5
19261 echo "${ECHO_T}yes" >&6
19262 cat >>confdefs.h <<\_ACEOF
19263 #define HAVE_HPUX_THREAD_SUPPORT 1
19264 _ACEOF
19265
19266 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19267 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19268 else
19269 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19270 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19271 fi
19272 else
19273 echo "$as_me:$LINENO: result: no" >&5
19274 echo "${ECHO_T}no" >&6
19275 fi
19276 ;;
19277 solaris*)
19278 # See if thread_db library is around for Solaris thread debugging.
19279 # Note that we must explicitly test for version 1 of the library
19280 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19281 # the same API.
19282 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19283 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19284 if test -f /usr/lib/libthread_db.so.1 ; then
19285 echo "$as_me:$LINENO: result: yes" >&5
19286 echo "${ECHO_T}yes" >&6
19287 cat >>confdefs.h <<\_ACEOF
19288 #define HAVE_THREAD_DB_LIB 1
19289 _ACEOF
19290
19291 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19292 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19293
19294 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19295 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19296 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19298 else
19299 ac_check_lib_save_LIBS=$LIBS
19300 LIBS="-ldl $LIBS"
19301 cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h. */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19307
19308 /* Override any gcc2 internal prototype to avoid an error. */
19309 #ifdef __cplusplus
19310 extern "C"
19311 #endif
19312 /* We use char because int might match the return type of a gcc2
19313 builtin and then its argument prototype would still apply. */
19314 char dlopen ();
19315 int
19316 main ()
19317 {
19318 dlopen ();
19319 ;
19320 return 0;
19321 }
19322 _ACEOF
19323 rm -f conftest.$ac_objext conftest$ac_exeext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19325 (eval $ac_link) 2>conftest.er1
19326 ac_status=$?
19327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
19332 { ac_try='test -z "$ac_c_werror_flag"
19333 || test ! -s conftest.err'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest$ac_exeext'
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19345 ac_cv_lib_dl_dlopen=yes
19346 else
19347 echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19349
19350 ac_cv_lib_dl_dlopen=no
19351 fi
19352 rm -f conftest.err conftest.$ac_objext \
19353 conftest$ac_exeext conftest.$ac_ext
19354 LIBS=$ac_check_lib_save_LIBS
19355 fi
19356 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19357 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19358 if test $ac_cv_lib_dl_dlopen = yes; then
19359 cat >>confdefs.h <<_ACEOF
19360 #define HAVE_LIBDL 1
19361 _ACEOF
19362
19363 LIBS="-ldl $LIBS"
19364
19365 fi
19366
19367 if test "$GCC" = "yes" ; then
19368 # The GNU linker requires the -export-dynamic option to make
19369 # all symbols visible in the dynamic symbol table.
19370 hold_ldflags=$LDFLAGS
19371 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19372 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19373 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19374 cat >conftest.$ac_ext <<_ACEOF
19375 /* confdefs.h. */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19380
19381 int
19382 main ()
19383 {
19384 int i;
19385 ;
19386 return 0;
19387 }
19388 _ACEOF
19389 rm -f conftest.$ac_objext conftest$ac_exeext
19390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19391 (eval $ac_link) 2>conftest.er1
19392 ac_status=$?
19393 grep -v '^ *+' conftest.er1 >conftest.err
19394 rm -f conftest.er1
19395 cat conftest.err >&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); } &&
19398 { ac_try='test -z "$ac_c_werror_flag"
19399 || test ! -s conftest.err'
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19402 ac_status=$?
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; } &&
19405 { ac_try='test -s conftest$ac_exeext'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19411 found=yes
19412 else
19413 echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19415
19416 found=no
19417 fi
19418 rm -f conftest.err conftest.$ac_objext \
19419 conftest$ac_exeext conftest.$ac_ext
19420 LDFLAGS=$hold_ldflags
19421 echo "$as_me:$LINENO: result: $found" >&5
19422 echo "${ECHO_T}$found" >&6
19423 if test $found = yes; then
19424 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19425 fi
19426 fi
19427 # Sun randomly tweaked the prototypes in <proc_service.h>
19428 # at one point.
19429 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19430 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19431 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19433 else
19434
19435 cat >conftest.$ac_ext <<_ACEOF
19436 /* confdefs.h. */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19441
19442 #include <proc_service.h>
19443 ps_err_e ps_pdwrite
19444 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19445
19446 int
19447 main ()
19448 {
19449
19450 ;
19451 return 0;
19452 }
19453 _ACEOF
19454 rm -f conftest.$ac_objext
19455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19456 (eval $ac_compile) 2>conftest.er1
19457 ac_status=$?
19458 grep -v '^ *+' conftest.er1 >conftest.err
19459 rm -f conftest.er1
19460 cat conftest.err >&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } &&
19463 { ac_try='test -z "$ac_c_werror_flag"
19464 || test ! -s conftest.err'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try='test -s conftest.$ac_objext'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 gdb_cv_proc_service_is_old=no
19477 else
19478 echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19480
19481 gdb_cv_proc_service_is_old=yes
19482 fi
19483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19484
19485 fi
19486
19487 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19488 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19489 if test $gdb_cv_proc_service_is_old = yes; then
19490 cat >>confdefs.h <<\_ACEOF
19491 #define PROC_SERVICE_IS_OLD 1
19492 _ACEOF
19493
19494 fi
19495 else
19496 echo "$as_me:$LINENO: result: no" >&5
19497 echo "${ECHO_T}no" >&6
19498 fi
19499 ;;
19500 aix*)
19501 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19502 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19503 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506 cat >conftest.$ac_ext <<_ACEOF
19507 /* confdefs.h. */
19508 _ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19512 #include <sys/pthdebug.h>
19513 int
19514 main ()
19515 {
19516 #ifndef PTHDB_VERSION_3
19517 #error
19518 #endif
19519 ;
19520 return 0;
19521 }
19522 _ACEOF
19523 rm -f conftest.$ac_objext
19524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19525 (eval $ac_compile) 2>conftest.er1
19526 ac_status=$?
19527 grep -v '^ *+' conftest.er1 >conftest.err
19528 rm -f conftest.er1
19529 cat conftest.err >&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); } &&
19532 { ac_try='test -z "$ac_c_werror_flag"
19533 || test ! -s conftest.err'
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } &&
19539 { ac_try='test -s conftest.$ac_objext'
19540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19542 ac_status=$?
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
19545 gdb_cv_have_aix_thread_debug=yes
19546 else
19547 echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19549
19550 gdb_cv_have_aix_thread_debug=no
19551 fi
19552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19553 fi
19554
19555 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19556 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19557 if test $gdb_cv_have_aix_thread_debug = yes; then
19558 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19559 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19560 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19561 fi
19562 ;;
19563 esac
19564
19565 fi
19566
19567 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19568 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19569 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19570 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573 cat >conftest.$ac_ext <<_ACEOF
19574 /* confdefs.h. */
19575 _ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h. */
19579 #include <thread_db.h>
19580 int
19581 main ()
19582 {
19583 int i = TD_NOTALLOC;
19584 ;
19585 return 0;
19586 }
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19590 (eval $ac_compile) 2>conftest.er1
19591 ac_status=$?
19592 grep -v '^ *+' conftest.er1 >conftest.err
19593 rm -f conftest.er1
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try='test -z "$ac_c_werror_flag"
19598 || test ! -s conftest.err'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; } &&
19604 { ac_try='test -s conftest.$ac_objext'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; }; then
19610 gdb_cv_thread_db_h_has_td_notalloc=yes
19611 else
19612 echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19614
19615 gdb_cv_thread_db_h_has_td_notalloc=no
19616
19617 fi
19618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19619
19620 fi
19621 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19622 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19623 fi
19624 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19625
19626 cat >>confdefs.h <<\_ACEOF
19627 #define THREAD_DB_HAS_TD_NOTALLOC 1
19628 _ACEOF
19629
19630 fi
19631
19632 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19633 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19634 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19635 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 else
19638 cat >conftest.$ac_ext <<_ACEOF
19639 /* confdefs.h. */
19640 _ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19644 #include <sys/syscall.h>
19645 int
19646 main ()
19647 {
19648 int i = __NR_tkill;
19649 ;
19650 return 0;
19651 }
19652 _ACEOF
19653 rm -f conftest.$ac_objext
19654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19655 (eval $ac_compile) 2>conftest.er1
19656 ac_status=$?
19657 grep -v '^ *+' conftest.er1 >conftest.err
19658 rm -f conftest.er1
19659 cat conftest.err >&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } &&
19662 { ac_try='test -z "$ac_c_werror_flag"
19663 || test ! -s conftest.err'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19666 ac_status=$?
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; } &&
19669 { ac_try='test -s conftest.$ac_objext'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 gdb_cv_sys_syscall_h_has_tkill=yes
19676 else
19677 echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19679
19680 gdb_cv_sys_syscall_h_has_tkill=no
19681
19682 fi
19683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19684
19685 fi
19686 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19687 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19688 fi
19689 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19690
19691 cat >>confdefs.h <<\_ACEOF
19692 #define HAVE_TKILL_SYSCALL 1
19693 _ACEOF
19694
19695 fi
19696
19697
19698
19699 # Check whether --with-sysroot or --without-sysroot was given.
19700 if test "${with_sysroot+set}" = set; then
19701 withval="$with_sysroot"
19702
19703 case ${with_sysroot} in
19704 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19705 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19706 esac
19707
19708 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19709
19710 if test "x$exec_prefix" = xNONE; then
19711 if test "x$prefix" = xNONE; then
19712 test_prefix=/usr/local
19713 else
19714 test_prefix=$prefix
19715 fi
19716 else
19717 test_prefix=$exec_prefix
19718 fi
19719 case ${TARGET_SYSTEM_ROOT} in
19720 "${test_prefix}"|"${test_prefix}/"*|\
19721 '${exec_prefix}'|'${exec_prefix}/'*)
19722 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19723 TARGET_SYSTEM_ROOT_DEFINE="$t"
19724 ;;
19725 esac
19726
19727 else
19728
19729 TARGET_SYSTEM_ROOT=
19730 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19731
19732 fi;
19733
19734
19735
19736 # NOTE: Don't add -Wall or -Wunused, they both include
19737 # -Wunused-parameter which reports bogus warnings.
19738 # NOTE: If you add to this list, remember to update
19739 # gdb/doc/gdbint.texinfo.
19740 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
19741 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
19742 -Wunused-label -Wunused-function"
19743 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
19744 # -Wunused-function -Wunused-variable -Wunused-value
19745 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
19746 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19747 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19748 # -Woverloaded-virtual -Winline -Werror"
19749 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19750 if test "${enable_build_warnings+set}" = set; then
19751 enableval="$enable_build_warnings"
19752 case "${enableval}" in
19753 yes) ;;
19754 no) build_warnings="-w";;
19755 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19756 build_warnings="${build_warnings} ${t}";;
19757 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19758 build_warnings="${t} ${build_warnings}";;
19759 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19760 esac
19761 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19762 echo "Setting compiler warning flags = $build_warnings" 6>&1
19763 fi
19764 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19765 if test "${enable_gdb_build_warnings+set}" = set; then
19766 enableval="$enable_gdb_build_warnings"
19767 case "${enableval}" in
19768 yes) ;;
19769 no) build_warnings="-w";;
19770 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19771 build_warnings="${build_warnings} ${t}";;
19772 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19773 build_warnings="${t} ${build_warnings}";;
19774 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19775 esac
19776 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19777 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19778 fi
19779 fi; WARN_CFLAGS=""
19780 WERROR_CFLAGS=""
19781 if test "x${build_warnings}" != x -a "x$GCC" = xyes
19782 then
19783 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19784 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
19785 # Separate out the -Werror flag as some files just cannot be
19786 # compiled with it enabled.
19787 for w in ${build_warnings}; do
19788 case $w in
19789 -Werr*) WERROR_CFLAGS=-Werror ;;
19790 *) # Check that GCC accepts it
19791 saved_CFLAGS="$CFLAGS"
19792 CFLAGS="$CFLAGS $w"
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h. */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799
19800 int
19801 main ()
19802 {
19803
19804 ;
19805 return 0;
19806 }
19807 _ACEOF
19808 rm -f conftest.$ac_objext
19809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19810 (eval $ac_compile) 2>conftest.er1
19811 ac_status=$?
19812 grep -v '^ *+' conftest.er1 >conftest.err
19813 rm -f conftest.er1
19814 cat conftest.err >&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
19817 { ac_try='test -z "$ac_c_werror_flag"
19818 || test ! -s conftest.err'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try='test -s conftest.$ac_objext'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830 WARN_CFLAGS="${WARN_CFLAGS} $w"
19831 else
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19834
19835 fi
19836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19837 CFLAGS="$saved_CFLAGS"
19838 esac
19839 done
19840 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
19841 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
19842 fi
19843
19844
19845
19846 # In the Cygwin environment, we need some additional flags.
19847 echo "$as_me:$LINENO: checking for cygwin" >&5
19848 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19849 if test "${gdb_cv_os_cygwin+set}" = set; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 else
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h. */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858
19859 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
19860 lose
19861 #endif
19862 _ACEOF
19863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19864 $EGREP "lose" >/dev/null 2>&1; then
19865 gdb_cv_os_cygwin=yes
19866 else
19867 gdb_cv_os_cygwin=no
19868 fi
19869 rm -f conftest*
19870
19871 fi
19872 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19873 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
19874
19875
19876 SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
19877 case ${host} in
19878 *go32* ) SER_HARDWIRE=ser-go32.o ;;
19879 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
19880 esac
19881
19882
19883 # libreadline needs libuser32.a in a cygwin environment
19884 WIN32LIBS=
19885 if test x$gdb_cv_os_cygwin = xyes; then
19886 WIN32LIBS="-luser32"
19887 case "${target}" in
19888 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19889 ;;
19890 esac
19891 fi
19892
19893
19894 LIBGUI="../libgui/src/libgui.a"
19895 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19896
19897
19898
19899 WIN32LDAPP=
19900
19901
19902
19903 case "${host}" in
19904 *-*-cygwin*)
19905 configdir="win"
19906 ;;
19907 *)
19908 configdir="unix"
19909 ;;
19910 esac
19911
19912 GDBTKLIBS=
19913 if test "${enable_gdbtk}" = "yes"; then
19914
19915 # Gdbtk must have an absolute path to srcdir in order to run
19916 # properly when not installed.
19917 here=`pwd`
19918 cd ${srcdir}
19919 GDBTK_SRC_DIR=`pwd`
19920 cd $here
19921
19922
19923 #
19924 # Ok, lets find the tcl configuration
19925 # First, look for one uninstalled.
19926 # the alternative search directory is invoked by --with-tclconfig
19927 #
19928
19929 if test x"${no_tcl}" = x ; then
19930 # we reset no_tcl in case something fails here
19931 no_tcl=true
19932
19933 # Check whether --with-tclconfig or --without-tclconfig was given.
19934 if test "${with_tclconfig+set}" = set; then
19935 withval="$with_tclconfig"
19936 with_tclconfig=${withval}
19937 fi;
19938 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19939 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19940 if test "${ac_cv_c_tclconfig+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 else
19943
19944
19945 # First check to see if --with-tclconfig was specified.
19946 if test x"${with_tclconfig}" != x ; then
19947 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19948 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19949 else
19950 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19951 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19952 { (exit 1); exit 1; }; }
19953 fi
19954 fi
19955
19956 # then check for a private Tcl installation
19957 if test x"${ac_cv_c_tclconfig}" = x ; then
19958 for i in \
19959 ../tcl \
19960 `ls -dr ../tcl[7-9]* 2>/dev/null` \
19961 ../../tcl \
19962 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
19963 ../../../tcl \
19964 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
19965 if test -f "$i/${configdir}/tclConfig.sh" ; then
19966 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19967 break
19968 fi
19969 done
19970 fi
19971 # check in a few common install locations
19972 if test x"${ac_cv_c_tclconfig}" = x ; then
19973 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
19974 if test -f "$i/tclConfig.sh" ; then
19975 ac_cv_c_tclconfig=`(cd $i; pwd)`
19976 break
19977 fi
19978 done
19979 fi
19980 # check in a few other private locations
19981 if test x"${ac_cv_c_tclconfig}" = x ; then
19982 for i in \
19983 ${srcdir}/../tcl \
19984 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
19985 if test -f "$i/${configdir}/tclConfig.sh" ; then
19986 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19987 break
19988 fi
19989 done
19990 fi
19991
19992 fi
19993
19994 if test x"${ac_cv_c_tclconfig}" = x ; then
19995 TCLCONFIG="# no Tcl configs found"
19996 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19997 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19998 else
19999 no_tcl=
20000 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
20001 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20002 echo "${ECHO_T}found $TCLCONFIG" >&6
20003 fi
20004 fi
20005
20006 if test -z "${no_tcl}"; then
20007
20008 . $TCLCONFIG
20009
20010
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 # Ok, lets find the tk configuration
20038 # First, look for one uninstalled.
20039 # the alternative search directory is invoked by --with-tkconfig
20040 #
20041
20042 if test x"${no_tk}" = x ; then
20043 # we reset no_tk in case something fails here
20044 no_tk=true
20045
20046 # Check whether --with-tkconfig or --without-tkconfig was given.
20047 if test "${with_tkconfig+set}" = set; then
20048 withval="$with_tkconfig"
20049 with_tkconfig=${withval}
20050 fi;
20051 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20052 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20053 if test "${ac_cv_c_tkconfig+set}" = set; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056
20057
20058 # First check to see if --with-tkconfig was specified.
20059 if test x"${with_tkconfig}" != x ; then
20060 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20061 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20062 else
20063 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20064 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20065 { (exit 1); exit 1; }; }
20066 fi
20067 fi
20068
20069 # then check for a private Tk library
20070 if test x"${ac_cv_c_tkconfig}" = x ; then
20071 for i in \
20072 ../tk \
20073 `ls -dr ../tk[4-9]* 2>/dev/null` \
20074 ../../tk \
20075 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20076 ../../../tk \
20077 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20078 if test -f "$i/${configdir}/tkConfig.sh" ; then
20079 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20080 break
20081 fi
20082 done
20083 fi
20084 # check in a few common install locations
20085 if test x"${ac_cv_c_tkconfig}" = x ; then
20086 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20087 if test -f "$i/tkConfig.sh" ; then
20088 ac_cv_c_tkconfig=`(cd $i; pwd)`
20089 break
20090 fi
20091 done
20092 fi
20093 # check in a few other private locations
20094 if test x"${ac_cv_c_tkconfig}" = x ; then
20095 for i in \
20096 ${srcdir}/../tk \
20097 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20098 if test -f "$i/${configdir}/tkConfig.sh" ; then
20099 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20100 break
20101 fi
20102 done
20103 fi
20104
20105 fi
20106
20107 if test x"${ac_cv_c_tkconfig}" = x ; then
20108 TKCONFIG="# no Tk configs found"
20109 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20110 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20111 else
20112 no_tk=
20113 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20114 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20115 echo "${ECHO_T}found $TKCONFIG" >&6
20116 fi
20117 fi
20118
20119
20120
20121 # now look for Tcl library stuff
20122
20123 tcldir="../tcl/${configdir}/"
20124
20125 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20126
20127 # If $no_tk is nonempty, then we can't do Tk, and there is no
20128 # point to doing Tcl.
20129 if test -z "${no_tk}"; then
20130
20131 if test -f "$TKCONFIG" ; then
20132 . $TKCONFIG
20133 fi
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148 #
20149 # Ok, lets find the tcl source trees so we can use the headers
20150 # Warning: transition of version 9 to 10 will break this algorithm
20151 # because 10 sorts before 9. We also look for just tcl. We have to
20152 # be careful that we don't match stuff like tclX by accident.
20153 # the alternative search directory is involked by --with-tclinclude
20154 #
20155
20156 no_tcl=true
20157 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20158 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20159
20160 # Check whether --with-tclinclude or --without-tclinclude was given.
20161 if test "${with_tclinclude+set}" = set; then
20162 withval="$with_tclinclude"
20163 with_tclinclude=${withval}
20164 fi;
20165 if test "${ac_cv_c_tclh+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20167 else
20168
20169 # first check to see if --with-tclinclude was specified
20170 if test x"${with_tclinclude}" != x ; then
20171 if test -f ${with_tclinclude}/tclInt.h ; then
20172 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20173 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20174 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20175 else
20176 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20177 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20178 { (exit 1); exit 1; }; }
20179 fi
20180 fi
20181
20182 # next check if it came with Tcl configuration file
20183 if test x"${ac_cv_c_tclconfig}" = x ; then
20184 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20185 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20186 fi
20187 fi
20188
20189 # next check in private source directory
20190 #
20191 # since ls returns lowest version numbers first, reverse its output
20192 if test x"${ac_cv_c_tclh}" = x ; then
20193 for i in \
20194 ${srcdir}/../tcl \
20195 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
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 ` ; do
20200 if test -f $i/generic/tclInt.h ; then
20201 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20202 break
20203 fi
20204 done
20205 fi
20206 # finally check in a few common install locations
20207 #
20208 # since ls returns lowest version numbers first, reverse its output
20209 if test x"${ac_cv_c_tclh}" = x ; then
20210 for i in \
20211 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20212 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20213 /usr/local/src/tcl \
20214 /usr/local/lib/tcl \
20215 ${prefix}/include ; do
20216 if test -f $i/generic/tclInt.h ; then
20217 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20218 break
20219 fi
20220 done
20221 fi
20222 # see if one is installed
20223 if test x"${ac_cv_c_tclh}" = x ; then
20224 if test "${ac_cv_header_tclInt_h+set}" = set; then
20225 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20226 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20227 if test "${ac_cv_header_tclInt_h+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 fi
20230 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20231 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20232 else
20233 # Is the header compilable?
20234 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20235 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20236 cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h. */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 $ac_includes_default
20243 #include <tclInt.h>
20244 _ACEOF
20245 rm -f conftest.$ac_objext
20246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20247 (eval $ac_compile) 2>conftest.er1
20248 ac_status=$?
20249 grep -v '^ *+' conftest.er1 >conftest.err
20250 rm -f conftest.er1
20251 cat conftest.err >&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } &&
20254 { ac_try='test -z "$ac_c_werror_flag"
20255 || test ! -s conftest.err'
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; } &&
20261 { ac_try='test -s conftest.$ac_objext'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
20267 ac_header_compiler=yes
20268 else
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272 ac_header_compiler=no
20273 fi
20274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20276 echo "${ECHO_T}$ac_header_compiler" >&6
20277
20278 # Is the header present?
20279 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20280 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20281 cat >conftest.$ac_ext <<_ACEOF
20282 /* confdefs.h. */
20283 _ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h. */
20287 #include <tclInt.h>
20288 _ACEOF
20289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20291 ac_status=$?
20292 grep -v '^ *+' conftest.er1 >conftest.err
20293 rm -f conftest.er1
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } >/dev/null; then
20297 if test -s conftest.err; then
20298 ac_cpp_err=$ac_c_preproc_warn_flag
20299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20300 else
20301 ac_cpp_err=
20302 fi
20303 else
20304 ac_cpp_err=yes
20305 fi
20306 if test -z "$ac_cpp_err"; then
20307 ac_header_preproc=yes
20308 else
20309 echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20311
20312 ac_header_preproc=no
20313 fi
20314 rm -f conftest.err conftest.$ac_ext
20315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20316 echo "${ECHO_T}$ac_header_preproc" >&6
20317
20318 # So? What about this header?
20319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20320 yes:no: )
20321 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20322 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20323 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20324 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20325 ac_header_preproc=yes
20326 ;;
20327 no:yes:* )
20328 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20329 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20330 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20331 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20332 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20333 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20334 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20335 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20337 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20338 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20339 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20340 (
20341 cat <<\_ASBOX
20342 ## ------------------------------------------ ##
20343 ## Report this to the AC_PACKAGE_NAME lists. ##
20344 ## ------------------------------------------ ##
20345 _ASBOX
20346 ) |
20347 sed "s/^/$as_me: WARNING: /" >&2
20348 ;;
20349 esac
20350 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20351 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20352 if test "${ac_cv_header_tclInt_h+set}" = set; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
20354 else
20355 ac_cv_header_tclInt_h=$ac_header_preproc
20356 fi
20357 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20358 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20359
20360 fi
20361 if test $ac_cv_header_tclInt_h = yes; then
20362 ac_cv_c_tclh=installed
20363 else
20364 ac_cv_c_tclh=""
20365 fi
20366
20367
20368 fi
20369
20370 fi
20371
20372 if test x"${ac_cv_c_tclh}" = x ; then
20373 TCLHDIR="# no Tcl private headers found"
20374 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20375 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20376 { (exit 1); exit 1; }; }
20377 fi
20378 if test x"${ac_cv_c_tclh}" != x ; then
20379 no_tcl=""
20380 if test x"${ac_cv_c_tclh}" = x"installed" ; then
20381 echo "$as_me:$LINENO: result: is installed" >&5
20382 echo "${ECHO_T}is installed" >&6
20383 TCLHDIR=""
20384 else
20385 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20386 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20387 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20388 TCLHDIR="-I${ac_cv_c_tclh}"
20389 fi
20390 fi
20391
20392
20393
20394
20395 #
20396 # Ok, lets find the tk source trees so we can use the headers
20397 # If the directory (presumably symlink) named "tk" exists, use that one
20398 # in preference to any others. Same logic is used when choosing library
20399 # and again with Tcl. The search order is the best place to look first, then in
20400 # decreasing significance. The loop breaks if the trigger file is found.
20401 # Note the gross little conversion here of srcdir by cd'ing to the found
20402 # directory. This converts the path from a relative to an absolute, so
20403 # recursive cache variables for the path will work right. We check all
20404 # the possible paths in one loop rather than many seperate loops to speed
20405 # things up.
20406 # the alternative search directory is involked by --with-tkinclude
20407 #
20408 no_tk=true
20409 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20410 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20411
20412 # Check whether --with-tkinclude or --without-tkinclude was given.
20413 if test "${with_tkinclude+set}" = set; then
20414 withval="$with_tkinclude"
20415 with_tkinclude=${withval}
20416 fi;
20417 if test "${ac_cv_c_tkh+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20419 else
20420
20421 # first check to see if --with-tkinclude was specified
20422 if test x"${with_tkinclude}" != x ; then
20423 if test -f ${with_tkinclude}/tk.h ; then
20424 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20425 elif test -f ${with_tkinclude}/generic/tk.h ; then
20426 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20427 else
20428 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20429 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20430 { (exit 1); exit 1; }; }
20431 fi
20432 fi
20433
20434 # next check if it came with Tk configuration file
20435 if test x"${ac_cv_c_tkconfig}" = x ; then
20436 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20437 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20438 fi
20439 fi
20440
20441 # next check in private source directory
20442 #
20443 # since ls returns lowest version numbers first, reverse its output
20444 if test x"${ac_cv_c_tkh}" = x ; then
20445 for i in \
20446 ${srcdir}/../tk \
20447 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
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 ` ; do
20452 if test -f $i/generic/tk.h ; then
20453 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20454 break
20455 fi
20456 done
20457 fi
20458 # finally check in a few common install locations
20459 #
20460 # since ls returns lowest version numbers first, reverse its output
20461 if test x"${ac_cv_c_tkh}" = x ; then
20462 for i in \
20463 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20464 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20465 /usr/local/src/tk \
20466 /usr/local/lib/tk \
20467 ${prefix}/include ; do
20468 if test -f $i/generic/tk.h ; then
20469 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20470 break
20471 fi
20472 done
20473 fi
20474 # see if one is installed
20475 if test x"${ac_cv_c_tkh}" = x ; then
20476 if test "${ac_cv_header_tk_h+set}" = set; then
20477 echo "$as_me:$LINENO: checking for tk.h" >&5
20478 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20479 if test "${ac_cv_header_tk_h+set}" = set; then
20480 echo $ECHO_N "(cached) $ECHO_C" >&6
20481 fi
20482 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20483 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20484 else
20485 # Is the header compilable?
20486 echo "$as_me:$LINENO: checking tk.h usability" >&5
20487 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20488 cat >conftest.$ac_ext <<_ACEOF
20489 /* confdefs.h. */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20494 $ac_includes_default
20495 #include <tk.h>
20496 _ACEOF
20497 rm -f conftest.$ac_objext
20498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20499 (eval $ac_compile) 2>conftest.er1
20500 ac_status=$?
20501 grep -v '^ *+' conftest.er1 >conftest.err
20502 rm -f conftest.er1
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } &&
20506 { ac_try='test -z "$ac_c_werror_flag"
20507 || test ! -s conftest.err'
20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509 (eval $ac_try) 2>&5
20510 ac_status=$?
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; } &&
20513 { ac_try='test -s conftest.$ac_objext'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; }; then
20519 ac_header_compiler=yes
20520 else
20521 echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20523
20524 ac_header_compiler=no
20525 fi
20526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20528 echo "${ECHO_T}$ac_header_compiler" >&6
20529
20530 # Is the header present?
20531 echo "$as_me:$LINENO: checking tk.h presence" >&5
20532 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20533 cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h. */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20539 #include <tk.h>
20540 _ACEOF
20541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20543 ac_status=$?
20544 grep -v '^ *+' conftest.er1 >conftest.err
20545 rm -f conftest.er1
20546 cat conftest.err >&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } >/dev/null; then
20549 if test -s conftest.err; then
20550 ac_cpp_err=$ac_c_preproc_warn_flag
20551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20552 else
20553 ac_cpp_err=
20554 fi
20555 else
20556 ac_cpp_err=yes
20557 fi
20558 if test -z "$ac_cpp_err"; then
20559 ac_header_preproc=yes
20560 else
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564 ac_header_preproc=no
20565 fi
20566 rm -f conftest.err conftest.$ac_ext
20567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20568 echo "${ECHO_T}$ac_header_preproc" >&6
20569
20570 # So? What about this header?
20571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20572 yes:no: )
20573 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20574 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20575 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20576 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20577 ac_header_preproc=yes
20578 ;;
20579 no:yes:* )
20580 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20581 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20582 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20583 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20584 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20585 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20586 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20587 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20588 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20589 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20590 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20591 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20592 (
20593 cat <<\_ASBOX
20594 ## ------------------------------------------ ##
20595 ## Report this to the AC_PACKAGE_NAME lists. ##
20596 ## ------------------------------------------ ##
20597 _ASBOX
20598 ) |
20599 sed "s/^/$as_me: WARNING: /" >&2
20600 ;;
20601 esac
20602 echo "$as_me:$LINENO: checking for tk.h" >&5
20603 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20604 if test "${ac_cv_header_tk_h+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607 ac_cv_header_tk_h=$ac_header_preproc
20608 fi
20609 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20610 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20611
20612 fi
20613 if test $ac_cv_header_tk_h = yes; then
20614 ac_cv_c_tkh=installed
20615 else
20616 ac_cv_c_tkh=""
20617 fi
20618
20619
20620 fi
20621
20622 fi
20623
20624 if test x"${ac_cv_c_tkh}" != x ; then
20625 no_tk=""
20626 if test x"${ac_cv_c_tkh}" = x"installed" ; then
20627 echo "$as_me:$LINENO: result: is installed" >&5
20628 echo "${ECHO_T}is installed" >&6
20629 TKHDIR=""
20630 else
20631 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20632 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
20633 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20634 TKHDIR="-I${ac_cv_c_tkh}"
20635 fi
20636 else
20637 TKHDIR="# no Tk directory found"
20638 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20639 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
20640 no_tk=true
20641 fi
20642
20643
20644
20645
20646 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20647 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
20648 if test x"${ac_cv_c_itclh}" = x ; then
20649 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20650 if test -f $i/generic/itcl.h ; then
20651 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20652 break
20653 fi
20654 done
20655 fi
20656 if test x"${ac_cv_c_itclh}" = x ; then
20657 ITCLHDIR="# no Itcl private headers found"
20658 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20659 echo "$as_me: error: Can't find Itcl private headers" >&2;}
20660 { (exit 1); exit 1; }; }
20661 fi
20662 if test x"${ac_cv_c_itclh}" != x ; then
20663 ITCLHDIR="-I${ac_cv_c_itclh}"
20664 fi
20665 # should always be here
20666 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
20667
20668 #AC_SUBST(ITCLLIB)
20669
20670
20671 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20672 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
20673 if test x"${ac_cv_c_itkh}" = x ; then
20674 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20675 if test -f $i/generic/itk.h ; then
20676 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20677 break
20678 fi
20679 done
20680 fi
20681 if test x"${ac_cv_c_itkh}" = x ; then
20682 ITKHDIR="# no Itk private headers found"
20683 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20684 echo "$as_me: error: Can't find Itk private headers" >&2;}
20685 { (exit 1); exit 1; }; }
20686 fi
20687 if test x"${ac_cv_c_itkh}" != x ; then
20688 ITKHDIR="-I${ac_cv_c_itkh}"
20689 fi
20690 # should always be here
20691 # ITKLIB="../itcl/itk/unix/libitk.a"
20692
20693 #AC_SUBST(ITKLIB)
20694
20695
20696
20697 # now look for Tk library stuff
20698
20699 tkdir="../tk/${configdir}/"
20700
20701 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20702
20703 # now look for Itcl library stuff
20704
20705
20706 #
20707 # Ok, lets find the itcl configuration
20708 # First, look for one uninstalled.
20709 # the alternative search directory is invoked by --with-itclconfig
20710 #
20711
20712 if test x"${no_itcl}" = x ; then
20713 # we reset no_itcl in case something fails here
20714 no_itcl=true
20715
20716 # Check whether --with-itclconfig or --without-itclconfig was given.
20717 if test "${with_itclconfig+set}" = set; then
20718 withval="$with_itclconfig"
20719 with_itclconfig=${withval}
20720 fi;
20721 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20722 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20723 if test "${ac_cv_c_itclconfig+set}" = set; then
20724 echo $ECHO_N "(cached) $ECHO_C" >&6
20725 else
20726
20727
20728 # First check to see if --with-itclconfig was specified.
20729 if test x"${with_itclconfig}" != x ; then
20730 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20731 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20732 else
20733 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20734 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20735 { (exit 1); exit 1; }; }
20736 fi
20737 fi
20738
20739 # then check for a private Itcl library
20740 if test x"${ac_cv_c_itclconfig}" = x ; then
20741 for i in \
20742 ../itcl/itcl \
20743 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20744 ../../itcl \
20745 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20746 ../../../itcl \
20747 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20748 if test -f "$i/itclConfig.sh" ; then
20749 ac_cv_c_itclconfig=`(cd $i; pwd)`
20750 break
20751 fi
20752 done
20753 fi
20754 # check in a few common install locations
20755 if test x"${ac_cv_c_itclconfig}" = x ; then
20756 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20757 if test -f "$i/itclConfig.sh" ; then
20758 ac_cv_c_itclconfig=`(cd $i; pwd)`
20759 break
20760 fi
20761 done
20762 fi
20763 # check in a few other private locations
20764 if test x"${ac_cv_c_itclconfig}" = x ; then
20765 for i in \
20766 ${srcdir}/../itcl/itcl \
20767 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
20768 if test -f "$i/itclConfig.sh" ; then
20769 ac_cv_c_itclconfig=`(cd $i; pwd)`
20770 break
20771 fi
20772 done
20773 fi
20774
20775 fi
20776
20777 if test x"${ac_cv_c_itclconfig}" = x ; then
20778 ITCLCONFIG="# no Itcl configs found"
20779 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
20780 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
20781 else
20782 no_itcl=
20783 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
20784 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
20785 echo "${ECHO_T}found $ITCLCONFIG" >&6
20786 fi
20787 fi
20788
20789 if test -z "${no_itcl}"; then
20790
20791 if test -f "$ITCLCONFIG" ; then
20792 . $ITCLCONFIG
20793 fi
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
20807 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
20808 fi
20809
20810
20811 # now look for Itk library stuff
20812
20813 #
20814 # Ok, lets find the itk configuration
20815 # First, look for one uninstalled.
20816 # the alternative search directory is invoked by --with-itkconfig
20817 #
20818
20819 if test x"${no_itk}" = x ; then
20820 # we reset no_itk in case something fails here
20821 no_itk=true
20822
20823 # Check whether --with-itkconfig or --without-itkconfig was given.
20824 if test "${with_itkconfig+set}" = set; then
20825 withval="$with_itkconfig"
20826 with_itkconfig=${withval}
20827 fi;
20828 echo "$as_me:$LINENO: checking for Itk configuration" >&5
20829 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
20830 if test "${ac_cv_c_itkconfig+set}" = set; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20832 else
20833
20834
20835 # First check to see if --with-itkconfig was specified.
20836 if test x"${with_itkconfig}" != x ; then
20837 if test -f "${with_itkconfig}/itkConfig.sh" ; then
20838 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
20839 else
20840 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
20841 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
20842 { (exit 1); exit 1; }; }
20843 fi
20844 fi
20845
20846 # then check for a private Itk library
20847 if test x"${ac_cv_c_itkconfig}" = x ; then
20848 for i in \
20849 ../itcl/itk \
20850 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
20851 ../../itk \
20852 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
20853 ../../../itk \
20854 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
20855 if test -f "$i/itkConfig.sh" ; then
20856 ac_cv_c_itkconfig=`(cd $i; pwd)`
20857 break
20858 fi
20859 done
20860 fi
20861 # check in a few common install locations
20862 if test x"${ac_cv_c_itkconfig}" = x ; then
20863 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20864 if test -f "$i/itkConfig.sh" ; then
20865 ac_cv_c_itkconfig=`(cd $i; pwd)`
20866 break
20867 fi
20868 done
20869 fi
20870 # check in a few other private locations
20871 if test x"${ac_cv_c_itkconfig}" = x ; then
20872 for i in \
20873 ${srcdir}/../itcl/itk \
20874 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
20875 if test -f "$i/itkConfig.sh" ; then
20876 ac_cv_c_itkconfig=`(cd $i; pwd)`
20877 break
20878 fi
20879 done
20880 fi
20881
20882 fi
20883
20884 if test x"${ac_cv_c_itkconfig}" = x ; then
20885 ITKCONFIG="# no Itk configs found"
20886 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
20887 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
20888 else
20889 no_itk=
20890 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
20891 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
20892 echo "${ECHO_T}found $ITKCONFIG" >&6
20893 fi
20894 fi
20895
20896
20897 if test -z "${no_itcl}"; then
20898
20899 if test -f "$ITKCONFIG" ; then
20900 . $ITKCONFIG
20901 fi
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914 ITKLIB="${ITK_BUILD_LIB_SPEC}"
20915 ITK_DEPS="${ITK_LIB_FULL_PATH}"
20916 fi
20917
20918 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20919 # Tcl/Tk 8.1 require -fwritable strings. I don't
20920 # know whether 8.2 will or not, but I bet it will.
20921 # I don't have to worry about 7.x since we don't support it.
20922 GDBTK_CFLAGS=""
20923 if test "$GCC" = "yes"; then
20924 if test "$TCL_VERSION" != "8.0" ; then
20925 GDBTK_CFLAGS="-fwritable-strings"
20926 fi
20927 fi
20928
20929 # Include some libraries that Tcl and Tk want.
20930 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20931 # Yes, the ordering seems wrong here. But it isn't.
20932 # TK_LIBS is the list of libraries that need to be linked
20933 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20934 # were in LIBS then any link tests after this point would
20935 # try to include things like `$(LIBGUI)', which wouldn't work.
20936 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20937
20938 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20939 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20940 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20941 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20942 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20943 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20944 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20945
20946 if test x$gdb_cv_os_cygwin = xyes; then
20947 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20948 WIN32LDAPP="-Wl,--subsystem,console"
20949 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20950 fi
20951 fi
20952 fi
20953
20954
20955
20956 subdirs="$subdirs gdbtk"
20957
20958 fi
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973 echo "$as_me:$LINENO: checking for X" >&5
20974 echo $ECHO_N "checking for X... $ECHO_C" >&6
20975
20976
20977 # Check whether --with-x or --without-x was given.
20978 if test "${with_x+set}" = set; then
20979 withval="$with_x"
20980
20981 fi;
20982 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20983 if test "x$with_x" = xno; then
20984 # The user explicitly disabled X.
20985 have_x=disabled
20986 else
20987 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20988 # Both variables are already set.
20989 have_x=yes
20990 else
20991 if test "${ac_cv_have_x+set}" = set; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20994 # One or both of the vars are not set, and there is no cached value.
20995 ac_x_includes=no ac_x_libraries=no
20996 rm -fr conftest.dir
20997 if mkdir conftest.dir; then
20998 cd conftest.dir
20999 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21000 cat >Imakefile <<'_ACEOF'
21001 acfindx:
21002 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21003 _ACEOF
21004 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21005 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21006 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21007 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21008 for ac_extension in a so sl; do
21009 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21010 test -f $ac_im_libdir/libX11.$ac_extension; then
21011 ac_im_usrlibdir=$ac_im_libdir; break
21012 fi
21013 done
21014 # Screen out bogus values from the imake configuration. They are
21015 # bogus both because they are the default anyway, and because
21016 # using them would break gcc on systems where it needs fixed includes.
21017 case $ac_im_incroot in
21018 /usr/include) ;;
21019 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21020 esac
21021 case $ac_im_usrlibdir in
21022 /usr/lib | /lib) ;;
21023 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21024 esac
21025 fi
21026 cd ..
21027 rm -fr conftest.dir
21028 fi
21029
21030 # Standard set of common directories for X headers.
21031 # Check X11 before X11Rn because it is often a symlink to the current release.
21032 ac_x_header_dirs='
21033 /usr/X11/include
21034 /usr/X11R6/include
21035 /usr/X11R5/include
21036 /usr/X11R4/include
21037
21038 /usr/include/X11
21039 /usr/include/X11R6
21040 /usr/include/X11R5
21041 /usr/include/X11R4
21042
21043 /usr/local/X11/include
21044 /usr/local/X11R6/include
21045 /usr/local/X11R5/include
21046 /usr/local/X11R4/include
21047
21048 /usr/local/include/X11
21049 /usr/local/include/X11R6
21050 /usr/local/include/X11R5
21051 /usr/local/include/X11R4
21052
21053 /usr/X386/include
21054 /usr/x386/include
21055 /usr/XFree86/include/X11
21056
21057 /usr/include
21058 /usr/local/include
21059 /usr/unsupported/include
21060 /usr/athena/include
21061 /usr/local/x11r5/include
21062 /usr/lpp/Xamples/include
21063
21064 /usr/openwin/include
21065 /usr/openwin/share/include'
21066
21067 if test "$ac_x_includes" = no; then
21068 # Guess where to find include files, by looking for Intrinsic.h.
21069 # First, try using that file with no special directory specified.
21070 cat >conftest.$ac_ext <<_ACEOF
21071 /* confdefs.h. */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076 #include <X11/Intrinsic.h>
21077 _ACEOF
21078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21080 ac_status=$?
21081 grep -v '^ *+' conftest.er1 >conftest.err
21082 rm -f conftest.er1
21083 cat conftest.err >&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } >/dev/null; then
21086 if test -s conftest.err; then
21087 ac_cpp_err=$ac_c_preproc_warn_flag
21088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21089 else
21090 ac_cpp_err=
21091 fi
21092 else
21093 ac_cpp_err=yes
21094 fi
21095 if test -z "$ac_cpp_err"; then
21096 # We can compile using X headers with no special include directory.
21097 ac_x_includes=
21098 else
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21101
21102 for ac_dir in $ac_x_header_dirs; do
21103 if test -r "$ac_dir/X11/Intrinsic.h"; then
21104 ac_x_includes=$ac_dir
21105 break
21106 fi
21107 done
21108 fi
21109 rm -f conftest.err conftest.$ac_ext
21110 fi # $ac_x_includes = no
21111
21112 if test "$ac_x_libraries" = no; then
21113 # Check for the libraries.
21114 # See if we find them without any special options.
21115 # Don't add to $LIBS permanently.
21116 ac_save_LIBS=$LIBS
21117 LIBS="-lXt $LIBS"
21118 cat >conftest.$ac_ext <<_ACEOF
21119 /* confdefs.h. */
21120 _ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21124 #include <X11/Intrinsic.h>
21125 int
21126 main ()
21127 {
21128 XtMalloc (0)
21129 ;
21130 return 0;
21131 }
21132 _ACEOF
21133 rm -f conftest.$ac_objext conftest$ac_exeext
21134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21135 (eval $ac_link) 2>conftest.er1
21136 ac_status=$?
21137 grep -v '^ *+' conftest.er1 >conftest.err
21138 rm -f conftest.er1
21139 cat conftest.err >&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } &&
21142 { ac_try='test -z "$ac_c_werror_flag"
21143 || test ! -s conftest.err'
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; } &&
21149 { ac_try='test -s conftest$ac_exeext'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 LIBS=$ac_save_LIBS
21156 # We can link X programs with no special library path.
21157 ac_x_libraries=
21158 else
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162 LIBS=$ac_save_LIBS
21163 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21164 do
21165 # Don't even attempt the hair of trying to link an X program!
21166 for ac_extension in a so sl; do
21167 if test -r $ac_dir/libXt.$ac_extension; then
21168 ac_x_libraries=$ac_dir
21169 break 2
21170 fi
21171 done
21172 done
21173 fi
21174 rm -f conftest.err conftest.$ac_objext \
21175 conftest$ac_exeext conftest.$ac_ext
21176 fi # $ac_x_libraries = no
21177
21178 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21179 # Didn't find X anywhere. Cache the known absence of X.
21180 ac_cv_have_x="have_x=no"
21181 else
21182 # Record where we found X for the cache.
21183 ac_cv_have_x="have_x=yes \
21184 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21185 fi
21186 fi
21187
21188 fi
21189 eval "$ac_cv_have_x"
21190 fi # $with_x != no
21191
21192 if test "$have_x" != yes; then
21193 echo "$as_me:$LINENO: result: $have_x" >&5
21194 echo "${ECHO_T}$have_x" >&6
21195 no_x=yes
21196 else
21197 # If each of the values was on the command line, it overrides each guess.
21198 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21199 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21200 # Update the cache value to reflect the command line values.
21201 ac_cv_have_x="have_x=yes \
21202 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21203 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21204 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21205 fi
21206
21207
21208 # Check whether we should enable the TUI, but only do so if we really
21209 # can.
21210 if test x"$enable_tui" = xyes; then
21211 if test -d $srcdir/tui; then
21212 if test "$ac_cv_search_waddstr" != no; then
21213 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21214 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21215 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21216 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21217 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21218 CONFIG_ALL="${CONFIG_ALL} all-tui"
21219 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21220 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21221 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21222 else
21223 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21224 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21225 fi
21226 fi
21227 fi
21228
21229 # Unlike the sim directory, whether a simulator is linked is controlled by
21230 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21231 # This code just checks for a few cases where we'd like to ignore those
21232 # definitions, even when they're present in the '.mt' file. These cases
21233 # are when --disable-sim is specified, or if the simulator directory is
21234 # not part of the source tree.
21235 #
21236 # Check whether --enable-sim or --disable-sim was given.
21237 if test "${enable_sim+set}" = set; then
21238 enableval="$enable_sim"
21239 echo "enable_sim = $enable_sim";
21240 echo "enableval = ${enableval}";
21241 case "${enableval}" in
21242 yes) ignore_sim=false ;;
21243 no) ignore_sim=true ;;
21244 *) ignore_sim=false ;;
21245 esac
21246 else
21247 ignore_sim=false
21248 fi;
21249
21250 if test ! -d "${srcdir}/../sim"; then
21251 ignore_sim=true
21252 fi
21253
21254 if test "${ignore_sim}" = "true"; then
21255 IGNORE_SIM="SIM="
21256 IGNORE_SIM_OBS="SIM_OBS="
21257 else
21258 IGNORE_SIM=""
21259 IGNORE_SIM_OBS=""
21260 cat >>confdefs.h <<\_ACEOF
21261 #define WITH_SIM 1
21262 _ACEOF
21263
21264 fi
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279 # List of host floatformats.
21280
21281 cat >>confdefs.h <<_ACEOF
21282 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21283 _ACEOF
21284
21285
21286 cat >>confdefs.h <<_ACEOF
21287 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21288 _ACEOF
21289
21290
21291 cat >>confdefs.h <<_ACEOF
21292 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21293 _ACEOF
21294
21295
21296 # target_subdir is used by the testsuite to find the target libraries.
21297 target_subdir=
21298 if test "${host}" != "${target}"; then
21299 target_subdir="${target_alias}/"
21300 fi
21301
21302
21303 frags=
21304 if test "${target}" = "${host}"; then
21305 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21306 if test ! -f ${host_makefile_frag}; then
21307 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21308 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21309 { (exit 1); exit 1; }; }
21310 fi
21311 frags="$frags $host_makefile_frag"
21312 else
21313 host_makefile_frag=/dev/null
21314 fi
21315
21316 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21317 if test ! -f ${target_makefile_frag}; then
21318 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21319 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21320 { (exit 1); exit 1; }; }
21321 fi
21322 frags="$frags $target_makefile_frag"
21323
21324
21325
21326
21327
21328 hostfile=`sed -n '
21329 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21330 ' ${host_makefile_frag}`
21331
21332 targetfile=`sed -n '
21333 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21334 ' ${target_makefile_frag}`
21335
21336 if test "${target}" = "${host}"; then
21337 # We pick this up from the host configuration file (.mh) because we
21338 # do not have a native configuration Makefile fragment.
21339 nativefile=`sed -n '
21340 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21341 ' ${host_makefile_frag}`
21342 fi
21343
21344
21345 if test x"${gdb_osabi}" != x ; then
21346
21347 cat >>confdefs.h <<_ACEOF
21348 #define GDB_OSABI_DEFAULT $gdb_osabi
21349 _ACEOF
21350
21351 fi
21352
21353 # Enable multi-ice-gdb-server.
21354 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21355 if test "${enable_multi_ice+set}" = set; then
21356 enableval="$enable_multi_ice"
21357 case $enableval in
21358 yes | no)
21359 ;;
21360 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21361 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21362 { (exit 1); exit 1; }; } ;;
21363 esac
21364 fi;
21365 if test "x$enable_multi_ice" = xyes; then
21366
21367
21368 subdirs="$subdirs multi-ice"
21369
21370 fi
21371
21372 # We only build gdbserver automatically if host and target are the same.
21373 if test "x$target" = "x$host"; then
21374 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21375 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21376 if test "x$build_gdbserver" = xyes; then
21377 echo "$as_me:$LINENO: result: yes" >&5
21378 echo "${ECHO_T}yes" >&6
21379
21380
21381 subdirs="$subdirs gdbserver"
21382
21383 else
21384 echo "$as_me:$LINENO: result: no" >&5
21385 echo "${ECHO_T}no" >&6
21386 fi
21387 fi
21388
21389 # We build rdi-share on ARM-based targets, as instructed by configure.tgt.
21390 if test "x$build_rdi_share" = xyes; then
21391
21392
21393 subdirs="$subdirs rdi-share"
21394
21395 fi
21396
21397 # We configure the nlm subdirectory on netware targets, as instructed
21398 # by configure.tgt.
21399 if test "x$build_nlm" = xyes; then
21400
21401
21402 subdirs="$subdirs nlm"
21403
21404 fi
21405
21406 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21407 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21408 # to an empty version.
21409
21410 files=
21411 links=
21412
21413 rm -f xm.h
21414 xm_h=""
21415 if test "${hostfile}" != ""; then
21416 xm_h=xm.h
21417 case "${hostfile}" in
21418 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21419 * ) GDB_XM_FILE="${hostfile}"
21420 esac
21421 files="${files} ${GDB_XM_FILE}"
21422 links="${links} xm.h"
21423 cat >>confdefs.h <<_ACEOF
21424 #define GDB_XM_FILE "${GDB_XM_FILE}"
21425 _ACEOF
21426
21427 fi
21428
21429
21430 rm -f tm.h
21431 tm_h=""
21432 if test "${targetfile}" != ""; then
21433 tm_h=tm.h
21434 case "${targetfile}" in
21435 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21436 * ) GDB_TM_FILE="${targetfile}"
21437 esac
21438 files="${files} ${GDB_TM_FILE}"
21439 links="${links} tm.h"
21440 cat >>confdefs.h <<_ACEOF
21441 #define GDB_TM_FILE "${GDB_TM_FILE}"
21442 _ACEOF
21443
21444 fi
21445
21446
21447 rm -f nm.h
21448 nm_h=""
21449 if test "${nativefile}" != ""; then
21450 nm_h=nm.h
21451 case "${nativefile}" in
21452 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21453 * ) GDB_NM_FILE="${nativefile}"
21454 esac
21455 files="${files} ${GDB_NM_FILE}"
21456 links="${links} nm.h"
21457 cat >>confdefs.h <<_ACEOF
21458 #define GDB_NM_FILE "${GDB_NM_FILE}"
21459 _ACEOF
21460
21461 fi
21462
21463
21464 ac_sources="$files"
21465 ac_dests="$links"
21466 while test -n "$ac_sources"; do
21467 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21468 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21469 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21470 done
21471 ac_config_links="$ac_config_links $ac_config_links_1"
21472
21473
21474
21475
21476
21477
21478 cat >>confdefs.h <<\_ACEOF
21479 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21480 _ACEOF
21481
21482
21483
21484
21485
21486 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21487 if test "${with_libiconv_prefix+set}" = set; then
21488 withval="$with_libiconv_prefix"
21489
21490 for dir in `echo "$withval" | tr : ' '`; do
21491 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21492 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21493 done
21494
21495 fi;
21496
21497 echo "$as_me:$LINENO: checking for iconv" >&5
21498 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21499 if test "${am_cv_func_iconv+set}" = set; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 else
21502
21503 am_cv_func_iconv="no, consider installing GNU libiconv"
21504 am_cv_lib_iconv=no
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h. */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21511 #include <stdlib.h>
21512 #include <iconv.h>
21513 int
21514 main ()
21515 {
21516 iconv_t cd = iconv_open("","");
21517 iconv(cd,NULL,NULL,NULL,NULL);
21518 iconv_close(cd);
21519 ;
21520 return 0;
21521 }
21522 _ACEOF
21523 rm -f conftest.$ac_objext conftest$ac_exeext
21524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21525 (eval $ac_link) 2>conftest.er1
21526 ac_status=$?
21527 grep -v '^ *+' conftest.er1 >conftest.err
21528 rm -f conftest.er1
21529 cat conftest.err >&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } &&
21532 { ac_try='test -z "$ac_c_werror_flag"
21533 || test ! -s conftest.err'
21534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535 (eval $ac_try) 2>&5
21536 ac_status=$?
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; } &&
21539 { ac_try='test -s conftest$ac_exeext'
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21542 ac_status=$?
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; }; then
21545 am_cv_func_iconv=yes
21546 else
21547 echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21549
21550 fi
21551 rm -f conftest.err conftest.$ac_objext \
21552 conftest$ac_exeext conftest.$ac_ext
21553 if test "$am_cv_func_iconv" != yes; then
21554 am_save_LIBS="$LIBS"
21555 LIBS="$LIBS -liconv"
21556 cat >conftest.$ac_ext <<_ACEOF
21557 /* confdefs.h. */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h. */
21562 #include <stdlib.h>
21563 #include <iconv.h>
21564 int
21565 main ()
21566 {
21567 iconv_t cd = iconv_open("","");
21568 iconv(cd,NULL,NULL,NULL,NULL);
21569 iconv_close(cd);
21570 ;
21571 return 0;
21572 }
21573 _ACEOF
21574 rm -f conftest.$ac_objext conftest$ac_exeext
21575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21576 (eval $ac_link) 2>conftest.er1
21577 ac_status=$?
21578 grep -v '^ *+' conftest.er1 >conftest.err
21579 rm -f conftest.er1
21580 cat conftest.err >&5
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } &&
21583 { ac_try='test -z "$ac_c_werror_flag"
21584 || test ! -s conftest.err'
21585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586 (eval $ac_try) 2>&5
21587 ac_status=$?
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; } &&
21590 { ac_try='test -s conftest$ac_exeext'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
21596 am_cv_lib_iconv=yes
21597 am_cv_func_iconv=yes
21598 else
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21601
21602 fi
21603 rm -f conftest.err conftest.$ac_objext \
21604 conftest$ac_exeext conftest.$ac_ext
21605 LIBS="$am_save_LIBS"
21606 fi
21607
21608 fi
21609 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21610 echo "${ECHO_T}$am_cv_func_iconv" >&6
21611 if test "$am_cv_func_iconv" = yes; then
21612
21613 cat >>confdefs.h <<\_ACEOF
21614 #define HAVE_ICONV 1
21615 _ACEOF
21616
21617 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21618 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21619 if test "${am_cv_proto_iconv+set}" = set; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21621 else
21622
21623 cat >conftest.$ac_ext <<_ACEOF
21624 /* confdefs.h. */
21625 _ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h. */
21629
21630 #include <stdlib.h>
21631 #include <iconv.h>
21632 extern
21633 #ifdef __cplusplus
21634 "C"
21635 #endif
21636 #if defined(__STDC__) || defined(__cplusplus)
21637 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21638 #else
21639 size_t iconv();
21640 #endif
21641
21642 int
21643 main ()
21644 {
21645
21646 ;
21647 return 0;
21648 }
21649 _ACEOF
21650 rm -f conftest.$ac_objext
21651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21652 (eval $ac_compile) 2>conftest.er1
21653 ac_status=$?
21654 grep -v '^ *+' conftest.er1 >conftest.err
21655 rm -f conftest.er1
21656 cat conftest.err >&5
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); } &&
21659 { ac_try='test -z "$ac_c_werror_flag"
21660 || test ! -s conftest.err'
21661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21663 ac_status=$?
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; } &&
21666 { ac_try='test -s conftest.$ac_objext'
21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668 (eval $ac_try) 2>&5
21669 ac_status=$?
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; }; then
21672 am_cv_proto_iconv_arg1=""
21673 else
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21676
21677 am_cv_proto_iconv_arg1="const"
21678 fi
21679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21680 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);"
21681 fi
21682
21683 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21684 echo "$as_me:$LINENO: result: ${ac_t:-
21685 }$am_cv_proto_iconv" >&5
21686 echo "${ECHO_T}${ac_t:-
21687 }$am_cv_proto_iconv" >&6
21688
21689 cat >>confdefs.h <<_ACEOF
21690 #define ICONV_CONST $am_cv_proto_iconv_arg1
21691 _ACEOF
21692
21693 fi
21694 LIBICONV=
21695 if test "$am_cv_lib_iconv" = yes; then
21696 LIBICONV="-liconv"
21697 fi
21698
21699
21700
21701 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21702 ac_config_commands="$ac_config_commands default"
21703 cat >confcache <<\_ACEOF
21704 # This file is a shell script that caches the results of configure
21705 # tests run on this system so they can be shared between configure
21706 # scripts and configure runs, see configure's option --config-cache.
21707 # It is not useful on other systems. If it contains results you don't
21708 # want to keep, you may remove or edit it.
21709 #
21710 # config.status only pays attention to the cache file if you give it
21711 # the --recheck option to rerun configure.
21712 #
21713 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21714 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21715 # following values.
21716
21717 _ACEOF
21718
21719 # The following way of writing the cache mishandles newlines in values,
21720 # but we know of no workaround that is simple, portable, and efficient.
21721 # So, don't put newlines in cache variables' values.
21722 # Ultrix sh set writes to stderr and can't be redirected directly,
21723 # and sets the high bit in the cache file unless we assign to the vars.
21724 {
21725 (set) 2>&1 |
21726 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21727 *ac_space=\ *)
21728 # `set' does not quote correctly, so add quotes (double-quote
21729 # substitution turns \\\\ into \\, and sed turns \\ into \).
21730 sed -n \
21731 "s/'/'\\\\''/g;
21732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21733 ;;
21734 *)
21735 # `set' quotes correctly as required by POSIX, so do not add quotes.
21736 sed -n \
21737 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21738 ;;
21739 esac;
21740 } |
21741 sed '
21742 t clear
21743 : clear
21744 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21745 t end
21746 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21747 : end' >>confcache
21748 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21749 if test -w $cache_file; then
21750 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21751 cat confcache >$cache_file
21752 else
21753 echo "not updating unwritable cache $cache_file"
21754 fi
21755 fi
21756 rm -f confcache
21757
21758 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21759 # Let make expand exec_prefix.
21760 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21761
21762 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21763 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21764 # trailing colons and then remove the whole line if VPATH becomes empty
21765 # (actually we leave an empty line to preserve line numbers).
21766 if test "x$srcdir" = x.; then
21767 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21768 s/:*\$(srcdir):*/:/;
21769 s/:*\${srcdir}:*/:/;
21770 s/:*@srcdir@:*/:/;
21771 s/^\([^=]*=[ ]*\):*/\1/;
21772 s/:*$//;
21773 s/^[^=]*=[ ]*$//;
21774 }'
21775 fi
21776
21777 DEFS=-DHAVE_CONFIG_H
21778
21779 ac_libobjs=
21780 ac_ltlibobjs=
21781 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21782 # 1. Remove the extension, and $U if already installed.
21783 ac_i=`echo "$ac_i" |
21784 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21785 # 2. Add them.
21786 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21787 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21788 done
21789 LIBOBJS=$ac_libobjs
21790
21791 LTLIBOBJS=$ac_ltlibobjs
21792
21793
21794 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21795 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21796 Usually this means the macro was only invoked conditionally." >&5
21797 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21798 Usually this means the macro was only invoked conditionally." >&2;}
21799 { (exit 1); exit 1; }; }
21800 fi
21801
21802 : ${CONFIG_STATUS=./config.status}
21803 ac_clean_files_save=$ac_clean_files
21804 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21805 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21806 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21807 cat >$CONFIG_STATUS <<_ACEOF
21808 #! $SHELL
21809 # Generated by $as_me.
21810 # Run this file to recreate the current configuration.
21811 # Compiler output produced by configure, useful for debugging
21812 # configure, is in config.log if it exists.
21813
21814 debug=false
21815 ac_cs_recheck=false
21816 ac_cs_silent=false
21817 SHELL=\${CONFIG_SHELL-$SHELL}
21818 _ACEOF
21819
21820 cat >>$CONFIG_STATUS <<\_ACEOF
21821 ## --------------------- ##
21822 ## M4sh Initialization. ##
21823 ## --------------------- ##
21824
21825 # Be Bourne compatible
21826 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21827 emulate sh
21828 NULLCMD=:
21829 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21830 # is contrary to our usage. Disable this feature.
21831 alias -g '${1+"$@"}'='"$@"'
21832 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21833 set -o posix
21834 fi
21835 DUALCASE=1; export DUALCASE # for MKS sh
21836
21837 # Support unset when possible.
21838 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21839 as_unset=unset
21840 else
21841 as_unset=false
21842 fi
21843
21844
21845 # Work around bugs in pre-3.0 UWIN ksh.
21846 $as_unset ENV MAIL MAILPATH
21847 PS1='$ '
21848 PS2='> '
21849 PS4='+ '
21850
21851 # NLS nuisances.
21852 for as_var in \
21853 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21854 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21855 LC_TELEPHONE LC_TIME
21856 do
21857 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21858 eval $as_var=C; export $as_var
21859 else
21860 $as_unset $as_var
21861 fi
21862 done
21863
21864 # Required to use basename.
21865 if expr a : '\(a\)' >/dev/null 2>&1; then
21866 as_expr=expr
21867 else
21868 as_expr=false
21869 fi
21870
21871 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21872 as_basename=basename
21873 else
21874 as_basename=false
21875 fi
21876
21877
21878 # Name of the executable.
21879 as_me=`$as_basename "$0" ||
21880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21881 X"$0" : 'X\(//\)$' \| \
21882 X"$0" : 'X\(/\)$' \| \
21883 . : '\(.\)' 2>/dev/null ||
21884 echo X/"$0" |
21885 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21886 /^X\/\(\/\/\)$/{ s//\1/; q; }
21887 /^X\/\(\/\).*/{ s//\1/; q; }
21888 s/.*/./; q'`
21889
21890
21891 # PATH needs CR, and LINENO needs CR and PATH.
21892 # Avoid depending upon Character Ranges.
21893 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21894 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21895 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21896 as_cr_digits='0123456789'
21897 as_cr_alnum=$as_cr_Letters$as_cr_digits
21898
21899 # The user is always right.
21900 if test "${PATH_SEPARATOR+set}" != set; then
21901 echo "#! /bin/sh" >conf$$.sh
21902 echo "exit 0" >>conf$$.sh
21903 chmod +x conf$$.sh
21904 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21905 PATH_SEPARATOR=';'
21906 else
21907 PATH_SEPARATOR=:
21908 fi
21909 rm -f conf$$.sh
21910 fi
21911
21912
21913 as_lineno_1=$LINENO
21914 as_lineno_2=$LINENO
21915 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21916 test "x$as_lineno_1" != "x$as_lineno_2" &&
21917 test "x$as_lineno_3" = "x$as_lineno_2" || {
21918 # Find who we are. Look in the path if we contain no path at all
21919 # relative or not.
21920 case $0 in
21921 *[\\/]* ) as_myself=$0 ;;
21922 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21923 for as_dir in $PATH
21924 do
21925 IFS=$as_save_IFS
21926 test -z "$as_dir" && as_dir=.
21927 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21928 done
21929
21930 ;;
21931 esac
21932 # We did not find ourselves, most probably we were run as `sh COMMAND'
21933 # in which case we are not to be found in the path.
21934 if test "x$as_myself" = x; then
21935 as_myself=$0
21936 fi
21937 if test ! -f "$as_myself"; then
21938 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21939 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21940 { (exit 1); exit 1; }; }
21941 fi
21942 case $CONFIG_SHELL in
21943 '')
21944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21945 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21946 do
21947 IFS=$as_save_IFS
21948 test -z "$as_dir" && as_dir=.
21949 for as_base in sh bash ksh sh5; do
21950 case $as_dir in
21951 /*)
21952 if ("$as_dir/$as_base" -c '
21953 as_lineno_1=$LINENO
21954 as_lineno_2=$LINENO
21955 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21956 test "x$as_lineno_1" != "x$as_lineno_2" &&
21957 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21958 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21959 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21960 CONFIG_SHELL=$as_dir/$as_base
21961 export CONFIG_SHELL
21962 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21963 fi;;
21964 esac
21965 done
21966 done
21967 ;;
21968 esac
21969
21970 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21971 # uniformly replaced by the line number. The first 'sed' inserts a
21972 # line-number line before each line; the second 'sed' does the real
21973 # work. The second script uses 'N' to pair each line-number line
21974 # with the numbered line, and appends trailing '-' during
21975 # substitution so that $LINENO is not a special case at line end.
21976 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21977 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21978 sed '=' <$as_myself |
21979 sed '
21980 N
21981 s,$,-,
21982 : loop
21983 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21984 t loop
21985 s,-$,,
21986 s,^['$as_cr_digits']*\n,,
21987 ' >$as_me.lineno &&
21988 chmod +x $as_me.lineno ||
21989 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21990 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21991 { (exit 1); exit 1; }; }
21992
21993 # Don't try to exec as it changes $[0], causing all sort of problems
21994 # (the dirname of $[0] is not the place where we might find the
21995 # original and so on. Autoconf is especially sensible to this).
21996 . ./$as_me.lineno
21997 # Exit status is that of the last command.
21998 exit
21999 }
22000
22001
22002 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22003 *c*,-n*) ECHO_N= ECHO_C='
22004 ' ECHO_T=' ' ;;
22005 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22006 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22007 esac
22008
22009 if expr a : '\(a\)' >/dev/null 2>&1; then
22010 as_expr=expr
22011 else
22012 as_expr=false
22013 fi
22014
22015 rm -f conf$$ conf$$.exe conf$$.file
22016 echo >conf$$.file
22017 if ln -s conf$$.file conf$$ 2>/dev/null; then
22018 # We could just check for DJGPP; but this test a) works b) is more generic
22019 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22020 if test -f conf$$.exe; then
22021 # Don't use ln at all; we don't have any links
22022 as_ln_s='cp -p'
22023 else
22024 as_ln_s='ln -s'
22025 fi
22026 elif ln conf$$.file conf$$ 2>/dev/null; then
22027 as_ln_s=ln
22028 else
22029 as_ln_s='cp -p'
22030 fi
22031 rm -f conf$$ conf$$.exe conf$$.file
22032
22033 if mkdir -p . 2>/dev/null; then
22034 as_mkdir_p=:
22035 else
22036 test -d ./-p && rmdir ./-p
22037 as_mkdir_p=false
22038 fi
22039
22040 as_executable_p="test -f"
22041
22042 # Sed expression to map a string onto a valid CPP name.
22043 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22044
22045 # Sed expression to map a string onto a valid variable name.
22046 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22047
22048
22049 # IFS
22050 # We need space, tab and new line, in precisely that order.
22051 as_nl='
22052 '
22053 IFS=" $as_nl"
22054
22055 # CDPATH.
22056 $as_unset CDPATH
22057
22058 exec 6>&1
22059
22060 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22061 # report actual input values of CONFIG_FILES etc. instead of their
22062 # values after options handling. Logging --version etc. is OK.
22063 exec 5>>config.log
22064 {
22065 echo
22066 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22067 ## Running $as_me. ##
22068 _ASBOX
22069 } >&5
22070 cat >&5 <<_CSEOF
22071
22072 This file was extended by $as_me, which was
22073 generated by GNU Autoconf 2.59. Invocation command line was
22074
22075 CONFIG_FILES = $CONFIG_FILES
22076 CONFIG_HEADERS = $CONFIG_HEADERS
22077 CONFIG_LINKS = $CONFIG_LINKS
22078 CONFIG_COMMANDS = $CONFIG_COMMANDS
22079 $ $0 $@
22080
22081 _CSEOF
22082 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22083 echo >&5
22084 _ACEOF
22085
22086 # Files that config.status was made for.
22087 if test -n "$ac_config_files"; then
22088 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22089 fi
22090
22091 if test -n "$ac_config_headers"; then
22092 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22093 fi
22094
22095 if test -n "$ac_config_links"; then
22096 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22097 fi
22098
22099 if test -n "$ac_config_commands"; then
22100 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22101 fi
22102
22103 cat >>$CONFIG_STATUS <<\_ACEOF
22104
22105 ac_cs_usage="\
22106 \`$as_me' instantiates files from templates according to the
22107 current configuration.
22108
22109 Usage: $0 [OPTIONS] [FILE]...
22110
22111 -h, --help print this help, then exit
22112 -V, --version print version number, then exit
22113 -q, --quiet do not print progress messages
22114 -d, --debug don't remove temporary files
22115 --recheck update $as_me by reconfiguring in the same conditions
22116 --file=FILE[:TEMPLATE]
22117 instantiate the configuration file FILE
22118 --header=FILE[:TEMPLATE]
22119 instantiate the configuration header FILE
22120
22121 Configuration files:
22122 $config_files
22123
22124 Configuration headers:
22125 $config_headers
22126
22127 Configuration links:
22128 $config_links
22129
22130 Configuration commands:
22131 $config_commands
22132
22133 Report bugs to <bug-autoconf@gnu.org>."
22134 _ACEOF
22135
22136 cat >>$CONFIG_STATUS <<_ACEOF
22137 ac_cs_version="\\
22138 config.status
22139 configured by $0, generated by GNU Autoconf 2.59,
22140 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22141
22142 Copyright (C) 2003 Free Software Foundation, Inc.
22143 This config.status script is free software; the Free Software Foundation
22144 gives unlimited permission to copy, distribute and modify it."
22145 srcdir=$srcdir
22146 INSTALL="$INSTALL"
22147 _ACEOF
22148
22149 cat >>$CONFIG_STATUS <<\_ACEOF
22150 # If no file are specified by the user, then we need to provide default
22151 # value. By we need to know if files were specified by the user.
22152 ac_need_defaults=:
22153 while test $# != 0
22154 do
22155 case $1 in
22156 --*=*)
22157 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22158 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22159 ac_shift=:
22160 ;;
22161 -*)
22162 ac_option=$1
22163 ac_optarg=$2
22164 ac_shift=shift
22165 ;;
22166 *) # This is not an option, so the user has probably given explicit
22167 # arguments.
22168 ac_option=$1
22169 ac_need_defaults=false;;
22170 esac
22171
22172 case $ac_option in
22173 # Handling of the options.
22174 _ACEOF
22175 cat >>$CONFIG_STATUS <<\_ACEOF
22176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22177 ac_cs_recheck=: ;;
22178 --version | --vers* | -V )
22179 echo "$ac_cs_version"; exit 0 ;;
22180 --he | --h)
22181 # Conflict between --help and --header
22182 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22183 Try \`$0 --help' for more information." >&5
22184 echo "$as_me: error: ambiguous option: $1
22185 Try \`$0 --help' for more information." >&2;}
22186 { (exit 1); exit 1; }; };;
22187 --help | --hel | -h )
22188 echo "$ac_cs_usage"; exit 0 ;;
22189 --debug | --d* | -d )
22190 debug=: ;;
22191 --file | --fil | --fi | --f )
22192 $ac_shift
22193 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22194 ac_need_defaults=false;;
22195 --header | --heade | --head | --hea )
22196 $ac_shift
22197 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22198 ac_need_defaults=false;;
22199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22200 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22201 ac_cs_silent=: ;;
22202
22203 # This is an error.
22204 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22205 Try \`$0 --help' for more information." >&5
22206 echo "$as_me: error: unrecognized option: $1
22207 Try \`$0 --help' for more information." >&2;}
22208 { (exit 1); exit 1; }; } ;;
22209
22210 *) ac_config_targets="$ac_config_targets $1" ;;
22211
22212 esac
22213 shift
22214 done
22215
22216 ac_configure_extra_args=
22217
22218 if $ac_cs_silent; then
22219 exec 6>/dev/null
22220 ac_configure_extra_args="$ac_configure_extra_args --silent"
22221 fi
22222
22223 _ACEOF
22224 cat >>$CONFIG_STATUS <<_ACEOF
22225 if \$ac_cs_recheck; then
22226 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22227 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22228 fi
22229
22230 _ACEOF
22231
22232 cat >>$CONFIG_STATUS <<_ACEOF
22233 #
22234 # INIT-COMMANDS section.
22235 #
22236
22237
22238 gdb_host_cpu=$gdb_host_cpu
22239 gdb_target_cpu=$gdb_target_cpu
22240 nativefile=$nativefile
22241
22242
22243 _ACEOF
22244
22245
22246
22247 cat >>$CONFIG_STATUS <<\_ACEOF
22248 for ac_config_target in $ac_config_targets
22249 do
22250 case "$ac_config_target" in
22251 # Handling of arguments.
22252 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22253 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22254 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22255 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22256 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22257 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22258 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22259 { (exit 1); exit 1; }; };;
22260 esac
22261 done
22262
22263 # If the user did not use the arguments to specify the items to instantiate,
22264 # then the envvar interface is used. Set only those that are not.
22265 # We use the long form for the default assignment because of an extremely
22266 # bizarre bug on SunOS 4.1.3.
22267 if $ac_need_defaults; then
22268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22269 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22270 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22271 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22272 fi
22273
22274 # Have a temporary directory for convenience. Make it in the build tree
22275 # simply because there is no reason to put it here, and in addition,
22276 # creating and moving files from /tmp can sometimes cause problems.
22277 # Create a temporary directory, and hook for its removal unless debugging.
22278 $debug ||
22279 {
22280 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22281 trap '{ (exit 1); exit 1; }' 1 2 13 15
22282 }
22283
22284 # Create a (secure) tmp directory for tmp files.
22285
22286 {
22287 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22288 test -n "$tmp" && test -d "$tmp"
22289 } ||
22290 {
22291 tmp=./confstat$$-$RANDOM
22292 (umask 077 && mkdir $tmp)
22293 } ||
22294 {
22295 echo "$me: cannot create a temporary directory in ." >&2
22296 { (exit 1); exit 1; }
22297 }
22298
22299 _ACEOF
22300
22301 cat >>$CONFIG_STATUS <<_ACEOF
22302
22303 #
22304 # CONFIG_FILES section.
22305 #
22306
22307 # No need to generate the scripts if there are no CONFIG_FILES.
22308 # This happens for instance when ./config.status config.h
22309 if test -n "\$CONFIG_FILES"; then
22310 # Protect against being on the right side of a sed subst in config.status.
22311 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22312 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22313 s,@SHELL@,$SHELL,;t t
22314 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22315 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22316 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22317 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22318 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22319 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22320 s,@exec_prefix@,$exec_prefix,;t t
22321 s,@prefix@,$prefix,;t t
22322 s,@program_transform_name@,$program_transform_name,;t t
22323 s,@bindir@,$bindir,;t t
22324 s,@sbindir@,$sbindir,;t t
22325 s,@libexecdir@,$libexecdir,;t t
22326 s,@datadir@,$datadir,;t t
22327 s,@sysconfdir@,$sysconfdir,;t t
22328 s,@sharedstatedir@,$sharedstatedir,;t t
22329 s,@localstatedir@,$localstatedir,;t t
22330 s,@libdir@,$libdir,;t t
22331 s,@includedir@,$includedir,;t t
22332 s,@oldincludedir@,$oldincludedir,;t t
22333 s,@infodir@,$infodir,;t t
22334 s,@mandir@,$mandir,;t t
22335 s,@build_alias@,$build_alias,;t t
22336 s,@host_alias@,$host_alias,;t t
22337 s,@target_alias@,$target_alias,;t t
22338 s,@DEFS@,$DEFS,;t t
22339 s,@ECHO_C@,$ECHO_C,;t t
22340 s,@ECHO_N@,$ECHO_N,;t t
22341 s,@ECHO_T@,$ECHO_T,;t t
22342 s,@LIBS@,$LIBS,;t t
22343 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22344 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22345 s,@MAINT@,$MAINT,;t t
22346 s,@CC@,$CC,;t t
22347 s,@CFLAGS@,$CFLAGS,;t t
22348 s,@LDFLAGS@,$LDFLAGS,;t t
22349 s,@CPPFLAGS@,$CPPFLAGS,;t t
22350 s,@ac_ct_CC@,$ac_ct_CC,;t t
22351 s,@EXEEXT@,$EXEEXT,;t t
22352 s,@OBJEXT@,$OBJEXT,;t t
22353 s,@CPP@,$CPP,;t t
22354 s,@EGREP@,$EGREP,;t t
22355 s,@build@,$build,;t t
22356 s,@build_cpu@,$build_cpu,;t t
22357 s,@build_vendor@,$build_vendor,;t t
22358 s,@build_os@,$build_os,;t t
22359 s,@host@,$host,;t t
22360 s,@host_cpu@,$host_cpu,;t t
22361 s,@host_vendor@,$host_vendor,;t t
22362 s,@host_os@,$host_os,;t t
22363 s,@target@,$target,;t t
22364 s,@target_cpu@,$target_cpu,;t t
22365 s,@target_vendor@,$target_vendor,;t t
22366 s,@target_os@,$target_os,;t t
22367 s,@RANLIB@,$RANLIB,;t t
22368 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22369 s,@SET_MAKE@,$SET_MAKE,;t t
22370 s,@ALLOCA@,$ALLOCA,;t t
22371 s,@USE_NLS@,$USE_NLS,;t t
22372 s,@MSGFMT@,$MSGFMT,;t t
22373 s,@GMSGFMT@,$GMSGFMT,;t t
22374 s,@XGETTEXT@,$XGETTEXT,;t t
22375 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22376 s,@CATALOGS@,$CATALOGS,;t t
22377 s,@CATOBJEXT@,$CATOBJEXT,;t t
22378 s,@DATADIRNAME@,$DATADIRNAME,;t t
22379 s,@GMOFILES@,$GMOFILES,;t t
22380 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22381 s,@INTLDEPS@,$INTLDEPS,;t t
22382 s,@INTLLIBS@,$INTLLIBS,;t t
22383 s,@INTLOBJS@,$INTLOBJS,;t t
22384 s,@POFILES@,$POFILES,;t t
22385 s,@POSUB@,$POSUB,;t t
22386 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22387 s,@GT_NO@,$GT_NO,;t t
22388 s,@GT_YES@,$GT_YES,;t t
22389 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22390 s,@l@,$l,;t t
22391 s,@localedir@,$localedir,;t t
22392 s,@PACKAGE@,$PACKAGE,;t t
22393 s,@subdirs@,$subdirs,;t t
22394 s,@AWK@,$AWK,;t t
22395 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22396 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22397 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22398 s,@LN_S@,$LN_S,;t t
22399 s,@YACC@,$YACC,;t t
22400 s,@AR@,$AR,;t t
22401 s,@ac_ct_AR@,$ac_ct_AR,;t t
22402 s,@DLLTOOL@,$DLLTOOL,;t t
22403 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22404 s,@WINDRES@,$WINDRES,;t t
22405 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22406 s,@MIG@,$MIG,;t t
22407 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22408 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22409 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22410 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22411 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22412 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22413 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22414 s,@WIN32LIBS@,$WIN32LIBS,;t t
22415 s,@LIBGUI@,$LIBGUI,;t t
22416 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22417 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22418 s,@TCL_VERSION@,$TCL_VERSION,;t t
22419 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22420 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22421 s,@TCL_CC@,$TCL_CC,;t t
22422 s,@TCL_DEFS@,$TCL_DEFS,;t t
22423 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22424 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22425 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22426 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22427 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22428 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22429 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22430 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22431 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22432 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22433 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22434 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22435 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22436 s,@TK_VERSION@,$TK_VERSION,;t t
22437 s,@TK_DEFS@,$TK_DEFS,;t t
22438 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22439 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22440 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22441 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22442 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22443 s,@TCLHDIR@,$TCLHDIR,;t t
22444 s,@TKHDIR@,$TKHDIR,;t t
22445 s,@ITCLHDIR@,$ITCLHDIR,;t t
22446 s,@ITKHDIR@,$ITKHDIR,;t t
22447 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22448 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22449 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22450 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22451 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22452 s,@ITK_VERSION@,$ITK_VERSION,;t t
22453 s,@ITK_DEFS@,$ITK_DEFS,;t t
22454 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22455 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22456 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22457 s,@X_CFLAGS@,$X_CFLAGS,;t t
22458 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22459 s,@X_LIBS@,$X_LIBS,;t t
22460 s,@TCL_DEPS@,$TCL_DEPS,;t t
22461 s,@TK_DEPS@,$TK_DEPS,;t t
22462 s,@ITCLLIB@,$ITCLLIB,;t t
22463 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22464 s,@ITKLIB@,$ITKLIB,;t t
22465 s,@ITK_DEPS@,$ITK_DEPS,;t t
22466 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22467 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22468 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22469 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22470 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22471 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22472 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22473 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22474 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22475 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22476 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22477 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22478 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22479 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22480 s,@target_subdir@,$target_subdir,;t t
22481 s,@frags@,$frags,;t t
22482 s,@xm_h@,$xm_h,;t t
22483 s,@tm_h@,$tm_h,;t t
22484 s,@nm_h@,$nm_h,;t t
22485 s,@LIBICONV@,$LIBICONV,;t t
22486 s,@LIBOBJS@,$LIBOBJS,;t t
22487 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22488 /@host_makefile_frag@/r $host_makefile_frag
22489 s,@host_makefile_frag@,,;t t
22490 /@target_makefile_frag@/r $target_makefile_frag
22491 s,@target_makefile_frag@,,;t t
22492 CEOF
22493
22494 _ACEOF
22495
22496 cat >>$CONFIG_STATUS <<\_ACEOF
22497 # Split the substitutions into bite-sized pieces for seds with
22498 # small command number limits, like on Digital OSF/1 and HP-UX.
22499 ac_max_sed_lines=48
22500 ac_sed_frag=1 # Number of current file.
22501 ac_beg=1 # First line for current file.
22502 ac_end=$ac_max_sed_lines # Line after last line for current file.
22503 ac_more_lines=:
22504 ac_sed_cmds=
22505 while $ac_more_lines; do
22506 if test $ac_beg -gt 1; then
22507 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22508 else
22509 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22510 fi
22511 if test ! -s $tmp/subs.frag; then
22512 ac_more_lines=false
22513 else
22514 # The purpose of the label and of the branching condition is to
22515 # speed up the sed processing (if there are no `@' at all, there
22516 # is no need to browse any of the substitutions).
22517 # These are the two extra sed commands mentioned above.
22518 (echo ':t
22519 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22520 if test -z "$ac_sed_cmds"; then
22521 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22522 else
22523 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22524 fi
22525 ac_sed_frag=`expr $ac_sed_frag + 1`
22526 ac_beg=$ac_end
22527 ac_end=`expr $ac_end + $ac_max_sed_lines`
22528 fi
22529 done
22530 if test -z "$ac_sed_cmds"; then
22531 ac_sed_cmds=cat
22532 fi
22533 fi # test -n "$CONFIG_FILES"
22534
22535 _ACEOF
22536 cat >>$CONFIG_STATUS <<\_ACEOF
22537 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22538 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22539 case $ac_file in
22540 - | *:- | *:-:* ) # input from stdin
22541 cat >$tmp/stdin
22542 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22543 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22544 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22545 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22546 * ) ac_file_in=$ac_file.in ;;
22547 esac
22548
22549 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22550 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22552 X"$ac_file" : 'X\(//\)[^/]' \| \
22553 X"$ac_file" : 'X\(//\)$' \| \
22554 X"$ac_file" : 'X\(/\)' \| \
22555 . : '\(.\)' 2>/dev/null ||
22556 echo X"$ac_file" |
22557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22559 /^X\(\/\/\)$/{ s//\1/; q; }
22560 /^X\(\/\).*/{ s//\1/; q; }
22561 s/.*/./; q'`
22562 { if $as_mkdir_p; then
22563 mkdir -p "$ac_dir"
22564 else
22565 as_dir="$ac_dir"
22566 as_dirs=
22567 while test ! -d "$as_dir"; do
22568 as_dirs="$as_dir $as_dirs"
22569 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22571 X"$as_dir" : 'X\(//\)[^/]' \| \
22572 X"$as_dir" : 'X\(//\)$' \| \
22573 X"$as_dir" : 'X\(/\)' \| \
22574 . : '\(.\)' 2>/dev/null ||
22575 echo X"$as_dir" |
22576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22578 /^X\(\/\/\)$/{ s//\1/; q; }
22579 /^X\(\/\).*/{ s//\1/; q; }
22580 s/.*/./; q'`
22581 done
22582 test ! -n "$as_dirs" || mkdir $as_dirs
22583 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22584 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22585 { (exit 1); exit 1; }; }; }
22586
22587 ac_builddir=.
22588
22589 if test "$ac_dir" != .; then
22590 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22591 # A "../" for each directory in $ac_dir_suffix.
22592 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22593 else
22594 ac_dir_suffix= ac_top_builddir=
22595 fi
22596
22597 case $srcdir in
22598 .) # No --srcdir option. We are building in place.
22599 ac_srcdir=.
22600 if test -z "$ac_top_builddir"; then
22601 ac_top_srcdir=.
22602 else
22603 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22604 fi ;;
22605 [\\/]* | ?:[\\/]* ) # Absolute path.
22606 ac_srcdir=$srcdir$ac_dir_suffix;
22607 ac_top_srcdir=$srcdir ;;
22608 *) # Relative path.
22609 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22610 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22611 esac
22612
22613 # Do not use `cd foo && pwd` to compute absolute paths, because
22614 # the directories may not exist.
22615 case `pwd` in
22616 .) ac_abs_builddir="$ac_dir";;
22617 *)
22618 case "$ac_dir" in
22619 .) ac_abs_builddir=`pwd`;;
22620 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22621 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22622 esac;;
22623 esac
22624 case $ac_abs_builddir in
22625 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22626 *)
22627 case ${ac_top_builddir}. in
22628 .) ac_abs_top_builddir=$ac_abs_builddir;;
22629 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22630 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22631 esac;;
22632 esac
22633 case $ac_abs_builddir in
22634 .) ac_abs_srcdir=$ac_srcdir;;
22635 *)
22636 case $ac_srcdir in
22637 .) ac_abs_srcdir=$ac_abs_builddir;;
22638 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22639 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22640 esac;;
22641 esac
22642 case $ac_abs_builddir in
22643 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22644 *)
22645 case $ac_top_srcdir in
22646 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22647 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22648 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22649 esac;;
22650 esac
22651
22652
22653 case $INSTALL in
22654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22655 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22656 esac
22657
22658 if test x"$ac_file" != x-; then
22659 { echo "$as_me:$LINENO: creating $ac_file" >&5
22660 echo "$as_me: creating $ac_file" >&6;}
22661 rm -f "$ac_file"
22662 fi
22663 # Let's still pretend it is `configure' which instantiates (i.e., don't
22664 # use $as_me), people would be surprised to read:
22665 # /* config.h. Generated by config.status. */
22666 if test x"$ac_file" = x-; then
22667 configure_input=
22668 else
22669 configure_input="$ac_file. "
22670 fi
22671 configure_input=$configure_input"Generated from `echo $ac_file_in |
22672 sed 's,.*/,,'` by configure."
22673
22674 # First look for the input files in the build tree, otherwise in the
22675 # src tree.
22676 ac_file_inputs=`IFS=:
22677 for f in $ac_file_in; do
22678 case $f in
22679 -) echo $tmp/stdin ;;
22680 [\\/$]*)
22681 # Absolute (can't be DOS-style, as IFS=:)
22682 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22683 echo "$as_me: error: cannot find input file: $f" >&2;}
22684 { (exit 1); exit 1; }; }
22685 echo "$f";;
22686 *) # Relative
22687 if test -f "$f"; then
22688 # Build tree
22689 echo "$f"
22690 elif test -f "$srcdir/$f"; then
22691 # Source tree
22692 echo "$srcdir/$f"
22693 else
22694 # /dev/null tree
22695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22696 echo "$as_me: error: cannot find input file: $f" >&2;}
22697 { (exit 1); exit 1; }; }
22698 fi;;
22699 esac
22700 done` || { (exit 1); exit 1; }
22701 _ACEOF
22702 cat >>$CONFIG_STATUS <<_ACEOF
22703 sed "$ac_vpsub
22704 $extrasub
22705 _ACEOF
22706 cat >>$CONFIG_STATUS <<\_ACEOF
22707 :t
22708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22709 s,@configure_input@,$configure_input,;t t
22710 s,@srcdir@,$ac_srcdir,;t t
22711 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22712 s,@top_srcdir@,$ac_top_srcdir,;t t
22713 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22714 s,@builddir@,$ac_builddir,;t t
22715 s,@abs_builddir@,$ac_abs_builddir,;t t
22716 s,@top_builddir@,$ac_top_builddir,;t t
22717 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22718 s,@INSTALL@,$ac_INSTALL,;t t
22719 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22720 rm -f $tmp/stdin
22721 if test x"$ac_file" != x-; then
22722 mv $tmp/out $ac_file
22723 else
22724 cat $tmp/out
22725 rm -f $tmp/out
22726 fi
22727
22728 done
22729 _ACEOF
22730 cat >>$CONFIG_STATUS <<\_ACEOF
22731
22732 #
22733 # CONFIG_HEADER section.
22734 #
22735
22736 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22737 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22738 #
22739 # ac_d sets the value in "#define NAME VALUE" lines.
22740 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22741 ac_dB='[ ].*$,\1#\2'
22742 ac_dC=' '
22743 ac_dD=',;t'
22744 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22745 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22746 ac_uB='$,\1#\2define\3'
22747 ac_uC=' '
22748 ac_uD=',;t'
22749
22750 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22752 case $ac_file in
22753 - | *:- | *:-:* ) # input from stdin
22754 cat >$tmp/stdin
22755 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22756 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22757 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22759 * ) ac_file_in=$ac_file.in ;;
22760 esac
22761
22762 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22763 echo "$as_me: creating $ac_file" >&6;}
22764
22765 # First look for the input files in the build tree, otherwise in the
22766 # src tree.
22767 ac_file_inputs=`IFS=:
22768 for f in $ac_file_in; do
22769 case $f in
22770 -) echo $tmp/stdin ;;
22771 [\\/$]*)
22772 # Absolute (can't be DOS-style, as IFS=:)
22773 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22774 echo "$as_me: error: cannot find input file: $f" >&2;}
22775 { (exit 1); exit 1; }; }
22776 # Do quote $f, to prevent DOS paths from being IFS'd.
22777 echo "$f";;
22778 *) # Relative
22779 if test -f "$f"; then
22780 # Build tree
22781 echo "$f"
22782 elif test -f "$srcdir/$f"; then
22783 # Source tree
22784 echo "$srcdir/$f"
22785 else
22786 # /dev/null tree
22787 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22788 echo "$as_me: error: cannot find input file: $f" >&2;}
22789 { (exit 1); exit 1; }; }
22790 fi;;
22791 esac
22792 done` || { (exit 1); exit 1; }
22793 # Remove the trailing spaces.
22794 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22795
22796 _ACEOF
22797
22798 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22799 # `conftest.undefs', that substitutes the proper values into
22800 # config.h.in to produce config.h. The first handles `#define'
22801 # templates, and the second `#undef' templates.
22802 # And first: Protect against being on the right side of a sed subst in
22803 # config.status. Protect against being in an unquoted here document
22804 # in config.status.
22805 rm -f conftest.defines conftest.undefs
22806 # Using a here document instead of a string reduces the quoting nightmare.
22807 # Putting comments in sed scripts is not portable.
22808 #
22809 # `end' is used to avoid that the second main sed command (meant for
22810 # 0-ary CPP macros) applies to n-ary macro definitions.
22811 # See the Autoconf documentation for `clear'.
22812 cat >confdef2sed.sed <<\_ACEOF
22813 s/[\\&,]/\\&/g
22814 s,[\\$`],\\&,g
22815 t clear
22816 : clear
22817 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22818 t end
22819 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22820 : end
22821 _ACEOF
22822 # If some macros were called several times there might be several times
22823 # the same #defines, which is useless. Nevertheless, we may not want to
22824 # sort them, since we want the *last* AC-DEFINE to be honored.
22825 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22826 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22827 rm -f confdef2sed.sed
22828
22829 # This sed command replaces #undef with comments. This is necessary, for
22830 # example, in the case of _POSIX_SOURCE, which is predefined and required
22831 # on some systems where configure will not decide to define it.
22832 cat >>conftest.undefs <<\_ACEOF
22833 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22834 _ACEOF
22835
22836 # Break up conftest.defines because some shells have a limit on the size
22837 # of here documents, and old seds have small limits too (100 cmds).
22838 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22839 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22840 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22841 echo ' :' >>$CONFIG_STATUS
22842 rm -f conftest.tail
22843 while grep . conftest.defines >/dev/null
22844 do
22845 # Write a limited-size here document to $tmp/defines.sed.
22846 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22847 # Speed up: don't consider the non `#define' lines.
22848 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22849 # Work around the forget-to-reset-the-flag bug.
22850 echo 't clr' >>$CONFIG_STATUS
22851 echo ': clr' >>$CONFIG_STATUS
22852 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22853 echo 'CEOF
22854 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22855 rm -f $tmp/in
22856 mv $tmp/out $tmp/in
22857 ' >>$CONFIG_STATUS
22858 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22859 rm -f conftest.defines
22860 mv conftest.tail conftest.defines
22861 done
22862 rm -f conftest.defines
22863 echo ' fi # grep' >>$CONFIG_STATUS
22864 echo >>$CONFIG_STATUS
22865
22866 # Break up conftest.undefs because some shells have a limit on the size
22867 # of here documents, and old seds have small limits too (100 cmds).
22868 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22869 rm -f conftest.tail
22870 while grep . conftest.undefs >/dev/null
22871 do
22872 # Write a limited-size here document to $tmp/undefs.sed.
22873 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22874 # Speed up: don't consider the non `#undef'
22875 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22876 # Work around the forget-to-reset-the-flag bug.
22877 echo 't clr' >>$CONFIG_STATUS
22878 echo ': clr' >>$CONFIG_STATUS
22879 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22880 echo 'CEOF
22881 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22882 rm -f $tmp/in
22883 mv $tmp/out $tmp/in
22884 ' >>$CONFIG_STATUS
22885 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22886 rm -f conftest.undefs
22887 mv conftest.tail conftest.undefs
22888 done
22889 rm -f conftest.undefs
22890
22891 cat >>$CONFIG_STATUS <<\_ACEOF
22892 # Let's still pretend it is `configure' which instantiates (i.e., don't
22893 # use $as_me), people would be surprised to read:
22894 # /* config.h. Generated by config.status. */
22895 if test x"$ac_file" = x-; then
22896 echo "/* Generated by configure. */" >$tmp/config.h
22897 else
22898 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22899 fi
22900 cat $tmp/in >>$tmp/config.h
22901 rm -f $tmp/in
22902 if test x"$ac_file" != x-; then
22903 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22904 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22905 echo "$as_me: $ac_file is unchanged" >&6;}
22906 else
22907 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22909 X"$ac_file" : 'X\(//\)[^/]' \| \
22910 X"$ac_file" : 'X\(//\)$' \| \
22911 X"$ac_file" : 'X\(/\)' \| \
22912 . : '\(.\)' 2>/dev/null ||
22913 echo X"$ac_file" |
22914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22916 /^X\(\/\/\)$/{ s//\1/; q; }
22917 /^X\(\/\).*/{ s//\1/; q; }
22918 s/.*/./; q'`
22919 { if $as_mkdir_p; then
22920 mkdir -p "$ac_dir"
22921 else
22922 as_dir="$ac_dir"
22923 as_dirs=
22924 while test ! -d "$as_dir"; do
22925 as_dirs="$as_dir $as_dirs"
22926 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22928 X"$as_dir" : 'X\(//\)[^/]' \| \
22929 X"$as_dir" : 'X\(//\)$' \| \
22930 X"$as_dir" : 'X\(/\)' \| \
22931 . : '\(.\)' 2>/dev/null ||
22932 echo X"$as_dir" |
22933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22935 /^X\(\/\/\)$/{ s//\1/; q; }
22936 /^X\(\/\).*/{ s//\1/; q; }
22937 s/.*/./; q'`
22938 done
22939 test ! -n "$as_dirs" || mkdir $as_dirs
22940 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22941 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22942 { (exit 1); exit 1; }; }; }
22943
22944 rm -f $ac_file
22945 mv $tmp/config.h $ac_file
22946 fi
22947 else
22948 cat $tmp/config.h
22949 rm -f $tmp/config.h
22950 fi
22951 done
22952 _ACEOF
22953 cat >>$CONFIG_STATUS <<\_ACEOF
22954
22955 #
22956 # CONFIG_LINKS section.
22957 #
22958
22959 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22960 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22961 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22962
22963 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22964 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22965
22966 if test ! -r $srcdir/$ac_source; then
22967 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22968 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22969 { (exit 1); exit 1; }; }
22970 fi
22971 rm -f $ac_dest
22972
22973 # Make relative symlinks.
22974 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22975 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22976 X"$ac_dest" : 'X\(//\)[^/]' \| \
22977 X"$ac_dest" : 'X\(//\)$' \| \
22978 X"$ac_dest" : 'X\(/\)' \| \
22979 . : '\(.\)' 2>/dev/null ||
22980 echo X"$ac_dest" |
22981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22983 /^X\(\/\/\)$/{ s//\1/; q; }
22984 /^X\(\/\).*/{ s//\1/; q; }
22985 s/.*/./; q'`
22986 { if $as_mkdir_p; then
22987 mkdir -p "$ac_dest_dir"
22988 else
22989 as_dir="$ac_dest_dir"
22990 as_dirs=
22991 while test ! -d "$as_dir"; do
22992 as_dirs="$as_dir $as_dirs"
22993 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22994 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22995 X"$as_dir" : 'X\(//\)[^/]' \| \
22996 X"$as_dir" : 'X\(//\)$' \| \
22997 X"$as_dir" : 'X\(/\)' \| \
22998 . : '\(.\)' 2>/dev/null ||
22999 echo X"$as_dir" |
23000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23002 /^X\(\/\/\)$/{ s//\1/; q; }
23003 /^X\(\/\).*/{ s//\1/; q; }
23004 s/.*/./; q'`
23005 done
23006 test ! -n "$as_dirs" || mkdir $as_dirs
23007 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23008 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23009 { (exit 1); exit 1; }; }; }
23010
23011 ac_builddir=.
23012
23013 if test "$ac_dest_dir" != .; then
23014 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23015 # A "../" for each directory in $ac_dir_suffix.
23016 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23017 else
23018 ac_dir_suffix= ac_top_builddir=
23019 fi
23020
23021 case $srcdir in
23022 .) # No --srcdir option. We are building in place.
23023 ac_srcdir=.
23024 if test -z "$ac_top_builddir"; then
23025 ac_top_srcdir=.
23026 else
23027 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23028 fi ;;
23029 [\\/]* | ?:[\\/]* ) # Absolute path.
23030 ac_srcdir=$srcdir$ac_dir_suffix;
23031 ac_top_srcdir=$srcdir ;;
23032 *) # Relative path.
23033 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23034 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23035 esac
23036
23037 # Do not use `cd foo && pwd` to compute absolute paths, because
23038 # the directories may not exist.
23039 case `pwd` in
23040 .) ac_abs_builddir="$ac_dest_dir";;
23041 *)
23042 case "$ac_dest_dir" in
23043 .) ac_abs_builddir=`pwd`;;
23044 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23045 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23046 esac;;
23047 esac
23048 case $ac_abs_builddir in
23049 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23050 *)
23051 case ${ac_top_builddir}. in
23052 .) ac_abs_top_builddir=$ac_abs_builddir;;
23053 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23054 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23055 esac;;
23056 esac
23057 case $ac_abs_builddir in
23058 .) ac_abs_srcdir=$ac_srcdir;;
23059 *)
23060 case $ac_srcdir in
23061 .) ac_abs_srcdir=$ac_abs_builddir;;
23062 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23063 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23064 esac;;
23065 esac
23066 case $ac_abs_builddir in
23067 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23068 *)
23069 case $ac_top_srcdir in
23070 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23071 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23072 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23073 esac;;
23074 esac
23075
23076
23077 case $srcdir in
23078 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23079 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23080 esac
23081
23082 # Try a symlink, then a hard link, then a copy.
23083 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23084 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23085 cp -p $srcdir/$ac_source $ac_dest ||
23086 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23087 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23088 { (exit 1); exit 1; }; }
23089 done
23090 _ACEOF
23091 cat >>$CONFIG_STATUS <<\_ACEOF
23092
23093 #
23094 # CONFIG_COMMANDS section.
23095 #
23096 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23097 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23098 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23099 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23100 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23101 X"$ac_dest" : 'X\(//\)[^/]' \| \
23102 X"$ac_dest" : 'X\(//\)$' \| \
23103 X"$ac_dest" : 'X\(/\)' \| \
23104 . : '\(.\)' 2>/dev/null ||
23105 echo X"$ac_dest" |
23106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23108 /^X\(\/\/\)$/{ s//\1/; q; }
23109 /^X\(\/\).*/{ s//\1/; q; }
23110 s/.*/./; q'`
23111 { if $as_mkdir_p; then
23112 mkdir -p "$ac_dir"
23113 else
23114 as_dir="$ac_dir"
23115 as_dirs=
23116 while test ! -d "$as_dir"; do
23117 as_dirs="$as_dir $as_dirs"
23118 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23120 X"$as_dir" : 'X\(//\)[^/]' \| \
23121 X"$as_dir" : 'X\(//\)$' \| \
23122 X"$as_dir" : 'X\(/\)' \| \
23123 . : '\(.\)' 2>/dev/null ||
23124 echo X"$as_dir" |
23125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23127 /^X\(\/\/\)$/{ s//\1/; q; }
23128 /^X\(\/\).*/{ s//\1/; q; }
23129 s/.*/./; q'`
23130 done
23131 test ! -n "$as_dirs" || mkdir $as_dirs
23132 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23133 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23134 { (exit 1); exit 1; }; }; }
23135
23136 ac_builddir=.
23137
23138 if test "$ac_dir" != .; then
23139 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23140 # A "../" for each directory in $ac_dir_suffix.
23141 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23142 else
23143 ac_dir_suffix= ac_top_builddir=
23144 fi
23145
23146 case $srcdir in
23147 .) # No --srcdir option. We are building in place.
23148 ac_srcdir=.
23149 if test -z "$ac_top_builddir"; then
23150 ac_top_srcdir=.
23151 else
23152 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23153 fi ;;
23154 [\\/]* | ?:[\\/]* ) # Absolute path.
23155 ac_srcdir=$srcdir$ac_dir_suffix;
23156 ac_top_srcdir=$srcdir ;;
23157 *) # Relative path.
23158 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23159 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23160 esac
23161
23162 # Do not use `cd foo && pwd` to compute absolute paths, because
23163 # the directories may not exist.
23164 case `pwd` in
23165 .) ac_abs_builddir="$ac_dir";;
23166 *)
23167 case "$ac_dir" in
23168 .) ac_abs_builddir=`pwd`;;
23169 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23170 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23171 esac;;
23172 esac
23173 case $ac_abs_builddir in
23174 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23175 *)
23176 case ${ac_top_builddir}. in
23177 .) ac_abs_top_builddir=$ac_abs_builddir;;
23178 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23179 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23180 esac;;
23181 esac
23182 case $ac_abs_builddir in
23183 .) ac_abs_srcdir=$ac_srcdir;;
23184 *)
23185 case $ac_srcdir in
23186 .) ac_abs_srcdir=$ac_abs_builddir;;
23187 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23188 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23189 esac;;
23190 esac
23191 case $ac_abs_builddir in
23192 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23193 *)
23194 case $ac_top_srcdir in
23195 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23196 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23197 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23198 esac;;
23199 esac
23200
23201
23202 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23203 echo "$as_me: executing $ac_dest commands" >&6;}
23204 case $ac_dest in
23205 default )
23206
23207 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
23208 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23209 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23210 mv -f Makefile.tmp Makefile
23211
23212
23213 case x$CONFIG_HEADERS in
23214 xconfig.h:config.in)
23215 echo > stamp-h ;;
23216 esac
23217 ;;
23218 esac
23219 done
23220 _ACEOF
23221
23222 cat >>$CONFIG_STATUS <<\_ACEOF
23223
23224 { (exit 0); exit 0; }
23225 _ACEOF
23226 chmod +x $CONFIG_STATUS
23227 ac_clean_files=$ac_clean_files_save
23228
23229
23230 # configure is writing to config.log, and then calls config.status.
23231 # config.status does its own redirection, appending to config.log.
23232 # Unfortunately, on DOS this fails, as config.log is still kept open
23233 # by configure, so config.status won't be able to write to it; its
23234 # output is simply discarded. So we exec the FD to /dev/null,
23235 # effectively closing config.log, so it can be properly (re)opened and
23236 # appended to by config.status. When coming back to configure, we
23237 # need to make the FD available again.
23238 if test "$no_create" != yes; then
23239 ac_cs_success=:
23240 ac_config_status_args=
23241 test "$silent" = yes &&
23242 ac_config_status_args="$ac_config_status_args --quiet"
23243 exec 5>/dev/null
23244 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23245 exec 5>>config.log
23246 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23247 # would make configure fail if this is the last instruction.
23248 $ac_cs_success || { (exit 1); exit 1; }
23249 fi
23250
23251 #
23252 # CONFIG_SUBDIRS section.
23253 #
23254 if test "$no_recursion" != yes; then
23255
23256 # Remove --cache-file and --srcdir arguments so they do not pile up.
23257 ac_sub_configure_args=
23258 ac_prev=
23259 for ac_arg in $ac_configure_args; do
23260 if test -n "$ac_prev"; then
23261 ac_prev=
23262 continue
23263 fi
23264 case $ac_arg in
23265 -cache-file | --cache-file | --cache-fil | --cache-fi \
23266 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23267 ac_prev=cache_file ;;
23268 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23269 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23270 | --c=*)
23271 ;;
23272 --config-cache | -C)
23273 ;;
23274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23275 ac_prev=srcdir ;;
23276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23277 ;;
23278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23279 ac_prev=prefix ;;
23280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23281 ;;
23282 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23283 esac
23284 done
23285
23286 # Always prepend --prefix to ensure using the same prefix
23287 # in subdir configurations.
23288 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23289
23290 ac_popdir=`pwd`
23291 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23292
23293 # Do not complain, so a configure script can configure whichever
23294 # parts of a large source tree are present.
23295 test -d $srcdir/$ac_dir || continue
23296
23297 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23298 echo "$as_me: configuring in $ac_dir" >&6;}
23299 { if $as_mkdir_p; then
23300 mkdir -p "$ac_dir"
23301 else
23302 as_dir="$ac_dir"
23303 as_dirs=
23304 while test ! -d "$as_dir"; do
23305 as_dirs="$as_dir $as_dirs"
23306 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23308 X"$as_dir" : 'X\(//\)[^/]' \| \
23309 X"$as_dir" : 'X\(//\)$' \| \
23310 X"$as_dir" : 'X\(/\)' \| \
23311 . : '\(.\)' 2>/dev/null ||
23312 echo X"$as_dir" |
23313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23315 /^X\(\/\/\)$/{ s//\1/; q; }
23316 /^X\(\/\).*/{ s//\1/; q; }
23317 s/.*/./; q'`
23318 done
23319 test ! -n "$as_dirs" || mkdir $as_dirs
23320 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23321 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23322 { (exit 1); exit 1; }; }; }
23323
23324 ac_builddir=.
23325
23326 if test "$ac_dir" != .; then
23327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23328 # A "../" for each directory in $ac_dir_suffix.
23329 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23330 else
23331 ac_dir_suffix= ac_top_builddir=
23332 fi
23333
23334 case $srcdir in
23335 .) # No --srcdir option. We are building in place.
23336 ac_srcdir=.
23337 if test -z "$ac_top_builddir"; then
23338 ac_top_srcdir=.
23339 else
23340 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23341 fi ;;
23342 [\\/]* | ?:[\\/]* ) # Absolute path.
23343 ac_srcdir=$srcdir$ac_dir_suffix;
23344 ac_top_srcdir=$srcdir ;;
23345 *) # Relative path.
23346 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23347 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23348 esac
23349
23350 # Do not use `cd foo && pwd` to compute absolute paths, because
23351 # the directories may not exist.
23352 case `pwd` in
23353 .) ac_abs_builddir="$ac_dir";;
23354 *)
23355 case "$ac_dir" in
23356 .) ac_abs_builddir=`pwd`;;
23357 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23358 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23359 esac;;
23360 esac
23361 case $ac_abs_builddir in
23362 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23363 *)
23364 case ${ac_top_builddir}. in
23365 .) ac_abs_top_builddir=$ac_abs_builddir;;
23366 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23367 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23368 esac;;
23369 esac
23370 case $ac_abs_builddir in
23371 .) ac_abs_srcdir=$ac_srcdir;;
23372 *)
23373 case $ac_srcdir in
23374 .) ac_abs_srcdir=$ac_abs_builddir;;
23375 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23376 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23377 esac;;
23378 esac
23379 case $ac_abs_builddir in
23380 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23381 *)
23382 case $ac_top_srcdir in
23383 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23384 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23385 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23386 esac;;
23387 esac
23388
23389
23390 cd $ac_dir
23391
23392 # Check for guested configure; otherwise get Cygnus style configure.
23393 if test -f $ac_srcdir/configure.gnu; then
23394 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23395 elif test -f $ac_srcdir/configure; then
23396 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23397 elif test -f $ac_srcdir/configure.in; then
23398 ac_sub_configure=$ac_configure
23399 else
23400 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23401 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23402 ac_sub_configure=
23403 fi
23404
23405 # The recursion is here.
23406 if test -n "$ac_sub_configure"; then
23407 # Make the cache file name correct relative to the subdirectory.
23408 case $cache_file in
23409 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23410 *) # Relative path.
23411 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23412 esac
23413
23414 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23415 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23416 # The eval makes quoting arguments work.
23417 eval $ac_sub_configure $ac_sub_configure_args \
23418 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23419 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23420 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23421 { (exit 1); exit 1; }; }
23422 fi
23423
23424 cd $ac_popdir
23425 done
23426 fi
23427
23428
23429 exit 0
This page took 0.89079 seconds and 4 git commands to generate.