* Makefile.in (LIBGNU, INCGNU): Define.
[deliverable/binutils-gdb.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 ac_subdirs_all="$ac_subdirs_all doc testsuite"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subdirs_all="$ac_subdirs_all gdbtk"
314 ac_subdirs_all="$ac_subdirs_all multi-ice"
315 ac_subdirs_all="$ac_subdirs_all gdbserver"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS'
317 ac_subst_files='host_makefile_frag'
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
338
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654 done
655
656 if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676 do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683 done
684
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729 else
730 ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777
778 #
779 # Report the --help message.
780 #
781 if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785 \`configure' configures this package to adapt to many kinds of systems.
786
787 Usage: $0 [OPTION]... [VAR=VALUE]...
788
789 To assign environment variables (e.g., CC, CFLAGS...), specify them as
790 VAR=VALUE. See below for descriptions of some of the useful variables.
791
792 Defaults for the options are specified in brackets.
793
794 Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804
805 _ACEOF
806
807 cat <<_ACEOF
808 Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
813
814 By default, \`make install' will install all the files in
815 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817 for instance \`--prefix=\$HOME'.
818
819 For better control, use the options below.
820
821 Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
834 _ACEOF
835
836 cat <<\_ACEOF
837
838 Program names:
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
843 X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
846
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --disable-dependency-tracking speeds up one-time build
864 --enable-dependency-tracking do not reject slow dependency extractors
865 --enable-targets alternative target configurations
866 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
867 --disable-gdbcli disable command-line interface (CLI)
868 --disable-gdbmi disable machine-interface (MI)
869 --enable-tui enable full-screen terminal user interface (TUI)
870 --enable-gdbtk enable gdbtk graphical user interface (GUI)
871 --enable-profiling enable profiling of GDB
872 --disable-rpath do not hardcode runtime library paths
873 --enable-werror treat compile warnings as errors
874 --enable-build-warnings Enable build-time compiler warnings if gcc is used
875 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
876 --enable-sim Link gdb with simulator
877 --enable-multi-ice build the multi-ice-gdb-server
878
879 Optional Packages:
880 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
881 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
882 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
883 --with-libunwind Use libunwind frame unwinding support
884 --with-system-readline use installed readline library
885 --with-expat include expat support (auto/yes/no)
886 --with-gnu-ld assume the C compiler uses GNU ld default=no
887 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
888 --without-libexpat-prefix don't search for libexpat in includedir and libdir
889 --without-included-regex don't use included regex; this is the default
890 on systems with version 2 of the GNU C library
891 (use with caution on other system)
892 --with-sysroot=DIR Search for usr/lib et al within DIR.
893 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
894 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
895 --with-tclinclude=DIR Directory where tcl private headers are
896 --with-tkinclude=DIR Directory where tk private headers are
897 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
898 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
899 --with-x use the X Window System
900 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
901
902 Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
909 CPP C preprocessor
910
911 Use these variables to override the choices made by `configure' or to help
912 it to find libraries and programs with nonstandard names/locations.
913
914 _ACEOF
915 fi
916
917 if test "$ac_init_help" = "recursive"; then
918 # If there are subdirs, report their specific --help.
919 ac_popdir=`pwd`
920 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921 test -d $ac_dir || continue
922 ac_builddir=.
923
924 if test "$ac_dir" != .; then
925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926 # A "../" for each directory in $ac_dir_suffix.
927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928 else
929 ac_dir_suffix= ac_top_builddir=
930 fi
931
932 case $srcdir in
933 .) # No --srcdir option. We are building in place.
934 ac_srcdir=.
935 if test -z "$ac_top_builddir"; then
936 ac_top_srcdir=.
937 else
938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939 fi ;;
940 [\\/]* | ?:[\\/]* ) # Absolute path.
941 ac_srcdir=$srcdir$ac_dir_suffix;
942 ac_top_srcdir=$srcdir ;;
943 *) # Relative path.
944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
946 esac
947
948 # Do not use `cd foo && pwd` to compute absolute paths, because
949 # the directories may not exist.
950 case `pwd` in
951 .) ac_abs_builddir="$ac_dir";;
952 *)
953 case "$ac_dir" in
954 .) ac_abs_builddir=`pwd`;;
955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956 *) ac_abs_builddir=`pwd`/"$ac_dir";;
957 esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *)
962 case ${ac_top_builddir}. in
963 .) ac_abs_top_builddir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966 esac;;
967 esac
968 case $ac_abs_builddir in
969 .) ac_abs_srcdir=$ac_srcdir;;
970 *)
971 case $ac_srcdir in
972 .) ac_abs_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975 esac;;
976 esac
977 case $ac_abs_builddir in
978 .) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *)
980 case $ac_top_srcdir in
981 .) ac_abs_top_srcdir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984 esac;;
985 esac
986
987 cd $ac_dir
988 # Check for guested configure; otherwise get Cygnus style configure.
989 if test -f $ac_srcdir/configure.gnu; then
990 echo
991 $SHELL $ac_srcdir/configure.gnu --help=recursive
992 elif test -f $ac_srcdir/configure; then
993 echo
994 $SHELL $ac_srcdir/configure --help=recursive
995 elif test -f $ac_srcdir/configure.ac ||
996 test -f $ac_srcdir/configure.in; then
997 echo
998 $ac_configure --help
999 else
1000 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1001 fi
1002 cd $ac_popdir
1003 done
1004 fi
1005
1006 test -n "$ac_init_help" && exit 0
1007 if $ac_init_version; then
1008 cat <<\_ACEOF
1009
1010 Copyright (C) 2003 Free Software Foundation, Inc.
1011 This configure script is free software; the Free Software Foundation
1012 gives unlimited permission to copy, distribute and modify it.
1013 _ACEOF
1014 exit 0
1015 fi
1016 exec 5>config.log
1017 cat >&5 <<_ACEOF
1018 This file contains any messages produced by compilers while
1019 running configure, to aid debugging if configure makes a mistake.
1020
1021 It was created by $as_me, which was
1022 generated by GNU Autoconf 2.59. Invocation command line was
1023
1024 $ $0 $@
1025
1026 _ACEOF
1027 {
1028 cat <<_ASUNAME
1029 ## --------- ##
1030 ## Platform. ##
1031 ## --------- ##
1032
1033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1038
1039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1040 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1041
1042 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1043 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1045 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1046 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1047 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1048 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1049
1050 _ASUNAME
1051
1052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1053 for as_dir in $PATH
1054 do
1055 IFS=$as_save_IFS
1056 test -z "$as_dir" && as_dir=.
1057 echo "PATH: $as_dir"
1058 done
1059
1060 } >&5
1061
1062 cat >&5 <<_ACEOF
1063
1064
1065 ## ----------- ##
1066 ## Core tests. ##
1067 ## ----------- ##
1068
1069 _ACEOF
1070
1071
1072 # Keep a trace of the command line.
1073 # Strip out --no-create and --no-recursion so they do not pile up.
1074 # Strip out --silent because we don't want to record it for future runs.
1075 # Also quote any args containing shell meta-characters.
1076 # Make two passes to allow for proper duplicate-argument suppression.
1077 ac_configure_args=
1078 ac_configure_args0=
1079 ac_configure_args1=
1080 ac_sep=
1081 ac_must_keep_next=false
1082 for ac_pass in 1 2
1083 do
1084 for ac_arg
1085 do
1086 case $ac_arg in
1087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 continue ;;
1091 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1092 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1093 esac
1094 case $ac_pass in
1095 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1096 2)
1097 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1098 if test $ac_must_keep_next = true; then
1099 ac_must_keep_next=false # Got value, back to normal.
1100 else
1101 case $ac_arg in
1102 *=* | --config-cache | -C | -disable-* | --disable-* \
1103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1105 | -with-* | --with-* | -without-* | --without-* | --x)
1106 case "$ac_configure_args0 " in
1107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1108 esac
1109 ;;
1110 -* ) ac_must_keep_next=true ;;
1111 esac
1112 fi
1113 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1114 # Get rid of the leading space.
1115 ac_sep=" "
1116 ;;
1117 esac
1118 done
1119 done
1120 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1121 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1122
1123 # When interrupted or exit'd, cleanup temporary files, and complete
1124 # config.log. We remove comments because anyway the quotes in there
1125 # would cause problems or look ugly.
1126 # WARNING: Be sure not to use single quotes in there, as some shells,
1127 # such as our DU 5.0 friend, will then `close' the trap.
1128 trap 'exit_status=$?
1129 # Save into config.log some information that might help in debugging.
1130 {
1131 echo
1132
1133 cat <<\_ASBOX
1134 ## ---------------- ##
1135 ## Cache variables. ##
1136 ## ---------------- ##
1137 _ASBOX
1138 echo
1139 # The following way of writing the cache mishandles newlines in values,
1140 {
1141 (set) 2>&1 |
1142 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1143 *ac_space=\ *)
1144 sed -n \
1145 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1147 ;;
1148 *)
1149 sed -n \
1150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1151 ;;
1152 esac;
1153 }
1154 echo
1155
1156 cat <<\_ASBOX
1157 ## ----------------- ##
1158 ## Output variables. ##
1159 ## ----------------- ##
1160 _ASBOX
1161 echo
1162 for ac_var in $ac_subst_vars
1163 do
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1166 done | sort
1167 echo
1168
1169 if test -n "$ac_subst_files"; then
1170 cat <<\_ASBOX
1171 ## ------------- ##
1172 ## Output files. ##
1173 ## ------------- ##
1174 _ASBOX
1175 echo
1176 for ac_var in $ac_subst_files
1177 do
1178 eval ac_val=$`echo $ac_var`
1179 echo "$ac_var='"'"'$ac_val'"'"'"
1180 done | sort
1181 echo
1182 fi
1183
1184 if test -s confdefs.h; then
1185 cat <<\_ASBOX
1186 ## ----------- ##
1187 ## confdefs.h. ##
1188 ## ----------- ##
1189 _ASBOX
1190 echo
1191 sed "/^$/d" confdefs.h | sort
1192 echo
1193 fi
1194 test "$ac_signal" != 0 &&
1195 echo "$as_me: caught signal $ac_signal"
1196 echo "$as_me: exit $exit_status"
1197 } >&5
1198 rm -f core *.core &&
1199 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1200 exit $exit_status
1201 ' 0
1202 for ac_signal in 1 2 13 15; do
1203 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1204 done
1205 ac_signal=0
1206
1207 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1208 rm -rf conftest* confdefs.h
1209 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1210 echo >confdefs.h
1211
1212 # Predefined preprocessor variables.
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_NAME "$PACKAGE_NAME"
1216 _ACEOF
1217
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1221 _ACEOF
1222
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1226 _ACEOF
1227
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_STRING "$PACKAGE_STRING"
1231 _ACEOF
1232
1233
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1236 _ACEOF
1237
1238
1239 # Let the site file select an alternate cache file if it wants to.
1240 # Prefer explicitly selected file to automatically selected ones.
1241 if test -z "$CONFIG_SITE"; then
1242 if test "x$prefix" != xNONE; then
1243 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1244 else
1245 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1246 fi
1247 fi
1248 for ac_site_file in $CONFIG_SITE; do
1249 if test -r "$ac_site_file"; then
1250 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1251 echo "$as_me: loading site script $ac_site_file" >&6;}
1252 sed 's/^/| /' "$ac_site_file" >&5
1253 . "$ac_site_file"
1254 fi
1255 done
1256
1257 if test -r "$cache_file"; then
1258 # Some versions of bash will fail to source /dev/null (special
1259 # files actually), so we avoid doing that.
1260 if test -f "$cache_file"; then
1261 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1262 echo "$as_me: loading cache $cache_file" >&6;}
1263 case $cache_file in
1264 [\\/]* | ?:[\\/]* ) . $cache_file;;
1265 *) . ./$cache_file;;
1266 esac
1267 fi
1268 else
1269 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1270 echo "$as_me: creating cache $cache_file" >&6;}
1271 >$cache_file
1272 fi
1273
1274 # Check that the precious variables saved in the cache have kept the same
1275 # value.
1276 ac_cache_corrupted=false
1277 for ac_var in `(set) 2>&1 |
1278 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1279 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1280 eval ac_new_set=\$ac_env_${ac_var}_set
1281 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1282 eval ac_new_val="\$ac_env_${ac_var}_value"
1283 case $ac_old_set,$ac_new_set in
1284 set,)
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1286 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1288 ,set)
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1292 ,);;
1293 *)
1294 if test "x$ac_old_val" != "x$ac_new_val"; then
1295 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1296 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1297 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1298 echo "$as_me: former value: $ac_old_val" >&2;}
1299 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1300 echo "$as_me: current value: $ac_new_val" >&2;}
1301 ac_cache_corrupted=:
1302 fi;;
1303 esac
1304 # Pass precious variables to config.status.
1305 if test "$ac_new_set" = set; then
1306 case $ac_new_val in
1307 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1309 *) ac_arg=$ac_var=$ac_new_val ;;
1310 esac
1311 case " $ac_configure_args " in
1312 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1313 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1314 esac
1315 fi
1316 done
1317 if $ac_cache_corrupted; then
1318 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1319 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1320 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1321 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1322 { (exit 1); exit 1; }; }
1323 fi
1324
1325 ac_ext=c
1326 ac_cpp='$CPP $CPPFLAGS'
1327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349 ac_config_headers="$ac_config_headers config.h:config.in"
1350
1351 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1352 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1353 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1354 if test "${enable_maintainer_mode+set}" = set; then
1355 enableval="$enable_maintainer_mode"
1356 USE_MAINTAINER_MODE=$enableval
1357 else
1358 USE_MAINTAINER_MODE=no
1359 fi;
1360 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1361 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1362
1363
1364 if test $USE_MAINTAINER_MODE = yes; then
1365 MAINTAINER_MODE_TRUE=
1366 MAINTAINER_MODE_FALSE='#'
1367 else
1368 MAINTAINER_MODE_TRUE='#'
1369 MAINTAINER_MODE_FALSE=
1370 fi
1371
1372 MAINT=$MAINTAINER_MODE_TRUE
1373
1374
1375
1376 ac_ext=c
1377 ac_cpp='$CPP $CPPFLAGS'
1378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 if test -n "$ac_tool_prefix"; then
1382 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1383 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1384 echo "$as_me:$LINENO: checking for $ac_word" >&5
1385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1386 if test "${ac_cv_prog_CC+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389 if test -n "$CC"; then
1390 ac_cv_prog_CC="$CC" # Let the user override the test.
1391 else
1392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393 for as_dir in $PATH
1394 do
1395 IFS=$as_save_IFS
1396 test -z "$as_dir" && as_dir=.
1397 for ac_exec_ext in '' $ac_executable_extensions; do
1398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1399 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401 break 2
1402 fi
1403 done
1404 done
1405
1406 fi
1407 fi
1408 CC=$ac_cv_prog_CC
1409 if test -n "$CC"; then
1410 echo "$as_me:$LINENO: result: $CC" >&5
1411 echo "${ECHO_T}$CC" >&6
1412 else
1413 echo "$as_me:$LINENO: result: no" >&5
1414 echo "${ECHO_T}no" >&6
1415 fi
1416
1417 fi
1418 if test -z "$ac_cv_prog_CC"; then
1419 ac_ct_CC=$CC
1420 # Extract the first word of "gcc", so it can be a program name with args.
1421 set dummy gcc; ac_word=$2
1422 echo "$as_me:$LINENO: checking for $ac_word" >&5
1423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 else
1427 if test -n "$ac_ct_CC"; then
1428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1429 else
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1432 do
1433 IFS=$as_save_IFS
1434 test -z "$as_dir" && as_dir=.
1435 for ac_exec_ext in '' $ac_executable_extensions; do
1436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1437 ac_cv_prog_ac_ct_CC="gcc"
1438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439 break 2
1440 fi
1441 done
1442 done
1443
1444 fi
1445 fi
1446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1447 if test -n "$ac_ct_CC"; then
1448 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1449 echo "${ECHO_T}$ac_ct_CC" >&6
1450 else
1451 echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1453 fi
1454
1455 CC=$ac_ct_CC
1456 else
1457 CC="$ac_cv_prog_CC"
1458 fi
1459
1460 if test -z "$CC"; then
1461 if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1463 set dummy ${ac_tool_prefix}cc; ac_word=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1471 else
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1474 do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_CC="${ac_tool_prefix}cc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 break 2
1482 fi
1483 done
1484 done
1485
1486 fi
1487 fi
1488 CC=$ac_cv_prog_CC
1489 if test -n "$CC"; then
1490 echo "$as_me:$LINENO: result: $CC" >&5
1491 echo "${ECHO_T}$CC" >&6
1492 else
1493 echo "$as_me:$LINENO: result: no" >&5
1494 echo "${ECHO_T}no" >&6
1495 fi
1496
1497 fi
1498 if test -z "$ac_cv_prog_CC"; then
1499 ac_ct_CC=$CC
1500 # Extract the first word of "cc", so it can be a program name with args.
1501 set dummy cc; ac_word=$2
1502 echo "$as_me:$LINENO: checking for $ac_word" >&5
1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509 else
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1512 do
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_ac_ct_CC="cc"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 break 2
1520 fi
1521 done
1522 done
1523
1524 fi
1525 fi
1526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527 if test -n "$ac_ct_CC"; then
1528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1529 echo "${ECHO_T}$ac_ct_CC" >&6
1530 else
1531 echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1533 fi
1534
1535 CC=$ac_ct_CC
1536 else
1537 CC="$ac_cv_prog_CC"
1538 fi
1539
1540 fi
1541 if test -z "$CC"; then
1542 # Extract the first word of "cc", so it can be a program name with args.
1543 set dummy cc; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549 if test -n "$CC"; then
1550 ac_cv_prog_CC="$CC" # Let the user override the test.
1551 else
1552 ac_prog_rejected=no
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 for as_dir in $PATH
1555 do
1556 IFS=$as_save_IFS
1557 test -z "$as_dir" && as_dir=.
1558 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1561 ac_prog_rejected=yes
1562 continue
1563 fi
1564 ac_cv_prog_CC="cc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 break 2
1567 fi
1568 done
1569 done
1570
1571 if test $ac_prog_rejected = yes; then
1572 # We found a bogon in the path, so make sure we never use it.
1573 set dummy $ac_cv_prog_CC
1574 shift
1575 if test $# != 0; then
1576 # We chose a different compiler from the bogus one.
1577 # However, it has the same basename, so the bogon will be chosen
1578 # first if we set CC to just the basename; use the full file name.
1579 shift
1580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1581 fi
1582 fi
1583 fi
1584 fi
1585 CC=$ac_cv_prog_CC
1586 if test -n "$CC"; then
1587 echo "$as_me:$LINENO: result: $CC" >&5
1588 echo "${ECHO_T}$CC" >&6
1589 else
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1592 fi
1593
1594 fi
1595 if test -z "$CC"; then
1596 if test -n "$ac_tool_prefix"; then
1597 for ac_prog in cl
1598 do
1599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 else
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1611 do
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 break 2
1619 fi
1620 done
1621 done
1622
1623 fi
1624 fi
1625 CC=$ac_cv_prog_CC
1626 if test -n "$CC"; then
1627 echo "$as_me:$LINENO: result: $CC" >&5
1628 echo "${ECHO_T}$CC" >&6
1629 else
1630 echo "$as_me:$LINENO: result: no" >&5
1631 echo "${ECHO_T}no" >&6
1632 fi
1633
1634 test -n "$CC" && break
1635 done
1636 fi
1637 if test -z "$CC"; then
1638 ac_ct_CC=$CC
1639 for ac_prog in cl
1640 do
1641 # Extract the first word of "$ac_prog", so it can be a program name with args.
1642 set dummy $ac_prog; ac_word=$2
1643 echo "$as_me:$LINENO: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648 if test -n "$ac_ct_CC"; then
1649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1650 else
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1653 do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_ac_ct_CC="$ac_prog"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2
1661 fi
1662 done
1663 done
1664
1665 fi
1666 fi
1667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1668 if test -n "$ac_ct_CC"; then
1669 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1670 echo "${ECHO_T}$ac_ct_CC" >&6
1671 else
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1674 fi
1675
1676 test -n "$ac_ct_CC" && break
1677 done
1678
1679 CC=$ac_ct_CC
1680 fi
1681
1682 fi
1683
1684
1685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1686 See \`config.log' for more details." >&5
1687 echo "$as_me: error: no acceptable C compiler found in \$PATH
1688 See \`config.log' for more details." >&2;}
1689 { (exit 1); exit 1; }; }
1690
1691 # Provide some information about the compiler.
1692 echo "$as_me:$LINENO:" \
1693 "checking for C compiler version" >&5
1694 ac_compiler=`set X $ac_compile; echo $2`
1695 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1696 (eval $ac_compiler --version </dev/null >&5) 2>&5
1697 ac_status=$?
1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699 (exit $ac_status); }
1700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1701 (eval $ac_compiler -v </dev/null >&5) 2>&5
1702 ac_status=$?
1703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1704 (exit $ac_status); }
1705 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1706 (eval $ac_compiler -V </dev/null >&5) 2>&5
1707 ac_status=$?
1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 (exit $ac_status); }
1710
1711 cat >conftest.$ac_ext <<_ACEOF
1712 /* confdefs.h. */
1713 _ACEOF
1714 cat confdefs.h >>conftest.$ac_ext
1715 cat >>conftest.$ac_ext <<_ACEOF
1716 /* end confdefs.h. */
1717
1718 int
1719 main ()
1720 {
1721
1722 ;
1723 return 0;
1724 }
1725 _ACEOF
1726 ac_clean_files_save=$ac_clean_files
1727 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1728 # Try to create an executable without -o first, disregard a.out.
1729 # It will help us diagnose broken compilers, and finding out an intuition
1730 # of exeext.
1731 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1732 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1733 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1734 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1735 (eval $ac_link_default) 2>&5
1736 ac_status=$?
1737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738 (exit $ac_status); }; then
1739 # Find the output, starting from the most likely. This scheme is
1740 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1741 # resort.
1742
1743 # Be careful to initialize this variable, since it used to be cached.
1744 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1745 ac_cv_exeext=
1746 # b.out is created by i960 compilers.
1747 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1748 do
1749 test -f "$ac_file" || continue
1750 case $ac_file in
1751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1752 ;;
1753 conftest.$ac_ext )
1754 # This is the source file.
1755 ;;
1756 [ab].out )
1757 # We found the default executable, but exeext='' is most
1758 # certainly right.
1759 break;;
1760 *.* )
1761 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1762 # FIXME: I believe we export ac_cv_exeext for Libtool,
1763 # but it would be cool to find out if it's true. Does anybody
1764 # maintain Libtool? --akim.
1765 export ac_cv_exeext
1766 break;;
1767 * )
1768 break;;
1769 esac
1770 done
1771 else
1772 echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1776 See \`config.log' for more details." >&5
1777 echo "$as_me: error: C compiler cannot create executables
1778 See \`config.log' for more details." >&2;}
1779 { (exit 77); exit 77; }; }
1780 fi
1781
1782 ac_exeext=$ac_cv_exeext
1783 echo "$as_me:$LINENO: result: $ac_file" >&5
1784 echo "${ECHO_T}$ac_file" >&6
1785
1786 # Check the compiler produces executables we can run. If not, either
1787 # the compiler is broken, or we cross compile.
1788 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1789 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1790 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1791 # If not cross compiling, check that we can run a simple program.
1792 if test "$cross_compiling" != yes; then
1793 if { ac_try='./$ac_file'
1794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1795 (eval $ac_try) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; }; then
1799 cross_compiling=no
1800 else
1801 if test "$cross_compiling" = maybe; then
1802 cross_compiling=yes
1803 else
1804 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1805 If you meant to cross compile, use \`--host'.
1806 See \`config.log' for more details." >&5
1807 echo "$as_me: error: cannot run C compiled programs.
1808 If you meant to cross compile, use \`--host'.
1809 See \`config.log' for more details." >&2;}
1810 { (exit 1); exit 1; }; }
1811 fi
1812 fi
1813 fi
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816
1817 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1818 ac_clean_files=$ac_clean_files_save
1819 # Check the compiler produces executables we can run. If not, either
1820 # the compiler is broken, or we cross compile.
1821 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1822 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1823 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1824 echo "${ECHO_T}$cross_compiling" >&6
1825
1826 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1827 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1829 (eval $ac_link) 2>&5
1830 ac_status=$?
1831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 (exit $ac_status); }; then
1833 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1834 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1835 # work properly (i.e., refer to `conftest.exe'), while it won't with
1836 # `rm'.
1837 for ac_file in conftest.exe conftest conftest.*; do
1838 test -f "$ac_file" || continue
1839 case $ac_file in
1840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1841 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1842 export ac_cv_exeext
1843 break;;
1844 * ) break;;
1845 esac
1846 done
1847 else
1848 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1849 See \`config.log' for more details." >&5
1850 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1851 See \`config.log' for more details." >&2;}
1852 { (exit 1); exit 1; }; }
1853 fi
1854
1855 rm -f conftest$ac_cv_exeext
1856 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1857 echo "${ECHO_T}$ac_cv_exeext" >&6
1858
1859 rm -f conftest.$ac_ext
1860 EXEEXT=$ac_cv_exeext
1861 ac_exeext=$EXEEXT
1862 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1863 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1864 if test "${ac_cv_objext+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867 cat >conftest.$ac_ext <<_ACEOF
1868 /* confdefs.h. */
1869 _ACEOF
1870 cat confdefs.h >>conftest.$ac_ext
1871 cat >>conftest.$ac_ext <<_ACEOF
1872 /* end confdefs.h. */
1873
1874 int
1875 main ()
1876 {
1877
1878 ;
1879 return 0;
1880 }
1881 _ACEOF
1882 rm -f conftest.o conftest.obj
1883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1884 (eval $ac_compile) 2>&5
1885 ac_status=$?
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; then
1888 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1889 case $ac_file in
1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1891 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1892 break;;
1893 esac
1894 done
1895 else
1896 echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1900 See \`config.log' for more details." >&5
1901 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1902 See \`config.log' for more details." >&2;}
1903 { (exit 1); exit 1; }; }
1904 fi
1905
1906 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1907 fi
1908 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1909 echo "${ECHO_T}$ac_cv_objext" >&6
1910 OBJEXT=$ac_cv_objext
1911 ac_objext=$OBJEXT
1912 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1913 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1914 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 cat >conftest.$ac_ext <<_ACEOF
1918 /* confdefs.h. */
1919 _ACEOF
1920 cat confdefs.h >>conftest.$ac_ext
1921 cat >>conftest.$ac_ext <<_ACEOF
1922 /* end confdefs.h. */
1923
1924 int
1925 main ()
1926 {
1927 #ifndef __GNUC__
1928 choke me
1929 #endif
1930
1931 ;
1932 return 0;
1933 }
1934 _ACEOF
1935 rm -f conftest.$ac_objext
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>conftest.er1
1938 ac_status=$?
1939 grep -v '^ *+' conftest.er1 >conftest.err
1940 rm -f conftest.er1
1941 cat conftest.err >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); } &&
1944 { ac_try='test -z "$ac_c_werror_flag"
1945 || test ! -s conftest.err'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 (eval $ac_try) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; } &&
1951 { ac_try='test -s conftest.$ac_objext'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 (eval $ac_try) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1957 ac_compiler_gnu=yes
1958 else
1959 echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962 ac_compiler_gnu=no
1963 fi
1964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1965 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1966
1967 fi
1968 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1969 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1970 GCC=`test $ac_compiler_gnu = yes && echo yes`
1971 ac_test_CFLAGS=${CFLAGS+set}
1972 ac_save_CFLAGS=$CFLAGS
1973 CFLAGS="-g"
1974 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1975 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1976 if test "${ac_cv_prog_cc_g+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979 cat >conftest.$ac_ext <<_ACEOF
1980 /* confdefs.h. */
1981 _ACEOF
1982 cat confdefs.h >>conftest.$ac_ext
1983 cat >>conftest.$ac_ext <<_ACEOF
1984 /* end confdefs.h. */
1985
1986 int
1987 main ()
1988 {
1989
1990 ;
1991 return 0;
1992 }
1993 _ACEOF
1994 rm -f conftest.$ac_objext
1995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1996 (eval $ac_compile) 2>conftest.er1
1997 ac_status=$?
1998 grep -v '^ *+' conftest.er1 >conftest.err
1999 rm -f conftest.er1
2000 cat conftest.err >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); } &&
2003 { ac_try='test -z "$ac_c_werror_flag"
2004 || test ! -s conftest.err'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; } &&
2010 { ac_try='test -s conftest.$ac_objext'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 (eval $ac_try) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2016 ac_cv_prog_cc_g=yes
2017 else
2018 echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2020
2021 ac_cv_prog_cc_g=no
2022 fi
2023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2024 fi
2025 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2026 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2027 if test "$ac_test_CFLAGS" = set; then
2028 CFLAGS=$ac_save_CFLAGS
2029 elif test $ac_cv_prog_cc_g = yes; then
2030 if test "$GCC" = yes; then
2031 CFLAGS="-g -O2"
2032 else
2033 CFLAGS="-g"
2034 fi
2035 else
2036 if test "$GCC" = yes; then
2037 CFLAGS="-O2"
2038 else
2039 CFLAGS=
2040 fi
2041 fi
2042 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2043 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2044 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047 ac_cv_prog_cc_stdc=no
2048 ac_save_CC=$CC
2049 cat >conftest.$ac_ext <<_ACEOF
2050 /* confdefs.h. */
2051 _ACEOF
2052 cat confdefs.h >>conftest.$ac_ext
2053 cat >>conftest.$ac_ext <<_ACEOF
2054 /* end confdefs.h. */
2055 #include <stdarg.h>
2056 #include <stdio.h>
2057 #include <sys/types.h>
2058 #include <sys/stat.h>
2059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2060 struct buf { int x; };
2061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2062 static char *e (p, i)
2063 char **p;
2064 int i;
2065 {
2066 return p[i];
2067 }
2068 static char *f (char * (*g) (char **, int), char **p, ...)
2069 {
2070 char *s;
2071 va_list v;
2072 va_start (v,p);
2073 s = g (p, va_arg (v,int));
2074 va_end (v);
2075 return s;
2076 }
2077
2078 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2079 function prototypes and stuff, but not '\xHH' hex character constants.
2080 These don't provoke an error unfortunately, instead are silently treated
2081 as 'x'. The following induces an error, until -std1 is added to get
2082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2083 array size at least. It's necessary to write '\x00'==0 to get something
2084 that's true only with -std1. */
2085 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2086
2087 int test (int i, double x);
2088 struct s1 {int (*f) (int a);};
2089 struct s2 {int (*f) (double a);};
2090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2091 int argc;
2092 char **argv;
2093 int
2094 main ()
2095 {
2096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 # Don't try gcc -ansi; that turns off useful extensions and
2102 # breaks some systems' header files.
2103 # AIX -qlanglvl=ansi
2104 # Ultrix and OSF/1 -std1
2105 # HP-UX 10.20 and later -Ae
2106 # HP-UX older versions -Aa -D_HPUX_SOURCE
2107 # SVR4 -Xc -D__EXTENSIONS__
2108 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2109 do
2110 CC="$ac_save_CC $ac_arg"
2111 rm -f conftest.$ac_objext
2112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2113 (eval $ac_compile) 2>conftest.er1
2114 ac_status=$?
2115 grep -v '^ *+' conftest.er1 >conftest.err
2116 rm -f conftest.er1
2117 cat conftest.err >&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); } &&
2120 { ac_try='test -z "$ac_c_werror_flag"
2121 || test ! -s conftest.err'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; } &&
2127 { ac_try='test -s conftest.$ac_objext'
2128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129 (eval $ac_try) 2>&5
2130 ac_status=$?
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }; }; then
2133 ac_cv_prog_cc_stdc=$ac_arg
2134 break
2135 else
2136 echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2138
2139 fi
2140 rm -f conftest.err conftest.$ac_objext
2141 done
2142 rm -f conftest.$ac_ext conftest.$ac_objext
2143 CC=$ac_save_CC
2144
2145 fi
2146
2147 case "x$ac_cv_prog_cc_stdc" in
2148 x|xno)
2149 echo "$as_me:$LINENO: result: none needed" >&5
2150 echo "${ECHO_T}none needed" >&6 ;;
2151 *)
2152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2153 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2154 CC="$CC $ac_cv_prog_cc_stdc" ;;
2155 esac
2156
2157 # Some people use a C++ compiler to compile C. Since we use `exit',
2158 # in C++ we need to declare it. In case someone uses the same compiler
2159 # for both compiling C and C++ we need to have the C++ compiler decide
2160 # the declaration of exit, since it's the most demanding environment.
2161 cat >conftest.$ac_ext <<_ACEOF
2162 #ifndef __cplusplus
2163 choke me
2164 #endif
2165 _ACEOF
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>conftest.er1
2169 ac_status=$?
2170 grep -v '^ *+' conftest.er1 >conftest.err
2171 rm -f conftest.er1
2172 cat conftest.err >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
2175 { ac_try='test -z "$ac_c_werror_flag"
2176 || test ! -s conftest.err'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 for ac_declaration in \
2189 '' \
2190 'extern "C" void std::exit (int) throw (); using std::exit;' \
2191 'extern "C" void std::exit (int); using std::exit;' \
2192 'extern "C" void exit (int) throw ();' \
2193 'extern "C" void exit (int);' \
2194 'void exit (int);'
2195 do
2196 cat >conftest.$ac_ext <<_ACEOF
2197 /* confdefs.h. */
2198 _ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h. */
2202 $ac_declaration
2203 #include <stdlib.h>
2204 int
2205 main ()
2206 {
2207 exit (42);
2208 ;
2209 return 0;
2210 }
2211 _ACEOF
2212 rm -f conftest.$ac_objext
2213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214 (eval $ac_compile) 2>conftest.er1
2215 ac_status=$?
2216 grep -v '^ *+' conftest.er1 >conftest.err
2217 rm -f conftest.er1
2218 cat conftest.err >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); } &&
2221 { ac_try='test -z "$ac_c_werror_flag"
2222 || test ! -s conftest.err'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; } &&
2228 { ac_try='test -s conftest.$ac_objext'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 :
2235 else
2236 echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2238
2239 continue
2240 fi
2241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2242 cat >conftest.$ac_ext <<_ACEOF
2243 /* confdefs.h. */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h. */
2248 $ac_declaration
2249 int
2250 main ()
2251 {
2252 exit (42);
2253 ;
2254 return 0;
2255 }
2256 _ACEOF
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>conftest.er1
2260 ac_status=$?
2261 grep -v '^ *+' conftest.er1 >conftest.err
2262 rm -f conftest.er1
2263 cat conftest.err >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
2266 { ac_try='test -z "$ac_c_werror_flag"
2267 || test ! -s conftest.err'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; } &&
2273 { ac_try='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 break
2280 else
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2283
2284 fi
2285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286 done
2287 rm -f conftest*
2288 if test -n "$ac_declaration"; then
2289 echo '#ifdef __cplusplus' >>confdefs.h
2290 echo $ac_declaration >>confdefs.h
2291 echo '#endif' >>confdefs.h
2292 fi
2293
2294 else
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 fi
2299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
2306
2307 cat >>confdefs.h <<\_ACEOF
2308 #define _GNU_SOURCE 1
2309 _ACEOF
2310
2311
2312
2313 ac_ext=c
2314 ac_cpp='$CPP $CPPFLAGS'
2315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2319 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2320 # On Suns, sometimes $CPP names a directory.
2321 if test -n "$CPP" && test -d "$CPP"; then
2322 CPP=
2323 fi
2324 if test -z "$CPP"; then
2325 if test "${ac_cv_prog_CPP+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 # Double quotes because CPP needs to be expanded
2329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2330 do
2331 ac_preproc_ok=false
2332 for ac_c_preproc_warn_flag in '' yes
2333 do
2334 # Use a header file that comes with gcc, so configuring glibc
2335 # with a fresh cross-compiler works.
2336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2337 # <limits.h> exists even on freestanding compilers.
2338 # On the NeXT, cc -E runs the code through the compiler's parser,
2339 # not just through cpp. "Syntax error" is here to catch this case.
2340 cat >conftest.$ac_ext <<_ACEOF
2341 /* confdefs.h. */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2346 #ifdef __STDC__
2347 # include <limits.h>
2348 #else
2349 # include <assert.h>
2350 #endif
2351 Syntax error
2352 _ACEOF
2353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2355 ac_status=$?
2356 grep -v '^ *+' conftest.er1 >conftest.err
2357 rm -f conftest.er1
2358 cat conftest.err >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } >/dev/null; then
2361 if test -s conftest.err; then
2362 ac_cpp_err=$ac_c_preproc_warn_flag
2363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2364 else
2365 ac_cpp_err=
2366 fi
2367 else
2368 ac_cpp_err=yes
2369 fi
2370 if test -z "$ac_cpp_err"; then
2371 :
2372 else
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 # Broken: fails on valid input.
2377 continue
2378 fi
2379 rm -f conftest.err conftest.$ac_ext
2380
2381 # OK, works on sane cases. Now check whether non-existent headers
2382 # can be detected and how.
2383 cat >conftest.$ac_ext <<_ACEOF
2384 /* confdefs.h. */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2389 #include <ac_nonexistent.h>
2390 _ACEOF
2391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } >/dev/null; then
2399 if test -s conftest.err; then
2400 ac_cpp_err=$ac_c_preproc_warn_flag
2401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2402 else
2403 ac_cpp_err=
2404 fi
2405 else
2406 ac_cpp_err=yes
2407 fi
2408 if test -z "$ac_cpp_err"; then
2409 # Broken: success on invalid input.
2410 continue
2411 else
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2414
2415 # Passes both tests.
2416 ac_preproc_ok=:
2417 break
2418 fi
2419 rm -f conftest.err conftest.$ac_ext
2420
2421 done
2422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2423 rm -f conftest.err conftest.$ac_ext
2424 if $ac_preproc_ok; then
2425 break
2426 fi
2427
2428 done
2429 ac_cv_prog_CPP=$CPP
2430
2431 fi
2432 CPP=$ac_cv_prog_CPP
2433 else
2434 ac_cv_prog_CPP=$CPP
2435 fi
2436 echo "$as_me:$LINENO: result: $CPP" >&5
2437 echo "${ECHO_T}$CPP" >&6
2438 ac_preproc_ok=false
2439 for ac_c_preproc_warn_flag in '' yes
2440 do
2441 # Use a header file that comes with gcc, so configuring glibc
2442 # with a fresh cross-compiler works.
2443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2444 # <limits.h> exists even on freestanding compilers.
2445 # On the NeXT, cc -E runs the code through the compiler's parser,
2446 # not just through cpp. "Syntax error" is here to catch this case.
2447 cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h. */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2453 #ifdef __STDC__
2454 # include <limits.h>
2455 #else
2456 # include <assert.h>
2457 #endif
2458 Syntax error
2459 _ACEOF
2460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2462 ac_status=$?
2463 grep -v '^ *+' conftest.er1 >conftest.err
2464 rm -f conftest.er1
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } >/dev/null; then
2468 if test -s conftest.err; then
2469 ac_cpp_err=$ac_c_preproc_warn_flag
2470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2471 else
2472 ac_cpp_err=
2473 fi
2474 else
2475 ac_cpp_err=yes
2476 fi
2477 if test -z "$ac_cpp_err"; then
2478 :
2479 else
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483 # Broken: fails on valid input.
2484 continue
2485 fi
2486 rm -f conftest.err conftest.$ac_ext
2487
2488 # OK, works on sane cases. Now check whether non-existent headers
2489 # can be detected and how.
2490 cat >conftest.$ac_ext <<_ACEOF
2491 /* confdefs.h. */
2492 _ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2496 #include <ac_nonexistent.h>
2497 _ACEOF
2498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } >/dev/null; then
2506 if test -s conftest.err; then
2507 ac_cpp_err=$ac_c_preproc_warn_flag
2508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2509 else
2510 ac_cpp_err=
2511 fi
2512 else
2513 ac_cpp_err=yes
2514 fi
2515 if test -z "$ac_cpp_err"; then
2516 # Broken: success on invalid input.
2517 continue
2518 else
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2521
2522 # Passes both tests.
2523 ac_preproc_ok=:
2524 break
2525 fi
2526 rm -f conftest.err conftest.$ac_ext
2527
2528 done
2529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2530 rm -f conftest.err conftest.$ac_ext
2531 if $ac_preproc_ok; then
2532 :
2533 else
2534 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2535 See \`config.log' for more details." >&5
2536 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2537 See \`config.log' for more details." >&2;}
2538 { (exit 1); exit 1; }; }
2539 fi
2540
2541 ac_ext=c
2542 ac_cpp='$CPP $CPPFLAGS'
2543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546
2547
2548 echo "$as_me:$LINENO: checking for egrep" >&5
2549 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2550 if test "${ac_cv_prog_egrep+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552 else
2553 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2554 then ac_cv_prog_egrep='grep -E'
2555 else ac_cv_prog_egrep='egrep'
2556 fi
2557 fi
2558 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2559 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2560 EGREP=$ac_cv_prog_egrep
2561
2562
2563
2564 echo "$as_me:$LINENO: checking for AIX" >&5
2565 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2566 cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2572 #ifdef _AIX
2573 yes
2574 #endif
2575
2576 _ACEOF
2577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2578 $EGREP "yes" >/dev/null 2>&1; then
2579 echo "$as_me:$LINENO: result: yes" >&5
2580 echo "${ECHO_T}yes" >&6
2581 cat >>confdefs.h <<\_ACEOF
2582 #define _ALL_SOURCE 1
2583 _ACEOF
2584
2585 else
2586 echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6
2588 fi
2589 rm -f conftest*
2590
2591
2592 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2593 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2594 if test "${ac_cv_search_strerror+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 else
2597 ac_func_search_save_LIBS=$LIBS
2598 ac_cv_search_strerror=no
2599 cat >conftest.$ac_ext <<_ACEOF
2600 /* confdefs.h. */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2605
2606 /* Override any gcc2 internal prototype to avoid an error. */
2607 #ifdef __cplusplus
2608 extern "C"
2609 #endif
2610 /* We use char because int might match the return type of a gcc2
2611 builtin and then its argument prototype would still apply. */
2612 char strerror ();
2613 int
2614 main ()
2615 {
2616 strerror ();
2617 ;
2618 return 0;
2619 }
2620 _ACEOF
2621 rm -f conftest.$ac_objext conftest$ac_exeext
2622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2623 (eval $ac_link) 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -z "$ac_c_werror_flag"
2631 || test ! -s conftest.err'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest$ac_exeext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2643 ac_cv_search_strerror="none required"
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648 fi
2649 rm -f conftest.err conftest.$ac_objext \
2650 conftest$ac_exeext conftest.$ac_ext
2651 if test "$ac_cv_search_strerror" = no; then
2652 for ac_lib in cposix; do
2653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2654 cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h. */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2660
2661 /* Override any gcc2 internal prototype to avoid an error. */
2662 #ifdef __cplusplus
2663 extern "C"
2664 #endif
2665 /* We use char because int might match the return type of a gcc2
2666 builtin and then its argument prototype would still apply. */
2667 char strerror ();
2668 int
2669 main ()
2670 {
2671 strerror ();
2672 ;
2673 return 0;
2674 }
2675 _ACEOF
2676 rm -f conftest.$ac_objext conftest$ac_exeext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2678 (eval $ac_link) 2>conftest.er1
2679 ac_status=$?
2680 grep -v '^ *+' conftest.er1 >conftest.err
2681 rm -f conftest.er1
2682 cat conftest.err >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
2685 { ac_try='test -z "$ac_c_werror_flag"
2686 || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try='test -s conftest$ac_exeext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_cv_search_strerror="-l$ac_lib"
2699 break
2700 else
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2703
2704 fi
2705 rm -f conftest.err conftest.$ac_objext \
2706 conftest$ac_exeext conftest.$ac_ext
2707 done
2708 fi
2709 LIBS=$ac_func_search_save_LIBS
2710 fi
2711 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2712 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2713 if test "$ac_cv_search_strerror" != no; then
2714 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2715
2716 fi
2717
2718 gl_EARLY
2719
2720
2721
2722 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2723 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2724 if test "${am_cv_prog_cc_stdc+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727 am_cv_prog_cc_stdc=no
2728 ac_save_CC="$CC"
2729 # Don't try gcc -ansi; that turns off useful extensions and
2730 # breaks some systems' header files.
2731 # AIX -qlanglvl=ansi
2732 # Ultrix and OSF/1 -std1
2733 # HP-UX 10.20 and later -Ae
2734 # HP-UX older versions -Aa -D_HPUX_SOURCE
2735 # SVR4 -Xc -D__EXTENSIONS__
2736 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2737 do
2738 CC="$ac_save_CC $ac_arg"
2739 cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h. */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2745 #include <stdarg.h>
2746 #include <stdio.h>
2747 #include <sys/types.h>
2748 #include <sys/stat.h>
2749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2750 struct buf { int x; };
2751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2752 static char *e (p, i)
2753 char **p;
2754 int i;
2755 {
2756 return p[i];
2757 }
2758 static char *f (char * (*g) (char **, int), char **p, ...)
2759 {
2760 char *s;
2761 va_list v;
2762 va_start (v,p);
2763 s = g (p, va_arg (v,int));
2764 va_end (v);
2765 return s;
2766 }
2767 int test (int i, double x);
2768 struct s1 {int (*f) (int a);};
2769 struct s2 {int (*f) (double a);};
2770 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2771 int argc;
2772 char **argv;
2773
2774 int
2775 main ()
2776 {
2777
2778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2779
2780 ;
2781 return 0;
2782 }
2783 _ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>conftest.er1
2787 ac_status=$?
2788 grep -v '^ *+' conftest.er1 >conftest.err
2789 rm -f conftest.er1
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -z "$ac_c_werror_flag"
2794 || test ! -s conftest.err'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; } &&
2800 { ac_try='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 am_cv_prog_cc_stdc="$ac_arg"; break
2807 else
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811 fi
2812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 done
2814 CC="$ac_save_CC"
2815
2816 fi
2817
2818 if test -z "$am_cv_prog_cc_stdc"; then
2819 echo "$as_me:$LINENO: result: none needed" >&5
2820 echo "${ECHO_T}none needed" >&6
2821 else
2822 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2823 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2824 fi
2825 case "x$am_cv_prog_cc_stdc" in
2826 x|xno) ;;
2827 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2828 esac
2829
2830
2831 ac_aux_dir=
2832 for ac_dir in .. $srcdir/..; do
2833 if test -f $ac_dir/install-sh; then
2834 ac_aux_dir=$ac_dir
2835 ac_install_sh="$ac_aux_dir/install-sh -c"
2836 break
2837 elif test -f $ac_dir/install.sh; then
2838 ac_aux_dir=$ac_dir
2839 ac_install_sh="$ac_aux_dir/install.sh -c"
2840 break
2841 elif test -f $ac_dir/shtool; then
2842 ac_aux_dir=$ac_dir
2843 ac_install_sh="$ac_aux_dir/shtool install -c"
2844 break
2845 fi
2846 done
2847 if test -z "$ac_aux_dir"; then
2848 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
2849 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
2850 { (exit 1); exit 1; }; }
2851 fi
2852 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2853 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2854 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2855
2856 # Make sure we can run config.sub.
2857 $ac_config_sub sun4 >/dev/null 2>&1 ||
2858 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2859 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2860 { (exit 1); exit 1; }; }
2861
2862 echo "$as_me:$LINENO: checking build system type" >&5
2863 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2864 if test "${ac_cv_build+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 ac_cv_build_alias=$build_alias
2868 test -z "$ac_cv_build_alias" &&
2869 ac_cv_build_alias=`$ac_config_guess`
2870 test -z "$ac_cv_build_alias" &&
2871 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2872 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2873 { (exit 1); exit 1; }; }
2874 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2875 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2876 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2877 { (exit 1); exit 1; }; }
2878
2879 fi
2880 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2881 echo "${ECHO_T}$ac_cv_build" >&6
2882 build=$ac_cv_build
2883 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2884 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2885 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2886
2887
2888 echo "$as_me:$LINENO: checking host system type" >&5
2889 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2890 if test "${ac_cv_host+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893 ac_cv_host_alias=$host_alias
2894 test -z "$ac_cv_host_alias" &&
2895 ac_cv_host_alias=$ac_cv_build_alias
2896 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2897 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2898 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2899 { (exit 1); exit 1; }; }
2900
2901 fi
2902 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2903 echo "${ECHO_T}$ac_cv_host" >&6
2904 host=$ac_cv_host
2905 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2906 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2907 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2908
2909
2910 echo "$as_me:$LINENO: checking target system type" >&5
2911 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2912 if test "${ac_cv_target+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 ac_cv_target_alias=$target_alias
2916 test "x$ac_cv_target_alias" = "x" &&
2917 ac_cv_target_alias=$ac_cv_host_alias
2918 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2919 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2920 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2921 { (exit 1); exit 1; }; }
2922
2923 fi
2924 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2925 echo "${ECHO_T}$ac_cv_target" >&6
2926 target=$ac_cv_target
2927 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2928 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2929 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2930
2931
2932 # The aliases save the names the user supplied, while $host etc.
2933 # will get canonicalized.
2934 test -n "$target_alias" &&
2935 test "$program_prefix$program_suffix$program_transform_name" = \
2936 NONENONEs,x,x, &&
2937 program_prefix=${target_alias}-
2938
2939
2940 CONFIG_OBS=
2941 CONFIG_DEPS=
2942 CONFIG_SRCS=
2943 ENABLE_CFLAGS=
2944
2945 CONFIG_ALL=
2946 CONFIG_CLEAN=
2947 CONFIG_INSTALL=
2948 CONFIG_UNINSTALL=
2949
2950 # If we haven't got the data from the intl directory,
2951 # assume NLS is disabled.
2952 USE_NLS=no
2953 LIBINTL=
2954 LIBINTL_DEP=
2955 INCINTL=
2956 XGETTEXT=
2957 GMSGFMT=
2958 POSUB=
2959
2960 if test -f ../intl/config.intl; then
2961 . ../intl/config.intl
2962 fi
2963 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2964 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2965 if test x"$USE_NLS" != xyes; then
2966 echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2968 else
2969 echo "$as_me:$LINENO: result: yes" >&5
2970 echo "${ECHO_T}yes" >&6
2971
2972 cat >>confdefs.h <<\_ACEOF
2973 #define ENABLE_NLS 1
2974 _ACEOF
2975
2976
2977 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2978 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2979 # Look for .po and .gmo files in the source directory.
2980 CATALOGS=
2981 XLINGUAS=
2982 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2983 # If there aren't any .gmo files the shell will give us the
2984 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2985 # weeded out.
2986 case "$cat" in *\**)
2987 continue;;
2988 esac
2989 # The quadruple backslash is collapsed to a double backslash
2990 # by the backticks, then collapsed again by the double quotes,
2991 # leaving us with one backslash in the sed expression (right
2992 # before the dot that mustn't act as a wildcard).
2993 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2994 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2995 # The user is allowed to set LINGUAS to a list of languages to
2996 # install catalogs for. If it's empty that means "all of them."
2997 if test "x$LINGUAS" = x; then
2998 CATALOGS="$CATALOGS $cat"
2999 XLINGUAS="$XLINGUAS $lang"
3000 else
3001 case "$LINGUAS" in *$lang*)
3002 CATALOGS="$CATALOGS $cat"
3003 XLINGUAS="$XLINGUAS $lang"
3004 ;;
3005 esac
3006 fi
3007 done
3008 LINGUAS="$XLINGUAS"
3009 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3010 echo "${ECHO_T}$LINGUAS" >&6
3011
3012
3013 DATADIRNAME=share
3014
3015 INSTOBJEXT=.mo
3016
3017 GENCAT=gencat
3018
3019 CATOBJEXT=.gmo
3020
3021 fi
3022
3023 localedir='${datadir}/locale'
3024
3025
3026 if test x"$USE_NLS" = xyes; then
3027 CONFIG_ALL="$CONFIG_ALL all-po"
3028 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3029 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3030 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3031 fi
3032
3033 gl_INIT
3034
3035 PACKAGE=gdb
3036
3037 cat >>confdefs.h <<_ACEOF
3038 #define PACKAGE "$PACKAGE"
3039 _ACEOF
3040
3041
3042
3043 # GDB does not use automake, but gnulib does. This line lets us
3044 # generate its Makefile.in.
3045 am__api_version="1.9"
3046 # Find a good install program. We prefer a C program (faster),
3047 # so one script is as good as another. But avoid the broken or
3048 # incompatible versions:
3049 # SysV /etc/install, /usr/sbin/install
3050 # SunOS /usr/etc/install
3051 # IRIX /sbin/install
3052 # AIX /bin/install
3053 # AmigaOS /C/install, which installs bootblocks on floppy discs
3054 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3055 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3056 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3057 # OS/2's system install, which has a completely different semantic
3058 # ./install, which can be erroneously created by make from ./install.sh.
3059 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3060 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3061 if test -z "$INSTALL"; then
3062 if test "${ac_cv_path_install+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 # Account for people who put trailing slashes in PATH elements.
3071 case $as_dir/ in
3072 ./ | .// | /cC/* | \
3073 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3074 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3075 /usr/ucb/* ) ;;
3076 *)
3077 # OSF1 and SCO ODT 3.0 have their own names for install.
3078 # Don't use installbsd from OSF since it installs stuff as root
3079 # by default.
3080 for ac_prog in ginstall scoinst install; do
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3083 if test $ac_prog = install &&
3084 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3085 # AIX install. It has an incompatible calling convention.
3086 :
3087 elif test $ac_prog = install &&
3088 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3089 # program-specific install script used by HP pwplus--don't use.
3090 :
3091 else
3092 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3093 break 3
3094 fi
3095 fi
3096 done
3097 done
3098 ;;
3099 esac
3100 done
3101
3102
3103 fi
3104 if test "${ac_cv_path_install+set}" = set; then
3105 INSTALL=$ac_cv_path_install
3106 else
3107 # As a last resort, use the slow shell script. We don't cache a
3108 # path for INSTALL within a source directory, because that will
3109 # break other packages using the cache if that directory is
3110 # removed, or if the path is relative.
3111 INSTALL=$ac_install_sh
3112 fi
3113 fi
3114 echo "$as_me:$LINENO: result: $INSTALL" >&5
3115 echo "${ECHO_T}$INSTALL" >&6
3116
3117 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3118 # It thinks the first close brace ends the variable substitution.
3119 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3120
3121 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3122
3123 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3124
3125 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3126 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3127 # Just in case
3128 sleep 1
3129 echo timestamp > conftest.file
3130 # Do `set' in a subshell so we don't clobber the current shell's
3131 # arguments. Must try -L first in case configure is actually a
3132 # symlink; some systems play weird games with the mod time of symlinks
3133 # (eg FreeBSD returns the mod time of the symlink's containing
3134 # directory).
3135 if (
3136 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3137 if test "$*" = "X"; then
3138 # -L didn't work.
3139 set X `ls -t $srcdir/configure conftest.file`
3140 fi
3141 rm -f conftest.file
3142 if test "$*" != "X $srcdir/configure conftest.file" \
3143 && test "$*" != "X conftest.file $srcdir/configure"; then
3144
3145 # If neither matched, then we have a broken ls. This can happen
3146 # if, for instance, CONFIG_SHELL is bash and it inherits a
3147 # broken ls alias from the environment. This has actually
3148 # happened. Such a system could not be considered "sane".
3149 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3150 alias in your environment" >&5
3151 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3152 alias in your environment" >&2;}
3153 { (exit 1); exit 1; }; }
3154 fi
3155
3156 test "$2" = conftest.file
3157 )
3158 then
3159 # Ok.
3160 :
3161 else
3162 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3163 Check your system clock" >&5
3164 echo "$as_me: error: newly created file is older than distributed files!
3165 Check your system clock" >&2;}
3166 { (exit 1); exit 1; }; }
3167 fi
3168 echo "$as_me:$LINENO: result: yes" >&5
3169 echo "${ECHO_T}yes" >&6
3170 test "$program_prefix" != NONE &&
3171 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3172 # Use a double $ so make ignores it.
3173 test "$program_suffix" != NONE &&
3174 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3175 # Double any \ or $. echo might interpret backslashes.
3176 # By default was `s,x,x', remove it if useless.
3177 cat <<\_ACEOF >conftest.sed
3178 s/[\\$]/&&/g;s/;s,x,x,$//
3179 _ACEOF
3180 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3181 rm conftest.sed
3182
3183 # expand $ac_aux_dir to an absolute path
3184 am_aux_dir=`cd $ac_aux_dir && pwd`
3185
3186 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3187 # Use eval to expand $SHELL
3188 if eval "$MISSING --run true"; then
3189 am_missing_run="$MISSING --run "
3190 else
3191 am_missing_run=
3192 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3193 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3194 fi
3195
3196 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3197 # We used to keeping the `.' as first argument, in order to
3198 # allow $(mkdir_p) to be used without argument. As in
3199 # $(mkdir_p) $(somedir)
3200 # where $(somedir) is conditionally defined. However this is wrong
3201 # for two reasons:
3202 # 1. if the package is installed by a user who cannot write `.'
3203 # make install will fail,
3204 # 2. the above comment should most certainly read
3205 # $(mkdir_p) $(DESTDIR)$(somedir)
3206 # so it does not work when $(somedir) is undefined and
3207 # $(DESTDIR) is not.
3208 # To support the latter case, we have to write
3209 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3210 # so the `.' trick is pointless.
3211 mkdir_p='mkdir -p --'
3212 else
3213 # On NextStep and OpenStep, the `mkdir' command does not
3214 # recognize any option. It will interpret all options as
3215 # directories to create, and then abort because `.' already
3216 # exists.
3217 for d in ./-p ./--version;
3218 do
3219 test -d $d && rmdir $d
3220 done
3221 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3222 if test -f "$ac_aux_dir/mkinstalldirs"; then
3223 mkdir_p='$(mkinstalldirs)'
3224 else
3225 mkdir_p='$(install_sh) -d'
3226 fi
3227 fi
3228
3229 for ac_prog in gawk mawk nawk awk
3230 do
3231 # Extract the first word of "$ac_prog", so it can be a program name with args.
3232 set dummy $ac_prog; ac_word=$2
3233 echo "$as_me:$LINENO: checking for $ac_word" >&5
3234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235 if test "${ac_cv_prog_AWK+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238 if test -n "$AWK"; then
3239 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_AWK="$ac_prog"
3249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3251 fi
3252 done
3253 done
3254
3255 fi
3256 fi
3257 AWK=$ac_cv_prog_AWK
3258 if test -n "$AWK"; then
3259 echo "$as_me:$LINENO: result: $AWK" >&5
3260 echo "${ECHO_T}$AWK" >&6
3261 else
3262 echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6
3264 fi
3265
3266 test -n "$AWK" && break
3267 done
3268
3269 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3270 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3271 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3272 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 cat >conftest.make <<\_ACEOF
3276 all:
3277 @echo 'ac_maketemp="$(MAKE)"'
3278 _ACEOF
3279 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3280 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3281 if test -n "$ac_maketemp"; then
3282 eval ac_cv_prog_make_${ac_make}_set=yes
3283 else
3284 eval ac_cv_prog_make_${ac_make}_set=no
3285 fi
3286 rm -f conftest.make
3287 fi
3288 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3289 echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6
3291 SET_MAKE=
3292 else
3293 echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6
3295 SET_MAKE="MAKE=${MAKE-make}"
3296 fi
3297
3298 rm -rf .tst 2>/dev/null
3299 mkdir .tst 2>/dev/null
3300 if test -d .tst; then
3301 am__leading_dot=.
3302 else
3303 am__leading_dot=_
3304 fi
3305 rmdir .tst 2>/dev/null
3306
3307 DEPDIR="${am__leading_dot}deps"
3308
3309 ac_config_commands="$ac_config_commands depfiles"
3310
3311
3312 am_make=${MAKE-make}
3313 cat > confinc << 'END'
3314 am__doit:
3315 @echo done
3316 .PHONY: am__doit
3317 END
3318 # If we don't find an include directive, just comment out the code.
3319 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3320 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3321 am__include="#"
3322 am__quote=
3323 _am_result=none
3324 # First try GNU make style include.
3325 echo "include confinc" > confmf
3326 # We grep out `Entering directory' and `Leaving directory'
3327 # messages which can occur if `w' ends up in MAKEFLAGS.
3328 # In particular we don't look at `^make:' because GNU make might
3329 # be invoked under some other name (usually "gmake"), in which
3330 # case it prints its new name instead of `make'.
3331 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3332 am__include=include
3333 am__quote=
3334 _am_result=GNU
3335 fi
3336 # Now try BSD make style include.
3337 if test "$am__include" = "#"; then
3338 echo '.include "confinc"' > confmf
3339 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3340 am__include=.include
3341 am__quote="\""
3342 _am_result=BSD
3343 fi
3344 fi
3345
3346
3347 echo "$as_me:$LINENO: result: $_am_result" >&5
3348 echo "${ECHO_T}$_am_result" >&6
3349 rm -f confinc confmf
3350
3351 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3352 if test "${enable_dependency_tracking+set}" = set; then
3353 enableval="$enable_dependency_tracking"
3354
3355 fi;
3356 if test "x$enable_dependency_tracking" != xno; then
3357 am_depcomp="$ac_aux_dir/depcomp"
3358 AMDEPBACKSLASH='\'
3359 fi
3360
3361
3362 if test "x$enable_dependency_tracking" != xno; then
3363 AMDEP_TRUE=
3364 AMDEP_FALSE='#'
3365 else
3366 AMDEP_TRUE='#'
3367 AMDEP_FALSE=
3368 fi
3369
3370
3371
3372 # test to see if srcdir already configured
3373 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3374 test -f $srcdir/config.status; then
3375 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3376 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3377 { (exit 1); exit 1; }; }
3378 fi
3379
3380 # test whether we have cygpath
3381 if test -z "$CYGPATH_W"; then
3382 if (cygpath --version) >/dev/null 2>/dev/null; then
3383 CYGPATH_W='cygpath -w'
3384 else
3385 CYGPATH_W=echo
3386 fi
3387 fi
3388
3389
3390 # Define the identity of the package.
3391 PACKAGE=gdb
3392 VERSION=UNUSED-VERSION
3393
3394
3395 # Some tools Automake needs.
3396
3397 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3398
3399
3400 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3401
3402
3403 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3404
3405
3406 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3407
3408
3409 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3410
3411 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3412
3413 # Installed binaries are usually stripped using `strip' when the user
3414 # run `make install-strip'. However `strip' might not be the right
3415 # tool to use in cross-compilation environments, therefore Automake
3416 # will honor the `STRIP' environment variable to overrule this program.
3417 if test "$cross_compiling" != no; then
3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3420 set dummy ${ac_tool_prefix}strip; ac_word=$2
3421 echo "$as_me:$LINENO: checking for $ac_word" >&5
3422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3423 if test "${ac_cv_prog_STRIP+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426 if test -n "$STRIP"; then
3427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440 done
3441 done
3442
3443 fi
3444 fi
3445 STRIP=$ac_cv_prog_STRIP
3446 if test -n "$STRIP"; then
3447 echo "$as_me:$LINENO: result: $STRIP" >&5
3448 echo "${ECHO_T}$STRIP" >&6
3449 else
3450 echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3452 fi
3453
3454 fi
3455 if test -z "$ac_cv_prog_STRIP"; then
3456 ac_ct_STRIP=$STRIP
3457 # Extract the first word of "strip", so it can be a program name with args.
3458 set dummy strip; ac_word=$2
3459 echo "$as_me:$LINENO: checking for $ac_word" >&5
3460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 if test -n "$ac_ct_STRIP"; then
3465 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3466 else
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3469 do
3470 IFS=$as_save_IFS
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_ac_ct_STRIP="strip"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 break 2
3477 fi
3478 done
3479 done
3480
3481 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3482 fi
3483 fi
3484 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3485 if test -n "$ac_ct_STRIP"; then
3486 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3487 echo "${ECHO_T}$ac_ct_STRIP" >&6
3488 else
3489 echo "$as_me:$LINENO: result: no" >&5
3490 echo "${ECHO_T}no" >&6
3491 fi
3492
3493 STRIP=$ac_ct_STRIP
3494 else
3495 STRIP="$ac_cv_prog_STRIP"
3496 fi
3497
3498 fi
3499 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3500
3501 # We need awk for the "check" target. The system "awk" is bad on
3502 # some platforms.
3503 # Always define AMTAR for backward compatibility.
3504
3505 AMTAR=${AMTAR-"${am_missing_run}tar"}
3506
3507 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3508
3509
3510
3511
3512 depcc="$CC" am_compiler_list=
3513
3514 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3515 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3516 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3520 # We make a subdir and do the tests there. Otherwise we can end up
3521 # making bogus files that we don't know about and never remove. For
3522 # instance it was reported that on HP-UX the gcc test will end up
3523 # making a dummy file named `D' -- because `-MD' means `put the output
3524 # in D'.
3525 mkdir conftest.dir
3526 # Copy depcomp to subdir because otherwise we won't find it if we're
3527 # using a relative directory.
3528 cp "$am_depcomp" conftest.dir
3529 cd conftest.dir
3530 # We will build objects and dependencies in a subdirectory because
3531 # it helps to detect inapplicable dependency modes. For instance
3532 # both Tru64's cc and ICC support -MD to output dependencies as a
3533 # side effect of compilation, but ICC will put the dependencies in
3534 # the current directory while Tru64 will put them in the object
3535 # directory.
3536 mkdir sub
3537
3538 am_cv_CC_dependencies_compiler_type=none
3539 if test "$am_compiler_list" = ""; then
3540 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3541 fi
3542 for depmode in $am_compiler_list; do
3543 # Setup a source with many dependencies, because some compilers
3544 # like to wrap large dependency lists on column 80 (with \), and
3545 # we should not choose a depcomp mode which is confused by this.
3546 #
3547 # We need to recreate these files for each test, as the compiler may
3548 # overwrite some of them when testing with obscure command lines.
3549 # This happens at least with the AIX C compiler.
3550 : > sub/conftest.c
3551 for i in 1 2 3 4 5 6; do
3552 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3553 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3554 # Solaris 8's {/usr,}/bin/sh.
3555 touch sub/conftst$i.h
3556 done
3557 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3558
3559 case $depmode in
3560 nosideeffect)
3561 # after this tag, mechanisms are not by side-effect, so they'll
3562 # only be used when explicitly requested
3563 if test "x$enable_dependency_tracking" = xyes; then
3564 continue
3565 else
3566 break
3567 fi
3568 ;;
3569 none) break ;;
3570 esac
3571 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3572 # mode. It turns out that the SunPro C++ compiler does not properly
3573 # handle `-M -o', and we need to detect this.
3574 if depmode=$depmode \
3575 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3576 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3577 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3578 >/dev/null 2>conftest.err &&
3579 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3580 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3581 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3582 # icc doesn't choke on unknown options, it will just issue warnings
3583 # or remarks (even with -Werror). So we grep stderr for any message
3584 # that says an option was ignored or not supported.
3585 # When given -MP, icc 7.0 and 7.1 complain thusly:
3586 # icc: Command line warning: ignoring option '-M'; no argument required
3587 # The diagnosis changed in icc 8.0:
3588 # icc: Command line remark: option '-MP' not supported
3589 if (grep 'ignoring option' conftest.err ||
3590 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3591 am_cv_CC_dependencies_compiler_type=$depmode
3592 break
3593 fi
3594 fi
3595 done
3596
3597 cd ..
3598 rm -rf conftest.dir
3599 else
3600 am_cv_CC_dependencies_compiler_type=none
3601 fi
3602
3603 fi
3604 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3605 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3606 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3607
3608
3609
3610 if
3611 test "x$enable_dependency_tracking" != xno \
3612 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3613 am__fastdepCC_TRUE=
3614 am__fastdepCC_FALSE='#'
3615 else
3616 am__fastdepCC_TRUE='#'
3617 am__fastdepCC_FALSE=
3618 fi
3619
3620
3621
3622
3623 debugdir=${libdir}/debug
3624
3625
3626 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
3627 if test "${with_separate_debug_dir+set}" = set; then
3628 withval="$with_separate_debug_dir"
3629 debugdir="${withval}"
3630 fi;
3631
3632
3633 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3634 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3635 ac_define_dir=`eval echo $debugdir`
3636 ac_define_dir=`eval echo $ac_define_dir`
3637
3638 cat >>confdefs.h <<_ACEOF
3639 #define DEBUGDIR "$ac_define_dir"
3640 _ACEOF
3641
3642
3643 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3644
3645 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3646 if test "x$prefix" = xNONE; then
3647 test_prefix=/usr/local
3648 else
3649 test_prefix=$prefix
3650 fi
3651 else
3652 test_prefix=$exec_prefix
3653 fi
3654 case ${debugdir} in
3655 "${test_prefix}"|"${test_prefix}/"*|\
3656 '${exec_prefix}'|'${exec_prefix}/'*)
3657
3658 cat >>confdefs.h <<\_ACEOF
3659 #define DEBUGDIR_RELOCATABLE 1
3660 _ACEOF
3661
3662 ;;
3663 esac
3664
3665
3666
3667 subdirs="$subdirs doc testsuite"
3668
3669
3670 # Check whether to support alternative target configurations
3671 # Check whether --enable-targets or --disable-targets was given.
3672 if test "${enable_targets+set}" = set; then
3673 enableval="$enable_targets"
3674 case "${enableval}" in
3675 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3676 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3677 { (exit 1); exit 1; }; }
3678 ;;
3679 no) enable_targets= ;;
3680 *) enable_targets=$enableval ;;
3681 esac
3682 fi;
3683
3684 # Check whether to enable 64-bit support on 32-bit hosts
3685 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3686 if test "${enable_64_bit_bfd+set}" = set; then
3687 enableval="$enable_64_bit_bfd"
3688 case "${enableval}" in
3689 yes) want64=true ;;
3690 no) want64=false ;;
3691 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3692 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3693 { (exit 1); exit 1; }; } ;;
3694 esac
3695 else
3696 want64=false
3697 fi;
3698 # Provide defaults for some variables set by the per-host and per-target
3699 # configuration.
3700 gdb_host_obs=posix-hdep.o
3701
3702 if test "${target}" = "${host}"; then
3703 gdb_native=yes
3704 else
3705 gdb_native=no
3706 fi
3707
3708 . $srcdir/configure.host
3709
3710 # Accumulate some settings from configure.tgt over all enabled targets
3711
3712 TARGET_OBS=
3713 all_targets=
3714
3715 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
3716 do
3717 if test "$targ_alias" = "all"; then
3718 all_targets=true
3719 else
3720 # Canonicalize the secondary target names.
3721 result=`$ac_config_sub $targ_alias 2>/dev/null`
3722 if test -n "$result"; then
3723 targ=$result
3724 else
3725 targ=$targ_alias
3726 fi
3727
3728 . ${srcdir}/configure.tgt
3729
3730 # Target-specific object files
3731 for i in ${gdb_target_obs}; do
3732 case " $TARGET_OBS " in
3733 *" ${i} "*) ;;
3734 *)
3735 TARGET_OBS="$TARGET_OBS ${i}"
3736 ;;
3737 esac
3738 done
3739
3740 # Check whether this target needs 64-bit CORE_ADDR
3741 if test x${want64} = xfalse; then
3742 . ${srcdir}/../bfd/config.bfd
3743 fi
3744 fi
3745 done
3746
3747 if test x${all_targets} = xtrue; then
3748
3749 # We want all 64-bit targets if we either:
3750 # - run on a 64-bit host or
3751 # - already require 64-bit support for some other target or
3752 # - the --enable-64-bit-bfd option was supplied
3753 # Otherwise we only support all 32-bit targets.
3754 #
3755 # NOTE: This test must be in sync with the corresponding
3756 # tests in BFD!
3757
3758 if test x${want64} = xfalse; then
3759 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3760 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3761 if test "${ac_cv_header_stdc+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764 cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h. */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 #include <stdlib.h>
3771 #include <stdarg.h>
3772 #include <string.h>
3773 #include <float.h>
3774
3775 int
3776 main ()
3777 {
3778
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 rm -f conftest.$ac_objext
3784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -z "$ac_c_werror_flag"
3793 || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 ac_cv_header_stdc=yes
3806 else
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810 ac_cv_header_stdc=no
3811 fi
3812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3813
3814 if test $ac_cv_header_stdc = yes; then
3815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3822 #include <string.h>
3823
3824 _ACEOF
3825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3826 $EGREP "memchr" >/dev/null 2>&1; then
3827 :
3828 else
3829 ac_cv_header_stdc=no
3830 fi
3831 rm -f conftest*
3832
3833 fi
3834
3835 if test $ac_cv_header_stdc = yes; then
3836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 #include <stdlib.h>
3844
3845 _ACEOF
3846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3847 $EGREP "free" >/dev/null 2>&1; then
3848 :
3849 else
3850 ac_cv_header_stdc=no
3851 fi
3852 rm -f conftest*
3853
3854 fi
3855
3856 if test $ac_cv_header_stdc = yes; then
3857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3858 if test "$cross_compiling" = yes; then
3859 :
3860 else
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867 #include <ctype.h>
3868 #if ((' ' & 0x0FF) == 0x020)
3869 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3870 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3871 #else
3872 # define ISLOWER(c) \
3873 (('a' <= (c) && (c) <= 'i') \
3874 || ('j' <= (c) && (c) <= 'r') \
3875 || ('s' <= (c) && (c) <= 'z'))
3876 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3877 #endif
3878
3879 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3880 int
3881 main ()
3882 {
3883 int i;
3884 for (i = 0; i < 256; i++)
3885 if (XOR (islower (i), ISLOWER (i))
3886 || toupper (i) != TOUPPER (i))
3887 exit(2);
3888 exit (0);
3889 }
3890 _ACEOF
3891 rm -f conftest$ac_exeext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3893 (eval $ac_link) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3902 :
3903 else
3904 echo "$as_me: program exited with status $ac_status" >&5
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908 ( exit $ac_status )
3909 ac_cv_header_stdc=no
3910 fi
3911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3912 fi
3913 fi
3914 fi
3915 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3916 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3917 if test $ac_cv_header_stdc = yes; then
3918
3919 cat >>confdefs.h <<\_ACEOF
3920 #define STDC_HEADERS 1
3921 _ACEOF
3922
3923 fi
3924
3925 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3936 inttypes.h stdint.h unistd.h
3937 do
3938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3939 echo "$as_me:$LINENO: checking for $ac_header" >&5
3940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 $ac_includes_default
3951
3952 #include <$ac_header>
3953 _ACEOF
3954 rm -f conftest.$ac_objext
3955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3956 (eval $ac_compile) 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } &&
3963 { ac_try='test -z "$ac_c_werror_flag"
3964 || test ! -s conftest.err'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; } &&
3970 { ac_try='test -s conftest.$ac_objext'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
3976 eval "$as_ac_Header=yes"
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 eval "$as_ac_Header=no"
3982 fi
3983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3984 fi
3985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3988 cat >>confdefs.h <<_ACEOF
3989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3990 _ACEOF
3991
3992 fi
3993
3994 done
3995
3996
3997 echo "$as_me:$LINENO: checking for long" >&5
3998 echo $ECHO_N "checking for long... $ECHO_C" >&6
3999 if test "${ac_cv_type_long+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
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 $ac_includes_default
4009 int
4010 main ()
4011 {
4012 if ((long *) 0)
4013 return 0;
4014 if (sizeof (long))
4015 return 0;
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 rm -f conftest.$ac_objext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -z "$ac_c_werror_flag"
4030 || test ! -s conftest.err'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
4042 ac_cv_type_long=yes
4043 else
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047 ac_cv_type_long=no
4048 fi
4049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4050 fi
4051 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4052 echo "${ECHO_T}$ac_cv_type_long" >&6
4053
4054 echo "$as_me:$LINENO: checking size of long" >&5
4055 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4056 if test "${ac_cv_sizeof_long+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 if test "$ac_cv_type_long" = yes; then
4060 # The cast to unsigned long works around a bug in the HP C Compiler
4061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4063 # This bug is HP SR number 8606223364.
4064 if test "$cross_compiling" = yes; then
4065 # Depending upon the size, compute the lo and hi bounds.
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h. */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 $ac_includes_default
4073 int
4074 main ()
4075 {
4076 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4077 test_array [0] = 0
4078
4079 ;
4080 return 0;
4081 }
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag"
4093 || test ! -s conftest.err'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 (eval $ac_try) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_lo=0 ac_mid=0
4106 while :; do
4107 cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h. */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 $ac_includes_default
4114 int
4115 main ()
4116 {
4117 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4118 test_array [0] = 0
4119
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 rm -f conftest.$ac_objext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126 (eval $ac_compile) 2>conftest.er1
4127 ac_status=$?
4128 grep -v '^ *+' conftest.er1 >conftest.err
4129 rm -f conftest.er1
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
4133 { ac_try='test -z "$ac_c_werror_flag"
4134 || test ! -s conftest.err'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 (eval $ac_try) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_hi=$ac_mid; break
4147 else
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151 ac_lo=`expr $ac_mid + 1`
4152 if test $ac_lo -le $ac_mid; then
4153 ac_lo= ac_hi=
4154 break
4155 fi
4156 ac_mid=`expr 2 '*' $ac_mid + 1`
4157 fi
4158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4159 done
4160 else
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4164 cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h. */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4170 $ac_includes_default
4171 int
4172 main ()
4173 {
4174 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4175 test_array [0] = 0
4176
4177 ;
4178 return 0;
4179 }
4180 _ACEOF
4181 rm -f conftest.$ac_objext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>conftest.er1
4184 ac_status=$?
4185 grep -v '^ *+' conftest.er1 >conftest.err
4186 rm -f conftest.er1
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -z "$ac_c_werror_flag"
4191 || test ! -s conftest.err'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; } &&
4197 { ac_try='test -s conftest.$ac_objext'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 (eval $ac_try) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4203 ac_hi=-1 ac_mid=-1
4204 while :; do
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 $ac_includes_default
4212 int
4213 main ()
4214 {
4215 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4216 test_array [0] = 0
4217
4218 ;
4219 return 0;
4220 }
4221 _ACEOF
4222 rm -f conftest.$ac_objext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4224 (eval $ac_compile) 2>conftest.er1
4225 ac_status=$?
4226 grep -v '^ *+' conftest.er1 >conftest.err
4227 rm -f conftest.er1
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } &&
4231 { ac_try='test -z "$ac_c_werror_flag"
4232 || test ! -s conftest.err'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_lo=$ac_mid; break
4245 else
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 ac_hi=`expr '(' $ac_mid ')' - 1`
4250 if test $ac_mid -le $ac_hi; then
4251 ac_lo= ac_hi=
4252 break
4253 fi
4254 ac_mid=`expr 2 '*' $ac_mid`
4255 fi
4256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4257 done
4258 else
4259 echo "$as_me: failed program was:" >&5
4260 sed 's/^/| /' conftest.$ac_ext >&5
4261
4262 ac_lo= ac_hi=
4263 fi
4264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4265 fi
4266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4267 # Binary search between lo and hi bounds.
4268 while test "x$ac_lo" != "x$ac_hi"; do
4269 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 $ac_includes_default
4277 int
4278 main ()
4279 {
4280 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4281 test_array [0] = 0
4282
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 rm -f conftest.$ac_objext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest.$ac_objext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 (eval $ac_try) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 ac_hi=$ac_mid
4310 else
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 ac_lo=`expr '(' $ac_mid ')' + 1`
4315 fi
4316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4317 done
4318 case $ac_lo in
4319 ?*) ac_cv_sizeof_long=$ac_lo;;
4320 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4321 See \`config.log' for more details." >&5
4322 echo "$as_me: error: cannot compute sizeof (long), 77
4323 See \`config.log' for more details." >&2;}
4324 { (exit 1); exit 1; }; } ;;
4325 esac
4326 else
4327 if test "$cross_compiling" = yes; then
4328 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4329 See \`config.log' for more details." >&5
4330 echo "$as_me: error: cannot run test program while cross compiling
4331 See \`config.log' for more details." >&2;}
4332 { (exit 1); exit 1; }; }
4333 else
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 $ac_includes_default
4341 long longval () { return (long) (sizeof (long)); }
4342 unsigned long ulongval () { return (long) (sizeof (long)); }
4343 #include <stdio.h>
4344 #include <stdlib.h>
4345 int
4346 main ()
4347 {
4348
4349 FILE *f = fopen ("conftest.val", "w");
4350 if (! f)
4351 exit (1);
4352 if (((long) (sizeof (long))) < 0)
4353 {
4354 long i = longval ();
4355 if (i != ((long) (sizeof (long))))
4356 exit (1);
4357 fprintf (f, "%ld\n", i);
4358 }
4359 else
4360 {
4361 unsigned long i = ulongval ();
4362 if (i != ((long) (sizeof (long))))
4363 exit (1);
4364 fprintf (f, "%lu\n", i);
4365 }
4366 exit (ferror (f) || fclose (f) != 0);
4367
4368 ;
4369 return 0;
4370 }
4371 _ACEOF
4372 rm -f conftest$ac_exeext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374 (eval $ac_link) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 (eval $ac_try) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_sizeof_long=`cat conftest.val`
4384 else
4385 echo "$as_me: program exited with status $ac_status" >&5
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389 ( exit $ac_status )
4390 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4391 See \`config.log' for more details." >&5
4392 echo "$as_me: error: cannot compute sizeof (long), 77
4393 See \`config.log' for more details." >&2;}
4394 { (exit 1); exit 1; }; }
4395 fi
4396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4397 fi
4398 fi
4399 rm -f conftest.val
4400 else
4401 ac_cv_sizeof_long=0
4402 fi
4403 fi
4404 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4405 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4406 cat >>confdefs.h <<_ACEOF
4407 #define SIZEOF_LONG $ac_cv_sizeof_long
4408 _ACEOF
4409
4410
4411 if test "x${ac_cv_sizeof_long}" = "x8"; then
4412 want64=true
4413 fi
4414 fi
4415 if test x${want64} = xtrue; then
4416 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
4417 else
4418 TARGET_OBS='$(ALL_TARGET_OBS)'
4419 fi
4420 fi
4421
4422
4423
4424 # For other settings, only the main target counts.
4425 gdb_sim=
4426 gdb_osabi=
4427 build_gdbserver=
4428 targ=$target; . ${srcdir}/configure.tgt
4429
4430 # Fetch the default architecture and default target vector from BFD.
4431 targ=$target; . $srcdir/../bfd/config.bfd
4432
4433 # We only want the first architecture, so strip off the others if
4434 # there is more than one.
4435 targ_archs=`echo $targ_archs | sed 's/ .*//'`
4436
4437 if test "x$targ_archs" != x; then
4438
4439 cat >>confdefs.h <<_ACEOF
4440 #define DEFAULT_BFD_ARCH $targ_archs
4441 _ACEOF
4442
4443 fi
4444 if test "x$targ_defvec" != x; then
4445
4446 cat >>confdefs.h <<_ACEOF
4447 #define DEFAULT_BFD_VEC $targ_defvec
4448 _ACEOF
4449
4450 fi
4451
4452 # The CLI cannot be disabled yet, but may be in the future.
4453
4454 # Enable CLI.
4455 # Check whether --enable-gdbcli or --disable-gdbcli was given.
4456 if test "${enable_gdbcli+set}" = set; then
4457 enableval="$enable_gdbcli"
4458 case $enableval in
4459 yes)
4460 ;;
4461 no)
4462 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
4463 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
4464 { (exit 1); exit 1; }; } ;;
4465 *)
4466 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
4467 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
4468 { (exit 1); exit 1; }; } ;;
4469 esac
4470 else
4471 enable_gdbcli=yes
4472 fi;
4473 if test x"$enable_gdbcli" = xyes; then
4474 if test -d $srcdir/cli; then
4475 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
4476 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
4477 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
4478 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
4479 fi
4480 fi
4481
4482 # Enable MI.
4483 # Check whether --enable-gdbmi or --disable-gdbmi was given.
4484 if test "${enable_gdbmi+set}" = set; then
4485 enableval="$enable_gdbmi"
4486 case $enableval in
4487 yes | no)
4488 ;;
4489 *)
4490 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
4491 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
4492 { (exit 1); exit 1; }; } ;;
4493 esac
4494 else
4495 enable_gdbmi=yes
4496 fi;
4497 if test x"$enable_gdbmi" = xyes; then
4498 if test -d $srcdir/mi; then
4499 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
4500 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
4501 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
4502 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
4503 fi
4504 fi
4505
4506 # Enable TUI.
4507 # Check whether --enable-tui or --disable-tui was given.
4508 if test "${enable_tui+set}" = set; then
4509 enableval="$enable_tui"
4510 case $enableval in
4511 yes | no)
4512 ;;
4513 *)
4514 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
4515 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
4516 { (exit 1); exit 1; }; } ;;
4517 esac
4518 else
4519 enable_tui=yes
4520 fi;
4521
4522 # Enable gdbtk.
4523 # Check whether --enable-gdbtk or --disable-gdbtk was given.
4524 if test "${enable_gdbtk+set}" = set; then
4525 enableval="$enable_gdbtk"
4526 case $enableval in
4527 yes | no)
4528 ;;
4529 *)
4530 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
4531 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
4532 { (exit 1); exit 1; }; } ;;
4533 esac
4534 else
4535 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
4536 enable_gdbtk=yes
4537 else
4538 enable_gdbtk=no
4539 fi
4540 fi;
4541 # We unconditionally disable gdbtk tests on selected platforms.
4542 case $host_os in
4543 go32* | windows*)
4544 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
4545 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
4546 enable_gdbtk=no ;;
4547 esac
4548
4549 # Libunwind support.
4550
4551 # Check whether --with-libunwind or --without-libunwind was given.
4552 if test "${with_libunwind+set}" = set; then
4553 withval="$with_libunwind"
4554 case "${withval}" in
4555 yes) enable_libunwind=yes ;;
4556 no) enable_libunwind=no ;;
4557 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
4558 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
4559 { (exit 1); exit 1; }; } ;;
4560 esac
4561 else
4562
4563
4564 for ac_header in libunwind.h
4565 do
4566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4568 echo "$as_me:$LINENO: checking for $ac_header" >&5
4569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 fi
4573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4575 else
4576 # Is the header compilable?
4577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4579 cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h. */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 $ac_includes_default
4586 #include <$ac_header>
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>conftest.er1
4591 ac_status=$?
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -z "$ac_c_werror_flag"
4598 || test ! -s conftest.err'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try='test -s conftest.$ac_objext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_header_compiler=yes
4611 else
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615 ac_header_compiler=no
4616 fi
4617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4619 echo "${ECHO_T}$ac_header_compiler" >&6
4620
4621 # Is the header present?
4622 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 #include <$ac_header>
4631 _ACEOF
4632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4634 ac_status=$?
4635 grep -v '^ *+' conftest.er1 >conftest.err
4636 rm -f conftest.er1
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } >/dev/null; then
4640 if test -s conftest.err; then
4641 ac_cpp_err=$ac_c_preproc_warn_flag
4642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4643 else
4644 ac_cpp_err=
4645 fi
4646 else
4647 ac_cpp_err=yes
4648 fi
4649 if test -z "$ac_cpp_err"; then
4650 ac_header_preproc=yes
4651 else
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655 ac_header_preproc=no
4656 fi
4657 rm -f conftest.err conftest.$ac_ext
4658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4659 echo "${ECHO_T}$ac_header_preproc" >&6
4660
4661 # So? What about this header?
4662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4663 yes:no: )
4664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4668 ac_header_preproc=yes
4669 ;;
4670 no:yes:* )
4671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4683 (
4684 cat <<\_ASBOX
4685 ## ------------------------------------------ ##
4686 ## Report this to the AC_PACKAGE_NAME lists. ##
4687 ## ------------------------------------------ ##
4688 _ASBOX
4689 ) |
4690 sed "s/^/$as_me: WARNING: /" >&2
4691 ;;
4692 esac
4693 echo "$as_me:$LINENO: checking for $ac_header" >&5
4694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698 eval "$as_ac_Header=\$ac_header_preproc"
4699 fi
4700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4702
4703 fi
4704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4705 cat >>confdefs.h <<_ACEOF
4706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4707 _ACEOF
4708
4709 fi
4710
4711 done
4712
4713
4714 for ac_header in libunwind-ia64.h
4715 do
4716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4718 echo "$as_me:$LINENO: checking for $ac_header" >&5
4719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 fi
4723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4725 else
4726 # Is the header compilable?
4727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4729 cat >conftest.$ac_ext <<_ACEOF
4730 /* confdefs.h. */
4731 _ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4735 $ac_includes_default
4736 #include <$ac_header>
4737 _ACEOF
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try='test -z "$ac_c_werror_flag"
4748 || test ! -s conftest.err'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 (eval $ac_try) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_header_compiler=yes
4761 else
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 ac_header_compiler=no
4766 fi
4767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4769 echo "${ECHO_T}$ac_header_compiler" >&6
4770
4771 # Is the header present?
4772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4774 cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h. */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 #include <$ac_header>
4781 _ACEOF
4782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } >/dev/null; then
4790 if test -s conftest.err; then
4791 ac_cpp_err=$ac_c_preproc_warn_flag
4792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4793 else
4794 ac_cpp_err=
4795 fi
4796 else
4797 ac_cpp_err=yes
4798 fi
4799 if test -z "$ac_cpp_err"; then
4800 ac_header_preproc=yes
4801 else
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4804
4805 ac_header_preproc=no
4806 fi
4807 rm -f conftest.err conftest.$ac_ext
4808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4809 echo "${ECHO_T}$ac_header_preproc" >&6
4810
4811 # So? What about this header?
4812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4813 yes:no: )
4814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4818 ac_header_preproc=yes
4819 ;;
4820 no:yes:* )
4821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4833 (
4834 cat <<\_ASBOX
4835 ## ------------------------------------------ ##
4836 ## Report this to the AC_PACKAGE_NAME lists. ##
4837 ## ------------------------------------------ ##
4838 _ASBOX
4839 ) |
4840 sed "s/^/$as_me: WARNING: /" >&2
4841 ;;
4842 esac
4843 echo "$as_me:$LINENO: checking for $ac_header" >&5
4844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848 eval "$as_ac_Header=\$ac_header_preproc"
4849 fi
4850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4852
4853 fi
4854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4855 cat >>confdefs.h <<_ACEOF
4856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4857 _ACEOF
4858
4859 fi
4860
4861 done
4862
4863 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
4864 enable_libunwind=yes;
4865 fi
4866
4867 fi;
4868
4869 if test x"$enable_libunwind" = xyes; then
4870
4871 for ac_header in libunwind.h
4872 do
4873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4875 echo "$as_me:$LINENO: checking for $ac_header" >&5
4876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 fi
4880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4882 else
4883 # Is the header compilable?
4884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4886 cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h. */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4892 $ac_includes_default
4893 #include <$ac_header>
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -z "$ac_c_werror_flag"
4905 || test ! -s conftest.err'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 (eval $ac_try) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; } &&
4911 { ac_try='test -s conftest.$ac_objext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_header_compiler=yes
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 ac_header_compiler=no
4923 fi
4924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4926 echo "${ECHO_T}$ac_header_compiler" >&6
4927
4928 # Is the header present?
4929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h. */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 #include <$ac_header>
4938 _ACEOF
4939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } >/dev/null; then
4947 if test -s conftest.err; then
4948 ac_cpp_err=$ac_c_preproc_warn_flag
4949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4950 else
4951 ac_cpp_err=
4952 fi
4953 else
4954 ac_cpp_err=yes
4955 fi
4956 if test -z "$ac_cpp_err"; then
4957 ac_header_preproc=yes
4958 else
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962 ac_header_preproc=no
4963 fi
4964 rm -f conftest.err conftest.$ac_ext
4965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4966 echo "${ECHO_T}$ac_header_preproc" >&6
4967
4968 # So? What about this header?
4969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4970 yes:no: )
4971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4975 ac_header_preproc=yes
4976 ;;
4977 no:yes:* )
4978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4990 (
4991 cat <<\_ASBOX
4992 ## ------------------------------------------ ##
4993 ## Report this to the AC_PACKAGE_NAME lists. ##
4994 ## ------------------------------------------ ##
4995 _ASBOX
4996 ) |
4997 sed "s/^/$as_me: WARNING: /" >&2
4998 ;;
4999 esac
5000 echo "$as_me:$LINENO: checking for $ac_header" >&5
5001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 eval "$as_ac_Header=\$ac_header_preproc"
5006 fi
5007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5009
5010 fi
5011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5012 cat >>confdefs.h <<_ACEOF
5013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5014 _ACEOF
5015
5016 fi
5017
5018 done
5019
5020
5021 for ac_header in libunwind-ia64.h
5022 do
5023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5025 echo "$as_me:$LINENO: checking for $ac_header" >&5
5026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 fi
5030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5032 else
5033 # Is the header compilable?
5034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 $ac_includes_default
5043 #include <$ac_header>
5044 _ACEOF
5045 rm -f conftest.$ac_objext
5046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5047 (eval $ac_compile) 2>conftest.er1
5048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } &&
5054 { ac_try='test -z "$ac_c_werror_flag"
5055 || test ! -s conftest.err'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 (eval $ac_try) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; } &&
5061 { ac_try='test -s conftest.$ac_objext'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 (eval $ac_try) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 ac_header_compiler=yes
5068 else
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 ac_header_compiler=no
5073 fi
5074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5076 echo "${ECHO_T}$ac_header_compiler" >&6
5077
5078 # Is the header present?
5079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5081 cat >conftest.$ac_ext <<_ACEOF
5082 /* confdefs.h. */
5083 _ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5087 #include <$ac_header>
5088 _ACEOF
5089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } >/dev/null; then
5097 if test -s conftest.err; then
5098 ac_cpp_err=$ac_c_preproc_warn_flag
5099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5100 else
5101 ac_cpp_err=
5102 fi
5103 else
5104 ac_cpp_err=yes
5105 fi
5106 if test -z "$ac_cpp_err"; then
5107 ac_header_preproc=yes
5108 else
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 ac_header_preproc=no
5113 fi
5114 rm -f conftest.err conftest.$ac_ext
5115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5116 echo "${ECHO_T}$ac_header_preproc" >&6
5117
5118 # So? What about this header?
5119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5120 yes:no: )
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5125 ac_header_preproc=yes
5126 ;;
5127 no:yes:* )
5128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5140 (
5141 cat <<\_ASBOX
5142 ## ------------------------------------------ ##
5143 ## Report this to the AC_PACKAGE_NAME lists. ##
5144 ## ------------------------------------------ ##
5145 _ASBOX
5146 ) |
5147 sed "s/^/$as_me: WARNING: /" >&2
5148 ;;
5149 esac
5150 echo "$as_me:$LINENO: checking for $ac_header" >&5
5151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 eval "$as_ac_Header=\$ac_header_preproc"
5156 fi
5157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5159
5160 fi
5161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5162 cat >>confdefs.h <<_ACEOF
5163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5164 _ACEOF
5165
5166 fi
5167
5168 done
5169
5170
5171 cat >>confdefs.h <<\_ACEOF
5172 #define HAVE_LIBUNWIND 1
5173 _ACEOF
5174
5175 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
5176 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
5177 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
5178 fi
5179
5180 # Profiling support.
5181 # Check whether --enable-profiling or --disable-profiling was given.
5182 if test "${enable_profiling+set}" = set; then
5183 enableval="$enable_profiling"
5184 case $enableval in
5185 yes | no)
5186 ;;
5187 *)
5188 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
5189 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
5190 { (exit 1); exit 1; }; } ;;
5191 esac
5192 else
5193 enable_profiling=no
5194 fi;
5195
5196
5197
5198 for ac_func in monstartup _mcleanup
5199 do
5200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5201 echo "$as_me:$LINENO: checking for $ac_func" >&5
5202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5203 if eval "test \"\${$as_ac_var+set}\" = set"; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h. */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5214 #define $ac_func innocuous_$ac_func
5215
5216 /* System header to define __stub macros and hopefully few prototypes,
5217 which can conflict with char $ac_func (); below.
5218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5219 <limits.h> exists even on freestanding compilers. */
5220
5221 #ifdef __STDC__
5222 # include <limits.h>
5223 #else
5224 # include <assert.h>
5225 #endif
5226
5227 #undef $ac_func
5228
5229 /* Override any gcc2 internal prototype to avoid an error. */
5230 #ifdef __cplusplus
5231 extern "C"
5232 {
5233 #endif
5234 /* We use char because int might match the return type of a gcc2
5235 builtin and then its argument prototype would still apply. */
5236 char $ac_func ();
5237 /* The GNU C library defines this for functions which it implements
5238 to always fail with ENOSYS. Some functions are actually named
5239 something starting with __ and the normal name is an alias. */
5240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5241 choke me
5242 #else
5243 char (*f) () = $ac_func;
5244 #endif
5245 #ifdef __cplusplus
5246 }
5247 #endif
5248
5249 int
5250 main ()
5251 {
5252 return f != $ac_func;
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 rm -f conftest.$ac_objext conftest$ac_exeext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5259 (eval $ac_link) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest$ac_exeext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 eval "$as_ac_var=yes"
5280 else
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284 eval "$as_ac_var=no"
5285 fi
5286 rm -f conftest.err conftest.$ac_objext \
5287 conftest$ac_exeext conftest.$ac_ext
5288 fi
5289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5291 if test `eval echo '${'$as_ac_var'}'` = yes; then
5292 cat >>confdefs.h <<_ACEOF
5293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5294 _ACEOF
5295
5296 fi
5297 done
5298
5299 echo "$as_me:$LINENO: checking for _etext" >&5
5300 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
5301 if test "${ac_cv_var__etext+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h. */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 #include <stdlib.h>
5311 extern char _etext;
5312
5313 int
5314 main ()
5315 {
5316 free (&_etext);
5317 ;
5318 return 0;
5319 }
5320 _ACEOF
5321 rm -f conftest.$ac_objext conftest$ac_exeext
5322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5323 (eval $ac_link) 2>conftest.er1
5324 ac_status=$?
5325 grep -v '^ *+' conftest.er1 >conftest.err
5326 rm -f conftest.er1
5327 cat conftest.err >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } &&
5330 { ac_try='test -z "$ac_c_werror_flag"
5331 || test ! -s conftest.err'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; } &&
5337 { ac_try='test -s conftest$ac_exeext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 ac_cv_var__etext=yes
5344 else
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5347
5348 ac_cv_var__etext=no
5349 fi
5350 rm -f conftest.err conftest.$ac_objext \
5351 conftest$ac_exeext conftest.$ac_ext
5352 fi
5353 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
5354 echo "${ECHO_T}$ac_cv_var__etext" >&6
5355 if test $ac_cv_var__etext = yes; then
5356
5357 cat >>confdefs.h <<\_ACEOF
5358 #define HAVE__ETEXT 1
5359 _ACEOF
5360
5361 fi
5362 echo "$as_me:$LINENO: checking for etext" >&5
5363 echo $ECHO_N "checking for etext... $ECHO_C" >&6
5364 if test "${ac_cv_var_etext+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h. */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 #include <stdlib.h>
5374 extern char etext;
5375
5376 int
5377 main ()
5378 {
5379 free (&etext);
5380 ;
5381 return 0;
5382 }
5383 _ACEOF
5384 rm -f conftest.$ac_objext conftest$ac_exeext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5386 (eval $ac_link) 2>conftest.er1
5387 ac_status=$?
5388 grep -v '^ *+' conftest.er1 >conftest.err
5389 rm -f conftest.er1
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -z "$ac_c_werror_flag"
5394 || test ! -s conftest.err'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 (eval $ac_try) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; } &&
5400 { ac_try='test -s conftest$ac_exeext'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 (eval $ac_try) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 ac_cv_var_etext=yes
5407 else
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 ac_cv_var_etext=no
5412 fi
5413 rm -f conftest.err conftest.$ac_objext \
5414 conftest$ac_exeext conftest.$ac_ext
5415 fi
5416 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
5417 echo "${ECHO_T}$ac_cv_var_etext" >&6
5418 if test $ac_cv_var_etext = yes; then
5419
5420 cat >>confdefs.h <<\_ACEOF
5421 #define HAVE_ETEXT 1
5422 _ACEOF
5423
5424 fi
5425 if test "$enable_profiling" = yes ; then
5426 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5427 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
5428 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
5429 { (exit 1); exit 1; }; }
5430 fi
5431 PROFILE_CFLAGS=-pg
5432 OLD_CFLAGS="$CFLAGS"
5433 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5434
5435 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
5436 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
5437 if test "${ac_cv_cc_supports_pg+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 else
5440 cat >conftest.$ac_ext <<_ACEOF
5441 /* confdefs.h. */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446
5447 int
5448 main ()
5449 {
5450 int x;
5451 ;
5452 return 0;
5453 }
5454 _ACEOF
5455 rm -f conftest.$ac_objext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457 (eval $ac_compile) 2>conftest.er1
5458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -z "$ac_c_werror_flag"
5465 || test ! -s conftest.err'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; } &&
5471 { ac_try='test -s conftest.$ac_objext'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 (eval $ac_try) 2>&5
5474 ac_status=$?
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 ac_cv_cc_supports_pg=yes
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482 ac_cv_cc_supports_pg=no
5483 fi
5484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5485 fi
5486 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
5487 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
5488
5489 if test $ac_cv_cc_supports_pg = no; then
5490 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
5491 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
5492 { (exit 1); exit 1; }; }
5493 fi
5494
5495 CFLAGS="$OLD_CFLAGS"
5496 fi
5497
5498 # --------------------- #
5499 # Checks for programs. #
5500 # --------------------- #
5501
5502 for ac_prog in gawk mawk nawk awk
5503 do
5504 # Extract the first word of "$ac_prog", so it can be a program name with args.
5505 set dummy $ac_prog; ac_word=$2
5506 echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5508 if test "${ac_cv_prog_AWK+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 if test -n "$AWK"; then
5512 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_AWK="$ac_prog"
5522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525 done
5526 done
5527
5528 fi
5529 fi
5530 AWK=$ac_cv_prog_AWK
5531 if test -n "$AWK"; then
5532 echo "$as_me:$LINENO: result: $AWK" >&5
5533 echo "${ECHO_T}$AWK" >&6
5534 else
5535 echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5537 fi
5538
5539 test -n "$AWK" && break
5540 done
5541
5542 # Find a good install program. We prefer a C program (faster),
5543 # so one script is as good as another. But avoid the broken or
5544 # incompatible versions:
5545 # SysV /etc/install, /usr/sbin/install
5546 # SunOS /usr/etc/install
5547 # IRIX /sbin/install
5548 # AIX /bin/install
5549 # AmigaOS /C/install, which installs bootblocks on floppy discs
5550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5553 # OS/2's system install, which has a completely different semantic
5554 # ./install, which can be erroneously created by make from ./install.sh.
5555 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5556 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5557 if test -z "$INSTALL"; then
5558 if test "${ac_cv_path_install+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5563 do
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 # Account for people who put trailing slashes in PATH elements.
5567 case $as_dir/ in
5568 ./ | .// | /cC/* | \
5569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5570 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5571 /usr/ucb/* ) ;;
5572 *)
5573 # OSF1 and SCO ODT 3.0 have their own names for install.
5574 # Don't use installbsd from OSF since it installs stuff as root
5575 # by default.
5576 for ac_prog in ginstall scoinst install; do
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5579 if test $ac_prog = install &&
5580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5581 # AIX install. It has an incompatible calling convention.
5582 :
5583 elif test $ac_prog = install &&
5584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5585 # program-specific install script used by HP pwplus--don't use.
5586 :
5587 else
5588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5589 break 3
5590 fi
5591 fi
5592 done
5593 done
5594 ;;
5595 esac
5596 done
5597
5598
5599 fi
5600 if test "${ac_cv_path_install+set}" = set; then
5601 INSTALL=$ac_cv_path_install
5602 else
5603 # As a last resort, use the slow shell script. We don't cache a
5604 # path for INSTALL within a source directory, because that will
5605 # break other packages using the cache if that directory is
5606 # removed, or if the path is relative.
5607 INSTALL=$ac_install_sh
5608 fi
5609 fi
5610 echo "$as_me:$LINENO: result: $INSTALL" >&5
5611 echo "${ECHO_T}$INSTALL" >&6
5612
5613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5614 # It thinks the first close brace ends the variable substitution.
5615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5616
5617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5618
5619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5620
5621 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5622 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5623 LN_S=$as_ln_s
5624 if test "$LN_S" = "ln -s"; then
5625 echo "$as_me:$LINENO: result: yes" >&5
5626 echo "${ECHO_T}yes" >&6
5627 else
5628 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5629 echo "${ECHO_T}no, using $LN_S" >&6
5630 fi
5631
5632 if test -n "$ac_tool_prefix"; then
5633 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5634 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5635 echo "$as_me:$LINENO: checking for $ac_word" >&5
5636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5637 if test "${ac_cv_prog_RANLIB+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640 if test -n "$RANLIB"; then
5641 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656
5657 fi
5658 fi
5659 RANLIB=$ac_cv_prog_RANLIB
5660 if test -n "$RANLIB"; then
5661 echo "$as_me:$LINENO: result: $RANLIB" >&5
5662 echo "${ECHO_T}$RANLIB" >&6
5663 else
5664 echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6
5666 fi
5667
5668 fi
5669 if test -z "$ac_cv_prog_RANLIB"; then
5670 ac_ct_RANLIB=$RANLIB
5671 # Extract the first word of "ranlib", so it can be a program name with args.
5672 set dummy ranlib; ac_word=$2
5673 echo "$as_me:$LINENO: checking for $ac_word" >&5
5674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5675 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678 if test -n "$ac_ct_RANLIB"; then
5679 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_prog_ac_ct_RANLIB="ranlib"
5689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692 done
5693 done
5694
5695 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5696 fi
5697 fi
5698 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5699 if test -n "$ac_ct_RANLIB"; then
5700 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5701 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5702 else
5703 echo "$as_me:$LINENO: result: no" >&5
5704 echo "${ECHO_T}no" >&6
5705 fi
5706
5707 RANLIB=$ac_ct_RANLIB
5708 else
5709 RANLIB="$ac_cv_prog_RANLIB"
5710 fi
5711
5712 for ac_prog in 'bison -y' byacc
5713 do
5714 # Extract the first word of "$ac_prog", so it can be a program name with args.
5715 set dummy $ac_prog; ac_word=$2
5716 echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718 if test "${ac_cv_prog_YACC+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721 if test -n "$YACC"; then
5722 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_YACC="$ac_prog"
5732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5734 fi
5735 done
5736 done
5737
5738 fi
5739 fi
5740 YACC=$ac_cv_prog_YACC
5741 if test -n "$YACC"; then
5742 echo "$as_me:$LINENO: result: $YACC" >&5
5743 echo "${ECHO_T}$YACC" >&6
5744 else
5745 echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5747 fi
5748
5749 test -n "$YACC" && break
5750 done
5751 test -n "$YACC" || YACC="yacc"
5752
5753
5754 if test -n "$ac_tool_prefix"; then
5755 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5756 set dummy ${ac_tool_prefix}ar; ac_word=$2
5757 echo "$as_me:$LINENO: checking for $ac_word" >&5
5758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5759 if test "${ac_cv_prog_AR+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 if test -n "$AR"; then
5763 ac_cv_prog_AR="$AR" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_AR="${ac_tool_prefix}ar"
5773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776 done
5777 done
5778
5779 fi
5780 fi
5781 AR=$ac_cv_prog_AR
5782 if test -n "$AR"; then
5783 echo "$as_me:$LINENO: result: $AR" >&5
5784 echo "${ECHO_T}$AR" >&6
5785 else
5786 echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6
5788 fi
5789
5790 fi
5791 if test -z "$ac_cv_prog_AR"; then
5792 ac_ct_AR=$AR
5793 # Extract the first word of "ar", so it can be a program name with args.
5794 set dummy ar; ac_word=$2
5795 echo "$as_me:$LINENO: checking for $ac_word" >&5
5796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5797 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800 if test -n "$ac_ct_AR"; then
5801 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810 ac_cv_prog_ac_ct_AR="ar"
5811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814 done
5815 done
5816
5817 fi
5818 fi
5819 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5820 if test -n "$ac_ct_AR"; then
5821 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5822 echo "${ECHO_T}$ac_ct_AR" >&6
5823 else
5824 echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5826 fi
5827
5828 AR=$ac_ct_AR
5829 else
5830 AR="$ac_cv_prog_AR"
5831 fi
5832
5833 if test -n "$ac_tool_prefix"; then
5834 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5835 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5836 echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841 if test -n "$DLLTOOL"; then
5842 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855 done
5856 done
5857
5858 fi
5859 fi
5860 DLLTOOL=$ac_cv_prog_DLLTOOL
5861 if test -n "$DLLTOOL"; then
5862 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5863 echo "${ECHO_T}$DLLTOOL" >&6
5864 else
5865 echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6
5867 fi
5868
5869 fi
5870 if test -z "$ac_cv_prog_DLLTOOL"; then
5871 ac_ct_DLLTOOL=$DLLTOOL
5872 # Extract the first word of "dlltool", so it can be a program name with args.
5873 set dummy dlltool; ac_word=$2
5874 echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879 if test -n "$ac_ct_DLLTOOL"; then
5880 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893 done
5894 done
5895
5896 fi
5897 fi
5898 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5899 if test -n "$ac_ct_DLLTOOL"; then
5900 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5901 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5902 else
5903 echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5905 fi
5906
5907 DLLTOOL=$ac_ct_DLLTOOL
5908 else
5909 DLLTOOL="$ac_cv_prog_DLLTOOL"
5910 fi
5911
5912 if test -n "$ac_tool_prefix"; then
5913 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5914 set dummy ${ac_tool_prefix}windres; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_prog_WINDRES+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920 if test -n "$WINDRES"; then
5921 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934 done
5935 done
5936
5937 fi
5938 fi
5939 WINDRES=$ac_cv_prog_WINDRES
5940 if test -n "$WINDRES"; then
5941 echo "$as_me:$LINENO: result: $WINDRES" >&5
5942 echo "${ECHO_T}$WINDRES" >&6
5943 else
5944 echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946 fi
5947
5948 fi
5949 if test -z "$ac_cv_prog_WINDRES"; then
5950 ac_ct_WINDRES=$WINDRES
5951 # Extract the first word of "windres", so it can be a program name with args.
5952 set dummy windres; ac_word=$2
5953 echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5955 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958 if test -n "$ac_ct_WINDRES"; then
5959 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968 ac_cv_prog_ac_ct_WINDRES="windres"
5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5971 fi
5972 done
5973 done
5974
5975 fi
5976 fi
5977 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5978 if test -n "$ac_ct_WINDRES"; then
5979 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5980 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5981 else
5982 echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6
5984 fi
5985
5986 WINDRES=$ac_ct_WINDRES
5987 else
5988 WINDRES="$ac_cv_prog_WINDRES"
5989 fi
5990
5991
5992 # Needed for GNU/Hurd.
5993 if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
5995 set dummy ${ac_tool_prefix}mig; ac_word=$2
5996 echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5998 if test "${ac_cv_prog_MIG+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001 if test -n "$MIG"; then
6002 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015 done
6016 done
6017
6018 fi
6019 fi
6020 MIG=$ac_cv_prog_MIG
6021 if test -n "$MIG"; then
6022 echo "$as_me:$LINENO: result: $MIG" >&5
6023 echo "${ECHO_T}$MIG" >&6
6024 else
6025 echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6
6027 fi
6028
6029 fi
6030 if test -z "$ac_cv_prog_MIG"; then
6031 ac_ct_MIG=$MIG
6032 # Extract the first word of "mig", so it can be a program name with args.
6033 set dummy mig; ac_word=$2
6034 echo "$as_me:$LINENO: checking for $ac_word" >&5
6035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6036 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039 if test -n "$ac_ct_MIG"; then
6040 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_ac_ct_MIG="mig"
6050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053 done
6054 done
6055
6056 fi
6057 fi
6058 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6059 if test -n "$ac_ct_MIG"; then
6060 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
6061 echo "${ECHO_T}$ac_ct_MIG" >&6
6062 else
6063 echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6
6065 fi
6066
6067 MIG=$ac_ct_MIG
6068 else
6069 MIG="$ac_cv_prog_MIG"
6070 fi
6071
6072
6073 # ---------------------- #
6074 # Checks for libraries. #
6075 # ---------------------- #
6076
6077 # We might need to link with -lm; most simulators need it.
6078
6079 echo "$as_me:$LINENO: checking for main in -lm" >&5
6080 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
6081 if test "${ac_cv_lib_m_main+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084 ac_check_lib_save_LIBS=$LIBS
6085 LIBS="-lm $LIBS"
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
6093
6094 int
6095 main ()
6096 {
6097 main ();
6098 ;
6099 return 0;
6100 }
6101 _ACEOF
6102 rm -f conftest.$ac_objext conftest$ac_exeext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
6111 { ac_try='test -z "$ac_c_werror_flag"
6112 || test ! -s conftest.err'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; } &&
6118 { ac_try='test -s conftest$ac_exeext'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 ac_cv_lib_m_main=yes
6125 else
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129 ac_cv_lib_m_main=no
6130 fi
6131 rm -f conftest.err conftest.$ac_objext \
6132 conftest$ac_exeext conftest.$ac_ext
6133 LIBS=$ac_check_lib_save_LIBS
6134 fi
6135 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6136 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
6137 if test $ac_cv_lib_m_main = yes; then
6138 cat >>confdefs.h <<_ACEOF
6139 #define HAVE_LIBM 1
6140 _ACEOF
6141
6142 LIBS="-lm $LIBS"
6143
6144 fi
6145
6146
6147 # We need to link with -lw to get `wctype' on Solaris before Solaris
6148 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6149 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6150 # is known to have this problem). Therefore we avoid libw if we can.
6151 echo "$as_me:$LINENO: checking for wctype" >&5
6152 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
6153 if test "${ac_cv_func_wctype+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156 cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h. */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
6163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6164 #define wctype innocuous_wctype
6165
6166 /* System header to define __stub macros and hopefully few prototypes,
6167 which can conflict with char wctype (); below.
6168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6169 <limits.h> exists even on freestanding compilers. */
6170
6171 #ifdef __STDC__
6172 # include <limits.h>
6173 #else
6174 # include <assert.h>
6175 #endif
6176
6177 #undef wctype
6178
6179 /* Override any gcc2 internal prototype to avoid an error. */
6180 #ifdef __cplusplus
6181 extern "C"
6182 {
6183 #endif
6184 /* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */
6186 char wctype ();
6187 /* The GNU C library defines this for functions which it implements
6188 to always fail with ENOSYS. Some functions are actually named
6189 something starting with __ and the normal name is an alias. */
6190 #if defined (__stub_wctype) || defined (__stub___wctype)
6191 choke me
6192 #else
6193 char (*f) () = wctype;
6194 #endif
6195 #ifdef __cplusplus
6196 }
6197 #endif
6198
6199 int
6200 main ()
6201 {
6202 return f != wctype;
6203 ;
6204 return 0;
6205 }
6206 _ACEOF
6207 rm -f conftest.$ac_objext conftest$ac_exeext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6209 (eval $ac_link) 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -z "$ac_c_werror_flag"
6217 || test ! -s conftest.err'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; } &&
6223 { ac_try='test -s conftest$ac_exeext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 (eval $ac_try) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 ac_cv_func_wctype=yes
6230 else
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 ac_cv_func_wctype=no
6235 fi
6236 rm -f conftest.err conftest.$ac_objext \
6237 conftest$ac_exeext conftest.$ac_ext
6238 fi
6239 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
6240 echo "${ECHO_T}$ac_cv_func_wctype" >&6
6241 if test $ac_cv_func_wctype = yes; then
6242 :
6243 else
6244
6245 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
6246 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
6247 if test "${ac_cv_lib_w_wctype+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250 ac_check_lib_save_LIBS=$LIBS
6251 LIBS="-lw $LIBS"
6252 cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h. */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258
6259 /* Override any gcc2 internal prototype to avoid an error. */
6260 #ifdef __cplusplus
6261 extern "C"
6262 #endif
6263 /* We use char because int might match the return type of a gcc2
6264 builtin and then its argument prototype would still apply. */
6265 char wctype ();
6266 int
6267 main ()
6268 {
6269 wctype ();
6270 ;
6271 return 0;
6272 }
6273 _ACEOF
6274 rm -f conftest.$ac_objext conftest$ac_exeext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6276 (eval $ac_link) 2>conftest.er1
6277 ac_status=$?
6278 grep -v '^ *+' conftest.er1 >conftest.err
6279 rm -f conftest.er1
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try='test -z "$ac_c_werror_flag"
6284 || test ! -s conftest.err'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try='test -s conftest$ac_exeext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_lib_w_wctype=yes
6297 else
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6300
6301 ac_cv_lib_w_wctype=no
6302 fi
6303 rm -f conftest.err conftest.$ac_objext \
6304 conftest$ac_exeext conftest.$ac_ext
6305 LIBS=$ac_check_lib_save_LIBS
6306 fi
6307 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
6308 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
6309 if test $ac_cv_lib_w_wctype = yes; then
6310 cat >>confdefs.h <<_ACEOF
6311 #define HAVE_LIBW 1
6312 _ACEOF
6313
6314 LIBS="-lw $LIBS"
6315
6316 fi
6317
6318 fi
6319
6320
6321 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6322 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6323 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
6324 if test "${ac_cv_search_gethostbyname+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327 ac_func_search_save_LIBS=$LIBS
6328 ac_cv_search_gethostbyname=no
6329 cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h. */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335
6336 /* Override any gcc2 internal prototype to avoid an error. */
6337 #ifdef __cplusplus
6338 extern "C"
6339 #endif
6340 /* We use char because int might match the return type of a gcc2
6341 builtin and then its argument prototype would still apply. */
6342 char gethostbyname ();
6343 int
6344 main ()
6345 {
6346 gethostbyname ();
6347 ;
6348 return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6353 (eval $ac_link) 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try='test -z "$ac_c_werror_flag"
6361 || test ! -s conftest.err'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest$ac_exeext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 (eval $ac_try) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_cv_search_gethostbyname="none required"
6374 else
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6377
6378 fi
6379 rm -f conftest.err conftest.$ac_objext \
6380 conftest$ac_exeext conftest.$ac_ext
6381 if test "$ac_cv_search_gethostbyname" = no; then
6382 for ac_lib in nsl; do
6383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6384 cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h. */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6390
6391 /* Override any gcc2 internal prototype to avoid an error. */
6392 #ifdef __cplusplus
6393 extern "C"
6394 #endif
6395 /* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6397 char gethostbyname ();
6398 int
6399 main ()
6400 {
6401 gethostbyname ();
6402 ;
6403 return 0;
6404 }
6405 _ACEOF
6406 rm -f conftest.$ac_objext conftest$ac_exeext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6408 (eval $ac_link) 2>conftest.er1
6409 ac_status=$?
6410 grep -v '^ *+' conftest.er1 >conftest.err
6411 rm -f conftest.er1
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -z "$ac_c_werror_flag"
6416 || test ! -s conftest.err'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 (eval $ac_try) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; } &&
6422 { ac_try='test -s conftest$ac_exeext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 ac_cv_search_gethostbyname="-l$ac_lib"
6429 break
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 fi
6435 rm -f conftest.err conftest.$ac_objext \
6436 conftest$ac_exeext conftest.$ac_ext
6437 done
6438 fi
6439 LIBS=$ac_func_search_save_LIBS
6440 fi
6441 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6442 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
6443 if test "$ac_cv_search_gethostbyname" != no; then
6444 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
6445
6446 fi
6447
6448
6449 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6450 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
6451 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
6452 if test "${ac_cv_search_socketpair+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455 ac_func_search_save_LIBS=$LIBS
6456 ac_cv_search_socketpair=no
6457 cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h. */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463
6464 /* Override any gcc2 internal prototype to avoid an error. */
6465 #ifdef __cplusplus
6466 extern "C"
6467 #endif
6468 /* We use char because int might match the return type of a gcc2
6469 builtin and then its argument prototype would still apply. */
6470 char socketpair ();
6471 int
6472 main ()
6473 {
6474 socketpair ();
6475 ;
6476 return 0;
6477 }
6478 _ACEOF
6479 rm -f conftest.$ac_objext conftest$ac_exeext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag"
6489 || test ! -s conftest.err'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; } &&
6495 { ac_try='test -s conftest$ac_exeext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 (eval $ac_try) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_cv_search_socketpair="none required"
6502 else
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506 fi
6507 rm -f conftest.err conftest.$ac_objext \
6508 conftest$ac_exeext conftest.$ac_ext
6509 if test "$ac_cv_search_socketpair" = no; then
6510 for ac_lib in socket; do
6511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6512 cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h. */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6518
6519 /* Override any gcc2 internal prototype to avoid an error. */
6520 #ifdef __cplusplus
6521 extern "C"
6522 #endif
6523 /* We use char because int might match the return type of a gcc2
6524 builtin and then its argument prototype would still apply. */
6525 char socketpair ();
6526 int
6527 main ()
6528 {
6529 socketpair ();
6530 ;
6531 return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext conftest$ac_exeext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536 (eval $ac_link) 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try='test -z "$ac_c_werror_flag"
6544 || test ! -s conftest.err'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try='test -s conftest$ac_exeext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 ac_cv_search_socketpair="-l$ac_lib"
6557 break
6558 else
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6561
6562 fi
6563 rm -f conftest.err conftest.$ac_objext \
6564 conftest$ac_exeext conftest.$ac_ext
6565 done
6566 fi
6567 LIBS=$ac_func_search_save_LIBS
6568 fi
6569 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
6570 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
6571 if test "$ac_cv_search_socketpair" != no; then
6572 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
6573
6574 fi
6575
6576
6577 # For the TUI, we need enhanced curses functionality.
6578 #
6579 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6580 # curses library because the latter might not provide all the
6581 # functionality we need. However, this leads to problems on systems
6582 # where the linker searches /usr/local/lib, but the compiler doesn't
6583 # search /usr/local/include, if ncurses is installed in /usr/local. A
6584 # default installation of ncurses on alpha*-dec-osf* will lead to such
6585 # a situation.
6586 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
6587 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
6588 if test "${ac_cv_search_waddstr+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591 ac_func_search_save_LIBS=$LIBS
6592 ac_cv_search_waddstr=no
6593 cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h. */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599
6600 /* Override any gcc2 internal prototype to avoid an error. */
6601 #ifdef __cplusplus
6602 extern "C"
6603 #endif
6604 /* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */
6606 char waddstr ();
6607 int
6608 main ()
6609 {
6610 waddstr ();
6611 ;
6612 return 0;
6613 }
6614 _ACEOF
6615 rm -f conftest.$ac_objext conftest$ac_exeext
6616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6617 (eval $ac_link) 2>conftest.er1
6618 ac_status=$?
6619 grep -v '^ *+' conftest.er1 >conftest.err
6620 rm -f conftest.er1
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } &&
6624 { ac_try='test -z "$ac_c_werror_flag"
6625 || test ! -s conftest.err'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 (eval $ac_try) 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; } &&
6631 { ac_try='test -s conftest$ac_exeext'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 (eval $ac_try) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 ac_cv_search_waddstr="none required"
6638 else
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6641
6642 fi
6643 rm -f conftest.err conftest.$ac_objext \
6644 conftest$ac_exeext conftest.$ac_ext
6645 if test "$ac_cv_search_waddstr" = no; then
6646 for ac_lib in ncurses cursesX curses; do
6647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654
6655 /* Override any gcc2 internal prototype to avoid an error. */
6656 #ifdef __cplusplus
6657 extern "C"
6658 #endif
6659 /* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6661 char waddstr ();
6662 int
6663 main ()
6664 {
6665 waddstr ();
6666 ;
6667 return 0;
6668 }
6669 _ACEOF
6670 rm -f conftest.$ac_objext conftest$ac_exeext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -z "$ac_c_werror_flag"
6680 || test ! -s conftest.err'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 (eval $ac_try) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } &&
6686 { ac_try='test -s conftest$ac_exeext'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 (eval $ac_try) 2>&5
6689 ac_status=$?
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; }; then
6692 ac_cv_search_waddstr="-l$ac_lib"
6693 break
6694 else
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6697
6698 fi
6699 rm -f conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6701 done
6702 fi
6703 LIBS=$ac_func_search_save_LIBS
6704 fi
6705 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
6706 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
6707 if test "$ac_cv_search_waddstr" != no; then
6708 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
6709
6710 fi
6711
6712
6713 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6714 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
6715 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
6716 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719 ac_func_search_save_LIBS=$LIBS
6720 ac_cv_search_dlgetmodinfo=no
6721 cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h. */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727
6728 /* Override any gcc2 internal prototype to avoid an error. */
6729 #ifdef __cplusplus
6730 extern "C"
6731 #endif
6732 /* We use char because int might match the return type of a gcc2
6733 builtin and then its argument prototype would still apply. */
6734 char dlgetmodinfo ();
6735 int
6736 main ()
6737 {
6738 dlgetmodinfo ();
6739 ;
6740 return 0;
6741 }
6742 _ACEOF
6743 rm -f conftest.$ac_objext conftest$ac_exeext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6745 (eval $ac_link) 2>conftest.er1
6746 ac_status=$?
6747 grep -v '^ *+' conftest.er1 >conftest.err
6748 rm -f conftest.er1
6749 cat conftest.err >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } &&
6752 { ac_try='test -z "$ac_c_werror_flag"
6753 || test ! -s conftest.err'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 (eval $ac_try) 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; } &&
6759 { ac_try='test -s conftest$ac_exeext'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 ac_cv_search_dlgetmodinfo="none required"
6766 else
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6769
6770 fi
6771 rm -f conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
6773 if test "$ac_cv_search_dlgetmodinfo" = no; then
6774 for ac_lib in dl xpdl; do
6775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6776 cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h. */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782
6783 /* Override any gcc2 internal prototype to avoid an error. */
6784 #ifdef __cplusplus
6785 extern "C"
6786 #endif
6787 /* We use char because int might match the return type of a gcc2
6788 builtin and then its argument prototype would still apply. */
6789 char dlgetmodinfo ();
6790 int
6791 main ()
6792 {
6793 dlgetmodinfo ();
6794 ;
6795 return 0;
6796 }
6797 _ACEOF
6798 rm -f conftest.$ac_objext conftest$ac_exeext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6800 (eval $ac_link) 2>conftest.er1
6801 ac_status=$?
6802 grep -v '^ *+' conftest.er1 >conftest.err
6803 rm -f conftest.er1
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try='test -z "$ac_c_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try='test -s conftest$ac_exeext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 ac_cv_search_dlgetmodinfo="-l$ac_lib"
6821 break
6822 else
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826 fi
6827 rm -f conftest.err conftest.$ac_objext \
6828 conftest$ac_exeext conftest.$ac_ext
6829 done
6830 fi
6831 LIBS=$ac_func_search_save_LIBS
6832 fi
6833 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
6834 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
6835 if test "$ac_cv_search_dlgetmodinfo" != no; then
6836 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
6837
6838 fi
6839
6840
6841 # Since GDB uses Readline, we need termcap functionality. In many
6842 # cases this will be provided by the curses library, but some systems
6843 # have a seperate termcap library, or no curses library at all.
6844
6845 case $host_os in
6846 cygwin*)
6847 if test -d $srcdir/libtermcap; then
6848 LIBS="../libtermcap/libtermcap.a $LIBS"
6849 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
6850 fi ;;
6851 go32* | *djgpp*)
6852 ac_cv_search_tgetent="none required"
6853 ;;
6854 *mingw32*)
6855 ac_cv_search_tgetent="none required"
6856 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
6857 ;;
6858 esac
6859
6860 # These are the libraries checked by Readline.
6861 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
6862 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
6863 if test "${ac_cv_search_tgetent+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 ac_func_search_save_LIBS=$LIBS
6867 ac_cv_search_tgetent=no
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874
6875 /* Override any gcc2 internal prototype to avoid an error. */
6876 #ifdef __cplusplus
6877 extern "C"
6878 #endif
6879 /* We use char because int might match the return type of a gcc2
6880 builtin and then its argument prototype would still apply. */
6881 char tgetent ();
6882 int
6883 main ()
6884 {
6885 tgetent ();
6886 ;
6887 return 0;
6888 }
6889 _ACEOF
6890 rm -f conftest.$ac_objext conftest$ac_exeext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6892 (eval $ac_link) 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try='test -z "$ac_c_werror_flag"
6900 || test ! -s conftest.err'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 (eval $ac_try) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; } &&
6906 { ac_try='test -s conftest$ac_exeext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 ac_cv_search_tgetent="none required"
6913 else
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917 fi
6918 rm -f conftest.err conftest.$ac_objext \
6919 conftest$ac_exeext conftest.$ac_ext
6920 if test "$ac_cv_search_tgetent" = no; then
6921 for ac_lib in termcap tinfo curses ncurses; do
6922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929
6930 /* Override any gcc2 internal prototype to avoid an error. */
6931 #ifdef __cplusplus
6932 extern "C"
6933 #endif
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6936 char tgetent ();
6937 int
6938 main ()
6939 {
6940 tgetent ();
6941 ;
6942 return 0;
6943 }
6944 _ACEOF
6945 rm -f conftest.$ac_objext conftest$ac_exeext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6947 (eval $ac_link) 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -z "$ac_c_werror_flag"
6955 || test ! -s conftest.err'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; } &&
6961 { ac_try='test -s conftest$ac_exeext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 ac_cv_search_tgetent="-l$ac_lib"
6968 break
6969 else
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973 fi
6974 rm -f conftest.err conftest.$ac_objext \
6975 conftest$ac_exeext conftest.$ac_ext
6976 done
6977 fi
6978 LIBS=$ac_func_search_save_LIBS
6979 fi
6980 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
6981 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
6982 if test "$ac_cv_search_tgetent" != no; then
6983 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
6984
6985 fi
6986
6987
6988 if test "$ac_cv_search_tgetent" = no; then
6989 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
6990 echo "$as_me: error: no termcap library found" >&2;}
6991 { (exit 1); exit 1; }; }
6992 fi
6993
6994
6995 # Check whether --with-system-readline or --without-system-readline was given.
6996 if test "${with_system_readline+set}" = set; then
6997 withval="$with_system_readline"
6998
6999 fi;
7000
7001 if test "$with_system_readline" = yes; then
7002 READLINE=-lreadline
7003 READLINE_DEPS=
7004 READLINE_CFLAGS=
7005 else
7006 READLINE='$(READLINE_DIR)/libreadline.a'
7007 READLINE_DEPS='$(READLINE)'
7008 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7009 fi
7010
7011
7012
7013
7014
7015 # Check whether --with-expat or --without-expat was given.
7016 if test "${with_expat+set}" = set; then
7017 withval="$with_expat"
7018
7019 else
7020 with_expat=auto
7021 fi;
7022 echo "$as_me:$LINENO: checking whether to use expat" >&5
7023 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
7024 echo "$as_me:$LINENO: result: $with_expat" >&5
7025 echo "${ECHO_T}$with_expat" >&6
7026
7027 if test "${with_expat}" = no; then
7028 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
7029 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7030 HAVE_LIBEXPAT=no
7031 else
7032
7033 if test "X$prefix" = "XNONE"; then
7034 acl_final_prefix="$ac_default_prefix"
7035 else
7036 acl_final_prefix="$prefix"
7037 fi
7038 if test "X$exec_prefix" = "XNONE"; then
7039 acl_final_exec_prefix='${prefix}'
7040 else
7041 acl_final_exec_prefix="$exec_prefix"
7042 fi
7043 acl_save_prefix="$prefix"
7044 prefix="$acl_final_prefix"
7045 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7046 prefix="$acl_save_prefix"
7047
7048
7049 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7050 if test "${with_gnu_ld+set}" = set; then
7051 withval="$with_gnu_ld"
7052 test "$withval" = no || with_gnu_ld=yes
7053 else
7054 with_gnu_ld=no
7055 fi;
7056 # Prepare PATH_SEPARATOR.
7057 # The user is always right.
7058 if test "${PATH_SEPARATOR+set}" != set; then
7059 echo "#! /bin/sh" >conf$$.sh
7060 echo "exit 0" >>conf$$.sh
7061 chmod +x conf$$.sh
7062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7063 PATH_SEPARATOR=';'
7064 else
7065 PATH_SEPARATOR=:
7066 fi
7067 rm -f conf$$.sh
7068 fi
7069 ac_prog=ld
7070 if test "$GCC" = yes; then
7071 # Check if gcc -print-prog-name=ld gives a path.
7072 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7073 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7074 case $host in
7075 *-*-mingw*)
7076 # gcc leaves a trailing carriage return which upsets mingw
7077 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7078 *)
7079 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7080 esac
7081 case $ac_prog in
7082 # Accept absolute paths.
7083 [\\/]* | [A-Za-z]:[\\/]*)
7084 re_direlt='/[^/][^/]*/\.\./'
7085 # Canonicalize the path of ld
7086 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7087 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7088 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7089 done
7090 test -z "$LD" && LD="$ac_prog"
7091 ;;
7092 "")
7093 # If it fails, then pretend we aren't using GCC.
7094 ac_prog=ld
7095 ;;
7096 *)
7097 # If it is relative, then search for the first ld in PATH.
7098 with_gnu_ld=unknown
7099 ;;
7100 esac
7101 elif test "$with_gnu_ld" = yes; then
7102 echo "$as_me:$LINENO: checking for GNU ld" >&5
7103 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7104 else
7105 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7106 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7107 fi
7108 if test "${acl_cv_path_LD+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111 if test -z "$LD"; then
7112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7113 for ac_dir in $PATH; do
7114 test -z "$ac_dir" && ac_dir=.
7115 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7116 acl_cv_path_LD="$ac_dir/$ac_prog"
7117 # Check to see if the program is GNU ld. I'd rather use --version,
7118 # but apparently some GNU ld's only accept -v.
7119 # Break only if it was the GNU/non-GNU ld that we prefer.
7120 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7121 test "$with_gnu_ld" != no && break
7122 else
7123 test "$with_gnu_ld" != yes && break
7124 fi
7125 fi
7126 done
7127 IFS="$ac_save_ifs"
7128 else
7129 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7130 fi
7131 fi
7132
7133 LD="$acl_cv_path_LD"
7134 if test -n "$LD"; then
7135 echo "$as_me:$LINENO: result: $LD" >&5
7136 echo "${ECHO_T}$LD" >&6
7137 else
7138 echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6
7140 fi
7141 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7142 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7143 { (exit 1); exit 1; }; }
7144 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7145 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7146 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7150 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7151 acl_cv_prog_gnu_ld=yes
7152 else
7153 acl_cv_prog_gnu_ld=no
7154 fi
7155 fi
7156 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7157 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7158 with_gnu_ld=$acl_cv_prog_gnu_ld
7159
7160
7161
7162 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7163 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7164 if test "${acl_cv_rpath+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167
7168 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7169 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7170 . ./conftest.sh
7171 rm -f ./conftest.sh
7172 acl_cv_rpath=done
7173
7174 fi
7175 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7176 echo "${ECHO_T}$acl_cv_rpath" >&6
7177 wl="$acl_cv_wl"
7178 libext="$acl_cv_libext"
7179 shlibext="$acl_cv_shlibext"
7180 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7181 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7182 hardcode_direct="$acl_cv_hardcode_direct"
7183 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7184 # Check whether --enable-rpath or --disable-rpath was given.
7185 if test "${enable_rpath+set}" = set; then
7186 enableval="$enable_rpath"
7187 :
7188 else
7189 enable_rpath=yes
7190 fi;
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200 use_additional=yes
7201
7202 acl_save_prefix="$prefix"
7203 prefix="$acl_final_prefix"
7204 acl_save_exec_prefix="$exec_prefix"
7205 exec_prefix="$acl_final_exec_prefix"
7206
7207 eval additional_includedir=\"$includedir\"
7208 eval additional_libdir=\"$libdir\"
7209
7210 exec_prefix="$acl_save_exec_prefix"
7211 prefix="$acl_save_prefix"
7212
7213
7214 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
7215 if test "${with_libexpat_prefix+set}" = set; then
7216 withval="$with_libexpat_prefix"
7217
7218 if test "X$withval" = "Xno"; then
7219 use_additional=no
7220 else
7221 if test "X$withval" = "X"; then
7222
7223 acl_save_prefix="$prefix"
7224 prefix="$acl_final_prefix"
7225 acl_save_exec_prefix="$exec_prefix"
7226 exec_prefix="$acl_final_exec_prefix"
7227
7228 eval additional_includedir=\"$includedir\"
7229 eval additional_libdir=\"$libdir\"
7230
7231 exec_prefix="$acl_save_exec_prefix"
7232 prefix="$acl_save_prefix"
7233
7234 else
7235 additional_includedir="$withval/include"
7236 additional_libdir="$withval/lib"
7237 fi
7238 fi
7239
7240 fi;
7241 LIBEXPAT=
7242 LTLIBEXPAT=
7243 INCEXPAT=
7244 rpathdirs=
7245 ltrpathdirs=
7246 names_already_handled=
7247 names_next_round='expat '
7248 while test -n "$names_next_round"; do
7249 names_this_round="$names_next_round"
7250 names_next_round=
7251 for name in $names_this_round; do
7252 already_handled=
7253 for n in $names_already_handled; do
7254 if test "$n" = "$name"; then
7255 already_handled=yes
7256 break
7257 fi
7258 done
7259 if test -z "$already_handled"; then
7260 names_already_handled="$names_already_handled $name"
7261 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7262 eval value=\"\$HAVE_LIB$uppername\"
7263 if test -n "$value"; then
7264 if test "$value" = yes; then
7265 eval value=\"\$LIB$uppername\"
7266 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7267 eval value=\"\$LTLIB$uppername\"
7268 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7269 else
7270 :
7271 fi
7272 else
7273 found_dir=
7274 found_la=
7275 found_so=
7276 found_a=
7277 if test $use_additional = yes; then
7278 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7279 found_dir="$additional_libdir"
7280 found_so="$additional_libdir/lib$name.$shlibext"
7281 if test -f "$additional_libdir/lib$name.la"; then
7282 found_la="$additional_libdir/lib$name.la"
7283 fi
7284 else
7285 if test -f "$additional_libdir/lib$name.$libext"; then
7286 found_dir="$additional_libdir"
7287 found_a="$additional_libdir/lib$name.$libext"
7288 if test -f "$additional_libdir/lib$name.la"; then
7289 found_la="$additional_libdir/lib$name.la"
7290 fi
7291 fi
7292 fi
7293 fi
7294 if test "X$found_dir" = "X"; then
7295 for x in $LDFLAGS $LTLIBEXPAT; do
7296
7297 acl_save_prefix="$prefix"
7298 prefix="$acl_final_prefix"
7299 acl_save_exec_prefix="$exec_prefix"
7300 exec_prefix="$acl_final_exec_prefix"
7301 eval x=\"$x\"
7302 exec_prefix="$acl_save_exec_prefix"
7303 prefix="$acl_save_prefix"
7304
7305 case "$x" in
7306 -L*)
7307 dir=`echo "X$x" | sed -e 's/^X-L//'`
7308 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7309 found_dir="$dir"
7310 found_so="$dir/lib$name.$shlibext"
7311 if test -f "$dir/lib$name.la"; then
7312 found_la="$dir/lib$name.la"
7313 fi
7314 else
7315 if test -f "$dir/lib$name.$libext"; then
7316 found_dir="$dir"
7317 found_a="$dir/lib$name.$libext"
7318 if test -f "$dir/lib$name.la"; then
7319 found_la="$dir/lib$name.la"
7320 fi
7321 fi
7322 fi
7323 ;;
7324 esac
7325 if test "X$found_dir" != "X"; then
7326 break
7327 fi
7328 done
7329 fi
7330 if test "X$found_dir" != "X"; then
7331 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7332 if test "X$found_so" != "X"; then
7333 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7334 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7335 else
7336 haveit=
7337 for x in $ltrpathdirs; do
7338 if test "X$x" = "X$found_dir"; then
7339 haveit=yes
7340 break
7341 fi
7342 done
7343 if test -z "$haveit"; then
7344 ltrpathdirs="$ltrpathdirs $found_dir"
7345 fi
7346 if test "$hardcode_direct" = yes; then
7347 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7348 else
7349 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7350 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7351 haveit=
7352 for x in $rpathdirs; do
7353 if test "X$x" = "X$found_dir"; then
7354 haveit=yes
7355 break
7356 fi
7357 done
7358 if test -z "$haveit"; then
7359 rpathdirs="$rpathdirs $found_dir"
7360 fi
7361 else
7362 haveit=
7363 for x in $LDFLAGS $LIBEXPAT; do
7364
7365 acl_save_prefix="$prefix"
7366 prefix="$acl_final_prefix"
7367 acl_save_exec_prefix="$exec_prefix"
7368 exec_prefix="$acl_final_exec_prefix"
7369 eval x=\"$x\"
7370 exec_prefix="$acl_save_exec_prefix"
7371 prefix="$acl_save_prefix"
7372
7373 if test "X$x" = "X-L$found_dir"; then
7374 haveit=yes
7375 break
7376 fi
7377 done
7378 if test -z "$haveit"; then
7379 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7380 fi
7381 if test "$hardcode_minus_L" != no; then
7382 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7383 else
7384 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7385 fi
7386 fi
7387 fi
7388 fi
7389 else
7390 if test "X$found_a" != "X"; then
7391 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7392 else
7393 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7394 fi
7395 fi
7396 additional_includedir=
7397 case "$found_dir" in
7398 */lib | */lib/)
7399 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7400 additional_includedir="$basedir/include"
7401 ;;
7402 esac
7403 if test "X$additional_includedir" != "X"; then
7404 if test "X$additional_includedir" != "X/usr/include"; then
7405 haveit=
7406 if test "X$additional_includedir" = "X/usr/local/include"; then
7407 if test -n "$GCC"; then
7408 case $host_os in
7409 linux*) haveit=yes;;
7410 esac
7411 fi
7412 fi
7413 if test -z "$haveit"; then
7414 for x in $CPPFLAGS $INCEXPAT; do
7415
7416 acl_save_prefix="$prefix"
7417 prefix="$acl_final_prefix"
7418 acl_save_exec_prefix="$exec_prefix"
7419 exec_prefix="$acl_final_exec_prefix"
7420 eval x=\"$x\"
7421 exec_prefix="$acl_save_exec_prefix"
7422 prefix="$acl_save_prefix"
7423
7424 if test "X$x" = "X-I$additional_includedir"; then
7425 haveit=yes
7426 break
7427 fi
7428 done
7429 if test -z "$haveit"; then
7430 if test -d "$additional_includedir"; then
7431 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7432 fi
7433 fi
7434 fi
7435 fi
7436 fi
7437 if test -n "$found_la"; then
7438 save_libdir="$libdir"
7439 case "$found_la" in
7440 */* | *\\*) . "$found_la" ;;
7441 *) . "./$found_la" ;;
7442 esac
7443 libdir="$save_libdir"
7444 for dep in $dependency_libs; do
7445 case "$dep" in
7446 -L*)
7447 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7448 if test "X$additional_libdir" != "X/usr/lib"; then
7449 haveit=
7450 if test "X$additional_libdir" = "X/usr/local/lib"; then
7451 if test -n "$GCC"; then
7452 case $host_os in
7453 linux*) haveit=yes;;
7454 esac
7455 fi
7456 fi
7457 if test -z "$haveit"; then
7458 haveit=
7459 for x in $LDFLAGS $LIBEXPAT; do
7460
7461 acl_save_prefix="$prefix"
7462 prefix="$acl_final_prefix"
7463 acl_save_exec_prefix="$exec_prefix"
7464 exec_prefix="$acl_final_exec_prefix"
7465 eval x=\"$x\"
7466 exec_prefix="$acl_save_exec_prefix"
7467 prefix="$acl_save_prefix"
7468
7469 if test "X$x" = "X-L$additional_libdir"; then
7470 haveit=yes
7471 break
7472 fi
7473 done
7474 if test -z "$haveit"; then
7475 if test -d "$additional_libdir"; then
7476 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7477 fi
7478 fi
7479 haveit=
7480 for x in $LDFLAGS $LTLIBEXPAT; do
7481
7482 acl_save_prefix="$prefix"
7483 prefix="$acl_final_prefix"
7484 acl_save_exec_prefix="$exec_prefix"
7485 exec_prefix="$acl_final_exec_prefix"
7486 eval x=\"$x\"
7487 exec_prefix="$acl_save_exec_prefix"
7488 prefix="$acl_save_prefix"
7489
7490 if test "X$x" = "X-L$additional_libdir"; then
7491 haveit=yes
7492 break
7493 fi
7494 done
7495 if test -z "$haveit"; then
7496 if test -d "$additional_libdir"; then
7497 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7498 fi
7499 fi
7500 fi
7501 fi
7502 ;;
7503 -R*)
7504 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7505 if test "$enable_rpath" != no; then
7506 haveit=
7507 for x in $rpathdirs; do
7508 if test "X$x" = "X$dir"; then
7509 haveit=yes
7510 break
7511 fi
7512 done
7513 if test -z "$haveit"; then
7514 rpathdirs="$rpathdirs $dir"
7515 fi
7516 haveit=
7517 for x in $ltrpathdirs; do
7518 if test "X$x" = "X$dir"; then
7519 haveit=yes
7520 break
7521 fi
7522 done
7523 if test -z "$haveit"; then
7524 ltrpathdirs="$ltrpathdirs $dir"
7525 fi
7526 fi
7527 ;;
7528 -l*)
7529 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7530 ;;
7531 *.la)
7532 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7533 ;;
7534 *)
7535 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7536 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7537 ;;
7538 esac
7539 done
7540 fi
7541 else
7542 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7543 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7544 fi
7545 fi
7546 fi
7547 done
7548 done
7549 if test "X$rpathdirs" != "X"; then
7550 if test -n "$hardcode_libdir_separator"; then
7551 alldirs=
7552 for found_dir in $rpathdirs; do
7553 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7554 done
7555 acl_save_libdir="$libdir"
7556 libdir="$alldirs"
7557 eval flag=\"$hardcode_libdir_flag_spec\"
7558 libdir="$acl_save_libdir"
7559 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7560 else
7561 for found_dir in $rpathdirs; do
7562 acl_save_libdir="$libdir"
7563 libdir="$found_dir"
7564 eval flag=\"$hardcode_libdir_flag_spec\"
7565 libdir="$acl_save_libdir"
7566 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7567 done
7568 fi
7569 fi
7570 if test "X$ltrpathdirs" != "X"; then
7571 for found_dir in $ltrpathdirs; do
7572 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7573 done
7574 fi
7575
7576
7577 ac_save_CPPFLAGS="$CPPFLAGS"
7578
7579 for element in $INCEXPAT; do
7580 haveit=
7581 for x in $CPPFLAGS; do
7582
7583 acl_save_prefix="$prefix"
7584 prefix="$acl_final_prefix"
7585 acl_save_exec_prefix="$exec_prefix"
7586 exec_prefix="$acl_final_exec_prefix"
7587 eval x=\"$x\"
7588 exec_prefix="$acl_save_exec_prefix"
7589 prefix="$acl_save_prefix"
7590
7591 if test "X$x" = "X$element"; then
7592 haveit=yes
7593 break
7594 fi
7595 done
7596 if test -z "$haveit"; then
7597 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7598 fi
7599 done
7600
7601
7602 echo "$as_me:$LINENO: checking for libexpat" >&5
7603 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
7604 if test "${ac_cv_libexpat+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607
7608 ac_save_LIBS="$LIBS"
7609 LIBS="$LIBS $LIBEXPAT"
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 #include "expat.h"
7617 int
7618 main ()
7619 {
7620 XML_Parser p = XML_ParserCreate (0);
7621 ;
7622 return 0;
7623 }
7624 _ACEOF
7625 rm -f conftest.$ac_objext conftest$ac_exeext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7627 (eval $ac_link) 2>conftest.er1
7628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag"
7635 || test ! -s conftest.err'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 (eval $ac_try) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; } &&
7641 { ac_try='test -s conftest$ac_exeext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 (eval $ac_try) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 ac_cv_libexpat=yes
7648 else
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7651
7652 ac_cv_libexpat=no
7653 fi
7654 rm -f conftest.err conftest.$ac_objext \
7655 conftest$ac_exeext conftest.$ac_ext
7656 LIBS="$ac_save_LIBS"
7657
7658 fi
7659 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
7660 echo "${ECHO_T}$ac_cv_libexpat" >&6
7661 if test "$ac_cv_libexpat" = yes; then
7662 HAVE_LIBEXPAT=yes
7663
7664 cat >>confdefs.h <<\_ACEOF
7665 #define HAVE_LIBEXPAT 1
7666 _ACEOF
7667
7668 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
7669 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
7670 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
7671 echo "${ECHO_T}$LIBEXPAT" >&6
7672 else
7673 HAVE_LIBEXPAT=no
7674 CPPFLAGS="$ac_save_CPPFLAGS"
7675 LIBEXPAT=
7676 LTLIBEXPAT=
7677 fi
7678
7679
7680
7681
7682
7683
7684 if test "$HAVE_LIBEXPAT" != yes; then
7685 if test "$with_expat" = yes; then
7686 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
7687 echo "$as_me: error: expat is missing or unusable" >&2;}
7688 { (exit 1); exit 1; }; }
7689 else
7690 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7691 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7692 fi
7693 else
7694 save_LIBS=$LIBS
7695 LIBS="$LIBS $LIBEXPAT"
7696
7697 for ac_func in XML_StopParser
7698 do
7699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7700 echo "$as_me:$LINENO: checking for $ac_func" >&5
7701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7702 if eval "test \"\${$as_ac_var+set}\" = set"; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7713 #define $ac_func innocuous_$ac_func
7714
7715 /* System header to define __stub macros and hopefully few prototypes,
7716 which can conflict with char $ac_func (); below.
7717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7718 <limits.h> exists even on freestanding compilers. */
7719
7720 #ifdef __STDC__
7721 # include <limits.h>
7722 #else
7723 # include <assert.h>
7724 #endif
7725
7726 #undef $ac_func
7727
7728 /* Override any gcc2 internal prototype to avoid an error. */
7729 #ifdef __cplusplus
7730 extern "C"
7731 {
7732 #endif
7733 /* We use char because int might match the return type of a gcc2
7734 builtin and then its argument prototype would still apply. */
7735 char $ac_func ();
7736 /* The GNU C library defines this for functions which it implements
7737 to always fail with ENOSYS. Some functions are actually named
7738 something starting with __ and the normal name is an alias. */
7739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7740 choke me
7741 #else
7742 char (*f) () = $ac_func;
7743 #endif
7744 #ifdef __cplusplus
7745 }
7746 #endif
7747
7748 int
7749 main ()
7750 {
7751 return f != $ac_func;
7752 ;
7753 return 0;
7754 }
7755 _ACEOF
7756 rm -f conftest.$ac_objext conftest$ac_exeext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7758 (eval $ac_link) 2>conftest.er1
7759 ac_status=$?
7760 grep -v '^ *+' conftest.er1 >conftest.err
7761 rm -f conftest.er1
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -z "$ac_c_werror_flag"
7766 || test ! -s conftest.err'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 (eval $ac_try) 2>&5
7769 ac_status=$?
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; } &&
7772 { ac_try='test -s conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 (eval $ac_try) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778 eval "$as_ac_var=yes"
7779 else
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7782
7783 eval "$as_ac_var=no"
7784 fi
7785 rm -f conftest.err conftest.$ac_objext \
7786 conftest$ac_exeext conftest.$ac_ext
7787 fi
7788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7790 if test `eval echo '${'$as_ac_var'}'` = yes; then
7791 cat >>confdefs.h <<_ACEOF
7792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7793 _ACEOF
7794
7795 fi
7796 done
7797
7798 LIBS=$save_LIBS
7799 fi
7800 fi
7801
7802 # ------------------------- #
7803 # Checks for header files. #
7804 # ------------------------- #
7805
7806
7807
7808
7809
7810
7811 ac_header_dirent=no
7812 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7813 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7814 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7815 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819 cat >conftest.$ac_ext <<_ACEOF
7820 /* confdefs.h. */
7821 _ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 #include <sys/types.h>
7826 #include <$ac_hdr>
7827
7828 int
7829 main ()
7830 {
7831 if ((DIR *) 0)
7832 return 0;
7833 ;
7834 return 0;
7835 }
7836 _ACEOF
7837 rm -f conftest.$ac_objext
7838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7839 (eval $ac_compile) 2>conftest.er1
7840 ac_status=$?
7841 grep -v '^ *+' conftest.er1 >conftest.err
7842 rm -f conftest.er1
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try='test -z "$ac_c_werror_flag"
7847 || test ! -s conftest.err'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest.$ac_objext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 eval "$as_ac_Header=yes"
7860 else
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864 eval "$as_ac_Header=no"
7865 fi
7866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7867 fi
7868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7871 cat >>confdefs.h <<_ACEOF
7872 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7873 _ACEOF
7874
7875 ac_header_dirent=$ac_hdr; break
7876 fi
7877
7878 done
7879 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7880 if test $ac_header_dirent = dirent.h; then
7881 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7882 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7883 if test "${ac_cv_search_opendir+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886 ac_func_search_save_LIBS=$LIBS
7887 ac_cv_search_opendir=no
7888 cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h. */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894
7895 /* Override any gcc2 internal prototype to avoid an error. */
7896 #ifdef __cplusplus
7897 extern "C"
7898 #endif
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7901 char opendir ();
7902 int
7903 main ()
7904 {
7905 opendir ();
7906 ;
7907 return 0;
7908 }
7909 _ACEOF
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7912 (eval $ac_link) 2>conftest.er1
7913 ac_status=$?
7914 grep -v '^ *+' conftest.er1 >conftest.err
7915 rm -f conftest.er1
7916 cat conftest.err >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
7919 { ac_try='test -z "$ac_c_werror_flag"
7920 || 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_opendir="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_opendir" = no; then
7941 for ac_lib in dir; 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 opendir ();
7957 int
7958 main ()
7959 {
7960 opendir ();
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"
7975 || test ! -s conftest.err'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 (eval $ac_try) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; } &&
7981 { ac_try='test -s conftest$ac_exeext'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7987 ac_cv_search_opendir="-l$ac_lib"
7988 break
7989 else
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993 fi
7994 rm -f conftest.err conftest.$ac_objext \
7995 conftest$ac_exeext conftest.$ac_ext
7996 done
7997 fi
7998 LIBS=$ac_func_search_save_LIBS
7999 fi
8000 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8001 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8002 if test "$ac_cv_search_opendir" != no; then
8003 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8004
8005 fi
8006
8007 else
8008 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8010 if test "${ac_cv_search_opendir+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013 ac_func_search_save_LIBS=$LIBS
8014 ac_cv_search_opendir=no
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h. */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021
8022 /* Override any gcc2 internal prototype to avoid an error. */
8023 #ifdef __cplusplus
8024 extern "C"
8025 #endif
8026 /* We use char because int might match the return type of a gcc2
8027 builtin and then its argument prototype would still apply. */
8028 char opendir ();
8029 int
8030 main ()
8031 {
8032 opendir ();
8033 ;
8034 return 0;
8035 }
8036 _ACEOF
8037 rm -f conftest.$ac_objext conftest$ac_exeext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8039 (eval $ac_link) 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -z "$ac_c_werror_flag"
8047 || test ! -s conftest.err'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; } &&
8053 { ac_try='test -s conftest$ac_exeext'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; }; then
8059 ac_cv_search_opendir="none required"
8060 else
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8063
8064 fi
8065 rm -f conftest.err conftest.$ac_objext \
8066 conftest$ac_exeext conftest.$ac_ext
8067 if test "$ac_cv_search_opendir" = no; then
8068 for ac_lib in x; do
8069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8070 cat >conftest.$ac_ext <<_ACEOF
8071 /* confdefs.h. */
8072 _ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h. */
8076
8077 /* Override any gcc2 internal prototype to avoid an error. */
8078 #ifdef __cplusplus
8079 extern "C"
8080 #endif
8081 /* We use char because int might match the return type of a gcc2
8082 builtin and then its argument prototype would still apply. */
8083 char opendir ();
8084 int
8085 main ()
8086 {
8087 opendir ();
8088 ;
8089 return 0;
8090 }
8091 _ACEOF
8092 rm -f conftest.$ac_objext conftest$ac_exeext
8093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8094 (eval $ac_link) 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try='test -z "$ac_c_werror_flag"
8102 || test ! -s conftest.err'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 (eval $ac_try) 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; } &&
8108 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8114 ac_cv_search_opendir="-l$ac_lib"
8115 break
8116 else
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8119
8120 fi
8121 rm -f conftest.err conftest.$ac_objext \
8122 conftest$ac_exeext conftest.$ac_ext
8123 done
8124 fi
8125 LIBS=$ac_func_search_save_LIBS
8126 fi
8127 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8128 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8129 if test "$ac_cv_search_opendir" != no; then
8130 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8131
8132 fi
8133
8134 fi
8135
8136 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8137 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8138 if test "${ac_cv_header_stat_broken+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141 cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h. */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 #include <sys/types.h>
8148 #include <sys/stat.h>
8149
8150 #if defined(S_ISBLK) && defined(S_IFDIR)
8151 # if S_ISBLK (S_IFDIR)
8152 You lose.
8153 # endif
8154 #endif
8155
8156 #if defined(S_ISBLK) && defined(S_IFCHR)
8157 # if S_ISBLK (S_IFCHR)
8158 You lose.
8159 # endif
8160 #endif
8161
8162 #if defined(S_ISLNK) && defined(S_IFREG)
8163 # if S_ISLNK (S_IFREG)
8164 You lose.
8165 # endif
8166 #endif
8167
8168 #if defined(S_ISSOCK) && defined(S_IFREG)
8169 # if S_ISSOCK (S_IFREG)
8170 You lose.
8171 # endif
8172 #endif
8173
8174 _ACEOF
8175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8176 $EGREP "You lose" >/dev/null 2>&1; then
8177 ac_cv_header_stat_broken=yes
8178 else
8179 ac_cv_header_stat_broken=no
8180 fi
8181 rm -f conftest*
8182
8183 fi
8184 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8185 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8186 if test $ac_cv_header_stat_broken = yes; then
8187
8188 cat >>confdefs.h <<\_ACEOF
8189 #define STAT_MACROS_BROKEN 1
8190 _ACEOF
8191
8192 fi
8193
8194 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8196 if test "${ac_cv_header_stdc+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 else
8199 cat >conftest.$ac_ext <<_ACEOF
8200 /* confdefs.h. */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8205 #include <stdlib.h>
8206 #include <stdarg.h>
8207 #include <string.h>
8208 #include <float.h>
8209
8210 int
8211 main ()
8212 {
8213
8214 ;
8215 return 0;
8216 }
8217 _ACEOF
8218 rm -f conftest.$ac_objext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8220 (eval $ac_compile) 2>conftest.er1
8221 ac_status=$?
8222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
8227 { ac_try='test -z "$ac_c_werror_flag"
8228 || test ! -s conftest.err'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest.$ac_objext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_cv_header_stdc=yes
8241 else
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8244
8245 ac_cv_header_stdc=no
8246 fi
8247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8248
8249 if test $ac_cv_header_stdc = yes; then
8250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h. */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 #include <string.h>
8258
8259 _ACEOF
8260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8261 $EGREP "memchr" >/dev/null 2>&1; then
8262 :
8263 else
8264 ac_cv_header_stdc=no
8265 fi
8266 rm -f conftest*
8267
8268 fi
8269
8270 if test $ac_cv_header_stdc = yes; then
8271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h. */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 #include <stdlib.h>
8279
8280 _ACEOF
8281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8282 $EGREP "free" >/dev/null 2>&1; then
8283 :
8284 else
8285 ac_cv_header_stdc=no
8286 fi
8287 rm -f conftest*
8288
8289 fi
8290
8291 if test $ac_cv_header_stdc = yes; then
8292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8293 if test "$cross_compiling" = yes; then
8294 :
8295 else
8296 cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h. */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 #include <ctype.h>
8303 #if ((' ' & 0x0FF) == 0x020)
8304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8306 #else
8307 # define ISLOWER(c) \
8308 (('a' <= (c) && (c) <= 'i') \
8309 || ('j' <= (c) && (c) <= 'r') \
8310 || ('s' <= (c) && (c) <= 'z'))
8311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8312 #endif
8313
8314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8315 int
8316 main ()
8317 {
8318 int i;
8319 for (i = 0; i < 256; i++)
8320 if (XOR (islower (i), ISLOWER (i))
8321 || toupper (i) != TOUPPER (i))
8322 exit(2);
8323 exit (0);
8324 }
8325 _ACEOF
8326 rm -f conftest$ac_exeext
8327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8328 (eval $ac_link) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 (eval $ac_try) 2>&5
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8337 :
8338 else
8339 echo "$as_me: program exited with status $ac_status" >&5
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8342
8343 ( exit $ac_status )
8344 ac_cv_header_stdc=no
8345 fi
8346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8347 fi
8348 fi
8349 fi
8350 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8351 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8352 if test $ac_cv_header_stdc = yes; then
8353
8354 cat >>confdefs.h <<\_ACEOF
8355 #define STDC_HEADERS 1
8356 _ACEOF
8357
8358 fi
8359
8360
8361 for ac_header in nlist.h
8362 do
8363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8365 echo "$as_me:$LINENO: checking for $ac_header" >&5
8366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 fi
8370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8372 else
8373 # Is the header compilable?
8374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 #include <$ac_header>
8384 _ACEOF
8385 rm -f conftest.$ac_objext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag"
8395 || test ! -s conftest.err'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest.$ac_objext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_header_compiler=yes
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 ac_header_compiler=no
8413 fi
8414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8416 echo "${ECHO_T}$ac_header_compiler" >&6
8417
8418 # Is the header present?
8419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h. */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 #include <$ac_header>
8428 _ACEOF
8429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } >/dev/null; then
8437 if test -s conftest.err; then
8438 ac_cpp_err=$ac_c_preproc_warn_flag
8439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8440 else
8441 ac_cpp_err=
8442 fi
8443 else
8444 ac_cpp_err=yes
8445 fi
8446 if test -z "$ac_cpp_err"; then
8447 ac_header_preproc=yes
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 ac_header_preproc=no
8453 fi
8454 rm -f conftest.err conftest.$ac_ext
8455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8456 echo "${ECHO_T}$ac_header_preproc" >&6
8457
8458 # So? What about this header?
8459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8460 yes:no: )
8461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8465 ac_header_preproc=yes
8466 ;;
8467 no:yes:* )
8468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8480 (
8481 cat <<\_ASBOX
8482 ## ------------------------------------------ ##
8483 ## Report this to the AC_PACKAGE_NAME lists. ##
8484 ## ------------------------------------------ ##
8485 _ASBOX
8486 ) |
8487 sed "s/^/$as_me: WARNING: /" >&2
8488 ;;
8489 esac
8490 echo "$as_me:$LINENO: checking for $ac_header" >&5
8491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495 eval "$as_ac_Header=\$ac_header_preproc"
8496 fi
8497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8499
8500 fi
8501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8502 cat >>confdefs.h <<_ACEOF
8503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8504 _ACEOF
8505
8506 fi
8507
8508 done
8509
8510
8511 for ac_header in link.h
8512 do
8513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8514 echo "$as_me:$LINENO: checking for $ac_header" >&5
8515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h. */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8525 #if HAVE_SYS_TYPES_H
8526 # include <sys/types.h>
8527 #endif
8528 #if HAVE_NLIST_H
8529 # include <nlist.h>
8530 #endif
8531
8532
8533 #include <$ac_header>
8534 _ACEOF
8535 rm -f conftest.$ac_objext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8537 (eval $ac_compile) 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -z "$ac_c_werror_flag"
8545 || test ! -s conftest.err'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 eval "$as_ac_Header=yes"
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 eval "$as_ac_Header=no"
8563 fi
8564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8565 fi
8566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8569 cat >>confdefs.h <<_ACEOF
8570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8571 _ACEOF
8572
8573 fi
8574
8575 done
8576
8577
8578 for ac_header in machine/reg.h
8579 do
8580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8582 echo "$as_me:$LINENO: checking for $ac_header" >&5
8583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 fi
8587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8589 else
8590 # Is the header compilable?
8591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8593 cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h. */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8599 $ac_includes_default
8600 #include <$ac_header>
8601 _ACEOF
8602 rm -f conftest.$ac_objext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604 (eval $ac_compile) 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -z "$ac_c_werror_flag"
8612 || test ! -s conftest.err'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 (eval $ac_try) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; } &&
8618 { ac_try='test -s conftest.$ac_objext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 ac_header_compiler=yes
8625 else
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8628
8629 ac_header_compiler=no
8630 fi
8631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8633 echo "${ECHO_T}$ac_header_compiler" >&6
8634
8635 # Is the header present?
8636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644 #include <$ac_header>
8645 _ACEOF
8646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8648 ac_status=$?
8649 grep -v '^ *+' conftest.er1 >conftest.err
8650 rm -f conftest.er1
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } >/dev/null; then
8654 if test -s conftest.err; then
8655 ac_cpp_err=$ac_c_preproc_warn_flag
8656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8657 else
8658 ac_cpp_err=
8659 fi
8660 else
8661 ac_cpp_err=yes
8662 fi
8663 if test -z "$ac_cpp_err"; then
8664 ac_header_preproc=yes
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8668
8669 ac_header_preproc=no
8670 fi
8671 rm -f conftest.err conftest.$ac_ext
8672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8673 echo "${ECHO_T}$ac_header_preproc" >&6
8674
8675 # So? What about this header?
8676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8677 yes:no: )
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8682 ac_header_preproc=yes
8683 ;;
8684 no:yes:* )
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8697 (
8698 cat <<\_ASBOX
8699 ## ------------------------------------------ ##
8700 ## Report this to the AC_PACKAGE_NAME lists. ##
8701 ## ------------------------------------------ ##
8702 _ASBOX
8703 ) |
8704 sed "s/^/$as_me: WARNING: /" >&2
8705 ;;
8706 esac
8707 echo "$as_me:$LINENO: checking for $ac_header" >&5
8708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712 eval "$as_ac_Header=\$ac_header_preproc"
8713 fi
8714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8716
8717 fi
8718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8719 cat >>confdefs.h <<_ACEOF
8720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8721 _ACEOF
8722
8723 fi
8724
8725 done
8726
8727
8728
8729 for ac_header in poll.h sys/poll.h
8730 do
8731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8733 echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 fi
8738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8740 else
8741 # Is the header compilable?
8742 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 $ac_includes_default
8751 #include <$ac_header>
8752 _ACEOF
8753 rm -f conftest.$ac_objext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755 (eval $ac_compile) 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -z "$ac_c_werror_flag"
8763 || test ! -s conftest.err'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; } &&
8769 { ac_try='test -s conftest.$ac_objext'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 (eval $ac_try) 2>&5
8772 ac_status=$?
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8775 ac_header_compiler=yes
8776 else
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8779
8780 ac_header_compiler=no
8781 fi
8782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8784 echo "${ECHO_T}$ac_header_compiler" >&6
8785
8786 # Is the header present?
8787 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8789 cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h. */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 #include <$ac_header>
8796 _ACEOF
8797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8799 ac_status=$?
8800 grep -v '^ *+' conftest.er1 >conftest.err
8801 rm -f conftest.er1
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } >/dev/null; then
8805 if test -s conftest.err; then
8806 ac_cpp_err=$ac_c_preproc_warn_flag
8807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8808 else
8809 ac_cpp_err=
8810 fi
8811 else
8812 ac_cpp_err=yes
8813 fi
8814 if test -z "$ac_cpp_err"; then
8815 ac_header_preproc=yes
8816 else
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 ac_header_preproc=no
8821 fi
8822 rm -f conftest.err conftest.$ac_ext
8823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8824 echo "${ECHO_T}$ac_header_preproc" >&6
8825
8826 # So? What about this header?
8827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8828 yes:no: )
8829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8833 ac_header_preproc=yes
8834 ;;
8835 no:yes:* )
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8843 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8848 (
8849 cat <<\_ASBOX
8850 ## ------------------------------------------ ##
8851 ## Report this to the AC_PACKAGE_NAME lists. ##
8852 ## ------------------------------------------ ##
8853 _ASBOX
8854 ) |
8855 sed "s/^/$as_me: WARNING: /" >&2
8856 ;;
8857 esac
8858 echo "$as_me:$LINENO: checking for $ac_header" >&5
8859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863 eval "$as_ac_Header=\$ac_header_preproc"
8864 fi
8865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8867
8868 fi
8869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8870 cat >>confdefs.h <<_ACEOF
8871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8872 _ACEOF
8873
8874 fi
8875
8876 done
8877
8878
8879
8880
8881 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
8882 do
8883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885 echo "$as_me:$LINENO: checking for $ac_header" >&5
8886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 fi
8890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8892 else
8893 # Is the header compilable?
8894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8896 cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h. */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8902 $ac_includes_default
8903 #include <$ac_header>
8904 _ACEOF
8905 rm -f conftest.$ac_objext
8906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8907 (eval $ac_compile) 2>conftest.er1
8908 ac_status=$?
8909 grep -v '^ *+' conftest.er1 >conftest.err
8910 rm -f conftest.er1
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } &&
8914 { ac_try='test -z "$ac_c_werror_flag"
8915 || test ! -s conftest.err'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 (eval $ac_try) 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; } &&
8921 { ac_try='test -s conftest.$ac_objext'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 (eval $ac_try) 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; }; then
8927 ac_header_compiler=yes
8928 else
8929 echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8931
8932 ac_header_compiler=no
8933 fi
8934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8936 echo "${ECHO_T}$ac_header_compiler" >&6
8937
8938 # Is the header present?
8939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 #include <$ac_header>
8948 _ACEOF
8949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8951 ac_status=$?
8952 grep -v '^ *+' conftest.er1 >conftest.err
8953 rm -f conftest.er1
8954 cat conftest.err >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } >/dev/null; then
8957 if test -s conftest.err; then
8958 ac_cpp_err=$ac_c_preproc_warn_flag
8959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8960 else
8961 ac_cpp_err=
8962 fi
8963 else
8964 ac_cpp_err=yes
8965 fi
8966 if test -z "$ac_cpp_err"; then
8967 ac_header_preproc=yes
8968 else
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 ac_header_preproc=no
8973 fi
8974 rm -f conftest.err conftest.$ac_ext
8975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8976 echo "${ECHO_T}$ac_header_preproc" >&6
8977
8978 # So? What about this header?
8979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8980 yes:no: )
8981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8985 ac_header_preproc=yes
8986 ;;
8987 no:yes:* )
8988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9000 (
9001 cat <<\_ASBOX
9002 ## ------------------------------------------ ##
9003 ## Report this to the AC_PACKAGE_NAME lists. ##
9004 ## ------------------------------------------ ##
9005 _ASBOX
9006 ) |
9007 sed "s/^/$as_me: WARNING: /" >&2
9008 ;;
9009 esac
9010 echo "$as_me:$LINENO: checking for $ac_header" >&5
9011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 eval "$as_ac_Header=\$ac_header_preproc"
9016 fi
9017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9019
9020 fi
9021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9022 cat >>confdefs.h <<_ACEOF
9023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9024 _ACEOF
9025
9026 fi
9027
9028 done
9029
9030
9031 for ac_header in signal.h
9032 do
9033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9035 echo "$as_me:$LINENO: checking for $ac_header" >&5
9036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 fi
9040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9042 else
9043 # Is the header compilable?
9044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9046 cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h. */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 $ac_includes_default
9053 #include <$ac_header>
9054 _ACEOF
9055 rm -f conftest.$ac_objext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057 (eval $ac_compile) 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try='test -z "$ac_c_werror_flag"
9065 || test ! -s conftest.err'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest.$ac_objext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 (eval $ac_try) 2>&5
9074 ac_status=$?
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 ac_header_compiler=yes
9078 else
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082 ac_header_compiler=no
9083 fi
9084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9086 echo "${ECHO_T}$ac_header_compiler" >&6
9087
9088 # Is the header present?
9089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9091 cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h. */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <$ac_header>
9098 _ACEOF
9099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } >/dev/null; then
9107 if test -s conftest.err; then
9108 ac_cpp_err=$ac_c_preproc_warn_flag
9109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9110 else
9111 ac_cpp_err=
9112 fi
9113 else
9114 ac_cpp_err=yes
9115 fi
9116 if test -z "$ac_cpp_err"; then
9117 ac_header_preproc=yes
9118 else
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9121
9122 ac_header_preproc=no
9123 fi
9124 rm -f conftest.err conftest.$ac_ext
9125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9126 echo "${ECHO_T}$ac_header_preproc" >&6
9127
9128 # So? What about this header?
9129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9130 yes:no: )
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9135 ac_header_preproc=yes
9136 ;;
9137 no:yes:* )
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9150 (
9151 cat <<\_ASBOX
9152 ## ------------------------------------------ ##
9153 ## Report this to the AC_PACKAGE_NAME lists. ##
9154 ## ------------------------------------------ ##
9155 _ASBOX
9156 ) |
9157 sed "s/^/$as_me: WARNING: /" >&2
9158 ;;
9159 esac
9160 echo "$as_me:$LINENO: checking for $ac_header" >&5
9161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165 eval "$as_ac_Header=\$ac_header_preproc"
9166 fi
9167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9169
9170 fi
9171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9172 cat >>confdefs.h <<_ACEOF
9173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9174 _ACEOF
9175
9176 fi
9177
9178 done
9179
9180
9181 for ac_header in stddef.h
9182 do
9183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9185 echo "$as_me:$LINENO: checking for $ac_header" >&5
9186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 fi
9190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9192 else
9193 # Is the header compilable?
9194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9196 cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h. */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 $ac_includes_default
9203 #include <$ac_header>
9204 _ACEOF
9205 rm -f conftest.$ac_objext
9206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9207 (eval $ac_compile) 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } &&
9214 { ac_try='test -z "$ac_c_werror_flag"
9215 || test ! -s conftest.err'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217 (eval $ac_try) 2>&5
9218 ac_status=$?
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; } &&
9221 { ac_try='test -s conftest.$ac_objext'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; }; then
9227 ac_header_compiler=yes
9228 else
9229 echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9231
9232 ac_header_compiler=no
9233 fi
9234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9236 echo "${ECHO_T}$ac_header_compiler" >&6
9237
9238 # Is the header present?
9239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h. */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 #include <$ac_header>
9248 _ACEOF
9249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9251 ac_status=$?
9252 grep -v '^ *+' conftest.er1 >conftest.err
9253 rm -f conftest.er1
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } >/dev/null; then
9257 if test -s conftest.err; then
9258 ac_cpp_err=$ac_c_preproc_warn_flag
9259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9260 else
9261 ac_cpp_err=
9262 fi
9263 else
9264 ac_cpp_err=yes
9265 fi
9266 if test -z "$ac_cpp_err"; then
9267 ac_header_preproc=yes
9268 else
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9271
9272 ac_header_preproc=no
9273 fi
9274 rm -f conftest.err conftest.$ac_ext
9275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9276 echo "${ECHO_T}$ac_header_preproc" >&6
9277
9278 # So? What about this header?
9279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9280 yes:no: )
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9285 ac_header_preproc=yes
9286 ;;
9287 no:yes:* )
9288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9300 (
9301 cat <<\_ASBOX
9302 ## ------------------------------------------ ##
9303 ## Report this to the AC_PACKAGE_NAME lists. ##
9304 ## ------------------------------------------ ##
9305 _ASBOX
9306 ) |
9307 sed "s/^/$as_me: WARNING: /" >&2
9308 ;;
9309 esac
9310 echo "$as_me:$LINENO: checking for $ac_header" >&5
9311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315 eval "$as_ac_Header=\$ac_header_preproc"
9316 fi
9317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9319
9320 fi
9321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9322 cat >>confdefs.h <<_ACEOF
9323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9324 _ACEOF
9325
9326 fi
9327
9328 done
9329
9330
9331 for ac_header in stdlib.h
9332 do
9333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9335 echo "$as_me:$LINENO: checking for $ac_header" >&5
9336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 fi
9340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9342 else
9343 # Is the header compilable?
9344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9346 cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h. */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 $ac_includes_default
9353 #include <$ac_header>
9354 _ACEOF
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>conftest.er1
9358 ac_status=$?
9359 grep -v '^ *+' conftest.er1 >conftest.err
9360 rm -f conftest.er1
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -z "$ac_c_werror_flag"
9365 || test ! -s conftest.err'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try='test -s conftest.$ac_objext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 (eval $ac_try) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 ac_header_compiler=yes
9378 else
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9381
9382 ac_header_compiler=no
9383 fi
9384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9386 echo "${ECHO_T}$ac_header_compiler" >&6
9387
9388 # Is the header present?
9389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9391 cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h. */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9397 #include <$ac_header>
9398 _ACEOF
9399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9401 ac_status=$?
9402 grep -v '^ *+' conftest.er1 >conftest.err
9403 rm -f conftest.er1
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } >/dev/null; then
9407 if test -s conftest.err; then
9408 ac_cpp_err=$ac_c_preproc_warn_flag
9409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9410 else
9411 ac_cpp_err=
9412 fi
9413 else
9414 ac_cpp_err=yes
9415 fi
9416 if test -z "$ac_cpp_err"; then
9417 ac_header_preproc=yes
9418 else
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9421
9422 ac_header_preproc=no
9423 fi
9424 rm -f conftest.err conftest.$ac_ext
9425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9426 echo "${ECHO_T}$ac_header_preproc" >&6
9427
9428 # So? What about this header?
9429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9430 yes:no: )
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9435 ac_header_preproc=yes
9436 ;;
9437 no:yes:* )
9438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9450 (
9451 cat <<\_ASBOX
9452 ## ------------------------------------------ ##
9453 ## Report this to the AC_PACKAGE_NAME lists. ##
9454 ## ------------------------------------------ ##
9455 _ASBOX
9456 ) |
9457 sed "s/^/$as_me: WARNING: /" >&2
9458 ;;
9459 esac
9460 echo "$as_me:$LINENO: checking for $ac_header" >&5
9461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465 eval "$as_ac_Header=\$ac_header_preproc"
9466 fi
9467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9469
9470 fi
9471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9472 cat >>confdefs.h <<_ACEOF
9473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9474 _ACEOF
9475
9476 fi
9477
9478 done
9479
9480
9481 for ac_header in stdint.h
9482 do
9483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9485 echo "$as_me:$LINENO: checking for $ac_header" >&5
9486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 fi
9490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9492 else
9493 # Is the header compilable?
9494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9496 cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h. */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 $ac_includes_default
9503 #include <$ac_header>
9504 _ACEOF
9505 rm -f conftest.$ac_objext
9506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9507 (eval $ac_compile) 2>conftest.er1
9508 ac_status=$?
9509 grep -v '^ *+' conftest.er1 >conftest.err
9510 rm -f conftest.er1
9511 cat conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } &&
9514 { ac_try='test -z "$ac_c_werror_flag"
9515 || test ! -s conftest.err'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 (eval $ac_try) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; } &&
9521 { ac_try='test -s conftest.$ac_objext'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; }; then
9527 ac_header_compiler=yes
9528 else
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9531
9532 ac_header_compiler=no
9533 fi
9534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9536 echo "${ECHO_T}$ac_header_compiler" >&6
9537
9538 # Is the header present?
9539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9541 cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h. */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 #include <$ac_header>
9548 _ACEOF
9549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } >/dev/null; then
9557 if test -s conftest.err; then
9558 ac_cpp_err=$ac_c_preproc_warn_flag
9559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9560 else
9561 ac_cpp_err=
9562 fi
9563 else
9564 ac_cpp_err=yes
9565 fi
9566 if test -z "$ac_cpp_err"; then
9567 ac_header_preproc=yes
9568 else
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9571
9572 ac_header_preproc=no
9573 fi
9574 rm -f conftest.err conftest.$ac_ext
9575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9576 echo "${ECHO_T}$ac_header_preproc" >&6
9577
9578 # So? What about this header?
9579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9580 yes:no: )
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9585 ac_header_preproc=yes
9586 ;;
9587 no:yes:* )
9588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9600 (
9601 cat <<\_ASBOX
9602 ## ------------------------------------------ ##
9603 ## Report this to the AC_PACKAGE_NAME lists. ##
9604 ## ------------------------------------------ ##
9605 _ASBOX
9606 ) |
9607 sed "s/^/$as_me: WARNING: /" >&2
9608 ;;
9609 esac
9610 echo "$as_me:$LINENO: checking for $ac_header" >&5
9611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615 eval "$as_ac_Header=\$ac_header_preproc"
9616 fi
9617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9619
9620 fi
9621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9622 cat >>confdefs.h <<_ACEOF
9623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9624 _ACEOF
9625
9626 fi
9627
9628 done
9629
9630
9631
9632
9633 for ac_header in string.h memory.h strings.h
9634 do
9635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9637 echo "$as_me:$LINENO: checking for $ac_header" >&5
9638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 fi
9642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9644 else
9645 # Is the header compilable?
9646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 $ac_includes_default
9655 #include <$ac_header>
9656 _ACEOF
9657 rm -f conftest.$ac_objext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9659 (eval $ac_compile) 2>conftest.er1
9660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -z "$ac_c_werror_flag"
9667 || test ! -s conftest.err'
9668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 (eval $ac_try) 2>&5
9670 ac_status=$?
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); }; } &&
9673 { ac_try='test -s conftest.$ac_objext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_header_compiler=yes
9680 else
9681 echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9683
9684 ac_header_compiler=no
9685 fi
9686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9688 echo "${ECHO_T}$ac_header_compiler" >&6
9689
9690 # Is the header present?
9691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9693 cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h. */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699 #include <$ac_header>
9700 _ACEOF
9701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9703 ac_status=$?
9704 grep -v '^ *+' conftest.er1 >conftest.err
9705 rm -f conftest.er1
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } >/dev/null; then
9709 if test -s conftest.err; then
9710 ac_cpp_err=$ac_c_preproc_warn_flag
9711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9712 else
9713 ac_cpp_err=
9714 fi
9715 else
9716 ac_cpp_err=yes
9717 fi
9718 if test -z "$ac_cpp_err"; then
9719 ac_header_preproc=yes
9720 else
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9723
9724 ac_header_preproc=no
9725 fi
9726 rm -f conftest.err conftest.$ac_ext
9727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9728 echo "${ECHO_T}$ac_header_preproc" >&6
9729
9730 # So? What about this header?
9731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9732 yes:no: )
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9737 ac_header_preproc=yes
9738 ;;
9739 no:yes:* )
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9752 (
9753 cat <<\_ASBOX
9754 ## ------------------------------------------ ##
9755 ## Report this to the AC_PACKAGE_NAME lists. ##
9756 ## ------------------------------------------ ##
9757 _ASBOX
9758 ) |
9759 sed "s/^/$as_me: WARNING: /" >&2
9760 ;;
9761 esac
9762 echo "$as_me:$LINENO: checking for $ac_header" >&5
9763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767 eval "$as_ac_Header=\$ac_header_preproc"
9768 fi
9769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9771
9772 fi
9773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9774 cat >>confdefs.h <<_ACEOF
9775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9776 _ACEOF
9777
9778 fi
9779
9780 done
9781
9782
9783 for ac_header in sys/fault.h
9784 do
9785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
9792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9794 else
9795 # Is the header compilable?
9796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 $ac_includes_default
9805 #include <$ac_header>
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>conftest.er1
9810 ac_status=$?
9811 grep -v '^ *+' conftest.er1 >conftest.err
9812 rm -f conftest.er1
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -z "$ac_c_werror_flag"
9817 || test ! -s conftest.err'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 (eval $ac_try) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest.$ac_objext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 (eval $ac_try) 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 ac_header_compiler=yes
9830 else
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_header_compiler=no
9835 fi
9836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9838 echo "${ECHO_T}$ac_header_compiler" >&6
9839
9840 # Is the header present?
9841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9843 cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h. */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9849 #include <$ac_header>
9850 _ACEOF
9851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9853 ac_status=$?
9854 grep -v '^ *+' conftest.er1 >conftest.err
9855 rm -f conftest.er1
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } >/dev/null; then
9859 if test -s conftest.err; then
9860 ac_cpp_err=$ac_c_preproc_warn_flag
9861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9862 else
9863 ac_cpp_err=
9864 fi
9865 else
9866 ac_cpp_err=yes
9867 fi
9868 if test -z "$ac_cpp_err"; then
9869 ac_header_preproc=yes
9870 else
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9873
9874 ac_header_preproc=no
9875 fi
9876 rm -f conftest.err conftest.$ac_ext
9877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9878 echo "${ECHO_T}$ac_header_preproc" >&6
9879
9880 # So? What about this header?
9881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9882 yes:no: )
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9887 ac_header_preproc=yes
9888 ;;
9889 no:yes:* )
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9902 (
9903 cat <<\_ASBOX
9904 ## ------------------------------------------ ##
9905 ## Report this to the AC_PACKAGE_NAME lists. ##
9906 ## ------------------------------------------ ##
9907 _ASBOX
9908 ) |
9909 sed "s/^/$as_me: WARNING: /" >&2
9910 ;;
9911 esac
9912 echo "$as_me:$LINENO: checking for $ac_header" >&5
9913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917 eval "$as_ac_Header=\$ac_header_preproc"
9918 fi
9919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9921
9922 fi
9923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9924 cat >>confdefs.h <<_ACEOF
9925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9926 _ACEOF
9927
9928 fi
9929
9930 done
9931
9932
9933 for ac_header in sys/file.h
9934 do
9935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9937 echo "$as_me:$LINENO: checking for $ac_header" >&5
9938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9941 fi
9942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9944 else
9945 # Is the header compilable?
9946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h. */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 $ac_includes_default
9955 #include <$ac_header>
9956 _ACEOF
9957 rm -f conftest.$ac_objext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9959 (eval $ac_compile) 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try='test -z "$ac_c_werror_flag"
9967 || test ! -s conftest.err'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest.$ac_objext'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 (eval $ac_try) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_header_compiler=yes
9980 else
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 ac_header_compiler=no
9985 fi
9986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9988 echo "${ECHO_T}$ac_header_compiler" >&6
9989
9990 # Is the header present?
9991 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9993 cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h. */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 #include <$ac_header>
10000 _ACEOF
10001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10003 ac_status=$?
10004 grep -v '^ *+' conftest.er1 >conftest.err
10005 rm -f conftest.er1
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } >/dev/null; then
10009 if test -s conftest.err; then
10010 ac_cpp_err=$ac_c_preproc_warn_flag
10011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10012 else
10013 ac_cpp_err=
10014 fi
10015 else
10016 ac_cpp_err=yes
10017 fi
10018 if test -z "$ac_cpp_err"; then
10019 ac_header_preproc=yes
10020 else
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10023
10024 ac_header_preproc=no
10025 fi
10026 rm -f conftest.err conftest.$ac_ext
10027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10028 echo "${ECHO_T}$ac_header_preproc" >&6
10029
10030 # So? What about this header?
10031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10032 yes:no: )
10033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10037 ac_header_preproc=yes
10038 ;;
10039 no:yes:* )
10040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10047 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10052 (
10053 cat <<\_ASBOX
10054 ## ------------------------------------------ ##
10055 ## Report this to the AC_PACKAGE_NAME lists. ##
10056 ## ------------------------------------------ ##
10057 _ASBOX
10058 ) |
10059 sed "s/^/$as_me: WARNING: /" >&2
10060 ;;
10061 esac
10062 echo "$as_me:$LINENO: checking for $ac_header" >&5
10063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 else
10067 eval "$as_ac_Header=\$ac_header_preproc"
10068 fi
10069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10071
10072 fi
10073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10074 cat >>confdefs.h <<_ACEOF
10075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10076 _ACEOF
10077
10078 fi
10079
10080 done
10081
10082
10083 for ac_header in sys/filio.h
10084 do
10085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
10092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10094 else
10095 # Is the header compilable?
10096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 $ac_includes_default
10105 #include <$ac_header>
10106 _ACEOF
10107 rm -f conftest.$ac_objext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10109 (eval $ac_compile) 2>conftest.er1
10110 ac_status=$?
10111 grep -v '^ *+' conftest.er1 >conftest.err
10112 rm -f conftest.er1
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -z "$ac_c_werror_flag"
10117 || test ! -s conftest.err'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest.$ac_objext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_header_compiler=yes
10130 else
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134 ac_header_compiler=no
10135 fi
10136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10138 echo "${ECHO_T}$ac_header_compiler" >&6
10139
10140 # Is the header present?
10141 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10143 cat >conftest.$ac_ext <<_ACEOF
10144 /* confdefs.h. */
10145 _ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h. */
10149 #include <$ac_header>
10150 _ACEOF
10151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10153 ac_status=$?
10154 grep -v '^ *+' conftest.er1 >conftest.err
10155 rm -f conftest.er1
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } >/dev/null; then
10159 if test -s conftest.err; then
10160 ac_cpp_err=$ac_c_preproc_warn_flag
10161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10162 else
10163 ac_cpp_err=
10164 fi
10165 else
10166 ac_cpp_err=yes
10167 fi
10168 if test -z "$ac_cpp_err"; then
10169 ac_header_preproc=yes
10170 else
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10173
10174 ac_header_preproc=no
10175 fi
10176 rm -f conftest.err conftest.$ac_ext
10177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10178 echo "${ECHO_T}$ac_header_preproc" >&6
10179
10180 # So? What about this header?
10181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10182 yes:no: )
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10187 ac_header_preproc=yes
10188 ;;
10189 no:yes:* )
10190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10202 (
10203 cat <<\_ASBOX
10204 ## ------------------------------------------ ##
10205 ## Report this to the AC_PACKAGE_NAME lists. ##
10206 ## ------------------------------------------ ##
10207 _ASBOX
10208 ) |
10209 sed "s/^/$as_me: WARNING: /" >&2
10210 ;;
10211 esac
10212 echo "$as_me:$LINENO: checking for $ac_header" >&5
10213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217 eval "$as_ac_Header=\$ac_header_preproc"
10218 fi
10219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10221
10222 fi
10223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10224 cat >>confdefs.h <<_ACEOF
10225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10226 _ACEOF
10227
10228 fi
10229
10230 done
10231
10232
10233 for ac_header in sys/ioctl.h
10234 do
10235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10237 echo "$as_me:$LINENO: checking for $ac_header" >&5
10238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 fi
10242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10244 else
10245 # Is the header compilable?
10246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10248 cat >conftest.$ac_ext <<_ACEOF
10249 /* confdefs.h. */
10250 _ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h. */
10254 $ac_includes_default
10255 #include <$ac_header>
10256 _ACEOF
10257 rm -f conftest.$ac_objext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>conftest.er1
10260 ac_status=$?
10261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } &&
10266 { ac_try='test -z "$ac_c_werror_flag"
10267 || test ! -s conftest.err'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; } &&
10273 { ac_try='test -s conftest.$ac_objext'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 ac_header_compiler=yes
10280 else
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10283
10284 ac_header_compiler=no
10285 fi
10286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10288 echo "${ECHO_T}$ac_header_compiler" >&6
10289
10290 # Is the header present?
10291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10293 cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h. */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10299 #include <$ac_header>
10300 _ACEOF
10301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } >/dev/null; then
10309 if test -s conftest.err; then
10310 ac_cpp_err=$ac_c_preproc_warn_flag
10311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10312 else
10313 ac_cpp_err=
10314 fi
10315 else
10316 ac_cpp_err=yes
10317 fi
10318 if test -z "$ac_cpp_err"; then
10319 ac_header_preproc=yes
10320 else
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10323
10324 ac_header_preproc=no
10325 fi
10326 rm -f conftest.err conftest.$ac_ext
10327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10328 echo "${ECHO_T}$ac_header_preproc" >&6
10329
10330 # So? What about this header?
10331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10332 yes:no: )
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10337 ac_header_preproc=yes
10338 ;;
10339 no:yes:* )
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10352 (
10353 cat <<\_ASBOX
10354 ## ------------------------------------------ ##
10355 ## Report this to the AC_PACKAGE_NAME lists. ##
10356 ## ------------------------------------------ ##
10357 _ASBOX
10358 ) |
10359 sed "s/^/$as_me: WARNING: /" >&2
10360 ;;
10361 esac
10362 echo "$as_me:$LINENO: checking for $ac_header" >&5
10363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 eval "$as_ac_Header=\$ac_header_preproc"
10368 fi
10369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10371
10372 fi
10373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10374 cat >>confdefs.h <<_ACEOF
10375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10376 _ACEOF
10377
10378 fi
10379
10380 done
10381
10382
10383 for ac_header in sys/param.h
10384 do
10385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10387 echo "$as_me:$LINENO: checking for $ac_header" >&5
10388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
10395 # Is the header compilable?
10396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10398 cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h. */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10404 $ac_includes_default
10405 #include <$ac_header>
10406 _ACEOF
10407 rm -f conftest.$ac_objext
10408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409 (eval $ac_compile) 2>conftest.er1
10410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } &&
10416 { ac_try='test -z "$ac_c_werror_flag"
10417 || test ! -s conftest.err'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; } &&
10423 { ac_try='test -s conftest.$ac_objext'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10429 ac_header_compiler=yes
10430 else
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10433
10434 ac_header_compiler=no
10435 fi
10436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10438 echo "${ECHO_T}$ac_header_compiler" >&6
10439
10440 # Is the header present?
10441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10443 cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h. */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10449 #include <$ac_header>
10450 _ACEOF
10451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } >/dev/null; then
10459 if test -s conftest.err; then
10460 ac_cpp_err=$ac_c_preproc_warn_flag
10461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10462 else
10463 ac_cpp_err=
10464 fi
10465 else
10466 ac_cpp_err=yes
10467 fi
10468 if test -z "$ac_cpp_err"; then
10469 ac_header_preproc=yes
10470 else
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474 ac_header_preproc=no
10475 fi
10476 rm -f conftest.err conftest.$ac_ext
10477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10478 echo "${ECHO_T}$ac_header_preproc" >&6
10479
10480 # So? What about this header?
10481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10482 yes:no: )
10483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10487 ac_header_preproc=yes
10488 ;;
10489 no:yes:* )
10490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10502 (
10503 cat <<\_ASBOX
10504 ## ------------------------------------------ ##
10505 ## Report this to the AC_PACKAGE_NAME lists. ##
10506 ## ------------------------------------------ ##
10507 _ASBOX
10508 ) |
10509 sed "s/^/$as_me: WARNING: /" >&2
10510 ;;
10511 esac
10512 echo "$as_me:$LINENO: checking for $ac_header" >&5
10513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517 eval "$as_ac_Header=\$ac_header_preproc"
10518 fi
10519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10521
10522 fi
10523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10524 cat >>confdefs.h <<_ACEOF
10525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10526 _ACEOF
10527
10528 fi
10529
10530 done
10531
10532
10533 for ac_header in sys/resource.h
10534 do
10535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10537 echo "$as_me:$LINENO: checking for $ac_header" >&5
10538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 fi
10542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10544 else
10545 # Is the header compilable?
10546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 $ac_includes_default
10555 #include <$ac_header>
10556 _ACEOF
10557 rm -f conftest.$ac_objext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10559 (eval $ac_compile) 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -z "$ac_c_werror_flag"
10567 || test ! -s conftest.err'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; } &&
10573 { ac_try='test -s conftest.$ac_objext'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 ac_header_compiler=yes
10580 else
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10583
10584 ac_header_compiler=no
10585 fi
10586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10588 echo "${ECHO_T}$ac_header_compiler" >&6
10589
10590 # Is the header present?
10591 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10593 cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h. */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10599 #include <$ac_header>
10600 _ACEOF
10601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10603 ac_status=$?
10604 grep -v '^ *+' conftest.er1 >conftest.err
10605 rm -f conftest.er1
10606 cat conftest.err >&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } >/dev/null; then
10609 if test -s conftest.err; then
10610 ac_cpp_err=$ac_c_preproc_warn_flag
10611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10612 else
10613 ac_cpp_err=
10614 fi
10615 else
10616 ac_cpp_err=yes
10617 fi
10618 if test -z "$ac_cpp_err"; then
10619 ac_header_preproc=yes
10620 else
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10623
10624 ac_header_preproc=no
10625 fi
10626 rm -f conftest.err conftest.$ac_ext
10627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10628 echo "${ECHO_T}$ac_header_preproc" >&6
10629
10630 # So? What about this header?
10631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10632 yes:no: )
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10637 ac_header_preproc=yes
10638 ;;
10639 no:yes:* )
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10652 (
10653 cat <<\_ASBOX
10654 ## ------------------------------------------ ##
10655 ## Report this to the AC_PACKAGE_NAME lists. ##
10656 ## ------------------------------------------ ##
10657 _ASBOX
10658 ) |
10659 sed "s/^/$as_me: WARNING: /" >&2
10660 ;;
10661 esac
10662 echo "$as_me:$LINENO: checking for $ac_header" >&5
10663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667 eval "$as_ac_Header=\$ac_header_preproc"
10668 fi
10669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10671
10672 fi
10673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10674 cat >>confdefs.h <<_ACEOF
10675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10676 _ACEOF
10677
10678 fi
10679
10680 done
10681
10682
10683 for ac_header in sys/proc.h
10684 do
10685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10686 echo "$as_me:$LINENO: checking for $ac_header" >&5
10687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h. */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 #if HAVE_SYS_PARAM_H
10698 # include <sys/param.h>
10699 #endif
10700
10701
10702 #include <$ac_header>
10703 _ACEOF
10704 rm -f conftest.$ac_objext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10706 (eval $ac_compile) 2>conftest.er1
10707 ac_status=$?
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
10713 { ac_try='test -z "$ac_c_werror_flag"
10714 || test ! -s conftest.err'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; } &&
10720 { ac_try='test -s conftest.$ac_objext'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }; then
10726 eval "$as_ac_Header=yes"
10727 else
10728 echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10730
10731 eval "$as_ac_Header=no"
10732 fi
10733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10734 fi
10735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10738 cat >>confdefs.h <<_ACEOF
10739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10740 _ACEOF
10741
10742 fi
10743
10744 done
10745
10746
10747 for ac_header in sys/procfs.h
10748 do
10749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10751 echo "$as_me:$LINENO: checking for $ac_header" >&5
10752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 fi
10756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10758 else
10759 # Is the header compilable?
10760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10762 cat >conftest.$ac_ext <<_ACEOF
10763 /* confdefs.h. */
10764 _ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10768 $ac_includes_default
10769 #include <$ac_header>
10770 _ACEOF
10771 rm -f conftest.$ac_objext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773 (eval $ac_compile) 2>conftest.er1
10774 ac_status=$?
10775 grep -v '^ *+' conftest.er1 >conftest.err
10776 rm -f conftest.er1
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try='test -z "$ac_c_werror_flag"
10781 || test ! -s conftest.err'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try='test -s conftest.$ac_objext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10790 ac_status=$?
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_header_compiler=yes
10794 else
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798 ac_header_compiler=no
10799 fi
10800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10802 echo "${ECHO_T}$ac_header_compiler" >&6
10803
10804 # Is the header present?
10805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h. */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 #include <$ac_header>
10814 _ACEOF
10815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } >/dev/null; then
10823 if test -s conftest.err; then
10824 ac_cpp_err=$ac_c_preproc_warn_flag
10825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10826 else
10827 ac_cpp_err=
10828 fi
10829 else
10830 ac_cpp_err=yes
10831 fi
10832 if test -z "$ac_cpp_err"; then
10833 ac_header_preproc=yes
10834 else
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10837
10838 ac_header_preproc=no
10839 fi
10840 rm -f conftest.err conftest.$ac_ext
10841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10842 echo "${ECHO_T}$ac_header_preproc" >&6
10843
10844 # So? What about this header?
10845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10846 yes:no: )
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10851 ac_header_preproc=yes
10852 ;;
10853 no:yes:* )
10854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10866 (
10867 cat <<\_ASBOX
10868 ## ------------------------------------------ ##
10869 ## Report this to the AC_PACKAGE_NAME lists. ##
10870 ## ------------------------------------------ ##
10871 _ASBOX
10872 ) |
10873 sed "s/^/$as_me: WARNING: /" >&2
10874 ;;
10875 esac
10876 echo "$as_me:$LINENO: checking for $ac_header" >&5
10877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881 eval "$as_ac_Header=\$ac_header_preproc"
10882 fi
10883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10885
10886 fi
10887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10888 cat >>confdefs.h <<_ACEOF
10889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10890 _ACEOF
10891
10892 fi
10893
10894 done
10895
10896
10897
10898 for ac_header in sys/ptrace.h ptrace.h
10899 do
10900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10902 echo "$as_me:$LINENO: checking for $ac_header" >&5
10903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 fi
10907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10909 else
10910 # Is the header compilable?
10911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10913 cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h. */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919 $ac_includes_default
10920 #include <$ac_header>
10921 _ACEOF
10922 rm -f conftest.$ac_objext
10923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10924 (eval $ac_compile) 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -z "$ac_c_werror_flag"
10932 || test ! -s conftest.err'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; } &&
10938 { ac_try='test -s conftest.$ac_objext'
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10941 ac_status=$?
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; }; then
10944 ac_header_compiler=yes
10945 else
10946 echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10948
10949 ac_header_compiler=no
10950 fi
10951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10953 echo "${ECHO_T}$ac_header_compiler" >&6
10954
10955 # Is the header present?
10956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10958 cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h. */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 #include <$ac_header>
10965 _ACEOF
10966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } >/dev/null; then
10974 if test -s conftest.err; then
10975 ac_cpp_err=$ac_c_preproc_warn_flag
10976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10977 else
10978 ac_cpp_err=
10979 fi
10980 else
10981 ac_cpp_err=yes
10982 fi
10983 if test -z "$ac_cpp_err"; then
10984 ac_header_preproc=yes
10985 else
10986 echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10988
10989 ac_header_preproc=no
10990 fi
10991 rm -f conftest.err conftest.$ac_ext
10992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10993 echo "${ECHO_T}$ac_header_preproc" >&6
10994
10995 # So? What about this header?
10996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10997 yes:no: )
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11002 ac_header_preproc=yes
11003 ;;
11004 no:yes:* )
11005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11017 (
11018 cat <<\_ASBOX
11019 ## ------------------------------------------ ##
11020 ## Report this to the AC_PACKAGE_NAME lists. ##
11021 ## ------------------------------------------ ##
11022 _ASBOX
11023 ) |
11024 sed "s/^/$as_me: WARNING: /" >&2
11025 ;;
11026 esac
11027 echo "$as_me:$LINENO: checking for $ac_header" >&5
11028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032 eval "$as_ac_Header=\$ac_header_preproc"
11033 fi
11034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11036
11037 fi
11038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11039 cat >>confdefs.h <<_ACEOF
11040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11041 _ACEOF
11042
11043 fi
11044
11045 done
11046
11047
11048
11049 for ac_header in sys/reg.h sys/debugreg.h
11050 do
11051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11053 echo "$as_me:$LINENO: checking for $ac_header" >&5
11054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 fi
11058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11060 else
11061 # Is the header compilable?
11062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 $ac_includes_default
11071 #include <$ac_header>
11072 _ACEOF
11073 rm -f conftest.$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075 (eval $ac_compile) 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try='test -s conftest.$ac_objext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_header_compiler=yes
11096 else
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100 ac_header_compiler=no
11101 fi
11102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104 echo "${ECHO_T}$ac_header_compiler" >&6
11105
11106 # Is the header present?
11107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11109 cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h. */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 #include <$ac_header>
11116 _ACEOF
11117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11119 ac_status=$?
11120 grep -v '^ *+' conftest.er1 >conftest.err
11121 rm -f conftest.er1
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } >/dev/null; then
11125 if test -s conftest.err; then
11126 ac_cpp_err=$ac_c_preproc_warn_flag
11127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11128 else
11129 ac_cpp_err=
11130 fi
11131 else
11132 ac_cpp_err=yes
11133 fi
11134 if test -z "$ac_cpp_err"; then
11135 ac_header_preproc=yes
11136 else
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 ac_header_preproc=no
11141 fi
11142 rm -f conftest.err conftest.$ac_ext
11143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11144 echo "${ECHO_T}$ac_header_preproc" >&6
11145
11146 # So? What about this header?
11147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11148 yes:no: )
11149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11153 ac_header_preproc=yes
11154 ;;
11155 no:yes:* )
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11168 (
11169 cat <<\_ASBOX
11170 ## ------------------------------------------ ##
11171 ## Report this to the AC_PACKAGE_NAME lists. ##
11172 ## ------------------------------------------ ##
11173 _ASBOX
11174 ) |
11175 sed "s/^/$as_me: WARNING: /" >&2
11176 ;;
11177 esac
11178 echo "$as_me:$LINENO: checking for $ac_header" >&5
11179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183 eval "$as_ac_Header=\$ac_header_preproc"
11184 fi
11185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11187
11188 fi
11189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11190 cat >>confdefs.h <<_ACEOF
11191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11192 _ACEOF
11193
11194 fi
11195
11196 done
11197
11198
11199 for ac_header in sys/select.h
11200 do
11201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11203 echo "$as_me:$LINENO: checking for $ac_header" >&5
11204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 fi
11208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11210 else
11211 # Is the header compilable?
11212 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h. */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220 $ac_includes_default
11221 #include <$ac_header>
11222 _ACEOF
11223 rm -f conftest.$ac_objext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225 (eval $ac_compile) 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest.$ac_objext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_header_compiler=yes
11246 else
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11249
11250 ac_header_compiler=no
11251 fi
11252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11254 echo "${ECHO_T}$ac_header_compiler" >&6
11255
11256 # Is the header present?
11257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11259 cat >conftest.$ac_ext <<_ACEOF
11260 /* confdefs.h. */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h. */
11265 #include <$ac_header>
11266 _ACEOF
11267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } >/dev/null; then
11275 if test -s conftest.err; then
11276 ac_cpp_err=$ac_c_preproc_warn_flag
11277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11278 else
11279 ac_cpp_err=
11280 fi
11281 else
11282 ac_cpp_err=yes
11283 fi
11284 if test -z "$ac_cpp_err"; then
11285 ac_header_preproc=yes
11286 else
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 ac_header_preproc=no
11291 fi
11292 rm -f conftest.err conftest.$ac_ext
11293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11294 echo "${ECHO_T}$ac_header_preproc" >&6
11295
11296 # So? What about this header?
11297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11298 yes:no: )
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11303 ac_header_preproc=yes
11304 ;;
11305 no:yes:* )
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11318 (
11319 cat <<\_ASBOX
11320 ## ------------------------------------------ ##
11321 ## Report this to the AC_PACKAGE_NAME lists. ##
11322 ## ------------------------------------------ ##
11323 _ASBOX
11324 ) |
11325 sed "s/^/$as_me: WARNING: /" >&2
11326 ;;
11327 esac
11328 echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333 eval "$as_ac_Header=\$ac_header_preproc"
11334 fi
11335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11337
11338 fi
11339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11340 cat >>confdefs.h <<_ACEOF
11341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11342 _ACEOF
11343
11344 fi
11345
11346 done
11347
11348
11349 for ac_header in sys/syscall.h
11350 do
11351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11353 echo "$as_me:$LINENO: checking for $ac_header" >&5
11354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 fi
11358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11360 else
11361 # Is the header compilable?
11362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11364 cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h. */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 $ac_includes_default
11371 #include <$ac_header>
11372 _ACEOF
11373 rm -f conftest.$ac_objext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11375 (eval $ac_compile) 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag"
11383 || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try='test -s conftest.$ac_objext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_header_compiler=yes
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11399
11400 ac_header_compiler=no
11401 fi
11402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11404 echo "${ECHO_T}$ac_header_compiler" >&6
11405
11406 # Is the header present?
11407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11409 cat >conftest.$ac_ext <<_ACEOF
11410 /* confdefs.h. */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11415 #include <$ac_header>
11416 _ACEOF
11417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11419 ac_status=$?
11420 grep -v '^ *+' conftest.er1 >conftest.err
11421 rm -f conftest.er1
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } >/dev/null; then
11425 if test -s conftest.err; then
11426 ac_cpp_err=$ac_c_preproc_warn_flag
11427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11428 else
11429 ac_cpp_err=
11430 fi
11431 else
11432 ac_cpp_err=yes
11433 fi
11434 if test -z "$ac_cpp_err"; then
11435 ac_header_preproc=yes
11436 else
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440 ac_header_preproc=no
11441 fi
11442 rm -f conftest.err conftest.$ac_ext
11443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11444 echo "${ECHO_T}$ac_header_preproc" >&6
11445
11446 # So? What about this header?
11447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11448 yes:no: )
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11453 ac_header_preproc=yes
11454 ;;
11455 no:yes:* )
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11468 (
11469 cat <<\_ASBOX
11470 ## ------------------------------------------ ##
11471 ## Report this to the AC_PACKAGE_NAME lists. ##
11472 ## ------------------------------------------ ##
11473 _ASBOX
11474 ) |
11475 sed "s/^/$as_me: WARNING: /" >&2
11476 ;;
11477 esac
11478 echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 else
11483 eval "$as_ac_Header=\$ac_header_preproc"
11484 fi
11485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11487
11488 fi
11489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11490 cat >>confdefs.h <<_ACEOF
11491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11492 _ACEOF
11493
11494 fi
11495
11496 done
11497
11498
11499 for ac_header in sys/types.h
11500 do
11501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11503 echo "$as_me:$LINENO: checking for $ac_header" >&5
11504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 fi
11508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11510 else
11511 # Is the header compilable?
11512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h. */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520 $ac_includes_default
11521 #include <$ac_header>
11522 _ACEOF
11523 rm -f conftest.$ac_objext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11525 (eval $ac_compile) 2>conftest.er1
11526 ac_status=$?
11527 grep -v '^ *+' conftest.er1 >conftest.err
11528 rm -f conftest.er1
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_c_werror_flag"
11533 || test ! -s conftest.err'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; } &&
11539 { ac_try='test -s conftest.$ac_objext'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 ac_header_compiler=yes
11546 else
11547 echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11549
11550 ac_header_compiler=no
11551 fi
11552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11554 echo "${ECHO_T}$ac_header_compiler" >&6
11555
11556 # Is the header present?
11557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11559 cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h. */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 #include <$ac_header>
11566 _ACEOF
11567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } >/dev/null; then
11575 if test -s conftest.err; then
11576 ac_cpp_err=$ac_c_preproc_warn_flag
11577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11578 else
11579 ac_cpp_err=
11580 fi
11581 else
11582 ac_cpp_err=yes
11583 fi
11584 if test -z "$ac_cpp_err"; then
11585 ac_header_preproc=yes
11586 else
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11589
11590 ac_header_preproc=no
11591 fi
11592 rm -f conftest.err conftest.$ac_ext
11593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11594 echo "${ECHO_T}$ac_header_preproc" >&6
11595
11596 # So? What about this header?
11597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11598 yes:no: )
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11603 ac_header_preproc=yes
11604 ;;
11605 no:yes:* )
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11618 (
11619 cat <<\_ASBOX
11620 ## ------------------------------------------ ##
11621 ## Report this to the AC_PACKAGE_NAME lists. ##
11622 ## ------------------------------------------ ##
11623 _ASBOX
11624 ) |
11625 sed "s/^/$as_me: WARNING: /" >&2
11626 ;;
11627 esac
11628 echo "$as_me:$LINENO: checking for $ac_header" >&5
11629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633 eval "$as_ac_Header=\$ac_header_preproc"
11634 fi
11635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11637
11638 fi
11639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11640 cat >>confdefs.h <<_ACEOF
11641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11642 _ACEOF
11643
11644 fi
11645
11646 done
11647
11648
11649 for ac_header in sys/user.h
11650 do
11651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11652 echo "$as_me:$LINENO: checking for $ac_header" >&5
11653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h. */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 #if HAVE_SYS_PARAM_H
11664 # include <sys/param.h>
11665 #endif
11666
11667
11668 #include <$ac_header>
11669 _ACEOF
11670 rm -f conftest.$ac_objext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11672 (eval $ac_compile) 2>conftest.er1
11673 ac_status=$?
11674 grep -v '^ *+' conftest.er1 >conftest.err
11675 rm -f conftest.er1
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
11679 { ac_try='test -z "$ac_c_werror_flag"
11680 || test ! -s conftest.err'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11683 ac_status=$?
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; } &&
11686 { ac_try='test -s conftest.$ac_objext'
11687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688 (eval $ac_try) 2>&5
11689 ac_status=$?
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; }; then
11692 eval "$as_ac_Header=yes"
11693 else
11694 echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11696
11697 eval "$as_ac_Header=no"
11698 fi
11699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11700 fi
11701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11704 cat >>confdefs.h <<_ACEOF
11705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11706 _ACEOF
11707
11708 fi
11709
11710 done
11711
11712
11713
11714 for ac_header in sys/wait.h wait.h
11715 do
11716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11718 echo "$as_me:$LINENO: checking for $ac_header" >&5
11719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 fi
11723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11725 else
11726 # Is the header compilable?
11727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11729 cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h. */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 $ac_includes_default
11736 #include <$ac_header>
11737 _ACEOF
11738 rm -f conftest.$ac_objext
11739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11740 (eval $ac_compile) 2>conftest.er1
11741 ac_status=$?
11742 grep -v '^ *+' conftest.er1 >conftest.err
11743 rm -f conftest.er1
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try='test -z "$ac_c_werror_flag"
11748 || test ! -s conftest.err'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest.$ac_objext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 ac_header_compiler=yes
11761 else
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765 ac_header_compiler=no
11766 fi
11767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11769 echo "${ECHO_T}$ac_header_compiler" >&6
11770
11771 # Is the header present?
11772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h. */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 #include <$ac_header>
11781 _ACEOF
11782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } >/dev/null; then
11790 if test -s conftest.err; then
11791 ac_cpp_err=$ac_c_preproc_warn_flag
11792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11793 else
11794 ac_cpp_err=
11795 fi
11796 else
11797 ac_cpp_err=yes
11798 fi
11799 if test -z "$ac_cpp_err"; then
11800 ac_header_preproc=yes
11801 else
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 ac_header_preproc=no
11806 fi
11807 rm -f conftest.err conftest.$ac_ext
11808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11809 echo "${ECHO_T}$ac_header_preproc" >&6
11810
11811 # So? What about this header?
11812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11813 yes:no: )
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11818 ac_header_preproc=yes
11819 ;;
11820 no:yes:* )
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11833 (
11834 cat <<\_ASBOX
11835 ## ------------------------------------------ ##
11836 ## Report this to the AC_PACKAGE_NAME lists. ##
11837 ## ------------------------------------------ ##
11838 _ASBOX
11839 ) |
11840 sed "s/^/$as_me: WARNING: /" >&2
11841 ;;
11842 esac
11843 echo "$as_me:$LINENO: checking for $ac_header" >&5
11844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 else
11848 eval "$as_ac_Header=\$ac_header_preproc"
11849 fi
11850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11852
11853 fi
11854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11857 _ACEOF
11858
11859 fi
11860
11861 done
11862
11863
11864
11865
11866 for ac_header in termios.h termio.h sgtty.h
11867 do
11868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11870 echo "$as_me:$LINENO: checking for $ac_header" >&5
11871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 fi
11875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11877 else
11878 # Is the header compilable?
11879 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11881 cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h. */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 $ac_includes_default
11888 #include <$ac_header>
11889 _ACEOF
11890 rm -f conftest.$ac_objext
11891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11892 (eval $ac_compile) 2>conftest.er1
11893 ac_status=$?
11894 grep -v '^ *+' conftest.er1 >conftest.err
11895 rm -f conftest.er1
11896 cat conftest.err >&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } &&
11899 { ac_try='test -z "$ac_c_werror_flag"
11900 || test ! -s conftest.err'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest.$ac_objext'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 ac_header_compiler=yes
11913 else
11914 echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917 ac_header_compiler=no
11918 fi
11919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11921 echo "${ECHO_T}$ac_header_compiler" >&6
11922
11923 # Is the header present?
11924 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11926 cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h. */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 #include <$ac_header>
11933 _ACEOF
11934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } >/dev/null; then
11942 if test -s conftest.err; then
11943 ac_cpp_err=$ac_c_preproc_warn_flag
11944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11945 else
11946 ac_cpp_err=
11947 fi
11948 else
11949 ac_cpp_err=yes
11950 fi
11951 if test -z "$ac_cpp_err"; then
11952 ac_header_preproc=yes
11953 else
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 ac_header_preproc=no
11958 fi
11959 rm -f conftest.err conftest.$ac_ext
11960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11961 echo "${ECHO_T}$ac_header_preproc" >&6
11962
11963 # So? What about this header?
11964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11965 yes:no: )
11966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11969 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11970 ac_header_preproc=yes
11971 ;;
11972 no:yes:* )
11973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11976 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11978 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11980 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11984 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11985 (
11986 cat <<\_ASBOX
11987 ## ------------------------------------------ ##
11988 ## Report this to the AC_PACKAGE_NAME lists. ##
11989 ## ------------------------------------------ ##
11990 _ASBOX
11991 ) |
11992 sed "s/^/$as_me: WARNING: /" >&2
11993 ;;
11994 esac
11995 echo "$as_me:$LINENO: checking for $ac_header" >&5
11996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 else
12000 eval "$as_ac_Header=\$ac_header_preproc"
12001 fi
12002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12004
12005 fi
12006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12007 cat >>confdefs.h <<_ACEOF
12008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12009 _ACEOF
12010
12011 fi
12012
12013 done
12014
12015
12016 for ac_header in unistd.h
12017 do
12018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12020 echo "$as_me:$LINENO: checking for $ac_header" >&5
12021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 fi
12025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12027 else
12028 # Is the header compilable?
12029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12031 cat >conftest.$ac_ext <<_ACEOF
12032 /* confdefs.h. */
12033 _ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12037 $ac_includes_default
12038 #include <$ac_header>
12039 _ACEOF
12040 rm -f conftest.$ac_objext
12041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12042 (eval $ac_compile) 2>conftest.er1
12043 ac_status=$?
12044 grep -v '^ *+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } &&
12049 { ac_try='test -z "$ac_c_werror_flag"
12050 || test ! -s conftest.err'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try='test -s conftest.$ac_objext'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 ac_header_compiler=yes
12063 else
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12066
12067 ac_header_compiler=no
12068 fi
12069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12071 echo "${ECHO_T}$ac_header_compiler" >&6
12072
12073 # Is the header present?
12074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12076 cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h. */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12082 #include <$ac_header>
12083 _ACEOF
12084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12086 ac_status=$?
12087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } >/dev/null; then
12092 if test -s conftest.err; then
12093 ac_cpp_err=$ac_c_preproc_warn_flag
12094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12095 else
12096 ac_cpp_err=
12097 fi
12098 else
12099 ac_cpp_err=yes
12100 fi
12101 if test -z "$ac_cpp_err"; then
12102 ac_header_preproc=yes
12103 else
12104 echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12106
12107 ac_header_preproc=no
12108 fi
12109 rm -f conftest.err conftest.$ac_ext
12110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12111 echo "${ECHO_T}$ac_header_preproc" >&6
12112
12113 # So? What about this header?
12114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12115 yes:no: )
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12120 ac_header_preproc=yes
12121 ;;
12122 no:yes:* )
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12135 (
12136 cat <<\_ASBOX
12137 ## ------------------------------------------ ##
12138 ## Report this to the AC_PACKAGE_NAME lists. ##
12139 ## ------------------------------------------ ##
12140 _ASBOX
12141 ) |
12142 sed "s/^/$as_me: WARNING: /" >&2
12143 ;;
12144 esac
12145 echo "$as_me:$LINENO: checking for $ac_header" >&5
12146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150 eval "$as_ac_Header=\$ac_header_preproc"
12151 fi
12152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12154
12155 fi
12156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12157 cat >>confdefs.h <<_ACEOF
12158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12159 _ACEOF
12160
12161 fi
12162
12163 done
12164
12165
12166 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12167 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12168 # think that we don't have <curses.h> if we're using GCC.
12169 case $host_os in
12170 solaris2.[789])
12171 if test "$GCC" = yes; then
12172
12173 cat >>confdefs.h <<\_ACEOF
12174 #define _MSE_INT_H 1
12175 _ACEOF
12176
12177 fi ;;
12178 esac
12179
12180
12181
12182
12183 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12184 do
12185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12187 echo "$as_me:$LINENO: checking for $ac_header" >&5
12188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 fi
12192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12194 else
12195 # Is the header compilable?
12196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h. */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 $ac_includes_default
12205 #include <$ac_header>
12206 _ACEOF
12207 rm -f conftest.$ac_objext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12209 (eval $ac_compile) 2>conftest.er1
12210 ac_status=$?
12211 grep -v '^ *+' conftest.er1 >conftest.err
12212 rm -f conftest.er1
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } &&
12216 { ac_try='test -z "$ac_c_werror_flag"
12217 || test ! -s conftest.err'
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try='test -s conftest.$ac_objext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_header_compiler=yes
12230 else
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 ac_header_compiler=no
12235 fi
12236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12238 echo "${ECHO_T}$ac_header_compiler" >&6
12239
12240 # Is the header present?
12241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12243 cat >conftest.$ac_ext <<_ACEOF
12244 /* confdefs.h. */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 #include <$ac_header>
12250 _ACEOF
12251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12253 ac_status=$?
12254 grep -v '^ *+' conftest.er1 >conftest.err
12255 rm -f conftest.er1
12256 cat conftest.err >&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } >/dev/null; then
12259 if test -s conftest.err; then
12260 ac_cpp_err=$ac_c_preproc_warn_flag
12261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12262 else
12263 ac_cpp_err=
12264 fi
12265 else
12266 ac_cpp_err=yes
12267 fi
12268 if test -z "$ac_cpp_err"; then
12269 ac_header_preproc=yes
12270 else
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12273
12274 ac_header_preproc=no
12275 fi
12276 rm -f conftest.err conftest.$ac_ext
12277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12278 echo "${ECHO_T}$ac_header_preproc" >&6
12279
12280 # So? What about this header?
12281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12282 yes:no: )
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12287 ac_header_preproc=yes
12288 ;;
12289 no:yes:* )
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12297 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12302 (
12303 cat <<\_ASBOX
12304 ## ------------------------------------------ ##
12305 ## Report this to the AC_PACKAGE_NAME lists. ##
12306 ## ------------------------------------------ ##
12307 _ASBOX
12308 ) |
12309 sed "s/^/$as_me: WARNING: /" >&2
12310 ;;
12311 esac
12312 echo "$as_me:$LINENO: checking for $ac_header" >&5
12313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317 eval "$as_ac_Header=\$ac_header_preproc"
12318 fi
12319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12321
12322 fi
12323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12324 cat >>confdefs.h <<_ACEOF
12325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12326 _ACEOF
12327
12328 fi
12329
12330 done
12331
12332
12333 for ac_header in ncurses/term.h
12334 do
12335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12337 echo "$as_me:$LINENO: checking for $ac_header" >&5
12338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 fi
12342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12344 else
12345 # Is the header compilable?
12346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12348 cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h. */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 $ac_includes_default
12355 #include <$ac_header>
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359 (eval $ac_compile) 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag"
12367 || test ! -s conftest.err'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; } &&
12373 { ac_try='test -s conftest.$ac_objext'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 ac_header_compiler=yes
12380 else
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12383
12384 ac_header_compiler=no
12385 fi
12386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12388 echo "${ECHO_T}$ac_header_compiler" >&6
12389
12390 # Is the header present?
12391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 #include <$ac_header>
12400 _ACEOF
12401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } >/dev/null; then
12409 if test -s conftest.err; then
12410 ac_cpp_err=$ac_c_preproc_warn_flag
12411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12412 else
12413 ac_cpp_err=
12414 fi
12415 else
12416 ac_cpp_err=yes
12417 fi
12418 if test -z "$ac_cpp_err"; then
12419 ac_header_preproc=yes
12420 else
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 ac_header_preproc=no
12425 fi
12426 rm -f conftest.err conftest.$ac_ext
12427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12428 echo "${ECHO_T}$ac_header_preproc" >&6
12429
12430 # So? What about this header?
12431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12432 yes:no: )
12433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12437 ac_header_preproc=yes
12438 ;;
12439 no:yes:* )
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12452 (
12453 cat <<\_ASBOX
12454 ## ------------------------------------------ ##
12455 ## Report this to the AC_PACKAGE_NAME lists. ##
12456 ## ------------------------------------------ ##
12457 _ASBOX
12458 ) |
12459 sed "s/^/$as_me: WARNING: /" >&2
12460 ;;
12461 esac
12462 echo "$as_me:$LINENO: checking for $ac_header" >&5
12463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 else
12467 eval "$as_ac_Header=\$ac_header_preproc"
12468 fi
12469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12471
12472 fi
12473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12474 cat >>confdefs.h <<_ACEOF
12475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12476 _ACEOF
12477
12478 fi
12479
12480 done
12481
12482
12483 for ac_header in term.h
12484 do
12485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12486 echo "$as_me:$LINENO: checking for $ac_header" >&5
12487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12490 else
12491 cat >conftest.$ac_ext <<_ACEOF
12492 /* confdefs.h. */
12493 _ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12497 #if HAVE_CURSES_H
12498 # include <curses.h>
12499 #endif
12500
12501
12502 #include <$ac_header>
12503 _ACEOF
12504 rm -f conftest.$ac_objext
12505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12506 (eval $ac_compile) 2>conftest.er1
12507 ac_status=$?
12508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
12513 { ac_try='test -z "$ac_c_werror_flag"
12514 || test ! -s conftest.err'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest.$ac_objext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 eval "$as_ac_Header=yes"
12527 else
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 eval "$as_ac_Header=no"
12532 fi
12533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12534 fi
12535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12538 cat >>confdefs.h <<_ACEOF
12539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12540 _ACEOF
12541
12542 fi
12543
12544 done
12545
12546
12547 # Check for HP/UX 64-bit shared library support
12548
12549 for ac_header in elf_hp.h
12550 do
12551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12553 echo "$as_me:$LINENO: checking for $ac_header" >&5
12554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 fi
12558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12560 else
12561 # Is the header compilable?
12562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12564 cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h. */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 $ac_includes_default
12571 #include <$ac_header>
12572 _ACEOF
12573 rm -f conftest.$ac_objext
12574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12575 (eval $ac_compile) 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
12582 { ac_try='test -z "$ac_c_werror_flag"
12583 || test ! -s conftest.err'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; } &&
12589 { ac_try='test -s conftest.$ac_objext'
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
12595 ac_header_compiler=yes
12596 else
12597 echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12599
12600 ac_header_compiler=no
12601 fi
12602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12604 echo "${ECHO_T}$ac_header_compiler" >&6
12605
12606 # Is the header present?
12607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12609 cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h. */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 #include <$ac_header>
12616 _ACEOF
12617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } >/dev/null; then
12625 if test -s conftest.err; then
12626 ac_cpp_err=$ac_c_preproc_warn_flag
12627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12628 else
12629 ac_cpp_err=
12630 fi
12631 else
12632 ac_cpp_err=yes
12633 fi
12634 if test -z "$ac_cpp_err"; then
12635 ac_header_preproc=yes
12636 else
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12639
12640 ac_header_preproc=no
12641 fi
12642 rm -f conftest.err conftest.$ac_ext
12643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12644 echo "${ECHO_T}$ac_header_preproc" >&6
12645
12646 # So? What about this header?
12647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12648 yes:no: )
12649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12653 ac_header_preproc=yes
12654 ;;
12655 no:yes:* )
12656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12663 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12668 (
12669 cat <<\_ASBOX
12670 ## ------------------------------------------ ##
12671 ## Report this to the AC_PACKAGE_NAME lists. ##
12672 ## ------------------------------------------ ##
12673 _ASBOX
12674 ) |
12675 sed "s/^/$as_me: WARNING: /" >&2
12676 ;;
12677 esac
12678 echo "$as_me:$LINENO: checking for $ac_header" >&5
12679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683 eval "$as_ac_Header=\$ac_header_preproc"
12684 fi
12685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12687
12688 fi
12689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12690 cat >>confdefs.h <<_ACEOF
12691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12692 _ACEOF
12693
12694 fi
12695
12696 done
12697
12698
12699 # FIXME: kettenis/20030102: In most cases we include these
12700 # unconditionally, so what's the point in checking these?
12701
12702
12703 for ac_header in ctype.h time.h
12704 do
12705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12707 echo "$as_me:$LINENO: checking for $ac_header" >&5
12708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 fi
12712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12714 else
12715 # Is the header compilable?
12716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12718 cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h. */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 $ac_includes_default
12725 #include <$ac_header>
12726 _ACEOF
12727 rm -f conftest.$ac_objext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_c_werror_flag"
12737 || test ! -s conftest.err'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_header_compiler=yes
12750 else
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12753
12754 ac_header_compiler=no
12755 fi
12756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12758 echo "${ECHO_T}$ac_header_compiler" >&6
12759
12760 # Is the header present?
12761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12763 cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h. */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769 #include <$ac_header>
12770 _ACEOF
12771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } >/dev/null; then
12779 if test -s conftest.err; then
12780 ac_cpp_err=$ac_c_preproc_warn_flag
12781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12782 else
12783 ac_cpp_err=
12784 fi
12785 else
12786 ac_cpp_err=yes
12787 fi
12788 if test -z "$ac_cpp_err"; then
12789 ac_header_preproc=yes
12790 else
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794 ac_header_preproc=no
12795 fi
12796 rm -f conftest.err conftest.$ac_ext
12797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12798 echo "${ECHO_T}$ac_header_preproc" >&6
12799
12800 # So? What about this header?
12801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12802 yes:no: )
12803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12807 ac_header_preproc=yes
12808 ;;
12809 no:yes:* )
12810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12822 (
12823 cat <<\_ASBOX
12824 ## ------------------------------------------ ##
12825 ## Report this to the AC_PACKAGE_NAME lists. ##
12826 ## ------------------------------------------ ##
12827 _ASBOX
12828 ) |
12829 sed "s/^/$as_me: WARNING: /" >&2
12830 ;;
12831 esac
12832 echo "$as_me:$LINENO: checking for $ac_header" >&5
12833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 else
12837 eval "$as_ac_Header=\$ac_header_preproc"
12838 fi
12839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12841
12842 fi
12843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12844 cat >>confdefs.h <<_ACEOF
12845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12846 _ACEOF
12847
12848 fi
12849
12850 done
12851
12852
12853 # Create a header we can use portably to get the standard integer types.
12854
12855
12856 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12857
12858 acx_cv_header_stdint=stddef.h
12859 acx_cv_header_stdint_kind="(already complete)"
12860 for i in stdint.h $inttype_headers; do
12861 unset ac_cv_type_uintptr_t
12862 unset ac_cv_type_uintmax_t
12863 unset ac_cv_type_int_least32_t
12864 unset ac_cv_type_int_fast32_t
12865 unset ac_cv_type_uint64_t
12866 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12867 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12868 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12869 if test "${ac_cv_type_uintmax_t+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 else
12872 cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h. */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 #include <sys/types.h>
12879 #include <$i>
12880
12881 int
12882 main ()
12883 {
12884 if ((uintmax_t *) 0)
12885 return 0;
12886 if (sizeof (uintmax_t))
12887 return 0;
12888 ;
12889 return 0;
12890 }
12891 _ACEOF
12892 rm -f conftest.$ac_objext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>conftest.er1
12895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag"
12902 || test ! -s conftest.err'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest.$ac_objext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 ac_cv_type_uintmax_t=yes
12915 else
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919 ac_cv_type_uintmax_t=no
12920 fi
12921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12922 fi
12923 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12924 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12925 if test $ac_cv_type_uintmax_t = yes; then
12926 acx_cv_header_stdint=$i
12927 else
12928 continue
12929 fi
12930
12931 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12932 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12933 if test "${ac_cv_type_uintptr_t+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 else
12936 cat >conftest.$ac_ext <<_ACEOF
12937 /* confdefs.h. */
12938 _ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 #include <sys/types.h>
12943 #include <$i>
12944
12945 int
12946 main ()
12947 {
12948 if ((uintptr_t *) 0)
12949 return 0;
12950 if (sizeof (uintptr_t))
12951 return 0;
12952 ;
12953 return 0;
12954 }
12955 _ACEOF
12956 rm -f conftest.$ac_objext
12957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12958 (eval $ac_compile) 2>conftest.er1
12959 ac_status=$?
12960 grep -v '^ *+' conftest.er1 >conftest.err
12961 rm -f conftest.er1
12962 cat conftest.err >&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); } &&
12965 { ac_try='test -z "$ac_c_werror_flag"
12966 || test ! -s conftest.err'
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12969 ac_status=$?
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; } &&
12972 { ac_try='test -s conftest.$ac_objext'
12973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974 (eval $ac_try) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; }; then
12978 ac_cv_type_uintptr_t=yes
12979 else
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12982
12983 ac_cv_type_uintptr_t=no
12984 fi
12985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986 fi
12987 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12988 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12989 if test $ac_cv_type_uintptr_t = yes; then
12990 :
12991 else
12992 acx_cv_header_stdint_kind="(mostly complete)"
12993 fi
12994
12995 echo "$as_me:$LINENO: checking for int_least32_t" >&5
12996 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
12997 if test "${ac_cv_type_int_least32_t+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 else
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h. */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 #include <sys/types.h>
13007 #include <$i>
13008
13009 int
13010 main ()
13011 {
13012 if ((int_least32_t *) 0)
13013 return 0;
13014 if (sizeof (int_least32_t))
13015 return 0;
13016 ;
13017 return 0;
13018 }
13019 _ACEOF
13020 rm -f conftest.$ac_objext
13021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13022 (eval $ac_compile) 2>conftest.er1
13023 ac_status=$?
13024 grep -v '^ *+' conftest.er1 >conftest.err
13025 rm -f conftest.er1
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } &&
13029 { ac_try='test -z "$ac_c_werror_flag"
13030 || 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_type_int_least32_t=yes
13043 else
13044 echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13046
13047 ac_cv_type_int_least32_t=no
13048 fi
13049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13050 fi
13051 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13052 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13053 if test $ac_cv_type_int_least32_t = yes; then
13054 :
13055 else
13056 acx_cv_header_stdint_kind="(mostly complete)"
13057 fi
13058
13059 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13060 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13061 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064 cat >conftest.$ac_ext <<_ACEOF
13065 /* confdefs.h. */
13066 _ACEOF
13067 cat confdefs.h >>conftest.$ac_ext
13068 cat >>conftest.$ac_ext <<_ACEOF
13069 /* end confdefs.h. */
13070 #include <sys/types.h>
13071 #include <$i>
13072
13073 int
13074 main ()
13075 {
13076 if ((int_fast32_t *) 0)
13077 return 0;
13078 if (sizeof (int_fast32_t))
13079 return 0;
13080 ;
13081 return 0;
13082 }
13083 _ACEOF
13084 rm -f conftest.$ac_objext
13085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086 (eval $ac_compile) 2>conftest.er1
13087 ac_status=$?
13088 grep -v '^ *+' conftest.er1 >conftest.err
13089 rm -f conftest.er1
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -z "$ac_c_werror_flag"
13094 || test ! -s conftest.err'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try='test -s conftest.$ac_objext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_cv_type_int_fast32_t=yes
13107 else
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13110
13111 ac_cv_type_int_fast32_t=no
13112 fi
13113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13114 fi
13115 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13116 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13117 if test $ac_cv_type_int_fast32_t = yes; then
13118 :
13119 else
13120 acx_cv_header_stdint_kind="(mostly complete)"
13121 fi
13122
13123 echo "$as_me:$LINENO: checking for uint64_t" >&5
13124 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13125 if test "${ac_cv_type_uint64_t+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128 cat >conftest.$ac_ext <<_ACEOF
13129 /* confdefs.h. */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 #include <sys/types.h>
13135 #include <$i>
13136
13137 int
13138 main ()
13139 {
13140 if ((uint64_t *) 0)
13141 return 0;
13142 if (sizeof (uint64_t))
13143 return 0;
13144 ;
13145 return 0;
13146 }
13147 _ACEOF
13148 rm -f conftest.$ac_objext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150 (eval $ac_compile) 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } &&
13157 { ac_try='test -z "$ac_c_werror_flag"
13158 || test ! -s conftest.err'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; } &&
13164 { ac_try='test -s conftest.$ac_objext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
13170 ac_cv_type_uint64_t=yes
13171 else
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13174
13175 ac_cv_type_uint64_t=no
13176 fi
13177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13178 fi
13179 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13180 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13181 if test $ac_cv_type_uint64_t = yes; then
13182 :
13183 else
13184 acx_cv_header_stdint_kind="(lacks uint64_t)"
13185 fi
13186
13187 break
13188 done
13189 if test "$acx_cv_header_stdint" = stddef.h; then
13190 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13191 for i in stdint.h $inttype_headers; do
13192 unset ac_cv_type_uintptr_t
13193 unset ac_cv_type_uint32_t
13194 unset ac_cv_type_uint64_t
13195 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13196 echo "$as_me:$LINENO: checking for uint32_t" >&5
13197 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13198 if test "${ac_cv_type_uint32_t+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201 cat >conftest.$ac_ext <<_ACEOF
13202 /* confdefs.h. */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13207 #include <sys/types.h>
13208 #include <$i>
13209
13210 int
13211 main ()
13212 {
13213 if ((uint32_t *) 0)
13214 return 0;
13215 if (sizeof (uint32_t))
13216 return 0;
13217 ;
13218 return 0;
13219 }
13220 _ACEOF
13221 rm -f conftest.$ac_objext
13222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13223 (eval $ac_compile) 2>conftest.er1
13224 ac_status=$?
13225 grep -v '^ *+' conftest.er1 >conftest.err
13226 rm -f conftest.er1
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
13230 { ac_try='test -z "$ac_c_werror_flag"
13231 || test ! -s conftest.err'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; } &&
13237 { ac_try='test -s conftest.$ac_objext'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13243 ac_cv_type_uint32_t=yes
13244 else
13245 echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13247
13248 ac_cv_type_uint32_t=no
13249 fi
13250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13251 fi
13252 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13253 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13254 if test $ac_cv_type_uint32_t = yes; then
13255 acx_cv_header_stdint=$i
13256 else
13257 continue
13258 fi
13259
13260 echo "$as_me:$LINENO: checking for uint64_t" >&5
13261 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13262 if test "${ac_cv_type_uint64_t+set}" = set; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 else
13265 cat >conftest.$ac_ext <<_ACEOF
13266 /* confdefs.h. */
13267 _ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13271 #include <sys/types.h>
13272 #include <$i>
13273
13274 int
13275 main ()
13276 {
13277 if ((uint64_t *) 0)
13278 return 0;
13279 if (sizeof (uint64_t))
13280 return 0;
13281 ;
13282 return 0;
13283 }
13284 _ACEOF
13285 rm -f conftest.$ac_objext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287 (eval $ac_compile) 2>conftest.er1
13288 ac_status=$?
13289 grep -v '^ *+' conftest.er1 >conftest.err
13290 rm -f conftest.er1
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -z "$ac_c_werror_flag"
13295 || test ! -s conftest.err'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest.$ac_objext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_cv_type_uint64_t=yes
13308 else
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 ac_cv_type_uint64_t=no
13313 fi
13314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13315 fi
13316 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13317 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13318
13319 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13320 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13321 if test "${ac_cv_type_uintptr_t+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 else
13324 cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h. */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 #include <sys/types.h>
13331 #include <$i>
13332
13333 int
13334 main ()
13335 {
13336 if ((uintptr_t *) 0)
13337 return 0;
13338 if (sizeof (uintptr_t))
13339 return 0;
13340 ;
13341 return 0;
13342 }
13343 _ACEOF
13344 rm -f conftest.$ac_objext
13345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13346 (eval $ac_compile) 2>conftest.er1
13347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } &&
13353 { ac_try='test -z "$ac_c_werror_flag"
13354 || test ! -s conftest.err'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; } &&
13360 { ac_try='test -s conftest.$ac_objext'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; }; then
13366 ac_cv_type_uintptr_t=yes
13367 else
13368 echo "$as_me: failed program was:" >&5
13369 sed 's/^/| /' conftest.$ac_ext >&5
13370
13371 ac_cv_type_uintptr_t=no
13372 fi
13373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13374 fi
13375 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13376 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13377
13378 break
13379 done
13380 fi
13381 if test "$acx_cv_header_stdint" = stddef.h; then
13382 acx_cv_header_stdint_kind="(u_intXX_t style)"
13383 for i in sys/types.h $inttype_headers; do
13384 unset ac_cv_type_u_int32_t
13385 unset ac_cv_type_u_int64_t
13386 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13387 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13388 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13389 if test "${ac_cv_type_u_int32_t+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392 cat >conftest.$ac_ext <<_ACEOF
13393 /* confdefs.h. */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13398 #include <sys/types.h>
13399 #include <$i>
13400
13401 int
13402 main ()
13403 {
13404 if ((u_int32_t *) 0)
13405 return 0;
13406 if (sizeof (u_int32_t))
13407 return 0;
13408 ;
13409 return 0;
13410 }
13411 _ACEOF
13412 rm -f conftest.$ac_objext
13413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13414 (eval $ac_compile) 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try='test -z "$ac_c_werror_flag"
13422 || test ! -s conftest.err'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 ac_cv_type_u_int32_t=yes
13435 else
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13438
13439 ac_cv_type_u_int32_t=no
13440 fi
13441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13442 fi
13443 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13444 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13445 if test $ac_cv_type_u_int32_t = yes; then
13446 acx_cv_header_stdint=$i
13447 else
13448 continue
13449 fi
13450
13451 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13452 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13453 if test "${ac_cv_type_u_int64_t+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 #include <sys/types.h>
13463 #include <$i>
13464
13465 int
13466 main ()
13467 {
13468 if ((u_int64_t *) 0)
13469 return 0;
13470 if (sizeof (u_int64_t))
13471 return 0;
13472 ;
13473 return 0;
13474 }
13475 _ACEOF
13476 rm -f conftest.$ac_objext
13477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>conftest.er1
13479 ac_status=$?
13480 grep -v '^ *+' conftest.er1 >conftest.err
13481 rm -f conftest.er1
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try='test -z "$ac_c_werror_flag"
13486 || test ! -s conftest.err'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_type_u_int64_t=yes
13499 else
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503 ac_cv_type_u_int64_t=no
13504 fi
13505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13506 fi
13507 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13508 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13509
13510 break
13511 done
13512 fi
13513 if test "$acx_cv_header_stdint" = stddef.h; then
13514 acx_cv_header_stdint_kind="(using manual detection)"
13515 fi
13516
13517 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13518 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13519 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13520 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13521 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13522
13523 # ----------------- Summarize what we found so far
13524
13525 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
13526 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
13527
13528 case `$as_basename gdb_stdint.h ||
13529 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13530 Xgdb_stdint.h : 'X\(//\)$' \| \
13531 Xgdb_stdint.h : 'X\(/\)$' \| \
13532 . : '\(.\)' 2>/dev/null ||
13533 echo X/gdb_stdint.h |
13534 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13535 /^X\/\(\/\/\)$/{ s//\1/; q; }
13536 /^X\/\(\/\).*/{ s//\1/; q; }
13537 s/.*/./; q'` in
13538 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13539 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13540 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13541 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13542 *) ;;
13543 esac
13544
13545 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13546 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13547
13548 # ----------------- done included file, check C basic types --------
13549
13550 # Lacking an uintptr_t? Test size of void *
13551 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13552 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13553 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13554 if test "${ac_cv_type_void_p+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h. */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 $ac_includes_default
13564 int
13565 main ()
13566 {
13567 if ((void * *) 0)
13568 return 0;
13569 if (sizeof (void *))
13570 return 0;
13571 ;
13572 return 0;
13573 }
13574 _ACEOF
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest.$ac_objext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_cv_type_void_p=yes
13598 else
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13601
13602 ac_cv_type_void_p=no
13603 fi
13604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13605 fi
13606 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13607 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13608
13609 echo "$as_me:$LINENO: checking size of void *" >&5
13610 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13611 if test "${ac_cv_sizeof_void_p+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614 if test "$ac_cv_type_void_p" = yes; then
13615 # The cast to unsigned long works around a bug in the HP C Compiler
13616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13618 # This bug is HP SR number 8606223364.
13619 if test "$cross_compiling" = yes; then
13620 # Depending upon the size, compute the lo and hi bounds.
13621 cat >conftest.$ac_ext <<_ACEOF
13622 /* confdefs.h. */
13623 _ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 $ac_includes_default
13628 int
13629 main ()
13630 {
13631 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13632 test_array [0] = 0
13633
13634 ;
13635 return 0;
13636 }
13637 _ACEOF
13638 rm -f conftest.$ac_objext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13640 (eval $ac_compile) 2>conftest.er1
13641 ac_status=$?
13642 grep -v '^ *+' conftest.er1 >conftest.err
13643 rm -f conftest.er1
13644 cat conftest.err >&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try='test -z "$ac_c_werror_flag"
13648 || test ! -s conftest.err'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest.$ac_objext'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13660 ac_lo=0 ac_mid=0
13661 while :; do
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h. */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 $ac_includes_default
13669 int
13670 main ()
13671 {
13672 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13673 test_array [0] = 0
13674
13675 ;
13676 return 0;
13677 }
13678 _ACEOF
13679 rm -f conftest.$ac_objext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681 (eval $ac_compile) 2>conftest.er1
13682 ac_status=$?
13683 grep -v '^ *+' conftest.er1 >conftest.err
13684 rm -f conftest.er1
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } &&
13688 { ac_try='test -z "$ac_c_werror_flag"
13689 || test ! -s conftest.err'
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); }; } &&
13695 { ac_try='test -s conftest.$ac_objext'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 ac_hi=$ac_mid; break
13702 else
13703 echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13705
13706 ac_lo=`expr $ac_mid + 1`
13707 if test $ac_lo -le $ac_mid; then
13708 ac_lo= ac_hi=
13709 break
13710 fi
13711 ac_mid=`expr 2 '*' $ac_mid + 1`
13712 fi
13713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13714 done
13715 else
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13718
13719 cat >conftest.$ac_ext <<_ACEOF
13720 /* confdefs.h. */
13721 _ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13725 $ac_includes_default
13726 int
13727 main ()
13728 {
13729 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13730 test_array [0] = 0
13731
13732 ;
13733 return 0;
13734 }
13735 _ACEOF
13736 rm -f conftest.$ac_objext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>conftest.er1
13739 ac_status=$?
13740 grep -v '^ *+' conftest.er1 >conftest.err
13741 rm -f conftest.er1
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } &&
13745 { ac_try='test -z "$ac_c_werror_flag"
13746 || test ! -s conftest.err'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest.$ac_objext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 ac_hi=-1 ac_mid=-1
13759 while :; do
13760 cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h. */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13766 $ac_includes_default
13767 int
13768 main ()
13769 {
13770 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13771 test_array [0] = 0
13772
13773 ;
13774 return 0;
13775 }
13776 _ACEOF
13777 rm -f conftest.$ac_objext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>conftest.er1
13780 ac_status=$?
13781 grep -v '^ *+' conftest.er1 >conftest.err
13782 rm -f conftest.er1
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag"
13787 || test ! -s conftest.err'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest.$ac_objext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_lo=$ac_mid; break
13800 else
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804 ac_hi=`expr '(' $ac_mid ')' - 1`
13805 if test $ac_mid -le $ac_hi; then
13806 ac_lo= ac_hi=
13807 break
13808 fi
13809 ac_mid=`expr 2 '*' $ac_mid`
13810 fi
13811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13812 done
13813 else
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13816
13817 ac_lo= ac_hi=
13818 fi
13819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13820 fi
13821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13822 # Binary search between lo and hi bounds.
13823 while test "x$ac_lo" != "x$ac_hi"; do
13824 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13825 cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h. */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831 $ac_includes_default
13832 int
13833 main ()
13834 {
13835 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13836 test_array [0] = 0
13837
13838 ;
13839 return 0;
13840 }
13841 _ACEOF
13842 rm -f conftest.$ac_objext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13844 (eval $ac_compile) 2>conftest.er1
13845 ac_status=$?
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try='test -z "$ac_c_werror_flag"
13852 || test ! -s conftest.err'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; } &&
13858 { ac_try='test -s conftest.$ac_objext'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864 ac_hi=$ac_mid
13865 else
13866 echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869 ac_lo=`expr '(' $ac_mid ')' + 1`
13870 fi
13871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13872 done
13873 case $ac_lo in
13874 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13875 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13876 See \`config.log' for more details." >&5
13877 echo "$as_me: error: cannot compute sizeof (void *), 77
13878 See \`config.log' for more details." >&2;}
13879 { (exit 1); exit 1; }; } ;;
13880 esac
13881 else
13882 if test "$cross_compiling" = yes; then
13883 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13884 See \`config.log' for more details." >&5
13885 echo "$as_me: error: cannot run test program while cross compiling
13886 See \`config.log' for more details." >&2;}
13887 { (exit 1); exit 1; }; }
13888 else
13889 cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h. */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 $ac_includes_default
13896 long longval () { return (long) (sizeof (void *)); }
13897 unsigned long ulongval () { return (long) (sizeof (void *)); }
13898 #include <stdio.h>
13899 #include <stdlib.h>
13900 int
13901 main ()
13902 {
13903
13904 FILE *f = fopen ("conftest.val", "w");
13905 if (! f)
13906 exit (1);
13907 if (((long) (sizeof (void *))) < 0)
13908 {
13909 long i = longval ();
13910 if (i != ((long) (sizeof (void *))))
13911 exit (1);
13912 fprintf (f, "%ld\n", i);
13913 }
13914 else
13915 {
13916 unsigned long i = ulongval ();
13917 if (i != ((long) (sizeof (void *))))
13918 exit (1);
13919 fprintf (f, "%lu\n", i);
13920 }
13921 exit (ferror (f) || fclose (f) != 0);
13922
13923 ;
13924 return 0;
13925 }
13926 _ACEOF
13927 rm -f conftest$ac_exeext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929 (eval $ac_link) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_cv_sizeof_void_p=`cat conftest.val`
13939 else
13940 echo "$as_me: program exited with status $ac_status" >&5
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13943
13944 ( exit $ac_status )
13945 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13946 See \`config.log' for more details." >&5
13947 echo "$as_me: error: cannot compute sizeof (void *), 77
13948 See \`config.log' for more details." >&2;}
13949 { (exit 1); exit 1; }; }
13950 fi
13951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13952 fi
13953 fi
13954 rm -f conftest.val
13955 else
13956 ac_cv_sizeof_void_p=0
13957 fi
13958 fi
13959 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13960 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13961 cat >>confdefs.h <<_ACEOF
13962 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13963 _ACEOF
13964
13965 ;;
13966 esac
13967
13968 # Lacking an uint64_t? Test size of long
13969 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13970 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13971 echo $ECHO_N "checking for long... $ECHO_C" >&6
13972 if test "${ac_cv_type_long+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13974 else
13975 cat >conftest.$ac_ext <<_ACEOF
13976 /* confdefs.h. */
13977 _ACEOF
13978 cat confdefs.h >>conftest.$ac_ext
13979 cat >>conftest.$ac_ext <<_ACEOF
13980 /* end confdefs.h. */
13981 $ac_includes_default
13982 int
13983 main ()
13984 {
13985 if ((long *) 0)
13986 return 0;
13987 if (sizeof (long))
13988 return 0;
13989 ;
13990 return 0;
13991 }
13992 _ACEOF
13993 rm -f conftest.$ac_objext
13994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13995 (eval $ac_compile) 2>conftest.er1
13996 ac_status=$?
13997 grep -v '^ *+' conftest.er1 >conftest.err
13998 rm -f conftest.er1
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } &&
14002 { ac_try='test -z "$ac_c_werror_flag"
14003 || test ! -s conftest.err'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; } &&
14009 { ac_try='test -s conftest.$ac_objext'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 ac_cv_type_long=yes
14016 else
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 ac_cv_type_long=no
14021 fi
14022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14023 fi
14024 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14025 echo "${ECHO_T}$ac_cv_type_long" >&6
14026
14027 echo "$as_me:$LINENO: checking size of long" >&5
14028 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14029 if test "${ac_cv_sizeof_long+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 else
14032 if test "$ac_cv_type_long" = yes; then
14033 # The cast to unsigned long works around a bug in the HP C Compiler
14034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14036 # This bug is HP SR number 8606223364.
14037 if test "$cross_compiling" = yes; then
14038 # Depending upon the size, compute the lo and hi bounds.
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h. */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14045 $ac_includes_default
14046 int
14047 main ()
14048 {
14049 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14050 test_array [0] = 0
14051
14052 ;
14053 return 0;
14054 }
14055 _ACEOF
14056 rm -f conftest.$ac_objext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14058 (eval $ac_compile) 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -z "$ac_c_werror_flag"
14066 || test ! -s conftest.err'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest.$ac_objext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_lo=0 ac_mid=0
14079 while :; do
14080 cat >conftest.$ac_ext <<_ACEOF
14081 /* confdefs.h. */
14082 _ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h. */
14086 $ac_includes_default
14087 int
14088 main ()
14089 {
14090 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14091 test_array [0] = 0
14092
14093 ;
14094 return 0;
14095 }
14096 _ACEOF
14097 rm -f conftest.$ac_objext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14099 (eval $ac_compile) 2>conftest.er1
14100 ac_status=$?
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -z "$ac_c_werror_flag"
14107 || test ! -s conftest.err'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest.$ac_objext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_hi=$ac_mid; break
14120 else
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14123
14124 ac_lo=`expr $ac_mid + 1`
14125 if test $ac_lo -le $ac_mid; then
14126 ac_lo= ac_hi=
14127 break
14128 fi
14129 ac_mid=`expr 2 '*' $ac_mid + 1`
14130 fi
14131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14132 done
14133 else
14134 echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14136
14137 cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h. */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 $ac_includes_default
14144 int
14145 main ()
14146 {
14147 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14148 test_array [0] = 0
14149
14150 ;
14151 return 0;
14152 }
14153 _ACEOF
14154 rm -f conftest.$ac_objext
14155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14156 (eval $ac_compile) 2>conftest.er1
14157 ac_status=$?
14158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } &&
14163 { ac_try='test -z "$ac_c_werror_flag"
14164 || test ! -s conftest.err'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; } &&
14170 { ac_try='test -s conftest.$ac_objext'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; }; then
14176 ac_hi=-1 ac_mid=-1
14177 while :; do
14178 cat >conftest.$ac_ext <<_ACEOF
14179 /* confdefs.h. */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14184 $ac_includes_default
14185 int
14186 main ()
14187 {
14188 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14189 test_array [0] = 0
14190
14191 ;
14192 return 0;
14193 }
14194 _ACEOF
14195 rm -f conftest.$ac_objext
14196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14197 (eval $ac_compile) 2>conftest.er1
14198 ac_status=$?
14199 grep -v '^ *+' conftest.er1 >conftest.err
14200 rm -f conftest.er1
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try='test -z "$ac_c_werror_flag"
14205 || test ! -s conftest.err'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; } &&
14211 { ac_try='test -s conftest.$ac_objext'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 ac_lo=$ac_mid; break
14218 else
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222 ac_hi=`expr '(' $ac_mid ')' - 1`
14223 if test $ac_mid -le $ac_hi; then
14224 ac_lo= ac_hi=
14225 break
14226 fi
14227 ac_mid=`expr 2 '*' $ac_mid`
14228 fi
14229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14230 done
14231 else
14232 echo "$as_me: failed program was:" >&5
14233 sed 's/^/| /' conftest.$ac_ext >&5
14234
14235 ac_lo= ac_hi=
14236 fi
14237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14238 fi
14239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14240 # Binary search between lo and hi bounds.
14241 while test "x$ac_lo" != "x$ac_hi"; do
14242 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14243 cat >conftest.$ac_ext <<_ACEOF
14244 /* confdefs.h. */
14245 _ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h. */
14249 $ac_includes_default
14250 int
14251 main ()
14252 {
14253 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14254 test_array [0] = 0
14255
14256 ;
14257 return 0;
14258 }
14259 _ACEOF
14260 rm -f conftest.$ac_objext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14262 (eval $ac_compile) 2>conftest.er1
14263 ac_status=$?
14264 grep -v '^ *+' conftest.er1 >conftest.err
14265 rm -f conftest.er1
14266 cat conftest.err >&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
14269 { ac_try='test -z "$ac_c_werror_flag"
14270 || test ! -s conftest.err'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest.$ac_objext'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282 ac_hi=$ac_mid
14283 else
14284 echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14286
14287 ac_lo=`expr '(' $ac_mid ')' + 1`
14288 fi
14289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14290 done
14291 case $ac_lo in
14292 ?*) ac_cv_sizeof_long=$ac_lo;;
14293 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14294 See \`config.log' for more details." >&5
14295 echo "$as_me: error: cannot compute sizeof (long), 77
14296 See \`config.log' for more details." >&2;}
14297 { (exit 1); exit 1; }; } ;;
14298 esac
14299 else
14300 if test "$cross_compiling" = yes; then
14301 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14302 See \`config.log' for more details." >&5
14303 echo "$as_me: error: cannot run test program while cross compiling
14304 See \`config.log' for more details." >&2;}
14305 { (exit 1); exit 1; }; }
14306 else
14307 cat >conftest.$ac_ext <<_ACEOF
14308 /* confdefs.h. */
14309 _ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h. */
14313 $ac_includes_default
14314 long longval () { return (long) (sizeof (long)); }
14315 unsigned long ulongval () { return (long) (sizeof (long)); }
14316 #include <stdio.h>
14317 #include <stdlib.h>
14318 int
14319 main ()
14320 {
14321
14322 FILE *f = fopen ("conftest.val", "w");
14323 if (! f)
14324 exit (1);
14325 if (((long) (sizeof (long))) < 0)
14326 {
14327 long i = longval ();
14328 if (i != ((long) (sizeof (long))))
14329 exit (1);
14330 fprintf (f, "%ld\n", i);
14331 }
14332 else
14333 {
14334 unsigned long i = ulongval ();
14335 if (i != ((long) (sizeof (long))))
14336 exit (1);
14337 fprintf (f, "%lu\n", i);
14338 }
14339 exit (ferror (f) || fclose (f) != 0);
14340
14341 ;
14342 return 0;
14343 }
14344 _ACEOF
14345 rm -f conftest$ac_exeext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14347 (eval $ac_link) 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14353 ac_status=$?
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; }; then
14356 ac_cv_sizeof_long=`cat conftest.val`
14357 else
14358 echo "$as_me: program exited with status $ac_status" >&5
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14361
14362 ( exit $ac_status )
14363 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14364 See \`config.log' for more details." >&5
14365 echo "$as_me: error: cannot compute sizeof (long), 77
14366 See \`config.log' for more details." >&2;}
14367 { (exit 1); exit 1; }; }
14368 fi
14369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14370 fi
14371 fi
14372 rm -f conftest.val
14373 else
14374 ac_cv_sizeof_long=0
14375 fi
14376 fi
14377 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14378 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14379 cat >>confdefs.h <<_ACEOF
14380 #define SIZEOF_LONG $ac_cv_sizeof_long
14381 _ACEOF
14382
14383 ;;
14384 esac
14385
14386 if test $acx_cv_header_stdint = stddef.h; then
14387 # Lacking a good header? Test size of everything and deduce all types.
14388 echo "$as_me:$LINENO: checking for int" >&5
14389 echo $ECHO_N "checking for int... $ECHO_C" >&6
14390 if test "${ac_cv_type_int+set}" = set; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14392 else
14393 cat >conftest.$ac_ext <<_ACEOF
14394 /* confdefs.h. */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14399 $ac_includes_default
14400 int
14401 main ()
14402 {
14403 if ((int *) 0)
14404 return 0;
14405 if (sizeof (int))
14406 return 0;
14407 ;
14408 return 0;
14409 }
14410 _ACEOF
14411 rm -f conftest.$ac_objext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413 (eval $ac_compile) 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try='test -z "$ac_c_werror_flag"
14421 || 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_cv_type_int=yes
14434 else
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14437
14438 ac_cv_type_int=no
14439 fi
14440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14441 fi
14442 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14443 echo "${ECHO_T}$ac_cv_type_int" >&6
14444
14445 echo "$as_me:$LINENO: checking size of int" >&5
14446 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14447 if test "${ac_cv_sizeof_int+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450 if test "$ac_cv_type_int" = yes; then
14451 # The cast to unsigned long works around a bug in the HP C Compiler
14452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14454 # This bug is HP SR number 8606223364.
14455 if test "$cross_compiling" = yes; then
14456 # Depending upon the size, compute the lo and hi bounds.
14457 cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h. */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 $ac_includes_default
14464 int
14465 main ()
14466 {
14467 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14468 test_array [0] = 0
14469
14470 ;
14471 return 0;
14472 }
14473 _ACEOF
14474 rm -f conftest.$ac_objext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14476 (eval $ac_compile) 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try='test -z "$ac_c_werror_flag"
14484 || test ! -s conftest.err'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest.$ac_objext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 ac_lo=0 ac_mid=0
14497 while :; do
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h. */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 $ac_includes_default
14505 int
14506 main ()
14507 {
14508 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14509 test_array [0] = 0
14510
14511 ;
14512 return 0;
14513 }
14514 _ACEOF
14515 rm -f conftest.$ac_objext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14517 (eval $ac_compile) 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag"
14525 || test ! -s conftest.err'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest.$ac_objext'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14537 ac_hi=$ac_mid; break
14538 else
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14541
14542 ac_lo=`expr $ac_mid + 1`
14543 if test $ac_lo -le $ac_mid; then
14544 ac_lo= ac_hi=
14545 break
14546 fi
14547 ac_mid=`expr 2 '*' $ac_mid + 1`
14548 fi
14549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14550 done
14551 else
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14554
14555 cat >conftest.$ac_ext <<_ACEOF
14556 /* confdefs.h. */
14557 _ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 $ac_includes_default
14562 int
14563 main ()
14564 {
14565 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14566 test_array [0] = 0
14567
14568 ;
14569 return 0;
14570 }
14571 _ACEOF
14572 rm -f conftest.$ac_objext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14574 (eval $ac_compile) 2>conftest.er1
14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
14581 { ac_try='test -z "$ac_c_werror_flag"
14582 || test ! -s conftest.err'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try='test -s conftest.$ac_objext'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14594 ac_hi=-1 ac_mid=-1
14595 while :; do
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h. */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 $ac_includes_default
14603 int
14604 main ()
14605 {
14606 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14607 test_array [0] = 0
14608
14609 ;
14610 return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14615 (eval $ac_compile) 2>conftest.er1
14616 ac_status=$?
14617 grep -v '^ *+' conftest.er1 >conftest.err
14618 rm -f conftest.er1
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
14622 { ac_try='test -z "$ac_c_werror_flag"
14623 || test ! -s conftest.err'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; } &&
14629 { ac_try='test -s conftest.$ac_objext'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 ac_lo=$ac_mid; break
14636 else
14637 echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14639
14640 ac_hi=`expr '(' $ac_mid ')' - 1`
14641 if test $ac_mid -le $ac_hi; then
14642 ac_lo= ac_hi=
14643 break
14644 fi
14645 ac_mid=`expr 2 '*' $ac_mid`
14646 fi
14647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14648 done
14649 else
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14652
14653 ac_lo= ac_hi=
14654 fi
14655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14656 fi
14657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14658 # Binary search between lo and hi bounds.
14659 while test "x$ac_lo" != "x$ac_hi"; do
14660 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14661 cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h. */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 $ac_includes_default
14668 int
14669 main ()
14670 {
14671 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14672 test_array [0] = 0
14673
14674 ;
14675 return 0;
14676 }
14677 _ACEOF
14678 rm -f conftest.$ac_objext
14679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14680 (eval $ac_compile) 2>conftest.er1
14681 ac_status=$?
14682 grep -v '^ *+' conftest.er1 >conftest.err
14683 rm -f conftest.er1
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } &&
14687 { ac_try='test -z "$ac_c_werror_flag"
14688 || test ! -s conftest.err'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14691 ac_status=$?
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; } &&
14694 { ac_try='test -s conftest.$ac_objext'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }; then
14700 ac_hi=$ac_mid
14701 else
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14704
14705 ac_lo=`expr '(' $ac_mid ')' + 1`
14706 fi
14707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14708 done
14709 case $ac_lo in
14710 ?*) ac_cv_sizeof_int=$ac_lo;;
14711 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14712 See \`config.log' for more details." >&5
14713 echo "$as_me: error: cannot compute sizeof (int), 77
14714 See \`config.log' for more details." >&2;}
14715 { (exit 1); exit 1; }; } ;;
14716 esac
14717 else
14718 if test "$cross_compiling" = yes; then
14719 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14720 See \`config.log' for more details." >&5
14721 echo "$as_me: error: cannot run test program while cross compiling
14722 See \`config.log' for more details." >&2;}
14723 { (exit 1); exit 1; }; }
14724 else
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 $ac_includes_default
14732 long longval () { return (long) (sizeof (int)); }
14733 unsigned long ulongval () { return (long) (sizeof (int)); }
14734 #include <stdio.h>
14735 #include <stdlib.h>
14736 int
14737 main ()
14738 {
14739
14740 FILE *f = fopen ("conftest.val", "w");
14741 if (! f)
14742 exit (1);
14743 if (((long) (sizeof (int))) < 0)
14744 {
14745 long i = longval ();
14746 if (i != ((long) (sizeof (int))))
14747 exit (1);
14748 fprintf (f, "%ld\n", i);
14749 }
14750 else
14751 {
14752 unsigned long i = ulongval ();
14753 if (i != ((long) (sizeof (int))))
14754 exit (1);
14755 fprintf (f, "%lu\n", i);
14756 }
14757 exit (ferror (f) || fclose (f) != 0);
14758
14759 ;
14760 return 0;
14761 }
14762 _ACEOF
14763 rm -f conftest$ac_exeext
14764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14765 (eval $ac_link) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14771 ac_status=$?
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; }; then
14774 ac_cv_sizeof_int=`cat conftest.val`
14775 else
14776 echo "$as_me: program exited with status $ac_status" >&5
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14779
14780 ( exit $ac_status )
14781 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14782 See \`config.log' for more details." >&5
14783 echo "$as_me: error: cannot compute sizeof (int), 77
14784 See \`config.log' for more details." >&2;}
14785 { (exit 1); exit 1; }; }
14786 fi
14787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14788 fi
14789 fi
14790 rm -f conftest.val
14791 else
14792 ac_cv_sizeof_int=0
14793 fi
14794 fi
14795 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14796 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14797 cat >>confdefs.h <<_ACEOF
14798 #define SIZEOF_INT $ac_cv_sizeof_int
14799 _ACEOF
14800
14801
14802 echo "$as_me:$LINENO: checking for short" >&5
14803 echo $ECHO_N "checking for short... $ECHO_C" >&6
14804 if test "${ac_cv_type_short+set}" = set; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14806 else
14807 cat >conftest.$ac_ext <<_ACEOF
14808 /* confdefs.h. */
14809 _ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14813 $ac_includes_default
14814 int
14815 main ()
14816 {
14817 if ((short *) 0)
14818 return 0;
14819 if (sizeof (short))
14820 return 0;
14821 ;
14822 return 0;
14823 }
14824 _ACEOF
14825 rm -f conftest.$ac_objext
14826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14827 (eval $ac_compile) 2>conftest.er1
14828 ac_status=$?
14829 grep -v '^ *+' conftest.er1 >conftest.err
14830 rm -f conftest.er1
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
14834 { ac_try='test -z "$ac_c_werror_flag"
14835 || test ! -s conftest.err'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; } &&
14841 { ac_try='test -s conftest.$ac_objext'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14844 ac_status=$?
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14847 ac_cv_type_short=yes
14848 else
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14851
14852 ac_cv_type_short=no
14853 fi
14854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14855 fi
14856 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14857 echo "${ECHO_T}$ac_cv_type_short" >&6
14858
14859 echo "$as_me:$LINENO: checking size of short" >&5
14860 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14861 if test "${ac_cv_sizeof_short+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 else
14864 if test "$ac_cv_type_short" = yes; then
14865 # The cast to unsigned long works around a bug in the HP C Compiler
14866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14868 # This bug is HP SR number 8606223364.
14869 if test "$cross_compiling" = yes; then
14870 # Depending upon the size, compute the lo and hi bounds.
14871 cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h. */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 $ac_includes_default
14878 int
14879 main ()
14880 {
14881 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14882 test_array [0] = 0
14883
14884 ;
14885 return 0;
14886 }
14887 _ACEOF
14888 rm -f conftest.$ac_objext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14890 (eval $ac_compile) 2>conftest.er1
14891 ac_status=$?
14892 grep -v '^ *+' conftest.er1 >conftest.err
14893 rm -f conftest.er1
14894 cat conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -z "$ac_c_werror_flag"
14898 || test ! -s conftest.err'
14899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; } &&
14904 { ac_try='test -s conftest.$ac_objext'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14907 ac_status=$?
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; }; then
14910 ac_lo=0 ac_mid=0
14911 while :; do
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h. */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 $ac_includes_default
14919 int
14920 main ()
14921 {
14922 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14923 test_array [0] = 0
14924
14925 ;
14926 return 0;
14927 }
14928 _ACEOF
14929 rm -f conftest.$ac_objext
14930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14931 (eval $ac_compile) 2>conftest.er1
14932 ac_status=$?
14933 grep -v '^ *+' conftest.er1 >conftest.err
14934 rm -f conftest.er1
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } &&
14938 { ac_try='test -z "$ac_c_werror_flag"
14939 || test ! -s conftest.err'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; } &&
14945 { ac_try='test -s conftest.$ac_objext'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14951 ac_hi=$ac_mid; break
14952 else
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14955
14956 ac_lo=`expr $ac_mid + 1`
14957 if test $ac_lo -le $ac_mid; then
14958 ac_lo= ac_hi=
14959 break
14960 fi
14961 ac_mid=`expr 2 '*' $ac_mid + 1`
14962 fi
14963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14964 done
14965 else
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14968
14969 cat >conftest.$ac_ext <<_ACEOF
14970 /* confdefs.h. */
14971 _ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h. */
14975 $ac_includes_default
14976 int
14977 main ()
14978 {
14979 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14980 test_array [0] = 0
14981
14982 ;
14983 return 0;
14984 }
14985 _ACEOF
14986 rm -f conftest.$ac_objext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14988 (eval $ac_compile) 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try='test -z "$ac_c_werror_flag"
14996 || test ! -s conftest.err'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest.$ac_objext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_hi=-1 ac_mid=-1
15009 while :; do
15010 cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h. */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 $ac_includes_default
15017 int
15018 main ()
15019 {
15020 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15021 test_array [0] = 0
15022
15023 ;
15024 return 0;
15025 }
15026 _ACEOF
15027 rm -f conftest.$ac_objext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029 (eval $ac_compile) 2>conftest.er1
15030 ac_status=$?
15031 grep -v '^ *+' conftest.er1 >conftest.err
15032 rm -f conftest.er1
15033 cat conftest.err >&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } &&
15036 { ac_try='test -z "$ac_c_werror_flag"
15037 || test ! -s conftest.err'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; } &&
15043 { ac_try='test -s conftest.$ac_objext'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_lo=$ac_mid; break
15050 else
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15053
15054 ac_hi=`expr '(' $ac_mid ')' - 1`
15055 if test $ac_mid -le $ac_hi; then
15056 ac_lo= ac_hi=
15057 break
15058 fi
15059 ac_mid=`expr 2 '*' $ac_mid`
15060 fi
15061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15062 done
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15066
15067 ac_lo= ac_hi=
15068 fi
15069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15070 fi
15071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15072 # Binary search between lo and hi bounds.
15073 while test "x$ac_lo" != "x$ac_hi"; do
15074 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15075 cat >conftest.$ac_ext <<_ACEOF
15076 /* confdefs.h. */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15081 $ac_includes_default
15082 int
15083 main ()
15084 {
15085 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15086 test_array [0] = 0
15087
15088 ;
15089 return 0;
15090 }
15091 _ACEOF
15092 rm -f conftest.$ac_objext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15094 (eval $ac_compile) 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -z "$ac_c_werror_flag"
15102 || test ! -s conftest.err'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest.$ac_objext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_hi=$ac_mid
15115 else
15116 echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15118
15119 ac_lo=`expr '(' $ac_mid ')' + 1`
15120 fi
15121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15122 done
15123 case $ac_lo in
15124 ?*) ac_cv_sizeof_short=$ac_lo;;
15125 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15126 See \`config.log' for more details." >&5
15127 echo "$as_me: error: cannot compute sizeof (short), 77
15128 See \`config.log' for more details." >&2;}
15129 { (exit 1); exit 1; }; } ;;
15130 esac
15131 else
15132 if test "$cross_compiling" = yes; then
15133 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15134 See \`config.log' for more details." >&5
15135 echo "$as_me: error: cannot run test program while cross compiling
15136 See \`config.log' for more details." >&2;}
15137 { (exit 1); exit 1; }; }
15138 else
15139 cat >conftest.$ac_ext <<_ACEOF
15140 /* confdefs.h. */
15141 _ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h. */
15145 $ac_includes_default
15146 long longval () { return (long) (sizeof (short)); }
15147 unsigned long ulongval () { return (long) (sizeof (short)); }
15148 #include <stdio.h>
15149 #include <stdlib.h>
15150 int
15151 main ()
15152 {
15153
15154 FILE *f = fopen ("conftest.val", "w");
15155 if (! f)
15156 exit (1);
15157 if (((long) (sizeof (short))) < 0)
15158 {
15159 long i = longval ();
15160 if (i != ((long) (sizeof (short))))
15161 exit (1);
15162 fprintf (f, "%ld\n", i);
15163 }
15164 else
15165 {
15166 unsigned long i = ulongval ();
15167 if (i != ((long) (sizeof (short))))
15168 exit (1);
15169 fprintf (f, "%lu\n", i);
15170 }
15171 exit (ferror (f) || fclose (f) != 0);
15172
15173 ;
15174 return 0;
15175 }
15176 _ACEOF
15177 rm -f conftest$ac_exeext
15178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15179 (eval $ac_link) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 ac_cv_sizeof_short=`cat conftest.val`
15189 else
15190 echo "$as_me: program exited with status $ac_status" >&5
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15193
15194 ( exit $ac_status )
15195 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15196 See \`config.log' for more details." >&5
15197 echo "$as_me: error: cannot compute sizeof (short), 77
15198 See \`config.log' for more details." >&2;}
15199 { (exit 1); exit 1; }; }
15200 fi
15201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15202 fi
15203 fi
15204 rm -f conftest.val
15205 else
15206 ac_cv_sizeof_short=0
15207 fi
15208 fi
15209 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15210 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15211 cat >>confdefs.h <<_ACEOF
15212 #define SIZEOF_SHORT $ac_cv_sizeof_short
15213 _ACEOF
15214
15215
15216 echo "$as_me:$LINENO: checking for char" >&5
15217 echo $ECHO_N "checking for char... $ECHO_C" >&6
15218 if test "${ac_cv_type_char+set}" = set; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15220 else
15221 cat >conftest.$ac_ext <<_ACEOF
15222 /* confdefs.h. */
15223 _ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15227 $ac_includes_default
15228 int
15229 main ()
15230 {
15231 if ((char *) 0)
15232 return 0;
15233 if (sizeof (char))
15234 return 0;
15235 ;
15236 return 0;
15237 }
15238 _ACEOF
15239 rm -f conftest.$ac_objext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15241 (eval $ac_compile) 2>conftest.er1
15242 ac_status=$?
15243 grep -v '^ *+' conftest.er1 >conftest.err
15244 rm -f conftest.er1
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try='test -z "$ac_c_werror_flag"
15249 || test ! -s conftest.err'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; } &&
15255 { ac_try='test -s conftest.$ac_objext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 ac_cv_type_char=yes
15262 else
15263 echo "$as_me: failed program was:" >&5
15264 sed 's/^/| /' conftest.$ac_ext >&5
15265
15266 ac_cv_type_char=no
15267 fi
15268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15269 fi
15270 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15271 echo "${ECHO_T}$ac_cv_type_char" >&6
15272
15273 echo "$as_me:$LINENO: checking size of char" >&5
15274 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15275 if test "${ac_cv_sizeof_char+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278 if test "$ac_cv_type_char" = yes; then
15279 # The cast to unsigned long works around a bug in the HP C Compiler
15280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15282 # This bug is HP SR number 8606223364.
15283 if test "$cross_compiling" = yes; then
15284 # Depending upon the size, compute the lo and hi bounds.
15285 cat >conftest.$ac_ext <<_ACEOF
15286 /* confdefs.h. */
15287 _ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 $ac_includes_default
15292 int
15293 main ()
15294 {
15295 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15296 test_array [0] = 0
15297
15298 ;
15299 return 0;
15300 }
15301 _ACEOF
15302 rm -f conftest.$ac_objext
15303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15304 (eval $ac_compile) 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag"
15312 || test ! -s conftest.err'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest.$ac_objext'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_lo=0 ac_mid=0
15325 while :; do
15326 cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h. */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 $ac_includes_default
15333 int
15334 main ()
15335 {
15336 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15337 test_array [0] = 0
15338
15339 ;
15340 return 0;
15341 }
15342 _ACEOF
15343 rm -f conftest.$ac_objext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15345 (eval $ac_compile) 2>conftest.er1
15346 ac_status=$?
15347 grep -v '^ *+' conftest.er1 >conftest.err
15348 rm -f conftest.er1
15349 cat conftest.err >&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } &&
15352 { ac_try='test -z "$ac_c_werror_flag"
15353 || test ! -s conftest.err'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest.$ac_objext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15362 ac_status=$?
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15365 ac_hi=$ac_mid; break
15366 else
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370 ac_lo=`expr $ac_mid + 1`
15371 if test $ac_lo -le $ac_mid; then
15372 ac_lo= ac_hi=
15373 break
15374 fi
15375 ac_mid=`expr 2 '*' $ac_mid + 1`
15376 fi
15377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15378 done
15379 else
15380 echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15382
15383 cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h. */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15389 $ac_includes_default
15390 int
15391 main ()
15392 {
15393 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15394 test_array [0] = 0
15395
15396 ;
15397 return 0;
15398 }
15399 _ACEOF
15400 rm -f conftest.$ac_objext
15401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15402 (eval $ac_compile) 2>conftest.er1
15403 ac_status=$?
15404 grep -v '^ *+' conftest.er1 >conftest.err
15405 rm -f conftest.er1
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } &&
15409 { ac_try='test -z "$ac_c_werror_flag"
15410 || test ! -s conftest.err'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try='test -s conftest.$ac_objext'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 ac_hi=-1 ac_mid=-1
15423 while :; do
15424 cat >conftest.$ac_ext <<_ACEOF
15425 /* confdefs.h. */
15426 _ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h. */
15430 $ac_includes_default
15431 int
15432 main ()
15433 {
15434 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15435 test_array [0] = 0
15436
15437 ;
15438 return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15443 (eval $ac_compile) 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
15450 { ac_try='test -z "$ac_c_werror_flag"
15451 || test ! -s conftest.err'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest.$ac_objext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_lo=$ac_mid; break
15464 else
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468 ac_hi=`expr '(' $ac_mid ')' - 1`
15469 if test $ac_mid -le $ac_hi; then
15470 ac_lo= ac_hi=
15471 break
15472 fi
15473 ac_mid=`expr 2 '*' $ac_mid`
15474 fi
15475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15476 done
15477 else
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15480
15481 ac_lo= ac_hi=
15482 fi
15483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15484 fi
15485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15486 # Binary search between lo and hi bounds.
15487 while test "x$ac_lo" != "x$ac_hi"; do
15488 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15489 cat >conftest.$ac_ext <<_ACEOF
15490 /* confdefs.h. */
15491 _ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15495 $ac_includes_default
15496 int
15497 main ()
15498 {
15499 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15500 test_array [0] = 0
15501
15502 ;
15503 return 0;
15504 }
15505 _ACEOF
15506 rm -f conftest.$ac_objext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15508 (eval $ac_compile) 2>conftest.er1
15509 ac_status=$?
15510 grep -v '^ *+' conftest.er1 >conftest.err
15511 rm -f conftest.er1
15512 cat conftest.err >&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
15515 { ac_try='test -z "$ac_c_werror_flag"
15516 || test ! -s conftest.err'
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; } &&
15522 { ac_try='test -s conftest.$ac_objext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_hi=$ac_mid
15529 else
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15532
15533 ac_lo=`expr '(' $ac_mid ')' + 1`
15534 fi
15535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15536 done
15537 case $ac_lo in
15538 ?*) ac_cv_sizeof_char=$ac_lo;;
15539 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15540 See \`config.log' for more details." >&5
15541 echo "$as_me: error: cannot compute sizeof (char), 77
15542 See \`config.log' for more details." >&2;}
15543 { (exit 1); exit 1; }; } ;;
15544 esac
15545 else
15546 if test "$cross_compiling" = yes; then
15547 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15548 See \`config.log' for more details." >&5
15549 echo "$as_me: error: cannot run test program while cross compiling
15550 See \`config.log' for more details." >&2;}
15551 { (exit 1); exit 1; }; }
15552 else
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h. */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 $ac_includes_default
15560 long longval () { return (long) (sizeof (char)); }
15561 unsigned long ulongval () { return (long) (sizeof (char)); }
15562 #include <stdio.h>
15563 #include <stdlib.h>
15564 int
15565 main ()
15566 {
15567
15568 FILE *f = fopen ("conftest.val", "w");
15569 if (! f)
15570 exit (1);
15571 if (((long) (sizeof (char))) < 0)
15572 {
15573 long i = longval ();
15574 if (i != ((long) (sizeof (char))))
15575 exit (1);
15576 fprintf (f, "%ld\n", i);
15577 }
15578 else
15579 {
15580 unsigned long i = ulongval ();
15581 if (i != ((long) (sizeof (char))))
15582 exit (1);
15583 fprintf (f, "%lu\n", i);
15584 }
15585 exit (ferror (f) || fclose (f) != 0);
15586
15587 ;
15588 return 0;
15589 }
15590 _ACEOF
15591 rm -f conftest$ac_exeext
15592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15593 (eval $ac_link) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_cv_sizeof_char=`cat conftest.val`
15603 else
15604 echo "$as_me: program exited with status $ac_status" >&5
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15607
15608 ( exit $ac_status )
15609 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15610 See \`config.log' for more details." >&5
15611 echo "$as_me: error: cannot compute sizeof (char), 77
15612 See \`config.log' for more details." >&2;}
15613 { (exit 1); exit 1; }; }
15614 fi
15615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15616 fi
15617 fi
15618 rm -f conftest.val
15619 else
15620 ac_cv_sizeof_char=0
15621 fi
15622 fi
15623 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15624 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15625 cat >>confdefs.h <<_ACEOF
15626 #define SIZEOF_CHAR $ac_cv_sizeof_char
15627 _ACEOF
15628
15629
15630
15631 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15632 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15633 case "$ac_cv_sizeof_char" in
15634 1) acx_cv_type_int8_t=char ;;
15635 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15636 echo "$as_me: error: no 8-bit type" >&2;}
15637 { (exit please report a bug); exit please report a bug; }; }
15638 esac
15639 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15640 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15641
15642 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15643 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15644 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15645 2:*) acx_cv_type_int16_t=int ;;
15646 *:2) acx_cv_type_int16_t=short ;;
15647 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15648 echo "$as_me: error: no 16-bit type" >&2;}
15649 { (exit please report a bug); exit please report a bug; }; }
15650 esac
15651 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15652 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15653
15654 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15655 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15656 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15657 4:*) acx_cv_type_int32_t=int ;;
15658 *:4) acx_cv_type_int32_t=long ;;
15659 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15660 echo "$as_me: error: no 32-bit type" >&2;}
15661 { (exit please report a bug); exit please report a bug; }; }
15662 esac
15663 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15664 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15665 fi
15666
15667 # These tests are here to make the output prettier
15668
15669 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15670 case "$ac_cv_sizeof_long" in
15671 8) acx_cv_type_int64_t=long ;;
15672 esac
15673 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15674 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15675 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15676 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15677 fi
15678
15679 # Now we can use the above types
15680
15681 if test "$ac_cv_type_uintptr_t" != yes; then
15682 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15683 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15684 case $ac_cv_sizeof_void_p in
15685 2) acx_cv_type_intptr_t=int16_t ;;
15686 4) acx_cv_type_intptr_t=int32_t ;;
15687 8) acx_cv_type_intptr_t=int64_t ;;
15688 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15689 echo "$as_me: error: no equivalent for intptr_t" >&2;}
15690 { (exit please report a bug); exit please report a bug; }; }
15691 esac
15692 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15693 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15694 fi
15695
15696 # ----------------- done all checks, emit header -------------
15697 ac_config_commands="$ac_config_commands gdb_stdint.h"
15698
15699
15700
15701
15702 # ------------------------- #
15703 # Checks for declarations. #
15704 # ------------------------- #
15705
15706 echo "$as_me:$LINENO: checking whether free is declared" >&5
15707 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
15708 if test "${ac_cv_have_decl_free+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h. */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 $ac_includes_default
15718 int
15719 main ()
15720 {
15721 #ifndef free
15722 char *p = (char *) free;
15723 #endif
15724
15725 ;
15726 return 0;
15727 }
15728 _ACEOF
15729 rm -f conftest.$ac_objext
15730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15731 (eval $ac_compile) 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
15738 { ac_try='test -z "$ac_c_werror_flag"
15739 || test ! -s conftest.err'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; } &&
15745 { ac_try='test -s conftest.$ac_objext'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 ac_cv_have_decl_free=yes
15752 else
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15755
15756 ac_cv_have_decl_free=no
15757 fi
15758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15759 fi
15760 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
15761 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
15762 if test $ac_cv_have_decl_free = yes; then
15763
15764 cat >>confdefs.h <<_ACEOF
15765 #define HAVE_DECL_FREE 1
15766 _ACEOF
15767
15768
15769 else
15770 cat >>confdefs.h <<_ACEOF
15771 #define HAVE_DECL_FREE 0
15772 _ACEOF
15773
15774
15775 fi
15776 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
15777 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
15778 if test "${ac_cv_have_decl_malloc+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 $ac_includes_default
15788 int
15789 main ()
15790 {
15791 #ifndef malloc
15792 char *p = (char *) malloc;
15793 #endif
15794
15795 ;
15796 return 0;
15797 }
15798 _ACEOF
15799 rm -f conftest.$ac_objext
15800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801 (eval $ac_compile) 2>conftest.er1
15802 ac_status=$?
15803 grep -v '^ *+' conftest.er1 >conftest.err
15804 rm -f conftest.er1
15805 cat conftest.err >&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } &&
15808 { ac_try='test -z "$ac_c_werror_flag"
15809 || test ! -s conftest.err'
15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811 (eval $ac_try) 2>&5
15812 ac_status=$?
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; } &&
15815 { ac_try='test -s conftest.$ac_objext'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
15821 ac_cv_have_decl_malloc=yes
15822 else
15823 echo "$as_me: failed program was:" >&5
15824 sed 's/^/| /' conftest.$ac_ext >&5
15825
15826 ac_cv_have_decl_malloc=no
15827 fi
15828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15829 fi
15830 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
15831 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
15832 if test $ac_cv_have_decl_malloc = yes; then
15833
15834 cat >>confdefs.h <<_ACEOF
15835 #define HAVE_DECL_MALLOC 1
15836 _ACEOF
15837
15838
15839 else
15840 cat >>confdefs.h <<_ACEOF
15841 #define HAVE_DECL_MALLOC 0
15842 _ACEOF
15843
15844
15845 fi
15846 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
15847 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
15848 if test "${ac_cv_have_decl_realloc+set}" = set; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15850 else
15851 cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h. */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 $ac_includes_default
15858 int
15859 main ()
15860 {
15861 #ifndef realloc
15862 char *p = (char *) realloc;
15863 #endif
15864
15865 ;
15866 return 0;
15867 }
15868 _ACEOF
15869 rm -f conftest.$ac_objext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871 (eval $ac_compile) 2>conftest.er1
15872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
15878 { ac_try='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest.$ac_objext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 ac_cv_have_decl_realloc=yes
15892 else
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15895
15896 ac_cv_have_decl_realloc=no
15897 fi
15898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15899 fi
15900 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
15901 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
15902 if test $ac_cv_have_decl_realloc = yes; then
15903
15904 cat >>confdefs.h <<_ACEOF
15905 #define HAVE_DECL_REALLOC 1
15906 _ACEOF
15907
15908
15909 else
15910 cat >>confdefs.h <<_ACEOF
15911 #define HAVE_DECL_REALLOC 0
15912 _ACEOF
15913
15914
15915 fi
15916
15917
15918 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
15919 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
15920 if test "${ac_cv_have_decl_strerror+set}" = set; then
15921 echo $ECHO_N "(cached) $ECHO_C" >&6
15922 else
15923 cat >conftest.$ac_ext <<_ACEOF
15924 /* confdefs.h. */
15925 _ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h. */
15929 $ac_includes_default
15930 int
15931 main ()
15932 {
15933 #ifndef strerror
15934 char *p = (char *) strerror;
15935 #endif
15936
15937 ;
15938 return 0;
15939 }
15940 _ACEOF
15941 rm -f conftest.$ac_objext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15943 (eval $ac_compile) 2>conftest.er1
15944 ac_status=$?
15945 grep -v '^ *+' conftest.er1 >conftest.err
15946 rm -f conftest.er1
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
15950 { ac_try='test -z "$ac_c_werror_flag"
15951 || test ! -s conftest.err'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15954 ac_status=$?
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; } &&
15957 { ac_try='test -s conftest.$ac_objext'
15958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; }; then
15963 ac_cv_have_decl_strerror=yes
15964 else
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968 ac_cv_have_decl_strerror=no
15969 fi
15970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15971 fi
15972 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
15973 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
15974 if test $ac_cv_have_decl_strerror = yes; then
15975
15976 cat >>confdefs.h <<_ACEOF
15977 #define HAVE_DECL_STRERROR 1
15978 _ACEOF
15979
15980
15981 else
15982 cat >>confdefs.h <<_ACEOF
15983 #define HAVE_DECL_STRERROR 0
15984 _ACEOF
15985
15986
15987 fi
15988 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
15989 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
15990 if test "${ac_cv_have_decl_strstr+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993 cat >conftest.$ac_ext <<_ACEOF
15994 /* confdefs.h. */
15995 _ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h. */
15999 $ac_includes_default
16000 int
16001 main ()
16002 {
16003 #ifndef strstr
16004 char *p = (char *) strstr;
16005 #endif
16006
16007 ;
16008 return 0;
16009 }
16010 _ACEOF
16011 rm -f conftest.$ac_objext
16012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16013 (eval $ac_compile) 2>conftest.er1
16014 ac_status=$?
16015 grep -v '^ *+' conftest.er1 >conftest.err
16016 rm -f conftest.er1
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
16020 { ac_try='test -z "$ac_c_werror_flag"
16021 || test ! -s conftest.err'
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; } &&
16027 { ac_try='test -s conftest.$ac_objext'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 ac_cv_have_decl_strstr=yes
16034 else
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16037
16038 ac_cv_have_decl_strstr=no
16039 fi
16040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16041 fi
16042 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16043 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
16044 if test $ac_cv_have_decl_strstr = yes; then
16045
16046 cat >>confdefs.h <<_ACEOF
16047 #define HAVE_DECL_STRSTR 1
16048 _ACEOF
16049
16050
16051 else
16052 cat >>confdefs.h <<_ACEOF
16053 #define HAVE_DECL_STRSTR 0
16054 _ACEOF
16055
16056
16057 fi
16058
16059
16060 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16061 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
16062 if test "${ac_cv_have_decl_getopt+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16064 else
16065 cat >conftest.$ac_ext <<_ACEOF
16066 /* confdefs.h. */
16067 _ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16071 $ac_includes_default
16072 int
16073 main ()
16074 {
16075 #ifndef getopt
16076 char *p = (char *) getopt;
16077 #endif
16078
16079 ;
16080 return 0;
16081 }
16082 _ACEOF
16083 rm -f conftest.$ac_objext
16084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16085 (eval $ac_compile) 2>conftest.er1
16086 ac_status=$?
16087 grep -v '^ *+' conftest.er1 >conftest.err
16088 rm -f conftest.er1
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } &&
16092 { ac_try='test -z "$ac_c_werror_flag"
16093 || test ! -s conftest.err'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; } &&
16099 { ac_try='test -s conftest.$ac_objext'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; }; then
16105 ac_cv_have_decl_getopt=yes
16106 else
16107 echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16109
16110 ac_cv_have_decl_getopt=no
16111 fi
16112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16113 fi
16114 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16115 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
16116 if test $ac_cv_have_decl_getopt = yes; then
16117
16118 cat >>confdefs.h <<_ACEOF
16119 #define HAVE_DECL_GETOPT 1
16120 _ACEOF
16121
16122
16123 else
16124 cat >>confdefs.h <<_ACEOF
16125 #define HAVE_DECL_GETOPT 0
16126 _ACEOF
16127
16128
16129 fi
16130 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16131 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
16132 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16135 cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h. */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 $ac_includes_default
16142 int
16143 main ()
16144 {
16145 #ifndef snprintf
16146 char *p = (char *) snprintf;
16147 #endif
16148
16149 ;
16150 return 0;
16151 }
16152 _ACEOF
16153 rm -f conftest.$ac_objext
16154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16155 (eval $ac_compile) 2>conftest.er1
16156 ac_status=$?
16157 grep -v '^ *+' conftest.er1 >conftest.err
16158 rm -f conftest.er1
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } &&
16162 { ac_try='test -z "$ac_c_werror_flag"
16163 || test ! -s conftest.err'
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; } &&
16169 { ac_try='test -s conftest.$ac_objext'
16170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171 (eval $ac_try) 2>&5
16172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; }; then
16175 ac_cv_have_decl_snprintf=yes
16176 else
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16179
16180 ac_cv_have_decl_snprintf=no
16181 fi
16182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16183 fi
16184 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16185 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
16186 if test $ac_cv_have_decl_snprintf = yes; then
16187
16188 cat >>confdefs.h <<_ACEOF
16189 #define HAVE_DECL_SNPRINTF 1
16190 _ACEOF
16191
16192
16193 else
16194 cat >>confdefs.h <<_ACEOF
16195 #define HAVE_DECL_SNPRINTF 0
16196 _ACEOF
16197
16198
16199 fi
16200 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16201 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16202 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16204 else
16205 cat >conftest.$ac_ext <<_ACEOF
16206 /* confdefs.h. */
16207 _ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h. */
16211 $ac_includes_default
16212 int
16213 main ()
16214 {
16215 #ifndef vsnprintf
16216 char *p = (char *) vsnprintf;
16217 #endif
16218
16219 ;
16220 return 0;
16221 }
16222 _ACEOF
16223 rm -f conftest.$ac_objext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest.$ac_objext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245 ac_cv_have_decl_vsnprintf=yes
16246 else
16247 echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16249
16250 ac_cv_have_decl_vsnprintf=no
16251 fi
16252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16253 fi
16254 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16255 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
16256 if test $ac_cv_have_decl_vsnprintf = yes; then
16257
16258 cat >>confdefs.h <<_ACEOF
16259 #define HAVE_DECL_VSNPRINTF 1
16260 _ACEOF
16261
16262
16263 else
16264 cat >>confdefs.h <<_ACEOF
16265 #define HAVE_DECL_VSNPRINTF 0
16266 _ACEOF
16267
16268
16269 fi
16270
16271
16272
16273 # ----------------------- #
16274 # Checks for structures. #
16275 # ----------------------- #
16276
16277 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16278 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16279 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 else
16282 cat >conftest.$ac_ext <<_ACEOF
16283 /* confdefs.h. */
16284 _ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 $ac_includes_default
16289 int
16290 main ()
16291 {
16292 static struct stat ac_aggr;
16293 if (ac_aggr.st_blocks)
16294 return 0;
16295 ;
16296 return 0;
16297 }
16298 _ACEOF
16299 rm -f conftest.$ac_objext
16300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16301 (eval $ac_compile) 2>conftest.er1
16302 ac_status=$?
16303 grep -v '^ *+' conftest.er1 >conftest.err
16304 rm -f conftest.er1
16305 cat conftest.err >&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } &&
16308 { ac_try='test -z "$ac_c_werror_flag"
16309 || test ! -s conftest.err'
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; } &&
16315 { ac_try='test -s conftest.$ac_objext'
16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16318 ac_status=$?
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; }; then
16321 ac_cv_member_struct_stat_st_blocks=yes
16322 else
16323 echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16325
16326 cat >conftest.$ac_ext <<_ACEOF
16327 /* confdefs.h. */
16328 _ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h. */
16332 $ac_includes_default
16333 int
16334 main ()
16335 {
16336 static struct stat ac_aggr;
16337 if (sizeof ac_aggr.st_blocks)
16338 return 0;
16339 ;
16340 return 0;
16341 }
16342 _ACEOF
16343 rm -f conftest.$ac_objext
16344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16345 (eval $ac_compile) 2>conftest.er1
16346 ac_status=$?
16347 grep -v '^ *+' conftest.er1 >conftest.err
16348 rm -f conftest.er1
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
16352 { ac_try='test -z "$ac_c_werror_flag"
16353 || test ! -s conftest.err'
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; } &&
16359 { ac_try='test -s conftest.$ac_objext'
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
16365 ac_cv_member_struct_stat_st_blocks=yes
16366 else
16367 echo "$as_me: failed program was:" >&5
16368 sed 's/^/| /' conftest.$ac_ext >&5
16369
16370 ac_cv_member_struct_stat_st_blocks=no
16371 fi
16372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16373 fi
16374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16375 fi
16376 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16377 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16378 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16379
16380 cat >>confdefs.h <<_ACEOF
16381 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16382 _ACEOF
16383
16384
16385 fi
16386
16387 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16388 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
16389 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16391 else
16392 cat >conftest.$ac_ext <<_ACEOF
16393 /* confdefs.h. */
16394 _ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16398 $ac_includes_default
16399 int
16400 main ()
16401 {
16402 static struct stat ac_aggr;
16403 if (ac_aggr.st_blksize)
16404 return 0;
16405 ;
16406 return 0;
16407 }
16408 _ACEOF
16409 rm -f conftest.$ac_objext
16410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16411 (eval $ac_compile) 2>conftest.er1
16412 ac_status=$?
16413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } &&
16418 { ac_try='test -z "$ac_c_werror_flag"
16419 || test ! -s conftest.err'
16420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; } &&
16425 { ac_try='test -s conftest.$ac_objext'
16426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427 (eval $ac_try) 2>&5
16428 ac_status=$?
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; }; then
16431 ac_cv_member_struct_stat_st_blksize=yes
16432 else
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16435
16436 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h. */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16442 $ac_includes_default
16443 int
16444 main ()
16445 {
16446 static struct stat ac_aggr;
16447 if (sizeof ac_aggr.st_blksize)
16448 return 0;
16449 ;
16450 return 0;
16451 }
16452 _ACEOF
16453 rm -f conftest.$ac_objext
16454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16455 (eval $ac_compile) 2>conftest.er1
16456 ac_status=$?
16457 grep -v '^ *+' conftest.er1 >conftest.err
16458 rm -f conftest.er1
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } &&
16462 { ac_try='test -z "$ac_c_werror_flag"
16463 || test ! -s conftest.err'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; } &&
16469 { ac_try='test -s conftest.$ac_objext'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_member_struct_stat_st_blksize=yes
16476 else
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16479
16480 ac_cv_member_struct_stat_st_blksize=no
16481 fi
16482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16483 fi
16484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16485 fi
16486 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16487 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
16488 if test $ac_cv_member_struct_stat_st_blksize = yes; then
16489
16490 cat >>confdefs.h <<_ACEOF
16491 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16492 _ACEOF
16493
16494
16495 fi
16496
16497
16498 # ------------------ #
16499 # Checks for types. #
16500 # ------------------ #
16501
16502 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16503 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16504 if test "${ac_cv_type_signal+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16506 else
16507 cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h. */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513 #include <sys/types.h>
16514 #include <signal.h>
16515 #ifdef signal
16516 # undef signal
16517 #endif
16518 #ifdef __cplusplus
16519 extern "C" void (*signal (int, void (*)(int)))(int);
16520 #else
16521 void (*signal ()) ();
16522 #endif
16523
16524 int
16525 main ()
16526 {
16527 int i;
16528 ;
16529 return 0;
16530 }
16531 _ACEOF
16532 rm -f conftest.$ac_objext
16533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16534 (eval $ac_compile) 2>conftest.er1
16535 ac_status=$?
16536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try='test -z "$ac_c_werror_flag"
16542 || test ! -s conftest.err'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; } &&
16548 { ac_try='test -s conftest.$ac_objext'
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_cv_type_signal=void
16555 else
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16558
16559 ac_cv_type_signal=int
16560 fi
16561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16562 fi
16563 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16564 echo "${ECHO_T}$ac_cv_type_signal" >&6
16565
16566 cat >>confdefs.h <<_ACEOF
16567 #define RETSIGTYPE $ac_cv_type_signal
16568 _ACEOF
16569
16570
16571 echo "$as_me:$LINENO: checking for socklen_t" >&5
16572 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
16573 if test "${ac_cv_type_socklen_t+set}" = set; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16575 else
16576 cat >conftest.$ac_ext <<_ACEOF
16577 /* confdefs.h. */
16578 _ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h. */
16582 #include <sys/types.h>
16583 #include <sys/socket.h>
16584
16585
16586 int
16587 main ()
16588 {
16589 if ((socklen_t *) 0)
16590 return 0;
16591 if (sizeof (socklen_t))
16592 return 0;
16593 ;
16594 return 0;
16595 }
16596 _ACEOF
16597 rm -f conftest.$ac_objext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16599 (eval $ac_compile) 2>conftest.er1
16600 ac_status=$?
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -z "$ac_c_werror_flag"
16607 || test ! -s conftest.err'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16610 ac_status=$?
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; } &&
16613 { ac_try='test -s conftest.$ac_objext'
16614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16615 (eval $ac_try) 2>&5
16616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); }; }; then
16619 ac_cv_type_socklen_t=yes
16620 else
16621 echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16623
16624 ac_cv_type_socklen_t=no
16625 fi
16626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16627 fi
16628 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
16629 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
16630 if test $ac_cv_type_socklen_t = yes; then
16631
16632 cat >>confdefs.h <<_ACEOF
16633 #define HAVE_SOCKLEN_T 1
16634 _ACEOF
16635
16636
16637 fi
16638
16639 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16640 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16641 if test "${ac_cv_type_uintptr_t+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644 cat >conftest.$ac_ext <<_ACEOF
16645 /* confdefs.h. */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16650 #include <stdint.h>
16651
16652 int
16653 main ()
16654 {
16655 if ((uintptr_t *) 0)
16656 return 0;
16657 if (sizeof (uintptr_t))
16658 return 0;
16659 ;
16660 return 0;
16661 }
16662 _ACEOF
16663 rm -f conftest.$ac_objext
16664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16665 (eval $ac_compile) 2>conftest.er1
16666 ac_status=$?
16667 grep -v '^ *+' conftest.er1 >conftest.err
16668 rm -f conftest.er1
16669 cat conftest.err >&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
16672 { ac_try='test -z "$ac_c_werror_flag"
16673 || test ! -s conftest.err'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; } &&
16679 { ac_try='test -s conftest.$ac_objext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_cv_type_uintptr_t=yes
16686 else
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16689
16690 ac_cv_type_uintptr_t=no
16691 fi
16692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16693 fi
16694 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16695 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16696 if test $ac_cv_type_uintptr_t = yes; then
16697
16698 cat >>confdefs.h <<_ACEOF
16699 #define HAVE_UINTPTR_T 1
16700 _ACEOF
16701
16702
16703 fi
16704
16705
16706 # ------------------------------------- #
16707 # Checks for compiler characteristics. #
16708 # ------------------------------------- #
16709
16710 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16711 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16712 if test "${ac_cv_c_const+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16715 cat >conftest.$ac_ext <<_ACEOF
16716 /* confdefs.h. */
16717 _ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
16720 /* end confdefs.h. */
16721
16722 int
16723 main ()
16724 {
16725 /* FIXME: Include the comments suggested by Paul. */
16726 #ifndef __cplusplus
16727 /* Ultrix mips cc rejects this. */
16728 typedef int charset[2];
16729 const charset x;
16730 /* SunOS 4.1.1 cc rejects this. */
16731 char const *const *ccp;
16732 char **p;
16733 /* NEC SVR4.0.2 mips cc rejects this. */
16734 struct point {int x, y;};
16735 static struct point const zero = {0,0};
16736 /* AIX XL C 1.02.0.0 rejects this.
16737 It does not let you subtract one const X* pointer from another in
16738 an arm of an if-expression whose if-part is not a constant
16739 expression */
16740 const char *g = "string";
16741 ccp = &g + (g ? g-g : 0);
16742 /* HPUX 7.0 cc rejects these. */
16743 ++ccp;
16744 p = (char**) ccp;
16745 ccp = (char const *const *) p;
16746 { /* SCO 3.2v4 cc rejects this. */
16747 char *t;
16748 char const *s = 0 ? (char *) 0 : (char const *) 0;
16749
16750 *t++ = 0;
16751 }
16752 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16753 int x[] = {25, 17};
16754 const int *foo = &x[0];
16755 ++foo;
16756 }
16757 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16758 typedef const int *iptr;
16759 iptr p = 0;
16760 ++p;
16761 }
16762 { /* AIX XL C 1.02.0.0 rejects this saying
16763 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16764 struct s { int j; const int *ap[3]; };
16765 struct s *b; b->j = 5;
16766 }
16767 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16768 const int foo = 10;
16769 }
16770 #endif
16771
16772 ;
16773 return 0;
16774 }
16775 _ACEOF
16776 rm -f conftest.$ac_objext
16777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>conftest.er1
16779 ac_status=$?
16780 grep -v '^ *+' conftest.er1 >conftest.err
16781 rm -f conftest.er1
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -z "$ac_c_werror_flag"
16786 || test ! -s conftest.err'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; } &&
16792 { ac_try='test -s conftest.$ac_objext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_c_const=yes
16799 else
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803 ac_cv_c_const=no
16804 fi
16805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16806 fi
16807 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16808 echo "${ECHO_T}$ac_cv_c_const" >&6
16809 if test $ac_cv_c_const = no; then
16810
16811 cat >>confdefs.h <<\_ACEOF
16812 #define const
16813 _ACEOF
16814
16815 fi
16816
16817 echo "$as_me:$LINENO: checking for inline" >&5
16818 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16819 if test "${ac_cv_c_inline+set}" = set; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16821 else
16822 ac_cv_c_inline=no
16823 for ac_kw in inline __inline__ __inline; do
16824 cat >conftest.$ac_ext <<_ACEOF
16825 /* confdefs.h. */
16826 _ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h. */
16830 #ifndef __cplusplus
16831 typedef int foo_t;
16832 static $ac_kw foo_t static_foo () {return 0; }
16833 $ac_kw foo_t foo () {return 0; }
16834 #endif
16835
16836 _ACEOF
16837 rm -f conftest.$ac_objext
16838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>conftest.er1
16840 ac_status=$?
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
16846 { ac_try='test -z "$ac_c_werror_flag"
16847 || test ! -s conftest.err'
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_cv_c_inline=$ac_kw; break
16860 else
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16863
16864 fi
16865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16866 done
16867
16868 fi
16869 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16870 echo "${ECHO_T}$ac_cv_c_inline" >&6
16871
16872
16873 case $ac_cv_c_inline in
16874 inline | yes) ;;
16875 *)
16876 case $ac_cv_c_inline in
16877 no) ac_val=;;
16878 *) ac_val=$ac_cv_c_inline;;
16879 esac
16880 cat >>confdefs.h <<_ACEOF
16881 #ifndef __cplusplus
16882 #define inline $ac_val
16883 #endif
16884 _ACEOF
16885 ;;
16886 esac
16887
16888 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16889 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16890 if test "${ac_cv_c_bigendian+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16892 else
16893 # See if sys/param.h defines the BYTE_ORDER macro.
16894 cat >conftest.$ac_ext <<_ACEOF
16895 /* confdefs.h. */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16900 #include <sys/types.h>
16901 #include <sys/param.h>
16902
16903 int
16904 main ()
16905 {
16906 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16907 bogus endian macros
16908 #endif
16909
16910 ;
16911 return 0;
16912 }
16913 _ACEOF
16914 rm -f conftest.$ac_objext
16915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16916 (eval $ac_compile) 2>conftest.er1
16917 ac_status=$?
16918 grep -v '^ *+' conftest.er1 >conftest.err
16919 rm -f conftest.er1
16920 cat conftest.err >&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -z "$ac_c_werror_flag"
16924 || test ! -s conftest.err'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; } &&
16930 { ac_try='test -s conftest.$ac_objext'
16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932 (eval $ac_try) 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; }; then
16936 # It does; now see whether it defined to BIG_ENDIAN or not.
16937 cat >conftest.$ac_ext <<_ACEOF
16938 /* confdefs.h. */
16939 _ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16943 #include <sys/types.h>
16944 #include <sys/param.h>
16945
16946 int
16947 main ()
16948 {
16949 #if BYTE_ORDER != BIG_ENDIAN
16950 not big endian
16951 #endif
16952
16953 ;
16954 return 0;
16955 }
16956 _ACEOF
16957 rm -f conftest.$ac_objext
16958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16959 (eval $ac_compile) 2>conftest.er1
16960 ac_status=$?
16961 grep -v '^ *+' conftest.er1 >conftest.err
16962 rm -f conftest.er1
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -z "$ac_c_werror_flag"
16967 || test ! -s conftest.err'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest.$ac_objext'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16976 ac_status=$?
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 ac_cv_c_bigendian=yes
16980 else
16981 echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984 ac_cv_c_bigendian=no
16985 fi
16986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16987 else
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16990
16991 # It does not; compile a test program.
16992 if test "$cross_compiling" = yes; then
16993 # try to guess the endianness by grepping values into an object file
16994 ac_cv_c_bigendian=unknown
16995 cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h. */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17001 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17002 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17003 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17004 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17005 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17006 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17007 int
17008 main ()
17009 {
17010 _ascii (); _ebcdic ();
17011 ;
17012 return 0;
17013 }
17014 _ACEOF
17015 rm -f conftest.$ac_objext
17016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17017 (eval $ac_compile) 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -z "$ac_c_werror_flag"
17025 || test ! -s conftest.err'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest.$ac_objext'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17038 ac_cv_c_bigendian=yes
17039 fi
17040 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17041 if test "$ac_cv_c_bigendian" = unknown; then
17042 ac_cv_c_bigendian=no
17043 else
17044 # finding both strings is unlikely to happen, but who knows?
17045 ac_cv_c_bigendian=unknown
17046 fi
17047 fi
17048 else
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17051
17052 fi
17053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17054 else
17055 cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h. */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 int
17062 main ()
17063 {
17064 /* Are we little or big endian? From Harbison&Steele. */
17065 union
17066 {
17067 long l;
17068 char c[sizeof (long)];
17069 } u;
17070 u.l = 1;
17071 exit (u.c[sizeof (long) - 1] == 1);
17072 }
17073 _ACEOF
17074 rm -f conftest$ac_exeext
17075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17076 (eval $ac_link) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_cv_c_bigendian=no
17086 else
17087 echo "$as_me: program exited with status $ac_status" >&5
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17090
17091 ( exit $ac_status )
17092 ac_cv_c_bigendian=yes
17093 fi
17094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17095 fi
17096 fi
17097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17098 fi
17099 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17100 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17101 case $ac_cv_c_bigendian in
17102 yes)
17103
17104 cat >>confdefs.h <<\_ACEOF
17105 #define WORDS_BIGENDIAN 1
17106 _ACEOF
17107 ;;
17108 no)
17109 ;;
17110 *)
17111 { { echo "$as_me:$LINENO: error: unknown endianness
17112 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17113 echo "$as_me: error: unknown endianness
17114 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17115 { (exit 1); exit 1; }; } ;;
17116 esac
17117
17118
17119 # ------------------------------ #
17120 # Checks for library functions. #
17121 # ------------------------------ #
17122
17123 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17124 # for constant arguments. Useless!
17125 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17126 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17127 if test "${ac_cv_working_alloca_h+set}" = set; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17129 else
17130 cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h. */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17136 #include <alloca.h>
17137 int
17138 main ()
17139 {
17140 char *p = (char *) alloca (2 * sizeof (int));
17141 ;
17142 return 0;
17143 }
17144 _ACEOF
17145 rm -f conftest.$ac_objext conftest$ac_exeext
17146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17147 (eval $ac_link) 2>conftest.er1
17148 ac_status=$?
17149 grep -v '^ *+' conftest.er1 >conftest.err
17150 rm -f conftest.er1
17151 cat conftest.err >&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } &&
17154 { ac_try='test -z "$ac_c_werror_flag"
17155 || test ! -s conftest.err'
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; } &&
17161 { ac_try='test -s conftest$ac_exeext'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17167 ac_cv_working_alloca_h=yes
17168 else
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17171
17172 ac_cv_working_alloca_h=no
17173 fi
17174 rm -f conftest.err conftest.$ac_objext \
17175 conftest$ac_exeext conftest.$ac_ext
17176 fi
17177 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17178 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17179 if test $ac_cv_working_alloca_h = yes; then
17180
17181 cat >>confdefs.h <<\_ACEOF
17182 #define HAVE_ALLOCA_H 1
17183 _ACEOF
17184
17185 fi
17186
17187 echo "$as_me:$LINENO: checking for alloca" >&5
17188 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17189 if test "${ac_cv_func_alloca_works+set}" = set; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17191 else
17192 cat >conftest.$ac_ext <<_ACEOF
17193 /* confdefs.h. */
17194 _ACEOF
17195 cat confdefs.h >>conftest.$ac_ext
17196 cat >>conftest.$ac_ext <<_ACEOF
17197 /* end confdefs.h. */
17198 #ifdef __GNUC__
17199 # define alloca __builtin_alloca
17200 #else
17201 # ifdef _MSC_VER
17202 # include <malloc.h>
17203 # define alloca _alloca
17204 # else
17205 # if HAVE_ALLOCA_H
17206 # include <alloca.h>
17207 # else
17208 # ifdef _AIX
17209 #pragma alloca
17210 # else
17211 # ifndef alloca /* predefined by HP cc +Olibcalls */
17212 char *alloca ();
17213 # endif
17214 # endif
17215 # endif
17216 # endif
17217 #endif
17218
17219 int
17220 main ()
17221 {
17222 char *p = (char *) alloca (1);
17223 ;
17224 return 0;
17225 }
17226 _ACEOF
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17229 (eval $ac_link) 2>conftest.er1
17230 ac_status=$?
17231 grep -v '^ *+' conftest.er1 >conftest.err
17232 rm -f conftest.er1
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } &&
17236 { ac_try='test -z "$ac_c_werror_flag"
17237 || test ! -s conftest.err'
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; } &&
17243 { ac_try='test -s conftest$ac_exeext'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; }; then
17249 ac_cv_func_alloca_works=yes
17250 else
17251 echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17253
17254 ac_cv_func_alloca_works=no
17255 fi
17256 rm -f conftest.err conftest.$ac_objext \
17257 conftest$ac_exeext conftest.$ac_ext
17258 fi
17259 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17260 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17261
17262 if test $ac_cv_func_alloca_works = yes; then
17263
17264 cat >>confdefs.h <<\_ACEOF
17265 #define HAVE_ALLOCA 1
17266 _ACEOF
17267
17268 else
17269 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17270 # that cause trouble. Some versions do not even contain alloca or
17271 # contain a buggy version. If you still want to use their alloca,
17272 # use ar to extract alloca.o from them instead of compiling alloca.c.
17273
17274 ALLOCA=alloca.$ac_objext
17275
17276 cat >>confdefs.h <<\_ACEOF
17277 #define C_ALLOCA 1
17278 _ACEOF
17279
17280
17281 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17282 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17283 if test "${ac_cv_os_cray+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17285 else
17286 cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h. */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17292 #if defined(CRAY) && ! defined(CRAY2)
17293 webecray
17294 #else
17295 wenotbecray
17296 #endif
17297
17298 _ACEOF
17299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17300 $EGREP "webecray" >/dev/null 2>&1; then
17301 ac_cv_os_cray=yes
17302 else
17303 ac_cv_os_cray=no
17304 fi
17305 rm -f conftest*
17306
17307 fi
17308 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17309 echo "${ECHO_T}$ac_cv_os_cray" >&6
17310 if test $ac_cv_os_cray = yes; then
17311 for ac_func in _getb67 GETB67 getb67; do
17312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17313 echo "$as_me:$LINENO: checking for $ac_func" >&5
17314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17315 if eval "test \"\${$as_ac_var+set}\" = set"; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 else
17318 cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h. */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17326 #define $ac_func innocuous_$ac_func
17327
17328 /* System header to define __stub macros and hopefully few prototypes,
17329 which can conflict with char $ac_func (); below.
17330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17331 <limits.h> exists even on freestanding compilers. */
17332
17333 #ifdef __STDC__
17334 # include <limits.h>
17335 #else
17336 # include <assert.h>
17337 #endif
17338
17339 #undef $ac_func
17340
17341 /* Override any gcc2 internal prototype to avoid an error. */
17342 #ifdef __cplusplus
17343 extern "C"
17344 {
17345 #endif
17346 /* We use char because int might match the return type of a gcc2
17347 builtin and then its argument prototype would still apply. */
17348 char $ac_func ();
17349 /* The GNU C library defines this for functions which it implements
17350 to always fail with ENOSYS. Some functions are actually named
17351 something starting with __ and the normal name is an alias. */
17352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17353 choke me
17354 #else
17355 char (*f) () = $ac_func;
17356 #endif
17357 #ifdef __cplusplus
17358 }
17359 #endif
17360
17361 int
17362 main ()
17363 {
17364 return f != $ac_func;
17365 ;
17366 return 0;
17367 }
17368 _ACEOF
17369 rm -f conftest.$ac_objext conftest$ac_exeext
17370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17371 (eval $ac_link) 2>conftest.er1
17372 ac_status=$?
17373 grep -v '^ *+' conftest.er1 >conftest.err
17374 rm -f conftest.er1
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } &&
17378 { ac_try='test -z "$ac_c_werror_flag"
17379 || test ! -s conftest.err'
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; } &&
17385 { ac_try='test -s conftest$ac_exeext'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 eval "$as_ac_var=yes"
17392 else
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17395
17396 eval "$as_ac_var=no"
17397 fi
17398 rm -f conftest.err conftest.$ac_objext \
17399 conftest$ac_exeext conftest.$ac_ext
17400 fi
17401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17403 if test `eval echo '${'$as_ac_var'}'` = yes; then
17404
17405 cat >>confdefs.h <<_ACEOF
17406 #define CRAY_STACKSEG_END $ac_func
17407 _ACEOF
17408
17409 break
17410 fi
17411
17412 done
17413 fi
17414
17415 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17416 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17417 if test "${ac_cv_c_stack_direction+set}" = set; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420 if test "$cross_compiling" = yes; then
17421 ac_cv_c_stack_direction=0
17422 else
17423 cat >conftest.$ac_ext <<_ACEOF
17424 /* confdefs.h. */
17425 _ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h. */
17429 int
17430 find_stack_direction ()
17431 {
17432 static char *addr = 0;
17433 auto char dummy;
17434 if (addr == 0)
17435 {
17436 addr = &dummy;
17437 return find_stack_direction ();
17438 }
17439 else
17440 return (&dummy > addr) ? 1 : -1;
17441 }
17442
17443 int
17444 main ()
17445 {
17446 exit (find_stack_direction () < 0);
17447 }
17448 _ACEOF
17449 rm -f conftest$ac_exeext
17450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17451 (eval $ac_link) 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17457 ac_status=$?
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; }; then
17460 ac_cv_c_stack_direction=1
17461 else
17462 echo "$as_me: program exited with status $ac_status" >&5
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17465
17466 ( exit $ac_status )
17467 ac_cv_c_stack_direction=-1
17468 fi
17469 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17470 fi
17471 fi
17472 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17473 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17474
17475 cat >>confdefs.h <<_ACEOF
17476 #define STACK_DIRECTION $ac_cv_c_stack_direction
17477 _ACEOF
17478
17479
17480 fi
17481
17482
17483
17484 for ac_header in stdlib.h unistd.h
17485 do
17486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17488 echo "$as_me:$LINENO: checking for $ac_header" >&5
17489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 fi
17493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17495 else
17496 # Is the header compilable?
17497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17499 cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h. */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 $ac_includes_default
17506 #include <$ac_header>
17507 _ACEOF
17508 rm -f conftest.$ac_objext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17510 (eval $ac_compile) 2>conftest.er1
17511 ac_status=$?
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest.$ac_objext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 ac_header_compiler=yes
17531 else
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17534
17535 ac_header_compiler=no
17536 fi
17537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17539 echo "${ECHO_T}$ac_header_compiler" >&6
17540
17541 # Is the header present?
17542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17544 cat >conftest.$ac_ext <<_ACEOF
17545 /* confdefs.h. */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17550 #include <$ac_header>
17551 _ACEOF
17552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17554 ac_status=$?
17555 grep -v '^ *+' conftest.er1 >conftest.err
17556 rm -f conftest.er1
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } >/dev/null; then
17560 if test -s conftest.err; then
17561 ac_cpp_err=$ac_c_preproc_warn_flag
17562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17563 else
17564 ac_cpp_err=
17565 fi
17566 else
17567 ac_cpp_err=yes
17568 fi
17569 if test -z "$ac_cpp_err"; then
17570 ac_header_preproc=yes
17571 else
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17574
17575 ac_header_preproc=no
17576 fi
17577 rm -f conftest.err conftest.$ac_ext
17578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17579 echo "${ECHO_T}$ac_header_preproc" >&6
17580
17581 # So? What about this header?
17582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17583 yes:no: )
17584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17588 ac_header_preproc=yes
17589 ;;
17590 no:yes:* )
17591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17603 (
17604 cat <<\_ASBOX
17605 ## ------------------------------------------ ##
17606 ## Report this to the AC_PACKAGE_NAME lists. ##
17607 ## ------------------------------------------ ##
17608 _ASBOX
17609 ) |
17610 sed "s/^/$as_me: WARNING: /" >&2
17611 ;;
17612 esac
17613 echo "$as_me:$LINENO: checking for $ac_header" >&5
17614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 else
17618 eval "$as_ac_Header=\$ac_header_preproc"
17619 fi
17620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17622
17623 fi
17624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17625 cat >>confdefs.h <<_ACEOF
17626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17627 _ACEOF
17628
17629 fi
17630
17631 done
17632
17633
17634 for ac_func in getpagesize
17635 do
17636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17637 echo "$as_me:$LINENO: checking for $ac_func" >&5
17638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17639 if eval "test \"\${$as_ac_var+set}\" = set"; then
17640 echo $ECHO_N "(cached) $ECHO_C" >&6
17641 else
17642 cat >conftest.$ac_ext <<_ACEOF
17643 /* confdefs.h. */
17644 _ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17650 #define $ac_func innocuous_$ac_func
17651
17652 /* System header to define __stub macros and hopefully few prototypes,
17653 which can conflict with char $ac_func (); below.
17654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17655 <limits.h> exists even on freestanding compilers. */
17656
17657 #ifdef __STDC__
17658 # include <limits.h>
17659 #else
17660 # include <assert.h>
17661 #endif
17662
17663 #undef $ac_func
17664
17665 /* Override any gcc2 internal prototype to avoid an error. */
17666 #ifdef __cplusplus
17667 extern "C"
17668 {
17669 #endif
17670 /* We use char because int might match the return type of a gcc2
17671 builtin and then its argument prototype would still apply. */
17672 char $ac_func ();
17673 /* The GNU C library defines this for functions which it implements
17674 to always fail with ENOSYS. Some functions are actually named
17675 something starting with __ and the normal name is an alias. */
17676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17677 choke me
17678 #else
17679 char (*f) () = $ac_func;
17680 #endif
17681 #ifdef __cplusplus
17682 }
17683 #endif
17684
17685 int
17686 main ()
17687 {
17688 return f != $ac_func;
17689 ;
17690 return 0;
17691 }
17692 _ACEOF
17693 rm -f conftest.$ac_objext conftest$ac_exeext
17694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17695 (eval $ac_link) 2>conftest.er1
17696 ac_status=$?
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
17702 { ac_try='test -z "$ac_c_werror_flag"
17703 || test ! -s conftest.err'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest$ac_exeext'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 eval "$as_ac_var=yes"
17716 else
17717 echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.$ac_ext >&5
17719
17720 eval "$as_ac_var=no"
17721 fi
17722 rm -f conftest.err conftest.$ac_objext \
17723 conftest$ac_exeext conftest.$ac_ext
17724 fi
17725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17727 if test `eval echo '${'$as_ac_var'}'` = yes; then
17728 cat >>confdefs.h <<_ACEOF
17729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17730 _ACEOF
17731
17732 fi
17733 done
17734
17735 echo "$as_me:$LINENO: checking for working mmap" >&5
17736 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
17737 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17739 else
17740 if test "$cross_compiling" = yes; then
17741 ac_cv_func_mmap_fixed_mapped=no
17742 else
17743 cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h. */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17749 $ac_includes_default
17750 /* malloc might have been renamed as rpl_malloc. */
17751 #undef malloc
17752
17753 /* Thanks to Mike Haertel and Jim Avera for this test.
17754 Here is a matrix of mmap possibilities:
17755 mmap private not fixed
17756 mmap private fixed at somewhere currently unmapped
17757 mmap private fixed at somewhere already mapped
17758 mmap shared not fixed
17759 mmap shared fixed at somewhere currently unmapped
17760 mmap shared fixed at somewhere already mapped
17761 For private mappings, we should verify that changes cannot be read()
17762 back from the file, nor mmap's back from the file at a different
17763 address. (There have been systems where private was not correctly
17764 implemented like the infamous i386 svr4.0, and systems where the
17765 VM page cache was not coherent with the file system buffer cache
17766 like early versions of FreeBSD and possibly contemporary NetBSD.)
17767 For shared mappings, we should conversely verify that changes get
17768 propagated back to all the places they're supposed to be.
17769
17770 Grep wants private fixed already mapped.
17771 The main things grep needs to know about mmap are:
17772 * does it exist and is it safe to write into the mmap'd area
17773 * how to use it (BSD variants) */
17774
17775 #include <fcntl.h>
17776 #include <sys/mman.h>
17777
17778 #if !STDC_HEADERS && !HAVE_STDLIB_H
17779 char *malloc ();
17780 #endif
17781
17782 /* This mess was copied from the GNU getpagesize.h. */
17783 #if !HAVE_GETPAGESIZE
17784 /* Assume that all systems that can run configure have sys/param.h. */
17785 # if !HAVE_SYS_PARAM_H
17786 # define HAVE_SYS_PARAM_H 1
17787 # endif
17788
17789 # ifdef _SC_PAGESIZE
17790 # define getpagesize() sysconf(_SC_PAGESIZE)
17791 # else /* no _SC_PAGESIZE */
17792 # if HAVE_SYS_PARAM_H
17793 # include <sys/param.h>
17794 # ifdef EXEC_PAGESIZE
17795 # define getpagesize() EXEC_PAGESIZE
17796 # else /* no EXEC_PAGESIZE */
17797 # ifdef NBPG
17798 # define getpagesize() NBPG * CLSIZE
17799 # ifndef CLSIZE
17800 # define CLSIZE 1
17801 # endif /* no CLSIZE */
17802 # else /* no NBPG */
17803 # ifdef NBPC
17804 # define getpagesize() NBPC
17805 # else /* no NBPC */
17806 # ifdef PAGESIZE
17807 # define getpagesize() PAGESIZE
17808 # endif /* PAGESIZE */
17809 # endif /* no NBPC */
17810 # endif /* no NBPG */
17811 # endif /* no EXEC_PAGESIZE */
17812 # else /* no HAVE_SYS_PARAM_H */
17813 # define getpagesize() 8192 /* punt totally */
17814 # endif /* no HAVE_SYS_PARAM_H */
17815 # endif /* no _SC_PAGESIZE */
17816
17817 #endif /* no HAVE_GETPAGESIZE */
17818
17819 int
17820 main ()
17821 {
17822 char *data, *data2, *data3;
17823 int i, pagesize;
17824 int fd;
17825
17826 pagesize = getpagesize ();
17827
17828 /* First, make a file with some known garbage in it. */
17829 data = (char *) malloc (pagesize);
17830 if (!data)
17831 exit (1);
17832 for (i = 0; i < pagesize; ++i)
17833 *(data + i) = rand ();
17834 umask (0);
17835 fd = creat ("conftest.mmap", 0600);
17836 if (fd < 0)
17837 exit (1);
17838 if (write (fd, data, pagesize) != pagesize)
17839 exit (1);
17840 close (fd);
17841
17842 /* Next, try to mmap the file at a fixed address which already has
17843 something else allocated at it. If we can, also make sure that
17844 we see the same garbage. */
17845 fd = open ("conftest.mmap", O_RDWR);
17846 if (fd < 0)
17847 exit (1);
17848 data2 = (char *) malloc (2 * pagesize);
17849 if (!data2)
17850 exit (1);
17851 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
17852 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17853 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17854 exit (1);
17855 for (i = 0; i < pagesize; ++i)
17856 if (*(data + i) != *(data2 + i))
17857 exit (1);
17858
17859 /* Finally, make sure that changes to the mapped area do not
17860 percolate back to the file as seen by read(). (This is a bug on
17861 some variants of i386 svr4.0.) */
17862 for (i = 0; i < pagesize; ++i)
17863 *(data2 + i) = *(data2 + i) + 1;
17864 data3 = (char *) malloc (pagesize);
17865 if (!data3)
17866 exit (1);
17867 if (read (fd, data3, pagesize) != pagesize)
17868 exit (1);
17869 for (i = 0; i < pagesize; ++i)
17870 if (*(data + i) != *(data3 + i))
17871 exit (1);
17872 close (fd);
17873 exit (0);
17874 }
17875 _ACEOF
17876 rm -f conftest$ac_exeext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17878 (eval $ac_link) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 ac_cv_func_mmap_fixed_mapped=yes
17888 else
17889 echo "$as_me: program exited with status $ac_status" >&5
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17892
17893 ( exit $ac_status )
17894 ac_cv_func_mmap_fixed_mapped=no
17895 fi
17896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17897 fi
17898 fi
17899 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17900 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
17901 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17902
17903 cat >>confdefs.h <<\_ACEOF
17904 #define HAVE_MMAP 1
17905 _ACEOF
17906
17907 fi
17908 rm -f conftest.mmap
17909
17910 echo "$as_me:$LINENO: checking for pid_t" >&5
17911 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17912 if test "${ac_cv_type_pid_t+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17914 else
17915 cat >conftest.$ac_ext <<_ACEOF
17916 /* confdefs.h. */
17917 _ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h. */
17921 $ac_includes_default
17922 int
17923 main ()
17924 {
17925 if ((pid_t *) 0)
17926 return 0;
17927 if (sizeof (pid_t))
17928 return 0;
17929 ;
17930 return 0;
17931 }
17932 _ACEOF
17933 rm -f conftest.$ac_objext
17934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17935 (eval $ac_compile) 2>conftest.er1
17936 ac_status=$?
17937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -z "$ac_c_werror_flag"
17943 || test ! -s conftest.err'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try='test -s conftest.$ac_objext'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 ac_cv_type_pid_t=yes
17956 else
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17959
17960 ac_cv_type_pid_t=no
17961 fi
17962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17963 fi
17964 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17965 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17966 if test $ac_cv_type_pid_t = yes; then
17967 :
17968 else
17969
17970 cat >>confdefs.h <<_ACEOF
17971 #define pid_t int
17972 _ACEOF
17973
17974 fi
17975
17976
17977
17978 for ac_header in unistd.h vfork.h
17979 do
17980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17982 echo "$as_me:$LINENO: checking for $ac_header" >&5
17983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 fi
17987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17989 else
17990 # Is the header compilable?
17991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17993 cat >conftest.$ac_ext <<_ACEOF
17994 /* confdefs.h. */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 $ac_includes_default
18000 #include <$ac_header>
18001 _ACEOF
18002 rm -f conftest.$ac_objext
18003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18004 (eval $ac_compile) 2>conftest.er1
18005 ac_status=$?
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -z "$ac_c_werror_flag"
18012 || test ! -s conftest.err'
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18015 ac_status=$?
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; } &&
18018 { ac_try='test -s conftest.$ac_objext'
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18021 ac_status=$?
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; }; then
18024 ac_header_compiler=yes
18025 else
18026 echo "$as_me: failed program was:" >&5
18027 sed 's/^/| /' conftest.$ac_ext >&5
18028
18029 ac_header_compiler=no
18030 fi
18031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18033 echo "${ECHO_T}$ac_header_compiler" >&6
18034
18035 # Is the header present?
18036 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18038 cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h. */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18044 #include <$ac_header>
18045 _ACEOF
18046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } >/dev/null; then
18054 if test -s conftest.err; then
18055 ac_cpp_err=$ac_c_preproc_warn_flag
18056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18057 else
18058 ac_cpp_err=
18059 fi
18060 else
18061 ac_cpp_err=yes
18062 fi
18063 if test -z "$ac_cpp_err"; then
18064 ac_header_preproc=yes
18065 else
18066 echo "$as_me: failed program was:" >&5
18067 sed 's/^/| /' conftest.$ac_ext >&5
18068
18069 ac_header_preproc=no
18070 fi
18071 rm -f conftest.err conftest.$ac_ext
18072 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18073 echo "${ECHO_T}$ac_header_preproc" >&6
18074
18075 # So? What about this header?
18076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18077 yes:no: )
18078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18082 ac_header_preproc=yes
18083 ;;
18084 no:yes:* )
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18097 (
18098 cat <<\_ASBOX
18099 ## ------------------------------------------ ##
18100 ## Report this to the AC_PACKAGE_NAME lists. ##
18101 ## ------------------------------------------ ##
18102 _ASBOX
18103 ) |
18104 sed "s/^/$as_me: WARNING: /" >&2
18105 ;;
18106 esac
18107 echo "$as_me:$LINENO: checking for $ac_header" >&5
18108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 else
18112 eval "$as_ac_Header=\$ac_header_preproc"
18113 fi
18114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18116
18117 fi
18118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18119 cat >>confdefs.h <<_ACEOF
18120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18121 _ACEOF
18122
18123 fi
18124
18125 done
18126
18127
18128
18129 for ac_func in fork vfork
18130 do
18131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18132 echo "$as_me:$LINENO: checking for $ac_func" >&5
18133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18134 if eval "test \"\${$as_ac_var+set}\" = set"; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 else
18137 cat >conftest.$ac_ext <<_ACEOF
18138 /* confdefs.h. */
18139 _ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18145 #define $ac_func innocuous_$ac_func
18146
18147 /* System header to define __stub macros and hopefully few prototypes,
18148 which can conflict with char $ac_func (); below.
18149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18150 <limits.h> exists even on freestanding compilers. */
18151
18152 #ifdef __STDC__
18153 # include <limits.h>
18154 #else
18155 # include <assert.h>
18156 #endif
18157
18158 #undef $ac_func
18159
18160 /* Override any gcc2 internal prototype to avoid an error. */
18161 #ifdef __cplusplus
18162 extern "C"
18163 {
18164 #endif
18165 /* We use char because int might match the return type of a gcc2
18166 builtin and then its argument prototype would still apply. */
18167 char $ac_func ();
18168 /* The GNU C library defines this for functions which it implements
18169 to always fail with ENOSYS. Some functions are actually named
18170 something starting with __ and the normal name is an alias. */
18171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18172 choke me
18173 #else
18174 char (*f) () = $ac_func;
18175 #endif
18176 #ifdef __cplusplus
18177 }
18178 #endif
18179
18180 int
18181 main ()
18182 {
18183 return f != $ac_func;
18184 ;
18185 return 0;
18186 }
18187 _ACEOF
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest$ac_exeext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 eval "$as_ac_var=yes"
18211 else
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18214
18215 eval "$as_ac_var=no"
18216 fi
18217 rm -f conftest.err conftest.$ac_objext \
18218 conftest$ac_exeext conftest.$ac_ext
18219 fi
18220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18222 if test `eval echo '${'$as_ac_var'}'` = yes; then
18223 cat >>confdefs.h <<_ACEOF
18224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18225 _ACEOF
18226
18227 fi
18228 done
18229
18230 if test "x$ac_cv_func_fork" = xyes; then
18231 echo "$as_me:$LINENO: checking for working fork" >&5
18232 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18233 if test "${ac_cv_func_fork_works+set}" = set; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236 if test "$cross_compiling" = yes; then
18237 ac_cv_func_fork_works=cross
18238 else
18239 cat >conftest.$ac_ext <<_ACEOF
18240 /* By Ruediger Kuhlmann. */
18241 #include <sys/types.h>
18242 #if HAVE_UNISTD_H
18243 # include <unistd.h>
18244 #endif
18245 /* Some systems only have a dummy stub for fork() */
18246 int main ()
18247 {
18248 if (fork() < 0)
18249 exit (1);
18250 exit (0);
18251 }
18252 _ACEOF
18253 rm -f conftest$ac_exeext
18254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18255 (eval $ac_link) 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 ac_cv_func_fork_works=yes
18265 else
18266 echo "$as_me: program exited with status $ac_status" >&5
18267 echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18269
18270 ( exit $ac_status )
18271 ac_cv_func_fork_works=no
18272 fi
18273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18274 fi
18275 fi
18276 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18277 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18278
18279 else
18280 ac_cv_func_fork_works=$ac_cv_func_fork
18281 fi
18282 if test "x$ac_cv_func_fork_works" = xcross; then
18283 case $host in
18284 *-*-amigaos* | *-*-msdosdjgpp*)
18285 # Override, as these systems have only a dummy fork() stub
18286 ac_cv_func_fork_works=no
18287 ;;
18288 *)
18289 ac_cv_func_fork_works=yes
18290 ;;
18291 esac
18292 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18293 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18294 fi
18295 ac_cv_func_vfork_works=$ac_cv_func_vfork
18296 if test "x$ac_cv_func_vfork" = xyes; then
18297 echo "$as_me:$LINENO: checking for working vfork" >&5
18298 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18299 if test "${ac_cv_func_vfork_works+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 else
18302 if test "$cross_compiling" = yes; then
18303 ac_cv_func_vfork_works=cross
18304 else
18305 cat >conftest.$ac_ext <<_ACEOF
18306 /* confdefs.h. */
18307 _ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18311 /* Thanks to Paul Eggert for this test. */
18312 #include <stdio.h>
18313 #include <stdlib.h>
18314 #include <sys/types.h>
18315 #include <sys/stat.h>
18316 #include <sys/wait.h>
18317 #if HAVE_UNISTD_H
18318 # include <unistd.h>
18319 #endif
18320 #if HAVE_VFORK_H
18321 # include <vfork.h>
18322 #endif
18323 /* On some sparc systems, changes by the child to local and incoming
18324 argument registers are propagated back to the parent. The compiler
18325 is told about this with #include <vfork.h>, but some compilers
18326 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18327 static variable whose address is put into a register that is
18328 clobbered by the vfork. */
18329 static void
18330 #ifdef __cplusplus
18331 sparc_address_test (int arg)
18332 # else
18333 sparc_address_test (arg) int arg;
18334 #endif
18335 {
18336 static pid_t child;
18337 if (!child) {
18338 child = vfork ();
18339 if (child < 0) {
18340 perror ("vfork");
18341 _exit(2);
18342 }
18343 if (!child) {
18344 arg = getpid();
18345 write(-1, "", 0);
18346 _exit (arg);
18347 }
18348 }
18349 }
18350
18351 int
18352 main ()
18353 {
18354 pid_t parent = getpid ();
18355 pid_t child;
18356
18357 sparc_address_test (0);
18358
18359 child = vfork ();
18360
18361 if (child == 0) {
18362 /* Here is another test for sparc vfork register problems. This
18363 test uses lots of local variables, at least as many local
18364 variables as main has allocated so far including compiler
18365 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18366 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18367 reuse the register of parent for one of the local variables,
18368 since it will think that parent can't possibly be used any more
18369 in this routine. Assigning to the local variable will thus
18370 munge parent in the parent process. */
18371 pid_t
18372 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18373 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18374 /* Convince the compiler that p..p7 are live; otherwise, it might
18375 use the same hardware register for all 8 local variables. */
18376 if (p != p1 || p != p2 || p != p3 || p != p4
18377 || p != p5 || p != p6 || p != p7)
18378 _exit(1);
18379
18380 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18381 from child file descriptors. If the child closes a descriptor
18382 before it execs or exits, this munges the parent's descriptor
18383 as well. Test for this by closing stdout in the child. */
18384 _exit(close(fileno(stdout)) != 0);
18385 } else {
18386 int status;
18387 struct stat st;
18388
18389 while (wait(&status) != child)
18390 ;
18391 exit(
18392 /* Was there some problem with vforking? */
18393 child < 0
18394
18395 /* Did the child fail? (This shouldn't happen.) */
18396 || status
18397
18398 /* Did the vfork/compiler bug occur? */
18399 || parent != getpid()
18400
18401 /* Did the file descriptor bug occur? */
18402 || fstat(fileno(stdout), &st) != 0
18403 );
18404 }
18405 }
18406 _ACEOF
18407 rm -f conftest$ac_exeext
18408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18409 (eval $ac_link) 2>&5
18410 ac_status=$?
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 ac_cv_func_vfork_works=yes
18419 else
18420 echo "$as_me: program exited with status $ac_status" >&5
18421 echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18423
18424 ( exit $ac_status )
18425 ac_cv_func_vfork_works=no
18426 fi
18427 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18428 fi
18429 fi
18430 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18431 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18432
18433 fi;
18434 if test "x$ac_cv_func_fork_works" = xcross; then
18435 ac_cv_func_vfork_works=$ac_cv_func_vfork
18436 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18437 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18438 fi
18439
18440 if test "x$ac_cv_func_vfork_works" = xyes; then
18441
18442 cat >>confdefs.h <<\_ACEOF
18443 #define HAVE_WORKING_VFORK 1
18444 _ACEOF
18445
18446 else
18447
18448 cat >>confdefs.h <<\_ACEOF
18449 #define vfork fork
18450 _ACEOF
18451
18452 fi
18453 if test "x$ac_cv_func_fork_works" = xyes; then
18454
18455 cat >>confdefs.h <<\_ACEOF
18456 #define HAVE_WORKING_FORK 1
18457 _ACEOF
18458
18459 fi
18460
18461
18462
18463 for ac_func in canonicalize_file_name realpath
18464 do
18465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18466 echo "$as_me:$LINENO: checking for $ac_func" >&5
18467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18468 if eval "test \"\${$as_ac_var+set}\" = set"; then
18469 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 else
18471 cat >conftest.$ac_ext <<_ACEOF
18472 /* confdefs.h. */
18473 _ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18479 #define $ac_func innocuous_$ac_func
18480
18481 /* System header to define __stub macros and hopefully few prototypes,
18482 which can conflict with char $ac_func (); below.
18483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18484 <limits.h> exists even on freestanding compilers. */
18485
18486 #ifdef __STDC__
18487 # include <limits.h>
18488 #else
18489 # include <assert.h>
18490 #endif
18491
18492 #undef $ac_func
18493
18494 /* Override any gcc2 internal prototype to avoid an error. */
18495 #ifdef __cplusplus
18496 extern "C"
18497 {
18498 #endif
18499 /* We use char because int might match the return type of a gcc2
18500 builtin and then its argument prototype would still apply. */
18501 char $ac_func ();
18502 /* The GNU C library defines this for functions which it implements
18503 to always fail with ENOSYS. Some functions are actually named
18504 something starting with __ and the normal name is an alias. */
18505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18506 choke me
18507 #else
18508 char (*f) () = $ac_func;
18509 #endif
18510 #ifdef __cplusplus
18511 }
18512 #endif
18513
18514 int
18515 main ()
18516 {
18517 return f != $ac_func;
18518 ;
18519 return 0;
18520 }
18521 _ACEOF
18522 rm -f conftest.$ac_objext conftest$ac_exeext
18523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18524 (eval $ac_link) 2>conftest.er1
18525 ac_status=$?
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } &&
18531 { ac_try='test -z "$ac_c_werror_flag"
18532 || test ! -s conftest.err'
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; } &&
18538 { ac_try='test -s conftest$ac_exeext'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
18544 eval "$as_ac_var=yes"
18545 else
18546 echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18548
18549 eval "$as_ac_var=no"
18550 fi
18551 rm -f conftest.err conftest.$ac_objext \
18552 conftest$ac_exeext conftest.$ac_ext
18553 fi
18554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18556 if test `eval echo '${'$as_ac_var'}'` = yes; then
18557 cat >>confdefs.h <<_ACEOF
18558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18559 _ACEOF
18560
18561 fi
18562 done
18563
18564
18565 for ac_func in getrusage
18566 do
18567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18568 echo "$as_me:$LINENO: checking for $ac_func" >&5
18569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18570 if eval "test \"\${$as_ac_var+set}\" = set"; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18573 cat >conftest.$ac_ext <<_ACEOF
18574 /* confdefs.h. */
18575 _ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18581 #define $ac_func innocuous_$ac_func
18582
18583 /* System header to define __stub macros and hopefully few prototypes,
18584 which can conflict with char $ac_func (); below.
18585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18586 <limits.h> exists even on freestanding compilers. */
18587
18588 #ifdef __STDC__
18589 # include <limits.h>
18590 #else
18591 # include <assert.h>
18592 #endif
18593
18594 #undef $ac_func
18595
18596 /* Override any gcc2 internal prototype to avoid an error. */
18597 #ifdef __cplusplus
18598 extern "C"
18599 {
18600 #endif
18601 /* We use char because int might match the return type of a gcc2
18602 builtin and then its argument prototype would still apply. */
18603 char $ac_func ();
18604 /* The GNU C library defines this for functions which it implements
18605 to always fail with ENOSYS. Some functions are actually named
18606 something starting with __ and the normal name is an alias. */
18607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18608 choke me
18609 #else
18610 char (*f) () = $ac_func;
18611 #endif
18612 #ifdef __cplusplus
18613 }
18614 #endif
18615
18616 int
18617 main ()
18618 {
18619 return f != $ac_func;
18620 ;
18621 return 0;
18622 }
18623 _ACEOF
18624 rm -f conftest.$ac_objext conftest$ac_exeext
18625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18626 (eval $ac_link) 2>conftest.er1
18627 ac_status=$?
18628 grep -v '^ *+' conftest.er1 >conftest.err
18629 rm -f conftest.er1
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } &&
18633 { ac_try='test -z "$ac_c_werror_flag"
18634 || test ! -s conftest.err'
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest$ac_exeext'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 eval "$as_ac_var=yes"
18647 else
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18650
18651 eval "$as_ac_var=no"
18652 fi
18653 rm -f conftest.err conftest.$ac_objext \
18654 conftest$ac_exeext conftest.$ac_ext
18655 fi
18656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18658 if test `eval echo '${'$as_ac_var'}'` = yes; then
18659 cat >>confdefs.h <<_ACEOF
18660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18661 _ACEOF
18662
18663 fi
18664 done
18665
18666
18667
18668 for ac_func in getuid getgid
18669 do
18670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18671 echo "$as_me:$LINENO: checking for $ac_func" >&5
18672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18673 if eval "test \"\${$as_ac_var+set}\" = set"; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18675 else
18676 cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h. */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18684 #define $ac_func innocuous_$ac_func
18685
18686 /* System header to define __stub macros and hopefully few prototypes,
18687 which can conflict with char $ac_func (); below.
18688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18689 <limits.h> exists even on freestanding compilers. */
18690
18691 #ifdef __STDC__
18692 # include <limits.h>
18693 #else
18694 # include <assert.h>
18695 #endif
18696
18697 #undef $ac_func
18698
18699 /* Override any gcc2 internal prototype to avoid an error. */
18700 #ifdef __cplusplus
18701 extern "C"
18702 {
18703 #endif
18704 /* We use char because int might match the return type of a gcc2
18705 builtin and then its argument prototype would still apply. */
18706 char $ac_func ();
18707 /* The GNU C library defines this for functions which it implements
18708 to always fail with ENOSYS. Some functions are actually named
18709 something starting with __ and the normal name is an alias. */
18710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18711 choke me
18712 #else
18713 char (*f) () = $ac_func;
18714 #endif
18715 #ifdef __cplusplus
18716 }
18717 #endif
18718
18719 int
18720 main ()
18721 {
18722 return f != $ac_func;
18723 ;
18724 return 0;
18725 }
18726 _ACEOF
18727 rm -f conftest.$ac_objext conftest$ac_exeext
18728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18729 (eval $ac_link) 2>conftest.er1
18730 ac_status=$?
18731 grep -v '^ *+' conftest.er1 >conftest.err
18732 rm -f conftest.er1
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } &&
18736 { ac_try='test -z "$ac_c_werror_flag"
18737 || test ! -s conftest.err'
18738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739 (eval $ac_try) 2>&5
18740 ac_status=$?
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); }; } &&
18743 { ac_try='test -s conftest$ac_exeext'
18744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; }; then
18749 eval "$as_ac_var=yes"
18750 else
18751 echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18753
18754 eval "$as_ac_var=no"
18755 fi
18756 rm -f conftest.err conftest.$ac_objext \
18757 conftest$ac_exeext conftest.$ac_ext
18758 fi
18759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18761 if test `eval echo '${'$as_ac_var'}'` = yes; then
18762 cat >>confdefs.h <<_ACEOF
18763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18764 _ACEOF
18765
18766 fi
18767 done
18768
18769
18770 for ac_func in poll
18771 do
18772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18773 echo "$as_me:$LINENO: checking for $ac_func" >&5
18774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18775 if eval "test \"\${$as_ac_var+set}\" = set"; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18777 else
18778 cat >conftest.$ac_ext <<_ACEOF
18779 /* confdefs.h. */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18786 #define $ac_func innocuous_$ac_func
18787
18788 /* System header to define __stub macros and hopefully few prototypes,
18789 which can conflict with char $ac_func (); below.
18790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18791 <limits.h> exists even on freestanding compilers. */
18792
18793 #ifdef __STDC__
18794 # include <limits.h>
18795 #else
18796 # include <assert.h>
18797 #endif
18798
18799 #undef $ac_func
18800
18801 /* Override any gcc2 internal prototype to avoid an error. */
18802 #ifdef __cplusplus
18803 extern "C"
18804 {
18805 #endif
18806 /* We use char because int might match the return type of a gcc2
18807 builtin and then its argument prototype would still apply. */
18808 char $ac_func ();
18809 /* The GNU C library defines this for functions which it implements
18810 to always fail with ENOSYS. Some functions are actually named
18811 something starting with __ and the normal name is an alias. */
18812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18813 choke me
18814 #else
18815 char (*f) () = $ac_func;
18816 #endif
18817 #ifdef __cplusplus
18818 }
18819 #endif
18820
18821 int
18822 main ()
18823 {
18824 return f != $ac_func;
18825 ;
18826 return 0;
18827 }
18828 _ACEOF
18829 rm -f conftest.$ac_objext conftest$ac_exeext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18831 (eval $ac_link) 2>conftest.er1
18832 ac_status=$?
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -f conftest.er1
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try='test -z "$ac_c_werror_flag"
18839 || test ! -s conftest.err'
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest$ac_exeext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 eval "$as_ac_var=yes"
18852 else
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18855
18856 eval "$as_ac_var=no"
18857 fi
18858 rm -f conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext conftest.$ac_ext
18860 fi
18861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18863 if test `eval echo '${'$as_ac_var'}'` = yes; then
18864 cat >>confdefs.h <<_ACEOF
18865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18866 _ACEOF
18867
18868 fi
18869 done
18870
18871
18872 for ac_func in pread64
18873 do
18874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18875 echo "$as_me:$LINENO: checking for $ac_func" >&5
18876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18877 if eval "test \"\${$as_ac_var+set}\" = set"; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18879 else
18880 cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h. */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18888 #define $ac_func innocuous_$ac_func
18889
18890 /* System header to define __stub macros and hopefully few prototypes,
18891 which can conflict with char $ac_func (); below.
18892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18893 <limits.h> exists even on freestanding compilers. */
18894
18895 #ifdef __STDC__
18896 # include <limits.h>
18897 #else
18898 # include <assert.h>
18899 #endif
18900
18901 #undef $ac_func
18902
18903 /* Override any gcc2 internal prototype to avoid an error. */
18904 #ifdef __cplusplus
18905 extern "C"
18906 {
18907 #endif
18908 /* We use char because int might match the return type of a gcc2
18909 builtin and then its argument prototype would still apply. */
18910 char $ac_func ();
18911 /* The GNU C library defines this for functions which it implements
18912 to always fail with ENOSYS. Some functions are actually named
18913 something starting with __ and the normal name is an alias. */
18914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18915 choke me
18916 #else
18917 char (*f) () = $ac_func;
18918 #endif
18919 #ifdef __cplusplus
18920 }
18921 #endif
18922
18923 int
18924 main ()
18925 {
18926 return f != $ac_func;
18927 ;
18928 return 0;
18929 }
18930 _ACEOF
18931 rm -f conftest.$ac_objext conftest$ac_exeext
18932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18933 (eval $ac_link) 2>conftest.er1
18934 ac_status=$?
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
18940 { ac_try='test -z "$ac_c_werror_flag"
18941 || test ! -s conftest.err'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try='test -s conftest$ac_exeext'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 eval "$as_ac_var=yes"
18954 else
18955 echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18957
18958 eval "$as_ac_var=no"
18959 fi
18960 rm -f conftest.err conftest.$ac_objext \
18961 conftest$ac_exeext conftest.$ac_ext
18962 fi
18963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18965 if test `eval echo '${'$as_ac_var'}'` = yes; then
18966 cat >>confdefs.h <<_ACEOF
18967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18968 _ACEOF
18969
18970 fi
18971 done
18972
18973
18974 for ac_func in sbrk
18975 do
18976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18977 echo "$as_me:$LINENO: checking for $ac_func" >&5
18978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18979 if eval "test \"\${$as_ac_var+set}\" = set"; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18981 else
18982 cat >conftest.$ac_ext <<_ACEOF
18983 /* confdefs.h. */
18984 _ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h. */
18988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18990 #define $ac_func innocuous_$ac_func
18991
18992 /* System header to define __stub macros and hopefully few prototypes,
18993 which can conflict with char $ac_func (); below.
18994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18995 <limits.h> exists even on freestanding compilers. */
18996
18997 #ifdef __STDC__
18998 # include <limits.h>
18999 #else
19000 # include <assert.h>
19001 #endif
19002
19003 #undef $ac_func
19004
19005 /* Override any gcc2 internal prototype to avoid an error. */
19006 #ifdef __cplusplus
19007 extern "C"
19008 {
19009 #endif
19010 /* We use char because int might match the return type of a gcc2
19011 builtin and then its argument prototype would still apply. */
19012 char $ac_func ();
19013 /* The GNU C library defines this for functions which it implements
19014 to always fail with ENOSYS. Some functions are actually named
19015 something starting with __ and the normal name is an alias. */
19016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19017 choke me
19018 #else
19019 char (*f) () = $ac_func;
19020 #endif
19021 #ifdef __cplusplus
19022 }
19023 #endif
19024
19025 int
19026 main ()
19027 {
19028 return f != $ac_func;
19029 ;
19030 return 0;
19031 }
19032 _ACEOF
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19035 (eval $ac_link) 2>conftest.er1
19036 ac_status=$?
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag"
19043 || test ! -s conftest.err'
19044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045 (eval $ac_try) 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; } &&
19049 { ac_try='test -s conftest$ac_exeext'
19050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051 (eval $ac_try) 2>&5
19052 ac_status=$?
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; }; then
19055 eval "$as_ac_var=yes"
19056 else
19057 echo "$as_me: failed program was:" >&5
19058 sed 's/^/| /' conftest.$ac_ext >&5
19059
19060 eval "$as_ac_var=no"
19061 fi
19062 rm -f conftest.err conftest.$ac_objext \
19063 conftest$ac_exeext conftest.$ac_ext
19064 fi
19065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19067 if test `eval echo '${'$as_ac_var'}'` = yes; then
19068 cat >>confdefs.h <<_ACEOF
19069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19070 _ACEOF
19071
19072 fi
19073 done
19074
19075
19076
19077
19078 for ac_func in setpgid setpgrp setsid
19079 do
19080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19081 echo "$as_me:$LINENO: checking for $ac_func" >&5
19082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19083 if eval "test \"\${$as_ac_var+set}\" = set"; then
19084 echo $ECHO_N "(cached) $ECHO_C" >&6
19085 else
19086 cat >conftest.$ac_ext <<_ACEOF
19087 /* confdefs.h. */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19094 #define $ac_func innocuous_$ac_func
19095
19096 /* System header to define __stub macros and hopefully few prototypes,
19097 which can conflict with char $ac_func (); below.
19098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19099 <limits.h> exists even on freestanding compilers. */
19100
19101 #ifdef __STDC__
19102 # include <limits.h>
19103 #else
19104 # include <assert.h>
19105 #endif
19106
19107 #undef $ac_func
19108
19109 /* Override any gcc2 internal prototype to avoid an error. */
19110 #ifdef __cplusplus
19111 extern "C"
19112 {
19113 #endif
19114 /* We use char because int might match the return type of a gcc2
19115 builtin and then its argument prototype would still apply. */
19116 char $ac_func ();
19117 /* The GNU C library defines this for functions which it implements
19118 to always fail with ENOSYS. Some functions are actually named
19119 something starting with __ and the normal name is an alias. */
19120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19121 choke me
19122 #else
19123 char (*f) () = $ac_func;
19124 #endif
19125 #ifdef __cplusplus
19126 }
19127 #endif
19128
19129 int
19130 main ()
19131 {
19132 return f != $ac_func;
19133 ;
19134 return 0;
19135 }
19136 _ACEOF
19137 rm -f conftest.$ac_objext conftest$ac_exeext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19139 (eval $ac_link) 2>conftest.er1
19140 ac_status=$?
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
19146 { ac_try='test -z "$ac_c_werror_flag"
19147 || test ! -s conftest.err'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; } &&
19153 { ac_try='test -s conftest$ac_exeext'
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19156 ac_status=$?
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
19159 eval "$as_ac_var=yes"
19160 else
19161 echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19163
19164 eval "$as_ac_var=no"
19165 fi
19166 rm -f conftest.err conftest.$ac_objext \
19167 conftest$ac_exeext conftest.$ac_ext
19168 fi
19169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19171 if test `eval echo '${'$as_ac_var'}'` = yes; then
19172 cat >>confdefs.h <<_ACEOF
19173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19174 _ACEOF
19175
19176 fi
19177 done
19178
19179
19180
19181
19182 for ac_func in sigaction sigprocmask sigsetmask
19183 do
19184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19185 echo "$as_me:$LINENO: checking for $ac_func" >&5
19186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19187 if eval "test \"\${$as_ac_var+set}\" = set"; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190 cat >conftest.$ac_ext <<_ACEOF
19191 /* confdefs.h. */
19192 _ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19198 #define $ac_func innocuous_$ac_func
19199
19200 /* System header to define __stub macros and hopefully few prototypes,
19201 which can conflict with char $ac_func (); below.
19202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19203 <limits.h> exists even on freestanding compilers. */
19204
19205 #ifdef __STDC__
19206 # include <limits.h>
19207 #else
19208 # include <assert.h>
19209 #endif
19210
19211 #undef $ac_func
19212
19213 /* Override any gcc2 internal prototype to avoid an error. */
19214 #ifdef __cplusplus
19215 extern "C"
19216 {
19217 #endif
19218 /* We use char because int might match the return type of a gcc2
19219 builtin and then its argument prototype would still apply. */
19220 char $ac_func ();
19221 /* The GNU C library defines this for functions which it implements
19222 to always fail with ENOSYS. Some functions are actually named
19223 something starting with __ and the normal name is an alias. */
19224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19225 choke me
19226 #else
19227 char (*f) () = $ac_func;
19228 #endif
19229 #ifdef __cplusplus
19230 }
19231 #endif
19232
19233 int
19234 main ()
19235 {
19236 return f != $ac_func;
19237 ;
19238 return 0;
19239 }
19240 _ACEOF
19241 rm -f conftest.$ac_objext conftest$ac_exeext
19242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19243 (eval $ac_link) 2>conftest.er1
19244 ac_status=$?
19245 grep -v '^ *+' conftest.er1 >conftest.err
19246 rm -f conftest.er1
19247 cat conftest.err >&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
19250 { ac_try='test -z "$ac_c_werror_flag"
19251 || test ! -s conftest.err'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; } &&
19257 { ac_try='test -s conftest$ac_exeext'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
19263 eval "$as_ac_var=yes"
19264 else
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19267
19268 eval "$as_ac_var=no"
19269 fi
19270 rm -f conftest.err conftest.$ac_objext \
19271 conftest$ac_exeext conftest.$ac_ext
19272 fi
19273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19275 if test `eval echo '${'$as_ac_var'}'` = yes; then
19276 cat >>confdefs.h <<_ACEOF
19277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19278 _ACEOF
19279
19280 fi
19281 done
19282
19283
19284 for ac_func in socketpair
19285 do
19286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19287 echo "$as_me:$LINENO: checking for $ac_func" >&5
19288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19289 if eval "test \"\${$as_ac_var+set}\" = set"; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292 cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h. */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19300 #define $ac_func innocuous_$ac_func
19301
19302 /* System header to define __stub macros and hopefully few prototypes,
19303 which can conflict with char $ac_func (); below.
19304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19305 <limits.h> exists even on freestanding compilers. */
19306
19307 #ifdef __STDC__
19308 # include <limits.h>
19309 #else
19310 # include <assert.h>
19311 #endif
19312
19313 #undef $ac_func
19314
19315 /* Override any gcc2 internal prototype to avoid an error. */
19316 #ifdef __cplusplus
19317 extern "C"
19318 {
19319 #endif
19320 /* We use char because int might match the return type of a gcc2
19321 builtin and then its argument prototype would still apply. */
19322 char $ac_func ();
19323 /* The GNU C library defines this for functions which it implements
19324 to always fail with ENOSYS. Some functions are actually named
19325 something starting with __ and the normal name is an alias. */
19326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19327 choke me
19328 #else
19329 char (*f) () = $ac_func;
19330 #endif
19331 #ifdef __cplusplus
19332 }
19333 #endif
19334
19335 int
19336 main ()
19337 {
19338 return f != $ac_func;
19339 ;
19340 return 0;
19341 }
19342 _ACEOF
19343 rm -f conftest.$ac_objext conftest$ac_exeext
19344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19345 (eval $ac_link) 2>conftest.er1
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try='test -z "$ac_c_werror_flag"
19353 || test ! -s conftest.err'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try='test -s conftest$ac_exeext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 eval "$as_ac_var=yes"
19366 else
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370 eval "$as_ac_var=no"
19371 fi
19372 rm -f conftest.err conftest.$ac_objext \
19373 conftest$ac_exeext conftest.$ac_ext
19374 fi
19375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19377 if test `eval echo '${'$as_ac_var'}'` = yes; then
19378 cat >>confdefs.h <<_ACEOF
19379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19380 _ACEOF
19381
19382 fi
19383 done
19384
19385
19386 for ac_func in syscall
19387 do
19388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19389 echo "$as_me:$LINENO: checking for $ac_func" >&5
19390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19391 if eval "test \"\${$as_ac_var+set}\" = set"; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 else
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h. */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19402 #define $ac_func innocuous_$ac_func
19403
19404 /* System header to define __stub macros and hopefully few prototypes,
19405 which can conflict with char $ac_func (); below.
19406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19407 <limits.h> exists even on freestanding compilers. */
19408
19409 #ifdef __STDC__
19410 # include <limits.h>
19411 #else
19412 # include <assert.h>
19413 #endif
19414
19415 #undef $ac_func
19416
19417 /* Override any gcc2 internal prototype to avoid an error. */
19418 #ifdef __cplusplus
19419 extern "C"
19420 {
19421 #endif
19422 /* We use char because int might match the return type of a gcc2
19423 builtin and then its argument prototype would still apply. */
19424 char $ac_func ();
19425 /* The GNU C library defines this for functions which it implements
19426 to always fail with ENOSYS. Some functions are actually named
19427 something starting with __ and the normal name is an alias. */
19428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19429 choke me
19430 #else
19431 char (*f) () = $ac_func;
19432 #endif
19433 #ifdef __cplusplus
19434 }
19435 #endif
19436
19437 int
19438 main ()
19439 {
19440 return f != $ac_func;
19441 ;
19442 return 0;
19443 }
19444 _ACEOF
19445 rm -f conftest.$ac_objext conftest$ac_exeext
19446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19447 (eval $ac_link) 2>conftest.er1
19448 ac_status=$?
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } &&
19454 { ac_try='test -z "$ac_c_werror_flag"
19455 || test ! -s conftest.err'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; } &&
19461 { ac_try='test -s conftest$ac_exeext'
19462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19464 ac_status=$?
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 eval "$as_ac_var=yes"
19468 else
19469 echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19471
19472 eval "$as_ac_var=no"
19473 fi
19474 rm -f conftest.err conftest.$ac_objext \
19475 conftest$ac_exeext conftest.$ac_ext
19476 fi
19477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19479 if test `eval echo '${'$as_ac_var'}'` = yes; then
19480 cat >>confdefs.h <<_ACEOF
19481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19482 _ACEOF
19483
19484 fi
19485 done
19486
19487
19488 for ac_func in ttrace
19489 do
19490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19491 echo "$as_me:$LINENO: checking for $ac_func" >&5
19492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19493 if eval "test \"\${$as_ac_var+set}\" = set"; then
19494 echo $ECHO_N "(cached) $ECHO_C" >&6
19495 else
19496 cat >conftest.$ac_ext <<_ACEOF
19497 /* confdefs.h. */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19504 #define $ac_func innocuous_$ac_func
19505
19506 /* System header to define __stub macros and hopefully few prototypes,
19507 which can conflict with char $ac_func (); below.
19508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19509 <limits.h> exists even on freestanding compilers. */
19510
19511 #ifdef __STDC__
19512 # include <limits.h>
19513 #else
19514 # include <assert.h>
19515 #endif
19516
19517 #undef $ac_func
19518
19519 /* Override any gcc2 internal prototype to avoid an error. */
19520 #ifdef __cplusplus
19521 extern "C"
19522 {
19523 #endif
19524 /* We use char because int might match the return type of a gcc2
19525 builtin and then its argument prototype would still apply. */
19526 char $ac_func ();
19527 /* The GNU C library defines this for functions which it implements
19528 to always fail with ENOSYS. Some functions are actually named
19529 something starting with __ and the normal name is an alias. */
19530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19531 choke me
19532 #else
19533 char (*f) () = $ac_func;
19534 #endif
19535 #ifdef __cplusplus
19536 }
19537 #endif
19538
19539 int
19540 main ()
19541 {
19542 return f != $ac_func;
19543 ;
19544 return 0;
19545 }
19546 _ACEOF
19547 rm -f conftest.$ac_objext conftest$ac_exeext
19548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19549 (eval $ac_link) 2>conftest.er1
19550 ac_status=$?
19551 grep -v '^ *+' conftest.er1 >conftest.err
19552 rm -f conftest.er1
19553 cat conftest.err >&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } &&
19556 { ac_try='test -z "$ac_c_werror_flag"
19557 || test ! -s conftest.err'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest$ac_exeext'
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; }; then
19569 eval "$as_ac_var=yes"
19570 else
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19573
19574 eval "$as_ac_var=no"
19575 fi
19576 rm -f conftest.err conftest.$ac_objext \
19577 conftest$ac_exeext conftest.$ac_ext
19578 fi
19579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19581 if test `eval echo '${'$as_ac_var'}'` = yes; then
19582 cat >>confdefs.h <<_ACEOF
19583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19584 _ACEOF
19585
19586 fi
19587 done
19588
19589
19590 for ac_func in wborder
19591 do
19592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19593 echo "$as_me:$LINENO: checking for $ac_func" >&5
19594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19595 if eval "test \"\${$as_ac_var+set}\" = set"; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h. */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19606 #define $ac_func innocuous_$ac_func
19607
19608 /* System header to define __stub macros and hopefully few prototypes,
19609 which can conflict with char $ac_func (); below.
19610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19611 <limits.h> exists even on freestanding compilers. */
19612
19613 #ifdef __STDC__
19614 # include <limits.h>
19615 #else
19616 # include <assert.h>
19617 #endif
19618
19619 #undef $ac_func
19620
19621 /* Override any gcc2 internal prototype to avoid an error. */
19622 #ifdef __cplusplus
19623 extern "C"
19624 {
19625 #endif
19626 /* We use char because int might match the return type of a gcc2
19627 builtin and then its argument prototype would still apply. */
19628 char $ac_func ();
19629 /* The GNU C library defines this for functions which it implements
19630 to always fail with ENOSYS. Some functions are actually named
19631 something starting with __ and the normal name is an alias. */
19632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19633 choke me
19634 #else
19635 char (*f) () = $ac_func;
19636 #endif
19637 #ifdef __cplusplus
19638 }
19639 #endif
19640
19641 int
19642 main ()
19643 {
19644 return f != $ac_func;
19645 ;
19646 return 0;
19647 }
19648 _ACEOF
19649 rm -f conftest.$ac_objext conftest$ac_exeext
19650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19651 (eval $ac_link) 2>conftest.er1
19652 ac_status=$?
19653 grep -v '^ *+' conftest.er1 >conftest.err
19654 rm -f conftest.er1
19655 cat conftest.err >&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } &&
19658 { ac_try='test -z "$ac_c_werror_flag"
19659 || test ! -s conftest.err'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; } &&
19665 { ac_try='test -s conftest$ac_exeext'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 eval "$as_ac_var=yes"
19672 else
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19675
19676 eval "$as_ac_var=no"
19677 fi
19678 rm -f conftest.err conftest.$ac_objext \
19679 conftest$ac_exeext conftest.$ac_ext
19680 fi
19681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19683 if test `eval echo '${'$as_ac_var'}'` = yes; then
19684 cat >>confdefs.h <<_ACEOF
19685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19686 _ACEOF
19687
19688 fi
19689 done
19690
19691
19692 # Check the return and argument types of ptrace. No canned test for
19693 # this, so roll our own.
19694 gdb_ptrace_headers='
19695 #if HAVE_SYS_TYPES_H
19696 # include <sys/types.h>
19697 #endif
19698 #if HAVE_SYS_PTRACE_H
19699 # include <sys/ptrace.h>
19700 #endif
19701 #if HAVE_UNISTD_H
19702 # include <unistd.h>
19703 #endif
19704 '
19705 # There is no point in checking if we don't have a prototype.
19706 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
19707 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
19708 if test "${ac_cv_have_decl_ptrace+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711 cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h. */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 $gdb_ptrace_headers
19718
19719 int
19720 main ()
19721 {
19722 #ifndef ptrace
19723 char *p = (char *) ptrace;
19724 #endif
19725
19726 ;
19727 return 0;
19728 }
19729 _ACEOF
19730 rm -f conftest.$ac_objext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19732 (eval $ac_compile) 2>conftest.er1
19733 ac_status=$?
19734 grep -v '^ *+' conftest.er1 >conftest.err
19735 rm -f conftest.er1
19736 cat conftest.err >&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } &&
19739 { ac_try='test -z "$ac_c_werror_flag"
19740 || test ! -s conftest.err'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; } &&
19746 { ac_try='test -s conftest.$ac_objext'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_cv_have_decl_ptrace=yes
19753 else
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19756
19757 ac_cv_have_decl_ptrace=no
19758 fi
19759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19760 fi
19761 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
19762 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
19763 if test $ac_cv_have_decl_ptrace = yes; then
19764
19765 cat >>confdefs.h <<_ACEOF
19766 #define HAVE_DECL_PTRACE 1
19767 _ACEOF
19768
19769
19770 else
19771 cat >>confdefs.h <<_ACEOF
19772 #define HAVE_DECL_PTRACE 0
19773 _ACEOF
19774
19775
19776 : ${gdb_cv_func_ptrace_ret='int'}
19777 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
19778
19779 fi
19780
19781
19782 # Check return type.
19783 echo "$as_me:$LINENO: checking return type of ptrace" >&5
19784 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
19785 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 else
19788 cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h. */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794 $gdb_ptrace_headers
19795 int
19796 main ()
19797 {
19798 extern int ptrace ();
19799 ;
19800 return 0;
19801 }
19802 _ACEOF
19803 rm -f conftest.$ac_objext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19805 (eval $ac_compile) 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -z "$ac_c_werror_flag"
19813 || test ! -s conftest.err'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest.$ac_objext'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 gdb_cv_func_ptrace_ret='int'
19826 else
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830 gdb_cv_func_ptrace_ret='long'
19831 fi
19832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19833 fi
19834 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
19835 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
19836
19837 cat >>confdefs.h <<_ACEOF
19838 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
19839 _ACEOF
19840
19841 # Check argument types.
19842 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
19843 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
19844 if test "${gdb_cv_func_ptrace_args+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847
19848 for gdb_arg1 in 'int' 'long'; do
19849 for gdb_arg2 in 'pid_t' 'int' 'long'; do
19850 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
19851 for gdb_arg4 in 'int' 'long'; do
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h. */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 $gdb_ptrace_headers
19859 int
19860 main ()
19861 {
19862
19863 extern $gdb_cv_func_ptrace_ret
19864 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
19865
19866 ;
19867 return 0;
19868 }
19869 _ACEOF
19870 rm -f conftest.$ac_objext
19871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19872 (eval $ac_compile) 2>conftest.er1
19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
19879 { ac_try='test -z "$ac_c_werror_flag"
19880 || test ! -s conftest.err'
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; } &&
19886 { ac_try='test -s conftest.$ac_objext'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19892 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
19893 break 4;
19894 else
19895 echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19897
19898 fi
19899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19900 for gdb_arg5 in 'int *' 'int' 'long'; do
19901 cat >conftest.$ac_ext <<_ACEOF
19902 /* confdefs.h. */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19907 $gdb_ptrace_headers
19908 int
19909 main ()
19910 {
19911
19912 extern $gdb_cv_func_ptrace_ret
19913 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
19914
19915 ;
19916 return 0;
19917 }
19918 _ACEOF
19919 rm -f conftest.$ac_objext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19921 (eval $ac_compile) 2>conftest.er1
19922 ac_status=$?
19923 grep -v '^ *+' conftest.er1 >conftest.err
19924 rm -f conftest.er1
19925 cat conftest.err >&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } &&
19928 { ac_try='test -z "$ac_c_werror_flag"
19929 || test ! -s conftest.err'
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; } &&
19935 { ac_try='test -s conftest.$ac_objext'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19938 ac_status=$?
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941
19942 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
19943 break 5;
19944 else
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19947
19948 fi
19949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19950 done
19951 done
19952 done
19953 done
19954 done
19955 # Provide a safe default value.
19956 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
19957
19958 fi
19959 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
19960 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
19961 ac_save_IFS=$IFS; IFS=','
19962 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
19963 IFS=$ac_save_IFS
19964 shift
19965
19966 cat >>confdefs.h <<_ACEOF
19967 #define PTRACE_TYPE_ARG3 $3
19968 _ACEOF
19969
19970 if test -n "$5"; then
19971
19972 cat >>confdefs.h <<_ACEOF
19973 #define PTRACE_TYPE_ARG5 $5
19974 _ACEOF
19975
19976 fi
19977
19978 if test "$cross_compiling" = no; then
19979 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19980 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19981 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984 if test "$cross_compiling" = yes; then
19985 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19986 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19987 { (exit 1); exit 1; }; }
19988 else
19989 cat >conftest.$ac_ext <<_ACEOF
19990 /* confdefs.h. */
19991 _ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19995 #if HAVE_UNISTD_H
19996 # include <unistd.h>
19997 #endif
19998
19999 int
20000 main ()
20001 {
20002 /* If this system has a BSD-style setpgrp which takes arguments,
20003 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20004 exit successfully. */
20005 exit (setpgrp (1,1) == -1 ? 0 : 1);
20006 ;
20007 return 0;
20008 }
20009 _ACEOF
20010 rm -f conftest$ac_exeext
20011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20012 (eval $ac_link) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20018 ac_status=$?
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; }; then
20021 ac_cv_func_setpgrp_void=no
20022 else
20023 echo "$as_me: program exited with status $ac_status" >&5
20024 echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20026
20027 ( exit $ac_status )
20028 ac_cv_func_setpgrp_void=yes
20029 fi
20030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20031 fi
20032 fi
20033 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20034 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20035 if test $ac_cv_func_setpgrp_void = yes; then
20036
20037 cat >>confdefs.h <<\_ACEOF
20038 #define SETPGRP_VOID 1
20039 _ACEOF
20040
20041 fi
20042
20043 else
20044 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20045 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20046 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 else
20049 cat >conftest.$ac_ext <<_ACEOF
20050 /* confdefs.h. */
20051 _ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h. */
20055
20056 #include <unistd.h>
20057
20058 int
20059 main ()
20060 {
20061
20062 if (setpgrp(1,1) == -1)
20063 exit (0);
20064 else
20065 exit (1);
20066
20067 ;
20068 return 0;
20069 }
20070 _ACEOF
20071 rm -f conftest.$ac_objext
20072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20073 (eval $ac_compile) 2>conftest.er1
20074 ac_status=$?
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } &&
20080 { ac_try='test -z "$ac_c_werror_flag"
20081 || test ! -s conftest.err'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20084 ac_status=$?
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; } &&
20087 { ac_try='test -s conftest.$ac_objext'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; }; then
20093 ac_cv_func_setpgrp_void=no
20094 else
20095 echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20097
20098 ac_cv_func_setpgrp_void=yes
20099 fi
20100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20101 fi
20102 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20103 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20104 if test $ac_cv_func_setpgrp_void = yes; then
20105 cat >>confdefs.h <<\_ACEOF
20106 #define SETPGRP_VOID 1
20107 _ACEOF
20108
20109 fi
20110 fi
20111
20112 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
20113 # since sigsetjmp might only be defined as a macro.
20114 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20115 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
20116 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20118 else
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h. */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20125
20126 #include <setjmp.h>
20127
20128 int
20129 main ()
20130 {
20131 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
20132 ;
20133 return 0;
20134 }
20135 _ACEOF
20136 rm -f conftest.$ac_objext
20137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20138 (eval $ac_compile) 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -z "$ac_c_werror_flag"
20146 || test ! -s conftest.err'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20149 ac_status=$?
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try='test -s conftest.$ac_objext'
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20158 gdb_cv_func_sigsetjmp=yes
20159 else
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163 gdb_cv_func_sigsetjmp=no
20164 fi
20165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20166 fi
20167 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20168 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
20169 if test $gdb_cv_func_sigsetjmp = yes; then
20170
20171 cat >>confdefs.h <<\_ACEOF
20172 #define HAVE_SIGSETJMP 1
20173 _ACEOF
20174
20175 fi
20176
20177 # Assume we'll default to using the included libiberty regex.
20178 gdb_use_included_regex=yes
20179
20180 # However, if the system regex is GNU regex, then default to *not*
20181 # using the included regex.
20182 echo "$as_me:$LINENO: checking for GNU regex" >&5
20183 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
20184 if test "${gdb_cv_have_gnu_regex+set}" = set; then
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 else
20187 cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h. */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20193 #include <gnu-versions.h>
20194 int
20195 main ()
20196 {
20197 #define REGEX_INTERFACE_VERSION 1
20198 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20199 # error "Version mismatch"
20200 #endif
20201 ;
20202 return 0;
20203 }
20204 _ACEOF
20205 rm -f conftest.$ac_objext
20206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20207 (eval $ac_compile) 2>conftest.er1
20208 ac_status=$?
20209 grep -v '^ *+' conftest.er1 >conftest.err
20210 rm -f conftest.er1
20211 cat conftest.err >&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } &&
20214 { ac_try='test -z "$ac_c_werror_flag"
20215 || test ! -s conftest.err'
20216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217 (eval $ac_try) 2>&5
20218 ac_status=$?
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; } &&
20221 { ac_try='test -s conftest.$ac_objext'
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20224 ac_status=$?
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 gdb_cv_have_gnu_regex=yes
20228 else
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232 gdb_cv_have_gnu_regex=no
20233 fi
20234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20235 fi
20236 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
20237 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
20238 if test $gdb_cv_have_gnu_regex = yes; then
20239 gdb_use_included_regex=no
20240 fi
20241
20242
20243 # Check whether --with-included-regex or --without-included-regex was given.
20244 if test "${with_included_regex+set}" = set; then
20245 withval="$with_included_regex"
20246 gdb_with_regex=$withval
20247 else
20248 gdb_with_regex=$gdb_use_included_regex
20249 fi;
20250 if test "$gdb_with_regex" = yes; then
20251
20252 cat >>confdefs.h <<\_ACEOF
20253 #define USE_INCLUDED_REGEX 1
20254 _ACEOF
20255
20256 fi
20257
20258 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
20259 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
20260 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
20261 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 else
20264 cat >conftest.$ac_ext <<_ACEOF
20265 /* confdefs.h. */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h. */
20270 #include <sys/param.h>
20271 #include <sys/proc.h>
20272
20273
20274 int
20275 main ()
20276 {
20277 static struct thread ac_aggr;
20278 if (ac_aggr.td_pcb)
20279 return 0;
20280 ;
20281 return 0;
20282 }
20283 _ACEOF
20284 rm -f conftest.$ac_objext
20285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20286 (eval $ac_compile) 2>conftest.er1
20287 ac_status=$?
20288 grep -v '^ *+' conftest.er1 >conftest.err
20289 rm -f conftest.er1
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } &&
20293 { ac_try='test -z "$ac_c_werror_flag"
20294 || test ! -s conftest.err'
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; } &&
20300 { ac_try='test -s conftest.$ac_objext'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; }; then
20306 ac_cv_member_struct_thread_td_pcb=yes
20307 else
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20310
20311 cat >conftest.$ac_ext <<_ACEOF
20312 /* confdefs.h. */
20313 _ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h. */
20317 #include <sys/param.h>
20318 #include <sys/proc.h>
20319
20320
20321 int
20322 main ()
20323 {
20324 static struct thread ac_aggr;
20325 if (sizeof ac_aggr.td_pcb)
20326 return 0;
20327 ;
20328 return 0;
20329 }
20330 _ACEOF
20331 rm -f conftest.$ac_objext
20332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20333 (eval $ac_compile) 2>conftest.er1
20334 ac_status=$?
20335 grep -v '^ *+' conftest.er1 >conftest.err
20336 rm -f conftest.er1
20337 cat conftest.err >&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } &&
20340 { ac_try='test -z "$ac_c_werror_flag"
20341 || test ! -s conftest.err'
20342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20344 ac_status=$?
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; } &&
20347 { ac_try='test -s conftest.$ac_objext'
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20350 ac_status=$?
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; }; then
20353 ac_cv_member_struct_thread_td_pcb=yes
20354 else
20355 echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20357
20358 ac_cv_member_struct_thread_td_pcb=no
20359 fi
20360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20361 fi
20362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20363 fi
20364 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20365 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
20366 if test $ac_cv_member_struct_thread_td_pcb = yes; then
20367
20368 cat >>confdefs.h <<_ACEOF
20369 #define HAVE_STRUCT_THREAD_TD_PCB 1
20370 _ACEOF
20371
20372
20373 fi
20374
20375
20376 # See if <sys/lwp.h> defines `struct lwp`.
20377 echo "$as_me:$LINENO: checking for struct lwp" >&5
20378 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
20379 if test "${gdb_cv_struct_lwp+set}" = set; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 else
20382 cat >conftest.$ac_ext <<_ACEOF
20383 /* confdefs.h. */
20384 _ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20388 #include <sys/param.h>
20389 #include <sys/lwp.h>
20390 int
20391 main ()
20392 {
20393 struct lwp l;
20394 ;
20395 return 0;
20396 }
20397 _ACEOF
20398 rm -f conftest.$ac_objext
20399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20400 (eval $ac_compile) 2>conftest.er1
20401 ac_status=$?
20402 grep -v '^ *+' conftest.er1 >conftest.err
20403 rm -f conftest.er1
20404 cat conftest.err >&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } &&
20407 { ac_try='test -z "$ac_c_werror_flag"
20408 || test ! -s conftest.err'
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; } &&
20414 { ac_try='test -s conftest.$ac_objext'
20415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416 (eval $ac_try) 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; }; then
20420 gdb_cv_struct_lwp=yes
20421 else
20422 echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20424
20425 gdb_cv_struct_lwp=no
20426 fi
20427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20428 fi
20429 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20430 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
20431 if test $gdb_cv_struct_lwp = yes; then
20432
20433 cat >>confdefs.h <<\_ACEOF
20434 #define HAVE_STRUCT_LWP 1
20435 _ACEOF
20436
20437 fi
20438
20439 # See if <machine/reg.h> degines `struct reg'.
20440 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20441 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
20442 if test "${gdb_cv_struct_reg+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h. */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 #include <sys/types.h>
20452 #include <machine/reg.h>
20453 int
20454 main ()
20455 {
20456 struct reg r;
20457 ;
20458 return 0;
20459 }
20460 _ACEOF
20461 rm -f conftest.$ac_objext
20462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20463 (eval $ac_compile) 2>conftest.er1
20464 ac_status=$?
20465 grep -v '^ *+' conftest.er1 >conftest.err
20466 rm -f conftest.er1
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
20470 { ac_try='test -z "$ac_c_werror_flag"
20471 || test ! -s conftest.err'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20474 ac_status=$?
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try='test -s conftest.$ac_objext'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; }; then
20483 gdb_cv_struct_reg=yes
20484 else
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20487
20488 gdb_cv_struct_reg=no
20489 fi
20490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20491 fi
20492 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20493 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
20494 if test $gdb_cv_struct_reg = yes; then
20495
20496 cat >>confdefs.h <<\_ACEOF
20497 #define HAVE_STRUCT_REG 1
20498 _ACEOF
20499
20500 fi
20501
20502 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20503 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
20504 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20505 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
20506 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 else
20509 cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h. */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20515 #include <machine/reg.h>
20516
20517 int
20518 main ()
20519 {
20520 static struct reg ac_aggr;
20521 if (ac_aggr.r_fs)
20522 return 0;
20523 ;
20524 return 0;
20525 }
20526 _ACEOF
20527 rm -f conftest.$ac_objext
20528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20529 (eval $ac_compile) 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } &&
20536 { ac_try='test -z "$ac_c_werror_flag"
20537 || test ! -s conftest.err'
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; } &&
20543 { ac_try='test -s conftest.$ac_objext'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; }; then
20549 ac_cv_member_struct_reg_r_fs=yes
20550 else
20551 echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20553
20554 cat >conftest.$ac_ext <<_ACEOF
20555 /* confdefs.h. */
20556 _ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20560 #include <machine/reg.h>
20561
20562 int
20563 main ()
20564 {
20565 static struct reg ac_aggr;
20566 if (sizeof ac_aggr.r_fs)
20567 return 0;
20568 ;
20569 return 0;
20570 }
20571 _ACEOF
20572 rm -f conftest.$ac_objext
20573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20574 (eval $ac_compile) 2>conftest.er1
20575 ac_status=$?
20576 grep -v '^ *+' conftest.er1 >conftest.err
20577 rm -f conftest.er1
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -z "$ac_c_werror_flag"
20582 || test ! -s conftest.err'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; } &&
20588 { ac_try='test -s conftest.$ac_objext'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 ac_cv_member_struct_reg_r_fs=yes
20595 else
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599 ac_cv_member_struct_reg_r_fs=no
20600 fi
20601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20602 fi
20603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20604 fi
20605 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
20606 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
20607 if test $ac_cv_member_struct_reg_r_fs = yes; then
20608
20609 cat >>confdefs.h <<_ACEOF
20610 #define HAVE_STRUCT_REG_R_FS 1
20611 _ACEOF
20612
20613
20614 fi
20615 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
20616 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
20617 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620 cat >conftest.$ac_ext <<_ACEOF
20621 /* confdefs.h. */
20622 _ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h. */
20626 #include <machine/reg.h>
20627
20628 int
20629 main ()
20630 {
20631 static struct reg ac_aggr;
20632 if (ac_aggr.r_gs)
20633 return 0;
20634 ;
20635 return 0;
20636 }
20637 _ACEOF
20638 rm -f conftest.$ac_objext
20639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20640 (eval $ac_compile) 2>conftest.er1
20641 ac_status=$?
20642 grep -v '^ *+' conftest.er1 >conftest.err
20643 rm -f conftest.er1
20644 cat conftest.err >&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } &&
20647 { ac_try='test -z "$ac_c_werror_flag"
20648 || test ! -s conftest.err'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; } &&
20654 { ac_try='test -s conftest.$ac_objext'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; }; then
20660 ac_cv_member_struct_reg_r_gs=yes
20661 else
20662 echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20664
20665 cat >conftest.$ac_ext <<_ACEOF
20666 /* confdefs.h. */
20667 _ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h. */
20671 #include <machine/reg.h>
20672
20673 int
20674 main ()
20675 {
20676 static struct reg ac_aggr;
20677 if (sizeof ac_aggr.r_gs)
20678 return 0;
20679 ;
20680 return 0;
20681 }
20682 _ACEOF
20683 rm -f conftest.$ac_objext
20684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20685 (eval $ac_compile) 2>conftest.er1
20686 ac_status=$?
20687 grep -v '^ *+' conftest.er1 >conftest.err
20688 rm -f conftest.er1
20689 cat conftest.err >&5
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); } &&
20692 { ac_try='test -z "$ac_c_werror_flag"
20693 || test ! -s conftest.err'
20694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695 (eval $ac_try) 2>&5
20696 ac_status=$?
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; } &&
20699 { ac_try='test -s conftest.$ac_objext'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20702 ac_status=$?
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; }; then
20705 ac_cv_member_struct_reg_r_gs=yes
20706 else
20707 echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20709
20710 ac_cv_member_struct_reg_r_gs=no
20711 fi
20712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20713 fi
20714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20715 fi
20716 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
20717 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
20718 if test $ac_cv_member_struct_reg_r_gs = yes; then
20719
20720 cat >>confdefs.h <<_ACEOF
20721 #define HAVE_STRUCT_REG_R_GS 1
20722 _ACEOF
20723
20724
20725 fi
20726
20727
20728 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
20729 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
20730 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
20731 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 else
20734 cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h. */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 #include <sys/ptrace.h>
20741 int
20742 main ()
20743 {
20744 PTRACE_GETREGS;
20745 ;
20746 return 0;
20747 }
20748 _ACEOF
20749 rm -f conftest.$ac_objext
20750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20751 (eval $ac_compile) 2>conftest.er1
20752 ac_status=$?
20753 grep -v '^ *+' conftest.er1 >conftest.err
20754 rm -f conftest.er1
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } &&
20758 { ac_try='test -z "$ac_c_werror_flag"
20759 || test ! -s conftest.err'
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; } &&
20765 { ac_try='test -s conftest.$ac_objext'
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20768 ac_status=$?
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; }; then
20771 gdb_cv_have_ptrace_getregs=yes
20772 else
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20775
20776 gdb_cv_have_ptrace_getregs=no
20777 fi
20778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20779 fi
20780
20781 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
20782 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
20783 if test $gdb_cv_have_ptrace_getregs = yes; then
20784
20785 cat >>confdefs.h <<\_ACEOF
20786 #define HAVE_PTRACE_GETREGS 1
20787 _ACEOF
20788
20789 fi
20790
20791 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
20792 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
20793 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
20794 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20796 else
20797 cat >conftest.$ac_ext <<_ACEOF
20798 /* confdefs.h. */
20799 _ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h. */
20803 #include <sys/ptrace.h>
20804 int
20805 main ()
20806 {
20807 PTRACE_GETFPXREGS;
20808 ;
20809 return 0;
20810 }
20811 _ACEOF
20812 rm -f conftest.$ac_objext
20813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20814 (eval $ac_compile) 2>conftest.er1
20815 ac_status=$?
20816 grep -v '^ *+' conftest.er1 >conftest.err
20817 rm -f conftest.er1
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } &&
20821 { ac_try='test -z "$ac_c_werror_flag"
20822 || test ! -s conftest.err'
20823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824 (eval $ac_try) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; } &&
20828 { ac_try='test -s conftest.$ac_objext'
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; }; then
20834 gdb_cv_have_ptrace_getfpxregs=yes
20835 else
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20838
20839 gdb_cv_have_ptrace_getfpxregs=no
20840 fi
20841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20842 fi
20843
20844 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
20845 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
20846 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
20847
20848 cat >>confdefs.h <<\_ACEOF
20849 #define HAVE_PTRACE_GETFPXREGS 1
20850 _ACEOF
20851
20852 fi
20853
20854 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
20855 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
20856 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
20857 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
20858 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 else
20860 cat >conftest.$ac_ext <<_ACEOF
20861 /* confdefs.h. */
20862 _ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h. */
20866 #include <sys/types.h>
20867 #include <sys/ptrace.h>
20868 int
20869 main ()
20870 {
20871 PT_GETDBREGS;
20872 ;
20873 return 0;
20874 }
20875 _ACEOF
20876 rm -f conftest.$ac_objext
20877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20878 (eval $ac_compile) 2>conftest.er1
20879 ac_status=$?
20880 grep -v '^ *+' conftest.er1 >conftest.err
20881 rm -f conftest.er1
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } &&
20885 { ac_try='test -z "$ac_c_werror_flag"
20886 || test ! -s conftest.err'
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; } &&
20892 { ac_try='test -s conftest.$ac_objext'
20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894 (eval $ac_try) 2>&5
20895 ac_status=$?
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; }; then
20898 gdb_cv_have_pt_getdbregs=yes
20899 else
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20902
20903 gdb_cv_have_pt_getdbregs=no
20904 fi
20905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20906 fi
20907
20908 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
20909 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
20910 if test $gdb_cv_have_pt_getdbregs = yes; then
20911
20912 cat >>confdefs.h <<\_ACEOF
20913 #define HAVE_PT_GETDBREGS 1
20914 _ACEOF
20915
20916 fi
20917
20918 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
20919 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
20920 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
20921 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
20922 echo $ECHO_N "(cached) $ECHO_C" >&6
20923 else
20924 cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h. */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20930 #include <sys/types.h>
20931 #include <sys/ptrace.h>
20932 int
20933 main ()
20934 {
20935 PT_GETXMMREGS;
20936 ;
20937 return 0;
20938 }
20939 _ACEOF
20940 rm -f conftest.$ac_objext
20941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20942 (eval $ac_compile) 2>conftest.er1
20943 ac_status=$?
20944 grep -v '^ *+' conftest.er1 >conftest.err
20945 rm -f conftest.er1
20946 cat conftest.err >&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } &&
20949 { ac_try='test -z "$ac_c_werror_flag"
20950 || test ! -s conftest.err'
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; } &&
20956 { ac_try='test -s conftest.$ac_objext'
20957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958 (eval $ac_try) 2>&5
20959 ac_status=$?
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; }; then
20962 gdb_cv_have_pt_getxmmregs=yes
20963 else
20964 echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20966
20967 gdb_cv_have_pt_getxmmregs=no
20968 fi
20969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20970 fi
20971
20972 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
20973 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
20974 if test $gdb_cv_have_pt_getxmmregs = yes; then
20975
20976 cat >>confdefs.h <<\_ACEOF
20977 #define HAVE_PT_GETXMMREGS 1
20978 _ACEOF
20979
20980 fi
20981
20982 # Detect which type of /proc is in use, such as for Unixware or Solaris.
20983
20984 if test "${target}" = "${host}"; then
20985 case "${host}" in
20986 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
20987
20988 cat >>confdefs.h <<\_ACEOF
20989 #define NEW_PROC_API 1
20990 _ACEOF
20991
20992 ;;
20993 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
20994
20995 cat >>confdefs.h <<\_ACEOF
20996 #define NEW_PROC_API 1
20997 _ACEOF
20998
20999 ;;
21000 mips-sgi-irix5*)
21001 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
21002
21003 cat >>confdefs.h <<\_ACEOF
21004 #define _KMEMUSER 1
21005 _ACEOF
21006
21007 ;;
21008 esac
21009 fi
21010
21011 if test "$ac_cv_header_sys_procfs_h" = yes; then
21012 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21013 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
21014 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21015 echo $ECHO_N "(cached) $ECHO_C" >&6
21016 else
21017 cat >conftest.$ac_ext <<_ACEOF
21018 /* confdefs.h. */
21019 _ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h. */
21023
21024 #define _SYSCALL32
21025 #include <sys/procfs.h>
21026 int
21027 main ()
21028 {
21029 pstatus_t avar
21030 ;
21031 return 0;
21032 }
21033 _ACEOF
21034 rm -f conftest.$ac_objext
21035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21036 (eval $ac_compile) 2>conftest.er1
21037 ac_status=$?
21038 grep -v '^ *+' conftest.er1 >conftest.err
21039 rm -f conftest.er1
21040 cat conftest.err >&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } &&
21043 { ac_try='test -z "$ac_c_werror_flag"
21044 || test ! -s conftest.err'
21045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21046 (eval $ac_try) 2>&5
21047 ac_status=$?
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); }; } &&
21050 { ac_try='test -s conftest.$ac_objext'
21051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21052 (eval $ac_try) 2>&5
21053 ac_status=$?
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; }; then
21056 bfd_cv_have_sys_procfs_type_pstatus_t=yes
21057 else
21058 echo "$as_me: failed program was:" >&5
21059 sed 's/^/| /' conftest.$ac_ext >&5
21060
21061 bfd_cv_have_sys_procfs_type_pstatus_t=no
21062
21063 fi
21064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21065 fi
21066
21067 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
21068
21069 cat >>confdefs.h <<\_ACEOF
21070 #define HAVE_PSTATUS_T 1
21071 _ACEOF
21072
21073 fi
21074 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21075 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
21076
21077 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21078 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
21079 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21081 else
21082 cat >conftest.$ac_ext <<_ACEOF
21083 /* confdefs.h. */
21084 _ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h. */
21088
21089 #define _SYSCALL32
21090 #include <sys/procfs.h>
21091 int
21092 main ()
21093 {
21094 prrun_t avar
21095 ;
21096 return 0;
21097 }
21098 _ACEOF
21099 rm -f conftest.$ac_objext
21100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21101 (eval $ac_compile) 2>conftest.er1
21102 ac_status=$?
21103 grep -v '^ *+' conftest.er1 >conftest.err
21104 rm -f conftest.er1
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } &&
21108 { ac_try='test -z "$ac_c_werror_flag"
21109 || test ! -s conftest.err'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; } &&
21115 { ac_try='test -s conftest.$ac_objext'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21118 ac_status=$?
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; }; then
21121 bfd_cv_have_sys_procfs_type_prrun_t=yes
21122 else
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21125
21126 bfd_cv_have_sys_procfs_type_prrun_t=no
21127
21128 fi
21129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21130 fi
21131
21132 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
21133
21134 cat >>confdefs.h <<\_ACEOF
21135 #define HAVE_PRRUN_T 1
21136 _ACEOF
21137
21138 fi
21139 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21140 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
21141
21142 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21143 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
21144 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21146 else
21147 cat >conftest.$ac_ext <<_ACEOF
21148 /* confdefs.h. */
21149 _ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h. */
21153
21154 #define _SYSCALL32
21155 #include <sys/procfs.h>
21156 int
21157 main ()
21158 {
21159 gregset_t avar
21160 ;
21161 return 0;
21162 }
21163 _ACEOF
21164 rm -f conftest.$ac_objext
21165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21166 (eval $ac_compile) 2>conftest.er1
21167 ac_status=$?
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
21173 { ac_try='test -z "$ac_c_werror_flag"
21174 || test ! -s conftest.err'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; } &&
21180 { ac_try='test -s conftest.$ac_objext'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 bfd_cv_have_sys_procfs_type_gregset_t=yes
21187 else
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21190
21191 bfd_cv_have_sys_procfs_type_gregset_t=no
21192
21193 fi
21194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21195 fi
21196
21197 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
21198
21199 cat >>confdefs.h <<\_ACEOF
21200 #define HAVE_GREGSET_T 1
21201 _ACEOF
21202
21203 fi
21204 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21205 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
21206
21207 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21208 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
21209 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
21211 else
21212 cat >conftest.$ac_ext <<_ACEOF
21213 /* confdefs.h. */
21214 _ACEOF
21215 cat confdefs.h >>conftest.$ac_ext
21216 cat >>conftest.$ac_ext <<_ACEOF
21217 /* end confdefs.h. */
21218
21219 #define _SYSCALL32
21220 #include <sys/procfs.h>
21221 int
21222 main ()
21223 {
21224 fpregset_t avar
21225 ;
21226 return 0;
21227 }
21228 _ACEOF
21229 rm -f conftest.$ac_objext
21230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21231 (eval $ac_compile) 2>conftest.er1
21232 ac_status=$?
21233 grep -v '^ *+' conftest.er1 >conftest.err
21234 rm -f conftest.er1
21235 cat conftest.err >&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
21238 { ac_try='test -z "$ac_c_werror_flag"
21239 || test ! -s conftest.err'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; } &&
21245 { ac_try='test -s conftest.$ac_objext'
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 bfd_cv_have_sys_procfs_type_fpregset_t=yes
21252 else
21253 echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21255
21256 bfd_cv_have_sys_procfs_type_fpregset_t=no
21257
21258 fi
21259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21260 fi
21261
21262 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
21263
21264 cat >>confdefs.h <<\_ACEOF
21265 #define HAVE_FPREGSET_T 1
21266 _ACEOF
21267
21268 fi
21269 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21270 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
21271
21272 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
21273 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
21274 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21276 else
21277 cat >conftest.$ac_ext <<_ACEOF
21278 /* confdefs.h. */
21279 _ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h. */
21283
21284 #define _SYSCALL32
21285 #include <sys/procfs.h>
21286 int
21287 main ()
21288 {
21289 prgregset_t avar
21290 ;
21291 return 0;
21292 }
21293 _ACEOF
21294 rm -f conftest.$ac_objext
21295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21296 (eval $ac_compile) 2>conftest.er1
21297 ac_status=$?
21298 grep -v '^ *+' conftest.er1 >conftest.err
21299 rm -f conftest.er1
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } &&
21303 { ac_try='test -z "$ac_c_werror_flag"
21304 || test ! -s conftest.err'
21305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21306 (eval $ac_try) 2>&5
21307 ac_status=$?
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); }; } &&
21310 { ac_try='test -s conftest.$ac_objext'
21311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312 (eval $ac_try) 2>&5
21313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; }; then
21316 bfd_cv_have_sys_procfs_type_prgregset_t=yes
21317 else
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21320
21321 bfd_cv_have_sys_procfs_type_prgregset_t=no
21322
21323 fi
21324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21325 fi
21326
21327 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
21328
21329 cat >>confdefs.h <<\_ACEOF
21330 #define HAVE_PRGREGSET_T 1
21331 _ACEOF
21332
21333 fi
21334 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21335 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
21336
21337 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21338 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
21339 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21341 else
21342 cat >conftest.$ac_ext <<_ACEOF
21343 /* confdefs.h. */
21344 _ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h. */
21348
21349 #define _SYSCALL32
21350 #include <sys/procfs.h>
21351 int
21352 main ()
21353 {
21354 prfpregset_t avar
21355 ;
21356 return 0;
21357 }
21358 _ACEOF
21359 rm -f conftest.$ac_objext
21360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21361 (eval $ac_compile) 2>conftest.er1
21362 ac_status=$?
21363 grep -v '^ *+' conftest.er1 >conftest.err
21364 rm -f conftest.er1
21365 cat conftest.err >&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } &&
21368 { ac_try='test -z "$ac_c_werror_flag"
21369 || test ! -s conftest.err'
21370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371 (eval $ac_try) 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; } &&
21375 { ac_try='test -s conftest.$ac_objext'
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; }; then
21381 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
21382 else
21383 echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21385
21386 bfd_cv_have_sys_procfs_type_prfpregset_t=no
21387
21388 fi
21389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21390 fi
21391
21392 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21393
21394 cat >>confdefs.h <<\_ACEOF
21395 #define HAVE_PRFPREGSET_T 1
21396 _ACEOF
21397
21398 fi
21399 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21400 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
21401
21402 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21403 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
21404 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21406 else
21407 cat >conftest.$ac_ext <<_ACEOF
21408 /* confdefs.h. */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21413
21414 #define _SYSCALL32
21415 #include <sys/procfs.h>
21416 int
21417 main ()
21418 {
21419 prgregset32_t avar
21420 ;
21421 return 0;
21422 }
21423 _ACEOF
21424 rm -f conftest.$ac_objext
21425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21426 (eval $ac_compile) 2>conftest.er1
21427 ac_status=$?
21428 grep -v '^ *+' conftest.er1 >conftest.err
21429 rm -f conftest.er1
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } &&
21433 { ac_try='test -z "$ac_c_werror_flag"
21434 || test ! -s conftest.err'
21435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436 (eval $ac_try) 2>&5
21437 ac_status=$?
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; } &&
21440 { ac_try='test -s conftest.$ac_objext'
21441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442 (eval $ac_try) 2>&5
21443 ac_status=$?
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; }; then
21446 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
21447 else
21448 echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21450
21451 bfd_cv_have_sys_procfs_type_prgregset32_t=no
21452
21453 fi
21454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21455 fi
21456
21457 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
21458
21459 cat >>confdefs.h <<\_ACEOF
21460 #define HAVE_PRGREGSET32_T 1
21461 _ACEOF
21462
21463 fi
21464 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21465 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
21466
21467 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21468 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
21469 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21471 else
21472 cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h. */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478
21479 #define _SYSCALL32
21480 #include <sys/procfs.h>
21481 int
21482 main ()
21483 {
21484 prfpregset32_t avar
21485 ;
21486 return 0;
21487 }
21488 _ACEOF
21489 rm -f conftest.$ac_objext
21490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21491 (eval $ac_compile) 2>conftest.er1
21492 ac_status=$?
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } &&
21498 { ac_try='test -z "$ac_c_werror_flag"
21499 || test ! -s conftest.err'
21500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501 (eval $ac_try) 2>&5
21502 ac_status=$?
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); }; } &&
21505 { ac_try='test -s conftest.$ac_objext'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
21511 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
21512 else
21513 echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21515
21516 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
21517
21518 fi
21519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21520 fi
21521
21522 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
21523
21524 cat >>confdefs.h <<\_ACEOF
21525 #define HAVE_PRFPREGSET32_T 1
21526 _ACEOF
21527
21528 fi
21529 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21530 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
21531
21532 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21533 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
21534 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 else
21537 cat >conftest.$ac_ext <<_ACEOF
21538 /* confdefs.h. */
21539 _ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21543
21544 #define _SYSCALL32
21545 #include <sys/procfs.h>
21546 int
21547 main ()
21548 {
21549 lwpid_t avar
21550 ;
21551 return 0;
21552 }
21553 _ACEOF
21554 rm -f conftest.$ac_objext
21555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21556 (eval $ac_compile) 2>conftest.er1
21557 ac_status=$?
21558 grep -v '^ *+' conftest.er1 >conftest.err
21559 rm -f conftest.er1
21560 cat conftest.err >&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } &&
21563 { ac_try='test -z "$ac_c_werror_flag"
21564 || test ! -s conftest.err'
21565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566 (eval $ac_try) 2>&5
21567 ac_status=$?
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; } &&
21570 { ac_try='test -s conftest.$ac_objext'
21571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572 (eval $ac_try) 2>&5
21573 ac_status=$?
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); }; }; then
21576 bfd_cv_have_sys_procfs_type_lwpid_t=yes
21577 else
21578 echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21580
21581 bfd_cv_have_sys_procfs_type_lwpid_t=no
21582
21583 fi
21584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21585 fi
21586
21587 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
21588
21589 cat >>confdefs.h <<\_ACEOF
21590 #define HAVE_LWPID_T 1
21591 _ACEOF
21592
21593 fi
21594 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21595 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
21596
21597 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
21598 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
21599 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
21600 echo $ECHO_N "(cached) $ECHO_C" >&6
21601 else
21602 cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h. */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21608
21609 #define _SYSCALL32
21610 #include <sys/procfs.h>
21611 int
21612 main ()
21613 {
21614 psaddr_t avar
21615 ;
21616 return 0;
21617 }
21618 _ACEOF
21619 rm -f conftest.$ac_objext
21620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21621 (eval $ac_compile) 2>conftest.er1
21622 ac_status=$?
21623 grep -v '^ *+' conftest.er1 >conftest.err
21624 rm -f conftest.er1
21625 cat conftest.err >&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } &&
21628 { ac_try='test -z "$ac_c_werror_flag"
21629 || test ! -s conftest.err'
21630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21631 (eval $ac_try) 2>&5
21632 ac_status=$?
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); }; } &&
21635 { ac_try='test -s conftest.$ac_objext'
21636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637 (eval $ac_try) 2>&5
21638 ac_status=$?
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; }; then
21641 bfd_cv_have_sys_procfs_type_psaddr_t=yes
21642 else
21643 echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21645
21646 bfd_cv_have_sys_procfs_type_psaddr_t=no
21647
21648 fi
21649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21650 fi
21651
21652 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
21653
21654 cat >>confdefs.h <<\_ACEOF
21655 #define HAVE_PSADDR_T 1
21656 _ACEOF
21657
21658 fi
21659 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21660 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
21661
21662 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
21663 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
21664 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
21666 else
21667 cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h. */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673
21674 #define _SYSCALL32
21675 #include <sys/procfs.h>
21676 int
21677 main ()
21678 {
21679 prsysent_t avar
21680 ;
21681 return 0;
21682 }
21683 _ACEOF
21684 rm -f conftest.$ac_objext
21685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21686 (eval $ac_compile) 2>conftest.er1
21687 ac_status=$?
21688 grep -v '^ *+' conftest.er1 >conftest.err
21689 rm -f conftest.er1
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } &&
21693 { ac_try='test -z "$ac_c_werror_flag"
21694 || test ! -s conftest.err'
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; } &&
21700 { ac_try='test -s conftest.$ac_objext'
21701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21702 (eval $ac_try) 2>&5
21703 ac_status=$?
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); }; }; then
21706 bfd_cv_have_sys_procfs_type_prsysent_t=yes
21707 else
21708 echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21710
21711 bfd_cv_have_sys_procfs_type_prsysent_t=no
21712
21713 fi
21714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21715 fi
21716
21717 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
21718
21719 cat >>confdefs.h <<\_ACEOF
21720 #define HAVE_PRSYSENT_T 1
21721 _ACEOF
21722
21723 fi
21724 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
21725 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
21726
21727 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
21728 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
21729 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
21731 else
21732 cat >conftest.$ac_ext <<_ACEOF
21733 /* confdefs.h. */
21734 _ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h. */
21738
21739 #define _SYSCALL32
21740 #include <sys/procfs.h>
21741 int
21742 main ()
21743 {
21744 pr_sigset_t avar
21745 ;
21746 return 0;
21747 }
21748 _ACEOF
21749 rm -f conftest.$ac_objext
21750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21751 (eval $ac_compile) 2>conftest.er1
21752 ac_status=$?
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } &&
21758 { ac_try='test -z "$ac_c_werror_flag"
21759 || test ! -s conftest.err'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } &&
21765 { ac_try='test -s conftest.$ac_objext'
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
21772 else
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21775
21776 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
21777
21778 fi
21779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21780 fi
21781
21782 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
21783
21784 cat >>confdefs.h <<\_ACEOF
21785 #define HAVE_PR_SIGSET_T 1
21786 _ACEOF
21787
21788 fi
21789 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
21790 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
21791
21792 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
21793 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
21794 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797 cat >conftest.$ac_ext <<_ACEOF
21798 /* confdefs.h. */
21799 _ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21803
21804 #define _SYSCALL32
21805 #include <sys/procfs.h>
21806 int
21807 main ()
21808 {
21809 pr_sigaction64_t avar
21810 ;
21811 return 0;
21812 }
21813 _ACEOF
21814 rm -f conftest.$ac_objext
21815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21816 (eval $ac_compile) 2>conftest.er1
21817 ac_status=$?
21818 grep -v '^ *+' conftest.er1 >conftest.err
21819 rm -f conftest.er1
21820 cat conftest.err >&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } &&
21823 { ac_try='test -z "$ac_c_werror_flag"
21824 || test ! -s conftest.err'
21825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826 (eval $ac_try) 2>&5
21827 ac_status=$?
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; } &&
21830 { ac_try='test -s conftest.$ac_objext'
21831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832 (eval $ac_try) 2>&5
21833 ac_status=$?
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); }; }; then
21836 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
21837 else
21838 echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21840
21841 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
21842
21843 fi
21844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21845 fi
21846
21847 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
21848
21849 cat >>confdefs.h <<\_ACEOF
21850 #define HAVE_PR_SIGACTION64_T 1
21851 _ACEOF
21852
21853 fi
21854 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
21855 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
21856
21857 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
21858 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
21859 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
21860 echo $ECHO_N "(cached) $ECHO_C" >&6
21861 else
21862 cat >conftest.$ac_ext <<_ACEOF
21863 /* confdefs.h. */
21864 _ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868
21869 #define _SYSCALL32
21870 #include <sys/procfs.h>
21871 int
21872 main ()
21873 {
21874 pr_siginfo64_t avar
21875 ;
21876 return 0;
21877 }
21878 _ACEOF
21879 rm -f conftest.$ac_objext
21880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21881 (eval $ac_compile) 2>conftest.er1
21882 ac_status=$?
21883 grep -v '^ *+' conftest.er1 >conftest.err
21884 rm -f conftest.er1
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } &&
21888 { ac_try='test -z "$ac_c_werror_flag"
21889 || test ! -s conftest.err'
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; } &&
21895 { ac_try='test -s conftest.$ac_objext'
21896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
21898 ac_status=$?
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; }; then
21901 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
21902 else
21903 echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21905
21906 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
21907
21908 fi
21909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21910 fi
21911
21912 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
21913
21914 cat >>confdefs.h <<\_ACEOF
21915 #define HAVE_PR_SIGINFO64_T 1
21916 _ACEOF
21917
21918 fi
21919 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
21920 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
21921
21922
21923
21924
21925
21926 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21927 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
21928 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
21929 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21931 else
21932 if test "$cross_compiling" = yes; then
21933 gdb_cv_prfpregset_t_broken=yes
21934 else
21935 cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h. */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 #include <sys/procfs.h>
21942 int main ()
21943 {
21944 if (sizeof (prfpregset_t) == sizeof (void *))
21945 return 1;
21946 return 0;
21947 }
21948 _ACEOF
21949 rm -f conftest$ac_exeext
21950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21951 (eval $ac_link) 2>&5
21952 ac_status=$?
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956 (eval $ac_try) 2>&5
21957 ac_status=$?
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); }; }; then
21960 gdb_cv_prfpregset_t_broken=no
21961 else
21962 echo "$as_me: program exited with status $ac_status" >&5
21963 echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21965
21966 ( exit $ac_status )
21967 gdb_cv_prfpregset_t_broken=yes
21968 fi
21969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21970 fi
21971 fi
21972
21973 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
21974 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
21975 if test $gdb_cv_prfpregset_t_broken = yes; then
21976
21977 cat >>confdefs.h <<\_ACEOF
21978 #define PRFPREGSET_T_BROKEN 1
21979 _ACEOF
21980
21981 fi
21982 fi
21983
21984
21985 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
21986 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
21987 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21989 else
21990 cat >conftest.$ac_ext <<_ACEOF
21991 /* confdefs.h. */
21992 _ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
21996 #include <unistd.h>
21997 #include <sys/types.h>
21998 #include <sys/procfs.h>
21999
22000 int
22001 main ()
22002 {
22003
22004 int dummy;;
22005 dummy = ioctl(0, PIOCSET, &dummy);
22006
22007 ;
22008 return 0;
22009 }
22010 _ACEOF
22011 rm -f conftest.$ac_objext
22012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22013 (eval $ac_compile) 2>conftest.er1
22014 ac_status=$?
22015 grep -v '^ *+' conftest.er1 >conftest.err
22016 rm -f conftest.er1
22017 cat conftest.err >&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } &&
22020 { ac_try='test -z "$ac_c_werror_flag"
22021 || test ! -s conftest.err'
22022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023 (eval $ac_try) 2>&5
22024 ac_status=$?
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); }; } &&
22027 { ac_try='test -s conftest.$ac_objext'
22028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029 (eval $ac_try) 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); }; }; then
22033 gdb_cv_have_procfs_piocset=yes
22034 else
22035 echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038 gdb_cv_have_procfs_piocset=no
22039 fi
22040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22041 fi
22042
22043 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22044 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
22045 if test $gdb_cv_have_procfs_piocset = yes; then
22046
22047 cat >>confdefs.h <<\_ACEOF
22048 #define HAVE_PROCFS_PIOCSET 1
22049 _ACEOF
22050
22051 fi
22052 fi
22053
22054 if test ${host} = ${target} ; then
22055
22056 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22057 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
22058 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22060 else
22061 cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h. */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067 #include <link.h>
22068 int
22069 main ()
22070 {
22071 struct link_map lm; (void) lm.l_addr;
22072 ;
22073 return 0;
22074 }
22075 _ACEOF
22076 rm -f conftest.$ac_objext
22077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22078 (eval $ac_compile) 2>conftest.er1
22079 ac_status=$?
22080 grep -v '^ *+' conftest.er1 >conftest.err
22081 rm -f conftest.er1
22082 cat conftest.err >&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } &&
22085 { ac_try='test -z "$ac_c_werror_flag"
22086 || test ! -s conftest.err'
22087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088 (eval $ac_try) 2>&5
22089 ac_status=$?
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); }; } &&
22092 { ac_try='test -s conftest.$ac_objext'
22093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094 (eval $ac_try) 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; }; then
22098 gdb_cv_have_struct_link_map_with_l_members=yes
22099 else
22100 echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22102
22103 gdb_cv_have_struct_link_map_with_l_members=no
22104 fi
22105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22106 fi
22107
22108 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22109 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
22110 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
22111
22112 cat >>confdefs.h <<\_ACEOF
22113 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
22114 _ACEOF
22115
22116 fi
22117
22118
22119 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22120 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
22121 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22123 else
22124 cat >conftest.$ac_ext <<_ACEOF
22125 /* confdefs.h. */
22126 _ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h. */
22130 #include <sys/types.h>
22131 #include <link.h>
22132 int
22133 main ()
22134 {
22135 struct link_map lm; (void) lm.lm_addr;
22136 ;
22137 return 0;
22138 }
22139 _ACEOF
22140 rm -f conftest.$ac_objext
22141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22142 (eval $ac_compile) 2>conftest.er1
22143 ac_status=$?
22144 grep -v '^ *+' conftest.er1 >conftest.err
22145 rm -f conftest.er1
22146 cat conftest.err >&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); } &&
22149 { ac_try='test -z "$ac_c_werror_flag"
22150 || test ! -s conftest.err'
22151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152 (eval $ac_try) 2>&5
22153 ac_status=$?
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; } &&
22156 { ac_try='test -s conftest.$ac_objext'
22157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22158 (eval $ac_try) 2>&5
22159 ac_status=$?
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; }; then
22162 gdb_cv_have_struct_link_map_with_lm_members=yes
22163 else
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22166
22167 gdb_cv_have_struct_link_map_with_lm_members=no
22168 fi
22169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22170 fi
22171
22172 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22173 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
22174 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
22175
22176 cat >>confdefs.h <<\_ACEOF
22177 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
22178 _ACEOF
22179
22180 fi
22181
22182
22183 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22184 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
22185 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22187 else
22188 cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h. */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22194 #include <sys/types.h>
22195 #ifdef HAVE_NLIST_H
22196 #include <nlist.h>
22197 #endif
22198 #include <link.h>
22199 int
22200 main ()
22201 {
22202 struct so_map lm; (void) lm.som_addr;
22203 ;
22204 return 0;
22205 }
22206 _ACEOF
22207 rm -f conftest.$ac_objext
22208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22209 (eval $ac_compile) 2>conftest.er1
22210 ac_status=$?
22211 grep -v '^ *+' conftest.er1 >conftest.err
22212 rm -f conftest.er1
22213 cat conftest.err >&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); } &&
22216 { ac_try='test -z "$ac_c_werror_flag"
22217 || test ! -s conftest.err'
22218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219 (eval $ac_try) 2>&5
22220 ac_status=$?
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; } &&
22223 { ac_try='test -s conftest.$ac_objext'
22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225 (eval $ac_try) 2>&5
22226 ac_status=$?
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; }; then
22229 gdb_cv_have_struct_so_map_with_som_members=yes
22230 else
22231 echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22233
22234 gdb_cv_have_struct_so_map_with_som_members=no
22235 fi
22236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22237 fi
22238
22239 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
22240 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
22241 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
22242
22243 cat >>confdefs.h <<\_ACEOF
22244 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
22245 _ACEOF
22246
22247 fi
22248
22249
22250 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
22251 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
22252 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
22253 echo $ECHO_N "(cached) $ECHO_C" >&6
22254 else
22255 cat >conftest.$ac_ext <<_ACEOF
22256 /* confdefs.h. */
22257 _ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h. */
22261 #define _SYSCALL32
22262 #include <sys/link.h>
22263 int
22264 main ()
22265 {
22266 struct link_map32 l;
22267 ;
22268 return 0;
22269 }
22270 _ACEOF
22271 rm -f conftest.$ac_objext
22272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22273 (eval $ac_compile) 2>conftest.er1
22274 ac_status=$?
22275 grep -v '^ *+' conftest.er1 >conftest.err
22276 rm -f conftest.er1
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } &&
22280 { ac_try='test -z "$ac_c_werror_flag"
22281 || test ! -s conftest.err'
22282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283 (eval $ac_try) 2>&5
22284 ac_status=$?
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); }; } &&
22287 { ac_try='test -s conftest.$ac_objext'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22290 ac_status=$?
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; }; then
22293 gdb_cv_have_struct_link_map32=yes
22294 else
22295 echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22297
22298 gdb_cv_have_struct_link_map32=no
22299 fi
22300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22301 fi
22302
22303 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22304 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
22305 if test $gdb_cv_have_struct_link_map32 = yes; then
22306
22307 cat >>confdefs.h <<\_ACEOF
22308 #define HAVE_STRUCT_LINK_MAP32 1
22309 _ACEOF
22310
22311
22312 cat >>confdefs.h <<\_ACEOF
22313 #define _SYSCALL32 1
22314 _ACEOF
22315
22316 fi
22317 fi
22318
22319 # Check if the compiler supports the `long long' type.
22320
22321 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22322 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
22323 if test "${gdb_cv_c_long_long+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 else
22326 cat >conftest.$ac_ext <<_ACEOF
22327 /* confdefs.h. */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22332 extern long long foo;
22333 int
22334 main ()
22335 {
22336 switch (foo & 2) { case 0: return 1; }
22337 ;
22338 return 0;
22339 }
22340 _ACEOF
22341 rm -f conftest.$ac_objext
22342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22343 (eval $ac_compile) 2>conftest.er1
22344 ac_status=$?
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } &&
22350 { ac_try='test -z "$ac_c_werror_flag"
22351 || test ! -s conftest.err'
22352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353 (eval $ac_try) 2>&5
22354 ac_status=$?
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); }; } &&
22357 { ac_try='test -s conftest.$ac_objext'
22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22360 ac_status=$?
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); }; }; then
22363 gdb_cv_c_long_long=yes
22364 else
22365 echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22367
22368 gdb_cv_c_long_long=no
22369 fi
22370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22371 fi
22372 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22373 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
22374 if test $gdb_cv_c_long_long = yes; then
22375
22376 cat >>confdefs.h <<\_ACEOF
22377 #define CC_HAS_LONG_LONG 1
22378 _ACEOF
22379
22380 fi
22381
22382 # Check if the compiler and runtime support printing long longs.
22383
22384 echo "$as_me:$LINENO: checking for long long support in printf" >&5
22385 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
22386 if test "${gdb_cv_printf_has_long_long+set}" = set; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22388 else
22389 if test "$cross_compiling" = yes; then
22390 gdb_cv_printf_has_long_long=no
22391 else
22392 cat >conftest.$ac_ext <<_ACEOF
22393 /* confdefs.h. */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h. */
22398 $ac_includes_default
22399 int
22400 main ()
22401 {
22402 char buf[32];
22403 long long l = 0;
22404 l = (l << 16) + 0x0123;
22405 l = (l << 16) + 0x4567;
22406 l = (l << 16) + 0x89ab;
22407 l = (l << 16) + 0xcdef;
22408 sprintf (buf, "0x%016llx", l);
22409 return (strcmp ("0x0123456789abcdef", buf));
22410 ;
22411 return 0;
22412 }
22413 _ACEOF
22414 rm -f conftest$ac_exeext
22415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22416 (eval $ac_link) 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }; then
22425 gdb_cv_printf_has_long_long=yes
22426 else
22427 echo "$as_me: program exited with status $ac_status" >&5
22428 echo "$as_me: failed program was:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22430
22431 ( exit $ac_status )
22432 gdb_cv_printf_has_long_long=no
22433 fi
22434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22435 fi
22436 fi
22437 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22438 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
22439 if test $gdb_cv_printf_has_long_long = yes; then
22440
22441 cat >>confdefs.h <<\_ACEOF
22442 #define PRINTF_HAS_LONG_LONG 1
22443 _ACEOF
22444
22445 fi
22446
22447 # Check if the compiler and runtime support printing decfloats.
22448
22449 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
22450 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
22451 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
22452 echo $ECHO_N "(cached) $ECHO_C" >&6
22453 else
22454 if test "$cross_compiling" = yes; then
22455 gdb_cv_printf_has_decfloat=no
22456 else
22457 cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h. */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22463 $ac_includes_default
22464 int
22465 main ()
22466 {
22467 char buf[64];
22468 _Decimal32 d32 = 1.2345df;
22469 _Decimal64 d64 = 1.2345dd;
22470 _Decimal128 d128 = 1.2345dl;
22471 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
22472 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
22473 ;
22474 return 0;
22475 }
22476 _ACEOF
22477 rm -f conftest$ac_exeext
22478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22479 (eval $ac_link) 2>&5
22480 ac_status=$?
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22484 (eval $ac_try) 2>&5
22485 ac_status=$?
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); }; }; then
22488 gdb_cv_printf_has_decfloat=yes
22489 else
22490 echo "$as_me: program exited with status $ac_status" >&5
22491 echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22493
22494 ( exit $ac_status )
22495 gdb_cv_printf_has_decfloat=no
22496 fi
22497 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22498 fi
22499 fi
22500 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
22501 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
22502 if test $gdb_cv_printf_has_decfloat = yes; then
22503
22504 cat >>confdefs.h <<\_ACEOF
22505 #define PRINTF_HAS_DECFLOAT 1
22506 _ACEOF
22507
22508 fi
22509
22510 # Check if the compiler supports the `long double' type. We can't use
22511 # AC_C_LONG_DOUBLE because that one does additional checks on the
22512 # constants defined in <float.h> that fail on some systems,
22513 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
22514
22515 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22516 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
22517 if test "${gdb_cv_c_long_double+set}" = set; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22519 else
22520 cat >conftest.$ac_ext <<_ACEOF
22521 /* confdefs.h. */
22522 _ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h. */
22526 long double foo;
22527 _ACEOF
22528 rm -f conftest.$ac_objext
22529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22530 (eval $ac_compile) 2>conftest.er1
22531 ac_status=$?
22532 grep -v '^ *+' conftest.er1 >conftest.err
22533 rm -f conftest.er1
22534 cat conftest.err >&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } &&
22537 { ac_try='test -z "$ac_c_werror_flag"
22538 || test ! -s conftest.err'
22539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540 (eval $ac_try) 2>&5
22541 ac_status=$?
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); }; } &&
22544 { ac_try='test -s conftest.$ac_objext'
22545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22546 (eval $ac_try) 2>&5
22547 ac_status=$?
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; }; then
22550 gdb_cv_c_long_double=yes
22551 else
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22554
22555 gdb_cv_c_long_double=no
22556 fi
22557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22558 fi
22559 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22560 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
22561 if test $gdb_cv_c_long_double = yes; then
22562
22563 cat >>confdefs.h <<\_ACEOF
22564 #define HAVE_LONG_DOUBLE 1
22565 _ACEOF
22566
22567 fi
22568
22569 # Check if the compiler and runtime support printing long doubles.
22570
22571 echo "$as_me:$LINENO: checking for long double support in printf" >&5
22572 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
22573 if test "${gdb_cv_printf_has_long_double+set}" = set; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
22575 else
22576 if test "$cross_compiling" = yes; then
22577 gdb_cv_printf_has_long_double=no
22578 else
22579 cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h. */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22585 $ac_includes_default
22586 int
22587 main ()
22588 {
22589 char buf[16];
22590 long double f = 3.141592653;
22591 sprintf (buf, "%Lg", f);
22592 return (strncmp ("3.14159", buf, 7));
22593 ;
22594 return 0;
22595 }
22596 _ACEOF
22597 rm -f conftest$ac_exeext
22598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22599 (eval $ac_link) 2>&5
22600 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22605 ac_status=$?
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; }; then
22608 gdb_cv_printf_has_long_double=yes
22609 else
22610 echo "$as_me: program exited with status $ac_status" >&5
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22613
22614 ( exit $ac_status )
22615 gdb_cv_printf_has_long_double=no
22616 fi
22617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22618 fi
22619 fi
22620 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
22621 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
22622 if test $gdb_cv_printf_has_long_double = yes; then
22623
22624 cat >>confdefs.h <<\_ACEOF
22625 #define PRINTF_HAS_LONG_DOUBLE 1
22626 _ACEOF
22627
22628 fi
22629
22630 # Check if the compiler and runtime support scanning long doubles.
22631
22632 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
22633 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
22634 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22636 else
22637 if test "$cross_compiling" = yes; then
22638 gdb_cv_scanf_has_long_double=no
22639 else
22640 cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h. */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22646 #include <stdio.h>
22647 int
22648 main ()
22649 {
22650 char *buf = "3.141592653";
22651 long double f = 0;
22652 sscanf (buf, "%Lg", &f);
22653 return !(f > 3.14159 && f < 3.14160);
22654 ;
22655 return 0;
22656 }
22657 _ACEOF
22658 rm -f conftest$ac_exeext
22659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22660 (eval $ac_link) 2>&5
22661 ac_status=$?
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665 (eval $ac_try) 2>&5
22666 ac_status=$?
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; }; then
22669 gdb_cv_scanf_has_long_double=yes
22670 else
22671 echo "$as_me: program exited with status $ac_status" >&5
22672 echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22674
22675 ( exit $ac_status )
22676 gdb_cv_scanf_has_long_double=no
22677 fi
22678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22679 fi
22680 fi
22681 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
22682 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
22683 if test $gdb_cv_scanf_has_long_double = yes; then
22684
22685 cat >>confdefs.h <<\_ACEOF
22686 #define SCANF_HAS_LONG_DOUBLE 1
22687 _ACEOF
22688
22689 fi
22690
22691 case ${host_os} in
22692 aix*)
22693 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
22694 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
22695 if test "${gdb_cv_bigtoc+set}" = set; then
22696 echo $ECHO_N "(cached) $ECHO_C" >&6
22697 else
22698
22699 SAVE_LDFLAGS=$LDFLAGS
22700
22701 case $GCC in
22702 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
22703 *) gdb_cv_bigtoc=-bbigtoc ;;
22704 esac
22705
22706 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
22707 cat >conftest.$ac_ext <<_ACEOF
22708 /* confdefs.h. */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22713
22714 int
22715 main ()
22716 {
22717 int i;
22718 ;
22719 return 0;
22720 }
22721 _ACEOF
22722 rm -f conftest.$ac_objext conftest$ac_exeext
22723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22724 (eval $ac_link) 2>conftest.er1
22725 ac_status=$?
22726 grep -v '^ *+' conftest.er1 >conftest.err
22727 rm -f conftest.er1
22728 cat conftest.err >&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } &&
22731 { ac_try='test -z "$ac_c_werror_flag"
22732 || test ! -s conftest.err'
22733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22735 ac_status=$?
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; } &&
22738 { ac_try='test -s conftest$ac_exeext'
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22741 ac_status=$?
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; }; then
22744 :
22745 else
22746 echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22748
22749 gdb_cv_bigtoc=
22750 fi
22751 rm -f conftest.err conftest.$ac_objext \
22752 conftest$ac_exeext conftest.$ac_ext
22753 LDFLAGS="${SAVE_LDFLAGS}"
22754
22755 fi
22756 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
22757 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
22758 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
22759 ;;
22760 esac
22761
22762
22763
22764 if test ${build} = ${host} -a ${host} = ${target} ; then
22765 case ${host_os} in
22766 hpux*)
22767 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
22768 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
22769 if test -f /usr/include/dce/cma_config.h ; then
22770 if test "$GCC" = "yes" ; then
22771 echo "$as_me:$LINENO: result: yes" >&5
22772 echo "${ECHO_T}yes" >&6
22773
22774 cat >>confdefs.h <<\_ACEOF
22775 #define HAVE_HPUX_THREAD_SUPPORT 1
22776 _ACEOF
22777
22778 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
22779 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
22780 else
22781 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
22782 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
22783 fi
22784 else
22785 echo "$as_me:$LINENO: result: no" >&5
22786 echo "${ECHO_T}no" >&6
22787 fi
22788 ;;
22789 solaris*)
22790 # See if thread_db library is around for Solaris thread debugging.
22791 # Note that we must explicitly test for version 1 of the library
22792 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
22793 # the same API.
22794 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
22795 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
22796 if test -f /usr/lib/libthread_db.so.1 ; then
22797 echo "$as_me:$LINENO: result: yes" >&5
22798 echo "${ECHO_T}yes" >&6
22799
22800 cat >>confdefs.h <<\_ACEOF
22801 #define HAVE_THREAD_DB_LIB 1
22802 _ACEOF
22803
22804 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
22805 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
22806
22807 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22808 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22809 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22810 echo $ECHO_N "(cached) $ECHO_C" >&6
22811 else
22812 ac_check_lib_save_LIBS=$LIBS
22813 LIBS="-ldl $LIBS"
22814 cat >conftest.$ac_ext <<_ACEOF
22815 /* confdefs.h. */
22816 _ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h. */
22820
22821 /* Override any gcc2 internal prototype to avoid an error. */
22822 #ifdef __cplusplus
22823 extern "C"
22824 #endif
22825 /* We use char because int might match the return type of a gcc2
22826 builtin and then its argument prototype would still apply. */
22827 char dlopen ();
22828 int
22829 main ()
22830 {
22831 dlopen ();
22832 ;
22833 return 0;
22834 }
22835 _ACEOF
22836 rm -f conftest.$ac_objext conftest$ac_exeext
22837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22838 (eval $ac_link) 2>conftest.er1
22839 ac_status=$?
22840 grep -v '^ *+' conftest.er1 >conftest.err
22841 rm -f conftest.er1
22842 cat conftest.err >&5
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); } &&
22845 { ac_try='test -z "$ac_c_werror_flag"
22846 || test ! -s conftest.err'
22847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848 (eval $ac_try) 2>&5
22849 ac_status=$?
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); }; } &&
22852 { ac_try='test -s conftest$ac_exeext'
22853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854 (eval $ac_try) 2>&5
22855 ac_status=$?
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; }; then
22858 ac_cv_lib_dl_dlopen=yes
22859 else
22860 echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22862
22863 ac_cv_lib_dl_dlopen=no
22864 fi
22865 rm -f conftest.err conftest.$ac_objext \
22866 conftest$ac_exeext conftest.$ac_ext
22867 LIBS=$ac_check_lib_save_LIBS
22868 fi
22869 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22870 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22871 if test $ac_cv_lib_dl_dlopen = yes; then
22872 cat >>confdefs.h <<_ACEOF
22873 #define HAVE_LIBDL 1
22874 _ACEOF
22875
22876 LIBS="-ldl $LIBS"
22877
22878 fi
22879
22880 if test "$GCC" = "yes" ; then
22881 # The GNU linker requires the -export-dynamic option to make
22882 # all symbols visible in the dynamic symbol table.
22883 hold_ldflags=$LDFLAGS
22884 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
22885 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
22886 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
22887 cat >conftest.$ac_ext <<_ACEOF
22888 /* confdefs.h. */
22889 _ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22893
22894 int
22895 main ()
22896 {
22897 int i;
22898 ;
22899 return 0;
22900 }
22901 _ACEOF
22902 rm -f conftest.$ac_objext conftest$ac_exeext
22903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22904 (eval $ac_link) 2>conftest.er1
22905 ac_status=$?
22906 grep -v '^ *+' conftest.er1 >conftest.err
22907 rm -f conftest.er1
22908 cat conftest.err >&5
22909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); } &&
22911 { ac_try='test -z "$ac_c_werror_flag"
22912 || test ! -s conftest.err'
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22915 ac_status=$?
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; } &&
22918 { ac_try='test -s conftest$ac_exeext'
22919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920 (eval $ac_try) 2>&5
22921 ac_status=$?
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); }; }; then
22924 found=yes
22925 else
22926 echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22928
22929 found=no
22930 fi
22931 rm -f conftest.err conftest.$ac_objext \
22932 conftest$ac_exeext conftest.$ac_ext
22933 LDFLAGS=$hold_ldflags
22934 echo "$as_me:$LINENO: result: $found" >&5
22935 echo "${ECHO_T}$found" >&6
22936 if test $found = yes; then
22937 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
22938 fi
22939 fi
22940 # Sun randomly tweaked the prototypes in <proc_service.h>
22941 # at one point.
22942 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
22943 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
22944 if test "${gdb_cv_proc_service_is_old+set}" = set; then
22945 echo $ECHO_N "(cached) $ECHO_C" >&6
22946 else
22947
22948 cat >conftest.$ac_ext <<_ACEOF
22949 /* confdefs.h. */
22950 _ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h. */
22954
22955 #include <proc_service.h>
22956 ps_err_e ps_pdwrite
22957 (struct ps_prochandle*, psaddr_t, const void*, size_t);
22958
22959 int
22960 main ()
22961 {
22962
22963 ;
22964 return 0;
22965 }
22966 _ACEOF
22967 rm -f conftest.$ac_objext
22968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22969 (eval $ac_compile) 2>conftest.er1
22970 ac_status=$?
22971 grep -v '^ *+' conftest.er1 >conftest.err
22972 rm -f conftest.er1
22973 cat conftest.err >&5
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } &&
22976 { ac_try='test -z "$ac_c_werror_flag"
22977 || test ! -s conftest.err'
22978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979 (eval $ac_try) 2>&5
22980 ac_status=$?
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); }; } &&
22983 { ac_try='test -s conftest.$ac_objext'
22984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22985 (eval $ac_try) 2>&5
22986 ac_status=$?
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); }; }; then
22989 gdb_cv_proc_service_is_old=no
22990 else
22991 echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22993
22994 gdb_cv_proc_service_is_old=yes
22995 fi
22996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22997
22998 fi
22999
23000 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23001 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
23002 if test $gdb_cv_proc_service_is_old = yes; then
23003
23004 cat >>confdefs.h <<\_ACEOF
23005 #define PROC_SERVICE_IS_OLD 1
23006 _ACEOF
23007
23008 fi
23009 else
23010 echo "$as_me:$LINENO: result: no" >&5
23011 echo "${ECHO_T}no" >&6
23012 fi
23013 ;;
23014 aix*)
23015 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23016 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
23017 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23019 else
23020 cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h. */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 #include <sys/pthdebug.h>
23027 int
23028 main ()
23029 {
23030 #ifndef PTHDB_VERSION_3
23031 #error
23032 #endif
23033 ;
23034 return 0;
23035 }
23036 _ACEOF
23037 rm -f conftest.$ac_objext
23038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23039 (eval $ac_compile) 2>conftest.er1
23040 ac_status=$?
23041 grep -v '^ *+' conftest.er1 >conftest.err
23042 rm -f conftest.er1
23043 cat conftest.err >&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } &&
23046 { ac_try='test -z "$ac_c_werror_flag"
23047 || test ! -s conftest.err'
23048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23049 (eval $ac_try) 2>&5
23050 ac_status=$?
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); }; } &&
23053 { ac_try='test -s conftest.$ac_objext'
23054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23055 (eval $ac_try) 2>&5
23056 ac_status=$?
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); }; }; then
23059 gdb_cv_have_aix_thread_debug=yes
23060 else
23061 echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23063
23064 gdb_cv_have_aix_thread_debug=no
23065 fi
23066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23067 fi
23068
23069 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23070 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
23071 if test $gdb_cv_have_aix_thread_debug = yes; then
23072 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
23073 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
23074 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23075 fi
23076 ;;
23077 esac
23078
23079 fi
23080
23081 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
23082 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23083 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
23084 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23086 else
23087 cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h. */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23093 #include <thread_db.h>
23094 int
23095 main ()
23096 {
23097 int i = TD_NOTALLOC;
23098 ;
23099 return 0;
23100 }
23101 _ACEOF
23102 rm -f conftest.$ac_objext
23103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23104 (eval $ac_compile) 2>conftest.er1
23105 ac_status=$?
23106 grep -v '^ *+' conftest.er1 >conftest.err
23107 rm -f conftest.er1
23108 cat conftest.err >&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); } &&
23111 { ac_try='test -z "$ac_c_werror_flag"
23112 || test ! -s conftest.err'
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; } &&
23118 { ac_try='test -s conftest.$ac_objext'
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
23121 ac_status=$?
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; }; then
23124 gdb_cv_thread_db_h_has_td_notalloc=yes
23125 else
23126 echo "$as_me: failed program was:" >&5
23127 sed 's/^/| /' conftest.$ac_ext >&5
23128
23129 gdb_cv_thread_db_h_has_td_notalloc=no
23130
23131 fi
23132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23133
23134 fi
23135 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23136 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
23137 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
23138 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
23139 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23141 else
23142 cat >conftest.$ac_ext <<_ACEOF
23143 /* confdefs.h. */
23144 _ACEOF
23145 cat confdefs.h >>conftest.$ac_ext
23146 cat >>conftest.$ac_ext <<_ACEOF
23147 /* end confdefs.h. */
23148 #include <thread_db.h>
23149 int
23150 main ()
23151 {
23152 int i = TD_VERSION;
23153 ;
23154 return 0;
23155 }
23156 _ACEOF
23157 rm -f conftest.$ac_objext
23158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23159 (eval $ac_compile) 2>conftest.er1
23160 ac_status=$?
23161 grep -v '^ *+' conftest.er1 >conftest.err
23162 rm -f conftest.er1
23163 cat conftest.err >&5
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); } &&
23166 { ac_try='test -z "$ac_c_werror_flag"
23167 || test ! -s conftest.err'
23168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169 (eval $ac_try) 2>&5
23170 ac_status=$?
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; } &&
23173 { ac_try='test -s conftest.$ac_objext'
23174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23176 ac_status=$?
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); }; }; then
23179 gdb_cv_thread_db_h_has_td_version=yes
23180 else
23181 echo "$as_me: failed program was:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23183
23184 gdb_cv_thread_db_h_has_td_version=no
23185
23186 fi
23187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23188
23189 fi
23190 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
23191 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
23192 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
23193 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
23194 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
23195 echo $ECHO_N "(cached) $ECHO_C" >&6
23196 else
23197 cat >conftest.$ac_ext <<_ACEOF
23198 /* confdefs.h. */
23199 _ACEOF
23200 cat confdefs.h >>conftest.$ac_ext
23201 cat >>conftest.$ac_ext <<_ACEOF
23202 /* end confdefs.h. */
23203 #include <thread_db.h>
23204 int
23205 main ()
23206 {
23207 int i = TD_NOTLS;
23208 ;
23209 return 0;
23210 }
23211 _ACEOF
23212 rm -f conftest.$ac_objext
23213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23214 (eval $ac_compile) 2>conftest.er1
23215 ac_status=$?
23216 grep -v '^ *+' conftest.er1 >conftest.err
23217 rm -f conftest.er1
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } &&
23221 { ac_try='test -z "$ac_c_werror_flag"
23222 || test ! -s conftest.err'
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; } &&
23228 { ac_try='test -s conftest.$ac_objext'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 gdb_cv_thread_db_h_has_td_notls=yes
23235 else
23236 echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23238
23239 gdb_cv_thread_db_h_has_td_notls=no
23240
23241 fi
23242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23243
23244 fi
23245 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
23246 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
23247 fi
23248 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
23249
23250 cat >>confdefs.h <<\_ACEOF
23251 #define THREAD_DB_HAS_TD_NOTALLOC 1
23252 _ACEOF
23253
23254 fi
23255 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
23256
23257 cat >>confdefs.h <<\_ACEOF
23258 #define THREAD_DB_HAS_TD_VERSION 1
23259 _ACEOF
23260
23261 fi
23262 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
23263
23264 cat >>confdefs.h <<\_ACEOF
23265 #define THREAD_DB_HAS_TD_NOTLS 1
23266 _ACEOF
23267
23268 fi
23269
23270 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
23271 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
23272 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
23273 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
23274 echo $ECHO_N "(cached) $ECHO_C" >&6
23275 else
23276 cat >conftest.$ac_ext <<_ACEOF
23277 /* confdefs.h. */
23278 _ACEOF
23279 cat confdefs.h >>conftest.$ac_ext
23280 cat >>conftest.$ac_ext <<_ACEOF
23281 /* end confdefs.h. */
23282 #include <sys/syscall.h>
23283 int
23284 main ()
23285 {
23286 int i = __NR_tkill;
23287 ;
23288 return 0;
23289 }
23290 _ACEOF
23291 rm -f conftest.$ac_objext
23292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23293 (eval $ac_compile) 2>conftest.er1
23294 ac_status=$?
23295 grep -v '^ *+' conftest.er1 >conftest.err
23296 rm -f conftest.er1
23297 cat conftest.err >&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); } &&
23300 { ac_try='test -z "$ac_c_werror_flag"
23301 || test ! -s conftest.err'
23302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23303 (eval $ac_try) 2>&5
23304 ac_status=$?
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); }; } &&
23307 { ac_try='test -s conftest.$ac_objext'
23308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309 (eval $ac_try) 2>&5
23310 ac_status=$?
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; }; then
23313 gdb_cv_sys_syscall_h_has_tkill=yes
23314 else
23315 echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23317
23318 gdb_cv_sys_syscall_h_has_tkill=no
23319
23320 fi
23321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23322
23323 fi
23324 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
23325 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
23326 fi
23327 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
23328
23329 cat >>confdefs.h <<\_ACEOF
23330 #define HAVE_TKILL_SYSCALL 1
23331 _ACEOF
23332
23333 fi
23334
23335
23336
23337 # Check whether --with-sysroot or --without-sysroot was given.
23338 if test "${with_sysroot+set}" = set; then
23339 withval="$with_sysroot"
23340
23341 case ${with_sysroot} in
23342 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
23343 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
23344 esac
23345
23346 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
23347
23348 if test "x$prefix" = xNONE; then
23349 test_prefix=/usr/local
23350 else
23351 test_prefix=$prefix
23352 fi
23353 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
23354 test_exec_prefix=$test_prefix
23355 else
23356 test_exec_prefix=$exec_prefix
23357 fi
23358 case ${TARGET_SYSTEM_ROOT} in
23359 "${test_prefix}"|"${test_prefix}/"*|\
23360 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
23361 '${prefix}'|'${prefix}/'*|\
23362 '${exec_prefix}'|'${exec_prefix}/'*)
23363 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
23364 TARGET_SYSTEM_ROOT_DEFINE="$t"
23365 ;;
23366 esac
23367
23368 else
23369
23370 TARGET_SYSTEM_ROOT=
23371 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
23372
23373 fi;
23374
23375
23376
23377 # Check whether --enable-werror or --disable-werror was given.
23378 if test "${enable_werror+set}" = set; then
23379 enableval="$enable_werror"
23380 case "${enableval}" in
23381 yes | y) ERROR_ON_WARNING="yes" ;;
23382 no | n) ERROR_ON_WARNING="no" ;;
23383 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
23384 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
23385 { (exit 1); exit 1; }; } ;;
23386 esac
23387 fi;
23388
23389 # Enable -Werror by default when using gcc
23390 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
23391 ERROR_ON_WARNING=yes
23392 fi
23393
23394 WERROR_CFLAGS=""
23395 if test "${ERROR_ON_WARNING}" = yes ; then
23396 WERROR_CFLAGS="-Werror"
23397 fi
23398
23399 # The entries after -Wno-pointer-sign are disabled warnings which may
23400 # be enabled in the future, which can not currently be used to build
23401 # GDB.
23402 # NOTE: If you change this list, remember to update
23403 # gdb/doc/gdbint.texinfo.
23404 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
23405 -Wformat-nonliteral -Wno-pointer-sign \
23406 -Wno-unused -Wno-switch -Wno-char-subscripts"
23407
23408 # Check whether --enable-build-warnings or --disable-build-warnings was given.
23409 if test "${enable_build_warnings+set}" = set; then
23410 enableval="$enable_build_warnings"
23411 case "${enableval}" in
23412 yes) ;;
23413 no) build_warnings="-w";;
23414 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23415 build_warnings="${build_warnings} ${t}";;
23416 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23417 build_warnings="${t} ${build_warnings}";;
23418 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23419 esac
23420 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23421 echo "Setting compiler warning flags = $build_warnings" 6>&1
23422 fi
23423 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
23424 if test "${enable_gdb_build_warnings+set}" = set; then
23425 enableval="$enable_gdb_build_warnings"
23426 case "${enableval}" in
23427 yes) ;;
23428 no) build_warnings="-w";;
23429 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23430 build_warnings="${build_warnings} ${t}";;
23431 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23432 build_warnings="${t} ${build_warnings}";;
23433 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23434 esac
23435 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23436 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
23437 fi
23438 fi; WARN_CFLAGS=""
23439 if test "x${build_warnings}" != x -a "x$GCC" = xyes
23440 then
23441 echo "$as_me:$LINENO: checking compiler warning flags" >&5
23442 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
23443 # Separate out the -Werror flag as some files just cannot be
23444 # compiled with it enabled.
23445 for w in ${build_warnings}; do
23446 case $w in
23447 -Werr*) WERROR_CFLAGS=-Werror ;;
23448 *) # Check that GCC accepts it
23449 saved_CFLAGS="$CFLAGS"
23450 CFLAGS="$CFLAGS $w"
23451 cat >conftest.$ac_ext <<_ACEOF
23452 /* confdefs.h. */
23453 _ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23457
23458 int
23459 main ()
23460 {
23461
23462 ;
23463 return 0;
23464 }
23465 _ACEOF
23466 rm -f conftest.$ac_objext
23467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23468 (eval $ac_compile) 2>conftest.er1
23469 ac_status=$?
23470 grep -v '^ *+' conftest.er1 >conftest.err
23471 rm -f conftest.er1
23472 cat conftest.err >&5
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); } &&
23475 { ac_try='test -z "$ac_c_werror_flag"
23476 || test ! -s conftest.err'
23477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23478 (eval $ac_try) 2>&5
23479 ac_status=$?
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; } &&
23482 { ac_try='test -s conftest.$ac_objext'
23483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23484 (eval $ac_try) 2>&5
23485 ac_status=$?
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; }; then
23488 WARN_CFLAGS="${WARN_CFLAGS} $w"
23489 else
23490 echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23492
23493 fi
23494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23495 CFLAGS="$saved_CFLAGS"
23496 esac
23497 done
23498 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
23499 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
23500 fi
23501
23502
23503
23504 # In the Cygwin environment, we need some additional flags.
23505 echo "$as_me:$LINENO: checking for cygwin" >&5
23506 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
23507 if test "${gdb_cv_os_cygwin+set}" = set; then
23508 echo $ECHO_N "(cached) $ECHO_C" >&6
23509 else
23510 cat >conftest.$ac_ext <<_ACEOF
23511 /* confdefs.h. */
23512 _ACEOF
23513 cat confdefs.h >>conftest.$ac_ext
23514 cat >>conftest.$ac_ext <<_ACEOF
23515 /* end confdefs.h. */
23516
23517 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
23518 lose
23519 #endif
23520 _ACEOF
23521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23522 $EGREP "lose" >/dev/null 2>&1; then
23523 gdb_cv_os_cygwin=yes
23524 else
23525 gdb_cv_os_cygwin=no
23526 fi
23527 rm -f conftest*
23528
23529 fi
23530 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
23531 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
23532
23533
23534 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
23535 case ${host} in
23536 *go32* ) SER_HARDWIRE=ser-go32.o ;;
23537 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
23538 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
23539 esac
23540
23541
23542 # libreadline needs libuser32.a in a cygwin environment
23543 WIN32LIBS=
23544 if test x$gdb_cv_os_cygwin = xyes; then
23545 WIN32LIBS="-luser32"
23546 case "${target}" in
23547 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
23548 ;;
23549 esac
23550 fi
23551
23552 # The ser-tcp.c module requires sockets.
23553 case ${host} in
23554 *mingw32*)
23555
23556 cat >>confdefs.h <<\_ACEOF
23557 #define USE_WIN32API 1
23558 _ACEOF
23559
23560 WIN32LIBS="$WIN32LIBS -lws2_32"
23561 ;;
23562 esac
23563
23564
23565 # Add ELF support to GDB, but only if BFD includes ELF support.
23566 OLD_CFLAGS=$CFLAGS
23567 OLD_LDFLAGS=$LDFLAGS
23568 OLD_LIBS=$LIBS
23569 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
23570 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
23571 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
23572 LIBS="$LIBS -lbfd -liberty $intl"
23573 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
23574 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
23575 if test "${gdb_cv_var_elf+set}" = set; then
23576 echo $ECHO_N "(cached) $ECHO_C" >&6
23577 else
23578 cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h. */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584 #include <stdlib.h>
23585 #include "bfd.h"
23586 #include "elf-bfd.h"
23587
23588 int
23589 main ()
23590 {
23591 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
23592 ;
23593 return 0;
23594 }
23595 _ACEOF
23596 rm -f conftest.$ac_objext conftest$ac_exeext
23597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23598 (eval $ac_link) 2>conftest.er1
23599 ac_status=$?
23600 grep -v '^ *+' conftest.er1 >conftest.err
23601 rm -f conftest.er1
23602 cat conftest.err >&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } &&
23605 { ac_try='test -z "$ac_c_werror_flag"
23606 || test ! -s conftest.err'
23607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23608 (eval $ac_try) 2>&5
23609 ac_status=$?
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); }; } &&
23612 { ac_try='test -s conftest$ac_exeext'
23613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23614 (eval $ac_try) 2>&5
23615 ac_status=$?
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); }; }; then
23618 gdb_cv_var_elf=yes
23619 else
23620 echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23622
23623 gdb_cv_var_elf=no
23624 fi
23625 rm -f conftest.err conftest.$ac_objext \
23626 conftest$ac_exeext conftest.$ac_ext
23627 fi
23628 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
23629 echo "${ECHO_T}$gdb_cv_var_elf" >&6
23630 if test $gdb_cv_var_elf = yes; then
23631 CONFIG_OBS="$CONFIG_OBS elfread.o"
23632
23633 cat >>confdefs.h <<\_ACEOF
23634 #define HAVE_ELF 1
23635 _ACEOF
23636
23637 fi
23638 CFLAGS=$OLD_CFLAGS
23639 LDFLAGS=$OLD_LDFLAGS
23640 LIBS=$OLD_LIBS
23641
23642 # Add any host-specific objects to GDB.
23643 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
23644
23645 LIBGUI="../libgui/src/libgui.a"
23646 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
23647
23648
23649
23650 WIN32LDAPP=
23651
23652
23653
23654 case "${host}" in
23655 *-*-cygwin* | *-*-mingw* )
23656 configdir="win"
23657 ;;
23658 *)
23659 configdir="unix"
23660 ;;
23661 esac
23662
23663 GDBTKLIBS=
23664 if test "${enable_gdbtk}" = "yes"; then
23665
23666 # Gdbtk must have an absolute path to srcdir in order to run
23667 # properly when not installed.
23668 here=`pwd`
23669 cd ${srcdir}
23670 GDBTK_SRC_DIR=`pwd`
23671 cd $here
23672
23673
23674 #
23675 # Ok, lets find the tcl configuration
23676 # First, look for one uninstalled.
23677 # the alternative search directory is invoked by --with-tclconfig
23678 #
23679
23680 if test x"${no_tcl}" = x ; then
23681 # we reset no_tcl in case something fails here
23682 no_tcl=true
23683
23684 # Check whether --with-tclconfig or --without-tclconfig was given.
23685 if test "${with_tclconfig+set}" = set; then
23686 withval="$with_tclconfig"
23687 with_tclconfig=${withval}
23688 fi;
23689 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
23690 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
23691 if test "${ac_cv_c_tclconfig+set}" = set; then
23692 echo $ECHO_N "(cached) $ECHO_C" >&6
23693 else
23694
23695
23696 # First check to see if --with-tclconfig was specified.
23697 if test x"${with_tclconfig}" != x ; then
23698 if test -f "${with_tclconfig}/tclConfig.sh" ; then
23699 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
23700 else
23701 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
23702 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
23703 { (exit 1); exit 1; }; }
23704 fi
23705 fi
23706
23707 # then check for a private Tcl installation
23708 if test x"${ac_cv_c_tclconfig}" = x ; then
23709 for i in \
23710 ../tcl \
23711 `ls -dr ../tcl[7-9]* 2>/dev/null` \
23712 ../../tcl \
23713 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
23714 ../../../tcl \
23715 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
23716 if test -f "$i/${configdir}/tclConfig.sh" ; then
23717 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23718 break
23719 fi
23720 done
23721 fi
23722 # check in a few common install locations
23723 if test x"${ac_cv_c_tclconfig}" = x ; then
23724 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23725 if test -f "$i/tclConfig.sh" ; then
23726 ac_cv_c_tclconfig=`(cd $i; pwd)`
23727 break
23728 fi
23729 done
23730 fi
23731 # check in a few other private locations
23732 if test x"${ac_cv_c_tclconfig}" = x ; then
23733 for i in \
23734 ${srcdir}/../tcl \
23735 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
23736 if test -f "$i/${configdir}/tclConfig.sh" ; then
23737 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23738 break
23739 fi
23740 done
23741 fi
23742
23743 fi
23744
23745 if test x"${ac_cv_c_tclconfig}" = x ; then
23746 TCLCONFIG="# no Tcl configs found"
23747 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
23748 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
23749 else
23750 no_tcl=
23751 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
23752 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
23753 echo "${ECHO_T}found $TCLCONFIG" >&6
23754 fi
23755 fi
23756
23757 if test -z "${no_tcl}"; then
23758
23759 . $TCLCONFIG
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787 #
23788 # Ok, lets find the tk configuration
23789 # First, look for one uninstalled.
23790 # the alternative search directory is invoked by --with-tkconfig
23791 #
23792
23793 if test x"${no_tk}" = x ; then
23794 # we reset no_tk in case something fails here
23795 no_tk=true
23796
23797 # Check whether --with-tkconfig or --without-tkconfig was given.
23798 if test "${with_tkconfig+set}" = set; then
23799 withval="$with_tkconfig"
23800 with_tkconfig=${withval}
23801 fi;
23802 echo "$as_me:$LINENO: checking for Tk configuration" >&5
23803 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
23804 if test "${ac_cv_c_tkconfig+set}" = set; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23806 else
23807
23808
23809 # First check to see if --with-tkconfig was specified.
23810 if test x"${with_tkconfig}" != x ; then
23811 if test -f "${with_tkconfig}/tkConfig.sh" ; then
23812 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
23813 else
23814 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
23815 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
23816 { (exit 1); exit 1; }; }
23817 fi
23818 fi
23819
23820 # then check for a private Tk library
23821 if test x"${ac_cv_c_tkconfig}" = x ; then
23822 for i in \
23823 ../tk \
23824 `ls -dr ../tk[4-9]* 2>/dev/null` \
23825 ../../tk \
23826 `ls -dr ../../tk[4-9]* 2>/dev/null` \
23827 ../../../tk \
23828 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
23829 if test -f "$i/${configdir}/tkConfig.sh" ; then
23830 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23831 break
23832 fi
23833 done
23834 fi
23835 # check in a few common install locations
23836 if test x"${ac_cv_c_tkconfig}" = x ; then
23837 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23838 if test -f "$i/tkConfig.sh" ; then
23839 ac_cv_c_tkconfig=`(cd $i; pwd)`
23840 break
23841 fi
23842 done
23843 fi
23844 # check in a few other private locations
23845 if test x"${ac_cv_c_tkconfig}" = x ; then
23846 for i in \
23847 ${srcdir}/../tk \
23848 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
23849 if test -f "$i/${configdir}/tkConfig.sh" ; then
23850 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23851 break
23852 fi
23853 done
23854 fi
23855
23856 fi
23857
23858 if test x"${ac_cv_c_tkconfig}" = x ; then
23859 TKCONFIG="# no Tk configs found"
23860 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
23861 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
23862 else
23863 no_tk=
23864 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
23865 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
23866 echo "${ECHO_T}found $TKCONFIG" >&6
23867 fi
23868 fi
23869
23870
23871
23872 # now look for Tcl library stuff
23873
23874 tcldir="../tcl/${configdir}/"
23875
23876 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
23877
23878 # If $no_tk is nonempty, then we can't do Tk, and there is no
23879 # point to doing Tcl.
23880 if test -z "${no_tk}"; then
23881
23882 if test -f "$TKCONFIG" ; then
23883 . $TKCONFIG
23884 fi
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899 #
23900 # Ok, lets find the tcl source trees so we can use the headers
23901 # Warning: transition of version 9 to 10 will break this algorithm
23902 # because 10 sorts before 9. We also look for just tcl. We have to
23903 # be careful that we don't match stuff like tclX by accident.
23904 # the alternative search directory is involked by --with-tclinclude
23905 #
23906
23907 no_tcl=true
23908 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
23909 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
23910
23911 # Check whether --with-tclinclude or --without-tclinclude was given.
23912 if test "${with_tclinclude+set}" = set; then
23913 withval="$with_tclinclude"
23914 with_tclinclude=${withval}
23915 fi;
23916 if test "${ac_cv_c_tclh+set}" = set; then
23917 echo $ECHO_N "(cached) $ECHO_C" >&6
23918 else
23919
23920 # first check to see if --with-tclinclude was specified
23921 if test x"${with_tclinclude}" != x ; then
23922 if test -f ${with_tclinclude}/tclInt.h ; then
23923 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
23924 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
23925 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
23926 else
23927 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
23928 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
23929 { (exit 1); exit 1; }; }
23930 fi
23931 fi
23932
23933 # next check if it came with Tcl configuration file
23934 if test x"${ac_cv_c_tclconfig}" = x ; then
23935 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
23936 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
23937 fi
23938 fi
23939
23940 # next check in private source directory
23941 #
23942 # since ls returns lowest version numbers first, reverse its output
23943 if test x"${ac_cv_c_tclh}" = x ; then
23944 for i in \
23945 ${srcdir}/../tcl \
23946 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
23947 ${srcdir}/../../tcl \
23948 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
23949 ${srcdir}/../../../tcl \
23950 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
23951 if test -f $i/generic/tclInt.h ; then
23952 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23953 break
23954 fi
23955 done
23956 fi
23957 # finally check in a few common install locations
23958 #
23959 # since ls returns lowest version numbers first, reverse its output
23960 if test x"${ac_cv_c_tclh}" = x ; then
23961 for i in \
23962 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
23963 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
23964 /usr/local/src/tcl \
23965 /usr/local/lib/tcl \
23966 ${prefix}/include ; do
23967 if test -f $i/generic/tclInt.h ; then
23968 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23969 break
23970 fi
23971 done
23972 fi
23973 # see if one is installed
23974 if test x"${ac_cv_c_tclh}" = x ; then
23975 if test "${ac_cv_header_tclInt_h+set}" = set; then
23976 echo "$as_me:$LINENO: checking for tclInt.h" >&5
23977 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
23978 if test "${ac_cv_header_tclInt_h+set}" = set; then
23979 echo $ECHO_N "(cached) $ECHO_C" >&6
23980 fi
23981 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23982 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
23983 else
23984 # Is the header compilable?
23985 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
23986 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
23987 cat >conftest.$ac_ext <<_ACEOF
23988 /* confdefs.h. */
23989 _ACEOF
23990 cat confdefs.h >>conftest.$ac_ext
23991 cat >>conftest.$ac_ext <<_ACEOF
23992 /* end confdefs.h. */
23993 $ac_includes_default
23994 #include <tclInt.h>
23995 _ACEOF
23996 rm -f conftest.$ac_objext
23997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23998 (eval $ac_compile) 2>conftest.er1
23999 ac_status=$?
24000 grep -v '^ *+' conftest.er1 >conftest.err
24001 rm -f conftest.er1
24002 cat conftest.err >&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); } &&
24005 { ac_try='test -z "$ac_c_werror_flag"
24006 || test ! -s conftest.err'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; } &&
24012 { ac_try='test -s conftest.$ac_objext'
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 ac_header_compiler=yes
24019 else
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24022
24023 ac_header_compiler=no
24024 fi
24025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24027 echo "${ECHO_T}$ac_header_compiler" >&6
24028
24029 # Is the header present?
24030 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
24031 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
24032 cat >conftest.$ac_ext <<_ACEOF
24033 /* confdefs.h. */
24034 _ACEOF
24035 cat confdefs.h >>conftest.$ac_ext
24036 cat >>conftest.$ac_ext <<_ACEOF
24037 /* end confdefs.h. */
24038 #include <tclInt.h>
24039 _ACEOF
24040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24042 ac_status=$?
24043 grep -v '^ *+' conftest.er1 >conftest.err
24044 rm -f conftest.er1
24045 cat conftest.err >&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } >/dev/null; then
24048 if test -s conftest.err; then
24049 ac_cpp_err=$ac_c_preproc_warn_flag
24050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24051 else
24052 ac_cpp_err=
24053 fi
24054 else
24055 ac_cpp_err=yes
24056 fi
24057 if test -z "$ac_cpp_err"; then
24058 ac_header_preproc=yes
24059 else
24060 echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24062
24063 ac_header_preproc=no
24064 fi
24065 rm -f conftest.err conftest.$ac_ext
24066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24067 echo "${ECHO_T}$ac_header_preproc" >&6
24068
24069 # So? What about this header?
24070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24071 yes:no: )
24072 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24073 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24074 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
24075 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
24076 ac_header_preproc=yes
24077 ;;
24078 no:yes:* )
24079 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
24080 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
24081 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
24082 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
24083 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
24084 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
24085 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
24086 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24087 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
24088 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
24089 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
24090 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
24091 (
24092 cat <<\_ASBOX
24093 ## ------------------------------------------ ##
24094 ## Report this to the AC_PACKAGE_NAME lists. ##
24095 ## ------------------------------------------ ##
24096 _ASBOX
24097 ) |
24098 sed "s/^/$as_me: WARNING: /" >&2
24099 ;;
24100 esac
24101 echo "$as_me:$LINENO: checking for tclInt.h" >&5
24102 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
24103 if test "${ac_cv_header_tclInt_h+set}" = set; then
24104 echo $ECHO_N "(cached) $ECHO_C" >&6
24105 else
24106 ac_cv_header_tclInt_h=$ac_header_preproc
24107 fi
24108 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24109 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
24110
24111 fi
24112 if test $ac_cv_header_tclInt_h = yes; then
24113 ac_cv_c_tclh=installed
24114 else
24115 ac_cv_c_tclh=""
24116 fi
24117
24118
24119 fi
24120
24121 fi
24122
24123 if test x"${ac_cv_c_tclh}" = x ; then
24124 TCLHDIR="# no Tcl private headers found"
24125 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
24126 echo "$as_me: error: Can't find Tcl private headers" >&2;}
24127 { (exit 1); exit 1; }; }
24128 fi
24129 if test x"${ac_cv_c_tclh}" != x ; then
24130 no_tcl=""
24131 if test x"${ac_cv_c_tclh}" = x"installed" ; then
24132 echo "$as_me:$LINENO: result: is installed" >&5
24133 echo "${ECHO_T}is installed" >&6
24134 TCLHDIR=""
24135 else
24136 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
24137 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
24138 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
24139 TCLHDIR="-I${ac_cv_c_tclh}"
24140 fi
24141 fi
24142
24143
24144
24145
24146 #
24147 # Ok, lets find the tk source trees so we can use the headers
24148 # If the directory (presumably symlink) named "tk" exists, use that one
24149 # in preference to any others. Same logic is used when choosing library
24150 # and again with Tcl. The search order is the best place to look first, then in
24151 # decreasing significance. The loop breaks if the trigger file is found.
24152 # Note the gross little conversion here of srcdir by cd'ing to the found
24153 # directory. This converts the path from a relative to an absolute, so
24154 # recursive cache variables for the path will work right. We check all
24155 # the possible paths in one loop rather than many seperate loops to speed
24156 # things up.
24157 # the alternative search directory is involked by --with-tkinclude
24158 #
24159 no_tk=true
24160 echo "$as_me:$LINENO: checking for Tk private headers" >&5
24161 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
24162
24163 # Check whether --with-tkinclude or --without-tkinclude was given.
24164 if test "${with_tkinclude+set}" = set; then
24165 withval="$with_tkinclude"
24166 with_tkinclude=${withval}
24167 fi;
24168 if test "${ac_cv_c_tkh+set}" = set; then
24169 echo $ECHO_N "(cached) $ECHO_C" >&6
24170 else
24171
24172 # first check to see if --with-tkinclude was specified
24173 if test x"${with_tkinclude}" != x ; then
24174 if test -f ${with_tkinclude}/tk.h ; then
24175 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
24176 elif test -f ${with_tkinclude}/generic/tk.h ; then
24177 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
24178 else
24179 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
24180 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
24181 { (exit 1); exit 1; }; }
24182 fi
24183 fi
24184
24185 # next check if it came with Tk configuration file
24186 if test x"${ac_cv_c_tkconfig}" = x ; then
24187 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
24188 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
24189 fi
24190 fi
24191
24192 # next check in private source directory
24193 #
24194 # since ls returns lowest version numbers first, reverse its output
24195 if test x"${ac_cv_c_tkh}" = x ; then
24196 for i in \
24197 ${srcdir}/../tk \
24198 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
24199 ${srcdir}/../../tk \
24200 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
24201 ${srcdir}/../../../tk \
24202 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
24203 if test -f $i/generic/tk.h ; then
24204 ac_cv_c_tkh=`(cd $i/generic; pwd)`
24205 break
24206 fi
24207 done
24208 fi
24209 # finally check in a few common install locations
24210 #
24211 # since ls returns lowest version numbers first, reverse its output
24212 if test x"${ac_cv_c_tkh}" = x ; then
24213 for i in \
24214 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
24215 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
24216 /usr/local/src/tk \
24217 /usr/local/lib/tk \
24218 ${prefix}/include ; do
24219 if test -f $i/generic/tk.h ; then
24220 ac_cv_c_tkh=`(cd $i/generic; pwd)`
24221 break
24222 fi
24223 done
24224 fi
24225 # see if one is installed
24226 if test x"${ac_cv_c_tkh}" = x ; then
24227 if test "${ac_cv_header_tk_h+set}" = set; then
24228 echo "$as_me:$LINENO: checking for tk.h" >&5
24229 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
24230 if test "${ac_cv_header_tk_h+set}" = set; then
24231 echo $ECHO_N "(cached) $ECHO_C" >&6
24232 fi
24233 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24234 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
24235 else
24236 # Is the header compilable?
24237 echo "$as_me:$LINENO: checking tk.h usability" >&5
24238 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
24239 cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h. */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24245 $ac_includes_default
24246 #include <tk.h>
24247 _ACEOF
24248 rm -f conftest.$ac_objext
24249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24250 (eval $ac_compile) 2>conftest.er1
24251 ac_status=$?
24252 grep -v '^ *+' conftest.er1 >conftest.err
24253 rm -f conftest.er1
24254 cat conftest.err >&5
24255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); } &&
24257 { ac_try='test -z "$ac_c_werror_flag"
24258 || test ! -s conftest.err'
24259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24260 (eval $ac_try) 2>&5
24261 ac_status=$?
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); }; } &&
24264 { ac_try='test -s conftest.$ac_objext'
24265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24266 (eval $ac_try) 2>&5
24267 ac_status=$?
24268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269 (exit $ac_status); }; }; then
24270 ac_header_compiler=yes
24271 else
24272 echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24274
24275 ac_header_compiler=no
24276 fi
24277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24279 echo "${ECHO_T}$ac_header_compiler" >&6
24280
24281 # Is the header present?
24282 echo "$as_me:$LINENO: checking tk.h presence" >&5
24283 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
24284 cat >conftest.$ac_ext <<_ACEOF
24285 /* confdefs.h. */
24286 _ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h. */
24290 #include <tk.h>
24291 _ACEOF
24292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24294 ac_status=$?
24295 grep -v '^ *+' conftest.er1 >conftest.err
24296 rm -f conftest.er1
24297 cat conftest.err >&5
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); } >/dev/null; then
24300 if test -s conftest.err; then
24301 ac_cpp_err=$ac_c_preproc_warn_flag
24302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24303 else
24304 ac_cpp_err=
24305 fi
24306 else
24307 ac_cpp_err=yes
24308 fi
24309 if test -z "$ac_cpp_err"; then
24310 ac_header_preproc=yes
24311 else
24312 echo "$as_me: failed program was:" >&5
24313 sed 's/^/| /' conftest.$ac_ext >&5
24314
24315 ac_header_preproc=no
24316 fi
24317 rm -f conftest.err conftest.$ac_ext
24318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24319 echo "${ECHO_T}$ac_header_preproc" >&6
24320
24321 # So? What about this header?
24322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24323 yes:no: )
24324 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
24325 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24326 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
24327 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
24328 ac_header_preproc=yes
24329 ;;
24330 no:yes:* )
24331 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
24332 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
24333 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
24334 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
24335 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
24336 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
24337 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
24338 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
24339 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
24340 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
24341 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
24342 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
24343 (
24344 cat <<\_ASBOX
24345 ## ------------------------------------------ ##
24346 ## Report this to the AC_PACKAGE_NAME lists. ##
24347 ## ------------------------------------------ ##
24348 _ASBOX
24349 ) |
24350 sed "s/^/$as_me: WARNING: /" >&2
24351 ;;
24352 esac
24353 echo "$as_me:$LINENO: checking for tk.h" >&5
24354 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
24355 if test "${ac_cv_header_tk_h+set}" = set; then
24356 echo $ECHO_N "(cached) $ECHO_C" >&6
24357 else
24358 ac_cv_header_tk_h=$ac_header_preproc
24359 fi
24360 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24361 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
24362
24363 fi
24364 if test $ac_cv_header_tk_h = yes; then
24365 ac_cv_c_tkh=installed
24366 else
24367 ac_cv_c_tkh=""
24368 fi
24369
24370
24371 fi
24372
24373 fi
24374
24375 if test x"${ac_cv_c_tkh}" != x ; then
24376 no_tk=""
24377 if test x"${ac_cv_c_tkh}" = x"installed" ; then
24378 echo "$as_me:$LINENO: result: is installed" >&5
24379 echo "${ECHO_T}is installed" >&6
24380 TKHDIR=""
24381 else
24382 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
24383 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
24384 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
24385 TKHDIR="-I${ac_cv_c_tkh}"
24386 fi
24387 else
24388 TKHDIR="# no Tk directory found"
24389 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
24390 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
24391 no_tk=true
24392 fi
24393
24394
24395
24396
24397 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
24398 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
24399 if test x"${ac_cv_c_itclh}" = x ; then
24400 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
24401 if test -f $i/generic/itcl.h ; then
24402 ac_cv_c_itclh=`(cd $i/generic; pwd)`
24403 break
24404 fi
24405 done
24406 fi
24407 if test x"${ac_cv_c_itclh}" = x ; then
24408 ITCLHDIR="# no Itcl private headers found"
24409 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
24410 echo "$as_me: error: Can't find Itcl private headers" >&2;}
24411 { (exit 1); exit 1; }; }
24412 fi
24413 if test x"${ac_cv_c_itclh}" != x ; then
24414 ITCLHDIR="-I${ac_cv_c_itclh}"
24415 fi
24416 # should always be here
24417 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
24418
24419 #AC_SUBST(ITCLLIB)
24420
24421
24422 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
24423 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
24424 if test x"${ac_cv_c_itkh}" = x ; then
24425 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
24426 if test -f $i/generic/itk.h ; then
24427 ac_cv_c_itkh=`(cd $i/generic; pwd)`
24428 break
24429 fi
24430 done
24431 fi
24432 if test x"${ac_cv_c_itkh}" = x ; then
24433 ITKHDIR="# no Itk private headers found"
24434 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
24435 echo "$as_me: error: Can't find Itk private headers" >&2;}
24436 { (exit 1); exit 1; }; }
24437 fi
24438 if test x"${ac_cv_c_itkh}" != x ; then
24439 ITKHDIR="-I${ac_cv_c_itkh}"
24440 fi
24441 # should always be here
24442 # ITKLIB="../itcl/itk/unix/libitk.a"
24443
24444 #AC_SUBST(ITKLIB)
24445
24446
24447
24448 # now look for Tk library stuff
24449
24450 tkdir="../tk/${configdir}/"
24451
24452 TK_DEPS="${tkdir}${TK_LIB_FILE}"
24453
24454 # now look for Itcl library stuff
24455
24456
24457 #
24458 # Ok, lets find the itcl configuration
24459 # First, look for one uninstalled.
24460 # the alternative search directory is invoked by --with-itclconfig
24461 #
24462
24463 if test x"${no_itcl}" = x ; then
24464 # we reset no_itcl in case something fails here
24465 no_itcl=true
24466
24467 # Check whether --with-itclconfig or --without-itclconfig was given.
24468 if test "${with_itclconfig+set}" = set; then
24469 withval="$with_itclconfig"
24470 with_itclconfig=${withval}
24471 fi;
24472 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
24473 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
24474 if test "${ac_cv_c_itclconfig+set}" = set; then
24475 echo $ECHO_N "(cached) $ECHO_C" >&6
24476 else
24477
24478
24479 # First check to see if --with-itclconfig was specified.
24480 if test x"${with_itclconfig}" != x ; then
24481 if test -f "${with_itclconfig}/itclConfig.sh" ; then
24482 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
24483 else
24484 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
24485 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
24486 { (exit 1); exit 1; }; }
24487 fi
24488 fi
24489
24490 # then check for a private Itcl library
24491 if test x"${ac_cv_c_itclconfig}" = x ; then
24492 for i in \
24493 ../itcl/itcl \
24494 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
24495 ../../itcl \
24496 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
24497 ../../../itcl \
24498 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
24499 if test -f "$i/itclConfig.sh" ; then
24500 ac_cv_c_itclconfig=`(cd $i; pwd)`
24501 break
24502 fi
24503 done
24504 fi
24505 # check in a few common install locations
24506 if test x"${ac_cv_c_itclconfig}" = x ; then
24507 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24508 if test -f "$i/itclConfig.sh" ; then
24509 ac_cv_c_itclconfig=`(cd $i; pwd)`
24510 break
24511 fi
24512 done
24513 fi
24514 # check in a few other private locations
24515 if test x"${ac_cv_c_itclconfig}" = x ; then
24516 for i in \
24517 ${srcdir}/../itcl/itcl \
24518 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
24519 if test -f "$i/itclConfig.sh" ; then
24520 ac_cv_c_itclconfig=`(cd $i; pwd)`
24521 break
24522 fi
24523 done
24524 fi
24525
24526 fi
24527
24528 if test x"${ac_cv_c_itclconfig}" = x ; then
24529 ITCLCONFIG="# no Itcl configs found"
24530 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
24531 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
24532 else
24533 no_itcl=
24534 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
24535 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
24536 echo "${ECHO_T}found $ITCLCONFIG" >&6
24537 fi
24538 fi
24539
24540 if test -z "${no_itcl}"; then
24541
24542 if test -f "$ITCLCONFIG" ; then
24543 . $ITCLCONFIG
24544 fi
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
24558 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
24559 fi
24560
24561
24562 # now look for Itk library stuff
24563
24564 #
24565 # Ok, lets find the itk configuration
24566 # First, look for one uninstalled.
24567 # the alternative search directory is invoked by --with-itkconfig
24568 #
24569
24570 if test x"${no_itk}" = x ; then
24571 # we reset no_itk in case something fails here
24572 no_itk=true
24573
24574 # Check whether --with-itkconfig or --without-itkconfig was given.
24575 if test "${with_itkconfig+set}" = set; then
24576 withval="$with_itkconfig"
24577 with_itkconfig=${withval}
24578 fi;
24579 echo "$as_me:$LINENO: checking for Itk configuration" >&5
24580 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
24581 if test "${ac_cv_c_itkconfig+set}" = set; then
24582 echo $ECHO_N "(cached) $ECHO_C" >&6
24583 else
24584
24585
24586 # First check to see if --with-itkconfig was specified.
24587 if test x"${with_itkconfig}" != x ; then
24588 if test -f "${with_itkconfig}/itkConfig.sh" ; then
24589 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
24590 else
24591 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
24592 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
24593 { (exit 1); exit 1; }; }
24594 fi
24595 fi
24596
24597 # then check for a private Itk library
24598 if test x"${ac_cv_c_itkconfig}" = x ; then
24599 for i in \
24600 ../itcl/itk \
24601 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
24602 ../../itk \
24603 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
24604 ../../../itk \
24605 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
24606 if test -f "$i/itkConfig.sh" ; then
24607 ac_cv_c_itkconfig=`(cd $i; pwd)`
24608 break
24609 fi
24610 done
24611 fi
24612 # check in a few common install locations
24613 if test x"${ac_cv_c_itkconfig}" = x ; then
24614 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24615 if test -f "$i/itkConfig.sh" ; then
24616 ac_cv_c_itkconfig=`(cd $i; pwd)`
24617 break
24618 fi
24619 done
24620 fi
24621 # check in a few other private locations
24622 if test x"${ac_cv_c_itkconfig}" = x ; then
24623 for i in \
24624 ${srcdir}/../itcl/itk \
24625 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
24626 if test -f "$i/itkConfig.sh" ; then
24627 ac_cv_c_itkconfig=`(cd $i; pwd)`
24628 break
24629 fi
24630 done
24631 fi
24632
24633 fi
24634
24635 if test x"${ac_cv_c_itkconfig}" = x ; then
24636 ITKCONFIG="# no Itk configs found"
24637 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
24638 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
24639 else
24640 no_itk=
24641 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
24642 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
24643 echo "${ECHO_T}found $ITKCONFIG" >&6
24644 fi
24645 fi
24646
24647
24648 if test -z "${no_itcl}"; then
24649
24650 if test -f "$ITKCONFIG" ; then
24651 . $ITKCONFIG
24652 fi
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665 ITKLIB="${ITK_BUILD_LIB_SPEC}"
24666 ITK_DEPS="${ITK_LIB_FULL_PATH}"
24667 fi
24668
24669 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
24670
24671 # Include some libraries that Tcl and Tk want.
24672 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
24673 # Yes, the ordering seems wrong here. But it isn't.
24674 # TK_LIBS is the list of libraries that need to be linked
24675 # after Tcl/Tk. Note that this isn't put into LIBS. If it
24676 # were in LIBS then any link tests after this point would
24677 # try to include things like `$(LIBGUI)', which wouldn't work.
24678 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
24679
24680 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
24681 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
24682 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
24683 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
24684 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
24685 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
24686 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
24687
24688 if test x$gdb_cv_os_cygwin = xyes; then
24689 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
24690 WIN32LDAPP="-Wl,--subsystem,console"
24691 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
24692 fi
24693 fi
24694 fi
24695
24696
24697
24698 subdirs="$subdirs gdbtk"
24699
24700 fi
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715 echo "$as_me:$LINENO: checking for X" >&5
24716 echo $ECHO_N "checking for X... $ECHO_C" >&6
24717
24718
24719 # Check whether --with-x or --without-x was given.
24720 if test "${with_x+set}" = set; then
24721 withval="$with_x"
24722
24723 fi;
24724 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24725 if test "x$with_x" = xno; then
24726 # The user explicitly disabled X.
24727 have_x=disabled
24728 else
24729 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24730 # Both variables are already set.
24731 have_x=yes
24732 else
24733 if test "${ac_cv_have_x+set}" = set; then
24734 echo $ECHO_N "(cached) $ECHO_C" >&6
24735 else
24736 # One or both of the vars are not set, and there is no cached value.
24737 ac_x_includes=no ac_x_libraries=no
24738 rm -fr conftest.dir
24739 if mkdir conftest.dir; then
24740 cd conftest.dir
24741 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24742 cat >Imakefile <<'_ACEOF'
24743 acfindx:
24744 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24745 _ACEOF
24746 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24747 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24748 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24749 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24750 for ac_extension in a so sl; do
24751 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
24752 test -f $ac_im_libdir/libX11.$ac_extension; then
24753 ac_im_usrlibdir=$ac_im_libdir; break
24754 fi
24755 done
24756 # Screen out bogus values from the imake configuration. They are
24757 # bogus both because they are the default anyway, and because
24758 # using them would break gcc on systems where it needs fixed includes.
24759 case $ac_im_incroot in
24760 /usr/include) ;;
24761 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24762 esac
24763 case $ac_im_usrlibdir in
24764 /usr/lib | /lib) ;;
24765 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24766 esac
24767 fi
24768 cd ..
24769 rm -fr conftest.dir
24770 fi
24771
24772 # Standard set of common directories for X headers.
24773 # Check X11 before X11Rn because it is often a symlink to the current release.
24774 ac_x_header_dirs='
24775 /usr/X11/include
24776 /usr/X11R6/include
24777 /usr/X11R5/include
24778 /usr/X11R4/include
24779
24780 /usr/include/X11
24781 /usr/include/X11R6
24782 /usr/include/X11R5
24783 /usr/include/X11R4
24784
24785 /usr/local/X11/include
24786 /usr/local/X11R6/include
24787 /usr/local/X11R5/include
24788 /usr/local/X11R4/include
24789
24790 /usr/local/include/X11
24791 /usr/local/include/X11R6
24792 /usr/local/include/X11R5
24793 /usr/local/include/X11R4
24794
24795 /usr/X386/include
24796 /usr/x386/include
24797 /usr/XFree86/include/X11
24798
24799 /usr/include
24800 /usr/local/include
24801 /usr/unsupported/include
24802 /usr/athena/include
24803 /usr/local/x11r5/include
24804 /usr/lpp/Xamples/include
24805
24806 /usr/openwin/include
24807 /usr/openwin/share/include'
24808
24809 if test "$ac_x_includes" = no; then
24810 # Guess where to find include files, by looking for Intrinsic.h.
24811 # First, try using that file with no special directory specified.
24812 cat >conftest.$ac_ext <<_ACEOF
24813 /* confdefs.h. */
24814 _ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h. */
24818 #include <X11/Intrinsic.h>
24819 _ACEOF
24820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24822 ac_status=$?
24823 grep -v '^ *+' conftest.er1 >conftest.err
24824 rm -f conftest.er1
24825 cat conftest.err >&5
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); } >/dev/null; then
24828 if test -s conftest.err; then
24829 ac_cpp_err=$ac_c_preproc_warn_flag
24830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24831 else
24832 ac_cpp_err=
24833 fi
24834 else
24835 ac_cpp_err=yes
24836 fi
24837 if test -z "$ac_cpp_err"; then
24838 # We can compile using X headers with no special include directory.
24839 ac_x_includes=
24840 else
24841 echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24843
24844 for ac_dir in $ac_x_header_dirs; do
24845 if test -r "$ac_dir/X11/Intrinsic.h"; then
24846 ac_x_includes=$ac_dir
24847 break
24848 fi
24849 done
24850 fi
24851 rm -f conftest.err conftest.$ac_ext
24852 fi # $ac_x_includes = no
24853
24854 if test "$ac_x_libraries" = no; then
24855 # Check for the libraries.
24856 # See if we find them without any special options.
24857 # Don't add to $LIBS permanently.
24858 ac_save_LIBS=$LIBS
24859 LIBS="-lXt $LIBS"
24860 cat >conftest.$ac_ext <<_ACEOF
24861 /* confdefs.h. */
24862 _ACEOF
24863 cat confdefs.h >>conftest.$ac_ext
24864 cat >>conftest.$ac_ext <<_ACEOF
24865 /* end confdefs.h. */
24866 #include <X11/Intrinsic.h>
24867 int
24868 main ()
24869 {
24870 XtMalloc (0)
24871 ;
24872 return 0;
24873 }
24874 _ACEOF
24875 rm -f conftest.$ac_objext conftest$ac_exeext
24876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24877 (eval $ac_link) 2>conftest.er1
24878 ac_status=$?
24879 grep -v '^ *+' conftest.er1 >conftest.err
24880 rm -f conftest.er1
24881 cat conftest.err >&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
24884 { ac_try='test -z "$ac_c_werror_flag"
24885 || test ! -s conftest.err'
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24888 ac_status=$?
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; } &&
24891 { ac_try='test -s conftest$ac_exeext'
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24894 ac_status=$?
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; }; then
24897 LIBS=$ac_save_LIBS
24898 # We can link X programs with no special library path.
24899 ac_x_libraries=
24900 else
24901 echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24903
24904 LIBS=$ac_save_LIBS
24905 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24906 do
24907 # Don't even attempt the hair of trying to link an X program!
24908 for ac_extension in a so sl; do
24909 if test -r $ac_dir/libXt.$ac_extension; then
24910 ac_x_libraries=$ac_dir
24911 break 2
24912 fi
24913 done
24914 done
24915 fi
24916 rm -f conftest.err conftest.$ac_objext \
24917 conftest$ac_exeext conftest.$ac_ext
24918 fi # $ac_x_libraries = no
24919
24920 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24921 # Didn't find X anywhere. Cache the known absence of X.
24922 ac_cv_have_x="have_x=no"
24923 else
24924 # Record where we found X for the cache.
24925 ac_cv_have_x="have_x=yes \
24926 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
24927 fi
24928 fi
24929
24930 fi
24931 eval "$ac_cv_have_x"
24932 fi # $with_x != no
24933
24934 if test "$have_x" != yes; then
24935 echo "$as_me:$LINENO: result: $have_x" >&5
24936 echo "${ECHO_T}$have_x" >&6
24937 no_x=yes
24938 else
24939 # If each of the values was on the command line, it overrides each guess.
24940 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24941 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24942 # Update the cache value to reflect the command line values.
24943 ac_cv_have_x="have_x=yes \
24944 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24945 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24946 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
24947 fi
24948
24949
24950 # Check whether we should enable the TUI, but only do so if we really
24951 # can.
24952 if test x"$enable_tui" = xyes; then
24953 if test -d $srcdir/tui; then
24954 if test "$ac_cv_search_waddstr" != no; then
24955 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
24956 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
24957 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
24958 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
24959 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
24960 CONFIG_ALL="${CONFIG_ALL} all-tui"
24961 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
24962 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
24963 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
24964 else
24965 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
24966 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
24967 fi
24968 fi
24969 fi
24970
24971 # Unlike the sim directory, whether a simulator is linked is controlled by
24972 # presence of a gdb_sim definition in the target configure.tgt entry.
24973 # This code just checks for a few cases where we'd like to ignore those
24974 # definitions, even when they're present in the '.mt' file. These cases
24975 # are when --disable-sim is specified, or if the simulator directory is
24976 # not part of the source tree.
24977 #
24978 # Check whether --enable-sim or --disable-sim was given.
24979 if test "${enable_sim+set}" = set; then
24980 enableval="$enable_sim"
24981 echo "enable_sim = $enable_sim";
24982 echo "enableval = ${enableval}";
24983 case "${enableval}" in
24984 yes) ignore_sim=false ;;
24985 no) ignore_sim=true ;;
24986 *) ignore_sim=false ;;
24987 esac
24988 else
24989 ignore_sim=false
24990 fi;
24991
24992 if test ! -d "${srcdir}/../sim"; then
24993 ignore_sim=true
24994 fi
24995
24996 SIM=
24997 SIM_OBS=
24998 if test "${ignore_sim}" = "false"; then
24999 if test x"${gdb_sim}" != x ; then
25000 SIM="${gdb_sim}"
25001 SIM_OBS="remote-sim.o"
25002
25003 cat >>confdefs.h <<\_ACEOF
25004 #define WITH_SIM 1
25005 _ACEOF
25006
25007 fi
25008 fi
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023 # List of host floatformats.
25024
25025 cat >>confdefs.h <<_ACEOF
25026 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
25027 _ACEOF
25028
25029
25030 cat >>confdefs.h <<_ACEOF
25031 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
25032 _ACEOF
25033
25034
25035 cat >>confdefs.h <<_ACEOF
25036 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
25037 _ACEOF
25038
25039
25040 # target_subdir is used by the testsuite to find the target libraries.
25041 target_subdir=
25042 if test "${host}" != "${target}"; then
25043 target_subdir="${target_alias}/"
25044 fi
25045
25046
25047 frags=
25048 if test "${gdb_native}" = "yes"; then
25049 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25050 if test ! -f ${host_makefile_frag}; then
25051 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25052 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25053 { (exit 1); exit 1; }; }
25054 fi
25055 frags="$frags $host_makefile_frag"
25056 else
25057 host_makefile_frag=/dev/null
25058 fi
25059
25060
25061
25062
25063 if test "${gdb_native}" = "yes"; then
25064 # We pick this up from the host configuration file (.mh) because we
25065 # do not have a native configuration Makefile fragment.
25066 nativefile=`sed -n '
25067 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
25068 ' ${host_makefile_frag}`
25069 fi
25070
25071
25072 if test x"${gdb_osabi}" != x ; then
25073
25074 cat >>confdefs.h <<_ACEOF
25075 #define GDB_OSABI_DEFAULT $gdb_osabi
25076 _ACEOF
25077
25078 fi
25079
25080 # Enable multi-ice-gdb-server.
25081 # Check whether --enable-multi-ice or --disable-multi-ice was given.
25082 if test "${enable_multi_ice+set}" = set; then
25083 enableval="$enable_multi_ice"
25084 case $enableval in
25085 yes | no)
25086 ;;
25087 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25088 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25089 { (exit 1); exit 1; }; } ;;
25090 esac
25091 fi;
25092 if test "x$enable_multi_ice" = xyes; then
25093
25094
25095 subdirs="$subdirs multi-ice"
25096
25097 fi
25098
25099 # We only build gdbserver automatically in a native configuration.
25100 if test "$gdb_native" = "yes"; then
25101 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25102 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
25103 if test "x$build_gdbserver" = xyes; then
25104 echo "$as_me:$LINENO: result: yes" >&5
25105 echo "${ECHO_T}yes" >&6
25106
25107
25108 subdirs="$subdirs gdbserver"
25109
25110 else
25111 echo "$as_me:$LINENO: result: no" >&5
25112 echo "${ECHO_T}no" >&6
25113 fi
25114 fi
25115
25116 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
25117 # to an empty version.
25118
25119 files=
25120 links=
25121
25122 rm -f nm.h
25123 nm_h=""
25124 if test "${nativefile}" != ""; then
25125 nm_h=nm.h
25126 case "${nativefile}" in
25127 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25128 * ) GDB_NM_FILE="${nativefile}"
25129 esac
25130 files="${files} ${GDB_NM_FILE}"
25131 links="${links} nm.h"
25132
25133 cat >>confdefs.h <<_ACEOF
25134 #define GDB_NM_FILE "${GDB_NM_FILE}"
25135 _ACEOF
25136
25137 fi
25138
25139
25140 ac_sources="$files"
25141 ac_dests="$links"
25142 while test -n "$ac_sources"; do
25143 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25144 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25145 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25146 done
25147 ac_config_links="$ac_config_links $ac_config_links_1"
25148
25149
25150
25151
25152
25153
25154 cat >>confdefs.h <<\_ACEOF
25155 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25156 _ACEOF
25157
25158
25159
25160
25161
25162 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
25163 if test "${with_libiconv_prefix+set}" = set; then
25164 withval="$with_libiconv_prefix"
25165
25166 for dir in `echo "$withval" | tr : ' '`; do
25167 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25168 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25169 done
25170
25171 fi;
25172
25173 echo "$as_me:$LINENO: checking for iconv" >&5
25174 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25175 if test "${am_cv_func_iconv+set}" = set; then
25176 echo $ECHO_N "(cached) $ECHO_C" >&6
25177 else
25178
25179 am_cv_func_iconv="no, consider installing GNU libiconv"
25180 am_cv_lib_iconv=no
25181 cat >conftest.$ac_ext <<_ACEOF
25182 /* confdefs.h. */
25183 _ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h. */
25187 #include <stdlib.h>
25188 #include <iconv.h>
25189 int
25190 main ()
25191 {
25192 iconv_t cd = iconv_open("","");
25193 iconv(cd,NULL,NULL,NULL,NULL);
25194 iconv_close(cd);
25195 ;
25196 return 0;
25197 }
25198 _ACEOF
25199 rm -f conftest.$ac_objext conftest$ac_exeext
25200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25201 (eval $ac_link) 2>conftest.er1
25202 ac_status=$?
25203 grep -v '^ *+' conftest.er1 >conftest.err
25204 rm -f conftest.er1
25205 cat conftest.err >&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } &&
25208 { ac_try='test -z "$ac_c_werror_flag"
25209 || test ! -s conftest.err'
25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; } &&
25215 { ac_try='test -s conftest$ac_exeext'
25216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217 (eval $ac_try) 2>&5
25218 ac_status=$?
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); }; }; then
25221 am_cv_func_iconv=yes
25222 else
25223 echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25225
25226 fi
25227 rm -f conftest.err conftest.$ac_objext \
25228 conftest$ac_exeext conftest.$ac_ext
25229 if test "$am_cv_func_iconv" != yes; then
25230 am_save_LIBS="$LIBS"
25231 LIBS="$LIBS -liconv"
25232 cat >conftest.$ac_ext <<_ACEOF
25233 /* confdefs.h. */
25234 _ACEOF
25235 cat confdefs.h >>conftest.$ac_ext
25236 cat >>conftest.$ac_ext <<_ACEOF
25237 /* end confdefs.h. */
25238 #include <stdlib.h>
25239 #include <iconv.h>
25240 int
25241 main ()
25242 {
25243 iconv_t cd = iconv_open("","");
25244 iconv(cd,NULL,NULL,NULL,NULL);
25245 iconv_close(cd);
25246 ;
25247 return 0;
25248 }
25249 _ACEOF
25250 rm -f conftest.$ac_objext conftest$ac_exeext
25251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25252 (eval $ac_link) 2>conftest.er1
25253 ac_status=$?
25254 grep -v '^ *+' conftest.er1 >conftest.err
25255 rm -f conftest.er1
25256 cat conftest.err >&5
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); } &&
25259 { ac_try='test -z "$ac_c_werror_flag"
25260 || test ! -s conftest.err'
25261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262 (eval $ac_try) 2>&5
25263 ac_status=$?
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); }; } &&
25266 { ac_try='test -s conftest$ac_exeext'
25267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25268 (eval $ac_try) 2>&5
25269 ac_status=$?
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); }; }; then
25272 am_cv_lib_iconv=yes
25273 am_cv_func_iconv=yes
25274 else
25275 echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25277
25278 fi
25279 rm -f conftest.err conftest.$ac_objext \
25280 conftest$ac_exeext conftest.$ac_ext
25281 LIBS="$am_save_LIBS"
25282 fi
25283
25284 fi
25285 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25286 echo "${ECHO_T}$am_cv_func_iconv" >&6
25287 if test "$am_cv_func_iconv" = yes; then
25288
25289 cat >>confdefs.h <<\_ACEOF
25290 #define HAVE_ICONV 1
25291 _ACEOF
25292
25293 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25294 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25295 if test "${am_cv_proto_iconv+set}" = set; then
25296 echo $ECHO_N "(cached) $ECHO_C" >&6
25297 else
25298
25299 cat >conftest.$ac_ext <<_ACEOF
25300 /* confdefs.h. */
25301 _ACEOF
25302 cat confdefs.h >>conftest.$ac_ext
25303 cat >>conftest.$ac_ext <<_ACEOF
25304 /* end confdefs.h. */
25305
25306 #include <stdlib.h>
25307 #include <iconv.h>
25308 extern
25309 #ifdef __cplusplus
25310 "C"
25311 #endif
25312 #if defined(__STDC__) || defined(__cplusplus)
25313 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25314 #else
25315 size_t iconv();
25316 #endif
25317
25318 int
25319 main ()
25320 {
25321
25322 ;
25323 return 0;
25324 }
25325 _ACEOF
25326 rm -f conftest.$ac_objext
25327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25328 (eval $ac_compile) 2>conftest.er1
25329 ac_status=$?
25330 grep -v '^ *+' conftest.er1 >conftest.err
25331 rm -f conftest.er1
25332 cat conftest.err >&5
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); } &&
25335 { ac_try='test -z "$ac_c_werror_flag"
25336 || test ! -s conftest.err'
25337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338 (eval $ac_try) 2>&5
25339 ac_status=$?
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; } &&
25342 { ac_try='test -s conftest.$ac_objext'
25343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344 (eval $ac_try) 2>&5
25345 ac_status=$?
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); }; }; then
25348 am_cv_proto_iconv_arg1=""
25349 else
25350 echo "$as_me: failed program was:" >&5
25351 sed 's/^/| /' conftest.$ac_ext >&5
25352
25353 am_cv_proto_iconv_arg1="const"
25354 fi
25355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25356 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);"
25357 fi
25358
25359 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25360 echo "$as_me:$LINENO: result: ${ac_t:-
25361 }$am_cv_proto_iconv" >&5
25362 echo "${ECHO_T}${ac_t:-
25363 }$am_cv_proto_iconv" >&6
25364
25365 cat >>confdefs.h <<_ACEOF
25366 #define ICONV_CONST $am_cv_proto_iconv_arg1
25367 _ACEOF
25368
25369 fi
25370 LIBICONV=
25371 if test "$am_cv_lib_iconv" = yes; then
25372 LIBICONV="-liconv"
25373 fi
25374
25375
25376
25377 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
25378 ac_config_commands="$ac_config_commands default"
25379 cat >confcache <<\_ACEOF
25380 # This file is a shell script that caches the results of configure
25381 # tests run on this system so they can be shared between configure
25382 # scripts and configure runs, see configure's option --config-cache.
25383 # It is not useful on other systems. If it contains results you don't
25384 # want to keep, you may remove or edit it.
25385 #
25386 # config.status only pays attention to the cache file if you give it
25387 # the --recheck option to rerun configure.
25388 #
25389 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25390 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25391 # following values.
25392
25393 _ACEOF
25394
25395 # The following way of writing the cache mishandles newlines in values,
25396 # but we know of no workaround that is simple, portable, and efficient.
25397 # So, don't put newlines in cache variables' values.
25398 # Ultrix sh set writes to stderr and can't be redirected directly,
25399 # and sets the high bit in the cache file unless we assign to the vars.
25400 {
25401 (set) 2>&1 |
25402 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25403 *ac_space=\ *)
25404 # `set' does not quote correctly, so add quotes (double-quote
25405 # substitution turns \\\\ into \\, and sed turns \\ into \).
25406 sed -n \
25407 "s/'/'\\\\''/g;
25408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25409 ;;
25410 *)
25411 # `set' quotes correctly as required by POSIX, so do not add quotes.
25412 sed -n \
25413 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25414 ;;
25415 esac;
25416 } |
25417 sed '
25418 t clear
25419 : clear
25420 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25421 t end
25422 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25423 : end' >>confcache
25424 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25425 if test -w $cache_file; then
25426 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25427 cat confcache >$cache_file
25428 else
25429 echo "not updating unwritable cache $cache_file"
25430 fi
25431 fi
25432 rm -f confcache
25433
25434 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25435 # Let make expand exec_prefix.
25436 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25437
25438 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25439 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25440 # trailing colons and then remove the whole line if VPATH becomes empty
25441 # (actually we leave an empty line to preserve line numbers).
25442 if test "x$srcdir" = x.; then
25443 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25444 s/:*\$(srcdir):*/:/;
25445 s/:*\${srcdir}:*/:/;
25446 s/:*@srcdir@:*/:/;
25447 s/^\([^=]*=[ ]*\):*/\1/;
25448 s/:*$//;
25449 s/^[^=]*=[ ]*$//;
25450 }'
25451 fi
25452
25453 DEFS=-DHAVE_CONFIG_H
25454
25455 ac_libobjs=
25456 ac_ltlibobjs=
25457 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25458 # 1. Remove the extension, and $U if already installed.
25459 ac_i=`echo "$ac_i" |
25460 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25461 # 2. Add them.
25462 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25463 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25464 done
25465 LIBOBJS=$ac_libobjs
25466
25467 LTLIBOBJS=$ac_ltlibobjs
25468
25469
25470 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25471 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25472 Usually this means the macro was only invoked conditionally." >&5
25473 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25474 Usually this means the macro was only invoked conditionally." >&2;}
25475 { (exit 1); exit 1; }; }
25476 fi
25477 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25478 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25479 Usually this means the macro was only invoked conditionally." >&5
25480 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25481 Usually this means the macro was only invoked conditionally." >&2;}
25482 { (exit 1); exit 1; }; }
25483 fi
25484 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25485 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25486 Usually this means the macro was only invoked conditionally." >&5
25487 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25488 Usually this means the macro was only invoked conditionally." >&2;}
25489 { (exit 1); exit 1; }; }
25490 fi
25491
25492 : ${CONFIG_STATUS=./config.status}
25493 ac_clean_files_save=$ac_clean_files
25494 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25495 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25496 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25497 cat >$CONFIG_STATUS <<_ACEOF
25498 #! $SHELL
25499 # Generated by $as_me.
25500 # Run this file to recreate the current configuration.
25501 # Compiler output produced by configure, useful for debugging
25502 # configure, is in config.log if it exists.
25503
25504 debug=false
25505 ac_cs_recheck=false
25506 ac_cs_silent=false
25507 SHELL=\${CONFIG_SHELL-$SHELL}
25508 _ACEOF
25509
25510 cat >>$CONFIG_STATUS <<\_ACEOF
25511 ## --------------------- ##
25512 ## M4sh Initialization. ##
25513 ## --------------------- ##
25514
25515 # Be Bourne compatible
25516 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25517 emulate sh
25518 NULLCMD=:
25519 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25520 # is contrary to our usage. Disable this feature.
25521 alias -g '${1+"$@"}'='"$@"'
25522 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25523 set -o posix
25524 fi
25525 DUALCASE=1; export DUALCASE # for MKS sh
25526
25527 # Support unset when possible.
25528 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25529 as_unset=unset
25530 else
25531 as_unset=false
25532 fi
25533
25534
25535 # Work around bugs in pre-3.0 UWIN ksh.
25536 $as_unset ENV MAIL MAILPATH
25537 PS1='$ '
25538 PS2='> '
25539 PS4='+ '
25540
25541 # NLS nuisances.
25542 for as_var in \
25543 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25544 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25545 LC_TELEPHONE LC_TIME
25546 do
25547 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25548 eval $as_var=C; export $as_var
25549 else
25550 $as_unset $as_var
25551 fi
25552 done
25553
25554 # Required to use basename.
25555 if expr a : '\(a\)' >/dev/null 2>&1; then
25556 as_expr=expr
25557 else
25558 as_expr=false
25559 fi
25560
25561 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25562 as_basename=basename
25563 else
25564 as_basename=false
25565 fi
25566
25567
25568 # Name of the executable.
25569 as_me=`$as_basename "$0" ||
25570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25571 X"$0" : 'X\(//\)$' \| \
25572 X"$0" : 'X\(/\)$' \| \
25573 . : '\(.\)' 2>/dev/null ||
25574 echo X/"$0" |
25575 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25576 /^X\/\(\/\/\)$/{ s//\1/; q; }
25577 /^X\/\(\/\).*/{ s//\1/; q; }
25578 s/.*/./; q'`
25579
25580
25581 # PATH needs CR, and LINENO needs CR and PATH.
25582 # Avoid depending upon Character Ranges.
25583 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25584 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25585 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25586 as_cr_digits='0123456789'
25587 as_cr_alnum=$as_cr_Letters$as_cr_digits
25588
25589 # The user is always right.
25590 if test "${PATH_SEPARATOR+set}" != set; then
25591 echo "#! /bin/sh" >conf$$.sh
25592 echo "exit 0" >>conf$$.sh
25593 chmod +x conf$$.sh
25594 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25595 PATH_SEPARATOR=';'
25596 else
25597 PATH_SEPARATOR=:
25598 fi
25599 rm -f conf$$.sh
25600 fi
25601
25602
25603 as_lineno_1=$LINENO
25604 as_lineno_2=$LINENO
25605 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25606 test "x$as_lineno_1" != "x$as_lineno_2" &&
25607 test "x$as_lineno_3" = "x$as_lineno_2" || {
25608 # Find who we are. Look in the path if we contain no path at all
25609 # relative or not.
25610 case $0 in
25611 *[\\/]* ) as_myself=$0 ;;
25612 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25613 for as_dir in $PATH
25614 do
25615 IFS=$as_save_IFS
25616 test -z "$as_dir" && as_dir=.
25617 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25618 done
25619
25620 ;;
25621 esac
25622 # We did not find ourselves, most probably we were run as `sh COMMAND'
25623 # in which case we are not to be found in the path.
25624 if test "x$as_myself" = x; then
25625 as_myself=$0
25626 fi
25627 if test ! -f "$as_myself"; then
25628 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25629 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25630 { (exit 1); exit 1; }; }
25631 fi
25632 case $CONFIG_SHELL in
25633 '')
25634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25635 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25636 do
25637 IFS=$as_save_IFS
25638 test -z "$as_dir" && as_dir=.
25639 for as_base in sh bash ksh sh5; do
25640 case $as_dir in
25641 /*)
25642 if ("$as_dir/$as_base" -c '
25643 as_lineno_1=$LINENO
25644 as_lineno_2=$LINENO
25645 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25646 test "x$as_lineno_1" != "x$as_lineno_2" &&
25647 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25648 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25649 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25650 CONFIG_SHELL=$as_dir/$as_base
25651 export CONFIG_SHELL
25652 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25653 fi;;
25654 esac
25655 done
25656 done
25657 ;;
25658 esac
25659
25660 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25661 # uniformly replaced by the line number. The first 'sed' inserts a
25662 # line-number line before each line; the second 'sed' does the real
25663 # work. The second script uses 'N' to pair each line-number line
25664 # with the numbered line, and appends trailing '-' during
25665 # substitution so that $LINENO is not a special case at line end.
25666 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25667 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25668 sed '=' <$as_myself |
25669 sed '
25670 N
25671 s,$,-,
25672 : loop
25673 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25674 t loop
25675 s,-$,,
25676 s,^['$as_cr_digits']*\n,,
25677 ' >$as_me.lineno &&
25678 chmod +x $as_me.lineno ||
25679 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25680 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25681 { (exit 1); exit 1; }; }
25682
25683 # Don't try to exec as it changes $[0], causing all sort of problems
25684 # (the dirname of $[0] is not the place where we might find the
25685 # original and so on. Autoconf is especially sensible to this).
25686 . ./$as_me.lineno
25687 # Exit status is that of the last command.
25688 exit
25689 }
25690
25691
25692 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25693 *c*,-n*) ECHO_N= ECHO_C='
25694 ' ECHO_T=' ' ;;
25695 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25696 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25697 esac
25698
25699 if expr a : '\(a\)' >/dev/null 2>&1; then
25700 as_expr=expr
25701 else
25702 as_expr=false
25703 fi
25704
25705 rm -f conf$$ conf$$.exe conf$$.file
25706 echo >conf$$.file
25707 if ln -s conf$$.file conf$$ 2>/dev/null; then
25708 # We could just check for DJGPP; but this test a) works b) is more generic
25709 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25710 if test -f conf$$.exe; then
25711 # Don't use ln at all; we don't have any links
25712 as_ln_s='cp -p'
25713 else
25714 as_ln_s='ln -s'
25715 fi
25716 elif ln conf$$.file conf$$ 2>/dev/null; then
25717 as_ln_s=ln
25718 else
25719 as_ln_s='cp -p'
25720 fi
25721 rm -f conf$$ conf$$.exe conf$$.file
25722
25723 if mkdir -p . 2>/dev/null; then
25724 as_mkdir_p=:
25725 else
25726 test -d ./-p && rmdir ./-p
25727 as_mkdir_p=false
25728 fi
25729
25730 as_executable_p="test -f"
25731
25732 # Sed expression to map a string onto a valid CPP name.
25733 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25734
25735 # Sed expression to map a string onto a valid variable name.
25736 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25737
25738
25739 # IFS
25740 # We need space, tab and new line, in precisely that order.
25741 as_nl='
25742 '
25743 IFS=" $as_nl"
25744
25745 # CDPATH.
25746 $as_unset CDPATH
25747
25748 exec 6>&1
25749
25750 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25751 # report actual input values of CONFIG_FILES etc. instead of their
25752 # values after options handling. Logging --version etc. is OK.
25753 exec 5>>config.log
25754 {
25755 echo
25756 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25757 ## Running $as_me. ##
25758 _ASBOX
25759 } >&5
25760 cat >&5 <<_CSEOF
25761
25762 This file was extended by $as_me, which was
25763 generated by GNU Autoconf 2.59. Invocation command line was
25764
25765 CONFIG_FILES = $CONFIG_FILES
25766 CONFIG_HEADERS = $CONFIG_HEADERS
25767 CONFIG_LINKS = $CONFIG_LINKS
25768 CONFIG_COMMANDS = $CONFIG_COMMANDS
25769 $ $0 $@
25770
25771 _CSEOF
25772 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25773 echo >&5
25774 _ACEOF
25775
25776 # Files that config.status was made for.
25777 if test -n "$ac_config_files"; then
25778 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25779 fi
25780
25781 if test -n "$ac_config_headers"; then
25782 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25783 fi
25784
25785 if test -n "$ac_config_links"; then
25786 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25787 fi
25788
25789 if test -n "$ac_config_commands"; then
25790 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25791 fi
25792
25793 cat >>$CONFIG_STATUS <<\_ACEOF
25794
25795 ac_cs_usage="\
25796 \`$as_me' instantiates files from templates according to the
25797 current configuration.
25798
25799 Usage: $0 [OPTIONS] [FILE]...
25800
25801 -h, --help print this help, then exit
25802 -V, --version print version number, then exit
25803 -q, --quiet do not print progress messages
25804 -d, --debug don't remove temporary files
25805 --recheck update $as_me by reconfiguring in the same conditions
25806 --file=FILE[:TEMPLATE]
25807 instantiate the configuration file FILE
25808 --header=FILE[:TEMPLATE]
25809 instantiate the configuration header FILE
25810
25811 Configuration files:
25812 $config_files
25813
25814 Configuration headers:
25815 $config_headers
25816
25817 Configuration links:
25818 $config_links
25819
25820 Configuration commands:
25821 $config_commands
25822
25823 Report bugs to <bug-autoconf@gnu.org>."
25824 _ACEOF
25825
25826 cat >>$CONFIG_STATUS <<_ACEOF
25827 ac_cs_version="\\
25828 config.status
25829 configured by $0, generated by GNU Autoconf 2.59,
25830 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25831
25832 Copyright (C) 2003 Free Software Foundation, Inc.
25833 This config.status script is free software; the Free Software Foundation
25834 gives unlimited permission to copy, distribute and modify it."
25835 srcdir=$srcdir
25836 INSTALL="$INSTALL"
25837 _ACEOF
25838
25839 cat >>$CONFIG_STATUS <<\_ACEOF
25840 # If no file are specified by the user, then we need to provide default
25841 # value. By we need to know if files were specified by the user.
25842 ac_need_defaults=:
25843 while test $# != 0
25844 do
25845 case $1 in
25846 --*=*)
25847 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25848 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25849 ac_shift=:
25850 ;;
25851 -*)
25852 ac_option=$1
25853 ac_optarg=$2
25854 ac_shift=shift
25855 ;;
25856 *) # This is not an option, so the user has probably given explicit
25857 # arguments.
25858 ac_option=$1
25859 ac_need_defaults=false;;
25860 esac
25861
25862 case $ac_option in
25863 # Handling of the options.
25864 _ACEOF
25865 cat >>$CONFIG_STATUS <<\_ACEOF
25866 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25867 ac_cs_recheck=: ;;
25868 --version | --vers* | -V )
25869 echo "$ac_cs_version"; exit 0 ;;
25870 --he | --h)
25871 # Conflict between --help and --header
25872 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25873 Try \`$0 --help' for more information." >&5
25874 echo "$as_me: error: ambiguous option: $1
25875 Try \`$0 --help' for more information." >&2;}
25876 { (exit 1); exit 1; }; };;
25877 --help | --hel | -h )
25878 echo "$ac_cs_usage"; exit 0 ;;
25879 --debug | --d* | -d )
25880 debug=: ;;
25881 --file | --fil | --fi | --f )
25882 $ac_shift
25883 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25884 ac_need_defaults=false;;
25885 --header | --heade | --head | --hea )
25886 $ac_shift
25887 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25888 ac_need_defaults=false;;
25889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25890 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25891 ac_cs_silent=: ;;
25892
25893 # This is an error.
25894 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25895 Try \`$0 --help' for more information." >&5
25896 echo "$as_me: error: unrecognized option: $1
25897 Try \`$0 --help' for more information." >&2;}
25898 { (exit 1); exit 1; }; } ;;
25899
25900 *) ac_config_targets="$ac_config_targets $1" ;;
25901
25902 esac
25903 shift
25904 done
25905
25906 ac_configure_extra_args=
25907
25908 if $ac_cs_silent; then
25909 exec 6>/dev/null
25910 ac_configure_extra_args="$ac_configure_extra_args --silent"
25911 fi
25912
25913 _ACEOF
25914 cat >>$CONFIG_STATUS <<_ACEOF
25915 if \$ac_cs_recheck; then
25916 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25917 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25918 fi
25919
25920 _ACEOF
25921
25922 cat >>$CONFIG_STATUS <<_ACEOF
25923 #
25924 # INIT-COMMANDS section.
25925 #
25926
25927 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25928
25929 GCC="$GCC"
25930 CC="$CC"
25931 acx_cv_header_stdint="$acx_cv_header_stdint"
25932 acx_cv_type_int8_t="$acx_cv_type_int8_t"
25933 acx_cv_type_int16_t="$acx_cv_type_int16_t"
25934 acx_cv_type_int32_t="$acx_cv_type_int32_t"
25935 acx_cv_type_int64_t="$acx_cv_type_int64_t"
25936 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
25937 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
25938 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
25939 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25940 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25941 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
25942 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25943 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25944 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
25945
25946
25947 gdb_host_cpu=$gdb_host_cpu
25948 nativefile=$nativefile
25949
25950
25951 _ACEOF
25952
25953
25954
25955 cat >>$CONFIG_STATUS <<\_ACEOF
25956 for ac_config_target in $ac_config_targets
25957 do
25958 case "$ac_config_target" in
25959 # Handling of arguments.
25960 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25961 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
25962 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
25963 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25964 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25965 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
25966 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25967 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
25968 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25969 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25970 { (exit 1); exit 1; }; };;
25971 esac
25972 done
25973
25974 # If the user did not use the arguments to specify the items to instantiate,
25975 # then the envvar interface is used. Set only those that are not.
25976 # We use the long form for the default assignment because of an extremely
25977 # bizarre bug on SunOS 4.1.3.
25978 if $ac_need_defaults; then
25979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25980 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25981 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25982 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25983 fi
25984
25985 # Have a temporary directory for convenience. Make it in the build tree
25986 # simply because there is no reason to put it here, and in addition,
25987 # creating and moving files from /tmp can sometimes cause problems.
25988 # Create a temporary directory, and hook for its removal unless debugging.
25989 $debug ||
25990 {
25991 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25992 trap '{ (exit 1); exit 1; }' 1 2 13 15
25993 }
25994
25995 # Create a (secure) tmp directory for tmp files.
25996
25997 {
25998 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25999 test -n "$tmp" && test -d "$tmp"
26000 } ||
26001 {
26002 tmp=./confstat$$-$RANDOM
26003 (umask 077 && mkdir $tmp)
26004 } ||
26005 {
26006 echo "$me: cannot create a temporary directory in ." >&2
26007 { (exit 1); exit 1; }
26008 }
26009
26010 _ACEOF
26011
26012 cat >>$CONFIG_STATUS <<_ACEOF
26013
26014 #
26015 # CONFIG_FILES section.
26016 #
26017
26018 # No need to generate the scripts if there are no CONFIG_FILES.
26019 # This happens for instance when ./config.status config.h
26020 if test -n "\$CONFIG_FILES"; then
26021 # Protect against being on the right side of a sed subst in config.status.
26022 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26023 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26024 s,@SHELL@,$SHELL,;t t
26025 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26026 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26027 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26028 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26029 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26030 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26031 s,@exec_prefix@,$exec_prefix,;t t
26032 s,@prefix@,$prefix,;t t
26033 s,@program_transform_name@,$program_transform_name,;t t
26034 s,@bindir@,$bindir,;t t
26035 s,@sbindir@,$sbindir,;t t
26036 s,@libexecdir@,$libexecdir,;t t
26037 s,@datadir@,$datadir,;t t
26038 s,@sysconfdir@,$sysconfdir,;t t
26039 s,@sharedstatedir@,$sharedstatedir,;t t
26040 s,@localstatedir@,$localstatedir,;t t
26041 s,@libdir@,$libdir,;t t
26042 s,@includedir@,$includedir,;t t
26043 s,@oldincludedir@,$oldincludedir,;t t
26044 s,@infodir@,$infodir,;t t
26045 s,@mandir@,$mandir,;t t
26046 s,@build_alias@,$build_alias,;t t
26047 s,@host_alias@,$host_alias,;t t
26048 s,@target_alias@,$target_alias,;t t
26049 s,@DEFS@,$DEFS,;t t
26050 s,@ECHO_C@,$ECHO_C,;t t
26051 s,@ECHO_N@,$ECHO_N,;t t
26052 s,@ECHO_T@,$ECHO_T,;t t
26053 s,@LIBS@,$LIBS,;t t
26054 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26055 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26056 s,@MAINT@,$MAINT,;t t
26057 s,@CC@,$CC,;t t
26058 s,@CFLAGS@,$CFLAGS,;t t
26059 s,@LDFLAGS@,$LDFLAGS,;t t
26060 s,@CPPFLAGS@,$CPPFLAGS,;t t
26061 s,@ac_ct_CC@,$ac_ct_CC,;t t
26062 s,@EXEEXT@,$EXEEXT,;t t
26063 s,@OBJEXT@,$OBJEXT,;t t
26064 s,@CPP@,$CPP,;t t
26065 s,@EGREP@,$EGREP,;t t
26066 s,@build@,$build,;t t
26067 s,@build_cpu@,$build_cpu,;t t
26068 s,@build_vendor@,$build_vendor,;t t
26069 s,@build_os@,$build_os,;t t
26070 s,@host@,$host,;t t
26071 s,@host_cpu@,$host_cpu,;t t
26072 s,@host_vendor@,$host_vendor,;t t
26073 s,@host_os@,$host_os,;t t
26074 s,@target@,$target,;t t
26075 s,@target_cpu@,$target_cpu,;t t
26076 s,@target_vendor@,$target_vendor,;t t
26077 s,@target_os@,$target_os,;t t
26078 s,@USE_NLS@,$USE_NLS,;t t
26079 s,@LIBINTL@,$LIBINTL,;t t
26080 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26081 s,@INCINTL@,$INCINTL,;t t
26082 s,@XGETTEXT@,$XGETTEXT,;t t
26083 s,@GMSGFMT@,$GMSGFMT,;t t
26084 s,@POSUB@,$POSUB,;t t
26085 s,@CATALOGS@,$CATALOGS,;t t
26086 s,@DATADIRNAME@,$DATADIRNAME,;t t
26087 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
26088 s,@GENCAT@,$GENCAT,;t t
26089 s,@CATOBJEXT@,$CATOBJEXT,;t t
26090 s,@localedir@,$localedir,;t t
26091 s,@PACKAGE@,$PACKAGE,;t t
26092 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26093 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26094 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26095 s,@CYGPATH_W@,$CYGPATH_W,;t t
26096 s,@VERSION@,$VERSION,;t t
26097 s,@ACLOCAL@,$ACLOCAL,;t t
26098 s,@AUTOCONF@,$AUTOCONF,;t t
26099 s,@AUTOMAKE@,$AUTOMAKE,;t t
26100 s,@AUTOHEADER@,$AUTOHEADER,;t t
26101 s,@MAKEINFO@,$MAKEINFO,;t t
26102 s,@install_sh@,$install_sh,;t t
26103 s,@STRIP@,$STRIP,;t t
26104 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26105 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26106 s,@mkdir_p@,$mkdir_p,;t t
26107 s,@AWK@,$AWK,;t t
26108 s,@SET_MAKE@,$SET_MAKE,;t t
26109 s,@am__leading_dot@,$am__leading_dot,;t t
26110 s,@AMTAR@,$AMTAR,;t t
26111 s,@am__tar@,$am__tar,;t t
26112 s,@am__untar@,$am__untar,;t t
26113 s,@DEPDIR@,$DEPDIR,;t t
26114 s,@am__include@,$am__include,;t t
26115 s,@am__quote@,$am__quote,;t t
26116 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26117 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26118 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26119 s,@CCDEPMODE@,$CCDEPMODE,;t t
26120 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26121 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26122 s,@subdirs@,$subdirs,;t t
26123 s,@TARGET_OBS@,$TARGET_OBS,;t t
26124 s,@LN_S@,$LN_S,;t t
26125 s,@RANLIB@,$RANLIB,;t t
26126 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26127 s,@YACC@,$YACC,;t t
26128 s,@AR@,$AR,;t t
26129 s,@ac_ct_AR@,$ac_ct_AR,;t t
26130 s,@DLLTOOL@,$DLLTOOL,;t t
26131 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26132 s,@WINDRES@,$WINDRES,;t t
26133 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26134 s,@MIG@,$MIG,;t t
26135 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
26136 s,@READLINE@,$READLINE,;t t
26137 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26138 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
26139 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26140 s,@LIBEXPAT@,$LIBEXPAT,;t t
26141 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
26142 s,@ALLOCA@,$ALLOCA,;t t
26143 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26144 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26145 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26146 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26147 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26148 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26149 s,@WIN32LIBS@,$WIN32LIBS,;t t
26150 s,@LIBGUI@,$LIBGUI,;t t
26151 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26152 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26153 s,@TCL_VERSION@,$TCL_VERSION,;t t
26154 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
26155 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
26156 s,@TCL_CC@,$TCL_CC,;t t
26157 s,@TCL_DEFS@,$TCL_DEFS,;t t
26158 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
26159 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
26160 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
26161 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
26162 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
26163 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
26164 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
26165 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
26166 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
26167 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
26168 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
26169 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
26170 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
26171 s,@TK_VERSION@,$TK_VERSION,;t t
26172 s,@TK_DEFS@,$TK_DEFS,;t t
26173 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
26174 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
26175 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
26176 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
26177 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
26178 s,@TCLHDIR@,$TCLHDIR,;t t
26179 s,@TKHDIR@,$TKHDIR,;t t
26180 s,@ITCLHDIR@,$ITCLHDIR,;t t
26181 s,@ITKHDIR@,$ITKHDIR,;t t
26182 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
26183 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
26184 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
26185 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
26186 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
26187 s,@ITK_VERSION@,$ITK_VERSION,;t t
26188 s,@ITK_DEFS@,$ITK_DEFS,;t t
26189 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
26190 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
26191 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
26192 s,@X_CFLAGS@,$X_CFLAGS,;t t
26193 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26194 s,@X_LIBS@,$X_LIBS,;t t
26195 s,@TCL_DEPS@,$TCL_DEPS,;t t
26196 s,@TK_DEPS@,$TK_DEPS,;t t
26197 s,@ITCLLIB@,$ITCLLIB,;t t
26198 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
26199 s,@ITKLIB@,$ITKLIB,;t t
26200 s,@ITK_DEPS@,$ITK_DEPS,;t t
26201 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26202 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26203 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
26204 s,@SIM@,$SIM,;t t
26205 s,@SIM_OBS@,$SIM_OBS,;t t
26206 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26207 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26208 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26209 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26210 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26211 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26212 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26213 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26214 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26215 s,@target_subdir@,$target_subdir,;t t
26216 s,@frags@,$frags,;t t
26217 s,@nm_h@,$nm_h,;t t
26218 s,@LIBICONV@,$LIBICONV,;t t
26219 s,@LIBOBJS@,$LIBOBJS,;t t
26220 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26221 /@host_makefile_frag@/r $host_makefile_frag
26222 s,@host_makefile_frag@,,;t t
26223 CEOF
26224
26225 _ACEOF
26226
26227 cat >>$CONFIG_STATUS <<\_ACEOF
26228 # Split the substitutions into bite-sized pieces for seds with
26229 # small command number limits, like on Digital OSF/1 and HP-UX.
26230 ac_max_sed_lines=48
26231 ac_sed_frag=1 # Number of current file.
26232 ac_beg=1 # First line for current file.
26233 ac_end=$ac_max_sed_lines # Line after last line for current file.
26234 ac_more_lines=:
26235 ac_sed_cmds=
26236 while $ac_more_lines; do
26237 if test $ac_beg -gt 1; then
26238 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26239 else
26240 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26241 fi
26242 if test ! -s $tmp/subs.frag; then
26243 ac_more_lines=false
26244 else
26245 # The purpose of the label and of the branching condition is to
26246 # speed up the sed processing (if there are no `@' at all, there
26247 # is no need to browse any of the substitutions).
26248 # These are the two extra sed commands mentioned above.
26249 (echo ':t
26250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26251 if test -z "$ac_sed_cmds"; then
26252 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26253 else
26254 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26255 fi
26256 ac_sed_frag=`expr $ac_sed_frag + 1`
26257 ac_beg=$ac_end
26258 ac_end=`expr $ac_end + $ac_max_sed_lines`
26259 fi
26260 done
26261 if test -z "$ac_sed_cmds"; then
26262 ac_sed_cmds=cat
26263 fi
26264 fi # test -n "$CONFIG_FILES"
26265
26266 _ACEOF
26267 cat >>$CONFIG_STATUS <<\_ACEOF
26268 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26270 case $ac_file in
26271 - | *:- | *:-:* ) # input from stdin
26272 cat >$tmp/stdin
26273 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26274 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26275 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26277 * ) ac_file_in=$ac_file.in ;;
26278 esac
26279
26280 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26281 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26282 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26283 X"$ac_file" : 'X\(//\)[^/]' \| \
26284 X"$ac_file" : 'X\(//\)$' \| \
26285 X"$ac_file" : 'X\(/\)' \| \
26286 . : '\(.\)' 2>/dev/null ||
26287 echo X"$ac_file" |
26288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26290 /^X\(\/\/\)$/{ s//\1/; q; }
26291 /^X\(\/\).*/{ s//\1/; q; }
26292 s/.*/./; q'`
26293 { if $as_mkdir_p; then
26294 mkdir -p "$ac_dir"
26295 else
26296 as_dir="$ac_dir"
26297 as_dirs=
26298 while test ! -d "$as_dir"; do
26299 as_dirs="$as_dir $as_dirs"
26300 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26302 X"$as_dir" : 'X\(//\)[^/]' \| \
26303 X"$as_dir" : 'X\(//\)$' \| \
26304 X"$as_dir" : 'X\(/\)' \| \
26305 . : '\(.\)' 2>/dev/null ||
26306 echo X"$as_dir" |
26307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26309 /^X\(\/\/\)$/{ s//\1/; q; }
26310 /^X\(\/\).*/{ s//\1/; q; }
26311 s/.*/./; q'`
26312 done
26313 test ! -n "$as_dirs" || mkdir $as_dirs
26314 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26315 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26316 { (exit 1); exit 1; }; }; }
26317
26318 ac_builddir=.
26319
26320 if test "$ac_dir" != .; then
26321 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26322 # A "../" for each directory in $ac_dir_suffix.
26323 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26324 else
26325 ac_dir_suffix= ac_top_builddir=
26326 fi
26327
26328 case $srcdir in
26329 .) # No --srcdir option. We are building in place.
26330 ac_srcdir=.
26331 if test -z "$ac_top_builddir"; then
26332 ac_top_srcdir=.
26333 else
26334 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26335 fi ;;
26336 [\\/]* | ?:[\\/]* ) # Absolute path.
26337 ac_srcdir=$srcdir$ac_dir_suffix;
26338 ac_top_srcdir=$srcdir ;;
26339 *) # Relative path.
26340 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26341 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26342 esac
26343
26344 # Do not use `cd foo && pwd` to compute absolute paths, because
26345 # the directories may not exist.
26346 case `pwd` in
26347 .) ac_abs_builddir="$ac_dir";;
26348 *)
26349 case "$ac_dir" in
26350 .) ac_abs_builddir=`pwd`;;
26351 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26352 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26353 esac;;
26354 esac
26355 case $ac_abs_builddir in
26356 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26357 *)
26358 case ${ac_top_builddir}. in
26359 .) ac_abs_top_builddir=$ac_abs_builddir;;
26360 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26361 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26362 esac;;
26363 esac
26364 case $ac_abs_builddir in
26365 .) ac_abs_srcdir=$ac_srcdir;;
26366 *)
26367 case $ac_srcdir in
26368 .) ac_abs_srcdir=$ac_abs_builddir;;
26369 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26370 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26371 esac;;
26372 esac
26373 case $ac_abs_builddir in
26374 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26375 *)
26376 case $ac_top_srcdir in
26377 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26378 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26379 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26380 esac;;
26381 esac
26382
26383
26384 case $INSTALL in
26385 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26386 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26387 esac
26388
26389 if test x"$ac_file" != x-; then
26390 { echo "$as_me:$LINENO: creating $ac_file" >&5
26391 echo "$as_me: creating $ac_file" >&6;}
26392 rm -f "$ac_file"
26393 fi
26394 # Let's still pretend it is `configure' which instantiates (i.e., don't
26395 # use $as_me), people would be surprised to read:
26396 # /* config.h. Generated by config.status. */
26397 if test x"$ac_file" = x-; then
26398 configure_input=
26399 else
26400 configure_input="$ac_file. "
26401 fi
26402 configure_input=$configure_input"Generated from `echo $ac_file_in |
26403 sed 's,.*/,,'` by configure."
26404
26405 # First look for the input files in the build tree, otherwise in the
26406 # src tree.
26407 ac_file_inputs=`IFS=:
26408 for f in $ac_file_in; do
26409 case $f in
26410 -) echo $tmp/stdin ;;
26411 [\\/$]*)
26412 # Absolute (can't be DOS-style, as IFS=:)
26413 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26414 echo "$as_me: error: cannot find input file: $f" >&2;}
26415 { (exit 1); exit 1; }; }
26416 echo "$f";;
26417 *) # Relative
26418 if test -f "$f"; then
26419 # Build tree
26420 echo "$f"
26421 elif test -f "$srcdir/$f"; then
26422 # Source tree
26423 echo "$srcdir/$f"
26424 else
26425 # /dev/null tree
26426 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26427 echo "$as_me: error: cannot find input file: $f" >&2;}
26428 { (exit 1); exit 1; }; }
26429 fi;;
26430 esac
26431 done` || { (exit 1); exit 1; }
26432 _ACEOF
26433 cat >>$CONFIG_STATUS <<_ACEOF
26434 sed "$ac_vpsub
26435 $extrasub
26436 _ACEOF
26437 cat >>$CONFIG_STATUS <<\_ACEOF
26438 :t
26439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26440 s,@configure_input@,$configure_input,;t t
26441 s,@srcdir@,$ac_srcdir,;t t
26442 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26443 s,@top_srcdir@,$ac_top_srcdir,;t t
26444 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26445 s,@builddir@,$ac_builddir,;t t
26446 s,@abs_builddir@,$ac_abs_builddir,;t t
26447 s,@top_builddir@,$ac_top_builddir,;t t
26448 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26449 s,@INSTALL@,$ac_INSTALL,;t t
26450 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26451 rm -f $tmp/stdin
26452 if test x"$ac_file" != x-; then
26453 mv $tmp/out $ac_file
26454 else
26455 cat $tmp/out
26456 rm -f $tmp/out
26457 fi
26458
26459 done
26460 _ACEOF
26461 cat >>$CONFIG_STATUS <<\_ACEOF
26462
26463 #
26464 # CONFIG_HEADER section.
26465 #
26466
26467 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26468 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26469 #
26470 # ac_d sets the value in "#define NAME VALUE" lines.
26471 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26472 ac_dB='[ ].*$,\1#\2'
26473 ac_dC=' '
26474 ac_dD=',;t'
26475 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26476 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26477 ac_uB='$,\1#\2define\3'
26478 ac_uC=' '
26479 ac_uD=',;t'
26480
26481 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26482 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26483 case $ac_file in
26484 - | *:- | *:-:* ) # input from stdin
26485 cat >$tmp/stdin
26486 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26487 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26488 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26489 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26490 * ) ac_file_in=$ac_file.in ;;
26491 esac
26492
26493 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26494 echo "$as_me: creating $ac_file" >&6;}
26495
26496 # First look for the input files in the build tree, otherwise in the
26497 # src tree.
26498 ac_file_inputs=`IFS=:
26499 for f in $ac_file_in; do
26500 case $f in
26501 -) echo $tmp/stdin ;;
26502 [\\/$]*)
26503 # Absolute (can't be DOS-style, as IFS=:)
26504 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26505 echo "$as_me: error: cannot find input file: $f" >&2;}
26506 { (exit 1); exit 1; }; }
26507 # Do quote $f, to prevent DOS paths from being IFS'd.
26508 echo "$f";;
26509 *) # Relative
26510 if test -f "$f"; then
26511 # Build tree
26512 echo "$f"
26513 elif test -f "$srcdir/$f"; then
26514 # Source tree
26515 echo "$srcdir/$f"
26516 else
26517 # /dev/null tree
26518 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26519 echo "$as_me: error: cannot find input file: $f" >&2;}
26520 { (exit 1); exit 1; }; }
26521 fi;;
26522 esac
26523 done` || { (exit 1); exit 1; }
26524 # Remove the trailing spaces.
26525 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26526
26527 _ACEOF
26528
26529 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26530 # `conftest.undefs', that substitutes the proper values into
26531 # config.h.in to produce config.h. The first handles `#define'
26532 # templates, and the second `#undef' templates.
26533 # And first: Protect against being on the right side of a sed subst in
26534 # config.status. Protect against being in an unquoted here document
26535 # in config.status.
26536 rm -f conftest.defines conftest.undefs
26537 # Using a here document instead of a string reduces the quoting nightmare.
26538 # Putting comments in sed scripts is not portable.
26539 #
26540 # `end' is used to avoid that the second main sed command (meant for
26541 # 0-ary CPP macros) applies to n-ary macro definitions.
26542 # See the Autoconf documentation for `clear'.
26543 cat >confdef2sed.sed <<\_ACEOF
26544 s/[\\&,]/\\&/g
26545 s,[\\$`],\\&,g
26546 t clear
26547 : clear
26548 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26549 t end
26550 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26551 : end
26552 _ACEOF
26553 # If some macros were called several times there might be several times
26554 # the same #defines, which is useless. Nevertheless, we may not want to
26555 # sort them, since we want the *last* AC-DEFINE to be honored.
26556 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26557 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26558 rm -f confdef2sed.sed
26559
26560 # This sed command replaces #undef with comments. This is necessary, for
26561 # example, in the case of _POSIX_SOURCE, which is predefined and required
26562 # on some systems where configure will not decide to define it.
26563 cat >>conftest.undefs <<\_ACEOF
26564 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26565 _ACEOF
26566
26567 # Break up conftest.defines because some shells have a limit on the size
26568 # of here documents, and old seds have small limits too (100 cmds).
26569 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26570 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26571 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26572 echo ' :' >>$CONFIG_STATUS
26573 rm -f conftest.tail
26574 while grep . conftest.defines >/dev/null
26575 do
26576 # Write a limited-size here document to $tmp/defines.sed.
26577 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26578 # Speed up: don't consider the non `#define' lines.
26579 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26580 # Work around the forget-to-reset-the-flag bug.
26581 echo 't clr' >>$CONFIG_STATUS
26582 echo ': clr' >>$CONFIG_STATUS
26583 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26584 echo 'CEOF
26585 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26586 rm -f $tmp/in
26587 mv $tmp/out $tmp/in
26588 ' >>$CONFIG_STATUS
26589 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26590 rm -f conftest.defines
26591 mv conftest.tail conftest.defines
26592 done
26593 rm -f conftest.defines
26594 echo ' fi # grep' >>$CONFIG_STATUS
26595 echo >>$CONFIG_STATUS
26596
26597 # Break up conftest.undefs because some shells have a limit on the size
26598 # of here documents, and old seds have small limits too (100 cmds).
26599 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26600 rm -f conftest.tail
26601 while grep . conftest.undefs >/dev/null
26602 do
26603 # Write a limited-size here document to $tmp/undefs.sed.
26604 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26605 # Speed up: don't consider the non `#undef'
26606 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26607 # Work around the forget-to-reset-the-flag bug.
26608 echo 't clr' >>$CONFIG_STATUS
26609 echo ': clr' >>$CONFIG_STATUS
26610 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26611 echo 'CEOF
26612 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26613 rm -f $tmp/in
26614 mv $tmp/out $tmp/in
26615 ' >>$CONFIG_STATUS
26616 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26617 rm -f conftest.undefs
26618 mv conftest.tail conftest.undefs
26619 done
26620 rm -f conftest.undefs
26621
26622 cat >>$CONFIG_STATUS <<\_ACEOF
26623 # Let's still pretend it is `configure' which instantiates (i.e., don't
26624 # use $as_me), people would be surprised to read:
26625 # /* config.h. Generated by config.status. */
26626 if test x"$ac_file" = x-; then
26627 echo "/* Generated by configure. */" >$tmp/config.h
26628 else
26629 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26630 fi
26631 cat $tmp/in >>$tmp/config.h
26632 rm -f $tmp/in
26633 if test x"$ac_file" != x-; then
26634 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26635 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26636 echo "$as_me: $ac_file is unchanged" >&6;}
26637 else
26638 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26639 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26640 X"$ac_file" : 'X\(//\)[^/]' \| \
26641 X"$ac_file" : 'X\(//\)$' \| \
26642 X"$ac_file" : 'X\(/\)' \| \
26643 . : '\(.\)' 2>/dev/null ||
26644 echo X"$ac_file" |
26645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26647 /^X\(\/\/\)$/{ s//\1/; q; }
26648 /^X\(\/\).*/{ s//\1/; q; }
26649 s/.*/./; q'`
26650 { if $as_mkdir_p; then
26651 mkdir -p "$ac_dir"
26652 else
26653 as_dir="$ac_dir"
26654 as_dirs=
26655 while test ! -d "$as_dir"; do
26656 as_dirs="$as_dir $as_dirs"
26657 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26659 X"$as_dir" : 'X\(//\)[^/]' \| \
26660 X"$as_dir" : 'X\(//\)$' \| \
26661 X"$as_dir" : 'X\(/\)' \| \
26662 . : '\(.\)' 2>/dev/null ||
26663 echo X"$as_dir" |
26664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26666 /^X\(\/\/\)$/{ s//\1/; q; }
26667 /^X\(\/\).*/{ s//\1/; q; }
26668 s/.*/./; q'`
26669 done
26670 test ! -n "$as_dirs" || mkdir $as_dirs
26671 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26672 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26673 { (exit 1); exit 1; }; }; }
26674
26675 rm -f $ac_file
26676 mv $tmp/config.h $ac_file
26677 fi
26678 else
26679 cat $tmp/config.h
26680 rm -f $tmp/config.h
26681 fi
26682 # Compute $ac_file's index in $config_headers.
26683 _am_stamp_count=1
26684 for _am_header in $config_headers :; do
26685 case $_am_header in
26686 $ac_file | $ac_file:* )
26687 break ;;
26688 * )
26689 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26690 esac
26691 done
26692 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26693 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26694 X$ac_file : 'X\(//\)[^/]' \| \
26695 X$ac_file : 'X\(//\)$' \| \
26696 X$ac_file : 'X\(/\)' \| \
26697 . : '\(.\)' 2>/dev/null ||
26698 echo X$ac_file |
26699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26701 /^X\(\/\/\)$/{ s//\1/; q; }
26702 /^X\(\/\).*/{ s//\1/; q; }
26703 s/.*/./; q'`/stamp-h$_am_stamp_count
26704 done
26705 _ACEOF
26706 cat >>$CONFIG_STATUS <<\_ACEOF
26707
26708 #
26709 # CONFIG_LINKS section.
26710 #
26711
26712 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
26713 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26714 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26715
26716 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
26717 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
26718
26719 if test ! -r $srcdir/$ac_source; then
26720 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26721 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26722 { (exit 1); exit 1; }; }
26723 fi
26724 rm -f $ac_dest
26725
26726 # Make relative symlinks.
26727 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
26728 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26729 X"$ac_dest" : 'X\(//\)[^/]' \| \
26730 X"$ac_dest" : 'X\(//\)$' \| \
26731 X"$ac_dest" : 'X\(/\)' \| \
26732 . : '\(.\)' 2>/dev/null ||
26733 echo X"$ac_dest" |
26734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26736 /^X\(\/\/\)$/{ s//\1/; q; }
26737 /^X\(\/\).*/{ s//\1/; q; }
26738 s/.*/./; q'`
26739 { if $as_mkdir_p; then
26740 mkdir -p "$ac_dest_dir"
26741 else
26742 as_dir="$ac_dest_dir"
26743 as_dirs=
26744 while test ! -d "$as_dir"; do
26745 as_dirs="$as_dir $as_dirs"
26746 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26748 X"$as_dir" : 'X\(//\)[^/]' \| \
26749 X"$as_dir" : 'X\(//\)$' \| \
26750 X"$as_dir" : 'X\(/\)' \| \
26751 . : '\(.\)' 2>/dev/null ||
26752 echo X"$as_dir" |
26753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26755 /^X\(\/\/\)$/{ s//\1/; q; }
26756 /^X\(\/\).*/{ s//\1/; q; }
26757 s/.*/./; q'`
26758 done
26759 test ! -n "$as_dirs" || mkdir $as_dirs
26760 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
26761 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
26762 { (exit 1); exit 1; }; }; }
26763
26764 ac_builddir=.
26765
26766 if test "$ac_dest_dir" != .; then
26767 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
26768 # A "../" for each directory in $ac_dir_suffix.
26769 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26770 else
26771 ac_dir_suffix= ac_top_builddir=
26772 fi
26773
26774 case $srcdir in
26775 .) # No --srcdir option. We are building in place.
26776 ac_srcdir=.
26777 if test -z "$ac_top_builddir"; then
26778 ac_top_srcdir=.
26779 else
26780 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26781 fi ;;
26782 [\\/]* | ?:[\\/]* ) # Absolute path.
26783 ac_srcdir=$srcdir$ac_dir_suffix;
26784 ac_top_srcdir=$srcdir ;;
26785 *) # Relative path.
26786 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26787 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26788 esac
26789
26790 # Do not use `cd foo && pwd` to compute absolute paths, because
26791 # the directories may not exist.
26792 case `pwd` in
26793 .) ac_abs_builddir="$ac_dest_dir";;
26794 *)
26795 case "$ac_dest_dir" in
26796 .) ac_abs_builddir=`pwd`;;
26797 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
26798 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
26799 esac;;
26800 esac
26801 case $ac_abs_builddir in
26802 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26803 *)
26804 case ${ac_top_builddir}. in
26805 .) ac_abs_top_builddir=$ac_abs_builddir;;
26806 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26807 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26808 esac;;
26809 esac
26810 case $ac_abs_builddir in
26811 .) ac_abs_srcdir=$ac_srcdir;;
26812 *)
26813 case $ac_srcdir in
26814 .) ac_abs_srcdir=$ac_abs_builddir;;
26815 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26816 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26817 esac;;
26818 esac
26819 case $ac_abs_builddir in
26820 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26821 *)
26822 case $ac_top_srcdir in
26823 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26824 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26825 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26826 esac;;
26827 esac
26828
26829
26830 case $srcdir in
26831 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26832 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
26833 esac
26834
26835 # Try a symlink, then a hard link, then a copy.
26836 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26837 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26838 cp -p $srcdir/$ac_source $ac_dest ||
26839 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26840 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
26841 { (exit 1); exit 1; }; }
26842 done
26843 _ACEOF
26844 cat >>$CONFIG_STATUS <<\_ACEOF
26845
26846 #
26847 # CONFIG_COMMANDS section.
26848 #
26849 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26850 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26851 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26852 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26853 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26854 X"$ac_dest" : 'X\(//\)[^/]' \| \
26855 X"$ac_dest" : 'X\(//\)$' \| \
26856 X"$ac_dest" : 'X\(/\)' \| \
26857 . : '\(.\)' 2>/dev/null ||
26858 echo X"$ac_dest" |
26859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26860 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26861 /^X\(\/\/\)$/{ s//\1/; q; }
26862 /^X\(\/\).*/{ s//\1/; q; }
26863 s/.*/./; q'`
26864 { if $as_mkdir_p; then
26865 mkdir -p "$ac_dir"
26866 else
26867 as_dir="$ac_dir"
26868 as_dirs=
26869 while test ! -d "$as_dir"; do
26870 as_dirs="$as_dir $as_dirs"
26871 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26872 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26873 X"$as_dir" : 'X\(//\)[^/]' \| \
26874 X"$as_dir" : 'X\(//\)$' \| \
26875 X"$as_dir" : 'X\(/\)' \| \
26876 . : '\(.\)' 2>/dev/null ||
26877 echo X"$as_dir" |
26878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26880 /^X\(\/\/\)$/{ s//\1/; q; }
26881 /^X\(\/\).*/{ s//\1/; q; }
26882 s/.*/./; q'`
26883 done
26884 test ! -n "$as_dirs" || mkdir $as_dirs
26885 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26886 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26887 { (exit 1); exit 1; }; }; }
26888
26889 ac_builddir=.
26890
26891 if test "$ac_dir" != .; then
26892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26893 # A "../" for each directory in $ac_dir_suffix.
26894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26895 else
26896 ac_dir_suffix= ac_top_builddir=
26897 fi
26898
26899 case $srcdir in
26900 .) # No --srcdir option. We are building in place.
26901 ac_srcdir=.
26902 if test -z "$ac_top_builddir"; then
26903 ac_top_srcdir=.
26904 else
26905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26906 fi ;;
26907 [\\/]* | ?:[\\/]* ) # Absolute path.
26908 ac_srcdir=$srcdir$ac_dir_suffix;
26909 ac_top_srcdir=$srcdir ;;
26910 *) # Relative path.
26911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26913 esac
26914
26915 # Do not use `cd foo && pwd` to compute absolute paths, because
26916 # the directories may not exist.
26917 case `pwd` in
26918 .) ac_abs_builddir="$ac_dir";;
26919 *)
26920 case "$ac_dir" in
26921 .) ac_abs_builddir=`pwd`;;
26922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26924 esac;;
26925 esac
26926 case $ac_abs_builddir in
26927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26928 *)
26929 case ${ac_top_builddir}. in
26930 .) ac_abs_top_builddir=$ac_abs_builddir;;
26931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26933 esac;;
26934 esac
26935 case $ac_abs_builddir in
26936 .) ac_abs_srcdir=$ac_srcdir;;
26937 *)
26938 case $ac_srcdir in
26939 .) ac_abs_srcdir=$ac_abs_builddir;;
26940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26942 esac;;
26943 esac
26944 case $ac_abs_builddir in
26945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26946 *)
26947 case $ac_top_srcdir in
26948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26951 esac;;
26952 esac
26953
26954
26955 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26956 echo "$as_me: executing $ac_dest commands" >&6;}
26957 case $ac_dest in
26958 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26959 # Strip MF so we end up with the name of the file.
26960 mf=`echo "$mf" | sed -e 's/:.*$//'`
26961 # Check whether this is an Automake generated Makefile or not.
26962 # We used to match only the files named `Makefile.in', but
26963 # some people rename them; so instead we look at the file content.
26964 # Grep'ing the first line is not enough: some people post-process
26965 # each Makefile.in and add a new line on top of each file to say so.
26966 # So let's grep whole file.
26967 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26968 dirpart=`(dirname "$mf") 2>/dev/null ||
26969 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26970 X"$mf" : 'X\(//\)[^/]' \| \
26971 X"$mf" : 'X\(//\)$' \| \
26972 X"$mf" : 'X\(/\)' \| \
26973 . : '\(.\)' 2>/dev/null ||
26974 echo X"$mf" |
26975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26977 /^X\(\/\/\)$/{ s//\1/; q; }
26978 /^X\(\/\).*/{ s//\1/; q; }
26979 s/.*/./; q'`
26980 else
26981 continue
26982 fi
26983 # Extract the definition of DEPDIR, am__include, and am__quote
26984 # from the Makefile without running `make'.
26985 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26986 test -z "$DEPDIR" && continue
26987 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26988 test -z "am__include" && continue
26989 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26990 # When using ansi2knr, U may be empty or an underscore; expand it
26991 U=`sed -n 's/^U = //p' < "$mf"`
26992 # Find all dependency output files, they are included files with
26993 # $(DEPDIR) in their names. We invoke sed twice because it is the
26994 # simplest approach to changing $(DEPDIR) to its actual value in the
26995 # expansion.
26996 for file in `sed -n "
26997 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26998 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26999 # Make sure the directory exists.
27000 test -f "$dirpart/$file" && continue
27001 fdir=`(dirname "$file") 2>/dev/null ||
27002 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27003 X"$file" : 'X\(//\)[^/]' \| \
27004 X"$file" : 'X\(//\)$' \| \
27005 X"$file" : 'X\(/\)' \| \
27006 . : '\(.\)' 2>/dev/null ||
27007 echo X"$file" |
27008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27010 /^X\(\/\/\)$/{ s//\1/; q; }
27011 /^X\(\/\).*/{ s//\1/; q; }
27012 s/.*/./; q'`
27013 { if $as_mkdir_p; then
27014 mkdir -p $dirpart/$fdir
27015 else
27016 as_dir=$dirpart/$fdir
27017 as_dirs=
27018 while test ! -d "$as_dir"; do
27019 as_dirs="$as_dir $as_dirs"
27020 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27022 X"$as_dir" : 'X\(//\)[^/]' \| \
27023 X"$as_dir" : 'X\(//\)$' \| \
27024 X"$as_dir" : 'X\(/\)' \| \
27025 . : '\(.\)' 2>/dev/null ||
27026 echo X"$as_dir" |
27027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27029 /^X\(\/\/\)$/{ s//\1/; q; }
27030 /^X\(\/\).*/{ s//\1/; q; }
27031 s/.*/./; q'`
27032 done
27033 test ! -n "$as_dirs" || mkdir $as_dirs
27034 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27035 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27036 { (exit 1); exit 1; }; }; }
27037
27038 # echo "creating $dirpart/$file"
27039 echo '# dummy' > "$dirpart/$file"
27040 done
27041 done
27042 ;;
27043 gdb_stdint.h )
27044 if test "$GCC" = yes; then
27045 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
27046 else
27047 echo "/* generated for $CC */" > tmp-stdint.h
27048 fi
27049
27050 sed 's/^ *//' >> tmp-stdint.h <<EOF
27051
27052 #ifndef GCC_GENERATED_STDINT_H
27053 #define GCC_GENERATED_STDINT_H 1
27054
27055 #include <sys/types.h>
27056 EOF
27057
27058 if test "$acx_cv_header_stdint" != stdint.h; then
27059 echo "#include <stddef.h>" >> tmp-stdint.h
27060 fi
27061 if test "$acx_cv_header_stdint" != stddef.h; then
27062 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
27063 fi
27064
27065 sed 's/^ *//' >> tmp-stdint.h <<EOF
27066 /* glibc uses these symbols as guards to prevent redefinitions. */
27067 #ifdef __int8_t_defined
27068 #define _INT8_T
27069 #define _INT16_T
27070 #define _INT32_T
27071 #endif
27072 #ifdef __uint32_t_defined
27073 #define _UINT32_T
27074 #endif
27075
27076 EOF
27077
27078 # ----------------- done header, emit basic int types -------------
27079 if test "$acx_cv_header_stdint" = stddef.h; then
27080 sed 's/^ *//' >> tmp-stdint.h <<EOF
27081
27082 #ifndef _UINT8_T
27083 #define _UINT8_T
27084 #ifndef __uint8_t_defined
27085 #define __uint8_t_defined
27086 typedef unsigned $acx_cv_type_int8_t uint8_t;
27087 #endif
27088 #endif
27089
27090 #ifndef _UINT16_T
27091 #define _UINT16_T
27092 #ifndef __uint16_t_defined
27093 #define __uint16_t_defined
27094 typedef unsigned $acx_cv_type_int16_t uint16_t;
27095 #endif
27096 #endif
27097
27098 #ifndef _UINT32_T
27099 #define _UINT32_T
27100 #ifndef __uint32_t_defined
27101 #define __uint32_t_defined
27102 typedef unsigned $acx_cv_type_int32_t uint32_t;
27103 #endif
27104 #endif
27105
27106 #ifndef _INT8_T
27107 #define _INT8_T
27108 #ifndef __int8_t_defined
27109 #define __int8_t_defined
27110 typedef $acx_cv_type_int8_t int8_t;
27111 #endif
27112 #endif
27113
27114 #ifndef _INT16_T
27115 #define _INT16_T
27116 #ifndef __int16_t_defined
27117 #define __int16_t_defined
27118 typedef $acx_cv_type_int16_t int16_t;
27119 #endif
27120 #endif
27121
27122 #ifndef _INT32_T
27123 #define _INT32_T
27124 #ifndef __int32_t_defined
27125 #define __int32_t_defined
27126 typedef $acx_cv_type_int32_t int32_t;
27127 #endif
27128 #endif
27129 EOF
27130 elif test "$ac_cv_type_u_int32_t" = yes; then
27131 sed 's/^ *//' >> tmp-stdint.h <<EOF
27132
27133 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
27134 #ifndef _INT8_T
27135 #define _INT8_T
27136 #endif
27137 #ifndef _INT16_T
27138 #define _INT16_T
27139 #endif
27140 #ifndef _INT32_T
27141 #define _INT32_T
27142 #endif
27143
27144 #ifndef _UINT8_T
27145 #define _UINT8_T
27146 #ifndef __uint8_t_defined
27147 #define __uint8_t_defined
27148 typedef u_int8_t uint8_t;
27149 #endif
27150 #endif
27151
27152 #ifndef _UINT16_T
27153 #define _UINT16_T
27154 #ifndef __uint16_t_defined
27155 #define __uint16_t_defined
27156 typedef u_int16_t uint16_t;
27157 #endif
27158 #endif
27159
27160 #ifndef _UINT32_T
27161 #define _UINT32_T
27162 #ifndef __uint32_t_defined
27163 #define __uint32_t_defined
27164 typedef u_int32_t uint32_t;
27165 #endif
27166 #endif
27167 EOF
27168 else
27169 sed 's/^ *//' >> tmp-stdint.h <<EOF
27170
27171 /* Some systems have guard macros to prevent redefinitions, define them. */
27172 #ifndef _INT8_T
27173 #define _INT8_T
27174 #endif
27175 #ifndef _INT16_T
27176 #define _INT16_T
27177 #endif
27178 #ifndef _INT32_T
27179 #define _INT32_T
27180 #endif
27181 #ifndef _UINT8_T
27182 #define _UINT8_T
27183 #endif
27184 #ifndef _UINT16_T
27185 #define _UINT16_T
27186 #endif
27187 #ifndef _UINT32_T
27188 #define _UINT32_T
27189 #endif
27190 EOF
27191 fi
27192
27193 # ------------- done basic int types, emit int64_t types ------------
27194 if test "$ac_cv_type_uint64_t" = yes; then
27195 sed 's/^ *//' >> tmp-stdint.h <<EOF
27196
27197 /* system headers have good uint64_t and int64_t */
27198 #ifndef _INT64_T
27199 #define _INT64_T
27200 #endif
27201 #ifndef _UINT64_T
27202 #define _UINT64_T
27203 #endif
27204 EOF
27205 elif test "$ac_cv_type_u_int64_t" = yes; then
27206 sed 's/^ *//' >> tmp-stdint.h <<EOF
27207
27208 /* system headers have an u_int64_t (and int64_t) */
27209 #ifndef _INT64_T
27210 #define _INT64_T
27211 #endif
27212 #ifndef _UINT64_T
27213 #define _UINT64_T
27214 #ifndef __uint64_t_defined
27215 #define __uint64_t_defined
27216 typedef u_int64_t uint64_t;
27217 #endif
27218 #endif
27219 EOF
27220 elif test -n "$acx_cv_type_int64_t"; then
27221 sed 's/^ *//' >> tmp-stdint.h <<EOF
27222
27223 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
27224 #ifndef _INT64_T
27225 #define _INT64_T
27226 typedef $acx_cv_type_int64_t int64_t;
27227 #endif
27228 #ifndef _UINT64_T
27229 #define _UINT64_T
27230 #ifndef __uint64_t_defined
27231 #define __uint64_t_defined
27232 typedef unsigned $acx_cv_type_int64_t uint64_t;
27233 #endif
27234 #endif
27235 EOF
27236 else
27237 sed 's/^ *//' >> tmp-stdint.h <<EOF
27238
27239 /* some common heuristics for int64_t, using compiler-specific tests */
27240 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
27241 #ifndef _INT64_T
27242 #define _INT64_T
27243 #ifndef __int64_t_defined
27244 typedef long long int64_t;
27245 #endif
27246 #endif
27247 #ifndef _UINT64_T
27248 #define _UINT64_T
27249 typedef unsigned long long uint64_t;
27250 #endif
27251
27252 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
27253 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
27254 does not implement __extension__. But that compiler doesn't define
27255 __GNUC_MINOR__. */
27256 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
27257 # define __extension__
27258 # endif
27259
27260 # ifndef _INT64_T
27261 # define _INT64_T
27262 __extension__ typedef long long int64_t;
27263 # endif
27264 # ifndef _UINT64_T
27265 # define _UINT64_T
27266 __extension__ typedef unsigned long long uint64_t;
27267 # endif
27268
27269 #elif !defined __STRICT_ANSI__
27270 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
27271
27272 # ifndef _INT64_T
27273 # define _INT64_T
27274 typedef __int64 int64_t;
27275 # endif
27276 # ifndef _UINT64_T
27277 # define _UINT64_T
27278 typedef unsigned __int64 uint64_t;
27279 # endif
27280 # endif /* compiler */
27281
27282 #endif /* ANSI version */
27283 EOF
27284 fi
27285
27286 # ------------- done int64_t types, emit intptr types ------------
27287 if test "$ac_cv_type_uintptr_t" != yes; then
27288 sed 's/^ *//' >> tmp-stdint.h <<EOF
27289
27290 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
27291 #ifndef __uintptr_t_defined
27292 typedef u$acx_cv_type_intptr_t uintptr_t;
27293 #endif
27294 #ifndef __intptr_t_defined
27295 typedef $acx_cv_type_intptr_t intptr_t;
27296 #endif
27297 EOF
27298 fi
27299
27300 # ------------- done intptr types, emit int_least types ------------
27301 if test "$ac_cv_type_int_least32_t" != yes; then
27302 sed 's/^ *//' >> tmp-stdint.h <<EOF
27303
27304 /* Define int_least types */
27305 typedef int8_t int_least8_t;
27306 typedef int16_t int_least16_t;
27307 typedef int32_t int_least32_t;
27308 #ifdef _INT64_T
27309 typedef int64_t int_least64_t;
27310 #endif
27311
27312 typedef uint8_t uint_least8_t;
27313 typedef uint16_t uint_least16_t;
27314 typedef uint32_t uint_least32_t;
27315 #ifdef _UINT64_T
27316 typedef uint64_t uint_least64_t;
27317 #endif
27318 EOF
27319 fi
27320
27321 # ------------- done intptr types, emit int_fast types ------------
27322 if test "$ac_cv_type_int_fast32_t" != yes; then
27323 sed 's/^ *//' >> tmp-stdint.h <<EOF
27324
27325 /* Define int_fast types. short is often slow */
27326 typedef int8_t int_fast8_t;
27327 typedef int int_fast16_t;
27328 typedef int32_t int_fast32_t;
27329 #ifdef _INT64_T
27330 typedef int64_t int_fast64_t;
27331 #endif
27332
27333 typedef uint8_t uint_fast8_t;
27334 typedef unsigned int uint_fast16_t;
27335 typedef uint32_t uint_fast32_t;
27336 #ifdef _UINT64_T
27337 typedef uint64_t uint_fast64_t;
27338 #endif
27339 EOF
27340 fi
27341
27342 if test "$ac_cv_type_uintmax_t" != yes; then
27343 sed 's/^ *//' >> tmp-stdint.h <<EOF
27344
27345 /* Define intmax based on what we found */
27346 #ifdef _INT64_T
27347 typedef int64_t intmax_t;
27348 #else
27349 typedef long intmax_t;
27350 #endif
27351 #ifdef _UINT64_T
27352 typedef uint64_t uintmax_t;
27353 #else
27354 typedef unsigned long uintmax_t;
27355 #endif
27356 EOF
27357 fi
27358
27359 sed 's/^ *//' >> tmp-stdint.h <<EOF
27360
27361 #endif /* GCC_GENERATED_STDINT_H */
27362 EOF
27363
27364 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
27365 rm -f tmp-stdint.h
27366 else
27367 mv -f tmp-stdint.h gdb_stdint.h
27368 fi
27369
27370 ;;
27371 default )
27372
27373 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
27374 mv -f Makefile.tmp Makefile
27375
27376
27377 case x$CONFIG_HEADERS in
27378 xconfig.h:config.in)
27379 echo > stamp-h ;;
27380 esac
27381 ;;
27382 esac
27383 done
27384 _ACEOF
27385
27386 cat >>$CONFIG_STATUS <<\_ACEOF
27387
27388 { (exit 0); exit 0; }
27389 _ACEOF
27390 chmod +x $CONFIG_STATUS
27391 ac_clean_files=$ac_clean_files_save
27392
27393
27394 # configure is writing to config.log, and then calls config.status.
27395 # config.status does its own redirection, appending to config.log.
27396 # Unfortunately, on DOS this fails, as config.log is still kept open
27397 # by configure, so config.status won't be able to write to it; its
27398 # output is simply discarded. So we exec the FD to /dev/null,
27399 # effectively closing config.log, so it can be properly (re)opened and
27400 # appended to by config.status. When coming back to configure, we
27401 # need to make the FD available again.
27402 if test "$no_create" != yes; then
27403 ac_cs_success=:
27404 ac_config_status_args=
27405 test "$silent" = yes &&
27406 ac_config_status_args="$ac_config_status_args --quiet"
27407 exec 5>/dev/null
27408 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27409 exec 5>>config.log
27410 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27411 # would make configure fail if this is the last instruction.
27412 $ac_cs_success || { (exit 1); exit 1; }
27413 fi
27414
27415 #
27416 # CONFIG_SUBDIRS section.
27417 #
27418 if test "$no_recursion" != yes; then
27419
27420 # Remove --cache-file and --srcdir arguments so they do not pile up.
27421 ac_sub_configure_args=
27422 ac_prev=
27423 for ac_arg in $ac_configure_args; do
27424 if test -n "$ac_prev"; then
27425 ac_prev=
27426 continue
27427 fi
27428 case $ac_arg in
27429 -cache-file | --cache-file | --cache-fil | --cache-fi \
27430 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27431 ac_prev=cache_file ;;
27432 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27433 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27434 | --c=*)
27435 ;;
27436 --config-cache | -C)
27437 ;;
27438 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27439 ac_prev=srcdir ;;
27440 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27441 ;;
27442 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27443 ac_prev=prefix ;;
27444 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27445 ;;
27446 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
27447 esac
27448 done
27449
27450 # Always prepend --prefix to ensure using the same prefix
27451 # in subdir configurations.
27452 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
27453
27454 ac_popdir=`pwd`
27455 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27456
27457 # Do not complain, so a configure script can configure whichever
27458 # parts of a large source tree are present.
27459 test -d $srcdir/$ac_dir || continue
27460
27461 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27462 echo "$as_me: configuring in $ac_dir" >&6;}
27463 { if $as_mkdir_p; then
27464 mkdir -p "$ac_dir"
27465 else
27466 as_dir="$ac_dir"
27467 as_dirs=
27468 while test ! -d "$as_dir"; do
27469 as_dirs="$as_dir $as_dirs"
27470 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27472 X"$as_dir" : 'X\(//\)[^/]' \| \
27473 X"$as_dir" : 'X\(//\)$' \| \
27474 X"$as_dir" : 'X\(/\)' \| \
27475 . : '\(.\)' 2>/dev/null ||
27476 echo X"$as_dir" |
27477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27479 /^X\(\/\/\)$/{ s//\1/; q; }
27480 /^X\(\/\).*/{ s//\1/; q; }
27481 s/.*/./; q'`
27482 done
27483 test ! -n "$as_dirs" || mkdir $as_dirs
27484 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27485 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27486 { (exit 1); exit 1; }; }; }
27487
27488 ac_builddir=.
27489
27490 if test "$ac_dir" != .; then
27491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27492 # A "../" for each directory in $ac_dir_suffix.
27493 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27494 else
27495 ac_dir_suffix= ac_top_builddir=
27496 fi
27497
27498 case $srcdir in
27499 .) # No --srcdir option. We are building in place.
27500 ac_srcdir=.
27501 if test -z "$ac_top_builddir"; then
27502 ac_top_srcdir=.
27503 else
27504 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27505 fi ;;
27506 [\\/]* | ?:[\\/]* ) # Absolute path.
27507 ac_srcdir=$srcdir$ac_dir_suffix;
27508 ac_top_srcdir=$srcdir ;;
27509 *) # Relative path.
27510 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27511 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27512 esac
27513
27514 # Do not use `cd foo && pwd` to compute absolute paths, because
27515 # the directories may not exist.
27516 case `pwd` in
27517 .) ac_abs_builddir="$ac_dir";;
27518 *)
27519 case "$ac_dir" in
27520 .) ac_abs_builddir=`pwd`;;
27521 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27522 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27523 esac;;
27524 esac
27525 case $ac_abs_builddir in
27526 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27527 *)
27528 case ${ac_top_builddir}. in
27529 .) ac_abs_top_builddir=$ac_abs_builddir;;
27530 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27531 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27532 esac;;
27533 esac
27534 case $ac_abs_builddir in
27535 .) ac_abs_srcdir=$ac_srcdir;;
27536 *)
27537 case $ac_srcdir in
27538 .) ac_abs_srcdir=$ac_abs_builddir;;
27539 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27540 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27541 esac;;
27542 esac
27543 case $ac_abs_builddir in
27544 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27545 *)
27546 case $ac_top_srcdir in
27547 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27548 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27549 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27550 esac;;
27551 esac
27552
27553
27554 cd $ac_dir
27555
27556 # Check for guested configure; otherwise get Cygnus style configure.
27557 if test -f $ac_srcdir/configure.gnu; then
27558 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
27559 elif test -f $ac_srcdir/configure; then
27560 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
27561 elif test -f $ac_srcdir/configure.in; then
27562 ac_sub_configure=$ac_configure
27563 else
27564 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27565 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27566 ac_sub_configure=
27567 fi
27568
27569 # The recursion is here.
27570 if test -n "$ac_sub_configure"; then
27571 # Make the cache file name correct relative to the subdirectory.
27572 case $cache_file in
27573 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27574 *) # Relative path.
27575 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27576 esac
27577
27578 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27579 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27580 # The eval makes quoting arguments work.
27581 eval $ac_sub_configure $ac_sub_configure_args \
27582 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
27583 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27584 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27585 { (exit 1); exit 1; }; }
27586 fi
27587
27588 cd $ac_popdir
27589 done
27590 fi
27591
27592
27593 exit 0
This page took 0.700879 seconds and 4 git commands to generate.