* configure.ac: Introduce ---enable-werror, which adds -Werror to
[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 nlm"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
318 ac_subst_files='host_makefile_frag target_makefile_frag'
319
320 # Initialize some variables set by options.
321 ac_init_help=
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
325 cache_file=/dev/null
326 exec_prefix=NONE
327 no_create=
328 no_recursion=
329 prefix=NONE
330 program_prefix=NONE
331 program_suffix=NONE
332 program_transform_name=s,x,x,
333 silent=
334 site=
335 srcdir=
336 verbose=
337 x_includes=NONE
338 x_libraries=NONE
339
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
357
358 ac_prev=
359 for ac_option
360 do
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
364 ac_prev=
365 continue
366 fi
367
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
370 # Accept the important Cygnus configure options, so we can diagnose typos.
371
372 case $ac_option in
373
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 ac_prev=bindir ;;
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 bindir=$ac_optarg ;;
378
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
383
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
390
391 --config-cache | -C)
392 cache_file=config.cache ;;
393
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 ac_prev=datadir ;;
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 | --da=*)
398 datadir=$ac_optarg ;;
399
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
408
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 case $ac_option in
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 *) ac_optarg=yes ;;
419 esac
420 eval "enable_$ac_feature='$ac_optarg'" ;;
421
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
430
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
433 with_gas=yes ;;
434
435 -help | --help | --hel | --he | -h)
436 ac_init_help=long ;;
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
441
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 libdir=$ac_optarg ;;
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 mandir=$ac_optarg ;;
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 prefix=$ac_optarg ;;
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
550 sbindir=$ac_optarg ;;
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
561 sharedstatedir=$ac_optarg ;;
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
566 site=$ac_optarg ;;
567
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 srcdir=$ac_optarg ;;
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
588 -version | --version | --versio | --versi | --vers | -V)
589 ac_init_version=: ;;
590
591 -with-* | --with-*)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
598 case $ac_option in
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 *) ac_optarg=yes ;;
601 esac
602 eval "with_$ac_package='$ac_optarg'" ;;
603
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
612
613 --x)
614 # Obsolete; use --with-x.
615 with_x=yes ;;
616
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
623
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
630
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
634 ;;
635
636 *=*)
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
644 export $ac_envvar ;;
645
646 *)
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 ;;
653
654 esac
655 done
656
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
661 fi
662
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
665 do
666 eval ac_val=$`echo $ac_var`
667 case $ac_val in
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
671 esac
672 done
673
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
677 do
678 eval ac_val=$`echo $ac_var`
679 case $ac_val in
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
683 esac
684 done
685
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
689 build=$build_alias
690 host=$host_alias
691 target=$target_alias
692
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
700 cross_compiling=yes
701 fi
702 fi
703
704 ac_tool_prefix=
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707 test "$silent" = yes && exec 6>/dev/null
708
709
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
720 echo X"$0" |
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
725 s/.*/./; q'`
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730 else
731 ac_srcdir_defaulted=no
732 fi
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
737 else
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
740 fi
741 fi
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
759 ac_env_CC_value=$CC
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778
779 #
780 # Report the --help message.
781 #
782 if test "$ac_init_help" = "long"; then
783 # Omit some internal or obsolete options to make the list less imposing.
784 # This message is too long to be a string in the A/UX 3.1 sh.
785 cat <<_ACEOF
786 \`configure' configures this package to adapt to many kinds of systems.
787
788 Usage: $0 [OPTION]... [VAR=VALUE]...
789
790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
791 VAR=VALUE. See below for descriptions of some of the useful variables.
792
793 Defaults for the options are specified in brackets.
794
795 Configuration:
796 -h, --help display this help and exit
797 --help=short display options specific to this package
798 --help=recursive display the short help of all the included packages
799 -V, --version display version information and exit
800 -q, --quiet, --silent do not print \`checking...' messages
801 --cache-file=FILE cache test results in FILE [disabled]
802 -C, --config-cache alias for \`--cache-file=config.cache'
803 -n, --no-create do not create output files
804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805
806 _ACEOF
807
808 cat <<_ACEOF
809 Installation directories:
810 --prefix=PREFIX install architecture-independent files in PREFIX
811 [$ac_default_prefix]
812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 [PREFIX]
814
815 By default, \`make install' will install all the files in
816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818 for instance \`--prefix=\$HOME'.
819
820 For better control, use the options below.
821
822 Fine tuning of the installation directories:
823 --bindir=DIR user executables [EPREFIX/bin]
824 --sbindir=DIR system admin executables [EPREFIX/sbin]
825 --libexecdir=DIR program executables [EPREFIX/libexec]
826 --datadir=DIR read-only architecture-independent data [PREFIX/share]
827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
830 --libdir=DIR object code libraries [EPREFIX/lib]
831 --includedir=DIR C header files [PREFIX/include]
832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
833 --infodir=DIR info documentation [PREFIX/info]
834 --mandir=DIR man documentation [PREFIX/man]
835 _ACEOF
836
837 cat <<\_ACEOF
838
839 Program names:
840 --program-prefix=PREFIX prepend PREFIX to installed program names
841 --program-suffix=SUFFIX append SUFFIX to installed program names
842 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
843
844 X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
847
848 System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 --target=TARGET configure for building compilers for TARGET [HOST]
852 _ACEOF
853 fi
854
855 if test -n "$ac_init_help"; then
856
857 cat <<\_ACEOF
858
859 Optional Features:
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing) to the casual installer
864 --disable-nls do not use Native Language Support
865 --disable-gdbcli disable command-line interface (CLI)
866 --disable-gdbmi disable machine-interface (MI)
867 --enable-tui enable full-screen terminal user interface (TUI)
868 --enable-gdbtk enable gdbtk graphical user interface (GUI)
869 --enable-profiling enable profiling of GDB
870 --enable-werror treat compile warnings as errors
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" || test ! -s conftest.err'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 (eval $ac_try) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; } &&
1943 { ac_try='test -s conftest.$ac_objext'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1949 ac_compiler_gnu=yes
1950 else
1951 echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_compiler_gnu=no
1955 fi
1956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1957 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1958
1959 fi
1960 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1961 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1962 GCC=`test $ac_compiler_gnu = yes && echo yes`
1963 ac_test_CFLAGS=${CFLAGS+set}
1964 ac_save_CFLAGS=$CFLAGS
1965 CFLAGS="-g"
1966 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1967 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1968 if test "${ac_cv_prog_cc_g+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h. */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1977
1978 int
1979 main ()
1980 {
1981
1982 ;
1983 return 0;
1984 }
1985 _ACEOF
1986 rm -f conftest.$ac_objext
1987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>conftest.er1
1989 ac_status=$?
1990 grep -v '^ *+' conftest.er1 >conftest.err
1991 rm -f conftest.er1
1992 cat conftest.err >&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); } &&
1995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1997 (eval $ac_try) 2>&5
1998 ac_status=$?
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; } &&
2001 { ac_try='test -s conftest.$ac_objext'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; }; then
2007 ac_cv_prog_cc_g=yes
2008 else
2009 echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2011
2012 ac_cv_prog_cc_g=no
2013 fi
2014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2015 fi
2016 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2017 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2018 if test "$ac_test_CFLAGS" = set; then
2019 CFLAGS=$ac_save_CFLAGS
2020 elif test $ac_cv_prog_cc_g = yes; then
2021 if test "$GCC" = yes; then
2022 CFLAGS="-g -O2"
2023 else
2024 CFLAGS="-g"
2025 fi
2026 else
2027 if test "$GCC" = yes; then
2028 CFLAGS="-O2"
2029 else
2030 CFLAGS=
2031 fi
2032 fi
2033 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2034 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2035 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 ac_cv_prog_cc_stdc=no
2039 ac_save_CC=$CC
2040 cat >conftest.$ac_ext <<_ACEOF
2041 /* confdefs.h. */
2042 _ACEOF
2043 cat confdefs.h >>conftest.$ac_ext
2044 cat >>conftest.$ac_ext <<_ACEOF
2045 /* end confdefs.h. */
2046 #include <stdarg.h>
2047 #include <stdio.h>
2048 #include <sys/types.h>
2049 #include <sys/stat.h>
2050 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2051 struct buf { int x; };
2052 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2053 static char *e (p, i)
2054 char **p;
2055 int i;
2056 {
2057 return p[i];
2058 }
2059 static char *f (char * (*g) (char **, int), char **p, ...)
2060 {
2061 char *s;
2062 va_list v;
2063 va_start (v,p);
2064 s = g (p, va_arg (v,int));
2065 va_end (v);
2066 return s;
2067 }
2068
2069 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2070 function prototypes and stuff, but not '\xHH' hex character constants.
2071 These don't provoke an error unfortunately, instead are silently treated
2072 as 'x'. The following induces an error, until -std1 is added to get
2073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2074 array size at least. It's necessary to write '\x00'==0 to get something
2075 that's true only with -std1. */
2076 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2077
2078 int test (int i, double x);
2079 struct s1 {int (*f) (int a);};
2080 struct s2 {int (*f) (double a);};
2081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2082 int argc;
2083 char **argv;
2084 int
2085 main ()
2086 {
2087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2088 ;
2089 return 0;
2090 }
2091 _ACEOF
2092 # Don't try gcc -ansi; that turns off useful extensions and
2093 # breaks some systems' header files.
2094 # AIX -qlanglvl=ansi
2095 # Ultrix and OSF/1 -std1
2096 # HP-UX 10.20 and later -Ae
2097 # HP-UX older versions -Aa -D_HPUX_SOURCE
2098 # SVR4 -Xc -D__EXTENSIONS__
2099 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2100 do
2101 CC="$ac_save_CC $ac_arg"
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>conftest.er1
2105 ac_status=$?
2106 grep -v '^ *+' conftest.er1 >conftest.err
2107 rm -f conftest.er1
2108 cat conftest.err >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); } &&
2111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 (eval $ac_try) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; } &&
2117 { ac_try='test -s conftest.$ac_objext'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2123 ac_cv_prog_cc_stdc=$ac_arg
2124 break
2125 else
2126 echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129 fi
2130 rm -f conftest.err conftest.$ac_objext
2131 done
2132 rm -f conftest.$ac_ext conftest.$ac_objext
2133 CC=$ac_save_CC
2134
2135 fi
2136
2137 case "x$ac_cv_prog_cc_stdc" in
2138 x|xno)
2139 echo "$as_me:$LINENO: result: none needed" >&5
2140 echo "${ECHO_T}none needed" >&6 ;;
2141 *)
2142 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2143 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2144 CC="$CC $ac_cv_prog_cc_stdc" ;;
2145 esac
2146
2147 # Some people use a C++ compiler to compile C. Since we use `exit',
2148 # in C++ we need to declare it. In case someone uses the same compiler
2149 # for both compiling C and C++ we need to have the C++ compiler decide
2150 # the declaration of exit, since it's the most demanding environment.
2151 cat >conftest.$ac_ext <<_ACEOF
2152 #ifndef __cplusplus
2153 choke me
2154 #endif
2155 _ACEOF
2156 rm -f conftest.$ac_objext
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>conftest.er1
2159 ac_status=$?
2160 grep -v '^ *+' conftest.er1 >conftest.err
2161 rm -f conftest.er1
2162 cat conftest.err >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167 (eval $ac_try) 2>&5
2168 ac_status=$?
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; } &&
2171 { ac_try='test -s conftest.$ac_objext'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; }; then
2177 for ac_declaration in \
2178 '' \
2179 'extern "C" void std::exit (int) throw (); using std::exit;' \
2180 'extern "C" void std::exit (int); using std::exit;' \
2181 'extern "C" void exit (int) throw ();' \
2182 'extern "C" void exit (int);' \
2183 'void exit (int);'
2184 do
2185 cat >conftest.$ac_ext <<_ACEOF
2186 /* confdefs.h. */
2187 _ACEOF
2188 cat confdefs.h >>conftest.$ac_ext
2189 cat >>conftest.$ac_ext <<_ACEOF
2190 /* end confdefs.h. */
2191 $ac_declaration
2192 #include <stdlib.h>
2193 int
2194 main ()
2195 {
2196 exit (42);
2197 ;
2198 return 0;
2199 }
2200 _ACEOF
2201 rm -f conftest.$ac_objext
2202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203 (eval $ac_compile) 2>conftest.er1
2204 ac_status=$?
2205 grep -v '^ *+' conftest.er1 >conftest.err
2206 rm -f conftest.er1
2207 cat conftest.err >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); } &&
2210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; } &&
2216 { ac_try='test -s conftest.$ac_objext'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 :
2223 else
2224 echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2226
2227 continue
2228 fi
2229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230 cat >conftest.$ac_ext <<_ACEOF
2231 /* confdefs.h. */
2232 _ACEOF
2233 cat confdefs.h >>conftest.$ac_ext
2234 cat >>conftest.$ac_ext <<_ACEOF
2235 /* end confdefs.h. */
2236 $ac_declaration
2237 int
2238 main ()
2239 {
2240 exit (42);
2241 ;
2242 return 0;
2243 }
2244 _ACEOF
2245 rm -f conftest.$ac_objext
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
2248 ac_status=$?
2249 grep -v '^ *+' conftest.er1 >conftest.err
2250 rm -f conftest.er1
2251 cat conftest.err >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 (eval $ac_try) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; } &&
2260 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2266 break
2267 else
2268 echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2270
2271 fi
2272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2273 done
2274 rm -f conftest*
2275 if test -n "$ac_declaration"; then
2276 echo '#ifdef __cplusplus' >>confdefs.h
2277 echo $ac_declaration >>confdefs.h
2278 echo '#endif' >>confdefs.h
2279 fi
2280
2281 else
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 fi
2286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287 ac_ext=c
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
2293
2294 cat >>confdefs.h <<\_ACEOF
2295 #define _GNU_SOURCE 1
2296 _ACEOF
2297
2298
2299
2300 ac_ext=c
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2306 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2307 # On Suns, sometimes $CPP names a directory.
2308 if test -n "$CPP" && test -d "$CPP"; then
2309 CPP=
2310 fi
2311 if test -z "$CPP"; then
2312 if test "${ac_cv_prog_CPP+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315 # Double quotes because CPP needs to be expanded
2316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2317 do
2318 ac_preproc_ok=false
2319 for ac_c_preproc_warn_flag in '' yes
2320 do
2321 # Use a header file that comes with gcc, so configuring glibc
2322 # with a fresh cross-compiler works.
2323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2324 # <limits.h> exists even on freestanding compilers.
2325 # On the NeXT, cc -E runs the code through the compiler's parser,
2326 # not just through cpp. "Syntax error" is here to catch this case.
2327 cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h. */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2333 #ifdef __STDC__
2334 # include <limits.h>
2335 #else
2336 # include <assert.h>
2337 #endif
2338 Syntax error
2339 _ACEOF
2340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2342 ac_status=$?
2343 grep -v '^ *+' conftest.er1 >conftest.err
2344 rm -f conftest.er1
2345 cat conftest.err >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } >/dev/null; then
2348 if test -s conftest.err; then
2349 ac_cpp_err=$ac_c_preproc_warn_flag
2350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2351 else
2352 ac_cpp_err=
2353 fi
2354 else
2355 ac_cpp_err=yes
2356 fi
2357 if test -z "$ac_cpp_err"; then
2358 :
2359 else
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2362
2363 # Broken: fails on valid input.
2364 continue
2365 fi
2366 rm -f conftest.err conftest.$ac_ext
2367
2368 # OK, works on sane cases. Now check whether non-existent headers
2369 # can be detected and how.
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2376 #include <ac_nonexistent.h>
2377 _ACEOF
2378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2380 ac_status=$?
2381 grep -v '^ *+' conftest.er1 >conftest.err
2382 rm -f conftest.er1
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } >/dev/null; then
2386 if test -s conftest.err; then
2387 ac_cpp_err=$ac_c_preproc_warn_flag
2388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2389 else
2390 ac_cpp_err=
2391 fi
2392 else
2393 ac_cpp_err=yes
2394 fi
2395 if test -z "$ac_cpp_err"; then
2396 # Broken: success on invalid input.
2397 continue
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 # Passes both tests.
2403 ac_preproc_ok=:
2404 break
2405 fi
2406 rm -f conftest.err conftest.$ac_ext
2407
2408 done
2409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2410 rm -f conftest.err conftest.$ac_ext
2411 if $ac_preproc_ok; then
2412 break
2413 fi
2414
2415 done
2416 ac_cv_prog_CPP=$CPP
2417
2418 fi
2419 CPP=$ac_cv_prog_CPP
2420 else
2421 ac_cv_prog_CPP=$CPP
2422 fi
2423 echo "$as_me:$LINENO: result: $CPP" >&5
2424 echo "${ECHO_T}$CPP" >&6
2425 ac_preproc_ok=false
2426 for ac_c_preproc_warn_flag in '' yes
2427 do
2428 # Use a header file that comes with gcc, so configuring glibc
2429 # with a fresh cross-compiler works.
2430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2431 # <limits.h> exists even on freestanding compilers.
2432 # On the NeXT, cc -E runs the code through the compiler's parser,
2433 # not just through cpp. "Syntax error" is here to catch this case.
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h. */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2440 #ifdef __STDC__
2441 # include <limits.h>
2442 #else
2443 # include <assert.h>
2444 #endif
2445 Syntax error
2446 _ACEOF
2447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } >/dev/null; then
2455 if test -s conftest.err; then
2456 ac_cpp_err=$ac_c_preproc_warn_flag
2457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2458 else
2459 ac_cpp_err=
2460 fi
2461 else
2462 ac_cpp_err=yes
2463 fi
2464 if test -z "$ac_cpp_err"; then
2465 :
2466 else
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 # Broken: fails on valid input.
2471 continue
2472 fi
2473 rm -f conftest.err conftest.$ac_ext
2474
2475 # OK, works on sane cases. Now check whether non-existent headers
2476 # can be detected and how.
2477 cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h. */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2483 #include <ac_nonexistent.h>
2484 _ACEOF
2485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2487 ac_status=$?
2488 grep -v '^ *+' conftest.er1 >conftest.err
2489 rm -f conftest.er1
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } >/dev/null; then
2493 if test -s conftest.err; then
2494 ac_cpp_err=$ac_c_preproc_warn_flag
2495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2496 else
2497 ac_cpp_err=
2498 fi
2499 else
2500 ac_cpp_err=yes
2501 fi
2502 if test -z "$ac_cpp_err"; then
2503 # Broken: success on invalid input.
2504 continue
2505 else
2506 echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508
2509 # Passes both tests.
2510 ac_preproc_ok=:
2511 break
2512 fi
2513 rm -f conftest.err conftest.$ac_ext
2514
2515 done
2516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2517 rm -f conftest.err conftest.$ac_ext
2518 if $ac_preproc_ok; then
2519 :
2520 else
2521 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2522 See \`config.log' for more details." >&5
2523 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2524 See \`config.log' for more details." >&2;}
2525 { (exit 1); exit 1; }; }
2526 fi
2527
2528 ac_ext=c
2529 ac_cpp='$CPP $CPPFLAGS'
2530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533
2534
2535 echo "$as_me:$LINENO: checking for egrep" >&5
2536 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2537 if test "${ac_cv_prog_egrep+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2541 then ac_cv_prog_egrep='grep -E'
2542 else ac_cv_prog_egrep='egrep'
2543 fi
2544 fi
2545 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2546 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2547 EGREP=$ac_cv_prog_egrep
2548
2549
2550
2551 echo "$as_me:$LINENO: checking for AIX" >&5
2552 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2553 cat >conftest.$ac_ext <<_ACEOF
2554 /* confdefs.h. */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2559 #ifdef _AIX
2560 yes
2561 #endif
2562
2563 _ACEOF
2564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2565 $EGREP "yes" >/dev/null 2>&1; then
2566 echo "$as_me:$LINENO: result: yes" >&5
2567 echo "${ECHO_T}yes" >&6
2568 cat >>confdefs.h <<\_ACEOF
2569 #define _ALL_SOURCE 1
2570 _ACEOF
2571
2572 else
2573 echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2575 fi
2576 rm -f conftest*
2577
2578
2579 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2580 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2581 if test "${ac_cv_search_strerror+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 ac_func_search_save_LIBS=$LIBS
2585 ac_cv_search_strerror=no
2586 cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h. */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2592
2593 /* Override any gcc2 internal prototype to avoid an error. */
2594 #ifdef __cplusplus
2595 extern "C"
2596 #endif
2597 /* We use char because int might match the return type of a gcc2
2598 builtin and then its argument prototype would still apply. */
2599 char strerror ();
2600 int
2601 main ()
2602 {
2603 strerror ();
2604 ;
2605 return 0;
2606 }
2607 _ACEOF
2608 rm -f conftest.$ac_objext conftest$ac_exeext
2609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2610 (eval $ac_link) 2>conftest.er1
2611 ac_status=$?
2612 grep -v '^ *+' conftest.er1 >conftest.err
2613 rm -f conftest.er1
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2629 ac_cv_search_strerror="none required"
2630 else
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 fi
2635 rm -f conftest.err conftest.$ac_objext \
2636 conftest$ac_exeext conftest.$ac_ext
2637 if test "$ac_cv_search_strerror" = no; then
2638 for ac_lib in cposix; do
2639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2640 cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h. */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2646
2647 /* Override any gcc2 internal prototype to avoid an error. */
2648 #ifdef __cplusplus
2649 extern "C"
2650 #endif
2651 /* We use char because int might match the return type of a gcc2
2652 builtin and then its argument prototype would still apply. */
2653 char strerror ();
2654 int
2655 main ()
2656 {
2657 strerror ();
2658 ;
2659 return 0;
2660 }
2661 _ACEOF
2662 rm -f conftest.$ac_objext conftest$ac_exeext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2664 (eval $ac_link) 2>conftest.er1
2665 ac_status=$?
2666 grep -v '^ *+' conftest.er1 >conftest.err
2667 rm -f conftest.er1
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try='test -s conftest$ac_exeext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 (eval $ac_try) 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2683 ac_cv_search_strerror="-l$ac_lib"
2684 break
2685 else
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2688
2689 fi
2690 rm -f conftest.err conftest.$ac_objext \
2691 conftest$ac_exeext conftest.$ac_ext
2692 done
2693 fi
2694 LIBS=$ac_func_search_save_LIBS
2695 fi
2696 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2697 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2698 if test "$ac_cv_search_strerror" != no; then
2699 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2700
2701 fi
2702
2703
2704
2705
2706 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2707 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2708 if test "${am_cv_prog_cc_stdc+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 am_cv_prog_cc_stdc=no
2712 ac_save_CC="$CC"
2713 # Don't try gcc -ansi; that turns off useful extensions and
2714 # breaks some systems' header files.
2715 # AIX -qlanglvl=ansi
2716 # Ultrix and OSF/1 -std1
2717 # HP-UX 10.20 and later -Ae
2718 # HP-UX older versions -Aa -D_HPUX_SOURCE
2719 # SVR4 -Xc -D__EXTENSIONS__
2720 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2721 do
2722 CC="$ac_save_CC $ac_arg"
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2729 #include <stdarg.h>
2730 #include <stdio.h>
2731 #include <sys/types.h>
2732 #include <sys/stat.h>
2733 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2734 struct buf { int x; };
2735 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2736 static char *e (p, i)
2737 char **p;
2738 int i;
2739 {
2740 return p[i];
2741 }
2742 static char *f (char * (*g) (char **, int), char **p, ...)
2743 {
2744 char *s;
2745 va_list v;
2746 va_start (v,p);
2747 s = g (p, va_arg (v,int));
2748 va_end (v);
2749 return s;
2750 }
2751 int test (int i, double x);
2752 struct s1 {int (*f) (int a);};
2753 struct s2 {int (*f) (double a);};
2754 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2755 int argc;
2756 char **argv;
2757
2758 int
2759 main ()
2760 {
2761
2762 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2763
2764 ;
2765 return 0;
2766 }
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 (eval $ac_try) 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; } &&
2783 { ac_try='test -s conftest.$ac_objext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 am_cv_prog_cc_stdc="$ac_arg"; break
2790 else
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2793
2794 fi
2795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796 done
2797 CC="$ac_save_CC"
2798
2799 fi
2800
2801 if test -z "$am_cv_prog_cc_stdc"; then
2802 echo "$as_me:$LINENO: result: none needed" >&5
2803 echo "${ECHO_T}none needed" >&6
2804 else
2805 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2806 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2807 fi
2808 case "x$am_cv_prog_cc_stdc" in
2809 x|xno) ;;
2810 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2811 esac
2812
2813
2814 ac_aux_dir=
2815 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2816 if test -f $ac_dir/install-sh; then
2817 ac_aux_dir=$ac_dir
2818 ac_install_sh="$ac_aux_dir/install-sh -c"
2819 break
2820 elif test -f $ac_dir/install.sh; then
2821 ac_aux_dir=$ac_dir
2822 ac_install_sh="$ac_aux_dir/install.sh -c"
2823 break
2824 elif test -f $ac_dir/shtool; then
2825 ac_aux_dir=$ac_dir
2826 ac_install_sh="$ac_aux_dir/shtool install -c"
2827 break
2828 fi
2829 done
2830 if test -z "$ac_aux_dir"; then
2831 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2832 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2833 { (exit 1); exit 1; }; }
2834 fi
2835 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2836 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2837 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2838
2839 # Make sure we can run config.sub.
2840 $ac_config_sub sun4 >/dev/null 2>&1 ||
2841 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2842 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2843 { (exit 1); exit 1; }; }
2844
2845 echo "$as_me:$LINENO: checking build system type" >&5
2846 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2847 if test "${ac_cv_build+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850 ac_cv_build_alias=$build_alias
2851 test -z "$ac_cv_build_alias" &&
2852 ac_cv_build_alias=`$ac_config_guess`
2853 test -z "$ac_cv_build_alias" &&
2854 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2855 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2856 { (exit 1); exit 1; }; }
2857 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2858 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2859 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2860 { (exit 1); exit 1; }; }
2861
2862 fi
2863 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2864 echo "${ECHO_T}$ac_cv_build" >&6
2865 build=$ac_cv_build
2866 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2867 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2868 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2869
2870
2871 echo "$as_me:$LINENO: checking host system type" >&5
2872 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2873 if test "${ac_cv_host+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876 ac_cv_host_alias=$host_alias
2877 test -z "$ac_cv_host_alias" &&
2878 ac_cv_host_alias=$ac_cv_build_alias
2879 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2880 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2881 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2882 { (exit 1); exit 1; }; }
2883
2884 fi
2885 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2886 echo "${ECHO_T}$ac_cv_host" >&6
2887 host=$ac_cv_host
2888 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2889 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2890 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2891
2892
2893 echo "$as_me:$LINENO: checking target system type" >&5
2894 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2895 if test "${ac_cv_target+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898 ac_cv_target_alias=$target_alias
2899 test "x$ac_cv_target_alias" = "x" &&
2900 ac_cv_target_alias=$ac_cv_host_alias
2901 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2902 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2903 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2904 { (exit 1); exit 1; }; }
2905
2906 fi
2907 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2908 echo "${ECHO_T}$ac_cv_target" >&6
2909 target=$ac_cv_target
2910 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2911 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2912 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2913
2914
2915 # The aliases save the names the user supplied, while $host etc.
2916 # will get canonicalized.
2917 test -n "$target_alias" &&
2918 test "$program_prefix$program_suffix$program_transform_name" = \
2919 NONENONEs,x,x, &&
2920 program_prefix=${target_alias}-
2921
2922
2923 CONFIG_OBS=
2924 CONFIG_DEPS=
2925 CONFIG_SRCS=
2926 ENABLE_CFLAGS=
2927
2928 CONFIG_ALL=
2929 CONFIG_CLEAN=
2930 CONFIG_INSTALL=
2931 CONFIG_UNINSTALL=
2932
2933
2934 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2935 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2936 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2937 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940 cat >conftest.make <<\_ACEOF
2941 all:
2942 @echo 'ac_maketemp="$(MAKE)"'
2943 _ACEOF
2944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2945 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2946 if test -n "$ac_maketemp"; then
2947 eval ac_cv_prog_make_${ac_make}_set=yes
2948 else
2949 eval ac_cv_prog_make_${ac_make}_set=no
2950 fi
2951 rm -f conftest.make
2952 fi
2953 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2954 echo "$as_me:$LINENO: result: yes" >&5
2955 echo "${ECHO_T}yes" >&6
2956 SET_MAKE=
2957 else
2958 echo "$as_me:$LINENO: result: no" >&5
2959 echo "${ECHO_T}no" >&6
2960 SET_MAKE="MAKE=${MAKE-make}"
2961 fi
2962
2963 if test -n "$ac_tool_prefix"; then
2964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2965 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2966 echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968 if test "${ac_cv_prog_RANLIB+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 if test -n "$RANLIB"; then
2972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2984 fi
2985 done
2986 done
2987
2988 fi
2989 fi
2990 RANLIB=$ac_cv_prog_RANLIB
2991 if test -n "$RANLIB"; then
2992 echo "$as_me:$LINENO: result: $RANLIB" >&5
2993 echo "${ECHO_T}$RANLIB" >&6
2994 else
2995 echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6
2997 fi
2998
2999 fi
3000 if test -z "$ac_cv_prog_RANLIB"; then
3001 ac_ct_RANLIB=$RANLIB
3002 # Extract the first word of "ranlib", so it can be a program name with args.
3003 set dummy ranlib; ac_word=$2
3004 echo "$as_me:$LINENO: checking for $ac_word" >&5
3005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3006 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009 if test -n "$ac_ct_RANLIB"; then
3010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_RANLIB="ranlib"
3020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023 done
3024 done
3025
3026 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3027 fi
3028 fi
3029 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3030 if test -n "$ac_ct_RANLIB"; then
3031 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3032 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3033 else
3034 echo "$as_me:$LINENO: result: no" >&5
3035 echo "${ECHO_T}no" >&6
3036 fi
3037
3038 RANLIB=$ac_ct_RANLIB
3039 else
3040 RANLIB="$ac_cv_prog_RANLIB"
3041 fi
3042
3043 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3044 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3045 if test "${ac_cv_header_stdc+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 else
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054 #include <stdlib.h>
3055 #include <stdarg.h>
3056 #include <string.h>
3057 #include <float.h>
3058
3059 int
3060 main ()
3061 {
3062
3063 ;
3064 return 0;
3065 }
3066 _ACEOF
3067 rm -f conftest.$ac_objext
3068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069 (eval $ac_compile) 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 (eval $ac_try) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_header_stdc=yes
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 ac_cv_header_stdc=no
3094 fi
3095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3096
3097 if test $ac_cv_header_stdc = yes; then
3098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3099 cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h. */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3105 #include <string.h>
3106
3107 _ACEOF
3108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3109 $EGREP "memchr" >/dev/null 2>&1; then
3110 :
3111 else
3112 ac_cv_header_stdc=no
3113 fi
3114 rm -f conftest*
3115
3116 fi
3117
3118 if test $ac_cv_header_stdc = yes; then
3119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3120 cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <stdlib.h>
3127
3128 _ACEOF
3129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130 $EGREP "free" >/dev/null 2>&1; then
3131 :
3132 else
3133 ac_cv_header_stdc=no
3134 fi
3135 rm -f conftest*
3136
3137 fi
3138
3139 if test $ac_cv_header_stdc = yes; then
3140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3141 if test "$cross_compiling" = yes; then
3142 :
3143 else
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 #include <ctype.h>
3151 #if ((' ' & 0x0FF) == 0x020)
3152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3154 #else
3155 # define ISLOWER(c) \
3156 (('a' <= (c) && (c) <= 'i') \
3157 || ('j' <= (c) && (c) <= 'r') \
3158 || ('s' <= (c) && (c) <= 'z'))
3159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3160 #endif
3161
3162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3163 int
3164 main ()
3165 {
3166 int i;
3167 for (i = 0; i < 256; i++)
3168 if (XOR (islower (i), ISLOWER (i))
3169 || toupper (i) != TOUPPER (i))
3170 exit(2);
3171 exit (0);
3172 }
3173 _ACEOF
3174 rm -f conftest$ac_exeext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176 (eval $ac_link) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 (eval $ac_try) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3185 :
3186 else
3187 echo "$as_me: program exited with status $ac_status" >&5
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 ( exit $ac_status )
3192 ac_cv_header_stdc=no
3193 fi
3194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3195 fi
3196 fi
3197 fi
3198 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3199 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3200 if test $ac_cv_header_stdc = yes; then
3201
3202 cat >>confdefs.h <<\_ACEOF
3203 #define STDC_HEADERS 1
3204 _ACEOF
3205
3206 fi
3207
3208 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3209 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3210 if test "${ac_cv_c_const+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219
3220 int
3221 main ()
3222 {
3223 /* FIXME: Include the comments suggested by Paul. */
3224 #ifndef __cplusplus
3225 /* Ultrix mips cc rejects this. */
3226 typedef int charset[2];
3227 const charset x;
3228 /* SunOS 4.1.1 cc rejects this. */
3229 char const *const *ccp;
3230 char **p;
3231 /* NEC SVR4.0.2 mips cc rejects this. */
3232 struct point {int x, y;};
3233 static struct point const zero = {0,0};
3234 /* AIX XL C 1.02.0.0 rejects this.
3235 It does not let you subtract one const X* pointer from another in
3236 an arm of an if-expression whose if-part is not a constant
3237 expression */
3238 const char *g = "string";
3239 ccp = &g + (g ? g-g : 0);
3240 /* HPUX 7.0 cc rejects these. */
3241 ++ccp;
3242 p = (char**) ccp;
3243 ccp = (char const *const *) p;
3244 { /* SCO 3.2v4 cc rejects this. */
3245 char *t;
3246 char const *s = 0 ? (char *) 0 : (char const *) 0;
3247
3248 *t++ = 0;
3249 }
3250 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3251 int x[] = {25, 17};
3252 const int *foo = &x[0];
3253 ++foo;
3254 }
3255 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3256 typedef const int *iptr;
3257 iptr p = 0;
3258 ++p;
3259 }
3260 { /* AIX XL C 1.02.0.0 rejects this saying
3261 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3262 struct s { int j; const int *ap[3]; };
3263 struct s *b; b->j = 5;
3264 }
3265 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3266 const int foo = 10;
3267 }
3268 #endif
3269
3270 ;
3271 return 0;
3272 }
3273 _ACEOF
3274 rm -f conftest.$ac_objext
3275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3276 (eval $ac_compile) 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
3283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try='test -s conftest.$ac_objext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 (eval $ac_try) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 ac_cv_c_const=yes
3296 else
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300 ac_cv_c_const=no
3301 fi
3302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3303 fi
3304 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3305 echo "${ECHO_T}$ac_cv_c_const" >&6
3306 if test $ac_cv_c_const = no; then
3307
3308 cat >>confdefs.h <<\_ACEOF
3309 #define const
3310 _ACEOF
3311
3312 fi
3313
3314 echo "$as_me:$LINENO: checking for inline" >&5
3315 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3316 if test "${ac_cv_c_inline+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 ac_cv_c_inline=no
3320 for ac_kw in inline __inline__ __inline; do
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 #ifndef __cplusplus
3328 typedef int foo_t;
3329 static $ac_kw foo_t static_foo () {return 0; }
3330 $ac_kw foo_t foo () {return 0; }
3331 #endif
3332
3333 _ACEOF
3334 rm -f conftest.$ac_objext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>conftest.er1
3337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
3343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_c_inline=$ac_kw; break
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 fi
3361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3362 done
3363
3364 fi
3365 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3366 echo "${ECHO_T}$ac_cv_c_inline" >&6
3367
3368
3369 case $ac_cv_c_inline in
3370 inline | yes) ;;
3371 *)
3372 case $ac_cv_c_inline in
3373 no) ac_val=;;
3374 *) ac_val=$ac_cv_c_inline;;
3375 esac
3376 cat >>confdefs.h <<_ACEOF
3377 #ifndef __cplusplus
3378 #define inline $ac_val
3379 #endif
3380 _ACEOF
3381 ;;
3382 esac
3383
3384 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3395 inttypes.h stdint.h unistd.h
3396 do
3397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3398 echo "$as_me:$LINENO: checking for $ac_header" >&5
3399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h. */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 $ac_includes_default
3410
3411 #include <$ac_header>
3412 _ACEOF
3413 rm -f conftest.$ac_objext
3414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415 (eval $ac_compile) 2>conftest.er1
3416 ac_status=$?
3417 grep -v '^ *+' conftest.er1 >conftest.err
3418 rm -f conftest.er1
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } &&
3422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 (eval $ac_try) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; } &&
3428 { ac_try='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 (eval $ac_try) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 eval "$as_ac_Header=yes"
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 eval "$as_ac_Header=no"
3440 fi
3441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442 fi
3443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3446 cat >>confdefs.h <<_ACEOF
3447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3448 _ACEOF
3449
3450 fi
3451
3452 done
3453
3454
3455 echo "$as_me:$LINENO: checking for off_t" >&5
3456 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3457 if test "${ac_cv_type_off_t+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466 $ac_includes_default
3467 int
3468 main ()
3469 {
3470 if ((off_t *) 0)
3471 return 0;
3472 if (sizeof (off_t))
3473 return 0;
3474 ;
3475 return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } &&
3487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 (eval $ac_try) 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; } &&
3493 { ac_try='test -s conftest.$ac_objext'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 (eval $ac_try) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; }; then
3499 ac_cv_type_off_t=yes
3500 else
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 ac_cv_type_off_t=no
3505 fi
3506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507 fi
3508 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3509 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3510 if test $ac_cv_type_off_t = yes; then
3511 :
3512 else
3513
3514 cat >>confdefs.h <<_ACEOF
3515 #define off_t long
3516 _ACEOF
3517
3518 fi
3519
3520 echo "$as_me:$LINENO: checking for size_t" >&5
3521 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3522 if test "${ac_cv_type_size_t+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h. */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3531 $ac_includes_default
3532 int
3533 main ()
3534 {
3535 if ((size_t *) 0)
3536 return 0;
3537 if (sizeof (size_t))
3538 return 0;
3539 ;
3540 return 0;
3541 }
3542 _ACEOF
3543 rm -f conftest.$ac_objext
3544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545 (eval $ac_compile) 2>conftest.er1
3546 ac_status=$?
3547 grep -v '^ *+' conftest.er1 >conftest.err
3548 rm -f conftest.er1
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } &&
3552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; } &&
3558 { ac_try='test -s conftest.$ac_objext'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3564 ac_cv_type_size_t=yes
3565 else
3566 echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569 ac_cv_type_size_t=no
3570 fi
3571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3572 fi
3573 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3574 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3575 if test $ac_cv_type_size_t = yes; then
3576 :
3577 else
3578
3579 cat >>confdefs.h <<_ACEOF
3580 #define size_t unsigned
3581 _ACEOF
3582
3583 fi
3584
3585 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3586 # for constant arguments. Useless!
3587 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3588 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3589 if test "${ac_cv_working_alloca_h+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h. */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 #include <alloca.h>
3599 int
3600 main ()
3601 {
3602 char *p = (char *) alloca (2 * sizeof (int));
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 rm -f conftest.$ac_objext conftest$ac_exeext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3609 (eval $ac_link) 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; } &&
3622 { ac_try='test -s conftest$ac_exeext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_working_alloca_h=yes
3629 else
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 ac_cv_working_alloca_h=no
3634 fi
3635 rm -f conftest.err conftest.$ac_objext \
3636 conftest$ac_exeext conftest.$ac_ext
3637 fi
3638 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3639 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3640 if test $ac_cv_working_alloca_h = yes; then
3641
3642 cat >>confdefs.h <<\_ACEOF
3643 #define HAVE_ALLOCA_H 1
3644 _ACEOF
3645
3646 fi
3647
3648 echo "$as_me:$LINENO: checking for alloca" >&5
3649 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3650 if test "${ac_cv_func_alloca_works+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653 cat >conftest.$ac_ext <<_ACEOF
3654 /* confdefs.h. */
3655 _ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3659 #ifdef __GNUC__
3660 # define alloca __builtin_alloca
3661 #else
3662 # ifdef _MSC_VER
3663 # include <malloc.h>
3664 # define alloca _alloca
3665 # else
3666 # if HAVE_ALLOCA_H
3667 # include <alloca.h>
3668 # else
3669 # ifdef _AIX
3670 #pragma alloca
3671 # else
3672 # ifndef alloca /* predefined by HP cc +Olibcalls */
3673 char *alloca ();
3674 # endif
3675 # endif
3676 # endif
3677 # endif
3678 #endif
3679
3680 int
3681 main ()
3682 {
3683 char *p = (char *) alloca (1);
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 rm -f conftest.$ac_objext conftest$ac_exeext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3690 (eval $ac_link) 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
3697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest$ac_exeext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 ac_cv_func_alloca_works=yes
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714 ac_cv_func_alloca_works=no
3715 fi
3716 rm -f conftest.err conftest.$ac_objext \
3717 conftest$ac_exeext conftest.$ac_ext
3718 fi
3719 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3720 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3721
3722 if test $ac_cv_func_alloca_works = yes; then
3723
3724 cat >>confdefs.h <<\_ACEOF
3725 #define HAVE_ALLOCA 1
3726 _ACEOF
3727
3728 else
3729 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3730 # that cause trouble. Some versions do not even contain alloca or
3731 # contain a buggy version. If you still want to use their alloca,
3732 # use ar to extract alloca.o from them instead of compiling alloca.c.
3733
3734 ALLOCA=alloca.$ac_objext
3735
3736 cat >>confdefs.h <<\_ACEOF
3737 #define C_ALLOCA 1
3738 _ACEOF
3739
3740
3741 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3742 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3743 if test "${ac_cv_os_cray+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746 cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h. */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 #if defined(CRAY) && ! defined(CRAY2)
3753 webecray
3754 #else
3755 wenotbecray
3756 #endif
3757
3758 _ACEOF
3759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3760 $EGREP "webecray" >/dev/null 2>&1; then
3761 ac_cv_os_cray=yes
3762 else
3763 ac_cv_os_cray=no
3764 fi
3765 rm -f conftest*
3766
3767 fi
3768 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3769 echo "${ECHO_T}$ac_cv_os_cray" >&6
3770 if test $ac_cv_os_cray = yes; then
3771 for ac_func in _getb67 GETB67 getb67; do
3772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3773 echo "$as_me:$LINENO: checking for $ac_func" >&5
3774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3775 if eval "test \"\${$as_ac_var+set}\" = set"; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3786 #define $ac_func innocuous_$ac_func
3787
3788 /* System header to define __stub macros and hopefully few prototypes,
3789 which can conflict with char $ac_func (); below.
3790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3791 <limits.h> exists even on freestanding compilers. */
3792
3793 #ifdef __STDC__
3794 # include <limits.h>
3795 #else
3796 # include <assert.h>
3797 #endif
3798
3799 #undef $ac_func
3800
3801 /* Override any gcc2 internal prototype to avoid an error. */
3802 #ifdef __cplusplus
3803 extern "C"
3804 {
3805 #endif
3806 /* We use char because int might match the return type of a gcc2
3807 builtin and then its argument prototype would still apply. */
3808 char $ac_func ();
3809 /* The GNU C library defines this for functions which it implements
3810 to always fail with ENOSYS. Some functions are actually named
3811 something starting with __ and the normal name is an alias. */
3812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3813 choke me
3814 #else
3815 char (*f) () = $ac_func;
3816 #endif
3817 #ifdef __cplusplus
3818 }
3819 #endif
3820
3821 int
3822 main ()
3823 {
3824 return f != $ac_func;
3825 ;
3826 return 0;
3827 }
3828 _ACEOF
3829 rm -f conftest.$ac_objext conftest$ac_exeext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831 (eval $ac_link) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest$ac_exeext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 eval "$as_ac_var=yes"
3851 else
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855 eval "$as_ac_var=no"
3856 fi
3857 rm -f conftest.err conftest.$ac_objext \
3858 conftest$ac_exeext conftest.$ac_ext
3859 fi
3860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3862 if test `eval echo '${'$as_ac_var'}'` = yes; then
3863
3864 cat >>confdefs.h <<_ACEOF
3865 #define CRAY_STACKSEG_END $ac_func
3866 _ACEOF
3867
3868 break
3869 fi
3870
3871 done
3872 fi
3873
3874 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3875 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3876 if test "${ac_cv_c_stack_direction+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879 if test "$cross_compiling" = yes; then
3880 ac_cv_c_stack_direction=0
3881 else
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h. */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3888 int
3889 find_stack_direction ()
3890 {
3891 static char *addr = 0;
3892 auto char dummy;
3893 if (addr == 0)
3894 {
3895 addr = &dummy;
3896 return find_stack_direction ();
3897 }
3898 else
3899 return (&dummy > addr) ? 1 : -1;
3900 }
3901
3902 int
3903 main ()
3904 {
3905 exit (find_stack_direction () < 0);
3906 }
3907 _ACEOF
3908 rm -f conftest$ac_exeext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910 (eval $ac_link) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_c_stack_direction=1
3920 else
3921 echo "$as_me: program exited with status $ac_status" >&5
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3924
3925 ( exit $ac_status )
3926 ac_cv_c_stack_direction=-1
3927 fi
3928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3929 fi
3930 fi
3931 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3932 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3933
3934 cat >>confdefs.h <<_ACEOF
3935 #define STACK_DIRECTION $ac_cv_c_stack_direction
3936 _ACEOF
3937
3938
3939 fi
3940
3941
3942
3943 for ac_header in stdlib.h unistd.h
3944 do
3945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3947 echo "$as_me:$LINENO: checking for $ac_header" >&5
3948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 fi
3952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3954 else
3955 # Is the header compilable?
3956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 $ac_includes_default
3965 #include <$ac_header>
3966 _ACEOF
3967 rm -f conftest.$ac_objext
3968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3969 (eval $ac_compile) 2>conftest.er1
3970 ac_status=$?
3971 grep -v '^ *+' conftest.er1 >conftest.err
3972 rm -f conftest.er1
3973 cat conftest.err >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
3976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try='test -s conftest.$ac_objext'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 (eval $ac_try) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3988 ac_header_compiler=yes
3989 else
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993 ac_header_compiler=no
3994 fi
3995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3997 echo "${ECHO_T}$ac_header_compiler" >&6
3998
3999 # Is the header present?
4000 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4002 cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h. */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 #include <$ac_header>
4009 _ACEOF
4010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4012 ac_status=$?
4013 grep -v '^ *+' conftest.er1 >conftest.err
4014 rm -f conftest.er1
4015 cat conftest.err >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } >/dev/null; then
4018 if test -s conftest.err; then
4019 ac_cpp_err=$ac_c_preproc_warn_flag
4020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4021 else
4022 ac_cpp_err=
4023 fi
4024 else
4025 ac_cpp_err=yes
4026 fi
4027 if test -z "$ac_cpp_err"; then
4028 ac_header_preproc=yes
4029 else
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 ac_header_preproc=no
4034 fi
4035 rm -f conftest.err conftest.$ac_ext
4036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4037 echo "${ECHO_T}$ac_header_preproc" >&6
4038
4039 # So? What about this header?
4040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4041 yes:no: )
4042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4046 ac_header_preproc=yes
4047 ;;
4048 no:yes:* )
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4061 (
4062 cat <<\_ASBOX
4063 ## ------------------------------------------ ##
4064 ## Report this to the AC_PACKAGE_NAME lists. ##
4065 ## ------------------------------------------ ##
4066 _ASBOX
4067 ) |
4068 sed "s/^/$as_me: WARNING: /" >&2
4069 ;;
4070 esac
4071 echo "$as_me:$LINENO: checking for $ac_header" >&5
4072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 eval "$as_ac_Header=\$ac_header_preproc"
4077 fi
4078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4080
4081 fi
4082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4083 cat >>confdefs.h <<_ACEOF
4084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4085 _ACEOF
4086
4087 fi
4088
4089 done
4090
4091
4092 for ac_func in getpagesize
4093 do
4094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4095 echo "$as_me:$LINENO: checking for $ac_func" >&5
4096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4097 if eval "test \"\${$as_ac_var+set}\" = set"; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100 cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h. */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4108 #define $ac_func innocuous_$ac_func
4109
4110 /* System header to define __stub macros and hopefully few prototypes,
4111 which can conflict with char $ac_func (); below.
4112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113 <limits.h> exists even on freestanding compilers. */
4114
4115 #ifdef __STDC__
4116 # include <limits.h>
4117 #else
4118 # include <assert.h>
4119 #endif
4120
4121 #undef $ac_func
4122
4123 /* Override any gcc2 internal prototype to avoid an error. */
4124 #ifdef __cplusplus
4125 extern "C"
4126 {
4127 #endif
4128 /* We use char because int might match the return type of a gcc2
4129 builtin and then its argument prototype would still apply. */
4130 char $ac_func ();
4131 /* The GNU C library defines this for functions which it implements
4132 to always fail with ENOSYS. Some functions are actually named
4133 something starting with __ and the normal name is an alias. */
4134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4135 choke me
4136 #else
4137 char (*f) () = $ac_func;
4138 #endif
4139 #ifdef __cplusplus
4140 }
4141 #endif
4142
4143 int
4144 main ()
4145 {
4146 return f != $ac_func;
4147 ;
4148 return 0;
4149 }
4150 _ACEOF
4151 rm -f conftest.$ac_objext conftest$ac_exeext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4153 (eval $ac_link) 2>conftest.er1
4154 ac_status=$?
4155 grep -v '^ *+' conftest.er1 >conftest.err
4156 rm -f conftest.er1
4157 cat conftest.err >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } &&
4160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
4166 { ac_try='test -s conftest$ac_exeext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 eval "$as_ac_var=yes"
4173 else
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177 eval "$as_ac_var=no"
4178 fi
4179 rm -f conftest.err conftest.$ac_objext \
4180 conftest$ac_exeext conftest.$ac_ext
4181 fi
4182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4184 if test `eval echo '${'$as_ac_var'}'` = yes; then
4185 cat >>confdefs.h <<_ACEOF
4186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4187 _ACEOF
4188
4189 fi
4190 done
4191
4192 echo "$as_me:$LINENO: checking for working mmap" >&5
4193 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4194 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 if test "$cross_compiling" = yes; then
4198 ac_cv_func_mmap_fixed_mapped=no
4199 else
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 $ac_includes_default
4207 /* malloc might have been renamed as rpl_malloc. */
4208 #undef malloc
4209
4210 /* Thanks to Mike Haertel and Jim Avera for this test.
4211 Here is a matrix of mmap possibilities:
4212 mmap private not fixed
4213 mmap private fixed at somewhere currently unmapped
4214 mmap private fixed at somewhere already mapped
4215 mmap shared not fixed
4216 mmap shared fixed at somewhere currently unmapped
4217 mmap shared fixed at somewhere already mapped
4218 For private mappings, we should verify that changes cannot be read()
4219 back from the file, nor mmap's back from the file at a different
4220 address. (There have been systems where private was not correctly
4221 implemented like the infamous i386 svr4.0, and systems where the
4222 VM page cache was not coherent with the file system buffer cache
4223 like early versions of FreeBSD and possibly contemporary NetBSD.)
4224 For shared mappings, we should conversely verify that changes get
4225 propagated back to all the places they're supposed to be.
4226
4227 Grep wants private fixed already mapped.
4228 The main things grep needs to know about mmap are:
4229 * does it exist and is it safe to write into the mmap'd area
4230 * how to use it (BSD variants) */
4231
4232 #include <fcntl.h>
4233 #include <sys/mman.h>
4234
4235 #if !STDC_HEADERS && !HAVE_STDLIB_H
4236 char *malloc ();
4237 #endif
4238
4239 /* This mess was copied from the GNU getpagesize.h. */
4240 #if !HAVE_GETPAGESIZE
4241 /* Assume that all systems that can run configure have sys/param.h. */
4242 # if !HAVE_SYS_PARAM_H
4243 # define HAVE_SYS_PARAM_H 1
4244 # endif
4245
4246 # ifdef _SC_PAGESIZE
4247 # define getpagesize() sysconf(_SC_PAGESIZE)
4248 # else /* no _SC_PAGESIZE */
4249 # if HAVE_SYS_PARAM_H
4250 # include <sys/param.h>
4251 # ifdef EXEC_PAGESIZE
4252 # define getpagesize() EXEC_PAGESIZE
4253 # else /* no EXEC_PAGESIZE */
4254 # ifdef NBPG
4255 # define getpagesize() NBPG * CLSIZE
4256 # ifndef CLSIZE
4257 # define CLSIZE 1
4258 # endif /* no CLSIZE */
4259 # else /* no NBPG */
4260 # ifdef NBPC
4261 # define getpagesize() NBPC
4262 # else /* no NBPC */
4263 # ifdef PAGESIZE
4264 # define getpagesize() PAGESIZE
4265 # endif /* PAGESIZE */
4266 # endif /* no NBPC */
4267 # endif /* no NBPG */
4268 # endif /* no EXEC_PAGESIZE */
4269 # else /* no HAVE_SYS_PARAM_H */
4270 # define getpagesize() 8192 /* punt totally */
4271 # endif /* no HAVE_SYS_PARAM_H */
4272 # endif /* no _SC_PAGESIZE */
4273
4274 #endif /* no HAVE_GETPAGESIZE */
4275
4276 int
4277 main ()
4278 {
4279 char *data, *data2, *data3;
4280 int i, pagesize;
4281 int fd;
4282
4283 pagesize = getpagesize ();
4284
4285 /* First, make a file with some known garbage in it. */
4286 data = (char *) malloc (pagesize);
4287 if (!data)
4288 exit (1);
4289 for (i = 0; i < pagesize; ++i)
4290 *(data + i) = rand ();
4291 umask (0);
4292 fd = creat ("conftest.mmap", 0600);
4293 if (fd < 0)
4294 exit (1);
4295 if (write (fd, data, pagesize) != pagesize)
4296 exit (1);
4297 close (fd);
4298
4299 /* Next, try to mmap the file at a fixed address which already has
4300 something else allocated at it. If we can, also make sure that
4301 we see the same garbage. */
4302 fd = open ("conftest.mmap", O_RDWR);
4303 if (fd < 0)
4304 exit (1);
4305 data2 = (char *) malloc (2 * pagesize);
4306 if (!data2)
4307 exit (1);
4308 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4309 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4310 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4311 exit (1);
4312 for (i = 0; i < pagesize; ++i)
4313 if (*(data + i) != *(data2 + i))
4314 exit (1);
4315
4316 /* Finally, make sure that changes to the mapped area do not
4317 percolate back to the file as seen by read(). (This is a bug on
4318 some variants of i386 svr4.0.) */
4319 for (i = 0; i < pagesize; ++i)
4320 *(data2 + i) = *(data2 + i) + 1;
4321 data3 = (char *) malloc (pagesize);
4322 if (!data3)
4323 exit (1);
4324 if (read (fd, data3, pagesize) != pagesize)
4325 exit (1);
4326 for (i = 0; i < pagesize; ++i)
4327 if (*(data + i) != *(data3 + i))
4328 exit (1);
4329 close (fd);
4330 exit (0);
4331 }
4332 _ACEOF
4333 rm -f conftest$ac_exeext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335 (eval $ac_link) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_func_mmap_fixed_mapped=yes
4345 else
4346 echo "$as_me: program exited with status $ac_status" >&5
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4349
4350 ( exit $ac_status )
4351 ac_cv_func_mmap_fixed_mapped=no
4352 fi
4353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4354 fi
4355 fi
4356 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4357 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4358 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4359
4360 cat >>confdefs.h <<\_ACEOF
4361 #define HAVE_MMAP 1
4362 _ACEOF
4363
4364 fi
4365 rm -f conftest.mmap
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4378 unistd.h values.h sys/param.h
4379 do
4380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4382 echo "$as_me:$LINENO: checking for $ac_header" >&5
4383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 fi
4387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4389 else
4390 # Is the header compilable?
4391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4393 cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h. */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 $ac_includes_default
4400 #include <$ac_header>
4401 _ACEOF
4402 rm -f conftest.$ac_objext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>conftest.er1
4405 ac_status=$?
4406 grep -v '^ *+' conftest.er1 >conftest.err
4407 rm -f conftest.er1
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 (eval $ac_try) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; }; then
4423 ac_header_compiler=yes
4424 else
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4427
4428 ac_header_compiler=no
4429 fi
4430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4432 echo "${ECHO_T}$ac_header_compiler" >&6
4433
4434 # Is the header present?
4435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4437 cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 #include <$ac_header>
4444 _ACEOF
4445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4447 ac_status=$?
4448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } >/dev/null; then
4453 if test -s conftest.err; then
4454 ac_cpp_err=$ac_c_preproc_warn_flag
4455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4456 else
4457 ac_cpp_err=
4458 fi
4459 else
4460 ac_cpp_err=yes
4461 fi
4462 if test -z "$ac_cpp_err"; then
4463 ac_header_preproc=yes
4464 else
4465 echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4467
4468 ac_header_preproc=no
4469 fi
4470 rm -f conftest.err conftest.$ac_ext
4471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4472 echo "${ECHO_T}$ac_header_preproc" >&6
4473
4474 # So? What about this header?
4475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4476 yes:no: )
4477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4481 ac_header_preproc=yes
4482 ;;
4483 no:yes:* )
4484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4496 (
4497 cat <<\_ASBOX
4498 ## ------------------------------------------ ##
4499 ## Report this to the AC_PACKAGE_NAME lists. ##
4500 ## ------------------------------------------ ##
4501 _ASBOX
4502 ) |
4503 sed "s/^/$as_me: WARNING: /" >&2
4504 ;;
4505 esac
4506 echo "$as_me:$LINENO: checking for $ac_header" >&5
4507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 eval "$as_ac_Header=\$ac_header_preproc"
4512 fi
4513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4515
4516 fi
4517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4518 cat >>confdefs.h <<_ACEOF
4519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4520 _ACEOF
4521
4522 fi
4523
4524 done
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4537 __argz_count __argz_stringify __argz_next
4538 do
4539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4540 echo "$as_me:$LINENO: checking for $ac_func" >&5
4541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4542 if eval "test \"\${$as_ac_var+set}\" = set"; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 cat >conftest.$ac_ext <<_ACEOF
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4553 #define $ac_func innocuous_$ac_func
4554
4555 /* System header to define __stub macros and hopefully few prototypes,
4556 which can conflict with char $ac_func (); below.
4557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4558 <limits.h> exists even on freestanding compilers. */
4559
4560 #ifdef __STDC__
4561 # include <limits.h>
4562 #else
4563 # include <assert.h>
4564 #endif
4565
4566 #undef $ac_func
4567
4568 /* Override any gcc2 internal prototype to avoid an error. */
4569 #ifdef __cplusplus
4570 extern "C"
4571 {
4572 #endif
4573 /* We use char because int might match the return type of a gcc2
4574 builtin and then its argument prototype would still apply. */
4575 char $ac_func ();
4576 /* The GNU C library defines this for functions which it implements
4577 to always fail with ENOSYS. Some functions are actually named
4578 something starting with __ and the normal name is an alias. */
4579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4580 choke me
4581 #else
4582 char (*f) () = $ac_func;
4583 #endif
4584 #ifdef __cplusplus
4585 }
4586 #endif
4587
4588 int
4589 main ()
4590 {
4591 return f != $ac_func;
4592 ;
4593 return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598 (eval $ac_link) 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest$ac_exeext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 eval "$as_ac_var=yes"
4618 else
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 eval "$as_ac_var=no"
4623 fi
4624 rm -f conftest.err conftest.$ac_objext \
4625 conftest$ac_exeext conftest.$ac_ext
4626 fi
4627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4629 if test `eval echo '${'$as_ac_var'}'` = yes; then
4630 cat >>confdefs.h <<_ACEOF
4631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4632 _ACEOF
4633
4634 fi
4635 done
4636
4637
4638 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4639
4640 for ac_func in stpcpy
4641 do
4642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4643 echo "$as_me:$LINENO: checking for $ac_func" >&5
4644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4645 if eval "test \"\${$as_ac_var+set}\" = set"; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 else
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h. */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4656 #define $ac_func innocuous_$ac_func
4657
4658 /* System header to define __stub macros and hopefully few prototypes,
4659 which can conflict with char $ac_func (); below.
4660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661 <limits.h> exists even on freestanding compilers. */
4662
4663 #ifdef __STDC__
4664 # include <limits.h>
4665 #else
4666 # include <assert.h>
4667 #endif
4668
4669 #undef $ac_func
4670
4671 /* Override any gcc2 internal prototype to avoid an error. */
4672 #ifdef __cplusplus
4673 extern "C"
4674 {
4675 #endif
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4678 char $ac_func ();
4679 /* The GNU C library defines this for functions which it implements
4680 to always fail with ENOSYS. Some functions are actually named
4681 something starting with __ and the normal name is an alias. */
4682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4683 choke me
4684 #else
4685 char (*f) () = $ac_func;
4686 #endif
4687 #ifdef __cplusplus
4688 }
4689 #endif
4690
4691 int
4692 main ()
4693 {
4694 return f != $ac_func;
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 rm -f conftest.$ac_objext conftest$ac_exeext
4700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 eval "$as_ac_var=yes"
4721 else
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4724
4725 eval "$as_ac_var=no"
4726 fi
4727 rm -f conftest.err conftest.$ac_objext \
4728 conftest$ac_exeext conftest.$ac_ext
4729 fi
4730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4732 if test `eval echo '${'$as_ac_var'}'` = yes; then
4733 cat >>confdefs.h <<_ACEOF
4734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4735 _ACEOF
4736
4737 fi
4738 done
4739
4740 fi
4741 if test "${ac_cv_func_stpcpy}" = "yes"; then
4742
4743 cat >>confdefs.h <<\_ACEOF
4744 #define HAVE_STPCPY 1
4745 _ACEOF
4746
4747 fi
4748
4749 if test $ac_cv_header_locale_h = yes; then
4750 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4751 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4752 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755 cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h. */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <locale.h>
4762 int
4763 main ()
4764 {
4765 return LC_MESSAGES
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 rm -f conftest.$ac_objext conftest$ac_exeext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4772 (eval $ac_link) 2>conftest.er1
4773 ac_status=$?
4774 grep -v '^ *+' conftest.er1 >conftest.err
4775 rm -f conftest.er1
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } &&
4779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; } &&
4785 { ac_try='test -s conftest$ac_exeext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 am_cv_val_LC_MESSAGES=yes
4792 else
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4795
4796 am_cv_val_LC_MESSAGES=no
4797 fi
4798 rm -f conftest.err conftest.$ac_objext \
4799 conftest$ac_exeext conftest.$ac_ext
4800 fi
4801 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4802 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4803 if test $am_cv_val_LC_MESSAGES = yes; then
4804
4805 cat >>confdefs.h <<\_ACEOF
4806 #define HAVE_LC_MESSAGES 1
4807 _ACEOF
4808
4809 fi
4810 fi
4811 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4812 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4813 # Check whether --enable-nls or --disable-nls was given.
4814 if test "${enable_nls+set}" = set; then
4815 enableval="$enable_nls"
4816 USE_NLS=$enableval
4817 else
4818 USE_NLS=yes
4819 fi;
4820 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4821 echo "${ECHO_T}$USE_NLS" >&6
4822
4823
4824 USE_INCLUDED_LIBINTL=no
4825
4826 if test "$USE_NLS" = "yes"; then
4827 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4828 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4829
4830 # Check whether --with-included-gettext or --without-included-gettext was given.
4831 if test "${with_included_gettext+set}" = set; then
4832 withval="$with_included_gettext"
4833 nls_cv_force_use_gnu_gettext=$withval
4834 else
4835 nls_cv_force_use_gnu_gettext=no
4836 fi;
4837 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4838 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4839
4840 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4841 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4842 nls_cv_header_intl=
4843 nls_cv_header_libgt=
4844 CATOBJEXT=
4845
4846 if test "${ac_cv_header_libintl_h+set}" = set; then
4847 echo "$as_me:$LINENO: checking for libintl.h" >&5
4848 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4849 if test "${ac_cv_header_libintl_h+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 fi
4852 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4853 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4854 else
4855 # Is the header compilable?
4856 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4857 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4858 cat >conftest.$ac_ext <<_ACEOF
4859 /* confdefs.h. */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4864 $ac_includes_default
4865 #include <libintl.h>
4866 _ACEOF
4867 rm -f conftest.$ac_objext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869 (eval $ac_compile) 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; } &&
4882 { ac_try='test -s conftest.$ac_objext'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 (eval $ac_try) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 ac_header_compiler=yes
4889 else
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 ac_header_compiler=no
4894 fi
4895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4897 echo "${ECHO_T}$ac_header_compiler" >&6
4898
4899 # Is the header present?
4900 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4901 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h. */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 #include <libintl.h>
4909 _ACEOF
4910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4912 ac_status=$?
4913 grep -v '^ *+' conftest.er1 >conftest.err
4914 rm -f conftest.er1
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } >/dev/null; then
4918 if test -s conftest.err; then
4919 ac_cpp_err=$ac_c_preproc_warn_flag
4920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4921 else
4922 ac_cpp_err=
4923 fi
4924 else
4925 ac_cpp_err=yes
4926 fi
4927 if test -z "$ac_cpp_err"; then
4928 ac_header_preproc=yes
4929 else
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 ac_header_preproc=no
4934 fi
4935 rm -f conftest.err conftest.$ac_ext
4936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4937 echo "${ECHO_T}$ac_header_preproc" >&6
4938
4939 # So? What about this header?
4940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4941 yes:no: )
4942 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4943 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4944 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4945 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4946 ac_header_preproc=yes
4947 ;;
4948 no:yes:* )
4949 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4950 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4952 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4953 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4954 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4955 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4956 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4957 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4958 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4959 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4960 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4961 (
4962 cat <<\_ASBOX
4963 ## ------------------------------------------ ##
4964 ## Report this to the AC_PACKAGE_NAME lists. ##
4965 ## ------------------------------------------ ##
4966 _ASBOX
4967 ) |
4968 sed "s/^/$as_me: WARNING: /" >&2
4969 ;;
4970 esac
4971 echo "$as_me:$LINENO: checking for libintl.h" >&5
4972 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4973 if test "${ac_cv_header_libintl_h+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976 ac_cv_header_libintl_h=$ac_header_preproc
4977 fi
4978 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4979 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4980
4981 fi
4982 if test $ac_cv_header_libintl_h = yes; then
4983 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4984 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4985 if test "${gt_cv_func_gettext_libc+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h. */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 #include <libintl.h>
4995 int
4996 main ()
4997 {
4998 return (int) gettext ("")
4999 ;
5000 return 0;
5001 }
5002 _ACEOF
5003 rm -f conftest.$ac_objext conftest$ac_exeext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5005 (eval $ac_link) 2>conftest.er1
5006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 gt_cv_func_gettext_libc=yes
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 gt_cv_func_gettext_libc=no
5030 fi
5031 rm -f conftest.err conftest.$ac_objext \
5032 conftest$ac_exeext conftest.$ac_ext
5033 fi
5034 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5035 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5036
5037 if test "$gt_cv_func_gettext_libc" != "yes"; then
5038 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5039 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5040 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 ac_check_lib_save_LIBS=$LIBS
5044 LIBS="-lintl $LIBS"
5045 cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h. */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5051
5052 /* Override any gcc2 internal prototype to avoid an error. */
5053 #ifdef __cplusplus
5054 extern "C"
5055 #endif
5056 /* We use char because int might match the return type of a gcc2
5057 builtin and then its argument prototype would still apply. */
5058 char bindtextdomain ();
5059 int
5060 main ()
5061 {
5062 bindtextdomain ();
5063 ;
5064 return 0;
5065 }
5066 _ACEOF
5067 rm -f conftest.$ac_objext conftest$ac_exeext
5068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5069 (eval $ac_link) 2>conftest.er1
5070 ac_status=$?
5071 grep -v '^ *+' conftest.er1 >conftest.err
5072 rm -f conftest.er1
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
5076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; } &&
5082 { ac_try='test -s conftest$ac_exeext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 ac_cv_lib_intl_bindtextdomain=yes
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 ac_cv_lib_intl_bindtextdomain=no
5094 fi
5095 rm -f conftest.err conftest.$ac_objext \
5096 conftest$ac_exeext conftest.$ac_ext
5097 LIBS=$ac_check_lib_save_LIBS
5098 fi
5099 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5100 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5101 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5102 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5103 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5104 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107 cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h. */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113
5114 int
5115 main ()
5116 {
5117 return (int) gettext ("")
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 rm -f conftest.$ac_objext conftest$ac_exeext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>conftest.er1
5125 ac_status=$?
5126 grep -v '^ *+' conftest.er1 >conftest.err
5127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
5131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 (eval $ac_try) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; } &&
5137 { ac_try='test -s conftest$ac_exeext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 gt_cv_func_gettext_libintl=yes
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148 gt_cv_func_gettext_libintl=no
5149 fi
5150 rm -f conftest.err conftest.$ac_objext \
5151 conftest$ac_exeext conftest.$ac_ext
5152 fi
5153 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5154 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5155 fi
5156
5157 fi
5158
5159 if test "$gt_cv_func_gettext_libc" = "yes" \
5160 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5161
5162 cat >>confdefs.h <<\_ACEOF
5163 #define HAVE_GETTEXT 1
5164 _ACEOF
5165
5166 # Extract the first word of "msgfmt", so it can be a program name with args.
5167 set dummy msgfmt; ac_word=$2
5168 echo "$as_me:$LINENO: checking for $ac_word" >&5
5169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5170 if test "${ac_cv_path_MSGFMT+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173 case "$MSGFMT" in
5174 /*)
5175 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5176 ;;
5177 *)
5178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5179 for ac_dir in $PATH; do
5180 test -z "$ac_dir" && ac_dir=.
5181 if test -f $ac_dir/$ac_word; then
5182 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5183 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5184 break
5185 fi
5186 fi
5187 done
5188 IFS="$ac_save_ifs"
5189 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5190 ;;
5191 esac
5192 fi
5193 MSGFMT="$ac_cv_path_MSGFMT"
5194 if test -n "$MSGFMT"; then
5195 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5196 echo "${ECHO_T}$MSGFMT" >&6
5197 else
5198 echo "$as_me:$LINENO: result: no" >&5
5199 echo "${ECHO_T}no" >&6
5200 fi
5201 if test "$MSGFMT" != "no"; then
5202
5203 for ac_func in dcgettext
5204 do
5205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5206 echo "$as_me:$LINENO: checking for $ac_func" >&5
5207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5208 if eval "test \"\${$as_ac_var+set}\" = set"; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h. */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5219 #define $ac_func innocuous_$ac_func
5220
5221 /* System header to define __stub macros and hopefully few prototypes,
5222 which can conflict with char $ac_func (); below.
5223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5224 <limits.h> exists even on freestanding compilers. */
5225
5226 #ifdef __STDC__
5227 # include <limits.h>
5228 #else
5229 # include <assert.h>
5230 #endif
5231
5232 #undef $ac_func
5233
5234 /* Override any gcc2 internal prototype to avoid an error. */
5235 #ifdef __cplusplus
5236 extern "C"
5237 {
5238 #endif
5239 /* We use char because int might match the return type of a gcc2
5240 builtin and then its argument prototype would still apply. */
5241 char $ac_func ();
5242 /* The GNU C library defines this for functions which it implements
5243 to always fail with ENOSYS. Some functions are actually named
5244 something starting with __ and the normal name is an alias. */
5245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5246 choke me
5247 #else
5248 char (*f) () = $ac_func;
5249 #endif
5250 #ifdef __cplusplus
5251 }
5252 #endif
5253
5254 int
5255 main ()
5256 {
5257 return f != $ac_func;
5258 ;
5259 return 0;
5260 }
5261 _ACEOF
5262 rm -f conftest.$ac_objext conftest$ac_exeext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5264 (eval $ac_link) 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 (eval $ac_try) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try='test -s conftest$ac_exeext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 eval "$as_ac_var=yes"
5284 else
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 eval "$as_ac_var=no"
5289 fi
5290 rm -f conftest.err conftest.$ac_objext \
5291 conftest$ac_exeext conftest.$ac_ext
5292 fi
5293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5295 if test `eval echo '${'$as_ac_var'}'` = yes; then
5296 cat >>confdefs.h <<_ACEOF
5297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5298 _ACEOF
5299
5300 fi
5301 done
5302
5303 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5304 set dummy gmsgfmt; ac_word=$2
5305 echo "$as_me:$LINENO: checking for $ac_word" >&5
5306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5307 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310 case $GMSGFMT in
5311 [\\/]* | ?:[\\/]*)
5312 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5313 ;;
5314 *)
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5322 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5325 fi
5326 done
5327 done
5328
5329 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5330 ;;
5331 esac
5332 fi
5333 GMSGFMT=$ac_cv_path_GMSGFMT
5334
5335 if test -n "$GMSGFMT"; then
5336 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5337 echo "${ECHO_T}$GMSGFMT" >&6
5338 else
5339 echo "$as_me:$LINENO: result: no" >&5
5340 echo "${ECHO_T}no" >&6
5341 fi
5342
5343 # Extract the first word of "xgettext", so it can be a program name with args.
5344 set dummy xgettext; ac_word=$2
5345 echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350 case "$XGETTEXT" in
5351 /*)
5352 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5353 ;;
5354 *)
5355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5356 for ac_dir in $PATH; do
5357 test -z "$ac_dir" && ac_dir=.
5358 if test -f $ac_dir/$ac_word; then
5359 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5360 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5361 break
5362 fi
5363 fi
5364 done
5365 IFS="$ac_save_ifs"
5366 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5367 ;;
5368 esac
5369 fi
5370 XGETTEXT="$ac_cv_path_XGETTEXT"
5371 if test -n "$XGETTEXT"; then
5372 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5373 echo "${ECHO_T}$XGETTEXT" >&6
5374 else
5375 echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5377 fi
5378
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385
5386 int
5387 main ()
5388 {
5389 extern int _nl_msg_cat_cntr;
5390 return _nl_msg_cat_cntr
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 rm -f conftest.$ac_objext conftest$ac_exeext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397 (eval $ac_link) 2>conftest.er1
5398 ac_status=$?
5399 grep -v '^ *+' conftest.er1 >conftest.err
5400 rm -f conftest.er1
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; } &&
5410 { ac_try='test -s conftest$ac_exeext'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 (eval $ac_try) 2>&5
5413 ac_status=$?
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; }; then
5416 CATOBJEXT=.gmo
5417 DATADIRNAME=share
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5421
5422 CATOBJEXT=.mo
5423 DATADIRNAME=lib
5424 fi
5425 rm -f conftest.err conftest.$ac_objext \
5426 conftest$ac_exeext conftest.$ac_ext
5427 INSTOBJEXT=.mo
5428 fi
5429 fi
5430
5431 fi
5432
5433
5434
5435
5436 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5437 # Neither gettext nor catgets in included in the C library.
5438 # Fall back on GNU gettext library (assuming it is present).
5439 nls_cv_use_gnu_gettext=yes
5440 fi
5441 fi
5442
5443 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5444 INTLOBJS="\$(GETTOBJS)"
5445 # Extract the first word of "msgfmt", so it can be a program name with args.
5446 set dummy msgfmt; ac_word=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_path_MSGFMT+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 case "$MSGFMT" in
5453 /*)
5454 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5455 ;;
5456 *)
5457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5458 for ac_dir in $PATH; do
5459 test -z "$ac_dir" && ac_dir=.
5460 if test -f $ac_dir/$ac_word; then
5461 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5462 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5463 break
5464 fi
5465 fi
5466 done
5467 IFS="$ac_save_ifs"
5468 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5469 ;;
5470 esac
5471 fi
5472 MSGFMT="$ac_cv_path_MSGFMT"
5473 if test -n "$MSGFMT"; then
5474 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5475 echo "${ECHO_T}$MSGFMT" >&6
5476 else
5477 echo "$as_me:$LINENO: result: no" >&5
5478 echo "${ECHO_T}no" >&6
5479 fi
5480
5481 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5482 set dummy gmsgfmt; ac_word=$2
5483 echo "$as_me:$LINENO: checking for $ac_word" >&5
5484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5485 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488 case $GMSGFMT in
5489 [\\/]* | ?:[\\/]*)
5490 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5491 ;;
5492 *)
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504 done
5505 done
5506
5507 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5508 ;;
5509 esac
5510 fi
5511 GMSGFMT=$ac_cv_path_GMSGFMT
5512
5513 if test -n "$GMSGFMT"; then
5514 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5515 echo "${ECHO_T}$GMSGFMT" >&6
5516 else
5517 echo "$as_me:$LINENO: result: no" >&5
5518 echo "${ECHO_T}no" >&6
5519 fi
5520
5521 # Extract the first word of "xgettext", so it can be a program name with args.
5522 set dummy xgettext; ac_word=$2
5523 echo "$as_me:$LINENO: checking for $ac_word" >&5
5524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5525 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 case "$XGETTEXT" in
5529 /*)
5530 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5531 ;;
5532 *)
5533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5534 for ac_dir in $PATH; do
5535 test -z "$ac_dir" && ac_dir=.
5536 if test -f $ac_dir/$ac_word; then
5537 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5538 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5539 break
5540 fi
5541 fi
5542 done
5543 IFS="$ac_save_ifs"
5544 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5545 ;;
5546 esac
5547 fi
5548 XGETTEXT="$ac_cv_path_XGETTEXT"
5549 if test -n "$XGETTEXT"; then
5550 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5551 echo "${ECHO_T}$XGETTEXT" >&6
5552 else
5553 echo "$as_me:$LINENO: result: no" >&5
5554 echo "${ECHO_T}no" >&6
5555 fi
5556
5557
5558 USE_INCLUDED_LIBINTL=yes
5559 CATOBJEXT=.gmo
5560 INSTOBJEXT=.mo
5561 DATADIRNAME=share
5562 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5563 INTLLIBS=$INTLDEPS
5564 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5565 nls_cv_header_intl=libintl.h
5566 nls_cv_header_libgt=libgettext.h
5567 fi
5568
5569 if test "$XGETTEXT" != ":"; then
5570 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5571 : ;
5572 else
5573 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5574 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5575 XGETTEXT=":"
5576 fi
5577 fi
5578
5579 # We need to process the po/ directory.
5580 POSUB=po
5581 else
5582 DATADIRNAME=share
5583 nls_cv_header_intl=libintl.h
5584 nls_cv_header_libgt=libgettext.h
5585 fi
5586
5587 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5588 # because some of the sources are only built for this goal.
5589 if test "$PACKAGE" = gettext; then
5590 USE_NLS=yes
5591 USE_INCLUDED_LIBINTL=yes
5592 fi
5593
5594 for lang in $ALL_LINGUAS; do
5595 GMOFILES="$GMOFILES $lang.gmo"
5596 POFILES="$POFILES $lang.po"
5597 done
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610 if test "x$CATOBJEXT" != "x"; then
5611
5612 cat >>confdefs.h <<\_ACEOF
5613 #define ENABLE_NLS 1
5614 _ACEOF
5615
5616 fi
5617
5618
5619 if test "x$CATOBJEXT" != "x"; then
5620 if test "x$ALL_LINGUAS" = "x"; then
5621 LINGUAS=
5622 else
5623 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5624 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5625 NEW_LINGUAS=
5626 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5627 case "$ALL_LINGUAS" in
5628 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5629 esac
5630 done
5631 LINGUAS=$NEW_LINGUAS
5632 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5633 echo "${ECHO_T}$LINGUAS" >&6
5634 fi
5635
5636 if test -n "$LINGUAS"; then
5637 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5638 fi
5639 fi
5640
5641 if test $ac_cv_header_locale_h = yes; then
5642 INCLUDE_LOCALE_H="#include <locale.h>"
5643 else
5644 INCLUDE_LOCALE_H="\
5645 /* The system does not provide the header <locale.h>. Take care yourself. */"
5646 fi
5647
5648
5649 if test -f $srcdir/po2tbl.sed.in; then
5650 if test "$CATOBJEXT" = ".cat"; then
5651 if test "${ac_cv_header_linux_version_h+set}" = set; then
5652 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5653 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5654 if test "${ac_cv_header_linux_version_h+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 fi
5657 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5658 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5659 else
5660 # Is the header compilable?
5661 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5662 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 $ac_includes_default
5670 #include <linux/version.h>
5671 _ACEOF
5672 rm -f conftest.$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 (eval $ac_try) 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; } &&
5687 { ac_try='test -s conftest.$ac_objext'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 (eval $ac_try) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; }; then
5693 ac_header_compiler=yes
5694 else
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5697
5698 ac_header_compiler=no
5699 fi
5700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5702 echo "${ECHO_T}$ac_header_compiler" >&6
5703
5704 # Is the header present?
5705 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5706 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #include <linux/version.h>
5714 _ACEOF
5715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } >/dev/null; then
5723 if test -s conftest.err; then
5724 ac_cpp_err=$ac_c_preproc_warn_flag
5725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5726 else
5727 ac_cpp_err=
5728 fi
5729 else
5730 ac_cpp_err=yes
5731 fi
5732 if test -z "$ac_cpp_err"; then
5733 ac_header_preproc=yes
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 ac_header_preproc=no
5739 fi
5740 rm -f conftest.err conftest.$ac_ext
5741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5742 echo "${ECHO_T}$ac_header_preproc" >&6
5743
5744 # So? What about this header?
5745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5746 yes:no: )
5747 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5748 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5750 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5751 ac_header_preproc=yes
5752 ;;
5753 no:yes:* )
5754 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5755 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5757 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5759 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5761 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5763 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5765 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5766 (
5767 cat <<\_ASBOX
5768 ## ------------------------------------------ ##
5769 ## Report this to the AC_PACKAGE_NAME lists. ##
5770 ## ------------------------------------------ ##
5771 _ASBOX
5772 ) |
5773 sed "s/^/$as_me: WARNING: /" >&2
5774 ;;
5775 esac
5776 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5777 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5778 if test "${ac_cv_header_linux_version_h+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781 ac_cv_header_linux_version_h=$ac_header_preproc
5782 fi
5783 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5784 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5785
5786 fi
5787 if test $ac_cv_header_linux_version_h = yes; then
5788 msgformat=linux
5789 else
5790 msgformat=xopen
5791 fi
5792
5793
5794
5795 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5796 fi
5797 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5798 $srcdir/po2tbl.sed.in > po2tbl.sed
5799 fi
5800
5801 if test "$PACKAGE" = "gettext"; then
5802 GT_NO="#NO#"
5803 GT_YES=
5804 else
5805 GT_NO=
5806 GT_YES="#YES#"
5807 fi
5808
5809
5810
5811 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5812
5813
5814 l=
5815
5816
5817 if test -f $srcdir/po/POTFILES.in; then
5818 test -d po || mkdir po
5819 if test "x$srcdir" != "x."; then
5820 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5821 posrcprefix="$srcdir/"
5822 else
5823 posrcprefix="../$srcdir/"
5824 fi
5825 else
5826 posrcprefix="../"
5827 fi
5828 rm -f po/POTFILES
5829 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5830 < $srcdir/po/POTFILES.in > po/POTFILES
5831 fi
5832
5833
5834 localedir='${datadir}/locale'
5835
5836
5837 if test "x$POSUB" != x; then
5838
5839 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5840 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5841 # Look for .po and .gmo files in the source directory.
5842 CATALOGS=
5843 XLINGUAS=
5844 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5845 # If there aren't any .gmo files the shell will give us the
5846 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5847 # weeded out.
5848 case "$cat" in *\**)
5849 continue;;
5850 esac
5851 # The quadruple backslash is collapsed to a double backslash
5852 # by the backticks, then collapsed again by the double quotes,
5853 # leaving us with one backslash in the sed expression (right
5854 # before the dot that mustn't act as a wildcard).
5855 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5856 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5857 # The user is allowed to set LINGUAS to a list of languages to
5858 # install catalogs for. If it's empty that means "all of them."
5859 if test "x$LINGUAS" = x; then
5860 CATALOGS="$CATALOGS $cat"
5861 XLINGUAS="$XLINGUAS $lang"
5862 else
5863 case "$LINGUAS" in *$lang*)
5864 CATALOGS="$CATALOGS $cat"
5865 XLINGUAS="$XLINGUAS $lang"
5866 ;;
5867 esac
5868 fi
5869 done
5870 LINGUAS="$XLINGUAS"
5871 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5872 echo "${ECHO_T}$LINGUAS" >&6
5873
5874 CONFIG_ALL="$CONFIG_ALL all-po"
5875 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5876 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5877 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5878 fi
5879
5880 PACKAGE=gdb
5881
5882 cat >>confdefs.h <<_ACEOF
5883 #define PACKAGE "$PACKAGE"
5884 _ACEOF
5885
5886
5887
5888 debugdir=${libdir}/debug
5889
5890
5891 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5892 if test "${with_separate_debug_dir+set}" = set; then
5893 withval="$with_separate_debug_dir"
5894 debugdir="${withval}"
5895 fi;
5896
5897
5898 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5899 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5900 ac_define_dir=`eval echo $debugdir`
5901 ac_define_dir=`eval echo $ac_define_dir`
5902
5903 cat >>confdefs.h <<_ACEOF
5904 #define DEBUGDIR "$ac_define_dir"
5905 _ACEOF
5906
5907
5908 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5909
5910
5911
5912 subdirs="$subdirs doc testsuite"
5913
5914
5915 # Provide defaults for some variables set by the per-host and per-target
5916 # configuration.
5917 gdb_host_obs=posix-hdep.o
5918
5919 . $srcdir/configure.host
5920
5921 . $srcdir/configure.tgt
5922
5923 # Fetch the default architecture and default target vector from BFD.
5924 targ=$target; . $srcdir/../bfd/config.bfd
5925
5926 # We only want the first architecture, so strip off the others if
5927 # there is more than one.
5928 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5929
5930 if test "x$targ_archs" != x; then
5931
5932 cat >>confdefs.h <<_ACEOF
5933 #define DEFAULT_BFD_ARCH $targ_archs
5934 _ACEOF
5935
5936 fi
5937 if test "x$targ_defvec" != x; then
5938
5939 cat >>confdefs.h <<_ACEOF
5940 #define DEFAULT_BFD_VEC $targ_defvec
5941 _ACEOF
5942
5943 fi
5944
5945 test "$program_prefix" != NONE &&
5946 program_transform_name="s,^,$program_prefix,;$program_transform_name"
5947 # Use a double $ so make ignores it.
5948 test "$program_suffix" != NONE &&
5949 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5950 # Double any \ or $. echo might interpret backslashes.
5951 # By default was `s,x,x', remove it if useless.
5952 cat <<\_ACEOF >conftest.sed
5953 s/[\\$]/&&/g;s/;s,x,x,$//
5954 _ACEOF
5955 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5956 rm conftest.sed
5957
5958
5959 # The CLI cannot be disabled yet, but may be in the future.
5960
5961 # Enable CLI.
5962 # Check whether --enable-gdbcli or --disable-gdbcli was given.
5963 if test "${enable_gdbcli+set}" = set; then
5964 enableval="$enable_gdbcli"
5965 case $enableval in
5966 yes)
5967 ;;
5968 no)
5969 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5970 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5971 { (exit 1); exit 1; }; } ;;
5972 *)
5973 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
5974 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
5975 { (exit 1); exit 1; }; } ;;
5976 esac
5977 else
5978 enable_gdbcli=yes
5979 fi;
5980 if test x"$enable_gdbcli" = xyes; then
5981 if test -d $srcdir/cli; then
5982 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5983 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5984 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5985 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5986 fi
5987 fi
5988
5989 # Enable MI.
5990 # Check whether --enable-gdbmi or --disable-gdbmi was given.
5991 if test "${enable_gdbmi+set}" = set; then
5992 enableval="$enable_gdbmi"
5993 case $enableval in
5994 yes | no)
5995 ;;
5996 *)
5997 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
5998 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
5999 { (exit 1); exit 1; }; } ;;
6000 esac
6001 else
6002 enable_gdbmi=yes
6003 fi;
6004 if test x"$enable_gdbmi" = xyes; then
6005 if test -d $srcdir/mi; then
6006 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6007 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6008 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6009 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6010 fi
6011 fi
6012
6013 # Enable TUI.
6014 # Check whether --enable-tui or --disable-tui was given.
6015 if test "${enable_tui+set}" = set; then
6016 enableval="$enable_tui"
6017 case $enableval in
6018 yes | no)
6019 ;;
6020 *)
6021 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6022 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6023 { (exit 1); exit 1; }; } ;;
6024 esac
6025 else
6026 enable_tui=yes
6027 fi;
6028
6029 # Enable gdbtk.
6030 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6031 if test "${enable_gdbtk+set}" = set; then
6032 enableval="$enable_gdbtk"
6033 case $enableval in
6034 yes | no)
6035 ;;
6036 *)
6037 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6038 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6039 { (exit 1); exit 1; }; } ;;
6040 esac
6041 else
6042 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
6043 enable_gdbtk=yes
6044 else
6045 enable_gdbtk=no
6046 fi
6047 fi;
6048 # We unconditionally disable gdbtk tests on selected platforms.
6049 case $host_os in
6050 go32* | windows*)
6051 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6052 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6053 enable_gdbtk=no ;;
6054 esac
6055
6056 # Libunwind support.
6057
6058 # Check whether --with-libunwind or --without-libunwind was given.
6059 if test "${with_libunwind+set}" = set; then
6060 withval="$with_libunwind"
6061 case "${withval}" in
6062 yes) enable_libunwind=yes ;;
6063 no) enable_libunwind=no ;;
6064 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6065 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6066 { (exit 1); exit 1; }; } ;;
6067 esac
6068 else
6069
6070
6071 for ac_header in libunwind.h
6072 do
6073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6075 echo "$as_me:$LINENO: checking for $ac_header" >&5
6076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 fi
6080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6082 else
6083 # Is the header compilable?
6084 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6086 cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h. */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 $ac_includes_default
6093 #include <$ac_header>
6094 _ACEOF
6095 rm -f conftest.$ac_objext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097 (eval $ac_compile) 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
6104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest.$ac_objext'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 ac_header_compiler=yes
6117 else
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6120
6121 ac_header_compiler=no
6122 fi
6123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6125 echo "${ECHO_T}$ac_header_compiler" >&6
6126
6127 # Is the header present?
6128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6130 cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h. */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 #include <$ac_header>
6137 _ACEOF
6138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } >/dev/null; then
6146 if test -s conftest.err; then
6147 ac_cpp_err=$ac_c_preproc_warn_flag
6148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6149 else
6150 ac_cpp_err=
6151 fi
6152 else
6153 ac_cpp_err=yes
6154 fi
6155 if test -z "$ac_cpp_err"; then
6156 ac_header_preproc=yes
6157 else
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6160
6161 ac_header_preproc=no
6162 fi
6163 rm -f conftest.err conftest.$ac_ext
6164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6165 echo "${ECHO_T}$ac_header_preproc" >&6
6166
6167 # So? What about this header?
6168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6169 yes:no: )
6170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6174 ac_header_preproc=yes
6175 ;;
6176 no:yes:* )
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6189 (
6190 cat <<\_ASBOX
6191 ## ------------------------------------------ ##
6192 ## Report this to the AC_PACKAGE_NAME lists. ##
6193 ## ------------------------------------------ ##
6194 _ASBOX
6195 ) |
6196 sed "s/^/$as_me: WARNING: /" >&2
6197 ;;
6198 esac
6199 echo "$as_me:$LINENO: checking for $ac_header" >&5
6200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204 eval "$as_ac_Header=\$ac_header_preproc"
6205 fi
6206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6208
6209 fi
6210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6211 cat >>confdefs.h <<_ACEOF
6212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6213 _ACEOF
6214
6215 fi
6216
6217 done
6218
6219
6220 for ac_header in libunwind-ia64.h
6221 do
6222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6224 echo "$as_me:$LINENO: checking for $ac_header" >&5
6225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 fi
6229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6231 else
6232 # Is the header compilable?
6233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 $ac_includes_default
6242 #include <$ac_header>
6243 _ACEOF
6244 rm -f conftest.$ac_objext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 (eval $ac_try) 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; } &&
6259 { ac_try='test -s conftest.$ac_objext'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6265 ac_header_compiler=yes
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 ac_header_compiler=no
6271 fi
6272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6274 echo "${ECHO_T}$ac_header_compiler" >&6
6275
6276 # Is the header present?
6277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6279 cat >conftest.$ac_ext <<_ACEOF
6280 /* confdefs.h. */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6285 #include <$ac_header>
6286 _ACEOF
6287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } >/dev/null; then
6295 if test -s conftest.err; then
6296 ac_cpp_err=$ac_c_preproc_warn_flag
6297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6298 else
6299 ac_cpp_err=
6300 fi
6301 else
6302 ac_cpp_err=yes
6303 fi
6304 if test -z "$ac_cpp_err"; then
6305 ac_header_preproc=yes
6306 else
6307 echo "$as_me: failed program was:" >&5
6308 sed 's/^/| /' conftest.$ac_ext >&5
6309
6310 ac_header_preproc=no
6311 fi
6312 rm -f conftest.err conftest.$ac_ext
6313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6314 echo "${ECHO_T}$ac_header_preproc" >&6
6315
6316 # So? What about this header?
6317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6318 yes:no: )
6319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6323 ac_header_preproc=yes
6324 ;;
6325 no:yes:* )
6326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6338 (
6339 cat <<\_ASBOX
6340 ## ------------------------------------------ ##
6341 ## Report this to the AC_PACKAGE_NAME lists. ##
6342 ## ------------------------------------------ ##
6343 _ASBOX
6344 ) |
6345 sed "s/^/$as_me: WARNING: /" >&2
6346 ;;
6347 esac
6348 echo "$as_me:$LINENO: checking for $ac_header" >&5
6349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353 eval "$as_ac_Header=\$ac_header_preproc"
6354 fi
6355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6357
6358 fi
6359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6360 cat >>confdefs.h <<_ACEOF
6361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6362 _ACEOF
6363
6364 fi
6365
6366 done
6367
6368 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6369 enable_libunwind=yes;
6370 fi
6371
6372 fi;
6373
6374 if test x"$enable_libunwind" = xyes; then
6375
6376 for ac_header in libunwind.h
6377 do
6378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6380 echo "$as_me:$LINENO: checking for $ac_header" >&5
6381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 fi
6385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6387 else
6388 # Is the header compilable?
6389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h. */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6398 #include <$ac_header>
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 (eval $ac_try) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; } &&
6415 { ac_try='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_header_compiler=yes
6422 else
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6425
6426 ac_header_compiler=no
6427 fi
6428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430 echo "${ECHO_T}$ac_header_compiler" >&6
6431
6432 # Is the header present?
6433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <$ac_header>
6442 _ACEOF
6443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6445 ac_status=$?
6446 grep -v '^ *+' conftest.er1 >conftest.err
6447 rm -f conftest.er1
6448 cat conftest.err >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev/null; then
6451 if test -s conftest.err; then
6452 ac_cpp_err=$ac_c_preproc_warn_flag
6453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6454 else
6455 ac_cpp_err=
6456 fi
6457 else
6458 ac_cpp_err=yes
6459 fi
6460 if test -z "$ac_cpp_err"; then
6461 ac_header_preproc=yes
6462 else
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6465
6466 ac_header_preproc=no
6467 fi
6468 rm -f conftest.err conftest.$ac_ext
6469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470 echo "${ECHO_T}$ac_header_preproc" >&6
6471
6472 # So? What about this header?
6473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6474 yes:no: )
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6479 ac_header_preproc=yes
6480 ;;
6481 no:yes:* )
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6494 (
6495 cat <<\_ASBOX
6496 ## ------------------------------------------ ##
6497 ## Report this to the AC_PACKAGE_NAME lists. ##
6498 ## ------------------------------------------ ##
6499 _ASBOX
6500 ) |
6501 sed "s/^/$as_me: WARNING: /" >&2
6502 ;;
6503 esac
6504 echo "$as_me:$LINENO: checking for $ac_header" >&5
6505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 eval "$as_ac_Header=\$ac_header_preproc"
6510 fi
6511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6513
6514 fi
6515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6516 cat >>confdefs.h <<_ACEOF
6517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6518 _ACEOF
6519
6520 fi
6521
6522 done
6523
6524
6525 for ac_header in libunwind-ia64.h
6526 do
6527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6529 echo "$as_me:$LINENO: checking for $ac_header" >&5
6530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 fi
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536 else
6537 # Is the header compilable?
6538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6547 #include <$ac_header>
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551 (eval $ac_compile) 2>conftest.er1
6552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } &&
6558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 ac_header_compiler=yes
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6574
6575 ac_header_compiler=no
6576 fi
6577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6579 echo "${ECHO_T}$ac_header_compiler" >&6
6580
6581 # Is the header present?
6582 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <$ac_header>
6591 _ACEOF
6592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } >/dev/null; then
6600 if test -s conftest.err; then
6601 ac_cpp_err=$ac_c_preproc_warn_flag
6602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6603 else
6604 ac_cpp_err=
6605 fi
6606 else
6607 ac_cpp_err=yes
6608 fi
6609 if test -z "$ac_cpp_err"; then
6610 ac_header_preproc=yes
6611 else
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6614
6615 ac_header_preproc=no
6616 fi
6617 rm -f conftest.err conftest.$ac_ext
6618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6619 echo "${ECHO_T}$ac_header_preproc" >&6
6620
6621 # So? What about this header?
6622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6623 yes:no: )
6624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6628 ac_header_preproc=yes
6629 ;;
6630 no:yes:* )
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6643 (
6644 cat <<\_ASBOX
6645 ## ------------------------------------------ ##
6646 ## Report this to the AC_PACKAGE_NAME lists. ##
6647 ## ------------------------------------------ ##
6648 _ASBOX
6649 ) |
6650 sed "s/^/$as_me: WARNING: /" >&2
6651 ;;
6652 esac
6653 echo "$as_me:$LINENO: checking for $ac_header" >&5
6654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658 eval "$as_ac_Header=\$ac_header_preproc"
6659 fi
6660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6662
6663 fi
6664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6665 cat >>confdefs.h <<_ACEOF
6666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6667 _ACEOF
6668
6669 fi
6670
6671 done
6672
6673
6674 cat >>confdefs.h <<\_ACEOF
6675 #define HAVE_LIBUNWIND 1
6676 _ACEOF
6677
6678 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6679 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6680 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6681 fi
6682
6683 # Profiling support.
6684 # Check whether --enable-profiling or --disable-profiling was given.
6685 if test "${enable_profiling+set}" = set; then
6686 enableval="$enable_profiling"
6687 case $enableval in
6688 yes | no)
6689 ;;
6690 *)
6691 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6692 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6693 { (exit 1); exit 1; }; } ;;
6694 esac
6695 else
6696 enable_profiling=no
6697 fi;
6698
6699
6700
6701 for ac_func in monstartup _mcleanup
6702 do
6703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6704 echo "$as_me:$LINENO: checking for $ac_func" >&5
6705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6706 if eval "test \"\${$as_ac_var+set}\" = set"; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709 cat >conftest.$ac_ext <<_ACEOF
6710 /* confdefs.h. */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6717 #define $ac_func innocuous_$ac_func
6718
6719 /* System header to define __stub macros and hopefully few prototypes,
6720 which can conflict with char $ac_func (); below.
6721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6722 <limits.h> exists even on freestanding compilers. */
6723
6724 #ifdef __STDC__
6725 # include <limits.h>
6726 #else
6727 # include <assert.h>
6728 #endif
6729
6730 #undef $ac_func
6731
6732 /* Override any gcc2 internal prototype to avoid an error. */
6733 #ifdef __cplusplus
6734 extern "C"
6735 {
6736 #endif
6737 /* We use char because int might match the return type of a gcc2
6738 builtin and then its argument prototype would still apply. */
6739 char $ac_func ();
6740 /* The GNU C library defines this for functions which it implements
6741 to always fail with ENOSYS. Some functions are actually named
6742 something starting with __ and the normal name is an alias. */
6743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6744 choke me
6745 #else
6746 char (*f) () = $ac_func;
6747 #endif
6748 #ifdef __cplusplus
6749 }
6750 #endif
6751
6752 int
6753 main ()
6754 {
6755 return f != $ac_func;
6756 ;
6757 return 0;
6758 }
6759 _ACEOF
6760 rm -f conftest.$ac_objext conftest$ac_exeext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762 (eval $ac_link) 2>conftest.er1
6763 ac_status=$?
6764 grep -v '^ *+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; } &&
6775 { ac_try='test -s conftest$ac_exeext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 eval "$as_ac_var=yes"
6782 else
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786 eval "$as_ac_var=no"
6787 fi
6788 rm -f conftest.err conftest.$ac_objext \
6789 conftest$ac_exeext conftest.$ac_ext
6790 fi
6791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6793 if test `eval echo '${'$as_ac_var'}'` = yes; then
6794 cat >>confdefs.h <<_ACEOF
6795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6796 _ACEOF
6797
6798 fi
6799 done
6800
6801 echo "$as_me:$LINENO: checking for _etext" >&5
6802 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6803 if test "${ac_cv_var__etext+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 #include <stdlib.h>
6813 extern char _etext;
6814
6815 int
6816 main ()
6817 {
6818 free (&_etext);
6819 ;
6820 return 0;
6821 }
6822 _ACEOF
6823 rm -f conftest.$ac_objext conftest$ac_exeext
6824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6825 (eval $ac_link) 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } &&
6832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; } &&
6838 { ac_try='test -s conftest$ac_exeext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 (eval $ac_try) 2>&5
6841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 ac_cv_var__etext=yes
6845 else
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6848
6849 ac_cv_var__etext=no
6850 fi
6851 rm -f conftest.err conftest.$ac_objext \
6852 conftest$ac_exeext conftest.$ac_ext
6853 fi
6854 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6855 echo "${ECHO_T}$ac_cv_var__etext" >&6
6856 if test $ac_cv_var__etext = yes; then
6857
6858 cat >>confdefs.h <<\_ACEOF
6859 #define HAVE__ETEXT 1
6860 _ACEOF
6861
6862 fi
6863 if test "$enable_profiling" = yes ; then
6864 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6865 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6866 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6867 { (exit 1); exit 1; }; }
6868 fi
6869 PROFILE_CFLAGS=-pg
6870 OLD_CFLAGS="$CFLAGS"
6871 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6872
6873 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6874 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6875 if test "${ac_cv_cc_supports_pg+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884
6885 int
6886 main ()
6887 {
6888 int x;
6889 ;
6890 return 0;
6891 }
6892 _ACEOF
6893 rm -f conftest.$ac_objext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6895 (eval $ac_compile) 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; } &&
6908 { ac_try='test -s conftest.$ac_objext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_cv_cc_supports_pg=yes
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6918
6919 ac_cv_cc_supports_pg=no
6920 fi
6921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6922 fi
6923 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6924 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6925
6926 if test $ac_cv_cc_supports_pg = no; then
6927 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6928 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6929 { (exit 1); exit 1; }; }
6930 fi
6931
6932 CFLAGS="$OLD_CFLAGS"
6933 fi
6934
6935 # --------------------- #
6936 # Checks for programs. #
6937 # --------------------- #
6938
6939 for ac_prog in gawk mawk nawk awk
6940 do
6941 # Extract the first word of "$ac_prog", so it can be a program name with args.
6942 set dummy $ac_prog; ac_word=$2
6943 echo "$as_me:$LINENO: checking for $ac_word" >&5
6944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6945 if test "${ac_cv_prog_AWK+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948 if test -n "$AWK"; then
6949 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_AWK="$ac_prog"
6959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962 done
6963 done
6964
6965 fi
6966 fi
6967 AWK=$ac_cv_prog_AWK
6968 if test -n "$AWK"; then
6969 echo "$as_me:$LINENO: result: $AWK" >&5
6970 echo "${ECHO_T}$AWK" >&6
6971 else
6972 echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6
6974 fi
6975
6976 test -n "$AWK" && break
6977 done
6978
6979 # Find a good install program. We prefer a C program (faster),
6980 # so one script is as good as another. But avoid the broken or
6981 # incompatible versions:
6982 # SysV /etc/install, /usr/sbin/install
6983 # SunOS /usr/etc/install
6984 # IRIX /sbin/install
6985 # AIX /bin/install
6986 # AmigaOS /C/install, which installs bootblocks on floppy discs
6987 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6990 # OS/2's system install, which has a completely different semantic
6991 # ./install, which can be erroneously created by make from ./install.sh.
6992 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6993 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6994 if test -z "$INSTALL"; then
6995 if test "${ac_cv_path_install+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 # Account for people who put trailing slashes in PATH elements.
7004 case $as_dir/ in
7005 ./ | .// | /cC/* | \
7006 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7007 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7008 /usr/ucb/* ) ;;
7009 *)
7010 # OSF1 and SCO ODT 3.0 have their own names for install.
7011 # Don't use installbsd from OSF since it installs stuff as root
7012 # by default.
7013 for ac_prog in ginstall scoinst install; do
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7016 if test $ac_prog = install &&
7017 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7018 # AIX install. It has an incompatible calling convention.
7019 :
7020 elif test $ac_prog = install &&
7021 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7022 # program-specific install script used by HP pwplus--don't use.
7023 :
7024 else
7025 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7026 break 3
7027 fi
7028 fi
7029 done
7030 done
7031 ;;
7032 esac
7033 done
7034
7035
7036 fi
7037 if test "${ac_cv_path_install+set}" = set; then
7038 INSTALL=$ac_cv_path_install
7039 else
7040 # As a last resort, use the slow shell script. We don't cache a
7041 # path for INSTALL within a source directory, because that will
7042 # break other packages using the cache if that directory is
7043 # removed, or if the path is relative.
7044 INSTALL=$ac_install_sh
7045 fi
7046 fi
7047 echo "$as_me:$LINENO: result: $INSTALL" >&5
7048 echo "${ECHO_T}$INSTALL" >&6
7049
7050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7051 # It thinks the first close brace ends the variable substitution.
7052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7053
7054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7055
7056 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7057
7058 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7059 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7060 LN_S=$as_ln_s
7061 if test "$LN_S" = "ln -s"; then
7062 echo "$as_me:$LINENO: result: yes" >&5
7063 echo "${ECHO_T}yes" >&6
7064 else
7065 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7066 echo "${ECHO_T}no, using $LN_S" >&6
7067 fi
7068
7069 if test -n "$ac_tool_prefix"; then
7070 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7071 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7072 echo "$as_me:$LINENO: checking for $ac_word" >&5
7073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7074 if test "${ac_cv_prog_RANLIB+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077 if test -n "$RANLIB"; then
7078 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7079 else
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7082 do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091 done
7092 done
7093
7094 fi
7095 fi
7096 RANLIB=$ac_cv_prog_RANLIB
7097 if test -n "$RANLIB"; then
7098 echo "$as_me:$LINENO: result: $RANLIB" >&5
7099 echo "${ECHO_T}$RANLIB" >&6
7100 else
7101 echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6
7103 fi
7104
7105 fi
7106 if test -z "$ac_cv_prog_RANLIB"; then
7107 ac_ct_RANLIB=$RANLIB
7108 # Extract the first word of "ranlib", so it can be a program name with args.
7109 set dummy ranlib; ac_word=$2
7110 echo "$as_me:$LINENO: checking for $ac_word" >&5
7111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7112 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115 if test -n "$ac_ct_RANLIB"; then
7116 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7125 ac_cv_prog_ac_ct_RANLIB="ranlib"
7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7128 fi
7129 done
7130 done
7131
7132 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7133 fi
7134 fi
7135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7136 if test -n "$ac_ct_RANLIB"; then
7137 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7138 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7139 else
7140 echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6
7142 fi
7143
7144 RANLIB=$ac_ct_RANLIB
7145 else
7146 RANLIB="$ac_cv_prog_RANLIB"
7147 fi
7148
7149 for ac_prog in 'bison -y' byacc
7150 do
7151 # Extract the first word of "$ac_prog", so it can be a program name with args.
7152 set dummy $ac_prog; ac_word=$2
7153 echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7155 if test "${ac_cv_prog_YACC+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158 if test -n "$YACC"; then
7159 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168 ac_cv_prog_YACC="$ac_prog"
7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172 done
7173 done
7174
7175 fi
7176 fi
7177 YACC=$ac_cv_prog_YACC
7178 if test -n "$YACC"; then
7179 echo "$as_me:$LINENO: result: $YACC" >&5
7180 echo "${ECHO_T}$YACC" >&6
7181 else
7182 echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6
7184 fi
7185
7186 test -n "$YACC" && break
7187 done
7188 test -n "$YACC" || YACC="yacc"
7189
7190
7191 if test -n "$ac_tool_prefix"; then
7192 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7193 set dummy ${ac_tool_prefix}ar; ac_word=$2
7194 echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7196 if test "${ac_cv_prog_AR+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199 if test -n "$AR"; then
7200 ac_cv_prog_AR="$AR" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209 ac_cv_prog_AR="${ac_tool_prefix}ar"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213 done
7214 done
7215
7216 fi
7217 fi
7218 AR=$ac_cv_prog_AR
7219 if test -n "$AR"; then
7220 echo "$as_me:$LINENO: result: $AR" >&5
7221 echo "${ECHO_T}$AR" >&6
7222 else
7223 echo "$as_me:$LINENO: result: no" >&5
7224 echo "${ECHO_T}no" >&6
7225 fi
7226
7227 fi
7228 if test -z "$ac_cv_prog_AR"; then
7229 ac_ct_AR=$AR
7230 # Extract the first word of "ar", so it can be a program name with args.
7231 set dummy ar; ac_word=$2
7232 echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7234 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 if test -n "$ac_ct_AR"; then
7238 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7247 ac_cv_prog_ac_ct_AR="ar"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7250 fi
7251 done
7252 done
7253
7254 fi
7255 fi
7256 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7257 if test -n "$ac_ct_AR"; then
7258 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7259 echo "${ECHO_T}$ac_ct_AR" >&6
7260 else
7261 echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6
7263 fi
7264
7265 AR=$ac_ct_AR
7266 else
7267 AR="$ac_cv_prog_AR"
7268 fi
7269
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7272 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7273 echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7275 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278 if test -n "$DLLTOOL"; then
7279 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292 done
7293 done
7294
7295 fi
7296 fi
7297 DLLTOOL=$ac_cv_prog_DLLTOOL
7298 if test -n "$DLLTOOL"; then
7299 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7300 echo "${ECHO_T}$DLLTOOL" >&6
7301 else
7302 echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7304 fi
7305
7306 fi
7307 if test -z "$ac_cv_prog_DLLTOOL"; then
7308 ac_ct_DLLTOOL=$DLLTOOL
7309 # Extract the first word of "dlltool", so it can be a program name with args.
7310 set dummy dlltool; ac_word=$2
7311 echo "$as_me:$LINENO: checking for $ac_word" >&5
7312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7313 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316 if test -n "$ac_ct_DLLTOOL"; then
7317 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330 done
7331 done
7332
7333 fi
7334 fi
7335 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7336 if test -n "$ac_ct_DLLTOOL"; then
7337 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7338 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7339 else
7340 echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6
7342 fi
7343
7344 DLLTOOL=$ac_ct_DLLTOOL
7345 else
7346 DLLTOOL="$ac_cv_prog_DLLTOOL"
7347 fi
7348
7349 if test -n "$ac_tool_prefix"; then
7350 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}windres; ac_word=$2
7352 echo "$as_me:$LINENO: checking for $ac_word" >&5
7353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7354 if test "${ac_cv_prog_WINDRES+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7356 else
7357 if test -n "$WINDRES"; then
7358 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7370 fi
7371 done
7372 done
7373
7374 fi
7375 fi
7376 WINDRES=$ac_cv_prog_WINDRES
7377 if test -n "$WINDRES"; then
7378 echo "$as_me:$LINENO: result: $WINDRES" >&5
7379 echo "${ECHO_T}$WINDRES" >&6
7380 else
7381 echo "$as_me:$LINENO: result: no" >&5
7382 echo "${ECHO_T}no" >&6
7383 fi
7384
7385 fi
7386 if test -z "$ac_cv_prog_WINDRES"; then
7387 ac_ct_WINDRES=$WINDRES
7388 # Extract the first word of "windres", so it can be a program name with args.
7389 set dummy windres; ac_word=$2
7390 echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7392 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 if test -n "$ac_ct_WINDRES"; then
7396 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401 IFS=$as_save_IFS
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405 ac_cv_prog_ac_ct_WINDRES="windres"
7406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 break 2
7408 fi
7409 done
7410 done
7411
7412 fi
7413 fi
7414 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7415 if test -n "$ac_ct_WINDRES"; then
7416 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7417 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7418 else
7419 echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6
7421 fi
7422
7423 WINDRES=$ac_ct_WINDRES
7424 else
7425 WINDRES="$ac_cv_prog_WINDRES"
7426 fi
7427
7428
7429 # Needed for GNU/Hurd.
7430 if test -n "$ac_tool_prefix"; then
7431 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7432 set dummy ${ac_tool_prefix}mig; ac_word=$2
7433 echo "$as_me:$LINENO: checking for $ac_word" >&5
7434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7435 if test "${ac_cv_prog_MIG+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438 if test -n "$MIG"; then
7439 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452 done
7453 done
7454
7455 fi
7456 fi
7457 MIG=$ac_cv_prog_MIG
7458 if test -n "$MIG"; then
7459 echo "$as_me:$LINENO: result: $MIG" >&5
7460 echo "${ECHO_T}$MIG" >&6
7461 else
7462 echo "$as_me:$LINENO: result: no" >&5
7463 echo "${ECHO_T}no" >&6
7464 fi
7465
7466 fi
7467 if test -z "$ac_cv_prog_MIG"; then
7468 ac_ct_MIG=$MIG
7469 # Extract the first word of "mig", so it can be a program name with args.
7470 set dummy mig; ac_word=$2
7471 echo "$as_me:$LINENO: checking for $ac_word" >&5
7472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7473 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476 if test -n "$ac_ct_MIG"; then
7477 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486 ac_cv_prog_ac_ct_MIG="mig"
7487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 break 2
7489 fi
7490 done
7491 done
7492
7493 fi
7494 fi
7495 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7496 if test -n "$ac_ct_MIG"; then
7497 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7498 echo "${ECHO_T}$ac_ct_MIG" >&6
7499 else
7500 echo "$as_me:$LINENO: result: no" >&5
7501 echo "${ECHO_T}no" >&6
7502 fi
7503
7504 MIG=$ac_ct_MIG
7505 else
7506 MIG="$ac_cv_prog_MIG"
7507 fi
7508
7509
7510 # ---------------------- #
7511 # Checks for libraries. #
7512 # ---------------------- #
7513
7514 # We might need to link with -lm; most simulators need it.
7515
7516 echo "$as_me:$LINENO: checking for main in -lm" >&5
7517 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7518 if test "${ac_cv_lib_m_main+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521 ac_check_lib_save_LIBS=$LIBS
7522 LIBS="-lm $LIBS"
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529
7530
7531 int
7532 main ()
7533 {
7534 main ();
7535 ;
7536 return 0;
7537 }
7538 _ACEOF
7539 rm -f conftest.$ac_objext conftest$ac_exeext
7540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7541 (eval $ac_link) 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } &&
7548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try='test -s conftest$ac_exeext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 ac_cv_lib_m_main=yes
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7564
7565 ac_cv_lib_m_main=no
7566 fi
7567 rm -f conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
7569 LIBS=$ac_check_lib_save_LIBS
7570 fi
7571 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7572 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7573 if test $ac_cv_lib_m_main = yes; then
7574 cat >>confdefs.h <<_ACEOF
7575 #define HAVE_LIBM 1
7576 _ACEOF
7577
7578 LIBS="-lm $LIBS"
7579
7580 fi
7581
7582
7583 # We need to link with -lw to get `wctype' on Solaris before Solaris
7584 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7585 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7586 # is known to have this problem). Therefore we avoid libw if we can.
7587 echo "$as_me:$LINENO: checking for wctype" >&5
7588 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7589 if test "${ac_cv_func_wctype+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592 cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h. */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7600 #define wctype innocuous_wctype
7601
7602 /* System header to define __stub macros and hopefully few prototypes,
7603 which can conflict with char wctype (); below.
7604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7605 <limits.h> exists even on freestanding compilers. */
7606
7607 #ifdef __STDC__
7608 # include <limits.h>
7609 #else
7610 # include <assert.h>
7611 #endif
7612
7613 #undef wctype
7614
7615 /* Override any gcc2 internal prototype to avoid an error. */
7616 #ifdef __cplusplus
7617 extern "C"
7618 {
7619 #endif
7620 /* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7622 char wctype ();
7623 /* The GNU C library defines this for functions which it implements
7624 to always fail with ENOSYS. Some functions are actually named
7625 something starting with __ and the normal name is an alias. */
7626 #if defined (__stub_wctype) || defined (__stub___wctype)
7627 choke me
7628 #else
7629 char (*f) () = wctype;
7630 #endif
7631 #ifdef __cplusplus
7632 }
7633 #endif
7634
7635 int
7636 main ()
7637 {
7638 return f != wctype;
7639 ;
7640 return 0;
7641 }
7642 _ACEOF
7643 rm -f conftest.$ac_objext conftest$ac_exeext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7645 (eval $ac_link) 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 (eval $ac_try) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } &&
7658 { ac_try='test -s conftest$ac_exeext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 ac_cv_func_wctype=yes
7665 else
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7668
7669 ac_cv_func_wctype=no
7670 fi
7671 rm -f conftest.err conftest.$ac_objext \
7672 conftest$ac_exeext conftest.$ac_ext
7673 fi
7674 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7675 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7676 if test $ac_cv_func_wctype = yes; then
7677 :
7678 else
7679
7680 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7681 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7682 if test "${ac_cv_lib_w_wctype+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685 ac_check_lib_save_LIBS=$LIBS
7686 LIBS="-lw $LIBS"
7687 cat >conftest.$ac_ext <<_ACEOF
7688 /* confdefs.h. */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7693
7694 /* Override any gcc2 internal prototype to avoid an error. */
7695 #ifdef __cplusplus
7696 extern "C"
7697 #endif
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7700 char wctype ();
7701 int
7702 main ()
7703 {
7704 wctype ();
7705 ;
7706 return 0;
7707 }
7708 _ACEOF
7709 rm -f conftest.$ac_objext conftest$ac_exeext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7711 (eval $ac_link) 2>conftest.er1
7712 ac_status=$?
7713 grep -v '^ *+' conftest.er1 >conftest.err
7714 rm -f conftest.er1
7715 cat conftest.err >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 (eval $ac_try) 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; } &&
7724 { ac_try='test -s conftest$ac_exeext'
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7730 ac_cv_lib_w_wctype=yes
7731 else
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7734
7735 ac_cv_lib_w_wctype=no
7736 fi
7737 rm -f conftest.err conftest.$ac_objext \
7738 conftest$ac_exeext conftest.$ac_ext
7739 LIBS=$ac_check_lib_save_LIBS
7740 fi
7741 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7742 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7743 if test $ac_cv_lib_w_wctype = yes; then
7744 cat >>confdefs.h <<_ACEOF
7745 #define HAVE_LIBW 1
7746 _ACEOF
7747
7748 LIBS="-lw $LIBS"
7749
7750 fi
7751
7752 fi
7753
7754
7755 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7756 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7757 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7758 if test "${ac_cv_search_gethostbyname+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 else
7761 ac_func_search_save_LIBS=$LIBS
7762 ac_cv_search_gethostbyname=no
7763 cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h. */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7769
7770 /* Override any gcc2 internal prototype to avoid an error. */
7771 #ifdef __cplusplus
7772 extern "C"
7773 #endif
7774 /* We use char because int might match the return type of a gcc2
7775 builtin and then its argument prototype would still apply. */
7776 char gethostbyname ();
7777 int
7778 main ()
7779 {
7780 gethostbyname ();
7781 ;
7782 return 0;
7783 }
7784 _ACEOF
7785 rm -f conftest.$ac_objext conftest$ac_exeext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7787 (eval $ac_link) 2>conftest.er1
7788 ac_status=$?
7789 grep -v '^ *+' conftest.er1 >conftest.err
7790 rm -f conftest.er1
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 (eval $ac_try) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; } &&
7800 { ac_try='test -s conftest$ac_exeext'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 (eval $ac_try) 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7806 ac_cv_search_gethostbyname="none required"
7807 else
7808 echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7810
7811 fi
7812 rm -f conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7814 if test "$ac_cv_search_gethostbyname" = no; then
7815 for ac_lib in nsl; do
7816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7817 cat >conftest.$ac_ext <<_ACEOF
7818 /* confdefs.h. */
7819 _ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h. */
7823
7824 /* Override any gcc2 internal prototype to avoid an error. */
7825 #ifdef __cplusplus
7826 extern "C"
7827 #endif
7828 /* We use char because int might match the return type of a gcc2
7829 builtin and then its argument prototype would still apply. */
7830 char gethostbyname ();
7831 int
7832 main ()
7833 {
7834 gethostbyname ();
7835 ;
7836 return 0;
7837 }
7838 _ACEOF
7839 rm -f conftest.$ac_objext conftest$ac_exeext
7840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7841 (eval $ac_link) 2>conftest.er1
7842 ac_status=$?
7843 grep -v '^ *+' conftest.er1 >conftest.err
7844 rm -f conftest.er1
7845 cat conftest.err >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); } &&
7848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 (eval $ac_try) 2>&5
7851 ac_status=$?
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; } &&
7854 { ac_try='test -s conftest$ac_exeext'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 (eval $ac_try) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 ac_cv_search_gethostbyname="-l$ac_lib"
7861 break
7862 else
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7865
7866 fi
7867 rm -f conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 done
7870 fi
7871 LIBS=$ac_func_search_save_LIBS
7872 fi
7873 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7874 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7875 if test "$ac_cv_search_gethostbyname" != no; then
7876 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7877
7878 fi
7879
7880
7881 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7882 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7883 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7884 if test "${ac_cv_search_socketpair+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887 ac_func_search_save_LIBS=$LIBS
7888 ac_cv_search_socketpair=no
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895
7896 /* Override any gcc2 internal prototype to avoid an error. */
7897 #ifdef __cplusplus
7898 extern "C"
7899 #endif
7900 /* We use char because int might match the return type of a gcc2
7901 builtin and then its argument prototype would still apply. */
7902 char socketpair ();
7903 int
7904 main ()
7905 {
7906 socketpair ();
7907 ;
7908 return 0;
7909 }
7910 _ACEOF
7911 rm -f conftest.$ac_objext conftest$ac_exeext
7912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7913 (eval $ac_link) 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 (eval $ac_try) 2>&5
7923 ac_status=$?
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; } &&
7926 { ac_try='test -s conftest$ac_exeext'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 (eval $ac_try) 2>&5
7929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; }; then
7932 ac_cv_search_socketpair="none required"
7933 else
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7936
7937 fi
7938 rm -f conftest.err conftest.$ac_objext \
7939 conftest$ac_exeext conftest.$ac_ext
7940 if test "$ac_cv_search_socketpair" = no; then
7941 for ac_lib in socket; do
7942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7943 cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h. */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949
7950 /* Override any gcc2 internal prototype to avoid an error. */
7951 #ifdef __cplusplus
7952 extern "C"
7953 #endif
7954 /* We use char because int might match the return type of a gcc2
7955 builtin and then its argument prototype would still apply. */
7956 char socketpair ();
7957 int
7958 main ()
7959 {
7960 socketpair ();
7961 ;
7962 return 0;
7963 }
7964 _ACEOF
7965 rm -f conftest.$ac_objext conftest$ac_exeext
7966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967 (eval $ac_link) 2>conftest.er1
7968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7980 { ac_try='test -s conftest$ac_exeext'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 (eval $ac_try) 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; }; then
7986 ac_cv_search_socketpair="-l$ac_lib"
7987 break
7988 else
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7991
7992 fi
7993 rm -f conftest.err conftest.$ac_objext \
7994 conftest$ac_exeext conftest.$ac_ext
7995 done
7996 fi
7997 LIBS=$ac_func_search_save_LIBS
7998 fi
7999 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8000 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8001 if test "$ac_cv_search_socketpair" != no; then
8002 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8003
8004 fi
8005
8006
8007 # For the TUI, we need enhanced curses functionality.
8008 #
8009 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8010 # curses library because the latter might not provide all the
8011 # functionality we need. However, this leads to problems on systems
8012 # where the linker searches /usr/local/lib, but the compiler doesn't
8013 # search /usr/local/include, if ncurses is installed in /usr/local. A
8014 # default installation of ncurses on alpha*-dec-osf* will lead to such
8015 # a situation.
8016 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8017 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8018 if test "${ac_cv_search_waddstr+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021 ac_func_search_save_LIBS=$LIBS
8022 ac_cv_search_waddstr=no
8023 cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h. */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8029
8030 /* Override any gcc2 internal prototype to avoid an error. */
8031 #ifdef __cplusplus
8032 extern "C"
8033 #endif
8034 /* We use char because int might match the return type of a gcc2
8035 builtin and then its argument prototype would still apply. */
8036 char waddstr ();
8037 int
8038 main ()
8039 {
8040 waddstr ();
8041 ;
8042 return 0;
8043 }
8044 _ACEOF
8045 rm -f conftest.$ac_objext conftest$ac_exeext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8047 (eval $ac_link) 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest$ac_exeext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_search_waddstr="none required"
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8070
8071 fi
8072 rm -f conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8074 if test "$ac_cv_search_waddstr" = no; then
8075 for ac_lib in ncurses cursesX curses; do
8076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8077 cat >conftest.$ac_ext <<_ACEOF
8078 /* confdefs.h. */
8079 _ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083
8084 /* Override any gcc2 internal prototype to avoid an error. */
8085 #ifdef __cplusplus
8086 extern "C"
8087 #endif
8088 /* We use char because int might match the return type of a gcc2
8089 builtin and then its argument prototype would still apply. */
8090 char waddstr ();
8091 int
8092 main ()
8093 {
8094 waddstr ();
8095 ;
8096 return 0;
8097 }
8098 _ACEOF
8099 rm -f conftest.$ac_objext conftest$ac_exeext
8100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8101 (eval $ac_link) 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 (eval $ac_try) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; } &&
8114 { ac_try='test -s conftest$ac_exeext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 (eval $ac_try) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 ac_cv_search_waddstr="-l$ac_lib"
8121 break
8122 else
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 fi
8127 rm -f conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8129 done
8130 fi
8131 LIBS=$ac_func_search_save_LIBS
8132 fi
8133 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8134 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8135 if test "$ac_cv_search_waddstr" != no; then
8136 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8137
8138 fi
8139
8140
8141 # Since GDB uses Readline, we need termcap functionality. In many
8142 # cases this will be provided by the curses library, but some systems
8143 # have a seperate termcap library, or no curses library at all.
8144
8145 case $host_os in
8146 cygwin*)
8147 if test -d $srcdir/libtermcap; then
8148 LIBS="../libtermcap/libtermcap.a $LIBS"
8149 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8150 fi ;;
8151 go32* | *djgpp*)
8152 ac_cv_search_tgetent="none required"
8153 ;;
8154 *mingw32*)
8155 ac_cv_search_tgetent="none required"
8156 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
8157 ;;
8158 esac
8159
8160 # These are the libraries checked by Readline.
8161 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8162 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8163 if test "${ac_cv_search_tgetent+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166 ac_func_search_save_LIBS=$LIBS
8167 ac_cv_search_tgetent=no
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h. */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174
8175 /* Override any gcc2 internal prototype to avoid an error. */
8176 #ifdef __cplusplus
8177 extern "C"
8178 #endif
8179 /* We use char because int might match the return type of a gcc2
8180 builtin and then its argument prototype would still apply. */
8181 char tgetent ();
8182 int
8183 main ()
8184 {
8185 tgetent ();
8186 ;
8187 return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8192 (eval $ac_link) 2>conftest.er1
8193 ac_status=$?
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest$ac_exeext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 (eval $ac_try) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 ac_cv_search_tgetent="none required"
8212 else
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216 fi
8217 rm -f conftest.err conftest.$ac_objext \
8218 conftest$ac_exeext conftest.$ac_ext
8219 if test "$ac_cv_search_tgetent" = no; then
8220 for ac_lib in termcap tinfo curses ncurses; do
8221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8222 cat >conftest.$ac_ext <<_ACEOF
8223 /* confdefs.h. */
8224 _ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8228
8229 /* Override any gcc2 internal prototype to avoid an error. */
8230 #ifdef __cplusplus
8231 extern "C"
8232 #endif
8233 /* We use char because int might match the return type of a gcc2
8234 builtin and then its argument prototype would still apply. */
8235 char tgetent ();
8236 int
8237 main ()
8238 {
8239 tgetent ();
8240 ;
8241 return 0;
8242 }
8243 _ACEOF
8244 rm -f conftest.$ac_objext conftest$ac_exeext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8246 (eval $ac_link) 2>conftest.er1
8247 ac_status=$?
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 (eval $ac_try) 2>&5
8256 ac_status=$?
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; } &&
8259 { ac_try='test -s conftest$ac_exeext'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_cv_search_tgetent="-l$ac_lib"
8266 break
8267 else
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8270
8271 fi
8272 rm -f conftest.err conftest.$ac_objext \
8273 conftest$ac_exeext conftest.$ac_ext
8274 done
8275 fi
8276 LIBS=$ac_func_search_save_LIBS
8277 fi
8278 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8279 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8280 if test "$ac_cv_search_tgetent" != no; then
8281 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8282
8283 fi
8284
8285
8286 if test "$ac_cv_search_tgetent" = no; then
8287 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8288 echo "$as_me: error: no termcap library found" >&2;}
8289 { (exit 1); exit 1; }; }
8290 fi
8291
8292 # ------------------------- #
8293 # Checks for header files. #
8294 # ------------------------- #
8295
8296
8297
8298
8299
8300
8301 ac_header_dirent=no
8302 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8303 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8304 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8305 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 else
8309 cat >conftest.$ac_ext <<_ACEOF
8310 /* confdefs.h. */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 #include <sys/types.h>
8316 #include <$ac_hdr>
8317
8318 int
8319 main ()
8320 {
8321 if ((DIR *) 0)
8322 return 0;
8323 ;
8324 return 0;
8325 }
8326 _ACEOF
8327 rm -f conftest.$ac_objext
8328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8329 (eval $ac_compile) 2>conftest.er1
8330 ac_status=$?
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; } &&
8342 { ac_try='test -s conftest.$ac_objext'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 (eval $ac_try) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
8348 eval "$as_ac_Header=yes"
8349 else
8350 echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8352
8353 eval "$as_ac_Header=no"
8354 fi
8355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8356 fi
8357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8360 cat >>confdefs.h <<_ACEOF
8361 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8362 _ACEOF
8363
8364 ac_header_dirent=$ac_hdr; break
8365 fi
8366
8367 done
8368 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8369 if test $ac_header_dirent = dirent.h; then
8370 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8371 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8372 if test "${ac_cv_search_opendir+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 ac_func_search_save_LIBS=$LIBS
8376 ac_cv_search_opendir=no
8377 cat >conftest.$ac_ext <<_ACEOF
8378 /* confdefs.h. */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383
8384 /* Override any gcc2 internal prototype to avoid an error. */
8385 #ifdef __cplusplus
8386 extern "C"
8387 #endif
8388 /* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8390 char opendir ();
8391 int
8392 main ()
8393 {
8394 opendir ();
8395 ;
8396 return 0;
8397 }
8398 _ACEOF
8399 rm -f conftest.$ac_objext conftest$ac_exeext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401 (eval $ac_link) 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest$ac_exeext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_search_opendir="none required"
8421 else
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8424
8425 fi
8426 rm -f conftest.err conftest.$ac_objext \
8427 conftest$ac_exeext conftest.$ac_ext
8428 if test "$ac_cv_search_opendir" = no; then
8429 for ac_lib in dir; do
8430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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
8438 /* Override any gcc2 internal prototype to avoid an error. */
8439 #ifdef __cplusplus
8440 extern "C"
8441 #endif
8442 /* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8444 char opendir ();
8445 int
8446 main ()
8447 {
8448 opendir ();
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest$ac_exeext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_cv_search_opendir="-l$ac_lib"
8475 break
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480 fi
8481 rm -f conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
8483 done
8484 fi
8485 LIBS=$ac_func_search_save_LIBS
8486 fi
8487 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8488 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8489 if test "$ac_cv_search_opendir" != no; then
8490 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8491
8492 fi
8493
8494 else
8495 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8496 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8497 if test "${ac_cv_search_opendir+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500 ac_func_search_save_LIBS=$LIBS
8501 ac_cv_search_opendir=no
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508
8509 /* Override any gcc2 internal prototype to avoid an error. */
8510 #ifdef __cplusplus
8511 extern "C"
8512 #endif
8513 /* We use char because int might match the return type of a gcc2
8514 builtin and then its argument prototype would still apply. */
8515 char opendir ();
8516 int
8517 main ()
8518 {
8519 opendir ();
8520 ;
8521 return 0;
8522 }
8523 _ACEOF
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526 (eval $ac_link) 2>conftest.er1
8527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest$ac_exeext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 ac_cv_search_opendir="none required"
8546 else
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550 fi
8551 rm -f conftest.err conftest.$ac_objext \
8552 conftest$ac_exeext conftest.$ac_ext
8553 if test "$ac_cv_search_opendir" = no; then
8554 for ac_lib in x; do
8555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8556 cat >conftest.$ac_ext <<_ACEOF
8557 /* confdefs.h. */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8562
8563 /* Override any gcc2 internal prototype to avoid an error. */
8564 #ifdef __cplusplus
8565 extern "C"
8566 #endif
8567 /* We use char because int might match the return type of a gcc2
8568 builtin and then its argument prototype would still apply. */
8569 char opendir ();
8570 int
8571 main ()
8572 {
8573 opendir ();
8574 ;
8575 return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8580 (eval $ac_link) 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag" || 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 fi
8620
8621 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8622 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8623 if test "${ac_cv_header_stat_broken+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626 cat >conftest.$ac_ext <<_ACEOF
8627 /* confdefs.h. */
8628 _ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8632 #include <sys/types.h>
8633 #include <sys/stat.h>
8634
8635 #if defined(S_ISBLK) && defined(S_IFDIR)
8636 # if S_ISBLK (S_IFDIR)
8637 You lose.
8638 # endif
8639 #endif
8640
8641 #if defined(S_ISBLK) && defined(S_IFCHR)
8642 # if S_ISBLK (S_IFCHR)
8643 You lose.
8644 # endif
8645 #endif
8646
8647 #if defined(S_ISLNK) && defined(S_IFREG)
8648 # if S_ISLNK (S_IFREG)
8649 You lose.
8650 # endif
8651 #endif
8652
8653 #if defined(S_ISSOCK) && defined(S_IFREG)
8654 # if S_ISSOCK (S_IFREG)
8655 You lose.
8656 # endif
8657 #endif
8658
8659 _ACEOF
8660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8661 $EGREP "You lose" >/dev/null 2>&1; then
8662 ac_cv_header_stat_broken=yes
8663 else
8664 ac_cv_header_stat_broken=no
8665 fi
8666 rm -f conftest*
8667
8668 fi
8669 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8670 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8671 if test $ac_cv_header_stat_broken = yes; then
8672
8673 cat >>confdefs.h <<\_ACEOF
8674 #define STAT_MACROS_BROKEN 1
8675 _ACEOF
8676
8677 fi
8678
8679 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8680 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8681 if test "${ac_cv_header_stdc+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684 cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h. */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 #include <stdlib.h>
8691 #include <stdarg.h>
8692 #include <string.h>
8693 #include <float.h>
8694
8695 int
8696 main ()
8697 {
8698
8699 ;
8700 return 0;
8701 }
8702 _ACEOF
8703 rm -f conftest.$ac_objext
8704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8705 (eval $ac_compile) 2>conftest.er1
8706 ac_status=$?
8707 grep -v '^ *+' conftest.er1 >conftest.err
8708 rm -f conftest.er1
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; } &&
8718 { ac_try='test -s conftest.$ac_objext'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 (eval $ac_try) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 ac_cv_header_stdc=yes
8725 else
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8728
8729 ac_cv_header_stdc=no
8730 fi
8731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8732
8733 if test $ac_cv_header_stdc = yes; then
8734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8735 cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h. */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 #include <string.h>
8742
8743 _ACEOF
8744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8745 $EGREP "memchr" >/dev/null 2>&1; then
8746 :
8747 else
8748 ac_cv_header_stdc=no
8749 fi
8750 rm -f conftest*
8751
8752 fi
8753
8754 if test $ac_cv_header_stdc = yes; then
8755 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 #include <stdlib.h>
8763
8764 _ACEOF
8765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8766 $EGREP "free" >/dev/null 2>&1; then
8767 :
8768 else
8769 ac_cv_header_stdc=no
8770 fi
8771 rm -f conftest*
8772
8773 fi
8774
8775 if test $ac_cv_header_stdc = yes; then
8776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8777 if test "$cross_compiling" = yes; then
8778 :
8779 else
8780 cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h. */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 #include <ctype.h>
8787 #if ((' ' & 0x0FF) == 0x020)
8788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8790 #else
8791 # define ISLOWER(c) \
8792 (('a' <= (c) && (c) <= 'i') \
8793 || ('j' <= (c) && (c) <= 'r') \
8794 || ('s' <= (c) && (c) <= 'z'))
8795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8796 #endif
8797
8798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8799 int
8800 main ()
8801 {
8802 int i;
8803 for (i = 0; i < 256; i++)
8804 if (XOR (islower (i), ISLOWER (i))
8805 || toupper (i) != TOUPPER (i))
8806 exit(2);
8807 exit (0);
8808 }
8809 _ACEOF
8810 rm -f conftest$ac_exeext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812 (eval $ac_link) 2>&5
8813 ac_status=$?
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817 (eval $ac_try) 2>&5
8818 ac_status=$?
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 :
8822 else
8823 echo "$as_me: program exited with status $ac_status" >&5
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827 ( exit $ac_status )
8828 ac_cv_header_stdc=no
8829 fi
8830 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8831 fi
8832 fi
8833 fi
8834 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8835 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8836 if test $ac_cv_header_stdc = yes; then
8837
8838 cat >>confdefs.h <<\_ACEOF
8839 #define STDC_HEADERS 1
8840 _ACEOF
8841
8842 fi
8843
8844
8845 for ac_header in nlist.h
8846 do
8847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8849 echo "$as_me:$LINENO: checking for $ac_header" >&5
8850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 fi
8854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8856 else
8857 # Is the header compilable?
8858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8860 cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h. */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8866 $ac_includes_default
8867 #include <$ac_header>
8868 _ACEOF
8869 rm -f conftest.$ac_objext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871 (eval $ac_compile) 2>conftest.er1
8872 ac_status=$?
8873 grep -v '^ *+' conftest.er1 >conftest.err
8874 rm -f conftest.er1
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; } &&
8884 { ac_try='test -s conftest.$ac_objext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 (eval $ac_try) 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_header_compiler=yes
8891 else
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8894
8895 ac_header_compiler=no
8896 fi
8897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8899 echo "${ECHO_T}$ac_header_compiler" >&6
8900
8901 # Is the header present?
8902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8904 cat >conftest.$ac_ext <<_ACEOF
8905 /* confdefs.h. */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8910 #include <$ac_header>
8911 _ACEOF
8912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8914 ac_status=$?
8915 grep -v '^ *+' conftest.er1 >conftest.err
8916 rm -f conftest.er1
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } >/dev/null; then
8920 if test -s conftest.err; then
8921 ac_cpp_err=$ac_c_preproc_warn_flag
8922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8923 else
8924 ac_cpp_err=
8925 fi
8926 else
8927 ac_cpp_err=yes
8928 fi
8929 if test -z "$ac_cpp_err"; then
8930 ac_header_preproc=yes
8931 else
8932 echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 ac_header_preproc=no
8936 fi
8937 rm -f conftest.err conftest.$ac_ext
8938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8939 echo "${ECHO_T}$ac_header_preproc" >&6
8940
8941 # So? What about this header?
8942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8943 yes:no: )
8944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8948 ac_header_preproc=yes
8949 ;;
8950 no:yes:* )
8951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8963 (
8964 cat <<\_ASBOX
8965 ## ------------------------------------------ ##
8966 ## Report this to the AC_PACKAGE_NAME lists. ##
8967 ## ------------------------------------------ ##
8968 _ASBOX
8969 ) |
8970 sed "s/^/$as_me: WARNING: /" >&2
8971 ;;
8972 esac
8973 echo "$as_me:$LINENO: checking for $ac_header" >&5
8974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 else
8978 eval "$as_ac_Header=\$ac_header_preproc"
8979 fi
8980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8982
8983 fi
8984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8985 cat >>confdefs.h <<_ACEOF
8986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8987 _ACEOF
8988
8989 fi
8990
8991 done
8992
8993
8994 for ac_header in link.h
8995 do
8996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8997 echo "$as_me:$LINENO: checking for $ac_header" >&5
8998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002 cat >conftest.$ac_ext <<_ACEOF
9003 /* confdefs.h. */
9004 _ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9008 #if HAVE_SYS_TYPES_H
9009 # include <sys/types.h>
9010 #endif
9011 #if HAVE_NLIST_H
9012 # include <nlist.h>
9013 #endif
9014
9015
9016 #include <$ac_header>
9017 _ACEOF
9018 rm -f conftest.$ac_objext
9019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9020 (eval $ac_compile) 2>conftest.er1
9021 ac_status=$?
9022 grep -v '^ *+' conftest.er1 >conftest.err
9023 rm -f conftest.er1
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } &&
9027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 (eval $ac_try) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; } &&
9033 { ac_try='test -s conftest.$ac_objext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 (eval $ac_try) 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 eval "$as_ac_Header=yes"
9040 else
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044 eval "$as_ac_Header=no"
9045 fi
9046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9047 fi
9048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9051 cat >>confdefs.h <<_ACEOF
9052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9053 _ACEOF
9054
9055 fi
9056
9057 done
9058
9059
9060 for ac_header in machine/reg.h
9061 do
9062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9064 echo "$as_me:$LINENO: checking for $ac_header" >&5
9065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 fi
9069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9071 else
9072 # Is the header compilable?
9073 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9075 cat >conftest.$ac_ext <<_ACEOF
9076 /* confdefs.h. */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081 $ac_includes_default
9082 #include <$ac_header>
9083 _ACEOF
9084 rm -f conftest.$ac_objext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9086 (eval $ac_compile) 2>conftest.er1
9087 ac_status=$?
9088 grep -v '^ *+' conftest.er1 >conftest.err
9089 rm -f conftest.er1
9090 cat conftest.err >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } &&
9093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 (eval $ac_try) 2>&5
9096 ac_status=$?
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; } &&
9099 { ac_try='test -s conftest.$ac_objext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 ac_header_compiler=yes
9106 else
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9109
9110 ac_header_compiler=no
9111 fi
9112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9114 echo "${ECHO_T}$ac_header_compiler" >&6
9115
9116 # Is the header present?
9117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9119 cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h. */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9125 #include <$ac_header>
9126 _ACEOF
9127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } >/dev/null; then
9135 if test -s conftest.err; then
9136 ac_cpp_err=$ac_c_preproc_warn_flag
9137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9138 else
9139 ac_cpp_err=
9140 fi
9141 else
9142 ac_cpp_err=yes
9143 fi
9144 if test -z "$ac_cpp_err"; then
9145 ac_header_preproc=yes
9146 else
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 ac_header_preproc=no
9151 fi
9152 rm -f conftest.err conftest.$ac_ext
9153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9154 echo "${ECHO_T}$ac_header_preproc" >&6
9155
9156 # So? What about this header?
9157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9158 yes:no: )
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9163 ac_header_preproc=yes
9164 ;;
9165 no:yes:* )
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9178 (
9179 cat <<\_ASBOX
9180 ## ------------------------------------------ ##
9181 ## Report this to the AC_PACKAGE_NAME lists. ##
9182 ## ------------------------------------------ ##
9183 _ASBOX
9184 ) |
9185 sed "s/^/$as_me: WARNING: /" >&2
9186 ;;
9187 esac
9188 echo "$as_me:$LINENO: checking for $ac_header" >&5
9189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193 eval "$as_ac_Header=\$ac_header_preproc"
9194 fi
9195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9197
9198 fi
9199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9200 cat >>confdefs.h <<_ACEOF
9201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9202 _ACEOF
9203
9204 fi
9205
9206 done
9207
9208
9209
9210 for ac_header in poll.h sys/poll.h
9211 do
9212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9214 echo "$as_me:$LINENO: checking for $ac_header" >&5
9215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 fi
9219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9221 else
9222 # Is the header compilable?
9223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9225 cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h. */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 $ac_includes_default
9232 #include <$ac_header>
9233 _ACEOF
9234 rm -f conftest.$ac_objext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9236 (eval $ac_compile) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try='test -s conftest.$ac_objext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 ac_header_compiler=yes
9256 else
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9259
9260 ac_header_compiler=no
9261 fi
9262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9264 echo "${ECHO_T}$ac_header_compiler" >&6
9265
9266 # Is the header present?
9267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 #include <$ac_header>
9276 _ACEOF
9277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9279 ac_status=$?
9280 grep -v '^ *+' conftest.er1 >conftest.err
9281 rm -f conftest.er1
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } >/dev/null; then
9285 if test -s conftest.err; then
9286 ac_cpp_err=$ac_c_preproc_warn_flag
9287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9288 else
9289 ac_cpp_err=
9290 fi
9291 else
9292 ac_cpp_err=yes
9293 fi
9294 if test -z "$ac_cpp_err"; then
9295 ac_header_preproc=yes
9296 else
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300 ac_header_preproc=no
9301 fi
9302 rm -f conftest.err conftest.$ac_ext
9303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9304 echo "${ECHO_T}$ac_header_preproc" >&6
9305
9306 # So? What about this header?
9307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9308 yes:no: )
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9313 ac_header_preproc=yes
9314 ;;
9315 no:yes:* )
9316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9328 (
9329 cat <<\_ASBOX
9330 ## ------------------------------------------ ##
9331 ## Report this to the AC_PACKAGE_NAME lists. ##
9332 ## ------------------------------------------ ##
9333 _ASBOX
9334 ) |
9335 sed "s/^/$as_me: WARNING: /" >&2
9336 ;;
9337 esac
9338 echo "$as_me:$LINENO: checking for $ac_header" >&5
9339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343 eval "$as_ac_Header=\$ac_header_preproc"
9344 fi
9345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9347
9348 fi
9349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9350 cat >>confdefs.h <<_ACEOF
9351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9352 _ACEOF
9353
9354 fi
9355
9356 done
9357
9358
9359
9360
9361 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9362 do
9363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9365 echo "$as_me:$LINENO: checking for $ac_header" >&5
9366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 fi
9370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9372 else
9373 # Is the header compilable?
9374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9376 cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h. */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 $ac_includes_default
9383 #include <$ac_header>
9384 _ACEOF
9385 rm -f conftest.$ac_objext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9387 (eval $ac_compile) 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_header_compiler=yes
9407 else
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9410
9411 ac_header_compiler=no
9412 fi
9413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9415 echo "${ECHO_T}$ac_header_compiler" >&6
9416
9417 # Is the header present?
9418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h. */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426 #include <$ac_header>
9427 _ACEOF
9428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } >/dev/null; then
9436 if test -s conftest.err; then
9437 ac_cpp_err=$ac_c_preproc_warn_flag
9438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9439 else
9440 ac_cpp_err=
9441 fi
9442 else
9443 ac_cpp_err=yes
9444 fi
9445 if test -z "$ac_cpp_err"; then
9446 ac_header_preproc=yes
9447 else
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451 ac_header_preproc=no
9452 fi
9453 rm -f conftest.err conftest.$ac_ext
9454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9455 echo "${ECHO_T}$ac_header_preproc" >&6
9456
9457 # So? What about this header?
9458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9459 yes:no: )
9460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9464 ac_header_preproc=yes
9465 ;;
9466 no:yes:* )
9467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9479 (
9480 cat <<\_ASBOX
9481 ## ------------------------------------------ ##
9482 ## Report this to the AC_PACKAGE_NAME lists. ##
9483 ## ------------------------------------------ ##
9484 _ASBOX
9485 ) |
9486 sed "s/^/$as_me: WARNING: /" >&2
9487 ;;
9488 esac
9489 echo "$as_me:$LINENO: checking for $ac_header" >&5
9490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494 eval "$as_ac_Header=\$ac_header_preproc"
9495 fi
9496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9498
9499 fi
9500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9501 cat >>confdefs.h <<_ACEOF
9502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9503 _ACEOF
9504
9505 fi
9506
9507 done
9508
9509
9510 for ac_header in stddef.h
9511 do
9512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9514 echo "$as_me:$LINENO: checking for $ac_header" >&5
9515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 fi
9519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9521 else
9522 # Is the header compilable?
9523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h. */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 $ac_includes_default
9532 #include <$ac_header>
9533 _ACEOF
9534 rm -f conftest.$ac_objext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9536 (eval $ac_compile) 2>conftest.er1
9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; } &&
9549 { ac_try='test -s conftest.$ac_objext'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 (eval $ac_try) 2>&5
9552 ac_status=$?
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; }; then
9555 ac_header_compiler=yes
9556 else
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560 ac_header_compiler=no
9561 fi
9562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9564 echo "${ECHO_T}$ac_header_compiler" >&6
9565
9566 # Is the header present?
9567 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9569 cat >conftest.$ac_ext <<_ACEOF
9570 /* confdefs.h. */
9571 _ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9575 #include <$ac_header>
9576 _ACEOF
9577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9579 ac_status=$?
9580 grep -v '^ *+' conftest.er1 >conftest.err
9581 rm -f conftest.er1
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } >/dev/null; then
9585 if test -s conftest.err; then
9586 ac_cpp_err=$ac_c_preproc_warn_flag
9587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9588 else
9589 ac_cpp_err=
9590 fi
9591 else
9592 ac_cpp_err=yes
9593 fi
9594 if test -z "$ac_cpp_err"; then
9595 ac_header_preproc=yes
9596 else
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 ac_header_preproc=no
9601 fi
9602 rm -f conftest.err conftest.$ac_ext
9603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9604 echo "${ECHO_T}$ac_header_preproc" >&6
9605
9606 # So? What about this header?
9607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9608 yes:no: )
9609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9613 ac_header_preproc=yes
9614 ;;
9615 no:yes:* )
9616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9628 (
9629 cat <<\_ASBOX
9630 ## ------------------------------------------ ##
9631 ## Report this to the AC_PACKAGE_NAME lists. ##
9632 ## ------------------------------------------ ##
9633 _ASBOX
9634 ) |
9635 sed "s/^/$as_me: WARNING: /" >&2
9636 ;;
9637 esac
9638 echo "$as_me:$LINENO: checking for $ac_header" >&5
9639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643 eval "$as_ac_Header=\$ac_header_preproc"
9644 fi
9645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9647
9648 fi
9649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9650 cat >>confdefs.h <<_ACEOF
9651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9652 _ACEOF
9653
9654 fi
9655
9656 done
9657
9658
9659 for ac_header in stdlib.h
9660 do
9661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9663 echo "$as_me:$LINENO: checking for $ac_header" >&5
9664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 fi
9668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9670 else
9671 # Is the header compilable?
9672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h. */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 $ac_includes_default
9681 #include <$ac_header>
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>conftest.er1
9686 ac_status=$?
9687 grep -v '^ *+' conftest.er1 >conftest.err
9688 rm -f conftest.er1
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 (eval $ac_try) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; } &&
9698 { ac_try='test -s conftest.$ac_objext'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 (eval $ac_try) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_header_compiler=yes
9705 else
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709 ac_header_compiler=no
9710 fi
9711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9713 echo "${ECHO_T}$ac_header_compiler" >&6
9714
9715 # Is the header present?
9716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9718 cat >conftest.$ac_ext <<_ACEOF
9719 /* confdefs.h. */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9724 #include <$ac_header>
9725 _ACEOF
9726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } >/dev/null; then
9734 if test -s conftest.err; then
9735 ac_cpp_err=$ac_c_preproc_warn_flag
9736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9737 else
9738 ac_cpp_err=
9739 fi
9740 else
9741 ac_cpp_err=yes
9742 fi
9743 if test -z "$ac_cpp_err"; then
9744 ac_header_preproc=yes
9745 else
9746 echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9748
9749 ac_header_preproc=no
9750 fi
9751 rm -f conftest.err conftest.$ac_ext
9752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9753 echo "${ECHO_T}$ac_header_preproc" >&6
9754
9755 # So? What about this header?
9756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9757 yes:no: )
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9762 ac_header_preproc=yes
9763 ;;
9764 no:yes:* )
9765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9777 (
9778 cat <<\_ASBOX
9779 ## ------------------------------------------ ##
9780 ## Report this to the AC_PACKAGE_NAME lists. ##
9781 ## ------------------------------------------ ##
9782 _ASBOX
9783 ) |
9784 sed "s/^/$as_me: WARNING: /" >&2
9785 ;;
9786 esac
9787 echo "$as_me:$LINENO: checking for $ac_header" >&5
9788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792 eval "$as_ac_Header=\$ac_header_preproc"
9793 fi
9794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9796
9797 fi
9798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9799 cat >>confdefs.h <<_ACEOF
9800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9801 _ACEOF
9802
9803 fi
9804
9805 done
9806
9807
9808 for ac_header in stdint.h
9809 do
9810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9812 echo "$as_me:$LINENO: checking for $ac_header" >&5
9813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 fi
9817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9819 else
9820 # Is the header compilable?
9821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h. */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 $ac_includes_default
9830 #include <$ac_header>
9831 _ACEOF
9832 rm -f conftest.$ac_objext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834 (eval $ac_compile) 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest.$ac_objext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_header_compiler=yes
9854 else
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9857
9858 ac_header_compiler=no
9859 fi
9860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9862 echo "${ECHO_T}$ac_header_compiler" >&6
9863
9864 # Is the header present?
9865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h. */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 #include <$ac_header>
9874 _ACEOF
9875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } >/dev/null; then
9883 if test -s conftest.err; then
9884 ac_cpp_err=$ac_c_preproc_warn_flag
9885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9886 else
9887 ac_cpp_err=
9888 fi
9889 else
9890 ac_cpp_err=yes
9891 fi
9892 if test -z "$ac_cpp_err"; then
9893 ac_header_preproc=yes
9894 else
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_header_preproc=no
9899 fi
9900 rm -f conftest.err conftest.$ac_ext
9901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9902 echo "${ECHO_T}$ac_header_preproc" >&6
9903
9904 # So? What about this header?
9905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9906 yes:no: )
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9911 ac_header_preproc=yes
9912 ;;
9913 no:yes:* )
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9926 (
9927 cat <<\_ASBOX
9928 ## ------------------------------------------ ##
9929 ## Report this to the AC_PACKAGE_NAME lists. ##
9930 ## ------------------------------------------ ##
9931 _ASBOX
9932 ) |
9933 sed "s/^/$as_me: WARNING: /" >&2
9934 ;;
9935 esac
9936 echo "$as_me:$LINENO: checking for $ac_header" >&5
9937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941 eval "$as_ac_Header=\$ac_header_preproc"
9942 fi
9943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9945
9946 fi
9947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9948 cat >>confdefs.h <<_ACEOF
9949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9950 _ACEOF
9951
9952 fi
9953
9954 done
9955
9956
9957
9958
9959 for ac_header in string.h memory.h strings.h
9960 do
9961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9963 echo "$as_me:$LINENO: checking for $ac_header" >&5
9964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 fi
9968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9970 else
9971 # Is the header compilable?
9972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9974 cat >conftest.$ac_ext <<_ACEOF
9975 /* confdefs.h. */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9980 $ac_includes_default
9981 #include <$ac_header>
9982 _ACEOF
9983 rm -f conftest.$ac_objext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9985 (eval $ac_compile) 2>conftest.er1
9986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 (eval $ac_try) 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest.$ac_objext'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10004 ac_header_compiler=yes
10005 else
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009 ac_header_compiler=no
10010 fi
10011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10013 echo "${ECHO_T}$ac_header_compiler" >&6
10014
10015 # Is the header present?
10016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 #include <$ac_header>
10025 _ACEOF
10026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } >/dev/null; then
10034 if test -s conftest.err; then
10035 ac_cpp_err=$ac_c_preproc_warn_flag
10036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10037 else
10038 ac_cpp_err=
10039 fi
10040 else
10041 ac_cpp_err=yes
10042 fi
10043 if test -z "$ac_cpp_err"; then
10044 ac_header_preproc=yes
10045 else
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049 ac_header_preproc=no
10050 fi
10051 rm -f conftest.err conftest.$ac_ext
10052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10053 echo "${ECHO_T}$ac_header_preproc" >&6
10054
10055 # So? What about this header?
10056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10057 yes:no: )
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10062 ac_header_preproc=yes
10063 ;;
10064 no:yes:* )
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10077 (
10078 cat <<\_ASBOX
10079 ## ------------------------------------------ ##
10080 ## Report this to the AC_PACKAGE_NAME lists. ##
10081 ## ------------------------------------------ ##
10082 _ASBOX
10083 ) |
10084 sed "s/^/$as_me: WARNING: /" >&2
10085 ;;
10086 esac
10087 echo "$as_me:$LINENO: checking for $ac_header" >&5
10088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092 eval "$as_ac_Header=\$ac_header_preproc"
10093 fi
10094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10096
10097 fi
10098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10099 cat >>confdefs.h <<_ACEOF
10100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10101 _ACEOF
10102
10103 fi
10104
10105 done
10106
10107
10108 for ac_header in sys/fault.h
10109 do
10110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10112 echo "$as_me:$LINENO: checking for $ac_header" >&5
10113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 fi
10117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10119 else
10120 # Is the header compilable?
10121 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10123 cat >conftest.$ac_ext <<_ACEOF
10124 /* confdefs.h. */
10125 _ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10129 $ac_includes_default
10130 #include <$ac_header>
10131 _ACEOF
10132 rm -f conftest.$ac_objext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10134 (eval $ac_compile) 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try='test -s conftest.$ac_objext'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_header_compiler=yes
10154 else
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 ac_header_compiler=no
10159 fi
10160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10162 echo "${ECHO_T}$ac_header_compiler" >&6
10163
10164 # Is the header present?
10165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10167 cat >conftest.$ac_ext <<_ACEOF
10168 /* confdefs.h. */
10169 _ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h. */
10173 #include <$ac_header>
10174 _ACEOF
10175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } >/dev/null; then
10183 if test -s conftest.err; then
10184 ac_cpp_err=$ac_c_preproc_warn_flag
10185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10186 else
10187 ac_cpp_err=
10188 fi
10189 else
10190 ac_cpp_err=yes
10191 fi
10192 if test -z "$ac_cpp_err"; then
10193 ac_header_preproc=yes
10194 else
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10197
10198 ac_header_preproc=no
10199 fi
10200 rm -f conftest.err conftest.$ac_ext
10201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10202 echo "${ECHO_T}$ac_header_preproc" >&6
10203
10204 # So? What about this header?
10205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10206 yes:no: )
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10211 ac_header_preproc=yes
10212 ;;
10213 no:yes:* )
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10226 (
10227 cat <<\_ASBOX
10228 ## ------------------------------------------ ##
10229 ## Report this to the AC_PACKAGE_NAME lists. ##
10230 ## ------------------------------------------ ##
10231 _ASBOX
10232 ) |
10233 sed "s/^/$as_me: WARNING: /" >&2
10234 ;;
10235 esac
10236 echo "$as_me:$LINENO: checking for $ac_header" >&5
10237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241 eval "$as_ac_Header=\$ac_header_preproc"
10242 fi
10243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10245
10246 fi
10247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10248 cat >>confdefs.h <<_ACEOF
10249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10250 _ACEOF
10251
10252 fi
10253
10254 done
10255
10256
10257 for ac_header in sys/file.h
10258 do
10259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10261 echo "$as_me:$LINENO: checking for $ac_header" >&5
10262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 fi
10266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10268 else
10269 # Is the header compilable?
10270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 $ac_includes_default
10279 #include <$ac_header>
10280 _ACEOF
10281 rm -f conftest.$ac_objext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283 (eval $ac_compile) 2>conftest.er1
10284 ac_status=$?
10285 grep -v '^ *+' conftest.er1 >conftest.err
10286 rm -f conftest.er1
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; } &&
10296 { ac_try='test -s conftest.$ac_objext'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10302 ac_header_compiler=yes
10303 else
10304 echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10306
10307 ac_header_compiler=no
10308 fi
10309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10311 echo "${ECHO_T}$ac_header_compiler" >&6
10312
10313 # Is the header present?
10314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10316 cat >conftest.$ac_ext <<_ACEOF
10317 /* confdefs.h. */
10318 _ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10322 #include <$ac_header>
10323 _ACEOF
10324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10326 ac_status=$?
10327 grep -v '^ *+' conftest.er1 >conftest.err
10328 rm -f conftest.er1
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } >/dev/null; then
10332 if test -s conftest.err; then
10333 ac_cpp_err=$ac_c_preproc_warn_flag
10334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10335 else
10336 ac_cpp_err=
10337 fi
10338 else
10339 ac_cpp_err=yes
10340 fi
10341 if test -z "$ac_cpp_err"; then
10342 ac_header_preproc=yes
10343 else
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347 ac_header_preproc=no
10348 fi
10349 rm -f conftest.err conftest.$ac_ext
10350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10351 echo "${ECHO_T}$ac_header_preproc" >&6
10352
10353 # So? What about this header?
10354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10355 yes:no: )
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10360 ac_header_preproc=yes
10361 ;;
10362 no:yes:* )
10363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10375 (
10376 cat <<\_ASBOX
10377 ## ------------------------------------------ ##
10378 ## Report this to the AC_PACKAGE_NAME lists. ##
10379 ## ------------------------------------------ ##
10380 _ASBOX
10381 ) |
10382 sed "s/^/$as_me: WARNING: /" >&2
10383 ;;
10384 esac
10385 echo "$as_me:$LINENO: checking for $ac_header" >&5
10386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 else
10390 eval "$as_ac_Header=\$ac_header_preproc"
10391 fi
10392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10394
10395 fi
10396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10397 cat >>confdefs.h <<_ACEOF
10398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10399 _ACEOF
10400
10401 fi
10402
10403 done
10404
10405
10406 for ac_header in sys/filio.h
10407 do
10408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10410 echo "$as_me:$LINENO: checking for $ac_header" >&5
10411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 fi
10415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10417 else
10418 # Is the header compilable?
10419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10421 cat >conftest.$ac_ext <<_ACEOF
10422 /* confdefs.h. */
10423 _ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10427 $ac_includes_default
10428 #include <$ac_header>
10429 _ACEOF
10430 rm -f conftest.$ac_objext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10432 (eval $ac_compile) 2>conftest.er1
10433 ac_status=$?
10434 grep -v '^ *+' conftest.er1 >conftest.err
10435 rm -f conftest.er1
10436 cat conftest.err >&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } &&
10439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; } &&
10445 { ac_try='test -s conftest.$ac_objext'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 ac_header_compiler=yes
10452 else
10453 echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10455
10456 ac_header_compiler=no
10457 fi
10458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10460 echo "${ECHO_T}$ac_header_compiler" >&6
10461
10462 # Is the header present?
10463 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 #include <$ac_header>
10472 _ACEOF
10473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } >/dev/null; then
10481 if test -s conftest.err; then
10482 ac_cpp_err=$ac_c_preproc_warn_flag
10483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10484 else
10485 ac_cpp_err=
10486 fi
10487 else
10488 ac_cpp_err=yes
10489 fi
10490 if test -z "$ac_cpp_err"; then
10491 ac_header_preproc=yes
10492 else
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10495
10496 ac_header_preproc=no
10497 fi
10498 rm -f conftest.err conftest.$ac_ext
10499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10500 echo "${ECHO_T}$ac_header_preproc" >&6
10501
10502 # So? What about this header?
10503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10504 yes:no: )
10505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10509 ac_header_preproc=yes
10510 ;;
10511 no:yes:* )
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10524 (
10525 cat <<\_ASBOX
10526 ## ------------------------------------------ ##
10527 ## Report this to the AC_PACKAGE_NAME lists. ##
10528 ## ------------------------------------------ ##
10529 _ASBOX
10530 ) |
10531 sed "s/^/$as_me: WARNING: /" >&2
10532 ;;
10533 esac
10534 echo "$as_me:$LINENO: checking for $ac_header" >&5
10535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539 eval "$as_ac_Header=\$ac_header_preproc"
10540 fi
10541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10543
10544 fi
10545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10546 cat >>confdefs.h <<_ACEOF
10547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10548 _ACEOF
10549
10550 fi
10551
10552 done
10553
10554
10555 for ac_header in sys/ioctl.h
10556 do
10557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10559 echo "$as_me:$LINENO: checking for $ac_header" >&5
10560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 fi
10564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10566 else
10567 # Is the header compilable?
10568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10570 cat >conftest.$ac_ext <<_ACEOF
10571 /* confdefs.h. */
10572 _ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 $ac_includes_default
10577 #include <$ac_header>
10578 _ACEOF
10579 rm -f conftest.$ac_objext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10581 (eval $ac_compile) 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
10588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; } &&
10594 { ac_try='test -s conftest.$ac_objext'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
10600 ac_header_compiler=yes
10601 else
10602 echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10604
10605 ac_header_compiler=no
10606 fi
10607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10609 echo "${ECHO_T}$ac_header_compiler" >&6
10610
10611 # Is the header present?
10612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10614 cat >conftest.$ac_ext <<_ACEOF
10615 /* confdefs.h. */
10616 _ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 #include <$ac_header>
10621 _ACEOF
10622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10624 ac_status=$?
10625 grep -v '^ *+' conftest.er1 >conftest.err
10626 rm -f conftest.er1
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } >/dev/null; then
10630 if test -s conftest.err; then
10631 ac_cpp_err=$ac_c_preproc_warn_flag
10632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10633 else
10634 ac_cpp_err=
10635 fi
10636 else
10637 ac_cpp_err=yes
10638 fi
10639 if test -z "$ac_cpp_err"; then
10640 ac_header_preproc=yes
10641 else
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10644
10645 ac_header_preproc=no
10646 fi
10647 rm -f conftest.err conftest.$ac_ext
10648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10649 echo "${ECHO_T}$ac_header_preproc" >&6
10650
10651 # So? What about this header?
10652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10653 yes:no: )
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10658 ac_header_preproc=yes
10659 ;;
10660 no:yes:* )
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10673 (
10674 cat <<\_ASBOX
10675 ## ------------------------------------------ ##
10676 ## Report this to the AC_PACKAGE_NAME lists. ##
10677 ## ------------------------------------------ ##
10678 _ASBOX
10679 ) |
10680 sed "s/^/$as_me: WARNING: /" >&2
10681 ;;
10682 esac
10683 echo "$as_me:$LINENO: checking for $ac_header" >&5
10684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688 eval "$as_ac_Header=\$ac_header_preproc"
10689 fi
10690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10692
10693 fi
10694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10695 cat >>confdefs.h <<_ACEOF
10696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10697 _ACEOF
10698
10699 fi
10700
10701 done
10702
10703
10704 for ac_header in sys/param.h
10705 do
10706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10708 echo "$as_me:$LINENO: checking for $ac_header" >&5
10709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 fi
10713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10715 else
10716 # Is the header compilable?
10717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h. */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 $ac_includes_default
10726 #include <$ac_header>
10727 _ACEOF
10728 rm -f conftest.$ac_objext
10729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10730 (eval $ac_compile) 2>conftest.er1
10731 ac_status=$?
10732 grep -v '^ *+' conftest.er1 >conftest.err
10733 rm -f conftest.er1
10734 cat conftest.err >&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } &&
10737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try='test -s conftest.$ac_objext'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10746 ac_status=$?
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
10749 ac_header_compiler=yes
10750 else
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10753
10754 ac_header_compiler=no
10755 fi
10756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10758 echo "${ECHO_T}$ac_header_compiler" >&6
10759
10760 # Is the header present?
10761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 #include <$ac_header>
10770 _ACEOF
10771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } >/dev/null; then
10779 if test -s conftest.err; then
10780 ac_cpp_err=$ac_c_preproc_warn_flag
10781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10782 else
10783 ac_cpp_err=
10784 fi
10785 else
10786 ac_cpp_err=yes
10787 fi
10788 if test -z "$ac_cpp_err"; then
10789 ac_header_preproc=yes
10790 else
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10793
10794 ac_header_preproc=no
10795 fi
10796 rm -f conftest.err conftest.$ac_ext
10797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10798 echo "${ECHO_T}$ac_header_preproc" >&6
10799
10800 # So? What about this header?
10801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10802 yes:no: )
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10807 ac_header_preproc=yes
10808 ;;
10809 no:yes:* )
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10822 (
10823 cat <<\_ASBOX
10824 ## ------------------------------------------ ##
10825 ## Report this to the AC_PACKAGE_NAME lists. ##
10826 ## ------------------------------------------ ##
10827 _ASBOX
10828 ) |
10829 sed "s/^/$as_me: WARNING: /" >&2
10830 ;;
10831 esac
10832 echo "$as_me:$LINENO: checking for $ac_header" >&5
10833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 else
10837 eval "$as_ac_Header=\$ac_header_preproc"
10838 fi
10839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10841
10842 fi
10843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10844 cat >>confdefs.h <<_ACEOF
10845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10846 _ACEOF
10847
10848 fi
10849
10850 done
10851
10852
10853 for ac_header in sys/proc.h
10854 do
10855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10856 echo "$as_me:$LINENO: checking for $ac_header" >&5
10857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861 cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h. */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10867 #if HAVE_SYS_PARAM_H
10868 # include <sys/param.h>
10869 #endif
10870
10871
10872 #include <$ac_header>
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 (eval $ac_compile) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; } &&
10889 { ac_try='test -s conftest.$ac_objext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 eval "$as_ac_Header=yes"
10896 else
10897 echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10899
10900 eval "$as_ac_Header=no"
10901 fi
10902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10903 fi
10904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10907 cat >>confdefs.h <<_ACEOF
10908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10909 _ACEOF
10910
10911 fi
10912
10913 done
10914
10915
10916 for ac_header in sys/procfs.h
10917 do
10918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10920 echo "$as_me:$LINENO: checking for $ac_header" >&5
10921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 fi
10925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10927 else
10928 # Is the header compilable?
10929 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10931 cat >conftest.$ac_ext <<_ACEOF
10932 /* confdefs.h. */
10933 _ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10937 $ac_includes_default
10938 #include <$ac_header>
10939 _ACEOF
10940 rm -f conftest.$ac_objext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10942 (eval $ac_compile) 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest.$ac_objext'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_header_compiler=yes
10962 else
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10965
10966 ac_header_compiler=no
10967 fi
10968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10970 echo "${ECHO_T}$ac_header_compiler" >&6
10971
10972 # Is the header present?
10973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10975 cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h. */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 #include <$ac_header>
10982 _ACEOF
10983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } >/dev/null; then
10991 if test -s conftest.err; then
10992 ac_cpp_err=$ac_c_preproc_warn_flag
10993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10994 else
10995 ac_cpp_err=
10996 fi
10997 else
10998 ac_cpp_err=yes
10999 fi
11000 if test -z "$ac_cpp_err"; then
11001 ac_header_preproc=yes
11002 else
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11005
11006 ac_header_preproc=no
11007 fi
11008 rm -f conftest.err conftest.$ac_ext
11009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11010 echo "${ECHO_T}$ac_header_preproc" >&6
11011
11012 # So? What about this header?
11013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11014 yes:no: )
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11019 ac_header_preproc=yes
11020 ;;
11021 no:yes:* )
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11034 (
11035 cat <<\_ASBOX
11036 ## ------------------------------------------ ##
11037 ## Report this to the AC_PACKAGE_NAME lists. ##
11038 ## ------------------------------------------ ##
11039 _ASBOX
11040 ) |
11041 sed "s/^/$as_me: WARNING: /" >&2
11042 ;;
11043 esac
11044 echo "$as_me:$LINENO: checking for $ac_header" >&5
11045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049 eval "$as_ac_Header=\$ac_header_preproc"
11050 fi
11051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11053
11054 fi
11055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11056 cat >>confdefs.h <<_ACEOF
11057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11058 _ACEOF
11059
11060 fi
11061
11062 done
11063
11064
11065
11066 for ac_header in sys/ptrace.h ptrace.h
11067 do
11068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11070 echo "$as_me:$LINENO: checking for $ac_header" >&5
11071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 fi
11075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11077 else
11078 # Is the header compilable?
11079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11081 cat >conftest.$ac_ext <<_ACEOF
11082 /* confdefs.h. */
11083 _ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 $ac_includes_default
11088 #include <$ac_header>
11089 _ACEOF
11090 rm -f conftest.$ac_objext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11092 (eval $ac_compile) 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11105 { ac_try='test -s conftest.$ac_objext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 ac_header_compiler=yes
11112 else
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11115
11116 ac_header_compiler=no
11117 fi
11118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11120 echo "${ECHO_T}$ac_header_compiler" >&6
11121
11122 # Is the header present?
11123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11125 cat >conftest.$ac_ext <<_ACEOF
11126 /* confdefs.h. */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 #include <$ac_header>
11132 _ACEOF
11133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11135 ac_status=$?
11136 grep -v '^ *+' conftest.er1 >conftest.err
11137 rm -f conftest.er1
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } >/dev/null; then
11141 if test -s conftest.err; then
11142 ac_cpp_err=$ac_c_preproc_warn_flag
11143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11144 else
11145 ac_cpp_err=
11146 fi
11147 else
11148 ac_cpp_err=yes
11149 fi
11150 if test -z "$ac_cpp_err"; then
11151 ac_header_preproc=yes
11152 else
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156 ac_header_preproc=no
11157 fi
11158 rm -f conftest.err conftest.$ac_ext
11159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11160 echo "${ECHO_T}$ac_header_preproc" >&6
11161
11162 # So? What about this header?
11163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11164 yes:no: )
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11169 ac_header_preproc=yes
11170 ;;
11171 no:yes:* )
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11184 (
11185 cat <<\_ASBOX
11186 ## ------------------------------------------ ##
11187 ## Report this to the AC_PACKAGE_NAME lists. ##
11188 ## ------------------------------------------ ##
11189 _ASBOX
11190 ) |
11191 sed "s/^/$as_me: WARNING: /" >&2
11192 ;;
11193 esac
11194 echo "$as_me:$LINENO: checking for $ac_header" >&5
11195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199 eval "$as_ac_Header=\$ac_header_preproc"
11200 fi
11201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11203
11204 fi
11205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11208 _ACEOF
11209
11210 fi
11211
11212 done
11213
11214
11215
11216 for ac_header in sys/reg.h sys/debugreg.h
11217 do
11218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11220 echo "$as_me:$LINENO: checking for $ac_header" >&5
11221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 fi
11225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11227 else
11228 # Is the header compilable?
11229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11231 cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h. */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 $ac_includes_default
11238 #include <$ac_header>
11239 _ACEOF
11240 rm -f conftest.$ac_objext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11242 (eval $ac_compile) 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest.$ac_objext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 ac_header_compiler=yes
11262 else
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11265
11266 ac_header_compiler=no
11267 fi
11268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11270 echo "${ECHO_T}$ac_header_compiler" >&6
11271
11272 # Is the header present?
11273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h. */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 #include <$ac_header>
11282 _ACEOF
11283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11285 ac_status=$?
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } >/dev/null; then
11291 if test -s conftest.err; then
11292 ac_cpp_err=$ac_c_preproc_warn_flag
11293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11294 else
11295 ac_cpp_err=
11296 fi
11297 else
11298 ac_cpp_err=yes
11299 fi
11300 if test -z "$ac_cpp_err"; then
11301 ac_header_preproc=yes
11302 else
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306 ac_header_preproc=no
11307 fi
11308 rm -f conftest.err conftest.$ac_ext
11309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11310 echo "${ECHO_T}$ac_header_preproc" >&6
11311
11312 # So? What about this header?
11313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11314 yes:no: )
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11319 ac_header_preproc=yes
11320 ;;
11321 no:yes:* )
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11334 (
11335 cat <<\_ASBOX
11336 ## ------------------------------------------ ##
11337 ## Report this to the AC_PACKAGE_NAME lists. ##
11338 ## ------------------------------------------ ##
11339 _ASBOX
11340 ) |
11341 sed "s/^/$as_me: WARNING: /" >&2
11342 ;;
11343 esac
11344 echo "$as_me:$LINENO: checking for $ac_header" >&5
11345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349 eval "$as_ac_Header=\$ac_header_preproc"
11350 fi
11351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11353
11354 fi
11355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11356 cat >>confdefs.h <<_ACEOF
11357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11358 _ACEOF
11359
11360 fi
11361
11362 done
11363
11364
11365 for ac_header in sys/select.h
11366 do
11367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11369 echo "$as_me:$LINENO: checking for $ac_header" >&5
11370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 fi
11374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11376 else
11377 # Is the header compilable?
11378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h. */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11386 $ac_includes_default
11387 #include <$ac_header>
11388 _ACEOF
11389 rm -f conftest.$ac_objext
11390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11391 (eval $ac_compile) 2>conftest.er1
11392 ac_status=$?
11393 grep -v '^ *+' conftest.er1 >conftest.err
11394 rm -f conftest.er1
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try='test -s conftest.$ac_objext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_header_compiler=yes
11411 else
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11414
11415 ac_header_compiler=no
11416 fi
11417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419 echo "${ECHO_T}$ac_header_compiler" >&6
11420
11421 # Is the header present?
11422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 #include <$ac_header>
11431 _ACEOF
11432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } >/dev/null; then
11440 if test -s conftest.err; then
11441 ac_cpp_err=$ac_c_preproc_warn_flag
11442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11443 else
11444 ac_cpp_err=
11445 fi
11446 else
11447 ac_cpp_err=yes
11448 fi
11449 if test -z "$ac_cpp_err"; then
11450 ac_header_preproc=yes
11451 else
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11454
11455 ac_header_preproc=no
11456 fi
11457 rm -f conftest.err conftest.$ac_ext
11458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11459 echo "${ECHO_T}$ac_header_preproc" >&6
11460
11461 # So? What about this header?
11462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11463 yes:no: )
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11468 ac_header_preproc=yes
11469 ;;
11470 no:yes:* )
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11483 (
11484 cat <<\_ASBOX
11485 ## ------------------------------------------ ##
11486 ## Report this to the AC_PACKAGE_NAME lists. ##
11487 ## ------------------------------------------ ##
11488 _ASBOX
11489 ) |
11490 sed "s/^/$as_me: WARNING: /" >&2
11491 ;;
11492 esac
11493 echo "$as_me:$LINENO: checking for $ac_header" >&5
11494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498 eval "$as_ac_Header=\$ac_header_preproc"
11499 fi
11500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11502
11503 fi
11504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11505 cat >>confdefs.h <<_ACEOF
11506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11507 _ACEOF
11508
11509 fi
11510
11511 done
11512
11513
11514 for ac_header in sys/syscall.h
11515 do
11516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11518 echo "$as_me:$LINENO: checking for $ac_header" >&5
11519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 fi
11523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11525 else
11526 # Is the header compilable?
11527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11529 cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h. */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 $ac_includes_default
11536 #include <$ac_header>
11537 _ACEOF
11538 rm -f conftest.$ac_objext
11539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11540 (eval $ac_compile) 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
11547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; } &&
11553 { ac_try='test -s conftest.$ac_objext'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 ac_header_compiler=yes
11560 else
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11563
11564 ac_header_compiler=no
11565 fi
11566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11568 echo "${ECHO_T}$ac_header_compiler" >&6
11569
11570 # Is the header present?
11571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 #include <$ac_header>
11580 _ACEOF
11581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } >/dev/null; then
11589 if test -s conftest.err; then
11590 ac_cpp_err=$ac_c_preproc_warn_flag
11591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11592 else
11593 ac_cpp_err=
11594 fi
11595 else
11596 ac_cpp_err=yes
11597 fi
11598 if test -z "$ac_cpp_err"; then
11599 ac_header_preproc=yes
11600 else
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11603
11604 ac_header_preproc=no
11605 fi
11606 rm -f conftest.err conftest.$ac_ext
11607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608 echo "${ECHO_T}$ac_header_preproc" >&6
11609
11610 # So? What about this header?
11611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612 yes:no: )
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617 ac_header_preproc=yes
11618 ;;
11619 no:yes:* )
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11632 (
11633 cat <<\_ASBOX
11634 ## ------------------------------------------ ##
11635 ## Report this to the AC_PACKAGE_NAME lists. ##
11636 ## ------------------------------------------ ##
11637 _ASBOX
11638 ) |
11639 sed "s/^/$as_me: WARNING: /" >&2
11640 ;;
11641 esac
11642 echo "$as_me:$LINENO: checking for $ac_header" >&5
11643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647 eval "$as_ac_Header=\$ac_header_preproc"
11648 fi
11649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11651
11652 fi
11653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11654 cat >>confdefs.h <<_ACEOF
11655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11656 _ACEOF
11657
11658 fi
11659
11660 done
11661
11662
11663 for ac_header in sys/types.h
11664 do
11665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11667 echo "$as_me:$LINENO: checking for $ac_header" >&5
11668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 fi
11672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11674 else
11675 # Is the header compilable?
11676 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11678 cat >conftest.$ac_ext <<_ACEOF
11679 /* confdefs.h. */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 $ac_includes_default
11685 #include <$ac_header>
11686 _ACEOF
11687 rm -f conftest.$ac_objext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11689 (eval $ac_compile) 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698 (eval $ac_try) 2>&5
11699 ac_status=$?
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; } &&
11702 { ac_try='test -s conftest.$ac_objext'
11703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704 (eval $ac_try) 2>&5
11705 ac_status=$?
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; }; then
11708 ac_header_compiler=yes
11709 else
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713 ac_header_compiler=no
11714 fi
11715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11717 echo "${ECHO_T}$ac_header_compiler" >&6
11718
11719 # Is the header present?
11720 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11722 cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h. */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728 #include <$ac_header>
11729 _ACEOF
11730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11732 ac_status=$?
11733 grep -v '^ *+' conftest.er1 >conftest.err
11734 rm -f conftest.er1
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } >/dev/null; then
11738 if test -s conftest.err; then
11739 ac_cpp_err=$ac_c_preproc_warn_flag
11740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11741 else
11742 ac_cpp_err=
11743 fi
11744 else
11745 ac_cpp_err=yes
11746 fi
11747 if test -z "$ac_cpp_err"; then
11748 ac_header_preproc=yes
11749 else
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11752
11753 ac_header_preproc=no
11754 fi
11755 rm -f conftest.err conftest.$ac_ext
11756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11757 echo "${ECHO_T}$ac_header_preproc" >&6
11758
11759 # So? What about this header?
11760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11761 yes:no: )
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11766 ac_header_preproc=yes
11767 ;;
11768 no:yes:* )
11769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11781 (
11782 cat <<\_ASBOX
11783 ## ------------------------------------------ ##
11784 ## Report this to the AC_PACKAGE_NAME lists. ##
11785 ## ------------------------------------------ ##
11786 _ASBOX
11787 ) |
11788 sed "s/^/$as_me: WARNING: /" >&2
11789 ;;
11790 esac
11791 echo "$as_me:$LINENO: checking for $ac_header" >&5
11792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796 eval "$as_ac_Header=\$ac_header_preproc"
11797 fi
11798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11800
11801 fi
11802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11803 cat >>confdefs.h <<_ACEOF
11804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11805 _ACEOF
11806
11807 fi
11808
11809 done
11810
11811
11812 for ac_header in sys/user.h
11813 do
11814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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 else
11820 cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h. */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 #if HAVE_SYS_PARAM_H
11827 # include <sys/param.h>
11828 #endif
11829
11830
11831 #include <$ac_header>
11832 _ACEOF
11833 rm -f conftest.$ac_objext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11835 (eval $ac_compile) 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 eval "$as_ac_Header=yes"
11855 else
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 eval "$as_ac_Header=no"
11860 fi
11861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11862 fi
11863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11866 cat >>confdefs.h <<_ACEOF
11867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11868 _ACEOF
11869
11870 fi
11871
11872 done
11873
11874
11875
11876 for ac_header in sys/wait.h wait.h
11877 do
11878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11880 echo "$as_me:$LINENO: checking for $ac_header" >&5
11881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 fi
11885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11887 else
11888 # Is the header compilable?
11889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h. */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 $ac_includes_default
11898 #include <$ac_header>
11899 _ACEOF
11900 rm -f conftest.$ac_objext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902 (eval $ac_compile) 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; } &&
11915 { ac_try='test -s conftest.$ac_objext'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 ac_header_compiler=yes
11922 else
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11925
11926 ac_header_compiler=no
11927 fi
11928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11930 echo "${ECHO_T}$ac_header_compiler" >&6
11931
11932 # Is the header present?
11933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11935 cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h. */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941 #include <$ac_header>
11942 _ACEOF
11943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11945 ac_status=$?
11946 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } >/dev/null; then
11951 if test -s conftest.err; then
11952 ac_cpp_err=$ac_c_preproc_warn_flag
11953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11954 else
11955 ac_cpp_err=
11956 fi
11957 else
11958 ac_cpp_err=yes
11959 fi
11960 if test -z "$ac_cpp_err"; then
11961 ac_header_preproc=yes
11962 else
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 ac_header_preproc=no
11967 fi
11968 rm -f conftest.err conftest.$ac_ext
11969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11970 echo "${ECHO_T}$ac_header_preproc" >&6
11971
11972 # So? What about this header?
11973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11974 yes:no: )
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11979 ac_header_preproc=yes
11980 ;;
11981 no:yes:* )
11982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11994 (
11995 cat <<\_ASBOX
11996 ## ------------------------------------------ ##
11997 ## Report this to the AC_PACKAGE_NAME lists. ##
11998 ## ------------------------------------------ ##
11999 _ASBOX
12000 ) |
12001 sed "s/^/$as_me: WARNING: /" >&2
12002 ;;
12003 esac
12004 echo "$as_me:$LINENO: checking for $ac_header" >&5
12005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009 eval "$as_ac_Header=\$ac_header_preproc"
12010 fi
12011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12013
12014 fi
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
12027 for ac_header in termios.h termio.h sgtty.h
12028 do
12029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12031 echo "$as_me:$LINENO: checking for $ac_header" >&5
12032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 fi
12036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12038 else
12039 # Is the header compilable?
12040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12042 cat >conftest.$ac_ext <<_ACEOF
12043 /* confdefs.h. */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 $ac_includes_default
12049 #include <$ac_header>
12050 _ACEOF
12051 rm -f conftest.$ac_objext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -z "$ac_c_werror_flag" || 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 for ac_header in unistd.h
12177 do
12178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12180 echo "$as_me:$LINENO: checking for $ac_header" >&5
12181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 fi
12185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12187 else
12188 # Is the header compilable?
12189 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 $ac_includes_default
12198 #include <$ac_header>
12199 _ACEOF
12200 rm -f conftest.$ac_objext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_header_compiler=yes
12222 else
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226 ac_header_compiler=no
12227 fi
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12230 echo "${ECHO_T}$ac_header_compiler" >&6
12231
12232 # Is the header present?
12233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h. */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 #include <$ac_header>
12242 _ACEOF
12243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } >/dev/null; then
12251 if test -s conftest.err; then
12252 ac_cpp_err=$ac_c_preproc_warn_flag
12253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12254 else
12255 ac_cpp_err=
12256 fi
12257 else
12258 ac_cpp_err=yes
12259 fi
12260 if test -z "$ac_cpp_err"; then
12261 ac_header_preproc=yes
12262 else
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12265
12266 ac_header_preproc=no
12267 fi
12268 rm -f conftest.err conftest.$ac_ext
12269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12270 echo "${ECHO_T}$ac_header_preproc" >&6
12271
12272 # So? What about this header?
12273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12274 yes:no: )
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12279 ac_header_preproc=yes
12280 ;;
12281 no:yes:* )
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12294 (
12295 cat <<\_ASBOX
12296 ## ------------------------------------------ ##
12297 ## Report this to the AC_PACKAGE_NAME lists. ##
12298 ## ------------------------------------------ ##
12299 _ASBOX
12300 ) |
12301 sed "s/^/$as_me: WARNING: /" >&2
12302 ;;
12303 esac
12304 echo "$as_me:$LINENO: checking for $ac_header" >&5
12305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309 eval "$as_ac_Header=\$ac_header_preproc"
12310 fi
12311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12313
12314 fi
12315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12318 _ACEOF
12319
12320 fi
12321
12322 done
12323
12324
12325 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12326 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12327 # think that we don't have <curses.h> if we're using GCC.
12328 case $host_os in
12329 solaris2.[789])
12330 if test "$GCC" = yes; then
12331
12332 cat >>confdefs.h <<\_ACEOF
12333 #define _MSE_INT_H 1
12334 _ACEOF
12335
12336 fi ;;
12337 esac
12338
12339
12340
12341
12342 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12343 do
12344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12346 echo "$as_me:$LINENO: checking for $ac_header" >&5
12347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 fi
12351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12353 else
12354 # Is the header compilable?
12355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12357 cat >conftest.$ac_ext <<_ACEOF
12358 /* confdefs.h. */
12359 _ACEOF
12360 cat confdefs.h >>conftest.$ac_ext
12361 cat >>conftest.$ac_ext <<_ACEOF
12362 /* end confdefs.h. */
12363 $ac_includes_default
12364 #include <$ac_header>
12365 _ACEOF
12366 rm -f conftest.$ac_objext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12368 (eval $ac_compile) 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; } &&
12381 { ac_try='test -s conftest.$ac_objext'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12387 ac_header_compiler=yes
12388 else
12389 echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.$ac_ext >&5
12391
12392 ac_header_compiler=no
12393 fi
12394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12396 echo "${ECHO_T}$ac_header_compiler" >&6
12397
12398 # Is the header present?
12399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12401 cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h. */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 #include <$ac_header>
12408 _ACEOF
12409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } >/dev/null; then
12417 if test -s conftest.err; then
12418 ac_cpp_err=$ac_c_preproc_warn_flag
12419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12420 else
12421 ac_cpp_err=
12422 fi
12423 else
12424 ac_cpp_err=yes
12425 fi
12426 if test -z "$ac_cpp_err"; then
12427 ac_header_preproc=yes
12428 else
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12431
12432 ac_header_preproc=no
12433 fi
12434 rm -f conftest.err conftest.$ac_ext
12435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12436 echo "${ECHO_T}$ac_header_preproc" >&6
12437
12438 # So? What about this header?
12439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12440 yes:no: )
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12445 ac_header_preproc=yes
12446 ;;
12447 no:yes:* )
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12460 (
12461 cat <<\_ASBOX
12462 ## ------------------------------------------ ##
12463 ## Report this to the AC_PACKAGE_NAME lists. ##
12464 ## ------------------------------------------ ##
12465 _ASBOX
12466 ) |
12467 sed "s/^/$as_me: WARNING: /" >&2
12468 ;;
12469 esac
12470 echo "$as_me:$LINENO: checking for $ac_header" >&5
12471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475 eval "$as_ac_Header=\$ac_header_preproc"
12476 fi
12477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12479
12480 fi
12481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12482 cat >>confdefs.h <<_ACEOF
12483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12484 _ACEOF
12485
12486 fi
12487
12488 done
12489
12490
12491 for ac_header in ncurses/term.h
12492 do
12493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12495 echo "$as_me:$LINENO: checking for $ac_header" >&5
12496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 fi
12500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12502 else
12503 # Is the header compilable?
12504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h. */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512 $ac_includes_default
12513 #include <$ac_header>
12514 _ACEOF
12515 rm -f conftest.$ac_objext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12517 (eval $ac_compile) 2>conftest.er1
12518 ac_status=$?
12519 grep -v '^ *+' conftest.er1 >conftest.err
12520 rm -f conftest.er1
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest.$ac_objext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 ac_header_compiler=yes
12537 else
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12540
12541 ac_header_compiler=no
12542 fi
12543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12545 echo "${ECHO_T}$ac_header_compiler" >&6
12546
12547 # Is the header present?
12548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12550 cat >conftest.$ac_ext <<_ACEOF
12551 /* confdefs.h. */
12552 _ACEOF
12553 cat confdefs.h >>conftest.$ac_ext
12554 cat >>conftest.$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12556 #include <$ac_header>
12557 _ACEOF
12558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } >/dev/null; then
12566 if test -s conftest.err; then
12567 ac_cpp_err=$ac_c_preproc_warn_flag
12568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12569 else
12570 ac_cpp_err=
12571 fi
12572 else
12573 ac_cpp_err=yes
12574 fi
12575 if test -z "$ac_cpp_err"; then
12576 ac_header_preproc=yes
12577 else
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581 ac_header_preproc=no
12582 fi
12583 rm -f conftest.err conftest.$ac_ext
12584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12585 echo "${ECHO_T}$ac_header_preproc" >&6
12586
12587 # So? What about this header?
12588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12589 yes:no: )
12590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12594 ac_header_preproc=yes
12595 ;;
12596 no:yes:* )
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12609 (
12610 cat <<\_ASBOX
12611 ## ------------------------------------------ ##
12612 ## Report this to the AC_PACKAGE_NAME lists. ##
12613 ## ------------------------------------------ ##
12614 _ASBOX
12615 ) |
12616 sed "s/^/$as_me: WARNING: /" >&2
12617 ;;
12618 esac
12619 echo "$as_me:$LINENO: checking for $ac_header" >&5
12620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 else
12624 eval "$as_ac_Header=\$ac_header_preproc"
12625 fi
12626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12628
12629 fi
12630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12631 cat >>confdefs.h <<_ACEOF
12632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12633 _ACEOF
12634
12635 fi
12636
12637 done
12638
12639
12640 for ac_header in term.h
12641 do
12642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12643 echo "$as_me:$LINENO: checking for $ac_header" >&5
12644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 else
12648 cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h. */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654 #if HAVE_CURSES_H
12655 # include <curses.h>
12656 #endif
12657
12658
12659 #include <$ac_header>
12660 _ACEOF
12661 rm -f conftest.$ac_objext
12662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; } &&
12676 { ac_try='test -s conftest.$ac_objext'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 eval "$as_ac_Header=yes"
12683 else
12684 echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12686
12687 eval "$as_ac_Header=no"
12688 fi
12689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12690 fi
12691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12694 cat >>confdefs.h <<_ACEOF
12695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12696 _ACEOF
12697
12698 fi
12699
12700 done
12701
12702
12703 # FIXME: kettenis/20030102: In most cases we include these
12704 # unconditionally, so what's the point in checking these?
12705
12706
12707 for ac_header in ctype.h time.h
12708 do
12709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12711 echo "$as_me:$LINENO: checking for $ac_header" >&5
12712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 fi
12716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12718 else
12719 # Is the header compilable?
12720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12722 cat >conftest.$ac_ext <<_ACEOF
12723 /* confdefs.h. */
12724 _ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h. */
12728 $ac_includes_default
12729 #include <$ac_header>
12730 _ACEOF
12731 rm -f conftest.$ac_objext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733 (eval $ac_compile) 2>conftest.er1
12734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } &&
12740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest.$ac_objext'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752 ac_header_compiler=yes
12753 else
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12756
12757 ac_header_compiler=no
12758 fi
12759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12761 echo "${ECHO_T}$ac_header_compiler" >&6
12762
12763 # Is the header present?
12764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12766 cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h. */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12772 #include <$ac_header>
12773 _ACEOF
12774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12776 ac_status=$?
12777 grep -v '^ *+' conftest.er1 >conftest.err
12778 rm -f conftest.er1
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } >/dev/null; then
12782 if test -s conftest.err; then
12783 ac_cpp_err=$ac_c_preproc_warn_flag
12784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12785 else
12786 ac_cpp_err=
12787 fi
12788 else
12789 ac_cpp_err=yes
12790 fi
12791 if test -z "$ac_cpp_err"; then
12792 ac_header_preproc=yes
12793 else
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797 ac_header_preproc=no
12798 fi
12799 rm -f conftest.err conftest.$ac_ext
12800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12801 echo "${ECHO_T}$ac_header_preproc" >&6
12802
12803 # So? What about this header?
12804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12805 yes:no: )
12806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12810 ac_header_preproc=yes
12811 ;;
12812 no:yes:* )
12813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12825 (
12826 cat <<\_ASBOX
12827 ## ------------------------------------------ ##
12828 ## Report this to the AC_PACKAGE_NAME lists. ##
12829 ## ------------------------------------------ ##
12830 _ASBOX
12831 ) |
12832 sed "s/^/$as_me: WARNING: /" >&2
12833 ;;
12834 esac
12835 echo "$as_me:$LINENO: checking for $ac_header" >&5
12836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840 eval "$as_ac_Header=\$ac_header_preproc"
12841 fi
12842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12844
12845 fi
12846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12847 cat >>confdefs.h <<_ACEOF
12848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12849 _ACEOF
12850
12851 fi
12852
12853 done
12854
12855
12856 # ------------------------- #
12857 # Checks for declarations. #
12858 # ------------------------- #
12859
12860 echo "$as_me:$LINENO: checking whether free is declared" >&5
12861 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12862 if test "${ac_cv_have_decl_free+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865 cat >conftest.$ac_ext <<_ACEOF
12866 /* confdefs.h. */
12867 _ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12871 $ac_includes_default
12872 int
12873 main ()
12874 {
12875 #ifndef free
12876 char *p = (char *) free;
12877 #endif
12878
12879 ;
12880 return 0;
12881 }
12882 _ACEOF
12883 rm -f conftest.$ac_objext
12884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12885 (eval $ac_compile) 2>conftest.er1
12886 ac_status=$?
12887 grep -v '^ *+' conftest.er1 >conftest.err
12888 rm -f conftest.er1
12889 cat conftest.err >&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } &&
12892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; } &&
12898 { ac_try='test -s conftest.$ac_objext'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 ac_cv_have_decl_free=yes
12905 else
12906 echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909 ac_cv_have_decl_free=no
12910 fi
12911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12912 fi
12913 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12914 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12915 if test $ac_cv_have_decl_free = yes; then
12916
12917 cat >>confdefs.h <<_ACEOF
12918 #define HAVE_DECL_FREE 1
12919 _ACEOF
12920
12921
12922 else
12923 cat >>confdefs.h <<_ACEOF
12924 #define HAVE_DECL_FREE 0
12925 _ACEOF
12926
12927
12928 fi
12929 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12930 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
12931 if test "${ac_cv_have_decl_malloc+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12933 else
12934 cat >conftest.$ac_ext <<_ACEOF
12935 /* confdefs.h. */
12936 _ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 $ac_includes_default
12941 int
12942 main ()
12943 {
12944 #ifndef malloc
12945 char *p = (char *) malloc;
12946 #endif
12947
12948 ;
12949 return 0;
12950 }
12951 _ACEOF
12952 rm -f conftest.$ac_objext
12953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12954 (eval $ac_compile) 2>conftest.er1
12955 ac_status=$?
12956 grep -v '^ *+' conftest.er1 >conftest.err
12957 rm -f conftest.er1
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_cv_have_decl_malloc=yes
12974 else
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12977
12978 ac_cv_have_decl_malloc=no
12979 fi
12980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12981 fi
12982 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12983 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
12984 if test $ac_cv_have_decl_malloc = yes; then
12985
12986 cat >>confdefs.h <<_ACEOF
12987 #define HAVE_DECL_MALLOC 1
12988 _ACEOF
12989
12990
12991 else
12992 cat >>confdefs.h <<_ACEOF
12993 #define HAVE_DECL_MALLOC 0
12994 _ACEOF
12995
12996
12997 fi
12998 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12999 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13000 if test "${ac_cv_have_decl_realloc+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003 cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h. */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 $ac_includes_default
13010 int
13011 main ()
13012 {
13013 #ifndef realloc
13014 char *p = (char *) realloc;
13015 #endif
13016
13017 ;
13018 return 0;
13019 }
13020 _ACEOF
13021 rm -f conftest.$ac_objext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13023 (eval $ac_compile) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; } &&
13036 { ac_try='test -s conftest.$ac_objext'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; }; then
13042 ac_cv_have_decl_realloc=yes
13043 else
13044 echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13046
13047 ac_cv_have_decl_realloc=no
13048 fi
13049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13050 fi
13051 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13052 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13053 if test $ac_cv_have_decl_realloc = yes; then
13054
13055 cat >>confdefs.h <<_ACEOF
13056 #define HAVE_DECL_REALLOC 1
13057 _ACEOF
13058
13059
13060 else
13061 cat >>confdefs.h <<_ACEOF
13062 #define HAVE_DECL_REALLOC 0
13063 _ACEOF
13064
13065
13066 fi
13067
13068
13069 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13070 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13071 if test "${ac_cv_have_decl_strerror+set}" = set; then
13072 echo $ECHO_N "(cached) $ECHO_C" >&6
13073 else
13074 cat >conftest.$ac_ext <<_ACEOF
13075 /* confdefs.h. */
13076 _ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080 $ac_includes_default
13081 int
13082 main ()
13083 {
13084 #ifndef strerror
13085 char *p = (char *) strerror;
13086 #endif
13087
13088 ;
13089 return 0;
13090 }
13091 _ACEOF
13092 rm -f conftest.$ac_objext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest.$ac_objext'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13113 ac_cv_have_decl_strerror=yes
13114 else
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13117
13118 ac_cv_have_decl_strerror=no
13119 fi
13120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13121 fi
13122 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13123 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13124 if test $ac_cv_have_decl_strerror = yes; then
13125
13126 cat >>confdefs.h <<_ACEOF
13127 #define HAVE_DECL_STRERROR 1
13128 _ACEOF
13129
13130
13131 else
13132 cat >>confdefs.h <<_ACEOF
13133 #define HAVE_DECL_STRERROR 0
13134 _ACEOF
13135
13136
13137 fi
13138 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13139 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13140 if test "${ac_cv_have_decl_strstr+set}" = set; then
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
13142 else
13143 cat >conftest.$ac_ext <<_ACEOF
13144 /* confdefs.h. */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13149 $ac_includes_default
13150 int
13151 main ()
13152 {
13153 #ifndef strstr
13154 char *p = (char *) strstr;
13155 #endif
13156
13157 ;
13158 return 0;
13159 }
13160 _ACEOF
13161 rm -f conftest.$ac_objext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13163 (eval $ac_compile) 2>conftest.er1
13164 ac_status=$?
13165 grep -v '^ *+' conftest.er1 >conftest.err
13166 rm -f conftest.er1
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
13170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; } &&
13176 { ac_try='test -s conftest.$ac_objext'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13182 ac_cv_have_decl_strstr=yes
13183 else
13184 echo "$as_me: failed program was:" >&5
13185 sed 's/^/| /' conftest.$ac_ext >&5
13186
13187 ac_cv_have_decl_strstr=no
13188 fi
13189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13190 fi
13191 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13192 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13193 if test $ac_cv_have_decl_strstr = yes; then
13194
13195 cat >>confdefs.h <<_ACEOF
13196 #define HAVE_DECL_STRSTR 1
13197 _ACEOF
13198
13199
13200 else
13201 cat >>confdefs.h <<_ACEOF
13202 #define HAVE_DECL_STRSTR 0
13203 _ACEOF
13204
13205
13206 fi
13207
13208
13209 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13210 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13211 if test "${ac_cv_have_decl_getopt+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214 cat >conftest.$ac_ext <<_ACEOF
13215 /* confdefs.h. */
13216 _ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13220 $ac_includes_default
13221 int
13222 main ()
13223 {
13224 #ifndef getopt
13225 char *p = (char *) getopt;
13226 #endif
13227
13228 ;
13229 return 0;
13230 }
13231 _ACEOF
13232 rm -f conftest.$ac_objext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 (eval $ac_compile) 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest.$ac_objext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 ac_cv_have_decl_getopt=yes
13254 else
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13257
13258 ac_cv_have_decl_getopt=no
13259 fi
13260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13261 fi
13262 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13263 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13264 if test $ac_cv_have_decl_getopt = yes; then
13265
13266 cat >>confdefs.h <<_ACEOF
13267 #define HAVE_DECL_GETOPT 1
13268 _ACEOF
13269
13270
13271 else
13272 cat >>confdefs.h <<_ACEOF
13273 #define HAVE_DECL_GETOPT 0
13274 _ACEOF
13275
13276
13277 fi
13278 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13279 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13280 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h. */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13289 $ac_includes_default
13290 int
13291 main ()
13292 {
13293 #ifndef snprintf
13294 char *p = (char *) snprintf;
13295 #endif
13296
13297 ;
13298 return 0;
13299 }
13300 _ACEOF
13301 rm -f conftest.$ac_objext
13302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13303 (eval $ac_compile) 2>conftest.er1
13304 ac_status=$?
13305 grep -v '^ *+' conftest.er1 >conftest.err
13306 rm -f conftest.er1
13307 cat conftest.err >&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } &&
13310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; } &&
13316 { ac_try='test -s conftest.$ac_objext'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }; then
13322 ac_cv_have_decl_snprintf=yes
13323 else
13324 echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13326
13327 ac_cv_have_decl_snprintf=no
13328 fi
13329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13330 fi
13331 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13332 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13333 if test $ac_cv_have_decl_snprintf = yes; then
13334
13335 cat >>confdefs.h <<_ACEOF
13336 #define HAVE_DECL_SNPRINTF 1
13337 _ACEOF
13338
13339
13340 else
13341 cat >>confdefs.h <<_ACEOF
13342 #define HAVE_DECL_SNPRINTF 0
13343 _ACEOF
13344
13345
13346 fi
13347 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13348 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13349 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 else
13352 cat >conftest.$ac_ext <<_ACEOF
13353 /* confdefs.h. */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 $ac_includes_default
13359 int
13360 main ()
13361 {
13362 #ifndef vsnprintf
13363 char *p = (char *) vsnprintf;
13364 #endif
13365
13366 ;
13367 return 0;
13368 }
13369 _ACEOF
13370 rm -f conftest.$ac_objext
13371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13372 (eval $ac_compile) 2>conftest.er1
13373 ac_status=$?
13374 grep -v '^ *+' conftest.er1 >conftest.err
13375 rm -f conftest.er1
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
13379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest.$ac_objext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_have_decl_vsnprintf=yes
13392 else
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396 ac_cv_have_decl_vsnprintf=no
13397 fi
13398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13399 fi
13400 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13401 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13402 if test $ac_cv_have_decl_vsnprintf = yes; then
13403
13404 cat >>confdefs.h <<_ACEOF
13405 #define HAVE_DECL_VSNPRINTF 1
13406 _ACEOF
13407
13408
13409 else
13410 cat >>confdefs.h <<_ACEOF
13411 #define HAVE_DECL_VSNPRINTF 0
13412 _ACEOF
13413
13414
13415 fi
13416
13417
13418
13419 # ----------------------- #
13420 # Checks for structures. #
13421 # ----------------------- #
13422
13423 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13424 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13425 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428 cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h. */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434 $ac_includes_default
13435 int
13436 main ()
13437 {
13438 static struct stat ac_aggr;
13439 if (ac_aggr.st_blocks)
13440 return 0;
13441 ;
13442 return 0;
13443 }
13444 _ACEOF
13445 rm -f conftest.$ac_objext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13447 (eval $ac_compile) 2>conftest.er1
13448 ac_status=$?
13449 grep -v '^ *+' conftest.er1 >conftest.err
13450 rm -f conftest.er1
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
13454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest.$ac_objext'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
13466 ac_cv_member_struct_stat_st_blocks=yes
13467 else
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471 cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h. */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13477 $ac_includes_default
13478 int
13479 main ()
13480 {
13481 static struct stat ac_aggr;
13482 if (sizeof ac_aggr.st_blocks)
13483 return 0;
13484 ;
13485 return 0;
13486 }
13487 _ACEOF
13488 rm -f conftest.$ac_objext
13489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13490 (eval $ac_compile) 2>conftest.er1
13491 ac_status=$?
13492 grep -v '^ *+' conftest.er1 >conftest.err
13493 rm -f conftest.er1
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } &&
13497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; } &&
13503 { ac_try='test -s conftest.$ac_objext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_member_struct_stat_st_blocks=yes
13510 else
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 ac_cv_member_struct_stat_st_blocks=no
13515 fi
13516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13517 fi
13518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13519 fi
13520 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13521 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13522 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13523
13524 cat >>confdefs.h <<_ACEOF
13525 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13526 _ACEOF
13527
13528
13529 fi
13530
13531 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13532 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13533 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536 cat >conftest.$ac_ext <<_ACEOF
13537 /* confdefs.h. */
13538 _ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 $ac_includes_default
13543 int
13544 main ()
13545 {
13546 static struct stat ac_aggr;
13547 if (ac_aggr.st_blksize)
13548 return 0;
13549 ;
13550 return 0;
13551 }
13552 _ACEOF
13553 rm -f conftest.$ac_objext
13554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13555 (eval $ac_compile) 2>conftest.er1
13556 ac_status=$?
13557 grep -v '^ *+' conftest.er1 >conftest.err
13558 rm -f conftest.er1
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
13562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; } &&
13568 { ac_try='test -s conftest.$ac_objext'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 ac_cv_member_struct_stat_st_blksize=yes
13575 else
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13578
13579 cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h. */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 $ac_includes_default
13586 int
13587 main ()
13588 {
13589 static struct stat ac_aggr;
13590 if (sizeof ac_aggr.st_blksize)
13591 return 0;
13592 ;
13593 return 0;
13594 }
13595 _ACEOF
13596 rm -f conftest.$ac_objext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13598 (eval $ac_compile) 2>conftest.er1
13599 ac_status=$?
13600 grep -v '^ *+' conftest.er1 >conftest.err
13601 rm -f conftest.er1
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest.$ac_objext'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
13617 ac_cv_member_struct_stat_st_blksize=yes
13618 else
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13621
13622 ac_cv_member_struct_stat_st_blksize=no
13623 fi
13624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13625 fi
13626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13627 fi
13628 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13629 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13630 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13631
13632 cat >>confdefs.h <<_ACEOF
13633 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13634 _ACEOF
13635
13636
13637 fi
13638
13639
13640 # ------------------ #
13641 # Checks for types. #
13642 # ------------------ #
13643
13644 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13645 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13646 if test "${ac_cv_type_signal+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649 cat >conftest.$ac_ext <<_ACEOF
13650 /* confdefs.h. */
13651 _ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13655 #include <sys/types.h>
13656 #include <signal.h>
13657 #ifdef signal
13658 # undef signal
13659 #endif
13660 #ifdef __cplusplus
13661 extern "C" void (*signal (int, void (*)(int)))(int);
13662 #else
13663 void (*signal ()) ();
13664 #endif
13665
13666 int
13667 main ()
13668 {
13669 int i;
13670 ;
13671 return 0;
13672 }
13673 _ACEOF
13674 rm -f conftest.$ac_objext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676 (eval $ac_compile) 2>conftest.er1
13677 ac_status=$?
13678 grep -v '^ *+' conftest.er1 >conftest.err
13679 rm -f conftest.er1
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
13683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; } &&
13689 { ac_try='test -s conftest.$ac_objext'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
13695 ac_cv_type_signal=void
13696 else
13697 echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13699
13700 ac_cv_type_signal=int
13701 fi
13702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13703 fi
13704 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13705 echo "${ECHO_T}$ac_cv_type_signal" >&6
13706
13707 cat >>confdefs.h <<_ACEOF
13708 #define RETSIGTYPE $ac_cv_type_signal
13709 _ACEOF
13710
13711
13712 echo "$as_me:$LINENO: checking for socklen_t" >&5
13713 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13714 if test "${ac_cv_type_socklen_t+set}" = set; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 else
13717 cat >conftest.$ac_ext <<_ACEOF
13718 /* confdefs.h. */
13719 _ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13723 #include <sys/types.h>
13724 #include <sys/socket.h>
13725
13726
13727 int
13728 main ()
13729 {
13730 if ((socklen_t *) 0)
13731 return 0;
13732 if (sizeof (socklen_t))
13733 return 0;
13734 ;
13735 return 0;
13736 }
13737 _ACEOF
13738 rm -f conftest.$ac_objext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13740 (eval $ac_compile) 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; } &&
13753 { ac_try='test -s conftest.$ac_objext'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_cv_type_socklen_t=yes
13760 else
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13763
13764 ac_cv_type_socklen_t=no
13765 fi
13766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13767 fi
13768 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13769 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13770 if test $ac_cv_type_socklen_t = yes; then
13771
13772 cat >>confdefs.h <<_ACEOF
13773 #define HAVE_SOCKLEN_T 1
13774 _ACEOF
13775
13776
13777 fi
13778
13779 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13780 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13781 if test "${ac_cv_type_uintptr_t+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 else
13784 cat >conftest.$ac_ext <<_ACEOF
13785 /* confdefs.h. */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 #include <stdint.h>
13791
13792 int
13793 main ()
13794 {
13795 if ((uintptr_t *) 0)
13796 return 0;
13797 if (sizeof (uintptr_t))
13798 return 0;
13799 ;
13800 return 0;
13801 }
13802 _ACEOF
13803 rm -f conftest.$ac_objext
13804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13805 (eval $ac_compile) 2>conftest.er1
13806 ac_status=$?
13807 grep -v '^ *+' conftest.er1 >conftest.err
13808 rm -f conftest.er1
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } &&
13812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } &&
13818 { ac_try='test -s conftest.$ac_objext'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_cv_type_uintptr_t=yes
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13828
13829 ac_cv_type_uintptr_t=no
13830 fi
13831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13832 fi
13833 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13834 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13835 if test $ac_cv_type_uintptr_t = yes; then
13836
13837 cat >>confdefs.h <<_ACEOF
13838 #define HAVE_UINTPTR_T 1
13839 _ACEOF
13840
13841
13842 fi
13843
13844
13845 # ------------------------------------- #
13846 # Checks for compiler characteristics. #
13847 # ------------------------------------- #
13848
13849 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13850 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13851 if test "${ac_cv_c_const+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854 cat >conftest.$ac_ext <<_ACEOF
13855 /* confdefs.h. */
13856 _ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860
13861 int
13862 main ()
13863 {
13864 /* FIXME: Include the comments suggested by Paul. */
13865 #ifndef __cplusplus
13866 /* Ultrix mips cc rejects this. */
13867 typedef int charset[2];
13868 const charset x;
13869 /* SunOS 4.1.1 cc rejects this. */
13870 char const *const *ccp;
13871 char **p;
13872 /* NEC SVR4.0.2 mips cc rejects this. */
13873 struct point {int x, y;};
13874 static struct point const zero = {0,0};
13875 /* AIX XL C 1.02.0.0 rejects this.
13876 It does not let you subtract one const X* pointer from another in
13877 an arm of an if-expression whose if-part is not a constant
13878 expression */
13879 const char *g = "string";
13880 ccp = &g + (g ? g-g : 0);
13881 /* HPUX 7.0 cc rejects these. */
13882 ++ccp;
13883 p = (char**) ccp;
13884 ccp = (char const *const *) p;
13885 { /* SCO 3.2v4 cc rejects this. */
13886 char *t;
13887 char const *s = 0 ? (char *) 0 : (char const *) 0;
13888
13889 *t++ = 0;
13890 }
13891 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13892 int x[] = {25, 17};
13893 const int *foo = &x[0];
13894 ++foo;
13895 }
13896 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13897 typedef const int *iptr;
13898 iptr p = 0;
13899 ++p;
13900 }
13901 { /* AIX XL C 1.02.0.0 rejects this saying
13902 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13903 struct s { int j; const int *ap[3]; };
13904 struct s *b; b->j = 5;
13905 }
13906 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13907 const int foo = 10;
13908 }
13909 #endif
13910
13911 ;
13912 return 0;
13913 }
13914 _ACEOF
13915 rm -f conftest.$ac_objext
13916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13917 (eval $ac_compile) 2>conftest.er1
13918 ac_status=$?
13919 grep -v '^ *+' conftest.er1 >conftest.err
13920 rm -f conftest.er1
13921 cat conftest.err >&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } &&
13924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; } &&
13930 { ac_try='test -s conftest.$ac_objext'
13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13936 ac_cv_c_const=yes
13937 else
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941 ac_cv_c_const=no
13942 fi
13943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13944 fi
13945 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13946 echo "${ECHO_T}$ac_cv_c_const" >&6
13947 if test $ac_cv_c_const = no; then
13948
13949 cat >>confdefs.h <<\_ACEOF
13950 #define const
13951 _ACEOF
13952
13953 fi
13954
13955 echo "$as_me:$LINENO: checking for inline" >&5
13956 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13957 if test "${ac_cv_c_inline+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13960 ac_cv_c_inline=no
13961 for ac_kw in inline __inline__ __inline; do
13962 cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h. */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 #ifndef __cplusplus
13969 typedef int foo_t;
13970 static $ac_kw foo_t static_foo () {return 0; }
13971 $ac_kw foo_t foo () {return 0; }
13972 #endif
13973
13974 _ACEOF
13975 rm -f conftest.$ac_objext
13976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13977 (eval $ac_compile) 2>conftest.er1
13978 ac_status=$?
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } &&
13984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest.$ac_objext'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 ac_cv_c_inline=$ac_kw; break
13997 else
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14000
14001 fi
14002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14003 done
14004
14005 fi
14006 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14007 echo "${ECHO_T}$ac_cv_c_inline" >&6
14008
14009
14010 case $ac_cv_c_inline in
14011 inline | yes) ;;
14012 *)
14013 case $ac_cv_c_inline in
14014 no) ac_val=;;
14015 *) ac_val=$ac_cv_c_inline;;
14016 esac
14017 cat >>confdefs.h <<_ACEOF
14018 #ifndef __cplusplus
14019 #define inline $ac_val
14020 #endif
14021 _ACEOF
14022 ;;
14023 esac
14024
14025
14026 # ------------------------------ #
14027 # Checks for library functions. #
14028 # ------------------------------ #
14029
14030 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14031 # for constant arguments. Useless!
14032 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14033 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14034 if test "${ac_cv_working_alloca_h+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037 cat >conftest.$ac_ext <<_ACEOF
14038 /* confdefs.h. */
14039 _ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 #include <alloca.h>
14044 int
14045 main ()
14046 {
14047 char *p = (char *) alloca (2 * sizeof (int));
14048 ;
14049 return 0;
14050 }
14051 _ACEOF
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14054 (eval $ac_link) 2>conftest.er1
14055 ac_status=$?
14056 grep -v '^ *+' conftest.er1 >conftest.err
14057 rm -f conftest.er1
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
14061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; } &&
14067 { ac_try='test -s conftest$ac_exeext'
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14070 ac_status=$?
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14073 ac_cv_working_alloca_h=yes
14074 else
14075 echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 ac_cv_working_alloca_h=no
14079 fi
14080 rm -f conftest.err conftest.$ac_objext \
14081 conftest$ac_exeext conftest.$ac_ext
14082 fi
14083 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14084 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14085 if test $ac_cv_working_alloca_h = yes; then
14086
14087 cat >>confdefs.h <<\_ACEOF
14088 #define HAVE_ALLOCA_H 1
14089 _ACEOF
14090
14091 fi
14092
14093 echo "$as_me:$LINENO: checking for alloca" >&5
14094 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14095 if test "${ac_cv_func_alloca_works+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098 cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h. */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h. */
14104 #ifdef __GNUC__
14105 # define alloca __builtin_alloca
14106 #else
14107 # ifdef _MSC_VER
14108 # include <malloc.h>
14109 # define alloca _alloca
14110 # else
14111 # if HAVE_ALLOCA_H
14112 # include <alloca.h>
14113 # else
14114 # ifdef _AIX
14115 #pragma alloca
14116 # else
14117 # ifndef alloca /* predefined by HP cc +Olibcalls */
14118 char *alloca ();
14119 # endif
14120 # endif
14121 # endif
14122 # endif
14123 #endif
14124
14125 int
14126 main ()
14127 {
14128 char *p = (char *) alloca (1);
14129 ;
14130 return 0;
14131 }
14132 _ACEOF
14133 rm -f conftest.$ac_objext conftest$ac_exeext
14134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14135 (eval $ac_link) 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
14142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest$ac_exeext'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
14154 ac_cv_func_alloca_works=yes
14155 else
14156 echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14158
14159 ac_cv_func_alloca_works=no
14160 fi
14161 rm -f conftest.err conftest.$ac_objext \
14162 conftest$ac_exeext conftest.$ac_ext
14163 fi
14164 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14165 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14166
14167 if test $ac_cv_func_alloca_works = yes; then
14168
14169 cat >>confdefs.h <<\_ACEOF
14170 #define HAVE_ALLOCA 1
14171 _ACEOF
14172
14173 else
14174 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14175 # that cause trouble. Some versions do not even contain alloca or
14176 # contain a buggy version. If you still want to use their alloca,
14177 # use ar to extract alloca.o from them instead of compiling alloca.c.
14178
14179 ALLOCA=alloca.$ac_objext
14180
14181 cat >>confdefs.h <<\_ACEOF
14182 #define C_ALLOCA 1
14183 _ACEOF
14184
14185
14186 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14187 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14188 if test "${ac_cv_os_cray+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h. */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 #if defined(CRAY) && ! defined(CRAY2)
14198 webecray
14199 #else
14200 wenotbecray
14201 #endif
14202
14203 _ACEOF
14204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14205 $EGREP "webecray" >/dev/null 2>&1; then
14206 ac_cv_os_cray=yes
14207 else
14208 ac_cv_os_cray=no
14209 fi
14210 rm -f conftest*
14211
14212 fi
14213 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14214 echo "${ECHO_T}$ac_cv_os_cray" >&6
14215 if test $ac_cv_os_cray = yes; then
14216 for ac_func in _getb67 GETB67 getb67; do
14217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14218 echo "$as_me:$LINENO: checking for $ac_func" >&5
14219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14220 if eval "test \"\${$as_ac_var+set}\" = set"; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 else
14223 cat >conftest.$ac_ext <<_ACEOF
14224 /* confdefs.h. */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14231 #define $ac_func innocuous_$ac_func
14232
14233 /* System header to define __stub macros and hopefully few prototypes,
14234 which can conflict with char $ac_func (); below.
14235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14236 <limits.h> exists even on freestanding compilers. */
14237
14238 #ifdef __STDC__
14239 # include <limits.h>
14240 #else
14241 # include <assert.h>
14242 #endif
14243
14244 #undef $ac_func
14245
14246 /* Override any gcc2 internal prototype to avoid an error. */
14247 #ifdef __cplusplus
14248 extern "C"
14249 {
14250 #endif
14251 /* We use char because int might match the return type of a gcc2
14252 builtin and then its argument prototype would still apply. */
14253 char $ac_func ();
14254 /* The GNU C library defines this for functions which it implements
14255 to always fail with ENOSYS. Some functions are actually named
14256 something starting with __ and the normal name is an alias. */
14257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14258 choke me
14259 #else
14260 char (*f) () = $ac_func;
14261 #endif
14262 #ifdef __cplusplus
14263 }
14264 #endif
14265
14266 int
14267 main ()
14268 {
14269 return f != $ac_func;
14270 ;
14271 return 0;
14272 }
14273 _ACEOF
14274 rm -f conftest.$ac_objext conftest$ac_exeext
14275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14276 (eval $ac_link) 2>conftest.er1
14277 ac_status=$?
14278 grep -v '^ *+' conftest.er1 >conftest.err
14279 rm -f conftest.er1
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } &&
14283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; } &&
14289 { ac_try='test -s conftest$ac_exeext'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; }; then
14295 eval "$as_ac_var=yes"
14296 else
14297 echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14299
14300 eval "$as_ac_var=no"
14301 fi
14302 rm -f conftest.err conftest.$ac_objext \
14303 conftest$ac_exeext conftest.$ac_ext
14304 fi
14305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14307 if test `eval echo '${'$as_ac_var'}'` = yes; then
14308
14309 cat >>confdefs.h <<_ACEOF
14310 #define CRAY_STACKSEG_END $ac_func
14311 _ACEOF
14312
14313 break
14314 fi
14315
14316 done
14317 fi
14318
14319 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14320 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14321 if test "${ac_cv_c_stack_direction+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 else
14324 if test "$cross_compiling" = yes; then
14325 ac_cv_c_stack_direction=0
14326 else
14327 cat >conftest.$ac_ext <<_ACEOF
14328 /* confdefs.h. */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14333 int
14334 find_stack_direction ()
14335 {
14336 static char *addr = 0;
14337 auto char dummy;
14338 if (addr == 0)
14339 {
14340 addr = &dummy;
14341 return find_stack_direction ();
14342 }
14343 else
14344 return (&dummy > addr) ? 1 : -1;
14345 }
14346
14347 int
14348 main ()
14349 {
14350 exit (find_stack_direction () < 0);
14351 }
14352 _ACEOF
14353 rm -f conftest$ac_exeext
14354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14355 (eval $ac_link) 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
14364 ac_cv_c_stack_direction=1
14365 else
14366 echo "$as_me: program exited with status $ac_status" >&5
14367 echo "$as_me: failed program was:" >&5
14368 sed 's/^/| /' conftest.$ac_ext >&5
14369
14370 ( exit $ac_status )
14371 ac_cv_c_stack_direction=-1
14372 fi
14373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14374 fi
14375 fi
14376 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14377 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14378
14379 cat >>confdefs.h <<_ACEOF
14380 #define STACK_DIRECTION $ac_cv_c_stack_direction
14381 _ACEOF
14382
14383
14384 fi
14385
14386
14387
14388 for ac_header in stdlib.h unistd.h
14389 do
14390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14392 echo "$as_me:$LINENO: checking for $ac_header" >&5
14393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396 fi
14397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14399 else
14400 # Is the header compilable?
14401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14403 cat >conftest.$ac_ext <<_ACEOF
14404 /* confdefs.h. */
14405 _ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14409 $ac_includes_default
14410 #include <$ac_header>
14411 _ACEOF
14412 rm -f conftest.$ac_objext
14413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14414 (eval $ac_compile) 2>conftest.er1
14415 ac_status=$?
14416 grep -v '^ *+' conftest.er1 >conftest.err
14417 rm -f conftest.er1
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14424 ac_status=$?
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; } &&
14427 { ac_try='test -s conftest.$ac_objext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 ac_header_compiler=yes
14434 else
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14437
14438 ac_header_compiler=no
14439 fi
14440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14442 echo "${ECHO_T}$ac_header_compiler" >&6
14443
14444 # Is the header present?
14445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14447 cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h. */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 #include <$ac_header>
14454 _ACEOF
14455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14457 ac_status=$?
14458 grep -v '^ *+' conftest.er1 >conftest.err
14459 rm -f conftest.er1
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } >/dev/null; then
14463 if test -s conftest.err; then
14464 ac_cpp_err=$ac_c_preproc_warn_flag
14465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14466 else
14467 ac_cpp_err=
14468 fi
14469 else
14470 ac_cpp_err=yes
14471 fi
14472 if test -z "$ac_cpp_err"; then
14473 ac_header_preproc=yes
14474 else
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14477
14478 ac_header_preproc=no
14479 fi
14480 rm -f conftest.err conftest.$ac_ext
14481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14482 echo "${ECHO_T}$ac_header_preproc" >&6
14483
14484 # So? What about this header?
14485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14486 yes:no: )
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14491 ac_header_preproc=yes
14492 ;;
14493 no:yes:* )
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14506 (
14507 cat <<\_ASBOX
14508 ## ------------------------------------------ ##
14509 ## Report this to the AC_PACKAGE_NAME lists. ##
14510 ## ------------------------------------------ ##
14511 _ASBOX
14512 ) |
14513 sed "s/^/$as_me: WARNING: /" >&2
14514 ;;
14515 esac
14516 echo "$as_me:$LINENO: checking for $ac_header" >&5
14517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 else
14521 eval "$as_ac_Header=\$ac_header_preproc"
14522 fi
14523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14525
14526 fi
14527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14528 cat >>confdefs.h <<_ACEOF
14529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14530 _ACEOF
14531
14532 fi
14533
14534 done
14535
14536
14537 for ac_func in getpagesize
14538 do
14539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14540 echo "$as_me:$LINENO: checking for $ac_func" >&5
14541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14542 if eval "test \"\${$as_ac_var+set}\" = set"; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
14544 else
14545 cat >conftest.$ac_ext <<_ACEOF
14546 /* confdefs.h. */
14547 _ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14553 #define $ac_func innocuous_$ac_func
14554
14555 /* System header to define __stub macros and hopefully few prototypes,
14556 which can conflict with char $ac_func (); below.
14557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14558 <limits.h> exists even on freestanding compilers. */
14559
14560 #ifdef __STDC__
14561 # include <limits.h>
14562 #else
14563 # include <assert.h>
14564 #endif
14565
14566 #undef $ac_func
14567
14568 /* Override any gcc2 internal prototype to avoid an error. */
14569 #ifdef __cplusplus
14570 extern "C"
14571 {
14572 #endif
14573 /* We use char because int might match the return type of a gcc2
14574 builtin and then its argument prototype would still apply. */
14575 char $ac_func ();
14576 /* The GNU C library defines this for functions which it implements
14577 to always fail with ENOSYS. Some functions are actually named
14578 something starting with __ and the normal name is an alias. */
14579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14580 choke me
14581 #else
14582 char (*f) () = $ac_func;
14583 #endif
14584 #ifdef __cplusplus
14585 }
14586 #endif
14587
14588 int
14589 main ()
14590 {
14591 return f != $ac_func;
14592 ;
14593 return 0;
14594 }
14595 _ACEOF
14596 rm -f conftest.$ac_objext conftest$ac_exeext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598 (eval $ac_link) 2>conftest.er1
14599 ac_status=$?
14600 grep -v '^ *+' conftest.er1 >conftest.err
14601 rm -f conftest.er1
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
14605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14608 ac_status=$?
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; } &&
14611 { ac_try='test -s conftest$ac_exeext'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14614 ac_status=$?
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 eval "$as_ac_var=yes"
14618 else
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14621
14622 eval "$as_ac_var=no"
14623 fi
14624 rm -f conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14626 fi
14627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14629 if test `eval echo '${'$as_ac_var'}'` = yes; then
14630 cat >>confdefs.h <<_ACEOF
14631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14632 _ACEOF
14633
14634 fi
14635 done
14636
14637 echo "$as_me:$LINENO: checking for working mmap" >&5
14638 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14639 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642 if test "$cross_compiling" = yes; then
14643 ac_cv_func_mmap_fixed_mapped=no
14644 else
14645 cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h. */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 $ac_includes_default
14652 /* malloc might have been renamed as rpl_malloc. */
14653 #undef malloc
14654
14655 /* Thanks to Mike Haertel and Jim Avera for this test.
14656 Here is a matrix of mmap possibilities:
14657 mmap private not fixed
14658 mmap private fixed at somewhere currently unmapped
14659 mmap private fixed at somewhere already mapped
14660 mmap shared not fixed
14661 mmap shared fixed at somewhere currently unmapped
14662 mmap shared fixed at somewhere already mapped
14663 For private mappings, we should verify that changes cannot be read()
14664 back from the file, nor mmap's back from the file at a different
14665 address. (There have been systems where private was not correctly
14666 implemented like the infamous i386 svr4.0, and systems where the
14667 VM page cache was not coherent with the file system buffer cache
14668 like early versions of FreeBSD and possibly contemporary NetBSD.)
14669 For shared mappings, we should conversely verify that changes get
14670 propagated back to all the places they're supposed to be.
14671
14672 Grep wants private fixed already mapped.
14673 The main things grep needs to know about mmap are:
14674 * does it exist and is it safe to write into the mmap'd area
14675 * how to use it (BSD variants) */
14676
14677 #include <fcntl.h>
14678 #include <sys/mman.h>
14679
14680 #if !STDC_HEADERS && !HAVE_STDLIB_H
14681 char *malloc ();
14682 #endif
14683
14684 /* This mess was copied from the GNU getpagesize.h. */
14685 #if !HAVE_GETPAGESIZE
14686 /* Assume that all systems that can run configure have sys/param.h. */
14687 # if !HAVE_SYS_PARAM_H
14688 # define HAVE_SYS_PARAM_H 1
14689 # endif
14690
14691 # ifdef _SC_PAGESIZE
14692 # define getpagesize() sysconf(_SC_PAGESIZE)
14693 # else /* no _SC_PAGESIZE */
14694 # if HAVE_SYS_PARAM_H
14695 # include <sys/param.h>
14696 # ifdef EXEC_PAGESIZE
14697 # define getpagesize() EXEC_PAGESIZE
14698 # else /* no EXEC_PAGESIZE */
14699 # ifdef NBPG
14700 # define getpagesize() NBPG * CLSIZE
14701 # ifndef CLSIZE
14702 # define CLSIZE 1
14703 # endif /* no CLSIZE */
14704 # else /* no NBPG */
14705 # ifdef NBPC
14706 # define getpagesize() NBPC
14707 # else /* no NBPC */
14708 # ifdef PAGESIZE
14709 # define getpagesize() PAGESIZE
14710 # endif /* PAGESIZE */
14711 # endif /* no NBPC */
14712 # endif /* no NBPG */
14713 # endif /* no EXEC_PAGESIZE */
14714 # else /* no HAVE_SYS_PARAM_H */
14715 # define getpagesize() 8192 /* punt totally */
14716 # endif /* no HAVE_SYS_PARAM_H */
14717 # endif /* no _SC_PAGESIZE */
14718
14719 #endif /* no HAVE_GETPAGESIZE */
14720
14721 int
14722 main ()
14723 {
14724 char *data, *data2, *data3;
14725 int i, pagesize;
14726 int fd;
14727
14728 pagesize = getpagesize ();
14729
14730 /* First, make a file with some known garbage in it. */
14731 data = (char *) malloc (pagesize);
14732 if (!data)
14733 exit (1);
14734 for (i = 0; i < pagesize; ++i)
14735 *(data + i) = rand ();
14736 umask (0);
14737 fd = creat ("conftest.mmap", 0600);
14738 if (fd < 0)
14739 exit (1);
14740 if (write (fd, data, pagesize) != pagesize)
14741 exit (1);
14742 close (fd);
14743
14744 /* Next, try to mmap the file at a fixed address which already has
14745 something else allocated at it. If we can, also make sure that
14746 we see the same garbage. */
14747 fd = open ("conftest.mmap", O_RDWR);
14748 if (fd < 0)
14749 exit (1);
14750 data2 = (char *) malloc (2 * pagesize);
14751 if (!data2)
14752 exit (1);
14753 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14754 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14755 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14756 exit (1);
14757 for (i = 0; i < pagesize; ++i)
14758 if (*(data + i) != *(data2 + i))
14759 exit (1);
14760
14761 /* Finally, make sure that changes to the mapped area do not
14762 percolate back to the file as seen by read(). (This is a bug on
14763 some variants of i386 svr4.0.) */
14764 for (i = 0; i < pagesize; ++i)
14765 *(data2 + i) = *(data2 + i) + 1;
14766 data3 = (char *) malloc (pagesize);
14767 if (!data3)
14768 exit (1);
14769 if (read (fd, data3, pagesize) != pagesize)
14770 exit (1);
14771 for (i = 0; i < pagesize; ++i)
14772 if (*(data + i) != *(data3 + i))
14773 exit (1);
14774 close (fd);
14775 exit (0);
14776 }
14777 _ACEOF
14778 rm -f conftest$ac_exeext
14779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14780 (eval $ac_link) 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14789 ac_cv_func_mmap_fixed_mapped=yes
14790 else
14791 echo "$as_me: program exited with status $ac_status" >&5
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795 ( exit $ac_status )
14796 ac_cv_func_mmap_fixed_mapped=no
14797 fi
14798 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14799 fi
14800 fi
14801 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14802 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14803 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14804
14805 cat >>confdefs.h <<\_ACEOF
14806 #define HAVE_MMAP 1
14807 _ACEOF
14808
14809 fi
14810 rm -f conftest.mmap
14811
14812 echo "$as_me:$LINENO: checking for pid_t" >&5
14813 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14814 if test "${ac_cv_type_pid_t+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 else
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 $ac_includes_default
14824 int
14825 main ()
14826 {
14827 if ((pid_t *) 0)
14828 return 0;
14829 if (sizeof (pid_t))
14830 return 0;
14831 ;
14832 return 0;
14833 }
14834 _ACEOF
14835 rm -f conftest.$ac_objext
14836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14837 (eval $ac_compile) 2>conftest.er1
14838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } &&
14844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; } &&
14850 { ac_try='test -s conftest.$ac_objext'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 ac_cv_type_pid_t=yes
14857 else
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14860
14861 ac_cv_type_pid_t=no
14862 fi
14863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14864 fi
14865 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14866 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14867 if test $ac_cv_type_pid_t = yes; then
14868 :
14869 else
14870
14871 cat >>confdefs.h <<_ACEOF
14872 #define pid_t int
14873 _ACEOF
14874
14875 fi
14876
14877
14878
14879 for ac_header in unistd.h vfork.h
14880 do
14881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14883 echo "$as_me:$LINENO: checking for $ac_header" >&5
14884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 fi
14888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14890 else
14891 # Is the header compilable?
14892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14894 cat >conftest.$ac_ext <<_ACEOF
14895 /* confdefs.h. */
14896 _ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h. */
14900 $ac_includes_default
14901 #include <$ac_header>
14902 _ACEOF
14903 rm -f conftest.$ac_objext
14904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14905 (eval $ac_compile) 2>conftest.er1
14906 ac_status=$?
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
14912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest.$ac_objext'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_header_compiler=yes
14925 else
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14928
14929 ac_header_compiler=no
14930 fi
14931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14933 echo "${ECHO_T}$ac_header_compiler" >&6
14934
14935 # Is the header present?
14936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14938 cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h. */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 #include <$ac_header>
14945 _ACEOF
14946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14948 ac_status=$?
14949 grep -v '^ *+' conftest.er1 >conftest.err
14950 rm -f conftest.er1
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } >/dev/null; then
14954 if test -s conftest.err; then
14955 ac_cpp_err=$ac_c_preproc_warn_flag
14956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14957 else
14958 ac_cpp_err=
14959 fi
14960 else
14961 ac_cpp_err=yes
14962 fi
14963 if test -z "$ac_cpp_err"; then
14964 ac_header_preproc=yes
14965 else
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14968
14969 ac_header_preproc=no
14970 fi
14971 rm -f conftest.err conftest.$ac_ext
14972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14973 echo "${ECHO_T}$ac_header_preproc" >&6
14974
14975 # So? What about this header?
14976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14977 yes:no: )
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14982 ac_header_preproc=yes
14983 ;;
14984 no:yes:* )
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14997 (
14998 cat <<\_ASBOX
14999 ## ------------------------------------------ ##
15000 ## Report this to the AC_PACKAGE_NAME lists. ##
15001 ## ------------------------------------------ ##
15002 _ASBOX
15003 ) |
15004 sed "s/^/$as_me: WARNING: /" >&2
15005 ;;
15006 esac
15007 echo "$as_me:$LINENO: checking for $ac_header" >&5
15008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012 eval "$as_ac_Header=\$ac_header_preproc"
15013 fi
15014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15016
15017 fi
15018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15019 cat >>confdefs.h <<_ACEOF
15020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15021 _ACEOF
15022
15023 fi
15024
15025 done
15026
15027
15028
15029 for ac_func in fork vfork
15030 do
15031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15032 echo "$as_me:$LINENO: checking for $ac_func" >&5
15033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15034 if eval "test \"\${$as_ac_var+set}\" = set"; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 else
15037 cat >conftest.$ac_ext <<_ACEOF
15038 /* confdefs.h. */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15045 #define $ac_func innocuous_$ac_func
15046
15047 /* System header to define __stub macros and hopefully few prototypes,
15048 which can conflict with char $ac_func (); below.
15049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15050 <limits.h> exists even on freestanding compilers. */
15051
15052 #ifdef __STDC__
15053 # include <limits.h>
15054 #else
15055 # include <assert.h>
15056 #endif
15057
15058 #undef $ac_func
15059
15060 /* Override any gcc2 internal prototype to avoid an error. */
15061 #ifdef __cplusplus
15062 extern "C"
15063 {
15064 #endif
15065 /* We use char because int might match the return type of a gcc2
15066 builtin and then its argument prototype would still apply. */
15067 char $ac_func ();
15068 /* The GNU C library defines this for functions which it implements
15069 to always fail with ENOSYS. Some functions are actually named
15070 something starting with __ and the normal name is an alias. */
15071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15072 choke me
15073 #else
15074 char (*f) () = $ac_func;
15075 #endif
15076 #ifdef __cplusplus
15077 }
15078 #endif
15079
15080 int
15081 main ()
15082 {
15083 return f != $ac_func;
15084 ;
15085 return 0;
15086 }
15087 _ACEOF
15088 rm -f conftest.$ac_objext conftest$ac_exeext
15089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15090 (eval $ac_link) 2>conftest.er1
15091 ac_status=$?
15092 grep -v '^ *+' conftest.er1 >conftest.err
15093 rm -f conftest.er1
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } &&
15097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; } &&
15103 { ac_try='test -s conftest$ac_exeext'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15106 ac_status=$?
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 eval "$as_ac_var=yes"
15110 else
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15113
15114 eval "$as_ac_var=no"
15115 fi
15116 rm -f conftest.err conftest.$ac_objext \
15117 conftest$ac_exeext conftest.$ac_ext
15118 fi
15119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15121 if test `eval echo '${'$as_ac_var'}'` = yes; then
15122 cat >>confdefs.h <<_ACEOF
15123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15124 _ACEOF
15125
15126 fi
15127 done
15128
15129 if test "x$ac_cv_func_fork" = xyes; then
15130 echo "$as_me:$LINENO: checking for working fork" >&5
15131 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15132 if test "${ac_cv_func_fork_works+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 else
15135 if test "$cross_compiling" = yes; then
15136 ac_cv_func_fork_works=cross
15137 else
15138 cat >conftest.$ac_ext <<_ACEOF
15139 /* confdefs.h. */
15140 _ACEOF
15141 cat confdefs.h >>conftest.$ac_ext
15142 cat >>conftest.$ac_ext <<_ACEOF
15143 /* end confdefs.h. */
15144 $ac_includes_default
15145 int
15146 main ()
15147 {
15148
15149 /* By Ruediger Kuhlmann. */
15150 if (fork() < 0)
15151 exit (1);
15152 exit (0);
15153
15154 ;
15155 return 0;
15156 }
15157 _ACEOF
15158 rm -f conftest$ac_exeext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15160 (eval $ac_link) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 ac_cv_func_fork_works=yes
15170 else
15171 echo "$as_me: program exited with status $ac_status" >&5
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15174
15175 ( exit $ac_status )
15176 ac_cv_func_fork_works=no
15177 fi
15178 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15179 fi
15180 fi
15181 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15182 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15183
15184 else
15185 ac_cv_func_fork_works=$ac_cv_func_fork
15186 fi
15187 if test "x$ac_cv_func_fork_works" = xcross; then
15188 case $host in
15189 *-*-amigaos* | *-*-msdosdjgpp*)
15190 # Override, as these systems have only a dummy fork() stub
15191 ac_cv_func_fork_works=no
15192 ;;
15193 *)
15194 ac_cv_func_fork_works=yes
15195 ;;
15196 esac
15197 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15198 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15199 fi
15200 ac_cv_func_vfork_works=$ac_cv_func_vfork
15201 if test "x$ac_cv_func_vfork" = xyes; then
15202 echo "$as_me:$LINENO: checking for working vfork" >&5
15203 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15204 if test "${ac_cv_func_vfork_works+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 else
15207 if test "$cross_compiling" = yes; then
15208 ac_cv_func_vfork_works=cross
15209 else
15210 cat >conftest.$ac_ext <<_ACEOF
15211 /* confdefs.h. */
15212 _ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 /* Thanks to Paul Eggert for this test. */
15217 #include <stdio.h>
15218 #include <stdlib.h>
15219 #include <sys/types.h>
15220 #include <sys/stat.h>
15221 #include <sys/wait.h>
15222 #if HAVE_UNISTD_H
15223 # include <unistd.h>
15224 #endif
15225 #if HAVE_VFORK_H
15226 # include <vfork.h>
15227 #endif
15228 /* On some sparc systems, changes by the child to local and incoming
15229 argument registers are propagated back to the parent. The compiler
15230 is told about this with #include <vfork.h>, but some compilers
15231 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15232 static variable whose address is put into a register that is
15233 clobbered by the vfork. */
15234 static void
15235 #ifdef __cplusplus
15236 sparc_address_test (int arg)
15237 # else
15238 sparc_address_test (arg) int arg;
15239 #endif
15240 {
15241 static pid_t child;
15242 if (!child) {
15243 child = vfork ();
15244 if (child < 0) {
15245 perror ("vfork");
15246 _exit(2);
15247 }
15248 if (!child) {
15249 arg = getpid();
15250 write(-1, "", 0);
15251 _exit (arg);
15252 }
15253 }
15254 }
15255
15256 int
15257 main ()
15258 {
15259 pid_t parent = getpid ();
15260 pid_t child;
15261
15262 sparc_address_test (0);
15263
15264 child = vfork ();
15265
15266 if (child == 0) {
15267 /* Here is another test for sparc vfork register problems. This
15268 test uses lots of local variables, at least as many local
15269 variables as main has allocated so far including compiler
15270 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15271 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15272 reuse the register of parent for one of the local variables,
15273 since it will think that parent can't possibly be used any more
15274 in this routine. Assigning to the local variable will thus
15275 munge parent in the parent process. */
15276 pid_t
15277 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15278 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15279 /* Convince the compiler that p..p7 are live; otherwise, it might
15280 use the same hardware register for all 8 local variables. */
15281 if (p != p1 || p != p2 || p != p3 || p != p4
15282 || p != p5 || p != p6 || p != p7)
15283 _exit(1);
15284
15285 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15286 from child file descriptors. If the child closes a descriptor
15287 before it execs or exits, this munges the parent's descriptor
15288 as well. Test for this by closing stdout in the child. */
15289 _exit(close(fileno(stdout)) != 0);
15290 } else {
15291 int status;
15292 struct stat st;
15293
15294 while (wait(&status) != child)
15295 ;
15296 exit(
15297 /* Was there some problem with vforking? */
15298 child < 0
15299
15300 /* Did the child fail? (This shouldn't happen.) */
15301 || status
15302
15303 /* Did the vfork/compiler bug occur? */
15304 || parent != getpid()
15305
15306 /* Did the file descriptor bug occur? */
15307 || fstat(fileno(stdout), &st) != 0
15308 );
15309 }
15310 }
15311 _ACEOF
15312 rm -f conftest$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314 (eval $ac_link) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; }; then
15323 ac_cv_func_vfork_works=yes
15324 else
15325 echo "$as_me: program exited with status $ac_status" >&5
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15328
15329 ( exit $ac_status )
15330 ac_cv_func_vfork_works=no
15331 fi
15332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15333 fi
15334 fi
15335 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15336 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15337
15338 fi;
15339 if test "x$ac_cv_func_fork_works" = xcross; then
15340 ac_cv_func_vfork_works=$ac_cv_func_vfork
15341 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15342 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15343 fi
15344
15345 if test "x$ac_cv_func_vfork_works" = xyes; then
15346
15347 cat >>confdefs.h <<\_ACEOF
15348 #define HAVE_WORKING_VFORK 1
15349 _ACEOF
15350
15351 else
15352
15353 cat >>confdefs.h <<\_ACEOF
15354 #define vfork fork
15355 _ACEOF
15356
15357 fi
15358 if test "x$ac_cv_func_fork_works" = xyes; then
15359
15360 cat >>confdefs.h <<\_ACEOF
15361 #define HAVE_WORKING_FORK 1
15362 _ACEOF
15363
15364 fi
15365
15366
15367
15368 for ac_func in canonicalize_file_name realpath
15369 do
15370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15371 echo "$as_me:$LINENO: checking for $ac_func" >&5
15372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15373 if eval "test \"\${$as_ac_var+set}\" = set"; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 else
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h. */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15384 #define $ac_func innocuous_$ac_func
15385
15386 /* System header to define __stub macros and hopefully few prototypes,
15387 which can conflict with char $ac_func (); below.
15388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15389 <limits.h> exists even on freestanding compilers. */
15390
15391 #ifdef __STDC__
15392 # include <limits.h>
15393 #else
15394 # include <assert.h>
15395 #endif
15396
15397 #undef $ac_func
15398
15399 /* Override any gcc2 internal prototype to avoid an error. */
15400 #ifdef __cplusplus
15401 extern "C"
15402 {
15403 #endif
15404 /* We use char because int might match the return type of a gcc2
15405 builtin and then its argument prototype would still apply. */
15406 char $ac_func ();
15407 /* The GNU C library defines this for functions which it implements
15408 to always fail with ENOSYS. Some functions are actually named
15409 something starting with __ and the normal name is an alias. */
15410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15411 choke me
15412 #else
15413 char (*f) () = $ac_func;
15414 #endif
15415 #ifdef __cplusplus
15416 }
15417 #endif
15418
15419 int
15420 main ()
15421 {
15422 return f != $ac_func;
15423 ;
15424 return 0;
15425 }
15426 _ACEOF
15427 rm -f conftest.$ac_objext conftest$ac_exeext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15429 (eval $ac_link) 2>conftest.er1
15430 ac_status=$?
15431 grep -v '^ *+' conftest.er1 >conftest.err
15432 rm -f conftest.er1
15433 cat conftest.err >&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } &&
15436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; } &&
15442 { ac_try='test -s conftest$ac_exeext'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448 eval "$as_ac_var=yes"
15449 else
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452
15453 eval "$as_ac_var=no"
15454 fi
15455 rm -f conftest.err conftest.$ac_objext \
15456 conftest$ac_exeext conftest.$ac_ext
15457 fi
15458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15460 if test `eval echo '${'$as_ac_var'}'` = yes; then
15461 cat >>confdefs.h <<_ACEOF
15462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15463 _ACEOF
15464
15465 fi
15466 done
15467
15468
15469
15470 for ac_func in getuid getgid
15471 do
15472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15473 echo "$as_me:$LINENO: checking for $ac_func" >&5
15474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15475 if eval "test \"\${$as_ac_var+set}\" = set"; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 else
15478 cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h. */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15486 #define $ac_func innocuous_$ac_func
15487
15488 /* System header to define __stub macros and hopefully few prototypes,
15489 which can conflict with char $ac_func (); below.
15490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15491 <limits.h> exists even on freestanding compilers. */
15492
15493 #ifdef __STDC__
15494 # include <limits.h>
15495 #else
15496 # include <assert.h>
15497 #endif
15498
15499 #undef $ac_func
15500
15501 /* Override any gcc2 internal prototype to avoid an error. */
15502 #ifdef __cplusplus
15503 extern "C"
15504 {
15505 #endif
15506 /* We use char because int might match the return type of a gcc2
15507 builtin and then its argument prototype would still apply. */
15508 char $ac_func ();
15509 /* The GNU C library defines this for functions which it implements
15510 to always fail with ENOSYS. Some functions are actually named
15511 something starting with __ and the normal name is an alias. */
15512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15513 choke me
15514 #else
15515 char (*f) () = $ac_func;
15516 #endif
15517 #ifdef __cplusplus
15518 }
15519 #endif
15520
15521 int
15522 main ()
15523 {
15524 return f != $ac_func;
15525 ;
15526 return 0;
15527 }
15528 _ACEOF
15529 rm -f conftest.$ac_objext conftest$ac_exeext
15530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15531 (eval $ac_link) 2>conftest.er1
15532 ac_status=$?
15533 grep -v '^ *+' conftest.er1 >conftest.err
15534 rm -f conftest.er1
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } &&
15538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; } &&
15544 { ac_try='test -s conftest$ac_exeext'
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
15550 eval "$as_ac_var=yes"
15551 else
15552 echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15554
15555 eval "$as_ac_var=no"
15556 fi
15557 rm -f conftest.err conftest.$ac_objext \
15558 conftest$ac_exeext conftest.$ac_ext
15559 fi
15560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15562 if test `eval echo '${'$as_ac_var'}'` = yes; then
15563 cat >>confdefs.h <<_ACEOF
15564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15565 _ACEOF
15566
15567 fi
15568 done
15569
15570
15571 for ac_func in poll
15572 do
15573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15574 echo "$as_me:$LINENO: checking for $ac_func" >&5
15575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15576 if eval "test \"\${$as_ac_var+set}\" = set"; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 else
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h. */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15587 #define $ac_func innocuous_$ac_func
15588
15589 /* System header to define __stub macros and hopefully few prototypes,
15590 which can conflict with char $ac_func (); below.
15591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15592 <limits.h> exists even on freestanding compilers. */
15593
15594 #ifdef __STDC__
15595 # include <limits.h>
15596 #else
15597 # include <assert.h>
15598 #endif
15599
15600 #undef $ac_func
15601
15602 /* Override any gcc2 internal prototype to avoid an error. */
15603 #ifdef __cplusplus
15604 extern "C"
15605 {
15606 #endif
15607 /* We use char because int might match the return type of a gcc2
15608 builtin and then its argument prototype would still apply. */
15609 char $ac_func ();
15610 /* The GNU C library defines this for functions which it implements
15611 to always fail with ENOSYS. Some functions are actually named
15612 something starting with __ and the normal name is an alias. */
15613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15614 choke me
15615 #else
15616 char (*f) () = $ac_func;
15617 #endif
15618 #ifdef __cplusplus
15619 }
15620 #endif
15621
15622 int
15623 main ()
15624 {
15625 return f != $ac_func;
15626 ;
15627 return 0;
15628 }
15629 _ACEOF
15630 rm -f conftest.$ac_objext conftest$ac_exeext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15632 (eval $ac_link) 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; } &&
15645 { ac_try='test -s conftest$ac_exeext'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15651 eval "$as_ac_var=yes"
15652 else
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15655
15656 eval "$as_ac_var=no"
15657 fi
15658 rm -f conftest.err conftest.$ac_objext \
15659 conftest$ac_exeext conftest.$ac_ext
15660 fi
15661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15663 if test `eval echo '${'$as_ac_var'}'` = yes; then
15664 cat >>confdefs.h <<_ACEOF
15665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15666 _ACEOF
15667
15668 fi
15669 done
15670
15671
15672 for ac_func in pread64
15673 do
15674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15675 echo "$as_me:$LINENO: checking for $ac_func" >&5
15676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15677 if eval "test \"\${$as_ac_var+set}\" = set"; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 else
15680 cat >conftest.$ac_ext <<_ACEOF
15681 /* confdefs.h. */
15682 _ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15688 #define $ac_func innocuous_$ac_func
15689
15690 /* System header to define __stub macros and hopefully few prototypes,
15691 which can conflict with char $ac_func (); below.
15692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15693 <limits.h> exists even on freestanding compilers. */
15694
15695 #ifdef __STDC__
15696 # include <limits.h>
15697 #else
15698 # include <assert.h>
15699 #endif
15700
15701 #undef $ac_func
15702
15703 /* Override any gcc2 internal prototype to avoid an error. */
15704 #ifdef __cplusplus
15705 extern "C"
15706 {
15707 #endif
15708 /* We use char because int might match the return type of a gcc2
15709 builtin and then its argument prototype would still apply. */
15710 char $ac_func ();
15711 /* The GNU C library defines this for functions which it implements
15712 to always fail with ENOSYS. Some functions are actually named
15713 something starting with __ and the normal name is an alias. */
15714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15715 choke me
15716 #else
15717 char (*f) () = $ac_func;
15718 #endif
15719 #ifdef __cplusplus
15720 }
15721 #endif
15722
15723 int
15724 main ()
15725 {
15726 return f != $ac_func;
15727 ;
15728 return 0;
15729 }
15730 _ACEOF
15731 rm -f conftest.$ac_objext conftest$ac_exeext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>conftest.er1
15734 ac_status=$?
15735 grep -v '^ *+' conftest.er1 >conftest.err
15736 rm -f conftest.er1
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
15740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try='test -s conftest$ac_exeext'
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 eval "$as_ac_var=yes"
15753 else
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15756
15757 eval "$as_ac_var=no"
15758 fi
15759 rm -f conftest.err conftest.$ac_objext \
15760 conftest$ac_exeext conftest.$ac_ext
15761 fi
15762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15764 if test `eval echo '${'$as_ac_var'}'` = yes; then
15765 cat >>confdefs.h <<_ACEOF
15766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15767 _ACEOF
15768
15769 fi
15770 done
15771
15772
15773 for ac_func in sbrk
15774 do
15775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15776 echo "$as_me:$LINENO: checking for $ac_func" >&5
15777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15778 if eval "test \"\${$as_ac_var+set}\" = set"; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 else
15781 cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h. */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15789 #define $ac_func innocuous_$ac_func
15790
15791 /* System header to define __stub macros and hopefully few prototypes,
15792 which can conflict with char $ac_func (); below.
15793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15794 <limits.h> exists even on freestanding compilers. */
15795
15796 #ifdef __STDC__
15797 # include <limits.h>
15798 #else
15799 # include <assert.h>
15800 #endif
15801
15802 #undef $ac_func
15803
15804 /* Override any gcc2 internal prototype to avoid an error. */
15805 #ifdef __cplusplus
15806 extern "C"
15807 {
15808 #endif
15809 /* We use char because int might match the return type of a gcc2
15810 builtin and then its argument prototype would still apply. */
15811 char $ac_func ();
15812 /* The GNU C library defines this for functions which it implements
15813 to always fail with ENOSYS. Some functions are actually named
15814 something starting with __ and the normal name is an alias. */
15815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15816 choke me
15817 #else
15818 char (*f) () = $ac_func;
15819 #endif
15820 #ifdef __cplusplus
15821 }
15822 #endif
15823
15824 int
15825 main ()
15826 {
15827 return f != $ac_func;
15828 ;
15829 return 0;
15830 }
15831 _ACEOF
15832 rm -f conftest.$ac_objext conftest$ac_exeext
15833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15834 (eval $ac_link) 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; } &&
15847 { ac_try='test -s conftest$ac_exeext'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15850 ac_status=$?
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; }; then
15853 eval "$as_ac_var=yes"
15854 else
15855 echo "$as_me: failed program was:" >&5
15856 sed 's/^/| /' conftest.$ac_ext >&5
15857
15858 eval "$as_ac_var=no"
15859 fi
15860 rm -f conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15862 fi
15863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15865 if test `eval echo '${'$as_ac_var'}'` = yes; then
15866 cat >>confdefs.h <<_ACEOF
15867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15868 _ACEOF
15869
15870 fi
15871 done
15872
15873
15874
15875 for ac_func in setpgid setpgrp
15876 do
15877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15878 echo "$as_me:$LINENO: checking for $ac_func" >&5
15879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15880 if eval "test \"\${$as_ac_var+set}\" = set"; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 else
15883 cat >conftest.$ac_ext <<_ACEOF
15884 /* confdefs.h. */
15885 _ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15891 #define $ac_func innocuous_$ac_func
15892
15893 /* System header to define __stub macros and hopefully few prototypes,
15894 which can conflict with char $ac_func (); below.
15895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15896 <limits.h> exists even on freestanding compilers. */
15897
15898 #ifdef __STDC__
15899 # include <limits.h>
15900 #else
15901 # include <assert.h>
15902 #endif
15903
15904 #undef $ac_func
15905
15906 /* Override any gcc2 internal prototype to avoid an error. */
15907 #ifdef __cplusplus
15908 extern "C"
15909 {
15910 #endif
15911 /* We use char because int might match the return type of a gcc2
15912 builtin and then its argument prototype would still apply. */
15913 char $ac_func ();
15914 /* The GNU C library defines this for functions which it implements
15915 to always fail with ENOSYS. Some functions are actually named
15916 something starting with __ and the normal name is an alias. */
15917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15918 choke me
15919 #else
15920 char (*f) () = $ac_func;
15921 #endif
15922 #ifdef __cplusplus
15923 }
15924 #endif
15925
15926 int
15927 main ()
15928 {
15929 return f != $ac_func;
15930 ;
15931 return 0;
15932 }
15933 _ACEOF
15934 rm -f conftest.$ac_objext conftest$ac_exeext
15935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15936 (eval $ac_link) 2>conftest.er1
15937 ac_status=$?
15938 grep -v '^ *+' conftest.er1 >conftest.err
15939 rm -f conftest.er1
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; } &&
15949 { ac_try='test -s conftest$ac_exeext'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
15955 eval "$as_ac_var=yes"
15956 else
15957 echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15959
15960 eval "$as_ac_var=no"
15961 fi
15962 rm -f conftest.err conftest.$ac_objext \
15963 conftest$ac_exeext conftest.$ac_ext
15964 fi
15965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15967 if test `eval echo '${'$as_ac_var'}'` = yes; then
15968 cat >>confdefs.h <<_ACEOF
15969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15970 _ACEOF
15971
15972 fi
15973 done
15974
15975
15976
15977
15978 for ac_func in sigaction sigprocmask sigsetmask
15979 do
15980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15981 echo "$as_me:$LINENO: checking for $ac_func" >&5
15982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15983 if eval "test \"\${$as_ac_var+set}\" = set"; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 else
15986 cat >conftest.$ac_ext <<_ACEOF
15987 /* confdefs.h. */
15988 _ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15994 #define $ac_func innocuous_$ac_func
15995
15996 /* System header to define __stub macros and hopefully few prototypes,
15997 which can conflict with char $ac_func (); below.
15998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15999 <limits.h> exists even on freestanding compilers. */
16000
16001 #ifdef __STDC__
16002 # include <limits.h>
16003 #else
16004 # include <assert.h>
16005 #endif
16006
16007 #undef $ac_func
16008
16009 /* Override any gcc2 internal prototype to avoid an error. */
16010 #ifdef __cplusplus
16011 extern "C"
16012 {
16013 #endif
16014 /* We use char because int might match the return type of a gcc2
16015 builtin and then its argument prototype would still apply. */
16016 char $ac_func ();
16017 /* The GNU C library defines this for functions which it implements
16018 to always fail with ENOSYS. Some functions are actually named
16019 something starting with __ and the normal name is an alias. */
16020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16021 choke me
16022 #else
16023 char (*f) () = $ac_func;
16024 #endif
16025 #ifdef __cplusplus
16026 }
16027 #endif
16028
16029 int
16030 main ()
16031 {
16032 return f != $ac_func;
16033 ;
16034 return 0;
16035 }
16036 _ACEOF
16037 rm -f conftest.$ac_objext conftest$ac_exeext
16038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16039 (eval $ac_link) 2>conftest.er1
16040 ac_status=$?
16041 grep -v '^ *+' conftest.er1 >conftest.err
16042 rm -f conftest.er1
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
16046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; } &&
16052 { ac_try='test -s conftest$ac_exeext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 eval "$as_ac_var=yes"
16059 else
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16062
16063 eval "$as_ac_var=no"
16064 fi
16065 rm -f conftest.err conftest.$ac_objext \
16066 conftest$ac_exeext conftest.$ac_ext
16067 fi
16068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16070 if test `eval echo '${'$as_ac_var'}'` = yes; then
16071 cat >>confdefs.h <<_ACEOF
16072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16073 _ACEOF
16074
16075 fi
16076 done
16077
16078
16079 for ac_func in socketpair
16080 do
16081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16082 echo "$as_me:$LINENO: checking for $ac_func" >&5
16083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16084 if eval "test \"\${$as_ac_var+set}\" = set"; then
16085 echo $ECHO_N "(cached) $ECHO_C" >&6
16086 else
16087 cat >conftest.$ac_ext <<_ACEOF
16088 /* confdefs.h. */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h. */
16093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16095 #define $ac_func innocuous_$ac_func
16096
16097 /* System header to define __stub macros and hopefully few prototypes,
16098 which can conflict with char $ac_func (); below.
16099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16100 <limits.h> exists even on freestanding compilers. */
16101
16102 #ifdef __STDC__
16103 # include <limits.h>
16104 #else
16105 # include <assert.h>
16106 #endif
16107
16108 #undef $ac_func
16109
16110 /* Override any gcc2 internal prototype to avoid an error. */
16111 #ifdef __cplusplus
16112 extern "C"
16113 {
16114 #endif
16115 /* We use char because int might match the return type of a gcc2
16116 builtin and then its argument prototype would still apply. */
16117 char $ac_func ();
16118 /* The GNU C library defines this for functions which it implements
16119 to always fail with ENOSYS. Some functions are actually named
16120 something starting with __ and the normal name is an alias. */
16121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16122 choke me
16123 #else
16124 char (*f) () = $ac_func;
16125 #endif
16126 #ifdef __cplusplus
16127 }
16128 #endif
16129
16130 int
16131 main ()
16132 {
16133 return f != $ac_func;
16134 ;
16135 return 0;
16136 }
16137 _ACEOF
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16140 (eval $ac_link) 2>conftest.er1
16141 ac_status=$?
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; } &&
16153 { ac_try='test -s conftest$ac_exeext'
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; }; then
16159 eval "$as_ac_var=yes"
16160 else
16161 echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.$ac_ext >&5
16163
16164 eval "$as_ac_var=no"
16165 fi
16166 rm -f conftest.err conftest.$ac_objext \
16167 conftest$ac_exeext conftest.$ac_ext
16168 fi
16169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16171 if test `eval echo '${'$as_ac_var'}'` = yes; then
16172 cat >>confdefs.h <<_ACEOF
16173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16174 _ACEOF
16175
16176 fi
16177 done
16178
16179
16180 for ac_func in syscall
16181 do
16182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16183 echo "$as_me:$LINENO: checking for $ac_func" >&5
16184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16185 if eval "test \"\${$as_ac_var+set}\" = set"; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 else
16188 cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h. */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16196 #define $ac_func innocuous_$ac_func
16197
16198 /* System header to define __stub macros and hopefully few prototypes,
16199 which can conflict with char $ac_func (); below.
16200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16201 <limits.h> exists even on freestanding compilers. */
16202
16203 #ifdef __STDC__
16204 # include <limits.h>
16205 #else
16206 # include <assert.h>
16207 #endif
16208
16209 #undef $ac_func
16210
16211 /* Override any gcc2 internal prototype to avoid an error. */
16212 #ifdef __cplusplus
16213 extern "C"
16214 {
16215 #endif
16216 /* We use char because int might match the return type of a gcc2
16217 builtin and then its argument prototype would still apply. */
16218 char $ac_func ();
16219 /* The GNU C library defines this for functions which it implements
16220 to always fail with ENOSYS. Some functions are actually named
16221 something starting with __ and the normal name is an alias. */
16222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16223 choke me
16224 #else
16225 char (*f) () = $ac_func;
16226 #endif
16227 #ifdef __cplusplus
16228 }
16229 #endif
16230
16231 int
16232 main ()
16233 {
16234 return f != $ac_func;
16235 ;
16236 return 0;
16237 }
16238 _ACEOF
16239 rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16241 (eval $ac_link) 2>conftest.er1
16242 ac_status=$?
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
16248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; } &&
16254 { ac_try='test -s conftest$ac_exeext'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 eval "$as_ac_var=yes"
16261 else
16262 echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 eval "$as_ac_var=no"
16266 fi
16267 rm -f conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
16269 fi
16270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16272 if test `eval echo '${'$as_ac_var'}'` = yes; then
16273 cat >>confdefs.h <<_ACEOF
16274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16275 _ACEOF
16276
16277 fi
16278 done
16279
16280
16281 for ac_func in ttrace
16282 do
16283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16284 echo "$as_me:$LINENO: checking for $ac_func" >&5
16285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16286 if eval "test \"\${$as_ac_var+set}\" = set"; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16288 else
16289 cat >conftest.$ac_ext <<_ACEOF
16290 /* confdefs.h. */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16297 #define $ac_func innocuous_$ac_func
16298
16299 /* System header to define __stub macros and hopefully few prototypes,
16300 which can conflict with char $ac_func (); below.
16301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16302 <limits.h> exists even on freestanding compilers. */
16303
16304 #ifdef __STDC__
16305 # include <limits.h>
16306 #else
16307 # include <assert.h>
16308 #endif
16309
16310 #undef $ac_func
16311
16312 /* Override any gcc2 internal prototype to avoid an error. */
16313 #ifdef __cplusplus
16314 extern "C"
16315 {
16316 #endif
16317 /* We use char because int might match the return type of a gcc2
16318 builtin and then its argument prototype would still apply. */
16319 char $ac_func ();
16320 /* The GNU C library defines this for functions which it implements
16321 to always fail with ENOSYS. Some functions are actually named
16322 something starting with __ and the normal name is an alias. */
16323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16324 choke me
16325 #else
16326 char (*f) () = $ac_func;
16327 #endif
16328 #ifdef __cplusplus
16329 }
16330 #endif
16331
16332 int
16333 main ()
16334 {
16335 return f != $ac_func;
16336 ;
16337 return 0;
16338 }
16339 _ACEOF
16340 rm -f conftest.$ac_objext conftest$ac_exeext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16342 (eval $ac_link) 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16352 ac_status=$?
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; } &&
16355 { ac_try='test -s conftest$ac_exeext'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; }; then
16361 eval "$as_ac_var=yes"
16362 else
16363 echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16365
16366 eval "$as_ac_var=no"
16367 fi
16368 rm -f conftest.err conftest.$ac_objext \
16369 conftest$ac_exeext conftest.$ac_ext
16370 fi
16371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16373 if test `eval echo '${'$as_ac_var'}'` = yes; then
16374 cat >>confdefs.h <<_ACEOF
16375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16376 _ACEOF
16377
16378 fi
16379 done
16380
16381
16382 for ac_func in wborder
16383 do
16384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16385 echo "$as_me:$LINENO: checking for $ac_func" >&5
16386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16387 if eval "test \"\${$as_ac_var+set}\" = set"; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16389 else
16390 cat >conftest.$ac_ext <<_ACEOF
16391 /* confdefs.h. */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16398 #define $ac_func innocuous_$ac_func
16399
16400 /* System header to define __stub macros and hopefully few prototypes,
16401 which can conflict with char $ac_func (); below.
16402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16403 <limits.h> exists even on freestanding compilers. */
16404
16405 #ifdef __STDC__
16406 # include <limits.h>
16407 #else
16408 # include <assert.h>
16409 #endif
16410
16411 #undef $ac_func
16412
16413 /* Override any gcc2 internal prototype to avoid an error. */
16414 #ifdef __cplusplus
16415 extern "C"
16416 {
16417 #endif
16418 /* We use char because int might match the return type of a gcc2
16419 builtin and then its argument prototype would still apply. */
16420 char $ac_func ();
16421 /* The GNU C library defines this for functions which it implements
16422 to always fail with ENOSYS. Some functions are actually named
16423 something starting with __ and the normal name is an alias. */
16424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16425 choke me
16426 #else
16427 char (*f) () = $ac_func;
16428 #endif
16429 #ifdef __cplusplus
16430 }
16431 #endif
16432
16433 int
16434 main ()
16435 {
16436 return f != $ac_func;
16437 ;
16438 return 0;
16439 }
16440 _ACEOF
16441 rm -f conftest.$ac_objext conftest$ac_exeext
16442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16443 (eval $ac_link) 2>conftest.er1
16444 ac_status=$?
16445 grep -v '^ *+' conftest.er1 >conftest.err
16446 rm -f conftest.er1
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } &&
16450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16453 ac_status=$?
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; } &&
16456 { ac_try='test -s conftest$ac_exeext'
16457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458 (eval $ac_try) 2>&5
16459 ac_status=$?
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; }; then
16462 eval "$as_ac_var=yes"
16463 else
16464 echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16466
16467 eval "$as_ac_var=no"
16468 fi
16469 rm -f conftest.err conftest.$ac_objext \
16470 conftest$ac_exeext conftest.$ac_ext
16471 fi
16472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16474 if test `eval echo '${'$as_ac_var'}'` = yes; then
16475 cat >>confdefs.h <<_ACEOF
16476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16477 _ACEOF
16478
16479 fi
16480 done
16481
16482
16483 # Check the return and argument types of ptrace. No canned test for
16484 # this, so roll our own.
16485 gdb_ptrace_headers='
16486 #if HAVE_SYS_TYPES_H
16487 # include <sys/types.h>
16488 #endif
16489 #if HAVE_SYS_PTRACE_H
16490 # include <sys/ptrace.h>
16491 #endif
16492 #if HAVE_UNISTD_H
16493 # include <unistd.h>
16494 #endif
16495 '
16496 # There is no point in checking if we don't have a prototype.
16497 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16498 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16499 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16501 else
16502 cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h. */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16508 $gdb_ptrace_headers
16509
16510 int
16511 main ()
16512 {
16513 #ifndef ptrace
16514 char *p = (char *) ptrace;
16515 #endif
16516
16517 ;
16518 return 0;
16519 }
16520 _ACEOF
16521 rm -f conftest.$ac_objext
16522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16523 (eval $ac_compile) 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } &&
16530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest.$ac_objext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_cv_have_decl_ptrace=yes
16543 else
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547 ac_cv_have_decl_ptrace=no
16548 fi
16549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16550 fi
16551 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16552 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16553 if test $ac_cv_have_decl_ptrace = yes; then
16554
16555 cat >>confdefs.h <<_ACEOF
16556 #define HAVE_DECL_PTRACE 1
16557 _ACEOF
16558
16559
16560 else
16561 cat >>confdefs.h <<_ACEOF
16562 #define HAVE_DECL_PTRACE 0
16563 _ACEOF
16564
16565
16566 : ${gdb_cv_func_ptrace_ret='int'}
16567 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16568
16569 fi
16570
16571
16572 # Check return type.
16573 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16574 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16575 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 else
16578 cat >conftest.$ac_ext <<_ACEOF
16579 /* confdefs.h. */
16580 _ACEOF
16581 cat confdefs.h >>conftest.$ac_ext
16582 cat >>conftest.$ac_ext <<_ACEOF
16583 /* end confdefs.h. */
16584 $gdb_ptrace_headers
16585 int
16586 main ()
16587 {
16588 extern int ptrace ();
16589 ;
16590 return 0;
16591 }
16592 _ACEOF
16593 rm -f conftest.$ac_objext
16594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16595 (eval $ac_compile) 2>conftest.er1
16596 ac_status=$?
16597 grep -v '^ *+' conftest.er1 >conftest.err
16598 rm -f conftest.er1
16599 cat conftest.err >&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } &&
16602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; } &&
16608 { ac_try='test -s conftest.$ac_objext'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 gdb_cv_func_ptrace_ret='int'
16615 else
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16618
16619 gdb_cv_func_ptrace_ret='long'
16620 fi
16621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16622 fi
16623 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16624 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16625
16626 cat >>confdefs.h <<_ACEOF
16627 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16628 _ACEOF
16629
16630 # Check argument types.
16631 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16632 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16633 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 else
16636
16637 for gdb_arg1 in 'int' 'long'; do
16638 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16639 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16640 for gdb_arg4 in 'int' 'long'; do
16641 cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h. */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 $gdb_ptrace_headers
16648 int
16649 main ()
16650 {
16651
16652 extern $gdb_cv_func_ptrace_ret
16653 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16654
16655 ;
16656 return 0;
16657 }
16658 _ACEOF
16659 rm -f conftest.$ac_objext
16660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16661 (eval $ac_compile) 2>conftest.er1
16662 ac_status=$?
16663 grep -v '^ *+' conftest.er1 >conftest.err
16664 rm -f conftest.er1
16665 cat conftest.err >&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
16668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest.$ac_objext'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
16680 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16681 break 4;
16682 else
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16685
16686 fi
16687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16688 for gdb_arg5 in 'int *' 'int' 'long'; do
16689 cat >conftest.$ac_ext <<_ACEOF
16690 /* confdefs.h. */
16691 _ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16695 $gdb_ptrace_headers
16696 int
16697 main ()
16698 {
16699
16700 extern $gdb_cv_func_ptrace_ret
16701 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16702
16703 ;
16704 return 0;
16705 }
16706 _ACEOF
16707 rm -f conftest.$ac_objext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16709 (eval $ac_compile) 2>conftest.er1
16710 ac_status=$?
16711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; } &&
16722 { ac_try='test -s conftest.$ac_objext'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728
16729 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16730 break 5;
16731 else
16732 echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16734
16735 fi
16736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16737 done
16738 done
16739 done
16740 done
16741 done
16742 # Provide a safe default value.
16743 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16744
16745 fi
16746 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16747 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16748 ac_save_IFS=$IFS; IFS=','
16749 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16750 IFS=$ac_save_IFS
16751 shift
16752
16753 cat >>confdefs.h <<_ACEOF
16754 #define PTRACE_TYPE_ARG3 $3
16755 _ACEOF
16756
16757 if test -n "$5"; then
16758
16759 cat >>confdefs.h <<_ACEOF
16760 #define PTRACE_TYPE_ARG5 $5
16761 _ACEOF
16762
16763 fi
16764
16765 if test "$cross_compiling" = no; then
16766 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16767 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16768 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771 if test "$cross_compiling" = yes; then
16772 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16773 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16774 { (exit 1); exit 1; }; }
16775 else
16776 cat >conftest.$ac_ext <<_ACEOF
16777 /* confdefs.h. */
16778 _ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16782 #if HAVE_UNISTD_H
16783 # include <unistd.h>
16784 #endif
16785
16786 int
16787 main ()
16788 {
16789 /* If this system has a BSD-style setpgrp which takes arguments,
16790 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16791 exit successfully. */
16792 exit (setpgrp (1,1) == -1 ? 0 : 1);
16793 ;
16794 return 0;
16795 }
16796 _ACEOF
16797 rm -f conftest$ac_exeext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16799 (eval $ac_link) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16808 ac_cv_func_setpgrp_void=no
16809 else
16810 echo "$as_me: program exited with status $ac_status" >&5
16811 echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16813
16814 ( exit $ac_status )
16815 ac_cv_func_setpgrp_void=yes
16816 fi
16817 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16818 fi
16819 fi
16820 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16821 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16822 if test $ac_cv_func_setpgrp_void = yes; then
16823
16824 cat >>confdefs.h <<\_ACEOF
16825 #define SETPGRP_VOID 1
16826 _ACEOF
16827
16828 fi
16829
16830 else
16831 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16832 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16833 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836 cat >conftest.$ac_ext <<_ACEOF
16837 /* confdefs.h. */
16838 _ACEOF
16839 cat confdefs.h >>conftest.$ac_ext
16840 cat >>conftest.$ac_ext <<_ACEOF
16841 /* end confdefs.h. */
16842
16843 #include <unistd.h>
16844
16845 int
16846 main ()
16847 {
16848
16849 if (setpgrp(1,1) == -1)
16850 exit (0);
16851 else
16852 exit (1);
16853
16854 ;
16855 return 0;
16856 }
16857 _ACEOF
16858 rm -f conftest.$ac_objext
16859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16860 (eval $ac_compile) 2>conftest.er1
16861 ac_status=$?
16862 grep -v '^ *+' conftest.er1 >conftest.err
16863 rm -f conftest.er1
16864 cat conftest.err >&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } &&
16867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16870 ac_status=$?
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; } &&
16873 { ac_try='test -s conftest.$ac_objext'
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; }; then
16879 ac_cv_func_setpgrp_void=no
16880 else
16881 echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16883
16884 ac_cv_func_setpgrp_void=yes
16885 fi
16886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16887 fi
16888 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16889 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16890 if test $ac_cv_func_setpgrp_void = yes; then
16891 cat >>confdefs.h <<\_ACEOF
16892 #define SETPGRP_VOID 1
16893 _ACEOF
16894
16895 fi
16896 fi
16897
16898 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16899 # since sigsetjmp might only be defined as a macro.
16900 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16901 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16902 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16903 echo $ECHO_N "(cached) $ECHO_C" >&6
16904 else
16905 cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h. */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911
16912 #include <setjmp.h>
16913
16914 int
16915 main ()
16916 {
16917 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16918 ;
16919 return 0;
16920 }
16921 _ACEOF
16922 rm -f conftest.$ac_objext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16924 (eval $ac_compile) 2>conftest.er1
16925 ac_status=$?
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } &&
16931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 gdb_cv_func_sigsetjmp=yes
16944 else
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16947
16948 gdb_cv_func_sigsetjmp=no
16949 fi
16950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16951 fi
16952 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16953 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16954 if test $gdb_cv_func_sigsetjmp = yes; then
16955
16956 cat >>confdefs.h <<\_ACEOF
16957 #define HAVE_SIGSETJMP 1
16958 _ACEOF
16959
16960 fi
16961
16962 # Assume we'll default to using the included libiberty regex.
16963 gdb_use_included_regex=yes
16964
16965 # However, if the system regex is GNU regex, then default to *not*
16966 # using the included regex.
16967 echo "$as_me:$LINENO: checking for GNU regex" >&5
16968 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16969 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 else
16972 cat >conftest.$ac_ext <<_ACEOF
16973 /* confdefs.h. */
16974 _ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 #include <gnu-versions.h>
16979 int
16980 main ()
16981 {
16982 #define REGEX_INTERFACE_VERSION 1
16983 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16984 # error "Version mismatch"
16985 #endif
16986 ;
16987 return 0;
16988 }
16989 _ACEOF
16990 rm -f conftest.$ac_objext
16991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16992 (eval $ac_compile) 2>conftest.er1
16993 ac_status=$?
16994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest.$ac_objext'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17008 ac_status=$?
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
17011 gdb_cv_have_gnu_regex=yes
17012 else
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17015
17016 gdb_cv_have_gnu_regex=no
17017 fi
17018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17019 fi
17020 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
17021 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
17022 if test $gdb_cv_have_gnu_regex = yes; then
17023 gdb_use_included_regex=no
17024 fi
17025
17026
17027 # Check whether --with-included-regex or --without-included-regex was given.
17028 if test "${with_included_regex+set}" = set; then
17029 withval="$with_included_regex"
17030 gdb_with_regex=$withval
17031 else
17032 gdb_with_regex=$gdb_use_included_regex
17033 fi;
17034 if test "$gdb_with_regex" = yes; then
17035
17036 cat >>confdefs.h <<\_ACEOF
17037 #define USE_INCLUDED_REGEX 1
17038 _ACEOF
17039
17040 fi
17041
17042 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
17043 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
17044 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
17045 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048 cat >conftest.$ac_ext <<_ACEOF
17049 /* confdefs.h. */
17050 _ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h. */
17054 #include <sys/param.h>
17055 #include <sys/proc.h>
17056
17057
17058 int
17059 main ()
17060 {
17061 static struct thread ac_aggr;
17062 if (ac_aggr.td_pcb)
17063 return 0;
17064 ;
17065 return 0;
17066 }
17067 _ACEOF
17068 rm -f conftest.$ac_objext
17069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17070 (eval $ac_compile) 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; } &&
17083 { ac_try='test -s conftest.$ac_objext'
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
17089 ac_cv_member_struct_thread_td_pcb=yes
17090 else
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17093
17094 cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h. */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17100 #include <sys/param.h>
17101 #include <sys/proc.h>
17102
17103
17104 int
17105 main ()
17106 {
17107 static struct thread ac_aggr;
17108 if (sizeof ac_aggr.td_pcb)
17109 return 0;
17110 ;
17111 return 0;
17112 }
17113 _ACEOF
17114 rm -f conftest.$ac_objext
17115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17116 (eval $ac_compile) 2>conftest.er1
17117 ac_status=$?
17118 grep -v '^ *+' conftest.er1 >conftest.err
17119 rm -f conftest.er1
17120 cat conftest.err >&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } &&
17123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } &&
17129 { ac_try='test -s conftest.$ac_objext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 ac_cv_member_struct_thread_td_pcb=yes
17136 else
17137 echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17139
17140 ac_cv_member_struct_thread_td_pcb=no
17141 fi
17142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17143 fi
17144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17145 fi
17146 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
17147 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
17148 if test $ac_cv_member_struct_thread_td_pcb = yes; then
17149
17150 cat >>confdefs.h <<_ACEOF
17151 #define HAVE_STRUCT_THREAD_TD_PCB 1
17152 _ACEOF
17153
17154
17155 fi
17156
17157
17158 # See if <sys/lwp.h> defines `struct lwp`.
17159 echo "$as_me:$LINENO: checking for struct lwp" >&5
17160 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
17161 if test "${gdb_cv_struct_lwp+set}" = set; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17163 else
17164 cat >conftest.$ac_ext <<_ACEOF
17165 /* confdefs.h. */
17166 _ACEOF
17167 cat confdefs.h >>conftest.$ac_ext
17168 cat >>conftest.$ac_ext <<_ACEOF
17169 /* end confdefs.h. */
17170 #include <sys/param.h>
17171 #include <sys/lwp.h>
17172 int
17173 main ()
17174 {
17175 struct lwp l;
17176 ;
17177 return 0;
17178 }
17179 _ACEOF
17180 rm -f conftest.$ac_objext
17181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17182 (eval $ac_compile) 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191 (eval $ac_try) 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; } &&
17195 { ac_try='test -s conftest.$ac_objext'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17198 ac_status=$?
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
17201 gdb_cv_struct_lwp=yes
17202 else
17203 echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17205
17206 gdb_cv_struct_lwp=no
17207 fi
17208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17209 fi
17210 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
17211 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
17212 if test $gdb_cv_struct_lwp = yes; then
17213
17214 cat >>confdefs.h <<\_ACEOF
17215 #define HAVE_STRUCT_LWP 1
17216 _ACEOF
17217
17218 fi
17219
17220 # See if <machine/reg.h> degines `struct reg'.
17221 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
17222 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
17223 if test "${gdb_cv_struct_reg+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226 cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h. */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 #include <sys/types.h>
17233 #include <machine/reg.h>
17234 int
17235 main ()
17236 {
17237 struct reg r;
17238 ;
17239 return 0;
17240 }
17241 _ACEOF
17242 rm -f conftest.$ac_objext
17243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17244 (eval $ac_compile) 2>conftest.er1
17245 ac_status=$?
17246 grep -v '^ *+' conftest.er1 >conftest.err
17247 rm -f conftest.er1
17248 cat conftest.err >&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
17251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest.$ac_objext'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 gdb_cv_struct_reg=yes
17264 else
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268 gdb_cv_struct_reg=no
17269 fi
17270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17271 fi
17272 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
17273 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
17274 if test $gdb_cv_struct_reg = yes; then
17275
17276 cat >>confdefs.h <<\_ACEOF
17277 #define HAVE_STRUCT_REG 1
17278 _ACEOF
17279
17280 fi
17281
17282 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
17283 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
17284 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
17285 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
17286 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289 cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h. */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17295 #include <machine/reg.h>
17296
17297 int
17298 main ()
17299 {
17300 static struct reg ac_aggr;
17301 if (ac_aggr.r_fs)
17302 return 0;
17303 ;
17304 return 0;
17305 }
17306 _ACEOF
17307 rm -f conftest.$ac_objext
17308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17309 (eval $ac_compile) 2>conftest.er1
17310 ac_status=$?
17311 grep -v '^ *+' conftest.er1 >conftest.err
17312 rm -f conftest.er1
17313 cat conftest.err >&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } &&
17316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest.$ac_objext'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 ac_cv_member_struct_reg_r_fs=yes
17329 else
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17332
17333 cat >conftest.$ac_ext <<_ACEOF
17334 /* confdefs.h. */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17339 #include <machine/reg.h>
17340
17341 int
17342 main ()
17343 {
17344 static struct reg ac_aggr;
17345 if (sizeof ac_aggr.r_fs)
17346 return 0;
17347 ;
17348 return 0;
17349 }
17350 _ACEOF
17351 rm -f conftest.$ac_objext
17352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17353 (eval $ac_compile) 2>conftest.er1
17354 ac_status=$?
17355 grep -v '^ *+' conftest.er1 >conftest.err
17356 rm -f conftest.er1
17357 cat conftest.err >&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } &&
17360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; } &&
17366 { ac_try='test -s conftest.$ac_objext'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372 ac_cv_member_struct_reg_r_fs=yes
17373 else
17374 echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17376
17377 ac_cv_member_struct_reg_r_fs=no
17378 fi
17379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17380 fi
17381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17382 fi
17383 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17384 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17385 if test $ac_cv_member_struct_reg_r_fs = yes; then
17386
17387 cat >>confdefs.h <<_ACEOF
17388 #define HAVE_STRUCT_REG_R_FS 1
17389 _ACEOF
17390
17391
17392 fi
17393 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17394 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17395 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398 cat >conftest.$ac_ext <<_ACEOF
17399 /* confdefs.h. */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17404 #include <machine/reg.h>
17405
17406 int
17407 main ()
17408 {
17409 static struct reg ac_aggr;
17410 if (ac_aggr.r_gs)
17411 return 0;
17412 ;
17413 return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17418 (eval $ac_compile) 2>conftest.er1
17419 ac_status=$?
17420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest.$ac_objext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_member_struct_reg_r_gs=yes
17438 else
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442 cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h. */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 #include <machine/reg.h>
17449
17450 int
17451 main ()
17452 {
17453 static struct reg ac_aggr;
17454 if (sizeof ac_aggr.r_gs)
17455 return 0;
17456 ;
17457 return 0;
17458 }
17459 _ACEOF
17460 rm -f conftest.$ac_objext
17461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17462 (eval $ac_compile) 2>conftest.er1
17463 ac_status=$?
17464 grep -v '^ *+' conftest.er1 >conftest.err
17465 rm -f conftest.er1
17466 cat conftest.err >&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } &&
17469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; } &&
17475 { ac_try='test -s conftest.$ac_objext'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 ac_cv_member_struct_reg_r_gs=yes
17482 else
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17485
17486 ac_cv_member_struct_reg_r_gs=no
17487 fi
17488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17489 fi
17490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17491 fi
17492 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17493 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17494 if test $ac_cv_member_struct_reg_r_gs = yes; then
17495
17496 cat >>confdefs.h <<_ACEOF
17497 #define HAVE_STRUCT_REG_R_GS 1
17498 _ACEOF
17499
17500
17501 fi
17502
17503
17504 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17505 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17506 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17507 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510 cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h. */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17516 #include <sys/ptrace.h>
17517 int
17518 main ()
17519 {
17520 PTRACE_GETREGS;
17521 ;
17522 return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17527 (eval $ac_compile) 2>conftest.er1
17528 ac_status=$?
17529 grep -v '^ *+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
17534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest.$ac_objext'
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; }; then
17546 gdb_cv_have_ptrace_getregs=yes
17547 else
17548 echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17550
17551 gdb_cv_have_ptrace_getregs=no
17552 fi
17553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17554 fi
17555
17556 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17557 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17558 if test $gdb_cv_have_ptrace_getregs = yes; then
17559
17560 cat >>confdefs.h <<\_ACEOF
17561 #define HAVE_PTRACE_GETREGS 1
17562 _ACEOF
17563
17564 fi
17565
17566 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17567 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17568 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17569 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17570 echo $ECHO_N "(cached) $ECHO_C" >&6
17571 else
17572 cat >conftest.$ac_ext <<_ACEOF
17573 /* confdefs.h. */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17578 #include <sys/ptrace.h>
17579 int
17580 main ()
17581 {
17582 PTRACE_GETFPXREGS;
17583 ;
17584 return 0;
17585 }
17586 _ACEOF
17587 rm -f conftest.$ac_objext
17588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17589 (eval $ac_compile) 2>conftest.er1
17590 ac_status=$?
17591 grep -v '^ *+' conftest.er1 >conftest.err
17592 rm -f conftest.er1
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } &&
17596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest.$ac_objext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 gdb_cv_have_ptrace_getfpxregs=yes
17609 else
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17612
17613 gdb_cv_have_ptrace_getfpxregs=no
17614 fi
17615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17616 fi
17617
17618 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17619 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17620 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17621
17622 cat >>confdefs.h <<\_ACEOF
17623 #define HAVE_PTRACE_GETFPXREGS 1
17624 _ACEOF
17625
17626 fi
17627
17628 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17629 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17630 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17631 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17633 else
17634 cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h. */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 #include <sys/types.h>
17641 #include <sys/ptrace.h>
17642 int
17643 main ()
17644 {
17645 PT_GETDBREGS;
17646 ;
17647 return 0;
17648 }
17649 _ACEOF
17650 rm -f conftest.$ac_objext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17652 (eval $ac_compile) 2>conftest.er1
17653 ac_status=$?
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try='test -s conftest.$ac_objext'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671 gdb_cv_have_pt_getdbregs=yes
17672 else
17673 echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17675
17676 gdb_cv_have_pt_getdbregs=no
17677 fi
17678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17679 fi
17680
17681 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17682 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17683 if test $gdb_cv_have_pt_getdbregs = yes; then
17684
17685 cat >>confdefs.h <<\_ACEOF
17686 #define HAVE_PT_GETDBREGS 1
17687 _ACEOF
17688
17689 fi
17690
17691 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17692 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17693 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17694 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17696 else
17697 cat >conftest.$ac_ext <<_ACEOF
17698 /* confdefs.h. */
17699 _ACEOF
17700 cat confdefs.h >>conftest.$ac_ext
17701 cat >>conftest.$ac_ext <<_ACEOF
17702 /* end confdefs.h. */
17703 #include <sys/types.h>
17704 #include <sys/ptrace.h>
17705 int
17706 main ()
17707 {
17708 PT_GETXMMREGS;
17709 ;
17710 return 0;
17711 }
17712 _ACEOF
17713 rm -f conftest.$ac_objext
17714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17715 (eval $ac_compile) 2>conftest.er1
17716 ac_status=$?
17717 grep -v '^ *+' conftest.er1 >conftest.err
17718 rm -f conftest.er1
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try='test -s conftest.$ac_objext'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 gdb_cv_have_pt_getxmmregs=yes
17735 else
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17738
17739 gdb_cv_have_pt_getxmmregs=no
17740 fi
17741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17742 fi
17743
17744 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17745 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17746 if test $gdb_cv_have_pt_getxmmregs = yes; then
17747
17748 cat >>confdefs.h <<\_ACEOF
17749 #define HAVE_PT_GETXMMREGS 1
17750 _ACEOF
17751
17752 fi
17753
17754 # If we are configured native on GNU/Linux, work around problems with
17755 # sys/procfs.h
17756 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
17757
17758 if test "${target}" = "${host}"; then
17759 case "${host}" in
17760 i[3456]86-*-linux*)
17761
17762 cat >>confdefs.h <<\_ACEOF
17763 #define START_INFERIOR_TRAPS_EXPECTED 2
17764 _ACEOF
17765
17766
17767 cat >>confdefs.h <<\_ACEOF
17768 #define sys_quotactl 1
17769 _ACEOF
17770
17771 ;;
17772 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17773
17774 cat >>confdefs.h <<\_ACEOF
17775 #define NEW_PROC_API 1
17776 _ACEOF
17777
17778 ;;
17779 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17780
17781 cat >>confdefs.h <<\_ACEOF
17782 #define NEW_PROC_API 1
17783 _ACEOF
17784
17785 ;;
17786 mips-sgi-irix5*)
17787 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17788
17789 cat >>confdefs.h <<\_ACEOF
17790 #define _KMEMUSER 1
17791 _ACEOF
17792
17793 ;;
17794 esac
17795 fi
17796
17797 if test "$ac_cv_header_sys_procfs_h" = yes; then
17798 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17799 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17800 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 else
17803 cat >conftest.$ac_ext <<_ACEOF
17804 /* confdefs.h. */
17805 _ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h. */
17809
17810 #define _SYSCALL32
17811 #include <sys/procfs.h>
17812 int
17813 main ()
17814 {
17815 pstatus_t avar
17816 ;
17817 return 0;
17818 }
17819 _ACEOF
17820 rm -f conftest.$ac_objext
17821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17822 (eval $ac_compile) 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest.$ac_objext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17842 else
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846 bfd_cv_have_sys_procfs_type_pstatus_t=no
17847
17848 fi
17849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17850 fi
17851
17852 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17853
17854 cat >>confdefs.h <<\_ACEOF
17855 #define HAVE_PSTATUS_T 1
17856 _ACEOF
17857
17858 fi
17859 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17860 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17861
17862 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17863 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17864 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17867 cat >conftest.$ac_ext <<_ACEOF
17868 /* confdefs.h. */
17869 _ACEOF
17870 cat confdefs.h >>conftest.$ac_ext
17871 cat >>conftest.$ac_ext <<_ACEOF
17872 /* end confdefs.h. */
17873
17874 #define _SYSCALL32
17875 #include <sys/procfs.h>
17876 int
17877 main ()
17878 {
17879 prrun_t avar
17880 ;
17881 return 0;
17882 }
17883 _ACEOF
17884 rm -f conftest.$ac_objext
17885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17886 (eval $ac_compile) 2>conftest.er1
17887 ac_status=$?
17888 grep -v '^ *+' conftest.er1 >conftest.err
17889 rm -f conftest.er1
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17896 ac_status=$?
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; } &&
17899 { ac_try='test -s conftest.$ac_objext'
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
17905 bfd_cv_have_sys_procfs_type_prrun_t=yes
17906 else
17907 echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17909
17910 bfd_cv_have_sys_procfs_type_prrun_t=no
17911
17912 fi
17913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17914 fi
17915
17916 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17917
17918 cat >>confdefs.h <<\_ACEOF
17919 #define HAVE_PRRUN_T 1
17920 _ACEOF
17921
17922 fi
17923 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17924 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17925
17926 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17927 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17928 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 else
17931 cat >conftest.$ac_ext <<_ACEOF
17932 /* confdefs.h. */
17933 _ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17937
17938 #define _SYSCALL32
17939 #include <sys/procfs.h>
17940 int
17941 main ()
17942 {
17943 gregset_t avar
17944 ;
17945 return 0;
17946 }
17947 _ACEOF
17948 rm -f conftest.$ac_objext
17949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17950 (eval $ac_compile) 2>conftest.er1
17951 ac_status=$?
17952 grep -v '^ *+' conftest.er1 >conftest.err
17953 rm -f conftest.er1
17954 cat conftest.err >&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } &&
17957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; } &&
17963 { ac_try='test -s conftest.$ac_objext'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
17969 bfd_cv_have_sys_procfs_type_gregset_t=yes
17970 else
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17973
17974 bfd_cv_have_sys_procfs_type_gregset_t=no
17975
17976 fi
17977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17978 fi
17979
17980 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17981
17982 cat >>confdefs.h <<\_ACEOF
17983 #define HAVE_GREGSET_T 1
17984 _ACEOF
17985
17986 fi
17987 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17988 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17989
17990 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17991 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17992 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 else
17995 cat >conftest.$ac_ext <<_ACEOF
17996 /* confdefs.h. */
17997 _ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h. */
18001
18002 #define _SYSCALL32
18003 #include <sys/procfs.h>
18004 int
18005 main ()
18006 {
18007 fpregset_t avar
18008 ;
18009 return 0;
18010 }
18011 _ACEOF
18012 rm -f conftest.$ac_objext
18013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18014 (eval $ac_compile) 2>conftest.er1
18015 ac_status=$?
18016 grep -v '^ *+' conftest.er1 >conftest.err
18017 rm -f conftest.er1
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
18021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023 (eval $ac_try) 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; } &&
18027 { ac_try='test -s conftest.$ac_objext'
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; }; then
18033 bfd_cv_have_sys_procfs_type_fpregset_t=yes
18034 else
18035 echo "$as_me: failed program was:" >&5
18036 sed 's/^/| /' conftest.$ac_ext >&5
18037
18038 bfd_cv_have_sys_procfs_type_fpregset_t=no
18039
18040 fi
18041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18042 fi
18043
18044 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
18045
18046 cat >>confdefs.h <<\_ACEOF
18047 #define HAVE_FPREGSET_T 1
18048 _ACEOF
18049
18050 fi
18051 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18052 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
18053
18054 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18055 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18056 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18057 echo $ECHO_N "(cached) $ECHO_C" >&6
18058 else
18059 cat >conftest.$ac_ext <<_ACEOF
18060 /* confdefs.h. */
18061 _ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h. */
18065
18066 #define _SYSCALL32
18067 #include <sys/procfs.h>
18068 int
18069 main ()
18070 {
18071 prgregset_t avar
18072 ;
18073 return 0;
18074 }
18075 _ACEOF
18076 rm -f conftest.$ac_objext
18077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18078 (eval $ac_compile) 2>conftest.er1
18079 ac_status=$?
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } &&
18085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; } &&
18091 { ac_try='test -s conftest.$ac_objext'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
18097 bfd_cv_have_sys_procfs_type_prgregset_t=yes
18098 else
18099 echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18101
18102 bfd_cv_have_sys_procfs_type_prgregset_t=no
18103
18104 fi
18105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18106 fi
18107
18108 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
18109
18110 cat >>confdefs.h <<\_ACEOF
18111 #define HAVE_PRGREGSET_T 1
18112 _ACEOF
18113
18114 fi
18115 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18116 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
18117
18118 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18119 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18120 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 else
18123 cat >conftest.$ac_ext <<_ACEOF
18124 /* confdefs.h. */
18125 _ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18129
18130 #define _SYSCALL32
18131 #include <sys/procfs.h>
18132 int
18133 main ()
18134 {
18135 prfpregset_t avar
18136 ;
18137 return 0;
18138 }
18139 _ACEOF
18140 rm -f conftest.$ac_objext
18141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18142 (eval $ac_compile) 2>conftest.er1
18143 ac_status=$?
18144 grep -v '^ *+' conftest.er1 >conftest.err
18145 rm -f conftest.er1
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
18149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; } &&
18155 { ac_try='test -s conftest.$ac_objext'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
18162 else
18163 echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18165
18166 bfd_cv_have_sys_procfs_type_prfpregset_t=no
18167
18168 fi
18169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18170 fi
18171
18172 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18173
18174 cat >>confdefs.h <<\_ACEOF
18175 #define HAVE_PRFPREGSET_T 1
18176 _ACEOF
18177
18178 fi
18179 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18180 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
18181
18182 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18183 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18184 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18186 else
18187 cat >conftest.$ac_ext <<_ACEOF
18188 /* confdefs.h. */
18189 _ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h. */
18193
18194 #define _SYSCALL32
18195 #include <sys/procfs.h>
18196 int
18197 main ()
18198 {
18199 prgregset32_t avar
18200 ;
18201 return 0;
18202 }
18203 _ACEOF
18204 rm -f conftest.$ac_objext
18205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18206 (eval $ac_compile) 2>conftest.er1
18207 ac_status=$?
18208 grep -v '^ *+' conftest.er1 >conftest.err
18209 rm -f conftest.er1
18210 cat conftest.err >&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } &&
18213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; } &&
18219 { ac_try='test -s conftest.$ac_objext'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
18225 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
18226 else
18227 echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18229
18230 bfd_cv_have_sys_procfs_type_prgregset32_t=no
18231
18232 fi
18233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18234 fi
18235
18236 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
18237
18238 cat >>confdefs.h <<\_ACEOF
18239 #define HAVE_PRGREGSET32_T 1
18240 _ACEOF
18241
18242 fi
18243 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18244 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
18245
18246 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18247 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18248 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251 cat >conftest.$ac_ext <<_ACEOF
18252 /* confdefs.h. */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18257
18258 #define _SYSCALL32
18259 #include <sys/procfs.h>
18260 int
18261 main ()
18262 {
18263 prfpregset32_t avar
18264 ;
18265 return 0;
18266 }
18267 _ACEOF
18268 rm -f conftest.$ac_objext
18269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18270 (eval $ac_compile) 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest.$ac_objext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
18290 else
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18293
18294 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18295
18296 fi
18297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18298 fi
18299
18300 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
18301
18302 cat >>confdefs.h <<\_ACEOF
18303 #define HAVE_PRFPREGSET32_T 1
18304 _ACEOF
18305
18306 fi
18307 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18308 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18309
18310 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18311 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18312 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18313 echo $ECHO_N "(cached) $ECHO_C" >&6
18314 else
18315 cat >conftest.$ac_ext <<_ACEOF
18316 /* confdefs.h. */
18317 _ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h. */
18321
18322 #define _SYSCALL32
18323 #include <sys/procfs.h>
18324 int
18325 main ()
18326 {
18327 lwpid_t avar
18328 ;
18329 return 0;
18330 }
18331 _ACEOF
18332 rm -f conftest.$ac_objext
18333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18334 (eval $ac_compile) 2>conftest.er1
18335 ac_status=$?
18336 grep -v '^ *+' conftest.er1 >conftest.err
18337 rm -f conftest.er1
18338 cat conftest.err >&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } &&
18341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest.$ac_objext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 bfd_cv_have_sys_procfs_type_lwpid_t=yes
18354 else
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18357
18358 bfd_cv_have_sys_procfs_type_lwpid_t=no
18359
18360 fi
18361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18362 fi
18363
18364 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18365
18366 cat >>confdefs.h <<\_ACEOF
18367 #define HAVE_LWPID_T 1
18368 _ACEOF
18369
18370 fi
18371 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18372 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18373
18374 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18375 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18376 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18377 echo $ECHO_N "(cached) $ECHO_C" >&6
18378 else
18379 cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h. */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18385
18386 #define _SYSCALL32
18387 #include <sys/procfs.h>
18388 int
18389 main ()
18390 {
18391 psaddr_t avar
18392 ;
18393 return 0;
18394 }
18395 _ACEOF
18396 rm -f conftest.$ac_objext
18397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18398 (eval $ac_compile) 2>conftest.er1
18399 ac_status=$?
18400 grep -v '^ *+' conftest.er1 >conftest.err
18401 rm -f conftest.er1
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
18405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; } &&
18411 { ac_try='test -s conftest.$ac_objext'
18412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18414 ac_status=$?
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; }; then
18417 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18418 else
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18421
18422 bfd_cv_have_sys_procfs_type_psaddr_t=no
18423
18424 fi
18425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18426 fi
18427
18428 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18429
18430 cat >>confdefs.h <<\_ACEOF
18431 #define HAVE_PSADDR_T 1
18432 _ACEOF
18433
18434 fi
18435 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18436 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18437
18438 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18439 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18440 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18441 echo $ECHO_N "(cached) $ECHO_C" >&6
18442 else
18443 cat >conftest.$ac_ext <<_ACEOF
18444 /* confdefs.h. */
18445 _ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18449
18450 #define _SYSCALL32
18451 #include <sys/procfs.h>
18452 int
18453 main ()
18454 {
18455 prsysent_t avar
18456 ;
18457 return 0;
18458 }
18459 _ACEOF
18460 rm -f conftest.$ac_objext
18461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18462 (eval $ac_compile) 2>conftest.er1
18463 ac_status=$?
18464 grep -v '^ *+' conftest.er1 >conftest.err
18465 rm -f conftest.er1
18466 cat conftest.err >&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } &&
18469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest.$ac_objext'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18482 else
18483 echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18485
18486 bfd_cv_have_sys_procfs_type_prsysent_t=no
18487
18488 fi
18489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18490 fi
18491
18492 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18493
18494 cat >>confdefs.h <<\_ACEOF
18495 #define HAVE_PRSYSENT_T 1
18496 _ACEOF
18497
18498 fi
18499 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18500 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18501
18502 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18503 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18504 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507 cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h. */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513
18514 #define _SYSCALL32
18515 #include <sys/procfs.h>
18516 int
18517 main ()
18518 {
18519 pr_sigset_t avar
18520 ;
18521 return 0;
18522 }
18523 _ACEOF
18524 rm -f conftest.$ac_objext
18525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18526 (eval $ac_compile) 2>conftest.er1
18527 ac_status=$?
18528 grep -v '^ *+' conftest.er1 >conftest.err
18529 rm -f conftest.er1
18530 cat conftest.err >&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); } &&
18533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; } &&
18539 { ac_try='test -s conftest.$ac_objext'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18546 else
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18551
18552 fi
18553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18554 fi
18555
18556 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18557
18558 cat >>confdefs.h <<\_ACEOF
18559 #define HAVE_PR_SIGSET_T 1
18560 _ACEOF
18561
18562 fi
18563 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18564 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18565
18566 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18567 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18568 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571 cat >conftest.$ac_ext <<_ACEOF
18572 /* confdefs.h. */
18573 _ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18577
18578 #define _SYSCALL32
18579 #include <sys/procfs.h>
18580 int
18581 main ()
18582 {
18583 pr_sigaction64_t avar
18584 ;
18585 return 0;
18586 }
18587 _ACEOF
18588 rm -f conftest.$ac_objext
18589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18590 (eval $ac_compile) 2>conftest.er1
18591 ac_status=$?
18592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
18597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest.$ac_objext'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18610 else
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18613
18614 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18615
18616 fi
18617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18618 fi
18619
18620 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18621
18622 cat >>confdefs.h <<\_ACEOF
18623 #define HAVE_PR_SIGACTION64_T 1
18624 _ACEOF
18625
18626 fi
18627 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18628 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18629
18630 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18631 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18632 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18634 else
18635 cat >conftest.$ac_ext <<_ACEOF
18636 /* confdefs.h. */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18641
18642 #define _SYSCALL32
18643 #include <sys/procfs.h>
18644 int
18645 main ()
18646 {
18647 pr_siginfo64_t avar
18648 ;
18649 return 0;
18650 }
18651 _ACEOF
18652 rm -f conftest.$ac_objext
18653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18654 (eval $ac_compile) 2>conftest.er1
18655 ac_status=$?
18656 grep -v '^ *+' conftest.er1 >conftest.err
18657 rm -f conftest.er1
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
18661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; } &&
18667 { ac_try='test -s conftest.$ac_objext'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
18673 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18674 else
18675 echo "$as_me: failed program was:" >&5
18676 sed 's/^/| /' conftest.$ac_ext >&5
18677
18678 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18679
18680 fi
18681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18682 fi
18683
18684 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18685
18686 cat >>confdefs.h <<\_ACEOF
18687 #define HAVE_PR_SIGINFO64_T 1
18688 _ACEOF
18689
18690 fi
18691 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18692 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18693
18694
18695
18696
18697
18698 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18699 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18700 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18701 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18703 else
18704 if test "$cross_compiling" = yes; then
18705 gdb_cv_prfpregset_t_broken=yes
18706 else
18707 cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h. */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18713 #include <sys/procfs.h>
18714 int main ()
18715 {
18716 if (sizeof (prfpregset_t) == sizeof (void *))
18717 return 1;
18718 return 0;
18719 }
18720 _ACEOF
18721 rm -f conftest$ac_exeext
18722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18723 (eval $ac_link) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
18732 gdb_cv_prfpregset_t_broken=no
18733 else
18734 echo "$as_me: program exited with status $ac_status" >&5
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18737
18738 ( exit $ac_status )
18739 gdb_cv_prfpregset_t_broken=yes
18740 fi
18741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18742 fi
18743 fi
18744
18745 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18746 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18747 if test $gdb_cv_prfpregset_t_broken = yes; then
18748
18749 cat >>confdefs.h <<\_ACEOF
18750 #define PRFPREGSET_T_BROKEN 1
18751 _ACEOF
18752
18753 fi
18754 fi
18755
18756
18757 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18758 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18759 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762 cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h. */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 #include <unistd.h>
18769 #include <sys/types.h>
18770 #include <sys/procfs.h>
18771
18772 int
18773 main ()
18774 {
18775
18776 int dummy;;
18777 dummy = ioctl(0, PIOCSET, &dummy);
18778
18779 ;
18780 return 0;
18781 }
18782 _ACEOF
18783 rm -f conftest.$ac_objext
18784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18785 (eval $ac_compile) 2>conftest.er1
18786 ac_status=$?
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; } &&
18798 { ac_try='test -s conftest.$ac_objext'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 gdb_cv_have_procfs_piocset=yes
18805 else
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18808
18809 gdb_cv_have_procfs_piocset=no
18810 fi
18811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18812 fi
18813
18814 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18815 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18816 if test $gdb_cv_have_procfs_piocset = yes; then
18817
18818 cat >>confdefs.h <<\_ACEOF
18819 #define HAVE_PROCFS_PIOCSET 1
18820 _ACEOF
18821
18822 fi
18823 fi
18824
18825 if test ${host} = ${target} ; then
18826
18827 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18828 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18829 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18831 else
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h. */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 #include <link.h>
18839 int
18840 main ()
18841 {
18842 struct link_map lm; (void) lm.l_addr;
18843 ;
18844 return 0;
18845 }
18846 _ACEOF
18847 rm -f conftest.$ac_objext
18848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18849 (eval $ac_compile) 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } &&
18856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; } &&
18862 { ac_try='test -s conftest.$ac_objext'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 gdb_cv_have_struct_link_map_with_l_members=yes
18869 else
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873 gdb_cv_have_struct_link_map_with_l_members=no
18874 fi
18875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18876 fi
18877
18878 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18879 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18880 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18881
18882 cat >>confdefs.h <<\_ACEOF
18883 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18884 _ACEOF
18885
18886 fi
18887
18888
18889 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18890 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18891 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18892 echo $ECHO_N "(cached) $ECHO_C" >&6
18893 else
18894 cat >conftest.$ac_ext <<_ACEOF
18895 /* confdefs.h. */
18896 _ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h. */
18900 #include <sys/types.h>
18901 #include <link.h>
18902 int
18903 main ()
18904 {
18905 struct link_map lm; (void) lm.lm_addr;
18906 ;
18907 return 0;
18908 }
18909 _ACEOF
18910 rm -f conftest.$ac_objext
18911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18912 (eval $ac_compile) 2>conftest.er1
18913 ac_status=$?
18914 grep -v '^ *+' conftest.er1 >conftest.err
18915 rm -f conftest.er1
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } &&
18919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921 (eval $ac_try) 2>&5
18922 ac_status=$?
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; } &&
18925 { ac_try='test -s conftest.$ac_objext'
18926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18931 gdb_cv_have_struct_link_map_with_lm_members=yes
18932 else
18933 echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18935
18936 gdb_cv_have_struct_link_map_with_lm_members=no
18937 fi
18938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18939 fi
18940
18941 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18942 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18943 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18944
18945 cat >>confdefs.h <<\_ACEOF
18946 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18947 _ACEOF
18948
18949 fi
18950
18951
18952 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18953 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18954 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h. */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 #include <sys/types.h>
18964 #ifdef HAVE_NLIST_H
18965 #include <nlist.h>
18966 #endif
18967 #include <link.h>
18968 int
18969 main ()
18970 {
18971 struct so_map lm; (void) lm.som_addr;
18972 ;
18973 return 0;
18974 }
18975 _ACEOF
18976 rm -f conftest.$ac_objext
18977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18978 (eval $ac_compile) 2>conftest.er1
18979 ac_status=$?
18980 grep -v '^ *+' conftest.er1 >conftest.err
18981 rm -f conftest.er1
18982 cat conftest.err >&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } &&
18985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987 (eval $ac_try) 2>&5
18988 ac_status=$?
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; } &&
18991 { ac_try='test -s conftest.$ac_objext'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
18997 gdb_cv_have_struct_so_map_with_som_members=yes
18998 else
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19001
19002 gdb_cv_have_struct_so_map_with_som_members=no
19003 fi
19004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19005 fi
19006
19007 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19008 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
19009 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
19010
19011 cat >>confdefs.h <<\_ACEOF
19012 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
19013 _ACEOF
19014
19015 fi
19016
19017
19018 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19019 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19020 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 else
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 #define _SYSCALL32
19030 #include <sys/link.h>
19031 int
19032 main ()
19033 {
19034 struct link_map32 l;
19035 ;
19036 return 0;
19037 }
19038 _ACEOF
19039 rm -f conftest.$ac_objext
19040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19041 (eval $ac_compile) 2>conftest.er1
19042 ac_status=$?
19043 grep -v '^ *+' conftest.er1 >conftest.err
19044 rm -f conftest.er1
19045 cat conftest.err >&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } &&
19048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; } &&
19054 { ac_try='test -s conftest.$ac_objext'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 gdb_cv_have_struct_link_map32=yes
19061 else
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19064
19065 gdb_cv_have_struct_link_map32=no
19066 fi
19067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19068 fi
19069
19070 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19071 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
19072 if test $gdb_cv_have_struct_link_map32 = yes; then
19073
19074 cat >>confdefs.h <<\_ACEOF
19075 #define HAVE_STRUCT_LINK_MAP32 1
19076 _ACEOF
19077
19078
19079 cat >>confdefs.h <<\_ACEOF
19080 #define _SYSCALL32 1
19081 _ACEOF
19082
19083 fi
19084 fi
19085
19086 # Check if the compiler supports the `long long' type.
19087
19088 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19089 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19090 if test "${gdb_cv_c_long_long+set}" = set; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
19092 else
19093 cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h. */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 extern long long foo;
19100 int
19101 main ()
19102 {
19103 switch (foo & 2) { case 0: return 1; }
19104 ;
19105 return 0;
19106 }
19107 _ACEOF
19108 rm -f conftest.$ac_objext
19109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19110 (eval $ac_compile) 2>conftest.er1
19111 ac_status=$?
19112 grep -v '^ *+' conftest.er1 >conftest.err
19113 rm -f conftest.er1
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } &&
19117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; } &&
19123 { ac_try='test -s conftest.$ac_objext'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 gdb_cv_c_long_long=yes
19130 else
19131 echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19133
19134 gdb_cv_c_long_long=no
19135 fi
19136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19137 fi
19138 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19139 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
19140 if test $gdb_cv_c_long_long = yes; then
19141
19142 cat >>confdefs.h <<\_ACEOF
19143 #define CC_HAS_LONG_LONG 1
19144 _ACEOF
19145
19146 fi
19147
19148 # Check if the compiler and runtime support printing long longs.
19149
19150 echo "$as_me:$LINENO: checking for long long support in printf" >&5
19151 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19152 if test "${gdb_cv_printf_has_long_long+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 else
19155 if test "$cross_compiling" = yes; then
19156 gdb_cv_printf_has_long_long=no
19157 else
19158 cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h. */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 $ac_includes_default
19165 int
19166 main ()
19167 {
19168 char buf[32];
19169 long long l = 0;
19170 l = (l << 16) + 0x0123;
19171 l = (l << 16) + 0x4567;
19172 l = (l << 16) + 0x89ab;
19173 l = (l << 16) + 0xcdef;
19174 sprintf (buf, "0x%016llx", l);
19175 return (strcmp ("0x0123456789abcdef", buf));
19176 ;
19177 return 0;
19178 }
19179 _ACEOF
19180 rm -f conftest$ac_exeext
19181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19182 (eval $ac_link) 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191 gdb_cv_printf_has_long_long=yes
19192 else
19193 echo "$as_me: program exited with status $ac_status" >&5
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19196
19197 ( exit $ac_status )
19198 gdb_cv_printf_has_long_long=no
19199 fi
19200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19201 fi
19202 fi
19203 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19204 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
19205 if test $gdb_cv_printf_has_long_long = yes; then
19206
19207 cat >>confdefs.h <<\_ACEOF
19208 #define PRINTF_HAS_LONG_LONG 1
19209 _ACEOF
19210
19211 fi
19212
19213 # Check if the compiler supports the `long double' type. We can't use
19214 # AC_C_LONG_DOUBLE because that one does additional checks on the
19215 # constants defined in <float.h> that fail on some systems,
19216 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
19217
19218 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19219 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
19220 if test "${gdb_cv_c_long_double+set}" = set; then
19221 echo $ECHO_N "(cached) $ECHO_C" >&6
19222 else
19223 cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h. */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19229 long double foo;
19230 _ACEOF
19231 rm -f conftest.$ac_objext
19232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19233 (eval $ac_compile) 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
19240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; } &&
19246 { ac_try='test -s conftest.$ac_objext'
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; }; then
19252 gdb_cv_c_long_double=yes
19253 else
19254 echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19256
19257 gdb_cv_c_long_double=no
19258 fi
19259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19260 fi
19261 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19262 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19263 if test $gdb_cv_c_long_double = yes; then
19264
19265 cat >>confdefs.h <<\_ACEOF
19266 #define HAVE_LONG_DOUBLE 1
19267 _ACEOF
19268
19269 fi
19270
19271 # Check if the compiler and runtime support printing long doubles.
19272
19273 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19274 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19275 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 else
19278 if test "$cross_compiling" = yes; then
19279 gdb_cv_printf_has_long_double=no
19280 else
19281 cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h. */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 $ac_includes_default
19288 int
19289 main ()
19290 {
19291 char buf[16];
19292 long double f = 3.141592653;
19293 sprintf (buf, "%Lg", f);
19294 return (strncmp ("3.14159", buf, 7));
19295 ;
19296 return 0;
19297 }
19298 _ACEOF
19299 rm -f conftest$ac_exeext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19301 (eval $ac_link) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 gdb_cv_printf_has_long_double=yes
19311 else
19312 echo "$as_me: program exited with status $ac_status" >&5
19313 echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19315
19316 ( exit $ac_status )
19317 gdb_cv_printf_has_long_double=no
19318 fi
19319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19320 fi
19321 fi
19322 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19323 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19324 if test $gdb_cv_printf_has_long_double = yes; then
19325
19326 cat >>confdefs.h <<\_ACEOF
19327 #define PRINTF_HAS_LONG_DOUBLE 1
19328 _ACEOF
19329
19330 fi
19331
19332 # Check if the compiler and runtime support scanning long doubles.
19333
19334 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19335 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19336 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 else
19339 if test "$cross_compiling" = yes; then
19340 gdb_cv_scanf_has_long_double=no
19341 else
19342 cat >conftest.$ac_ext <<_ACEOF
19343 /* confdefs.h. */
19344 _ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19348 #include <stdio.h>
19349 int
19350 main ()
19351 {
19352 char *buf = "3.141592653";
19353 long double f = 0;
19354 sscanf (buf, "%Lg", &f);
19355 return !(f > 3.14159 && f < 3.14160);
19356 ;
19357 return 0;
19358 }
19359 _ACEOF
19360 rm -f conftest$ac_exeext
19361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19362 (eval $ac_link) 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 gdb_cv_scanf_has_long_double=yes
19372 else
19373 echo "$as_me: program exited with status $ac_status" >&5
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19376
19377 ( exit $ac_status )
19378 gdb_cv_scanf_has_long_double=no
19379 fi
19380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19381 fi
19382 fi
19383 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19384 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19385 if test $gdb_cv_scanf_has_long_double = yes; then
19386
19387 cat >>confdefs.h <<\_ACEOF
19388 #define SCANF_HAS_LONG_DOUBLE 1
19389 _ACEOF
19390
19391 fi
19392
19393 case ${host_os} in
19394 aix*)
19395 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19396 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19397 if test "${gdb_cv_bigtoc+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 else
19400
19401 SAVE_LDFLAGS=$LDFLAGS
19402
19403 case $GCC in
19404 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19405 *) gdb_cv_bigtoc=-bbigtoc ;;
19406 esac
19407
19408 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19409 cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h. */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415
19416 int
19417 main ()
19418 {
19419 int i;
19420 ;
19421 return 0;
19422 }
19423 _ACEOF
19424 rm -f conftest.$ac_objext conftest$ac_exeext
19425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19426 (eval $ac_link) 2>conftest.er1
19427 ac_status=$?
19428 grep -v '^ *+' conftest.er1 >conftest.err
19429 rm -f conftest.er1
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } &&
19433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; } &&
19439 { ac_try='test -s conftest$ac_exeext'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
19445 :
19446 else
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19449
19450 gdb_cv_bigtoc=
19451 fi
19452 rm -f conftest.err conftest.$ac_objext \
19453 conftest$ac_exeext conftest.$ac_ext
19454 LDFLAGS="${SAVE_LDFLAGS}"
19455
19456 fi
19457 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19458 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19459 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19460 ;;
19461 esac
19462
19463
19464
19465 if test ${build} = ${host} -a ${host} = ${target} ; then
19466 case ${host_os} in
19467 hpux*)
19468 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19469 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19470 if test -f /usr/include/dce/cma_config.h ; then
19471 if test "$GCC" = "yes" ; then
19472 echo "$as_me:$LINENO: result: yes" >&5
19473 echo "${ECHO_T}yes" >&6
19474
19475 cat >>confdefs.h <<\_ACEOF
19476 #define HAVE_HPUX_THREAD_SUPPORT 1
19477 _ACEOF
19478
19479 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19480 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19481 else
19482 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19483 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19484 fi
19485 else
19486 echo "$as_me:$LINENO: result: no" >&5
19487 echo "${ECHO_T}no" >&6
19488 fi
19489 ;;
19490 solaris*)
19491 # See if thread_db library is around for Solaris thread debugging.
19492 # Note that we must explicitly test for version 1 of the library
19493 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19494 # the same API.
19495 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19496 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19497 if test -f /usr/lib/libthread_db.so.1 ; then
19498 echo "$as_me:$LINENO: result: yes" >&5
19499 echo "${ECHO_T}yes" >&6
19500
19501 cat >>confdefs.h <<\_ACEOF
19502 #define HAVE_THREAD_DB_LIB 1
19503 _ACEOF
19504
19505 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19506 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19507
19508 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19509 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19510 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513 ac_check_lib_save_LIBS=$LIBS
19514 LIBS="-ldl $LIBS"
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h. */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19521
19522 /* Override any gcc2 internal prototype to avoid an error. */
19523 #ifdef __cplusplus
19524 extern "C"
19525 #endif
19526 /* We use char because int might match the return type of a gcc2
19527 builtin and then its argument prototype would still apply. */
19528 char dlopen ();
19529 int
19530 main ()
19531 {
19532 dlopen ();
19533 ;
19534 return 0;
19535 }
19536 _ACEOF
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19539 (eval $ac_link) 2>conftest.er1
19540 ac_status=$?
19541 grep -v '^ *+' conftest.er1 >conftest.err
19542 rm -f conftest.er1
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
19546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest$ac_exeext'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 ac_cv_lib_dl_dlopen=yes
19559 else
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563 ac_cv_lib_dl_dlopen=no
19564 fi
19565 rm -f conftest.err conftest.$ac_objext \
19566 conftest$ac_exeext conftest.$ac_ext
19567 LIBS=$ac_check_lib_save_LIBS
19568 fi
19569 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19570 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19571 if test $ac_cv_lib_dl_dlopen = yes; then
19572 cat >>confdefs.h <<_ACEOF
19573 #define HAVE_LIBDL 1
19574 _ACEOF
19575
19576 LIBS="-ldl $LIBS"
19577
19578 fi
19579
19580 if test "$GCC" = "yes" ; then
19581 # The GNU linker requires the -export-dynamic option to make
19582 # all symbols visible in the dynamic symbol table.
19583 hold_ldflags=$LDFLAGS
19584 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19585 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19586 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19587 cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h. */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19593
19594 int
19595 main ()
19596 {
19597 int i;
19598 ;
19599 return 0;
19600 }
19601 _ACEOF
19602 rm -f conftest.$ac_objext conftest$ac_exeext
19603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19604 (eval $ac_link) 2>conftest.er1
19605 ac_status=$?
19606 grep -v '^ *+' conftest.er1 >conftest.err
19607 rm -f conftest.er1
19608 cat conftest.err >&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } &&
19611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; } &&
19617 { ac_try='test -s conftest$ac_exeext'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
19623 found=yes
19624 else
19625 echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19627
19628 found=no
19629 fi
19630 rm -f conftest.err conftest.$ac_objext \
19631 conftest$ac_exeext conftest.$ac_ext
19632 LDFLAGS=$hold_ldflags
19633 echo "$as_me:$LINENO: result: $found" >&5
19634 echo "${ECHO_T}$found" >&6
19635 if test $found = yes; then
19636 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19637 fi
19638 fi
19639 # Sun randomly tweaked the prototypes in <proc_service.h>
19640 # at one point.
19641 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19642 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19643 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19645 else
19646
19647 cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h. */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653
19654 #include <proc_service.h>
19655 ps_err_e ps_pdwrite
19656 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19657
19658 int
19659 main ()
19660 {
19661
19662 ;
19663 return 0;
19664 }
19665 _ACEOF
19666 rm -f conftest.$ac_objext
19667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19668 (eval $ac_compile) 2>conftest.er1
19669 ac_status=$?
19670 grep -v '^ *+' conftest.er1 >conftest.err
19671 rm -f conftest.er1
19672 cat conftest.err >&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } &&
19675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } &&
19681 { ac_try='test -s conftest.$ac_objext'
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; }; then
19687 gdb_cv_proc_service_is_old=no
19688 else
19689 echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19691
19692 gdb_cv_proc_service_is_old=yes
19693 fi
19694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19695
19696 fi
19697
19698 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19699 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19700 if test $gdb_cv_proc_service_is_old = yes; then
19701
19702 cat >>confdefs.h <<\_ACEOF
19703 #define PROC_SERVICE_IS_OLD 1
19704 _ACEOF
19705
19706 fi
19707 else
19708 echo "$as_me:$LINENO: result: no" >&5
19709 echo "${ECHO_T}no" >&6
19710 fi
19711 ;;
19712 aix*)
19713 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19714 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19715 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718 cat >conftest.$ac_ext <<_ACEOF
19719 /* confdefs.h. */
19720 _ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724 #include <sys/pthdebug.h>
19725 int
19726 main ()
19727 {
19728 #ifndef PTHDB_VERSION_3
19729 #error
19730 #endif
19731 ;
19732 return 0;
19733 }
19734 _ACEOF
19735 rm -f conftest.$ac_objext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737 (eval $ac_compile) 2>conftest.er1
19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; } &&
19750 { ac_try='test -s conftest.$ac_objext'
19751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752 (eval $ac_try) 2>&5
19753 ac_status=$?
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); }; }; then
19756 gdb_cv_have_aix_thread_debug=yes
19757 else
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19760
19761 gdb_cv_have_aix_thread_debug=no
19762 fi
19763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19764 fi
19765
19766 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19767 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19768 if test $gdb_cv_have_aix_thread_debug = yes; then
19769 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19770 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19771 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19772 fi
19773 ;;
19774 esac
19775
19776 fi
19777
19778 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19779 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19780 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19781 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 else
19784 cat >conftest.$ac_ext <<_ACEOF
19785 /* confdefs.h. */
19786 _ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19790 #include <thread_db.h>
19791 int
19792 main ()
19793 {
19794 int i = TD_NOTALLOC;
19795 ;
19796 return 0;
19797 }
19798 _ACEOF
19799 rm -f conftest.$ac_objext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19801 (eval $ac_compile) 2>conftest.er1
19802 ac_status=$?
19803 grep -v '^ *+' conftest.er1 >conftest.err
19804 rm -f conftest.er1
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
19808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } &&
19814 { ac_try='test -s conftest.$ac_objext'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19817 ac_status=$?
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; }; then
19820 gdb_cv_thread_db_h_has_td_notalloc=yes
19821 else
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19824
19825 gdb_cv_thread_db_h_has_td_notalloc=no
19826
19827 fi
19828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19829
19830 fi
19831 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19832 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19833 fi
19834 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19835
19836 cat >>confdefs.h <<\_ACEOF
19837 #define THREAD_DB_HAS_TD_NOTALLOC 1
19838 _ACEOF
19839
19840 fi
19841
19842 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19843 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19844 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19845 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h. */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 #include <sys/syscall.h>
19855 int
19856 main ()
19857 {
19858 int i = __NR_tkill;
19859 ;
19860 return 0;
19861 }
19862 _ACEOF
19863 rm -f conftest.$ac_objext
19864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19865 (eval $ac_compile) 2>conftest.er1
19866 ac_status=$?
19867 grep -v '^ *+' conftest.er1 >conftest.err
19868 rm -f conftest.er1
19869 cat conftest.err >&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } &&
19872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 gdb_cv_sys_syscall_h_has_tkill=yes
19885 else
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 gdb_cv_sys_syscall_h_has_tkill=no
19890
19891 fi
19892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19893
19894 fi
19895 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19896 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19897 fi
19898 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19899
19900 cat >>confdefs.h <<\_ACEOF
19901 #define HAVE_TKILL_SYSCALL 1
19902 _ACEOF
19903
19904 fi
19905
19906
19907
19908 # Check whether --with-sysroot or --without-sysroot was given.
19909 if test "${with_sysroot+set}" = set; then
19910 withval="$with_sysroot"
19911
19912 case ${with_sysroot} in
19913 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19914 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19915 esac
19916
19917 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19918
19919 if test "x$exec_prefix" = xNONE; then
19920 if test "x$prefix" = xNONE; then
19921 test_prefix=/usr/local
19922 else
19923 test_prefix=$prefix
19924 fi
19925 else
19926 test_prefix=$exec_prefix
19927 fi
19928 case ${TARGET_SYSTEM_ROOT} in
19929 "${test_prefix}"|"${test_prefix}/"*|\
19930 '${exec_prefix}'|'${exec_prefix}/'*)
19931 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19932 TARGET_SYSTEM_ROOT_DEFINE="$t"
19933 ;;
19934 esac
19935
19936 else
19937
19938 TARGET_SYSTEM_ROOT=
19939 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19940
19941 fi;
19942
19943
19944
19945 # Check whether --enable-werror or --disable-werror was given.
19946 if test "${enable_werror+set}" = set; then
19947 enableval="$enable_werror"
19948 case "${enableval}" in
19949 yes | y) ERROR_ON_WARNING="yes" ;;
19950 no | n) ERROR_ON_WARNING="no" ;;
19951 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19952 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19953 { (exit 1); exit 1; }; } ;;
19954 esac
19955 fi;
19956
19957 # Enable -Werror by default when using gcc
19958 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19959 ERROR_ON_WARNING=yes
19960 fi
19961
19962 WERROR_CFLAGS=""
19963 if test "${ERROR_ON_WARNING}" = yes ; then
19964 WERROR_CFLAGS="-Werror"
19965 fi
19966
19967 # NOTE: Don't add -Wall or -Wunused, they both include
19968 # -Wunused-parameter which reports bogus warnings.
19969 # NOTE: If you add to this list, remember to update
19970 # gdb/doc/gdbint.texinfo.
19971 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
19972 -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
19973 -Wunused-label -Wunused-function -Wno-pointer-sign"
19974
19975 # GCC supports -Wuninitialized only with -O or -On, n != 0.
19976 if test x${CFLAGS+set} = xset; then
19977 case "${CFLAGS}" in
19978 *"-O0"* ) ;;
19979 *"-O"* )
19980 build_warnings="${build_warnings} -Wuninitialized"
19981 ;;
19982 esac
19983 else
19984 build_warnings="${build_warnings} -Wuninitialized"
19985 fi
19986
19987 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
19988 # -Wunused-function -Wunused-variable -Wunused-value
19989 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
19990 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19991 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19992 # -Woverloaded-virtual -Winline -Werror"
19993 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19994 if test "${enable_build_warnings+set}" = set; then
19995 enableval="$enable_build_warnings"
19996 case "${enableval}" in
19997 yes) ;;
19998 no) build_warnings="-w";;
19999 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20000 build_warnings="${build_warnings} ${t}";;
20001 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20002 build_warnings="${t} ${build_warnings}";;
20003 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20004 esac
20005 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20006 echo "Setting compiler warning flags = $build_warnings" 6>&1
20007 fi
20008 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20009 if test "${enable_gdb_build_warnings+set}" = set; then
20010 enableval="$enable_gdb_build_warnings"
20011 case "${enableval}" in
20012 yes) ;;
20013 no) build_warnings="-w";;
20014 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20015 build_warnings="${build_warnings} ${t}";;
20016 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20017 build_warnings="${t} ${build_warnings}";;
20018 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20019 esac
20020 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20021 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20022 fi
20023 fi; WARN_CFLAGS=""
20024 if test "x${build_warnings}" != x -a "x$GCC" = xyes
20025 then
20026 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20027 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20028 # Separate out the -Werror flag as some files just cannot be
20029 # compiled with it enabled.
20030 for w in ${build_warnings}; do
20031 case $w in
20032 -Werr*) WERROR_CFLAGS=-Werror ;;
20033 *) # Check that GCC accepts it
20034 saved_CFLAGS="$CFLAGS"
20035 CFLAGS="$CFLAGS $w"
20036 cat >conftest.$ac_ext <<_ACEOF
20037 /* confdefs.h. */
20038 _ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h. */
20042
20043 int
20044 main ()
20045 {
20046
20047 ;
20048 return 0;
20049 }
20050 _ACEOF
20051 rm -f conftest.$ac_objext
20052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20053 (eval $ac_compile) 2>conftest.er1
20054 ac_status=$?
20055 grep -v '^ *+' conftest.er1 >conftest.err
20056 rm -f conftest.er1
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } &&
20060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; } &&
20066 { ac_try='test -s conftest.$ac_objext'
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
20072 WARN_CFLAGS="${WARN_CFLAGS} $w"
20073 else
20074 echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20076
20077 fi
20078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20079 CFLAGS="$saved_CFLAGS"
20080 esac
20081 done
20082 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20083 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
20084 fi
20085
20086
20087
20088 # In the Cygwin environment, we need some additional flags.
20089 echo "$as_me:$LINENO: checking for cygwin" >&5
20090 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20091 if test "${gdb_cv_os_cygwin+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 else
20094 cat >conftest.$ac_ext <<_ACEOF
20095 /* confdefs.h. */
20096 _ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100
20101 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20102 lose
20103 #endif
20104 _ACEOF
20105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20106 $EGREP "lose" >/dev/null 2>&1; then
20107 gdb_cv_os_cygwin=yes
20108 else
20109 gdb_cv_os_cygwin=no
20110 fi
20111 rm -f conftest*
20112
20113 fi
20114 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20115 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20116
20117
20118 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20119 case ${host} in
20120 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20121 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20122 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
20123 esac
20124
20125
20126 # libreadline needs libuser32.a in a cygwin environment
20127 WIN32LIBS=
20128 if test x$gdb_cv_os_cygwin = xyes; then
20129 WIN32LIBS="-luser32"
20130 case "${target}" in
20131 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20132 ;;
20133 esac
20134 fi
20135
20136 # The ser-tcp.c module requires sockets.
20137 case ${host} in
20138 *mingw32*)
20139
20140 cat >>confdefs.h <<\_ACEOF
20141 #define USE_WIN32API 1
20142 _ACEOF
20143
20144 WIN32LIBS="$WIN32LIBS -lws2_32"
20145 ;;
20146 esac
20147
20148
20149 # Add any host-specific objects to GDB.
20150 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20151
20152 LIBGUI="../libgui/src/libgui.a"
20153 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20154
20155
20156
20157 WIN32LDAPP=
20158
20159
20160
20161 case "${host}" in
20162 *-*-cygwin*)
20163 configdir="win"
20164 ;;
20165 *)
20166 configdir="unix"
20167 ;;
20168 esac
20169
20170 GDBTKLIBS=
20171 if test "${enable_gdbtk}" = "yes"; then
20172
20173 # Gdbtk must have an absolute path to srcdir in order to run
20174 # properly when not installed.
20175 here=`pwd`
20176 cd ${srcdir}
20177 GDBTK_SRC_DIR=`pwd`
20178 cd $here
20179
20180
20181 #
20182 # Ok, lets find the tcl configuration
20183 # First, look for one uninstalled.
20184 # the alternative search directory is invoked by --with-tclconfig
20185 #
20186
20187 if test x"${no_tcl}" = x ; then
20188 # we reset no_tcl in case something fails here
20189 no_tcl=true
20190
20191 # Check whether --with-tclconfig or --without-tclconfig was given.
20192 if test "${with_tclconfig+set}" = set; then
20193 withval="$with_tclconfig"
20194 with_tclconfig=${withval}
20195 fi;
20196 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20197 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20198 if test "${ac_cv_c_tclconfig+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201
20202
20203 # First check to see if --with-tclconfig was specified.
20204 if test x"${with_tclconfig}" != x ; then
20205 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20206 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20207 else
20208 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20209 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20210 { (exit 1); exit 1; }; }
20211 fi
20212 fi
20213
20214 # then check for a private Tcl installation
20215 if test x"${ac_cv_c_tclconfig}" = x ; then
20216 for i in \
20217 ../tcl \
20218 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20219 ../../tcl \
20220 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20221 ../../../tcl \
20222 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20223 if test -f "$i/${configdir}/tclConfig.sh" ; then
20224 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20225 break
20226 fi
20227 done
20228 fi
20229 # check in a few common install locations
20230 if test x"${ac_cv_c_tclconfig}" = x ; then
20231 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20232 if test -f "$i/tclConfig.sh" ; then
20233 ac_cv_c_tclconfig=`(cd $i; pwd)`
20234 break
20235 fi
20236 done
20237 fi
20238 # check in a few other private locations
20239 if test x"${ac_cv_c_tclconfig}" = x ; then
20240 for i in \
20241 ${srcdir}/../tcl \
20242 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20243 if test -f "$i/${configdir}/tclConfig.sh" ; then
20244 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20245 break
20246 fi
20247 done
20248 fi
20249
20250 fi
20251
20252 if test x"${ac_cv_c_tclconfig}" = x ; then
20253 TCLCONFIG="# no Tcl configs found"
20254 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20255 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20256 else
20257 no_tcl=
20258 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
20259 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20260 echo "${ECHO_T}found $TCLCONFIG" >&6
20261 fi
20262 fi
20263
20264 if test -z "${no_tcl}"; then
20265
20266 . $TCLCONFIG
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294 #
20295 # Ok, lets find the tk configuration
20296 # First, look for one uninstalled.
20297 # the alternative search directory is invoked by --with-tkconfig
20298 #
20299
20300 if test x"${no_tk}" = x ; then
20301 # we reset no_tk in case something fails here
20302 no_tk=true
20303
20304 # Check whether --with-tkconfig or --without-tkconfig was given.
20305 if test "${with_tkconfig+set}" = set; then
20306 withval="$with_tkconfig"
20307 with_tkconfig=${withval}
20308 fi;
20309 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20310 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20311 if test "${ac_cv_c_tkconfig+set}" = set; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 else
20314
20315
20316 # First check to see if --with-tkconfig was specified.
20317 if test x"${with_tkconfig}" != x ; then
20318 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20319 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20320 else
20321 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20322 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20323 { (exit 1); exit 1; }; }
20324 fi
20325 fi
20326
20327 # then check for a private Tk library
20328 if test x"${ac_cv_c_tkconfig}" = x ; then
20329 for i in \
20330 ../tk \
20331 `ls -dr ../tk[4-9]* 2>/dev/null` \
20332 ../../tk \
20333 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20334 ../../../tk \
20335 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20336 if test -f "$i/${configdir}/tkConfig.sh" ; then
20337 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20338 break
20339 fi
20340 done
20341 fi
20342 # check in a few common install locations
20343 if test x"${ac_cv_c_tkconfig}" = x ; then
20344 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20345 if test -f "$i/tkConfig.sh" ; then
20346 ac_cv_c_tkconfig=`(cd $i; pwd)`
20347 break
20348 fi
20349 done
20350 fi
20351 # check in a few other private locations
20352 if test x"${ac_cv_c_tkconfig}" = x ; then
20353 for i in \
20354 ${srcdir}/../tk \
20355 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20356 if test -f "$i/${configdir}/tkConfig.sh" ; then
20357 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20358 break
20359 fi
20360 done
20361 fi
20362
20363 fi
20364
20365 if test x"${ac_cv_c_tkconfig}" = x ; then
20366 TKCONFIG="# no Tk configs found"
20367 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20368 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20369 else
20370 no_tk=
20371 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20372 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20373 echo "${ECHO_T}found $TKCONFIG" >&6
20374 fi
20375 fi
20376
20377
20378
20379 # now look for Tcl library stuff
20380
20381 tcldir="../tcl/${configdir}/"
20382
20383 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20384
20385 # If $no_tk is nonempty, then we can't do Tk, and there is no
20386 # point to doing Tcl.
20387 if test -z "${no_tk}"; then
20388
20389 if test -f "$TKCONFIG" ; then
20390 . $TKCONFIG
20391 fi
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406 #
20407 # Ok, lets find the tcl source trees so we can use the headers
20408 # Warning: transition of version 9 to 10 will break this algorithm
20409 # because 10 sorts before 9. We also look for just tcl. We have to
20410 # be careful that we don't match stuff like tclX by accident.
20411 # the alternative search directory is involked by --with-tclinclude
20412 #
20413
20414 no_tcl=true
20415 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20416 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20417
20418 # Check whether --with-tclinclude or --without-tclinclude was given.
20419 if test "${with_tclinclude+set}" = set; then
20420 withval="$with_tclinclude"
20421 with_tclinclude=${withval}
20422 fi;
20423 if test "${ac_cv_c_tclh+set}" = set; then
20424 echo $ECHO_N "(cached) $ECHO_C" >&6
20425 else
20426
20427 # first check to see if --with-tclinclude was specified
20428 if test x"${with_tclinclude}" != x ; then
20429 if test -f ${with_tclinclude}/tclInt.h ; then
20430 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20431 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20432 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20433 else
20434 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20435 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20436 { (exit 1); exit 1; }; }
20437 fi
20438 fi
20439
20440 # next check if it came with Tcl configuration file
20441 if test x"${ac_cv_c_tclconfig}" = x ; then
20442 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20443 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20444 fi
20445 fi
20446
20447 # next check in private source directory
20448 #
20449 # since ls returns lowest version numbers first, reverse its output
20450 if test x"${ac_cv_c_tclh}" = x ; then
20451 for i in \
20452 ${srcdir}/../tcl \
20453 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20454 ${srcdir}/../../tcl \
20455 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20456 ${srcdir}/../../../tcl \
20457 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20458 if test -f $i/generic/tclInt.h ; then
20459 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20460 break
20461 fi
20462 done
20463 fi
20464 # finally check in a few common install locations
20465 #
20466 # since ls returns lowest version numbers first, reverse its output
20467 if test x"${ac_cv_c_tclh}" = x ; then
20468 for i in \
20469 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20470 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20471 /usr/local/src/tcl \
20472 /usr/local/lib/tcl \
20473 ${prefix}/include ; do
20474 if test -f $i/generic/tclInt.h ; then
20475 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20476 break
20477 fi
20478 done
20479 fi
20480 # see if one is installed
20481 if test x"${ac_cv_c_tclh}" = x ; then
20482 if test "${ac_cv_header_tclInt_h+set}" = set; then
20483 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20484 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20485 if test "${ac_cv_header_tclInt_h+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
20487 fi
20488 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20489 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20490 else
20491 # Is the header compilable?
20492 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20493 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20494 cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h. */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20500 $ac_includes_default
20501 #include <tclInt.h>
20502 _ACEOF
20503 rm -f conftest.$ac_objext
20504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20505 (eval $ac_compile) 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } &&
20512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; } &&
20518 { ac_try='test -s conftest.$ac_objext'
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20521 ac_status=$?
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; }; then
20524 ac_header_compiler=yes
20525 else
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529 ac_header_compiler=no
20530 fi
20531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20533 echo "${ECHO_T}$ac_header_compiler" >&6
20534
20535 # Is the header present?
20536 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20537 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20538 cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h. */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20544 #include <tclInt.h>
20545 _ACEOF
20546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20548 ac_status=$?
20549 grep -v '^ *+' conftest.er1 >conftest.err
20550 rm -f conftest.er1
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } >/dev/null; then
20554 if test -s conftest.err; then
20555 ac_cpp_err=$ac_c_preproc_warn_flag
20556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20557 else
20558 ac_cpp_err=
20559 fi
20560 else
20561 ac_cpp_err=yes
20562 fi
20563 if test -z "$ac_cpp_err"; then
20564 ac_header_preproc=yes
20565 else
20566 echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20568
20569 ac_header_preproc=no
20570 fi
20571 rm -f conftest.err conftest.$ac_ext
20572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20573 echo "${ECHO_T}$ac_header_preproc" >&6
20574
20575 # So? What about this header?
20576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20577 yes:no: )
20578 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20579 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20580 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20581 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20582 ac_header_preproc=yes
20583 ;;
20584 no:yes:* )
20585 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20586 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20587 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20588 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20589 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20590 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20591 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20592 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20593 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20594 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20595 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20596 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20597 (
20598 cat <<\_ASBOX
20599 ## ------------------------------------------ ##
20600 ## Report this to the AC_PACKAGE_NAME lists. ##
20601 ## ------------------------------------------ ##
20602 _ASBOX
20603 ) |
20604 sed "s/^/$as_me: WARNING: /" >&2
20605 ;;
20606 esac
20607 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20608 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20609 if test "${ac_cv_header_tclInt_h+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612 ac_cv_header_tclInt_h=$ac_header_preproc
20613 fi
20614 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20615 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20616
20617 fi
20618 if test $ac_cv_header_tclInt_h = yes; then
20619 ac_cv_c_tclh=installed
20620 else
20621 ac_cv_c_tclh=""
20622 fi
20623
20624
20625 fi
20626
20627 fi
20628
20629 if test x"${ac_cv_c_tclh}" = x ; then
20630 TCLHDIR="# no Tcl private headers found"
20631 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20632 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20633 { (exit 1); exit 1; }; }
20634 fi
20635 if test x"${ac_cv_c_tclh}" != x ; then
20636 no_tcl=""
20637 if test x"${ac_cv_c_tclh}" = x"installed" ; then
20638 echo "$as_me:$LINENO: result: is installed" >&5
20639 echo "${ECHO_T}is installed" >&6
20640 TCLHDIR=""
20641 else
20642 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20643 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20644 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20645 TCLHDIR="-I${ac_cv_c_tclh}"
20646 fi
20647 fi
20648
20649
20650
20651
20652 #
20653 # Ok, lets find the tk source trees so we can use the headers
20654 # If the directory (presumably symlink) named "tk" exists, use that one
20655 # in preference to any others. Same logic is used when choosing library
20656 # and again with Tcl. The search order is the best place to look first, then in
20657 # decreasing significance. The loop breaks if the trigger file is found.
20658 # Note the gross little conversion here of srcdir by cd'ing to the found
20659 # directory. This converts the path from a relative to an absolute, so
20660 # recursive cache variables for the path will work right. We check all
20661 # the possible paths in one loop rather than many seperate loops to speed
20662 # things up.
20663 # the alternative search directory is involked by --with-tkinclude
20664 #
20665 no_tk=true
20666 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20667 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20668
20669 # Check whether --with-tkinclude or --without-tkinclude was given.
20670 if test "${with_tkinclude+set}" = set; then
20671 withval="$with_tkinclude"
20672 with_tkinclude=${withval}
20673 fi;
20674 if test "${ac_cv_c_tkh+set}" = set; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 else
20677
20678 # first check to see if --with-tkinclude was specified
20679 if test x"${with_tkinclude}" != x ; then
20680 if test -f ${with_tkinclude}/tk.h ; then
20681 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20682 elif test -f ${with_tkinclude}/generic/tk.h ; then
20683 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20684 else
20685 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20686 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20687 { (exit 1); exit 1; }; }
20688 fi
20689 fi
20690
20691 # next check if it came with Tk configuration file
20692 if test x"${ac_cv_c_tkconfig}" = x ; then
20693 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20694 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20695 fi
20696 fi
20697
20698 # next check in private source directory
20699 #
20700 # since ls returns lowest version numbers first, reverse its output
20701 if test x"${ac_cv_c_tkh}" = x ; then
20702 for i in \
20703 ${srcdir}/../tk \
20704 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20705 ${srcdir}/../../tk \
20706 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20707 ${srcdir}/../../../tk \
20708 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20709 if test -f $i/generic/tk.h ; then
20710 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20711 break
20712 fi
20713 done
20714 fi
20715 # finally check in a few common install locations
20716 #
20717 # since ls returns lowest version numbers first, reverse its output
20718 if test x"${ac_cv_c_tkh}" = x ; then
20719 for i in \
20720 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20721 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20722 /usr/local/src/tk \
20723 /usr/local/lib/tk \
20724 ${prefix}/include ; do
20725 if test -f $i/generic/tk.h ; then
20726 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20727 break
20728 fi
20729 done
20730 fi
20731 # see if one is installed
20732 if test x"${ac_cv_c_tkh}" = x ; then
20733 if test "${ac_cv_header_tk_h+set}" = set; then
20734 echo "$as_me:$LINENO: checking for tk.h" >&5
20735 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20736 if test "${ac_cv_header_tk_h+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 fi
20739 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20740 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20741 else
20742 # Is the header compilable?
20743 echo "$as_me:$LINENO: checking tk.h usability" >&5
20744 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20745 cat >conftest.$ac_ext <<_ACEOF
20746 /* confdefs.h. */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 $ac_includes_default
20752 #include <tk.h>
20753 _ACEOF
20754 rm -f conftest.$ac_objext
20755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20756 (eval $ac_compile) 2>conftest.er1
20757 ac_status=$?
20758 grep -v '^ *+' conftest.er1 >conftest.err
20759 rm -f conftest.er1
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } &&
20763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765 (eval $ac_try) 2>&5
20766 ac_status=$?
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; } &&
20769 { ac_try='test -s conftest.$ac_objext'
20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20772 ac_status=$?
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; }; then
20775 ac_header_compiler=yes
20776 else
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20779
20780 ac_header_compiler=no
20781 fi
20782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20784 echo "${ECHO_T}$ac_header_compiler" >&6
20785
20786 # Is the header present?
20787 echo "$as_me:$LINENO: checking tk.h presence" >&5
20788 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20789 cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h. */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20795 #include <tk.h>
20796 _ACEOF
20797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20799 ac_status=$?
20800 grep -v '^ *+' conftest.er1 >conftest.err
20801 rm -f conftest.er1
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } >/dev/null; then
20805 if test -s conftest.err; then
20806 ac_cpp_err=$ac_c_preproc_warn_flag
20807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20808 else
20809 ac_cpp_err=
20810 fi
20811 else
20812 ac_cpp_err=yes
20813 fi
20814 if test -z "$ac_cpp_err"; then
20815 ac_header_preproc=yes
20816 else
20817 echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20819
20820 ac_header_preproc=no
20821 fi
20822 rm -f conftest.err conftest.$ac_ext
20823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20824 echo "${ECHO_T}$ac_header_preproc" >&6
20825
20826 # So? What about this header?
20827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20828 yes:no: )
20829 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20830 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20831 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20832 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20833 ac_header_preproc=yes
20834 ;;
20835 no:yes:* )
20836 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20837 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20838 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20839 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20840 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20841 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20842 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20843 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20844 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20845 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20846 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20847 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20848 (
20849 cat <<\_ASBOX
20850 ## ------------------------------------------ ##
20851 ## Report this to the AC_PACKAGE_NAME lists. ##
20852 ## ------------------------------------------ ##
20853 _ASBOX
20854 ) |
20855 sed "s/^/$as_me: WARNING: /" >&2
20856 ;;
20857 esac
20858 echo "$as_me:$LINENO: checking for tk.h" >&5
20859 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20860 if test "${ac_cv_header_tk_h+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 else
20863 ac_cv_header_tk_h=$ac_header_preproc
20864 fi
20865 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20866 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20867
20868 fi
20869 if test $ac_cv_header_tk_h = yes; then
20870 ac_cv_c_tkh=installed
20871 else
20872 ac_cv_c_tkh=""
20873 fi
20874
20875
20876 fi
20877
20878 fi
20879
20880 if test x"${ac_cv_c_tkh}" != x ; then
20881 no_tk=""
20882 if test x"${ac_cv_c_tkh}" = x"installed" ; then
20883 echo "$as_me:$LINENO: result: is installed" >&5
20884 echo "${ECHO_T}is installed" >&6
20885 TKHDIR=""
20886 else
20887 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20888 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
20889 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20890 TKHDIR="-I${ac_cv_c_tkh}"
20891 fi
20892 else
20893 TKHDIR="# no Tk directory found"
20894 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20895 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
20896 no_tk=true
20897 fi
20898
20899
20900
20901
20902 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20903 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
20904 if test x"${ac_cv_c_itclh}" = x ; then
20905 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20906 if test -f $i/generic/itcl.h ; then
20907 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20908 break
20909 fi
20910 done
20911 fi
20912 if test x"${ac_cv_c_itclh}" = x ; then
20913 ITCLHDIR="# no Itcl private headers found"
20914 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20915 echo "$as_me: error: Can't find Itcl private headers" >&2;}
20916 { (exit 1); exit 1; }; }
20917 fi
20918 if test x"${ac_cv_c_itclh}" != x ; then
20919 ITCLHDIR="-I${ac_cv_c_itclh}"
20920 fi
20921 # should always be here
20922 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
20923
20924 #AC_SUBST(ITCLLIB)
20925
20926
20927 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20928 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
20929 if test x"${ac_cv_c_itkh}" = x ; then
20930 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20931 if test -f $i/generic/itk.h ; then
20932 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20933 break
20934 fi
20935 done
20936 fi
20937 if test x"${ac_cv_c_itkh}" = x ; then
20938 ITKHDIR="# no Itk private headers found"
20939 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20940 echo "$as_me: error: Can't find Itk private headers" >&2;}
20941 { (exit 1); exit 1; }; }
20942 fi
20943 if test x"${ac_cv_c_itkh}" != x ; then
20944 ITKHDIR="-I${ac_cv_c_itkh}"
20945 fi
20946 # should always be here
20947 # ITKLIB="../itcl/itk/unix/libitk.a"
20948
20949 #AC_SUBST(ITKLIB)
20950
20951
20952
20953 # now look for Tk library stuff
20954
20955 tkdir="../tk/${configdir}/"
20956
20957 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20958
20959 # now look for Itcl library stuff
20960
20961
20962 #
20963 # Ok, lets find the itcl configuration
20964 # First, look for one uninstalled.
20965 # the alternative search directory is invoked by --with-itclconfig
20966 #
20967
20968 if test x"${no_itcl}" = x ; then
20969 # we reset no_itcl in case something fails here
20970 no_itcl=true
20971
20972 # Check whether --with-itclconfig or --without-itclconfig was given.
20973 if test "${with_itclconfig+set}" = set; then
20974 withval="$with_itclconfig"
20975 with_itclconfig=${withval}
20976 fi;
20977 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20978 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20979 if test "${ac_cv_c_itclconfig+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 else
20982
20983
20984 # First check to see if --with-itclconfig was specified.
20985 if test x"${with_itclconfig}" != x ; then
20986 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20987 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20988 else
20989 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20990 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20991 { (exit 1); exit 1; }; }
20992 fi
20993 fi
20994
20995 # then check for a private Itcl library
20996 if test x"${ac_cv_c_itclconfig}" = x ; then
20997 for i in \
20998 ../itcl/itcl \
20999 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
21000 ../../itcl \
21001 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
21002 ../../../itcl \
21003 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
21004 if test -f "$i/itclConfig.sh" ; then
21005 ac_cv_c_itclconfig=`(cd $i; pwd)`
21006 break
21007 fi
21008 done
21009 fi
21010 # check in a few common install locations
21011 if test x"${ac_cv_c_itclconfig}" = x ; then
21012 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21013 if test -f "$i/itclConfig.sh" ; then
21014 ac_cv_c_itclconfig=`(cd $i; pwd)`
21015 break
21016 fi
21017 done
21018 fi
21019 # check in a few other private locations
21020 if test x"${ac_cv_c_itclconfig}" = x ; then
21021 for i in \
21022 ${srcdir}/../itcl/itcl \
21023 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
21024 if test -f "$i/itclConfig.sh" ; then
21025 ac_cv_c_itclconfig=`(cd $i; pwd)`
21026 break
21027 fi
21028 done
21029 fi
21030
21031 fi
21032
21033 if test x"${ac_cv_c_itclconfig}" = x ; then
21034 ITCLCONFIG="# no Itcl configs found"
21035 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21036 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
21037 else
21038 no_itcl=
21039 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
21040 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21041 echo "${ECHO_T}found $ITCLCONFIG" >&6
21042 fi
21043 fi
21044
21045 if test -z "${no_itcl}"; then
21046
21047 if test -f "$ITCLCONFIG" ; then
21048 . $ITCLCONFIG
21049 fi
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
21063 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
21064 fi
21065
21066
21067 # now look for Itk library stuff
21068
21069 #
21070 # Ok, lets find the itk configuration
21071 # First, look for one uninstalled.
21072 # the alternative search directory is invoked by --with-itkconfig
21073 #
21074
21075 if test x"${no_itk}" = x ; then
21076 # we reset no_itk in case something fails here
21077 no_itk=true
21078
21079 # Check whether --with-itkconfig or --without-itkconfig was given.
21080 if test "${with_itkconfig+set}" = set; then
21081 withval="$with_itkconfig"
21082 with_itkconfig=${withval}
21083 fi;
21084 echo "$as_me:$LINENO: checking for Itk configuration" >&5
21085 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21086 if test "${ac_cv_c_itkconfig+set}" = set; then
21087 echo $ECHO_N "(cached) $ECHO_C" >&6
21088 else
21089
21090
21091 # First check to see if --with-itkconfig was specified.
21092 if test x"${with_itkconfig}" != x ; then
21093 if test -f "${with_itkconfig}/itkConfig.sh" ; then
21094 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
21095 else
21096 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21097 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21098 { (exit 1); exit 1; }; }
21099 fi
21100 fi
21101
21102 # then check for a private Itk library
21103 if test x"${ac_cv_c_itkconfig}" = x ; then
21104 for i in \
21105 ../itcl/itk \
21106 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21107 ../../itk \
21108 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21109 ../../../itk \
21110 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21111 if test -f "$i/itkConfig.sh" ; then
21112 ac_cv_c_itkconfig=`(cd $i; pwd)`
21113 break
21114 fi
21115 done
21116 fi
21117 # check in a few common install locations
21118 if test x"${ac_cv_c_itkconfig}" = x ; then
21119 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21120 if test -f "$i/itkConfig.sh" ; then
21121 ac_cv_c_itkconfig=`(cd $i; pwd)`
21122 break
21123 fi
21124 done
21125 fi
21126 # check in a few other private locations
21127 if test x"${ac_cv_c_itkconfig}" = x ; then
21128 for i in \
21129 ${srcdir}/../itcl/itk \
21130 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21131 if test -f "$i/itkConfig.sh" ; then
21132 ac_cv_c_itkconfig=`(cd $i; pwd)`
21133 break
21134 fi
21135 done
21136 fi
21137
21138 fi
21139
21140 if test x"${ac_cv_c_itkconfig}" = x ; then
21141 ITKCONFIG="# no Itk configs found"
21142 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21143 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
21144 else
21145 no_itk=
21146 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
21147 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21148 echo "${ECHO_T}found $ITKCONFIG" >&6
21149 fi
21150 fi
21151
21152
21153 if test -z "${no_itcl}"; then
21154
21155 if test -f "$ITKCONFIG" ; then
21156 . $ITKCONFIG
21157 fi
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170 ITKLIB="${ITK_BUILD_LIB_SPEC}"
21171 ITK_DEPS="${ITK_LIB_FULL_PATH}"
21172 fi
21173
21174 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
21175
21176 # Include some libraries that Tcl and Tk want.
21177 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
21178 # Yes, the ordering seems wrong here. But it isn't.
21179 # TK_LIBS is the list of libraries that need to be linked
21180 # after Tcl/Tk. Note that this isn't put into LIBS. If it
21181 # were in LIBS then any link tests after this point would
21182 # try to include things like `$(LIBGUI)', which wouldn't work.
21183 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
21184
21185 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21186 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21187 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
21188 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21189 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21190 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21191 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
21192
21193 if test x$gdb_cv_os_cygwin = xyes; then
21194 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21195 WIN32LDAPP="-Wl,--subsystem,console"
21196 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21197 fi
21198 fi
21199 fi
21200
21201
21202
21203 subdirs="$subdirs gdbtk"
21204
21205 fi
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220 echo "$as_me:$LINENO: checking for X" >&5
21221 echo $ECHO_N "checking for X... $ECHO_C" >&6
21222
21223 ac_path_x_has_been_run=yes
21224
21225 # Check whether --with-x or --without-x was given.
21226 if test "${with_x+set}" = set; then
21227 withval="$with_x"
21228
21229 fi;
21230 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21231 if test "x$with_x" = xno; then
21232 # The user explicitly disabled X.
21233 have_x=disabled
21234 else
21235 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21236 # Both variables are already set.
21237 have_x=yes
21238 else
21239 if test "${ac_cv_have_x+set}" = set; then
21240 echo $ECHO_N "(cached) $ECHO_C" >&6
21241 else
21242 # One or both of the vars are not set, and there is no cached value.
21243 ac_x_includes=no ac_x_libraries=no
21244 rm -fr conftest.dir
21245 if mkdir conftest.dir; then
21246 cd conftest.dir
21247 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21248 cat >Imakefile <<'_ACEOF'
21249 acfindx:
21250 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21251 _ACEOF
21252 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21253 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21254 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21255 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21256 for ac_extension in a so sl; do
21257 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21258 test -f $ac_im_libdir/libX11.$ac_extension; then
21259 ac_im_usrlibdir=$ac_im_libdir; break
21260 fi
21261 done
21262 # Screen out bogus values from the imake configuration. They are
21263 # bogus both because they are the default anyway, and because
21264 # using them would break gcc on systems where it needs fixed includes.
21265 case $ac_im_incroot in
21266 /usr/include) ;;
21267 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21268 esac
21269 case $ac_im_usrlibdir in
21270 /usr/lib | /lib) ;;
21271 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21272 esac
21273 fi
21274 cd ..
21275 rm -fr conftest.dir
21276 fi
21277
21278 # Standard set of common directories for X headers.
21279 # Check X11 before X11Rn because it is often a symlink to the current release.
21280 ac_x_header_dirs='
21281 /usr/X11/include
21282 /usr/X11R6/include
21283 /usr/X11R5/include
21284 /usr/X11R4/include
21285
21286 /usr/include/X11
21287 /usr/include/X11R6
21288 /usr/include/X11R5
21289 /usr/include/X11R4
21290
21291 /usr/local/X11/include
21292 /usr/local/X11R6/include
21293 /usr/local/X11R5/include
21294 /usr/local/X11R4/include
21295
21296 /usr/local/include/X11
21297 /usr/local/include/X11R6
21298 /usr/local/include/X11R5
21299 /usr/local/include/X11R4
21300
21301 /usr/X386/include
21302 /usr/x386/include
21303 /usr/XFree86/include/X11
21304
21305 /usr/include
21306 /usr/local/include
21307 /usr/unsupported/include
21308 /usr/athena/include
21309 /usr/local/x11r5/include
21310 /usr/lpp/Xamples/include
21311
21312 /usr/openwin/include
21313 /usr/openwin/share/include'
21314
21315 if test "$ac_x_includes" = no; then
21316 # Guess where to find include files, by looking for a specified header file.
21317 # First, try using that file with no special directory specified.
21318 cat >conftest.$ac_ext <<_ACEOF
21319 /* confdefs.h. */
21320 _ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21324 #include <X11/Xlib.h>
21325 _ACEOF
21326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21328 ac_status=$?
21329 grep -v '^ *+' conftest.er1 >conftest.err
21330 rm -f conftest.er1
21331 cat conftest.err >&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } >/dev/null; then
21334 if test -s conftest.err; then
21335 ac_cpp_err=$ac_c_preproc_warn_flag
21336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21337 else
21338 ac_cpp_err=
21339 fi
21340 else
21341 ac_cpp_err=yes
21342 fi
21343 if test -z "$ac_cpp_err"; then
21344 # We can compile using X headers with no special include directory.
21345 ac_x_includes=
21346 else
21347 echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21349
21350 for ac_dir in $ac_x_header_dirs; do
21351 if test -r "$ac_dir/X11/Xlib.h"; then
21352 ac_x_includes=$ac_dir
21353 break
21354 fi
21355 done
21356 fi
21357 rm -f conftest.err conftest.$ac_ext
21358 fi # $ac_x_includes = no
21359
21360 if test "$ac_x_libraries" = no; then
21361 # Check for the libraries.
21362 # See if we find them without any special options.
21363 # Don't add to $LIBS permanently.
21364 ac_save_LIBS=$LIBS
21365 LIBS="-lX11 $LIBS"
21366 cat >conftest.$ac_ext <<_ACEOF
21367 /* confdefs.h. */
21368 _ACEOF
21369 cat confdefs.h >>conftest.$ac_ext
21370 cat >>conftest.$ac_ext <<_ACEOF
21371 /* end confdefs.h. */
21372 #include <X11/Xlib.h>
21373 int
21374 main ()
21375 {
21376 XrmInitialize ()
21377 ;
21378 return 0;
21379 }
21380 _ACEOF
21381 rm -f conftest.$ac_objext conftest$ac_exeext
21382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21383 (eval $ac_link) 2>conftest.er1
21384 ac_status=$?
21385 grep -v '^ *+' conftest.er1 >conftest.err
21386 rm -f conftest.er1
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } &&
21390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21392 (eval $ac_try) 2>&5
21393 ac_status=$?
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }; } &&
21396 { ac_try='test -s conftest$ac_exeext'
21397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398 (eval $ac_try) 2>&5
21399 ac_status=$?
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); }; }; then
21402 LIBS=$ac_save_LIBS
21403 # We can link X programs with no special library path.
21404 ac_x_libraries=
21405 else
21406 echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21408
21409 LIBS=$ac_save_LIBS
21410 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21411 do
21412 # Don't even attempt the hair of trying to link an X program!
21413 for ac_extension in a so sl; do
21414 if test -r $ac_dir/libX11.$ac_extension; then
21415 ac_x_libraries=$ac_dir
21416 break 2
21417 fi
21418 done
21419 done
21420 fi
21421 rm -f conftest.err conftest.$ac_objext \
21422 conftest$ac_exeext conftest.$ac_ext
21423 fi # $ac_x_libraries = no
21424
21425 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21426 # Didn't find X anywhere. Cache the known absence of X.
21427 ac_cv_have_x="have_x=no"
21428 else
21429 # Record where we found X for the cache.
21430 ac_cv_have_x="have_x=yes \
21431 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21432 fi
21433 fi
21434
21435 fi
21436 eval "$ac_cv_have_x"
21437 fi # $with_x != no
21438
21439 if test "$have_x" != yes; then
21440 echo "$as_me:$LINENO: result: $have_x" >&5
21441 echo "${ECHO_T}$have_x" >&6
21442 no_x=yes
21443 else
21444 # If each of the values was on the command line, it overrides each guess.
21445 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21446 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21447 # Update the cache value to reflect the command line values.
21448 ac_cv_have_x="have_x=yes \
21449 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21450 # It might be that x_includes is empty (headers are found in the
21451 # standard search path. Then output the corresponding message
21452 ac_out_x_includes=$x_includes
21453 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
21454 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
21455 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
21456 fi
21457
21458
21459 # Check whether we should enable the TUI, but only do so if we really
21460 # can.
21461 if test x"$enable_tui" = xyes; then
21462 if test -d $srcdir/tui; then
21463 if test "$ac_cv_search_waddstr" != no; then
21464 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21465 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21466 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21467 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21468 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21469 CONFIG_ALL="${CONFIG_ALL} all-tui"
21470 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21471 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21472 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21473 else
21474 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21475 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21476 fi
21477 fi
21478 fi
21479
21480 # Unlike the sim directory, whether a simulator is linked is controlled by
21481 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21482 # This code just checks for a few cases where we'd like to ignore those
21483 # definitions, even when they're present in the '.mt' file. These cases
21484 # are when --disable-sim is specified, or if the simulator directory is
21485 # not part of the source tree.
21486 #
21487 # Check whether --enable-sim or --disable-sim was given.
21488 if test "${enable_sim+set}" = set; then
21489 enableval="$enable_sim"
21490 echo "enable_sim = $enable_sim";
21491 echo "enableval = ${enableval}";
21492 case "${enableval}" in
21493 yes) ignore_sim=false ;;
21494 no) ignore_sim=true ;;
21495 *) ignore_sim=false ;;
21496 esac
21497 else
21498 ignore_sim=false
21499 fi;
21500
21501 if test ! -d "${srcdir}/../sim"; then
21502 ignore_sim=true
21503 fi
21504
21505 if test "${ignore_sim}" = "true"; then
21506 IGNORE_SIM="SIM="
21507 IGNORE_SIM_OBS="SIM_OBS="
21508 else
21509 IGNORE_SIM=""
21510 IGNORE_SIM_OBS=""
21511
21512 cat >>confdefs.h <<\_ACEOF
21513 #define WITH_SIM 1
21514 _ACEOF
21515
21516 fi
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531 # List of host floatformats.
21532
21533 cat >>confdefs.h <<_ACEOF
21534 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21535 _ACEOF
21536
21537
21538 cat >>confdefs.h <<_ACEOF
21539 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21540 _ACEOF
21541
21542
21543 cat >>confdefs.h <<_ACEOF
21544 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21545 _ACEOF
21546
21547
21548 # target_subdir is used by the testsuite to find the target libraries.
21549 target_subdir=
21550 if test "${host}" != "${target}"; then
21551 target_subdir="${target_alias}/"
21552 fi
21553
21554
21555 frags=
21556 if test "${target}" = "${host}"; then
21557 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21558 if test ! -f ${host_makefile_frag}; then
21559 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21560 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21561 { (exit 1); exit 1; }; }
21562 fi
21563 frags="$frags $host_makefile_frag"
21564 else
21565 host_makefile_frag=/dev/null
21566 fi
21567
21568 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21569 if test ! -f ${target_makefile_frag}; then
21570 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21571 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21572 { (exit 1); exit 1; }; }
21573 fi
21574 frags="$frags $target_makefile_frag"
21575
21576
21577
21578
21579
21580 hostfile=`sed -n '
21581 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21582 ' ${host_makefile_frag}`
21583
21584 targetfile=`sed -n '
21585 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21586 ' ${target_makefile_frag}`
21587
21588 if test "${target}" = "${host}"; then
21589 # We pick this up from the host configuration file (.mh) because we
21590 # do not have a native configuration Makefile fragment.
21591 nativefile=`sed -n '
21592 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21593 ' ${host_makefile_frag}`
21594 fi
21595
21596
21597 if test x"${gdb_osabi}" != x ; then
21598
21599 cat >>confdefs.h <<_ACEOF
21600 #define GDB_OSABI_DEFAULT $gdb_osabi
21601 _ACEOF
21602
21603 fi
21604
21605 # Enable multi-ice-gdb-server.
21606 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21607 if test "${enable_multi_ice+set}" = set; then
21608 enableval="$enable_multi_ice"
21609 case $enableval in
21610 yes | no)
21611 ;;
21612 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21613 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21614 { (exit 1); exit 1; }; } ;;
21615 esac
21616 fi;
21617 if test "x$enable_multi_ice" = xyes; then
21618
21619
21620 subdirs="$subdirs multi-ice"
21621
21622 fi
21623
21624 # We only build gdbserver automatically if host and target are the same.
21625 if test "x$target" = "x$host"; then
21626 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21627 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21628 if test "x$build_gdbserver" = xyes; then
21629 echo "$as_me:$LINENO: result: yes" >&5
21630 echo "${ECHO_T}yes" >&6
21631
21632
21633 subdirs="$subdirs gdbserver"
21634
21635 else
21636 echo "$as_me:$LINENO: result: no" >&5
21637 echo "${ECHO_T}no" >&6
21638 fi
21639 fi
21640
21641 # We configure the nlm subdirectory on netware targets, as instructed
21642 # by configure.tgt.
21643 if test "x$build_nlm" = xyes; then
21644
21645
21646 subdirs="$subdirs nlm"
21647
21648 fi
21649
21650 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21651 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21652 # to an empty version.
21653
21654 files=
21655 links=
21656
21657 rm -f xm.h
21658 xm_h=""
21659 if test "${hostfile}" != ""; then
21660 xm_h=xm.h
21661 case "${hostfile}" in
21662 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21663 * ) GDB_XM_FILE="${hostfile}"
21664 esac
21665 files="${files} ${GDB_XM_FILE}"
21666 links="${links} xm.h"
21667
21668 cat >>confdefs.h <<_ACEOF
21669 #define GDB_XM_FILE "${GDB_XM_FILE}"
21670 _ACEOF
21671
21672 fi
21673
21674
21675 rm -f tm.h
21676 tm_h=""
21677 if test "${targetfile}" != ""; then
21678 tm_h=tm.h
21679 case "${targetfile}" in
21680 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21681 * ) GDB_TM_FILE="${targetfile}"
21682 esac
21683 files="${files} ${GDB_TM_FILE}"
21684 links="${links} tm.h"
21685
21686 cat >>confdefs.h <<_ACEOF
21687 #define GDB_TM_FILE "${GDB_TM_FILE}"
21688 _ACEOF
21689
21690 fi
21691
21692
21693 rm -f nm.h
21694 nm_h=""
21695 if test "${nativefile}" != ""; then
21696 nm_h=nm.h
21697 case "${nativefile}" in
21698 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21699 * ) GDB_NM_FILE="${nativefile}"
21700 esac
21701 files="${files} ${GDB_NM_FILE}"
21702 links="${links} nm.h"
21703
21704 cat >>confdefs.h <<_ACEOF
21705 #define GDB_NM_FILE "${GDB_NM_FILE}"
21706 _ACEOF
21707
21708 fi
21709
21710
21711 ac_sources="$files"
21712 ac_dests="$links"
21713 while test -n "$ac_sources"; do
21714 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21715 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21716 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21717 done
21718 ac_config_links="$ac_config_links $ac_config_links_1"
21719
21720
21721
21722
21723
21724
21725 cat >>confdefs.h <<\_ACEOF
21726 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21727 _ACEOF
21728
21729
21730
21731
21732
21733 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21734 if test "${with_libiconv_prefix+set}" = set; then
21735 withval="$with_libiconv_prefix"
21736
21737 for dir in `echo "$withval" | tr : ' '`; do
21738 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21739 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21740 done
21741
21742 fi;
21743
21744 echo "$as_me:$LINENO: checking for iconv" >&5
21745 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21746 if test "${am_cv_func_iconv+set}" = set; then
21747 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 else
21749
21750 am_cv_func_iconv="no, consider installing GNU libiconv"
21751 am_cv_lib_iconv=no
21752 cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h. */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21758 #include <stdlib.h>
21759 #include <iconv.h>
21760 int
21761 main ()
21762 {
21763 iconv_t cd = iconv_open("","");
21764 iconv(cd,NULL,NULL,NULL,NULL);
21765 iconv_close(cd);
21766 ;
21767 return 0;
21768 }
21769 _ACEOF
21770 rm -f conftest.$ac_objext conftest$ac_exeext
21771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21772 (eval $ac_link) 2>conftest.er1
21773 ac_status=$?
21774 grep -v '^ *+' conftest.er1 >conftest.err
21775 rm -f conftest.er1
21776 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } &&
21779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21782 ac_status=$?
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; } &&
21785 { ac_try='test -s conftest$ac_exeext'
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then
21791 am_cv_func_iconv=yes
21792 else
21793 echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21795
21796 fi
21797 rm -f conftest.err conftest.$ac_objext \
21798 conftest$ac_exeext conftest.$ac_ext
21799 if test "$am_cv_func_iconv" != yes; then
21800 am_save_LIBS="$LIBS"
21801 LIBS="$LIBS -liconv"
21802 cat >conftest.$ac_ext <<_ACEOF
21803 /* confdefs.h. */
21804 _ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h. */
21808 #include <stdlib.h>
21809 #include <iconv.h>
21810 int
21811 main ()
21812 {
21813 iconv_t cd = iconv_open("","");
21814 iconv(cd,NULL,NULL,NULL,NULL);
21815 iconv_close(cd);
21816 ;
21817 return 0;
21818 }
21819 _ACEOF
21820 rm -f conftest.$ac_objext conftest$ac_exeext
21821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21822 (eval $ac_link) 2>conftest.er1
21823 ac_status=$?
21824 grep -v '^ *+' conftest.er1 >conftest.err
21825 rm -f conftest.er1
21826 cat conftest.err >&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } &&
21829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; } &&
21835 { ac_try='test -s conftest$ac_exeext'
21836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837 (eval $ac_try) 2>&5
21838 ac_status=$?
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); }; }; then
21841 am_cv_lib_iconv=yes
21842 am_cv_func_iconv=yes
21843 else
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21846
21847 fi
21848 rm -f conftest.err conftest.$ac_objext \
21849 conftest$ac_exeext conftest.$ac_ext
21850 LIBS="$am_save_LIBS"
21851 fi
21852
21853 fi
21854 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21855 echo "${ECHO_T}$am_cv_func_iconv" >&6
21856 if test "$am_cv_func_iconv" = yes; then
21857
21858 cat >>confdefs.h <<\_ACEOF
21859 #define HAVE_ICONV 1
21860 _ACEOF
21861
21862 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21863 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21864 if test "${am_cv_proto_iconv+set}" = set; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21866 else
21867
21868 cat >conftest.$ac_ext <<_ACEOF
21869 /* confdefs.h. */
21870 _ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h. */
21874
21875 #include <stdlib.h>
21876 #include <iconv.h>
21877 extern
21878 #ifdef __cplusplus
21879 "C"
21880 #endif
21881 #if defined(__STDC__) || defined(__cplusplus)
21882 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21883 #else
21884 size_t iconv();
21885 #endif
21886
21887 int
21888 main ()
21889 {
21890
21891 ;
21892 return 0;
21893 }
21894 _ACEOF
21895 rm -f conftest.$ac_objext
21896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21897 (eval $ac_compile) 2>conftest.er1
21898 ac_status=$?
21899 grep -v '^ *+' conftest.er1 >conftest.err
21900 rm -f conftest.er1
21901 cat conftest.err >&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } &&
21904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906 (eval $ac_try) 2>&5
21907 ac_status=$?
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); }; } &&
21910 { ac_try='test -s conftest.$ac_objext'
21911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912 (eval $ac_try) 2>&5
21913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; }; then
21916 am_cv_proto_iconv_arg1=""
21917 else
21918 echo "$as_me: failed program was:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21920
21921 am_cv_proto_iconv_arg1="const"
21922 fi
21923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21924 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);"
21925 fi
21926
21927 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21928 echo "$as_me:$LINENO: result: ${ac_t:-
21929 }$am_cv_proto_iconv" >&5
21930 echo "${ECHO_T}${ac_t:-
21931 }$am_cv_proto_iconv" >&6
21932
21933 cat >>confdefs.h <<_ACEOF
21934 #define ICONV_CONST $am_cv_proto_iconv_arg1
21935 _ACEOF
21936
21937 fi
21938 LIBICONV=
21939 if test "$am_cv_lib_iconv" = yes; then
21940 LIBICONV="-liconv"
21941 fi
21942
21943
21944
21945 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21946 ac_config_commands="$ac_config_commands default"
21947 cat >confcache <<\_ACEOF
21948 # This file is a shell script that caches the results of configure
21949 # tests run on this system so they can be shared between configure
21950 # scripts and configure runs, see configure's option --config-cache.
21951 # It is not useful on other systems. If it contains results you don't
21952 # want to keep, you may remove or edit it.
21953 #
21954 # config.status only pays attention to the cache file if you give it
21955 # the --recheck option to rerun configure.
21956 #
21957 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21958 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21959 # following values.
21960
21961 _ACEOF
21962
21963 # The following way of writing the cache mishandles newlines in values,
21964 # but we know of no workaround that is simple, portable, and efficient.
21965 # So, don't put newlines in cache variables' values.
21966 # Ultrix sh set writes to stderr and can't be redirected directly,
21967 # and sets the high bit in the cache file unless we assign to the vars.
21968 {
21969 (set) 2>&1 |
21970 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21971 *ac_space=\ *)
21972 # `set' does not quote correctly, so add quotes (double-quote
21973 # substitution turns \\\\ into \\, and sed turns \\ into \).
21974 sed -n \
21975 "s/'/'\\\\''/g;
21976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21977 ;;
21978 *)
21979 # `set' quotes correctly as required by POSIX, so do not add quotes.
21980 sed -n \
21981 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21982 ;;
21983 esac;
21984 } |
21985 sed '
21986 t clear
21987 : clear
21988 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21989 t end
21990 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21991 : end' >>confcache
21992 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21993 if test -w $cache_file; then
21994 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21995 cat confcache >$cache_file
21996 else
21997 echo "not updating unwritable cache $cache_file"
21998 fi
21999 fi
22000 rm -f confcache
22001
22002 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22003 # Let make expand exec_prefix.
22004 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22005
22006 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22007 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22008 # trailing colons and then remove the whole line if VPATH becomes empty
22009 # (actually we leave an empty line to preserve line numbers).
22010 if test "x$srcdir" = x.; then
22011 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22012 s/:*\$(srcdir):*/:/;
22013 s/:*\${srcdir}:*/:/;
22014 s/:*@srcdir@:*/:/;
22015 s/^\([^=]*=[ ]*\):*/\1/;
22016 s/:*$//;
22017 s/^[^=]*=[ ]*$//;
22018 }'
22019 fi
22020
22021 DEFS=-DHAVE_CONFIG_H
22022
22023 ac_libobjs=
22024 ac_ltlibobjs=
22025 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22026 # 1. Remove the extension, and $U if already installed.
22027 ac_i=`echo "$ac_i" |
22028 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22029 # 2. Add them.
22030 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22031 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22032 done
22033 LIBOBJS=$ac_libobjs
22034
22035 LTLIBOBJS=$ac_ltlibobjs
22036
22037
22038 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22039 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22040 Usually this means the macro was only invoked conditionally." >&5
22041 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22042 Usually this means the macro was only invoked conditionally." >&2;}
22043 { (exit 1); exit 1; }; }
22044 fi
22045
22046 : ${CONFIG_STATUS=./config.status}
22047 ac_clean_files_save=$ac_clean_files
22048 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22049 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22050 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22051 cat >$CONFIG_STATUS <<_ACEOF
22052 #! $SHELL
22053 # Generated by $as_me.
22054 # Run this file to recreate the current configuration.
22055 # Compiler output produced by configure, useful for debugging
22056 # configure, is in config.log if it exists.
22057
22058 debug=false
22059 ac_cs_recheck=false
22060 ac_cs_silent=false
22061 SHELL=\${CONFIG_SHELL-$SHELL}
22062 _ACEOF
22063
22064 cat >>$CONFIG_STATUS <<\_ACEOF
22065 ## --------------------- ##
22066 ## M4sh Initialization. ##
22067 ## --------------------- ##
22068
22069 # Be Bourne compatible
22070 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22071 emulate sh
22072 NULLCMD=:
22073 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22074 # is contrary to our usage. Disable this feature.
22075 alias -g '${1+"$@"}'='"$@"'
22076 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22077 set -o posix
22078 fi
22079 DUALCASE=1; export DUALCASE # for MKS sh
22080
22081 # Support unset when possible.
22082 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22083 as_unset=unset
22084 else
22085 as_unset=false
22086 fi
22087
22088
22089 # Work around bugs in pre-3.0 UWIN ksh.
22090 $as_unset ENV MAIL MAILPATH
22091 PS1='$ '
22092 PS2='> '
22093 PS4='+ '
22094
22095 # NLS nuisances.
22096 for as_var in \
22097 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22098 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22099 LC_TELEPHONE LC_TIME
22100 do
22101 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22102 eval $as_var=C; export $as_var
22103 else
22104 $as_unset $as_var
22105 fi
22106 done
22107
22108 # Required to use basename.
22109 if expr a : '\(a\)' >/dev/null 2>&1; then
22110 as_expr=expr
22111 else
22112 as_expr=false
22113 fi
22114
22115 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22116 as_basename=basename
22117 else
22118 as_basename=false
22119 fi
22120
22121
22122 # Name of the executable.
22123 as_me=`$as_basename "$0" ||
22124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22125 X"$0" : 'X\(//\)$' \| \
22126 X"$0" : 'X\(/\)$' \| \
22127 . : '\(.\)' 2>/dev/null ||
22128 echo X/"$0" |
22129 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22130 /^X\/\(\/\/\)$/{ s//\1/; q; }
22131 /^X\/\(\/\).*/{ s//\1/; q; }
22132 s/.*/./; q'`
22133
22134
22135 # PATH needs CR, and LINENO needs CR and PATH.
22136 # Avoid depending upon Character Ranges.
22137 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22138 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22139 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22140 as_cr_digits='0123456789'
22141 as_cr_alnum=$as_cr_Letters$as_cr_digits
22142
22143 # The user is always right.
22144 if test "${PATH_SEPARATOR+set}" != set; then
22145 echo "#! /bin/sh" >conf$$.sh
22146 echo "exit 0" >>conf$$.sh
22147 chmod +x conf$$.sh
22148 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22149 PATH_SEPARATOR=';'
22150 else
22151 PATH_SEPARATOR=:
22152 fi
22153 rm -f conf$$.sh
22154 fi
22155
22156
22157 as_lineno_1=$LINENO
22158 as_lineno_2=$LINENO
22159 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22160 test "x$as_lineno_1" != "x$as_lineno_2" &&
22161 test "x$as_lineno_3" = "x$as_lineno_2" || {
22162 # Find who we are. Look in the path if we contain no path at all
22163 # relative or not.
22164 case $0 in
22165 *[\\/]* ) as_myself=$0 ;;
22166 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22167 for as_dir in $PATH
22168 do
22169 IFS=$as_save_IFS
22170 test -z "$as_dir" && as_dir=.
22171 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22172 done
22173
22174 ;;
22175 esac
22176 # We did not find ourselves, most probably we were run as `sh COMMAND'
22177 # in which case we are not to be found in the path.
22178 if test "x$as_myself" = x; then
22179 as_myself=$0
22180 fi
22181 if test ! -f "$as_myself"; then
22182 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22183 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22184 { (exit 1); exit 1; }; }
22185 fi
22186 case $CONFIG_SHELL in
22187 '')
22188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22190 do
22191 IFS=$as_save_IFS
22192 test -z "$as_dir" && as_dir=.
22193 for as_base in sh bash ksh sh5; do
22194 case $as_dir in
22195 /*)
22196 if ("$as_dir/$as_base" -c '
22197 as_lineno_1=$LINENO
22198 as_lineno_2=$LINENO
22199 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22200 test "x$as_lineno_1" != "x$as_lineno_2" &&
22201 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22202 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22203 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22204 CONFIG_SHELL=$as_dir/$as_base
22205 export CONFIG_SHELL
22206 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22207 fi;;
22208 esac
22209 done
22210 done
22211 ;;
22212 esac
22213
22214 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22215 # uniformly replaced by the line number. The first 'sed' inserts a
22216 # line-number line before each line; the second 'sed' does the real
22217 # work. The second script uses 'N' to pair each line-number line
22218 # with the numbered line, and appends trailing '-' during
22219 # substitution so that $LINENO is not a special case at line end.
22220 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22221 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22222 sed '=' <$as_myself |
22223 sed '
22224 N
22225 s,$,-,
22226 : loop
22227 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22228 t loop
22229 s,-$,,
22230 s,^['$as_cr_digits']*\n,,
22231 ' >$as_me.lineno &&
22232 chmod +x $as_me.lineno ||
22233 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22234 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22235 { (exit 1); exit 1; }; }
22236
22237 # Don't try to exec as it changes $[0], causing all sort of problems
22238 # (the dirname of $[0] is not the place where we might find the
22239 # original and so on. Autoconf is especially sensible to this).
22240 . ./$as_me.lineno
22241 # Exit status is that of the last command.
22242 exit
22243 }
22244
22245
22246 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22247 *c*,-n*) ECHO_N= ECHO_C='
22248 ' ECHO_T=' ' ;;
22249 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22250 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22251 esac
22252
22253 if expr a : '\(a\)' >/dev/null 2>&1; then
22254 as_expr=expr
22255 else
22256 as_expr=false
22257 fi
22258
22259 rm -f conf$$ conf$$.exe conf$$.file
22260 echo >conf$$.file
22261 if ln -s conf$$.file conf$$ 2>/dev/null; then
22262 # We could just check for DJGPP; but this test a) works b) is more generic
22263 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22264 if test -f conf$$.exe; then
22265 # Don't use ln at all; we don't have any links
22266 as_ln_s='cp -p'
22267 else
22268 as_ln_s='ln -s'
22269 fi
22270 elif ln conf$$.file conf$$ 2>/dev/null; then
22271 as_ln_s=ln
22272 else
22273 as_ln_s='cp -p'
22274 fi
22275 rm -f conf$$ conf$$.exe conf$$.file
22276
22277 if mkdir -p . 2>/dev/null; then
22278 as_mkdir_p=:
22279 else
22280 test -d ./-p && rmdir ./-p
22281 as_mkdir_p=false
22282 fi
22283
22284 as_executable_p="test -f"
22285
22286 # Sed expression to map a string onto a valid CPP name.
22287 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22288
22289 # Sed expression to map a string onto a valid variable name.
22290 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22291
22292
22293 # IFS
22294 # We need space, tab and new line, in precisely that order.
22295 as_nl='
22296 '
22297 IFS=" $as_nl"
22298
22299 # CDPATH.
22300 $as_unset CDPATH
22301
22302 exec 6>&1
22303
22304 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22305 # report actual input values of CONFIG_FILES etc. instead of their
22306 # values after options handling. Logging --version etc. is OK.
22307 exec 5>>config.log
22308 {
22309 echo
22310 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22311 ## Running $as_me. ##
22312 _ASBOX
22313 } >&5
22314 cat >&5 <<_CSEOF
22315
22316 This file was extended by $as_me, which was
22317 generated by GNU Autoconf 2.59. Invocation command line was
22318
22319 CONFIG_FILES = $CONFIG_FILES
22320 CONFIG_HEADERS = $CONFIG_HEADERS
22321 CONFIG_LINKS = $CONFIG_LINKS
22322 CONFIG_COMMANDS = $CONFIG_COMMANDS
22323 $ $0 $@
22324
22325 _CSEOF
22326 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22327 echo >&5
22328 _ACEOF
22329
22330 # Files that config.status was made for.
22331 if test -n "$ac_config_files"; then
22332 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22333 fi
22334
22335 if test -n "$ac_config_headers"; then
22336 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22337 fi
22338
22339 if test -n "$ac_config_links"; then
22340 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22341 fi
22342
22343 if test -n "$ac_config_commands"; then
22344 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22345 fi
22346
22347 cat >>$CONFIG_STATUS <<\_ACEOF
22348
22349 ac_cs_usage="\
22350 \`$as_me' instantiates files from templates according to the
22351 current configuration.
22352
22353 Usage: $0 [OPTIONS] [FILE]...
22354
22355 -h, --help print this help, then exit
22356 -V, --version print version number, then exit
22357 -q, --quiet do not print progress messages
22358 -d, --debug don't remove temporary files
22359 --recheck update $as_me by reconfiguring in the same conditions
22360 --file=FILE[:TEMPLATE]
22361 instantiate the configuration file FILE
22362 --header=FILE[:TEMPLATE]
22363 instantiate the configuration header FILE
22364
22365 Configuration files:
22366 $config_files
22367
22368 Configuration headers:
22369 $config_headers
22370
22371 Configuration links:
22372 $config_links
22373
22374 Configuration commands:
22375 $config_commands
22376
22377 Report bugs to <bug-autoconf@gnu.org>."
22378 _ACEOF
22379
22380 cat >>$CONFIG_STATUS <<_ACEOF
22381 ac_cs_version="\\
22382 config.status
22383 configured by $0, generated by GNU Autoconf 2.59,
22384 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22385
22386 Copyright (C) 2003 Free Software Foundation, Inc.
22387 This config.status script is free software; the Free Software Foundation
22388 gives unlimited permission to copy, distribute and modify it."
22389 srcdir=$srcdir
22390 INSTALL="$INSTALL"
22391 _ACEOF
22392
22393 cat >>$CONFIG_STATUS <<\_ACEOF
22394 # If no file are specified by the user, then we need to provide default
22395 # value. By we need to know if files were specified by the user.
22396 ac_need_defaults=:
22397 while test $# != 0
22398 do
22399 case $1 in
22400 --*=*)
22401 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22402 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22403 ac_shift=:
22404 ;;
22405 -*)
22406 ac_option=$1
22407 ac_optarg=$2
22408 ac_shift=shift
22409 ;;
22410 *) # This is not an option, so the user has probably given explicit
22411 # arguments.
22412 ac_option=$1
22413 ac_need_defaults=false;;
22414 esac
22415
22416 case $ac_option in
22417 # Handling of the options.
22418 _ACEOF
22419 cat >>$CONFIG_STATUS <<\_ACEOF
22420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22421 ac_cs_recheck=: ;;
22422 --version | --vers* | -V )
22423 echo "$ac_cs_version"; exit 0 ;;
22424 --he | --h)
22425 # Conflict between --help and --header
22426 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22427 Try \`$0 --help' for more information." >&5
22428 echo "$as_me: error: ambiguous option: $1
22429 Try \`$0 --help' for more information." >&2;}
22430 { (exit 1); exit 1; }; };;
22431 --help | --hel | -h )
22432 echo "$ac_cs_usage"; exit 0 ;;
22433 --debug | --d* | -d )
22434 debug=: ;;
22435 --file | --fil | --fi | --f )
22436 $ac_shift
22437 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22438 ac_need_defaults=false;;
22439 --header | --heade | --head | --hea )
22440 $ac_shift
22441 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22442 ac_need_defaults=false;;
22443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22444 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22445 ac_cs_silent=: ;;
22446
22447 # This is an error.
22448 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22449 Try \`$0 --help' for more information." >&5
22450 echo "$as_me: error: unrecognized option: $1
22451 Try \`$0 --help' for more information." >&2;}
22452 { (exit 1); exit 1; }; } ;;
22453
22454 *) ac_config_targets="$ac_config_targets $1" ;;
22455
22456 esac
22457 shift
22458 done
22459
22460 ac_configure_extra_args=
22461
22462 if $ac_cs_silent; then
22463 exec 6>/dev/null
22464 ac_configure_extra_args="$ac_configure_extra_args --silent"
22465 fi
22466
22467 _ACEOF
22468 cat >>$CONFIG_STATUS <<_ACEOF
22469 if \$ac_cs_recheck; then
22470 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22471 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22472 fi
22473
22474 _ACEOF
22475
22476 cat >>$CONFIG_STATUS <<_ACEOF
22477 #
22478 # INIT-COMMANDS section.
22479 #
22480
22481
22482 gdb_host_cpu=$gdb_host_cpu
22483 gdb_target_cpu=$gdb_target_cpu
22484 nativefile=$nativefile
22485
22486
22487 _ACEOF
22488
22489
22490
22491 cat >>$CONFIG_STATUS <<\_ACEOF
22492 for ac_config_target in $ac_config_targets
22493 do
22494 case "$ac_config_target" in
22495 # Handling of arguments.
22496 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22497 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22498 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22499 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22500 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22501 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22502 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22503 { (exit 1); exit 1; }; };;
22504 esac
22505 done
22506
22507 # If the user did not use the arguments to specify the items to instantiate,
22508 # then the envvar interface is used. Set only those that are not.
22509 # We use the long form for the default assignment because of an extremely
22510 # bizarre bug on SunOS 4.1.3.
22511 if $ac_need_defaults; then
22512 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22513 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22514 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22515 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22516 fi
22517
22518 # Have a temporary directory for convenience. Make it in the build tree
22519 # simply because there is no reason to put it here, and in addition,
22520 # creating and moving files from /tmp can sometimes cause problems.
22521 # Create a temporary directory, and hook for its removal unless debugging.
22522 $debug ||
22523 {
22524 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22525 trap '{ (exit 1); exit 1; }' 1 2 13 15
22526 }
22527
22528 # Create a (secure) tmp directory for tmp files.
22529
22530 {
22531 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22532 test -n "$tmp" && test -d "$tmp"
22533 } ||
22534 {
22535 tmp=./confstat$$-$RANDOM
22536 (umask 077 && mkdir $tmp)
22537 } ||
22538 {
22539 echo "$me: cannot create a temporary directory in ." >&2
22540 { (exit 1); exit 1; }
22541 }
22542
22543 _ACEOF
22544
22545 cat >>$CONFIG_STATUS <<_ACEOF
22546
22547 #
22548 # CONFIG_FILES section.
22549 #
22550
22551 # No need to generate the scripts if there are no CONFIG_FILES.
22552 # This happens for instance when ./config.status config.h
22553 if test -n "\$CONFIG_FILES"; then
22554 # Protect against being on the right side of a sed subst in config.status.
22555 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22556 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22557 s,@SHELL@,$SHELL,;t t
22558 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22559 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22560 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22561 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22562 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22563 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22564 s,@exec_prefix@,$exec_prefix,;t t
22565 s,@prefix@,$prefix,;t t
22566 s,@program_transform_name@,$program_transform_name,;t t
22567 s,@bindir@,$bindir,;t t
22568 s,@sbindir@,$sbindir,;t t
22569 s,@libexecdir@,$libexecdir,;t t
22570 s,@datadir@,$datadir,;t t
22571 s,@sysconfdir@,$sysconfdir,;t t
22572 s,@sharedstatedir@,$sharedstatedir,;t t
22573 s,@localstatedir@,$localstatedir,;t t
22574 s,@libdir@,$libdir,;t t
22575 s,@includedir@,$includedir,;t t
22576 s,@oldincludedir@,$oldincludedir,;t t
22577 s,@infodir@,$infodir,;t t
22578 s,@mandir@,$mandir,;t t
22579 s,@build_alias@,$build_alias,;t t
22580 s,@host_alias@,$host_alias,;t t
22581 s,@target_alias@,$target_alias,;t t
22582 s,@DEFS@,$DEFS,;t t
22583 s,@ECHO_C@,$ECHO_C,;t t
22584 s,@ECHO_N@,$ECHO_N,;t t
22585 s,@ECHO_T@,$ECHO_T,;t t
22586 s,@LIBS@,$LIBS,;t t
22587 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22588 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22589 s,@MAINT@,$MAINT,;t t
22590 s,@CC@,$CC,;t t
22591 s,@CFLAGS@,$CFLAGS,;t t
22592 s,@LDFLAGS@,$LDFLAGS,;t t
22593 s,@CPPFLAGS@,$CPPFLAGS,;t t
22594 s,@ac_ct_CC@,$ac_ct_CC,;t t
22595 s,@EXEEXT@,$EXEEXT,;t t
22596 s,@OBJEXT@,$OBJEXT,;t t
22597 s,@CPP@,$CPP,;t t
22598 s,@EGREP@,$EGREP,;t t
22599 s,@build@,$build,;t t
22600 s,@build_cpu@,$build_cpu,;t t
22601 s,@build_vendor@,$build_vendor,;t t
22602 s,@build_os@,$build_os,;t t
22603 s,@host@,$host,;t t
22604 s,@host_cpu@,$host_cpu,;t t
22605 s,@host_vendor@,$host_vendor,;t t
22606 s,@host_os@,$host_os,;t t
22607 s,@target@,$target,;t t
22608 s,@target_cpu@,$target_cpu,;t t
22609 s,@target_vendor@,$target_vendor,;t t
22610 s,@target_os@,$target_os,;t t
22611 s,@SET_MAKE@,$SET_MAKE,;t t
22612 s,@RANLIB@,$RANLIB,;t t
22613 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22614 s,@ALLOCA@,$ALLOCA,;t t
22615 s,@USE_NLS@,$USE_NLS,;t t
22616 s,@MSGFMT@,$MSGFMT,;t t
22617 s,@GMSGFMT@,$GMSGFMT,;t t
22618 s,@XGETTEXT@,$XGETTEXT,;t t
22619 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22620 s,@CATALOGS@,$CATALOGS,;t t
22621 s,@CATOBJEXT@,$CATOBJEXT,;t t
22622 s,@DATADIRNAME@,$DATADIRNAME,;t t
22623 s,@GMOFILES@,$GMOFILES,;t t
22624 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22625 s,@INTLDEPS@,$INTLDEPS,;t t
22626 s,@INTLLIBS@,$INTLLIBS,;t t
22627 s,@INTLOBJS@,$INTLOBJS,;t t
22628 s,@POFILES@,$POFILES,;t t
22629 s,@POSUB@,$POSUB,;t t
22630 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22631 s,@GT_NO@,$GT_NO,;t t
22632 s,@GT_YES@,$GT_YES,;t t
22633 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22634 s,@l@,$l,;t t
22635 s,@localedir@,$localedir,;t t
22636 s,@PACKAGE@,$PACKAGE,;t t
22637 s,@subdirs@,$subdirs,;t t
22638 s,@AWK@,$AWK,;t t
22639 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22640 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22641 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22642 s,@LN_S@,$LN_S,;t t
22643 s,@YACC@,$YACC,;t t
22644 s,@AR@,$AR,;t t
22645 s,@ac_ct_AR@,$ac_ct_AR,;t t
22646 s,@DLLTOOL@,$DLLTOOL,;t t
22647 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22648 s,@WINDRES@,$WINDRES,;t t
22649 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22650 s,@MIG@,$MIG,;t t
22651 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22652 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22653 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22654 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22655 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22656 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22657 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22658 s,@WIN32LIBS@,$WIN32LIBS,;t t
22659 s,@LIBGUI@,$LIBGUI,;t t
22660 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22661 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22662 s,@TCL_VERSION@,$TCL_VERSION,;t t
22663 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22664 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22665 s,@TCL_CC@,$TCL_CC,;t t
22666 s,@TCL_DEFS@,$TCL_DEFS,;t t
22667 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22668 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22669 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22670 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22671 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22672 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22673 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22674 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22675 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22676 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22677 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22678 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22679 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22680 s,@TK_VERSION@,$TK_VERSION,;t t
22681 s,@TK_DEFS@,$TK_DEFS,;t t
22682 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22683 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22684 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22685 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22686 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22687 s,@TCLHDIR@,$TCLHDIR,;t t
22688 s,@TKHDIR@,$TKHDIR,;t t
22689 s,@ITCLHDIR@,$ITCLHDIR,;t t
22690 s,@ITKHDIR@,$ITKHDIR,;t t
22691 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22692 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22693 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22694 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22695 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22696 s,@ITK_VERSION@,$ITK_VERSION,;t t
22697 s,@ITK_DEFS@,$ITK_DEFS,;t t
22698 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22699 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22700 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22701 s,@X_CFLAGS@,$X_CFLAGS,;t t
22702 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22703 s,@X_LIBS@,$X_LIBS,;t t
22704 s,@TCL_DEPS@,$TCL_DEPS,;t t
22705 s,@TK_DEPS@,$TK_DEPS,;t t
22706 s,@ITCLLIB@,$ITCLLIB,;t t
22707 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22708 s,@ITKLIB@,$ITKLIB,;t t
22709 s,@ITK_DEPS@,$ITK_DEPS,;t t
22710 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22711 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22712 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22713 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22714 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22715 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22716 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22717 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22718 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22719 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22720 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22721 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22722 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22723 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22724 s,@target_subdir@,$target_subdir,;t t
22725 s,@frags@,$frags,;t t
22726 s,@xm_h@,$xm_h,;t t
22727 s,@tm_h@,$tm_h,;t t
22728 s,@nm_h@,$nm_h,;t t
22729 s,@LIBICONV@,$LIBICONV,;t t
22730 s,@LIBOBJS@,$LIBOBJS,;t t
22731 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22732 /@host_makefile_frag@/r $host_makefile_frag
22733 s,@host_makefile_frag@,,;t t
22734 /@target_makefile_frag@/r $target_makefile_frag
22735 s,@target_makefile_frag@,,;t t
22736 CEOF
22737
22738 _ACEOF
22739
22740 cat >>$CONFIG_STATUS <<\_ACEOF
22741 # Split the substitutions into bite-sized pieces for seds with
22742 # small command number limits, like on Digital OSF/1 and HP-UX.
22743 ac_max_sed_lines=48
22744 ac_sed_frag=1 # Number of current file.
22745 ac_beg=1 # First line for current file.
22746 ac_end=$ac_max_sed_lines # Line after last line for current file.
22747 ac_more_lines=:
22748 ac_sed_cmds=
22749 while $ac_more_lines; do
22750 if test $ac_beg -gt 1; then
22751 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22752 else
22753 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22754 fi
22755 if test ! -s $tmp/subs.frag; then
22756 ac_more_lines=false
22757 else
22758 # The purpose of the label and of the branching condition is to
22759 # speed up the sed processing (if there are no `@' at all, there
22760 # is no need to browse any of the substitutions).
22761 # These are the two extra sed commands mentioned above.
22762 (echo ':t
22763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22764 if test -z "$ac_sed_cmds"; then
22765 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22766 else
22767 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22768 fi
22769 ac_sed_frag=`expr $ac_sed_frag + 1`
22770 ac_beg=$ac_end
22771 ac_end=`expr $ac_end + $ac_max_sed_lines`
22772 fi
22773 done
22774 if test -z "$ac_sed_cmds"; then
22775 ac_sed_cmds=cat
22776 fi
22777 fi # test -n "$CONFIG_FILES"
22778
22779 _ACEOF
22780 cat >>$CONFIG_STATUS <<\_ACEOF
22781 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22783 case $ac_file in
22784 - | *:- | *:-:* ) # input from stdin
22785 cat >$tmp/stdin
22786 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22788 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22790 * ) ac_file_in=$ac_file.in ;;
22791 esac
22792
22793 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22794 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22796 X"$ac_file" : 'X\(//\)[^/]' \| \
22797 X"$ac_file" : 'X\(//\)$' \| \
22798 X"$ac_file" : 'X\(/\)' \| \
22799 . : '\(.\)' 2>/dev/null ||
22800 echo X"$ac_file" |
22801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22803 /^X\(\/\/\)$/{ s//\1/; q; }
22804 /^X\(\/\).*/{ s//\1/; q; }
22805 s/.*/./; q'`
22806 { if $as_mkdir_p; then
22807 mkdir -p "$ac_dir"
22808 else
22809 as_dir="$ac_dir"
22810 as_dirs=
22811 while test ! -d "$as_dir"; do
22812 as_dirs="$as_dir $as_dirs"
22813 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22815 X"$as_dir" : 'X\(//\)[^/]' \| \
22816 X"$as_dir" : 'X\(//\)$' \| \
22817 X"$as_dir" : 'X\(/\)' \| \
22818 . : '\(.\)' 2>/dev/null ||
22819 echo X"$as_dir" |
22820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22822 /^X\(\/\/\)$/{ s//\1/; q; }
22823 /^X\(\/\).*/{ s//\1/; q; }
22824 s/.*/./; q'`
22825 done
22826 test ! -n "$as_dirs" || mkdir $as_dirs
22827 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22829 { (exit 1); exit 1; }; }; }
22830
22831 ac_builddir=.
22832
22833 if test "$ac_dir" != .; then
22834 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22835 # A "../" for each directory in $ac_dir_suffix.
22836 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22837 else
22838 ac_dir_suffix= ac_top_builddir=
22839 fi
22840
22841 case $srcdir in
22842 .) # No --srcdir option. We are building in place.
22843 ac_srcdir=.
22844 if test -z "$ac_top_builddir"; then
22845 ac_top_srcdir=.
22846 else
22847 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22848 fi ;;
22849 [\\/]* | ?:[\\/]* ) # Absolute path.
22850 ac_srcdir=$srcdir$ac_dir_suffix;
22851 ac_top_srcdir=$srcdir ;;
22852 *) # Relative path.
22853 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22854 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22855 esac
22856
22857 # Do not use `cd foo && pwd` to compute absolute paths, because
22858 # the directories may not exist.
22859 case `pwd` in
22860 .) ac_abs_builddir="$ac_dir";;
22861 *)
22862 case "$ac_dir" in
22863 .) ac_abs_builddir=`pwd`;;
22864 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22865 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22866 esac;;
22867 esac
22868 case $ac_abs_builddir in
22869 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22870 *)
22871 case ${ac_top_builddir}. in
22872 .) ac_abs_top_builddir=$ac_abs_builddir;;
22873 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22874 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22875 esac;;
22876 esac
22877 case $ac_abs_builddir in
22878 .) ac_abs_srcdir=$ac_srcdir;;
22879 *)
22880 case $ac_srcdir in
22881 .) ac_abs_srcdir=$ac_abs_builddir;;
22882 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22883 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22884 esac;;
22885 esac
22886 case $ac_abs_builddir in
22887 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22888 *)
22889 case $ac_top_srcdir in
22890 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22891 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22892 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22893 esac;;
22894 esac
22895
22896
22897 case $INSTALL in
22898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22899 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22900 esac
22901
22902 # Let's still pretend it is `configure' which instantiates (i.e., don't
22903 # use $as_me), people would be surprised to read:
22904 # /* config.h. Generated by config.status. */
22905 if test x"$ac_file" = x-; then
22906 configure_input=
22907 else
22908 configure_input="$ac_file. "
22909 fi
22910 configure_input=$configure_input"Generated from `echo $ac_file_in |
22911 sed 's,.*/,,'` by configure."
22912
22913 # First look for the input files in the build tree, otherwise in the
22914 # src tree.
22915 ac_file_inputs=`IFS=:
22916 for f in $ac_file_in; do
22917 case $f in
22918 -) echo $tmp/stdin ;;
22919 [\\/$]*)
22920 # Absolute (can't be DOS-style, as IFS=:)
22921 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22922 echo "$as_me: error: cannot find input file: $f" >&2;}
22923 { (exit 1); exit 1; }; }
22924 echo "$f";;
22925 *) # Relative
22926 if test -f "$f"; then
22927 # Build tree
22928 echo "$f"
22929 elif test -f "$srcdir/$f"; then
22930 # Source tree
22931 echo "$srcdir/$f"
22932 else
22933 # /dev/null tree
22934 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22935 echo "$as_me: error: cannot find input file: $f" >&2;}
22936 { (exit 1); exit 1; }; }
22937 fi;;
22938 esac
22939 done` || { (exit 1); exit 1; }
22940
22941 if test x"$ac_file" != x-; then
22942 { echo "$as_me:$LINENO: creating $ac_file" >&5
22943 echo "$as_me: creating $ac_file" >&6;}
22944 rm -f "$ac_file"
22945 fi
22946 _ACEOF
22947 cat >>$CONFIG_STATUS <<_ACEOF
22948 sed "$ac_vpsub
22949 $extrasub
22950 _ACEOF
22951 cat >>$CONFIG_STATUS <<\_ACEOF
22952 :t
22953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22954 s,@configure_input@,$configure_input,;t t
22955 s,@srcdir@,$ac_srcdir,;t t
22956 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22957 s,@top_srcdir@,$ac_top_srcdir,;t t
22958 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22959 s,@builddir@,$ac_builddir,;t t
22960 s,@abs_builddir@,$ac_abs_builddir,;t t
22961 s,@top_builddir@,$ac_top_builddir,;t t
22962 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22963 s,@INSTALL@,$ac_INSTALL,;t t
22964 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22965 rm -f $tmp/stdin
22966 if test x"$ac_file" != x-; then
22967 mv $tmp/out $ac_file
22968 else
22969 cat $tmp/out
22970 rm -f $tmp/out
22971 fi
22972
22973 done
22974 _ACEOF
22975 cat >>$CONFIG_STATUS <<\_ACEOF
22976
22977 #
22978 # CONFIG_HEADER section.
22979 #
22980
22981 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22982 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22983 #
22984 # ac_d sets the value in "#define NAME VALUE" lines.
22985 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22986 ac_dB='[ ].*$,\1#\2'
22987 ac_dC=' '
22988 ac_dD=',;t'
22989 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22990 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22991 ac_uB='$,\1#\2define\3'
22992 ac_uC=' '
22993 ac_uD=',;t'
22994
22995 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22997 case $ac_file in
22998 - | *:- | *:-:* ) # input from stdin
22999 cat >$tmp/stdin
23000 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23002 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23004 * ) ac_file_in=$ac_file.in ;;
23005 esac
23006
23007 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23008 echo "$as_me: creating $ac_file" >&6;}
23009
23010 # First look for the input files in the build tree, otherwise in the
23011 # src tree.
23012 ac_file_inputs=`IFS=:
23013 for f in $ac_file_in; do
23014 case $f in
23015 -) echo $tmp/stdin ;;
23016 [\\/$]*)
23017 # Absolute (can't be DOS-style, as IFS=:)
23018 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23019 echo "$as_me: error: cannot find input file: $f" >&2;}
23020 { (exit 1); exit 1; }; }
23021 # Do quote $f, to prevent DOS paths from being IFS'd.
23022 echo "$f";;
23023 *) # Relative
23024 if test -f "$f"; then
23025 # Build tree
23026 echo "$f"
23027 elif test -f "$srcdir/$f"; then
23028 # Source tree
23029 echo "$srcdir/$f"
23030 else
23031 # /dev/null tree
23032 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23033 echo "$as_me: error: cannot find input file: $f" >&2;}
23034 { (exit 1); exit 1; }; }
23035 fi;;
23036 esac
23037 done` || { (exit 1); exit 1; }
23038 # Remove the trailing spaces.
23039 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23040
23041 _ACEOF
23042
23043 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23044 # `conftest.undefs', that substitutes the proper values into
23045 # config.h.in to produce config.h. The first handles `#define'
23046 # templates, and the second `#undef' templates.
23047 # And first: Protect against being on the right side of a sed subst in
23048 # config.status. Protect against being in an unquoted here document
23049 # in config.status.
23050 rm -f conftest.defines conftest.undefs
23051 # Using a here document instead of a string reduces the quoting nightmare.
23052 # Putting comments in sed scripts is not portable.
23053 #
23054 # `end' is used to avoid that the second main sed command (meant for
23055 # 0-ary CPP macros) applies to n-ary macro definitions.
23056 # See the Autoconf documentation for `clear'.
23057 cat >confdef2sed.sed <<\_ACEOF
23058 s/[\\&,]/\\&/g
23059 s,[\\$`],\\&,g
23060 t clear
23061 : clear
23062 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23063 t end
23064 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23065 : end
23066 _ACEOF
23067 # If some macros were called several times there might be several times
23068 # the same #defines, which is useless. Nevertheless, we may not want to
23069 # sort them, since we want the *last* AC-DEFINE to be honored.
23070 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23071 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23072 rm -f confdef2sed.sed
23073
23074 # This sed command replaces #undef with comments. This is necessary, for
23075 # example, in the case of _POSIX_SOURCE, which is predefined and required
23076 # on some systems where configure will not decide to define it.
23077 cat >>conftest.undefs <<\_ACEOF
23078 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23079 _ACEOF
23080
23081 # Break up conftest.defines because some shells have a limit on the size
23082 # of here documents, and old seds have small limits too (100 cmds).
23083 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23084 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23085 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23086 echo ' :' >>$CONFIG_STATUS
23087 rm -f conftest.tail
23088 while grep . conftest.defines >/dev/null
23089 do
23090 # Write a limited-size here document to $tmp/defines.sed.
23091 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23092 # Speed up: don't consider the non `#define' lines.
23093 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23094 # Work around the forget-to-reset-the-flag bug.
23095 echo 't clr' >>$CONFIG_STATUS
23096 echo ': clr' >>$CONFIG_STATUS
23097 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23098 echo 'CEOF
23099 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23100 rm -f $tmp/in
23101 mv $tmp/out $tmp/in
23102 ' >>$CONFIG_STATUS
23103 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23104 rm -f conftest.defines
23105 mv conftest.tail conftest.defines
23106 done
23107 rm -f conftest.defines
23108 echo ' fi # grep' >>$CONFIG_STATUS
23109 echo >>$CONFIG_STATUS
23110
23111 # Break up conftest.undefs because some shells have a limit on the size
23112 # of here documents, and old seds have small limits too (100 cmds).
23113 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23114 rm -f conftest.tail
23115 while grep . conftest.undefs >/dev/null
23116 do
23117 # Write a limited-size here document to $tmp/undefs.sed.
23118 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23119 # Speed up: don't consider the non `#undef'
23120 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23121 # Work around the forget-to-reset-the-flag bug.
23122 echo 't clr' >>$CONFIG_STATUS
23123 echo ': clr' >>$CONFIG_STATUS
23124 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23125 echo 'CEOF
23126 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23127 rm -f $tmp/in
23128 mv $tmp/out $tmp/in
23129 ' >>$CONFIG_STATUS
23130 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23131 rm -f conftest.undefs
23132 mv conftest.tail conftest.undefs
23133 done
23134 rm -f conftest.undefs
23135
23136 cat >>$CONFIG_STATUS <<\_ACEOF
23137 # Let's still pretend it is `configure' which instantiates (i.e., don't
23138 # use $as_me), people would be surprised to read:
23139 # /* config.h. Generated by config.status. */
23140 if test x"$ac_file" = x-; then
23141 echo "/* Generated by configure. */" >$tmp/config.h
23142 else
23143 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23144 fi
23145 cat $tmp/in >>$tmp/config.h
23146 rm -f $tmp/in
23147 if test x"$ac_file" != x-; then
23148 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23149 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23150 echo "$as_me: $ac_file is unchanged" >&6;}
23151 else
23152 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23153 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23154 X"$ac_file" : 'X\(//\)[^/]' \| \
23155 X"$ac_file" : 'X\(//\)$' \| \
23156 X"$ac_file" : 'X\(/\)' \| \
23157 . : '\(.\)' 2>/dev/null ||
23158 echo X"$ac_file" |
23159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23161 /^X\(\/\/\)$/{ s//\1/; q; }
23162 /^X\(\/\).*/{ s//\1/; q; }
23163 s/.*/./; q'`
23164 { if $as_mkdir_p; then
23165 mkdir -p "$ac_dir"
23166 else
23167 as_dir="$ac_dir"
23168 as_dirs=
23169 while test ! -d "$as_dir"; do
23170 as_dirs="$as_dir $as_dirs"
23171 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23173 X"$as_dir" : 'X\(//\)[^/]' \| \
23174 X"$as_dir" : 'X\(//\)$' \| \
23175 X"$as_dir" : 'X\(/\)' \| \
23176 . : '\(.\)' 2>/dev/null ||
23177 echo X"$as_dir" |
23178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23180 /^X\(\/\/\)$/{ s//\1/; q; }
23181 /^X\(\/\).*/{ s//\1/; q; }
23182 s/.*/./; q'`
23183 done
23184 test ! -n "$as_dirs" || mkdir $as_dirs
23185 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23186 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23187 { (exit 1); exit 1; }; }; }
23188
23189 rm -f $ac_file
23190 mv $tmp/config.h $ac_file
23191 fi
23192 else
23193 cat $tmp/config.h
23194 rm -f $tmp/config.h
23195 fi
23196 done
23197 _ACEOF
23198 cat >>$CONFIG_STATUS <<\_ACEOF
23199
23200 #
23201 # CONFIG_LINKS section.
23202 #
23203
23204 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23205 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23206 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23207
23208 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23209 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23210
23211 if test ! -r $srcdir/$ac_source; then
23212 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23213 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23214 { (exit 1); exit 1; }; }
23215 fi
23216 rm -f $ac_dest
23217
23218 # Make relative symlinks.
23219 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23220 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23221 X"$ac_dest" : 'X\(//\)[^/]' \| \
23222 X"$ac_dest" : 'X\(//\)$' \| \
23223 X"$ac_dest" : 'X\(/\)' \| \
23224 . : '\(.\)' 2>/dev/null ||
23225 echo X"$ac_dest" |
23226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23228 /^X\(\/\/\)$/{ s//\1/; q; }
23229 /^X\(\/\).*/{ s//\1/; q; }
23230 s/.*/./; q'`
23231 { if $as_mkdir_p; then
23232 mkdir -p "$ac_dest_dir"
23233 else
23234 as_dir="$ac_dest_dir"
23235 as_dirs=
23236 while test ! -d "$as_dir"; do
23237 as_dirs="$as_dir $as_dirs"
23238 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23240 X"$as_dir" : 'X\(//\)[^/]' \| \
23241 X"$as_dir" : 'X\(//\)$' \| \
23242 X"$as_dir" : 'X\(/\)' \| \
23243 . : '\(.\)' 2>/dev/null ||
23244 echo X"$as_dir" |
23245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23247 /^X\(\/\/\)$/{ s//\1/; q; }
23248 /^X\(\/\).*/{ s//\1/; q; }
23249 s/.*/./; q'`
23250 done
23251 test ! -n "$as_dirs" || mkdir $as_dirs
23252 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23253 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23254 { (exit 1); exit 1; }; }; }
23255
23256 ac_builddir=.
23257
23258 if test "$ac_dest_dir" != .; then
23259 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23260 # A "../" for each directory in $ac_dir_suffix.
23261 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23262 else
23263 ac_dir_suffix= ac_top_builddir=
23264 fi
23265
23266 case $srcdir in
23267 .) # No --srcdir option. We are building in place.
23268 ac_srcdir=.
23269 if test -z "$ac_top_builddir"; then
23270 ac_top_srcdir=.
23271 else
23272 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23273 fi ;;
23274 [\\/]* | ?:[\\/]* ) # Absolute path.
23275 ac_srcdir=$srcdir$ac_dir_suffix;
23276 ac_top_srcdir=$srcdir ;;
23277 *) # Relative path.
23278 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23279 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23280 esac
23281
23282 # Do not use `cd foo && pwd` to compute absolute paths, because
23283 # the directories may not exist.
23284 case `pwd` in
23285 .) ac_abs_builddir="$ac_dest_dir";;
23286 *)
23287 case "$ac_dest_dir" in
23288 .) ac_abs_builddir=`pwd`;;
23289 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23290 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23291 esac;;
23292 esac
23293 case $ac_abs_builddir in
23294 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23295 *)
23296 case ${ac_top_builddir}. in
23297 .) ac_abs_top_builddir=$ac_abs_builddir;;
23298 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23299 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23300 esac;;
23301 esac
23302 case $ac_abs_builddir in
23303 .) ac_abs_srcdir=$ac_srcdir;;
23304 *)
23305 case $ac_srcdir in
23306 .) ac_abs_srcdir=$ac_abs_builddir;;
23307 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23308 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23309 esac;;
23310 esac
23311 case $ac_abs_builddir in
23312 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23313 *)
23314 case $ac_top_srcdir in
23315 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23316 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23317 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23318 esac;;
23319 esac
23320
23321
23322 case $srcdir in
23323 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23324 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23325 esac
23326
23327 # Try a symlink, then a hard link, then a copy.
23328 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23329 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23330 cp -p $srcdir/$ac_source $ac_dest ||
23331 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23332 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23333 { (exit 1); exit 1; }; }
23334 done
23335 _ACEOF
23336 cat >>$CONFIG_STATUS <<\_ACEOF
23337
23338 #
23339 # CONFIG_COMMANDS section.
23340 #
23341 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23342 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23343 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23344 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23345 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23346 X"$ac_dest" : 'X\(//\)[^/]' \| \
23347 X"$ac_dest" : 'X\(//\)$' \| \
23348 X"$ac_dest" : 'X\(/\)' \| \
23349 . : '\(.\)' 2>/dev/null ||
23350 echo X"$ac_dest" |
23351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23353 /^X\(\/\/\)$/{ s//\1/; q; }
23354 /^X\(\/\).*/{ s//\1/; q; }
23355 s/.*/./; q'`
23356 { if $as_mkdir_p; then
23357 mkdir -p "$ac_dir"
23358 else
23359 as_dir="$ac_dir"
23360 as_dirs=
23361 while test ! -d "$as_dir"; do
23362 as_dirs="$as_dir $as_dirs"
23363 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23365 X"$as_dir" : 'X\(//\)[^/]' \| \
23366 X"$as_dir" : 'X\(//\)$' \| \
23367 X"$as_dir" : 'X\(/\)' \| \
23368 . : '\(.\)' 2>/dev/null ||
23369 echo X"$as_dir" |
23370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23372 /^X\(\/\/\)$/{ s//\1/; q; }
23373 /^X\(\/\).*/{ s//\1/; q; }
23374 s/.*/./; q'`
23375 done
23376 test ! -n "$as_dirs" || mkdir $as_dirs
23377 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23378 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23379 { (exit 1); exit 1; }; }; }
23380
23381 ac_builddir=.
23382
23383 if test "$ac_dir" != .; then
23384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23385 # A "../" for each directory in $ac_dir_suffix.
23386 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23387 else
23388 ac_dir_suffix= ac_top_builddir=
23389 fi
23390
23391 case $srcdir in
23392 .) # No --srcdir option. We are building in place.
23393 ac_srcdir=.
23394 if test -z "$ac_top_builddir"; then
23395 ac_top_srcdir=.
23396 else
23397 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23398 fi ;;
23399 [\\/]* | ?:[\\/]* ) # Absolute path.
23400 ac_srcdir=$srcdir$ac_dir_suffix;
23401 ac_top_srcdir=$srcdir ;;
23402 *) # Relative path.
23403 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23404 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23405 esac
23406
23407 # Do not use `cd foo && pwd` to compute absolute paths, because
23408 # the directories may not exist.
23409 case `pwd` in
23410 .) ac_abs_builddir="$ac_dir";;
23411 *)
23412 case "$ac_dir" in
23413 .) ac_abs_builddir=`pwd`;;
23414 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23415 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23416 esac;;
23417 esac
23418 case $ac_abs_builddir in
23419 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23420 *)
23421 case ${ac_top_builddir}. in
23422 .) ac_abs_top_builddir=$ac_abs_builddir;;
23423 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23424 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23425 esac;;
23426 esac
23427 case $ac_abs_builddir in
23428 .) ac_abs_srcdir=$ac_srcdir;;
23429 *)
23430 case $ac_srcdir in
23431 .) ac_abs_srcdir=$ac_abs_builddir;;
23432 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23433 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23434 esac;;
23435 esac
23436 case $ac_abs_builddir in
23437 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23438 *)
23439 case $ac_top_srcdir in
23440 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23441 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23442 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23443 esac;;
23444 esac
23445
23446
23447 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23448 echo "$as_me: executing $ac_dest commands" >&6;}
23449 case $ac_dest in
23450 default )
23451
23452 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
23453 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23454 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23455 mv -f Makefile.tmp Makefile
23456
23457
23458 case x$CONFIG_HEADERS in
23459 xconfig.h:config.in)
23460 echo > stamp-h ;;
23461 esac
23462 ;;
23463 esac
23464 done
23465 _ACEOF
23466
23467 cat >>$CONFIG_STATUS <<\_ACEOF
23468
23469 { (exit 0); exit 0; }
23470 _ACEOF
23471 chmod +x $CONFIG_STATUS
23472 ac_clean_files=$ac_clean_files_save
23473
23474
23475 # configure is writing to config.log, and then calls config.status.
23476 # config.status does its own redirection, appending to config.log.
23477 # Unfortunately, on DOS this fails, as config.log is still kept open
23478 # by configure, so config.status won't be able to write to it; its
23479 # output is simply discarded. So we exec the FD to /dev/null,
23480 # effectively closing config.log, so it can be properly (re)opened and
23481 # appended to by config.status. When coming back to configure, we
23482 # need to make the FD available again.
23483 if test "$no_create" != yes; then
23484 ac_cs_success=:
23485 ac_config_status_args=
23486 test "$silent" = yes &&
23487 ac_config_status_args="$ac_config_status_args --quiet"
23488 exec 5>/dev/null
23489 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23490 exec 5>>config.log
23491 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23492 # would make configure fail if this is the last instruction.
23493 $ac_cs_success || { (exit 1); exit 1; }
23494 fi
23495
23496 #
23497 # CONFIG_SUBDIRS section.
23498 #
23499 if test "$no_recursion" != yes; then
23500
23501 # Remove --cache-file and --srcdir arguments so they do not pile up.
23502 ac_sub_configure_args=
23503 ac_prev=
23504 for ac_arg in $ac_configure_args; do
23505 if test -n "$ac_prev"; then
23506 ac_prev=
23507 continue
23508 fi
23509 case $ac_arg in
23510 -cache-file | --cache-file | --cache-fil | --cache-fi \
23511 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23512 ac_prev=cache_file ;;
23513 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23514 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23515 | --c=*)
23516 ;;
23517 --config-cache | -C)
23518 ;;
23519 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23520 ac_prev=srcdir ;;
23521 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23522 ;;
23523 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23524 ac_prev=prefix ;;
23525 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23526 ;;
23527 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23528 esac
23529 done
23530
23531 # Always prepend --prefix to ensure using the same prefix
23532 # in subdir configurations.
23533 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23534
23535 ac_popdir=`pwd`
23536 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23537
23538 # Do not complain, so a configure script can configure whichever
23539 # parts of a large source tree are present.
23540 test -d $srcdir/$ac_dir || continue
23541
23542 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23543 echo "$as_me: configuring in $ac_dir" >&6;}
23544 { if $as_mkdir_p; then
23545 mkdir -p "$ac_dir"
23546 else
23547 as_dir="$ac_dir"
23548 as_dirs=
23549 while test ! -d "$as_dir"; do
23550 as_dirs="$as_dir $as_dirs"
23551 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23553 X"$as_dir" : 'X\(//\)[^/]' \| \
23554 X"$as_dir" : 'X\(//\)$' \| \
23555 X"$as_dir" : 'X\(/\)' \| \
23556 . : '\(.\)' 2>/dev/null ||
23557 echo X"$as_dir" |
23558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23560 /^X\(\/\/\)$/{ s//\1/; q; }
23561 /^X\(\/\).*/{ s//\1/; q; }
23562 s/.*/./; q'`
23563 done
23564 test ! -n "$as_dirs" || mkdir $as_dirs
23565 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23566 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23567 { (exit 1); exit 1; }; }; }
23568
23569 ac_builddir=.
23570
23571 if test "$ac_dir" != .; then
23572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23573 # A "../" for each directory in $ac_dir_suffix.
23574 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23575 else
23576 ac_dir_suffix= ac_top_builddir=
23577 fi
23578
23579 case $srcdir in
23580 .) # No --srcdir option. We are building in place.
23581 ac_srcdir=.
23582 if test -z "$ac_top_builddir"; then
23583 ac_top_srcdir=.
23584 else
23585 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23586 fi ;;
23587 [\\/]* | ?:[\\/]* ) # Absolute path.
23588 ac_srcdir=$srcdir$ac_dir_suffix;
23589 ac_top_srcdir=$srcdir ;;
23590 *) # Relative path.
23591 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23592 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23593 esac
23594
23595 # Do not use `cd foo && pwd` to compute absolute paths, because
23596 # the directories may not exist.
23597 case `pwd` in
23598 .) ac_abs_builddir="$ac_dir";;
23599 *)
23600 case "$ac_dir" in
23601 .) ac_abs_builddir=`pwd`;;
23602 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23603 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23604 esac;;
23605 esac
23606 case $ac_abs_builddir in
23607 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23608 *)
23609 case ${ac_top_builddir}. in
23610 .) ac_abs_top_builddir=$ac_abs_builddir;;
23611 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23612 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23613 esac;;
23614 esac
23615 case $ac_abs_builddir in
23616 .) ac_abs_srcdir=$ac_srcdir;;
23617 *)
23618 case $ac_srcdir in
23619 .) ac_abs_srcdir=$ac_abs_builddir;;
23620 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23621 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23622 esac;;
23623 esac
23624 case $ac_abs_builddir in
23625 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23626 *)
23627 case $ac_top_srcdir in
23628 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23629 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23630 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23631 esac;;
23632 esac
23633
23634
23635 cd $ac_dir
23636
23637 # Check for guested configure; otherwise get Cygnus style configure.
23638 if test -f $ac_srcdir/configure.gnu; then
23639 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23640 elif test -f $ac_srcdir/configure; then
23641 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23642 elif test -f $ac_srcdir/configure.in; then
23643 ac_sub_configure=$ac_configure
23644 else
23645 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23646 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23647 ac_sub_configure=
23648 fi
23649
23650 # The recursion is here.
23651 if test -n "$ac_sub_configure"; then
23652 # Make the cache file name correct relative to the subdirectory.
23653 case $cache_file in
23654 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23655 *) # Relative path.
23656 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23657 esac
23658
23659 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23660 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23661 # The eval makes quoting arguments work.
23662 eval $ac_sub_configure $ac_sub_configure_args \
23663 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23664 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23665 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23666 { (exit 1); exit 1; }; }
23667 fi
23668
23669 cd "$ac_popdir"
23670 done
23671 fi
23672
23673
23674 exit 0
This page took 0.572479 seconds and 5 git commands to generate.